]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/_controls_wrap.cpp
reSWIGged
[wxWidgets.git] / wxPython / src / mac / _controls_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.29
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30 /* -----------------------------------------------------------------------------
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 * ----------------------------------------------------------------------------- */
34
35 /* template workaround for compilers that cannot correctly implement the C++ standard */
36 #ifndef SWIGTEMPLATEDISAMBIGUATOR
37 # if defined(__SUNPRO_CC)
38 # if (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 # else
44 # define SWIGTEMPLATEDISAMBIGUATOR
45 # endif
46 #endif
47
48 /* inline attribute */
49 #ifndef SWIGINLINE
50 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51 # define SWIGINLINE inline
52 # else
53 # define SWIGINLINE
54 # endif
55 #endif
56
57 /* attribute recognised by some compilers to avoid 'unused' warnings */
58 #ifndef SWIGUNUSED
59 # if defined(__GNUC__)
60 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61 # define SWIGUNUSED __attribute__ ((__unused__))
62 # else
63 # define SWIGUNUSED
64 # endif
65 # elif defined(__ICC)
66 # define SWIGUNUSED __attribute__ ((__unused__))
67 # else
68 # define SWIGUNUSED
69 # endif
70 #endif
71
72 #ifndef SWIGUNUSEDPARM
73 # ifdef __cplusplus
74 # define SWIGUNUSEDPARM(p)
75 # else
76 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
77 # endif
78 #endif
79
80 /* internal SWIG method */
81 #ifndef SWIGINTERN
82 # define SWIGINTERN static SWIGUNUSED
83 #endif
84
85 /* internal inline SWIG method */
86 #ifndef SWIGINTERNINLINE
87 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88 #endif
89
90 /* exporting methods */
91 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92 # ifndef GCC_HASCLASSVISIBILITY
93 # define GCC_HASCLASSVISIBILITY
94 # endif
95 #endif
96
97 #ifndef SWIGEXPORT
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # if defined(STATIC_LINKED)
100 # define SWIGEXPORT
101 # else
102 # define SWIGEXPORT __declspec(dllexport)
103 # endif
104 # else
105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106 # define SWIGEXPORT __attribute__ ((visibility("default")))
107 # else
108 # define SWIGEXPORT
109 # endif
110 # endif
111 #endif
112
113 /* calling conventions for Windows */
114 #ifndef SWIGSTDCALL
115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116 # define SWIGSTDCALL __stdcall
117 # else
118 # define SWIGSTDCALL
119 # endif
120 #endif
121
122 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124 # define _CRT_SECURE_NO_DEPRECATE
125 #endif
126
127
128 /* Python.h has to appear first */
129 #include <Python.h>
130
131 /* -----------------------------------------------------------------------------
132 * swigrun.swg
133 *
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
137
138 /* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
140 #define SWIG_RUNTIME_VERSION "2"
141
142 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143 #ifdef SWIG_TYPE_TABLE
144 # define SWIG_QUOTE_STRING(x) #x
145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
147 #else
148 # define SWIG_TYPE_TABLE_NAME
149 #endif
150
151 /*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158 */
159
160 #ifndef SWIGRUNTIME
161 # define SWIGRUNTIME SWIGINTERN
162 #endif
163
164 #ifndef SWIGRUNTIMEINLINE
165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
166 #endif
167
168 /* Generic buffer size */
169 #ifndef SWIG_BUFFER_SIZE
170 # define SWIG_BUFFER_SIZE 1024
171 #endif
172
173 /* Flags for pointer conversions */
174 #define SWIG_POINTER_DISOWN 0x1
175
176 /* Flags for new pointer objects */
177 #define SWIG_POINTER_OWN 0x1
178
179
180 /*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260 #define SWIG_OK (0)
261 #define SWIG_ERROR (-1)
262 #define SWIG_IsOK(r) (r >= 0)
263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265 /* The CastRankLimit says how many bits are used for the cast rank */
266 #define SWIG_CASTRANKLIMIT (1 << 8)
267 /* The NewMask denotes the object was created (using new/malloc) */
268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269 /* The TmpMask is for in/out typemaps that use temporal objects */
270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271 /* Simple returning values */
272 #define SWIG_BADOBJ (SWIG_ERROR)
273 #define SWIG_OLDOBJ (SWIG_OK)
274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276 /* Check, add and del mask methods */
277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285 /* Cast-Rank Mode */
286 #if defined(SWIG_CASTRANK_MODE)
287 # ifndef SWIG_TypeRank
288 # define SWIG_TypeRank unsigned long
289 # endif
290 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291 # define SWIG_MAXCASTRANK (2)
292 # endif
293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295 SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297 }
298 SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300 }
301 #else /* no cast-rank mode */
302 # define SWIG_AddCast
303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304 #endif
305
306
307
308
309 #include <string.h>
310
311 #ifdef __cplusplus
312 extern "C" {
313 #endif
314
315 typedef void *(*swig_converter_func)(void *);
316 typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
318 /* Structure to store inforomation on one type */
319 typedef struct swig_type_info {
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
325 int owndata; /* flag if the structure owns the clientdata */
326 } swig_type_info;
327
328 /* Structure to store a type and conversion function used for casting */
329 typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334 } swig_cast_info;
335
336 /* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339 typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346 } swig_module_info;
347
348 /*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354 */
355 SWIGRUNTIME int
356 SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
362 }
363 return (l1 - f1) - (l2 - f2);
364 }
365
366 /*
367 Check type equivalence in a name list like <name1>|<name2>|...
368 Return 0 if not equal, 1 if equal
369 */
370 SWIGRUNTIME int
371 SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
380 if (*ne) ++ne;
381 }
382 return equiv;
383 }
384
385 /*
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
388 */
389 SWIGRUNTIME int
390 SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
397 }
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
400 }
401 return equiv;
402 }
403
404
405 /* think of this as a c++ template<> or a scheme macro */
406 #define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
427 /*
428 Check the typename
429 */
430 SWIGRUNTIME swig_cast_info *
431 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433 }
434
435 /* Same as previous function, except strcmp is replaced with a pointer comparison */
436 SWIGRUNTIME swig_cast_info *
437 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
439 }
440
441 /*
442 Cast a pointer up an inheritance hierarchy
443 */
444 SWIGRUNTIMEINLINE void *
445 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447 }
448
449 /*
450 Dynamic pointer casting. Down an inheritance hierarchy
451 */
452 SWIGRUNTIME swig_type_info *
453 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461 }
462
463 /*
464 Return the name associated with this type
465 */
466 SWIGRUNTIMEINLINE const char *
467 SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469 }
470
471 /*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474 */
475 SWIGRUNTIME const char *
476 SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
481 if (!type) return NULL;
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491 }
492
493 /*
494 Set the clientdata field for a type
495 */
496 SWIGRUNTIME void
497 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
507 }
508 }
509 cast = cast->next;
510 }
511 }
512 SWIGRUNTIME void
513 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516 }
517
518 /*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525 */
526 SWIGRUNTIME swig_type_info *
527 SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
556 }
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560 }
561
562 /*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570 */
571 SWIGRUNTIME swig_type_info *
572 SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
591 }
592
593 /* neither found a match */
594 return 0;
595 }
596
597 /*
598 Pack binary data into a string
599 */
600 SWIGRUNTIME char *
601 SWIG_PackData(char *c, void *ptr, size_t sz) {
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
605 for (; u != eu; ++u) {
606 register unsigned char uu = *u;
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611 }
612
613 /*
614 Unpack binary data from a string
615 */
616 SWIGRUNTIME const char *
617 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
619 register const unsigned char *eu = u + sz;
620 for (; u != eu; ++u) {
621 register char d = *(c++);
622 register unsigned char uu;
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639 }
640
641 /*
642 Pack 'void *' into a string buffer.
643 */
644 SWIGRUNTIME char *
645 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653 }
654
655 SWIGRUNTIME const char *
656 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666 }
667
668 SWIGRUNTIME char *
669 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681 }
682
683 SWIGRUNTIME const char *
684 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694 }
695
696 #ifdef __cplusplus
697 }
698 #endif
699
700 /* Errors in SWIG */
701 #define SWIG_UnknownError -1
702 #define SWIG_IOError -2
703 #define SWIG_RuntimeError -3
704 #define SWIG_IndexError -4
705 #define SWIG_TypeError -5
706 #define SWIG_DivisionByZero -6
707 #define SWIG_OverflowError -7
708 #define SWIG_SyntaxError -8
709 #define SWIG_ValueError -9
710 #define SWIG_SystemError -10
711 #define SWIG_AttributeError -11
712 #define SWIG_MemoryError -12
713 #define SWIG_NullReferenceError -13
714
715
716
717 /* Python.h has to appear first */
718 #include <Python.h>
719
720 /* Add PyOS_snprintf for old Pythons */
721 #if PY_VERSION_HEX < 0x02020000
722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723 # define PyOS_snprintf _snprintf
724 # else
725 # define PyOS_snprintf snprintf
726 # endif
727 #endif
728
729 /* A crude PyString_FromFormat implementation for old Pythons */
730 #if PY_VERSION_HEX < 0x02020000
731
732 #ifndef SWIG_PYBUFFER_SIZE
733 # define SWIG_PYBUFFER_SIZE 1024
734 #endif
735
736 static PyObject *
737 PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745 }
746 #endif
747
748 /* Add PyObject_Del for old Pythons */
749 #if PY_VERSION_HEX < 0x01060000
750 # define PyObject_Del(op) PyMem_DEL((op))
751 #endif
752 #ifndef PyObject_DEL
753 # define PyObject_DEL PyObject_Del
754 #endif
755
756 /* A crude PyExc_StopIteration exception for old Pythons */
757 #if PY_VERSION_HEX < 0x02020000
758 # ifndef PyExc_StopIteration
759 # define PyExc_StopIteration PyExc_RuntimeError
760 # endif
761 # ifndef PyObject_GenericGetAttr
762 # define PyObject_GenericGetAttr 0
763 # endif
764 #endif
765 /* Py_NotImplemented is defined in 2.1 and up. */
766 #if PY_VERSION_HEX < 0x02010000
767 # ifndef Py_NotImplemented
768 # define Py_NotImplemented PyExc_RuntimeError
769 # endif
770 #endif
771
772
773 /* A crude PyString_AsStringAndSize implementation for old Pythons */
774 #if PY_VERSION_HEX < 0x02010000
775 # ifndef PyString_AsStringAndSize
776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777 # endif
778 #endif
779
780 /* PySequence_Size for old Pythons */
781 #if PY_VERSION_HEX < 0x02000000
782 # ifndef PySequence_Size
783 # define PySequence_Size PySequence_Length
784 # endif
785 #endif
786
787
788 /* PyBool_FromLong for old Pythons */
789 #if PY_VERSION_HEX < 0x02030000
790 static
791 PyObject *PyBool_FromLong(long ok)
792 {
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796 }
797 #endif
798
799
800 /* -----------------------------------------------------------------------------
801 * error manipulation
802 * ----------------------------------------------------------------------------- */
803
804 SWIGRUNTIME PyObject*
805 SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845 }
846
847
848 SWIGRUNTIME void
849 SWIG_Python_AddErrorMsg(const char* mesg)
850 {
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866 }
867
868
869
870 #if defined(SWIG_PYTHON_NO_THREADS)
871 # if defined(SWIG_PYTHON_THREADS)
872 # undef SWIG_PYTHON_THREADS
873 # endif
874 #endif
875 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878 # define SWIG_PYTHON_USE_GIL
879 # endif
880 # endif
881 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884 # endif
885 # ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906 # else /* C code */
907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911 # endif
912 # else /* Old thread way, not implemented, user must provide it */
913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914 # define SWIG_PYTHON_INITIALIZE_THREADS
915 # endif
916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918 # endif
919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920 # define SWIG_PYTHON_THREAD_END_BLOCK
921 # endif
922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924 # endif
925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926 # define SWIG_PYTHON_THREAD_END_ALLOW
927 # endif
928 # endif
929 #else /* No thread support */
930 # define SWIG_PYTHON_INITIALIZE_THREADS
931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932 # define SWIG_PYTHON_THREAD_END_BLOCK
933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934 # define SWIG_PYTHON_THREAD_END_ALLOW
935 #endif
936
937 /* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
940
941 #ifdef __cplusplus
942 extern "C" {
943 #if 0
944 } /* cc-mode */
945 #endif
946 #endif
947
948 /* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
951
952 /* Constant Types */
953 #define SWIG_PY_POINTER 4
954 #define SWIG_PY_BINARY 5
955
956 /* Constant information structure */
957 typedef struct swig_const_info {
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
964 } swig_const_info;
965
966 #ifdef __cplusplus
967 #if 0
968 { /* cc-mode */
969 #endif
970 }
971 #endif
972
973
974 /* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
978 * pyrun.swg
979 *
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
983 *
984 * ----------------------------------------------------------------------------- */
985
986 /* Common SWIG API */
987
988 /* for raw pointers */
989 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
990 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
991 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
992 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
993 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
994 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
995 #define swig_owntype int
996
997 /* for raw packed data */
998 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
999 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1000
1001 /* for class or struct pointers */
1002 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1003 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1004
1005 /* for C or C++ function pointers */
1006 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1007 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
1008
1009 /* for C++ member pointers, ie, member methods */
1010 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1011 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1012
1013
1014 /* Runtime API */
1015
1016 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1017 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1018 #define SWIG_NewClientData(obj) PySwigClientData_New(obj)
1019
1020 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1021 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1022 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1023 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1024 #define SWIG_fail goto fail
1025
1026
1027 /* Runtime API implementation */
1028
1029 /* Error manipulation */
1030
1031 SWIGINTERN void
1032 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1033 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1034 PyErr_SetObject(errtype, obj);
1035 Py_DECREF(obj);
1036 SWIG_PYTHON_THREAD_END_BLOCK;
1037 }
1038
1039 SWIGINTERN void
1040 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1041 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1042 PyErr_SetString(errtype, (char *) msg);
1043 SWIG_PYTHON_THREAD_END_BLOCK;
1044 }
1045
1046 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1047
1048 /* Set a constant value */
1049
1050 SWIGINTERN void
1051 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1052 PyDict_SetItemString(d, (char*) name, obj);
1053 Py_DECREF(obj);
1054 }
1055
1056 /* Append a value to the result obj */
1057
1058 SWIGINTERN PyObject*
1059 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1060 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1061 if (!result) {
1062 result = obj;
1063 } else if (result == Py_None) {
1064 Py_DECREF(result);
1065 result = obj;
1066 } else {
1067 if (!PyList_Check(result)) {
1068 PyObject *o2 = result;
1069 result = PyList_New(1);
1070 PyList_SetItem(result, 0, o2);
1071 }
1072 PyList_Append(result,obj);
1073 Py_DECREF(obj);
1074 }
1075 return result;
1076 #else
1077 PyObject* o2;
1078 PyObject* o3;
1079 if (!result) {
1080 result = obj;
1081 } else if (result == Py_None) {
1082 Py_DECREF(result);
1083 result = obj;
1084 } else {
1085 if (!PyTuple_Check(result)) {
1086 o2 = result;
1087 result = PyTuple_New(1);
1088 PyTuple_SET_ITEM(result, 0, o2);
1089 }
1090 o3 = PyTuple_New(1);
1091 PyTuple_SET_ITEM(o3, 0, obj);
1092 o2 = result;
1093 result = PySequence_Concat(o2, o3);
1094 Py_DECREF(o2);
1095 Py_DECREF(o3);
1096 }
1097 return result;
1098 #endif
1099 }
1100
1101 /* Unpack the argument tuple */
1102
1103 SWIGINTERN int
1104 SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1105 {
1106 if (!args) {
1107 if (!min && !max) {
1108 return 1;
1109 } else {
1110 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1111 name, (min == max ? "" : "at least "), min);
1112 return 0;
1113 }
1114 }
1115 if (!PyTuple_Check(args)) {
1116 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1117 return 0;
1118 } else {
1119 register int l = PyTuple_GET_SIZE(args);
1120 if (l < min) {
1121 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1122 name, (min == max ? "" : "at least "), min, l);
1123 return 0;
1124 } else if (l > max) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at most "), max, l);
1127 return 0;
1128 } else {
1129 register int i;
1130 for (i = 0; i < l; ++i) {
1131 objs[i] = PyTuple_GET_ITEM(args, i);
1132 }
1133 for (; l < max; ++l) {
1134 objs[l] = 0;
1135 }
1136 return i + 1;
1137 }
1138 }
1139 }
1140
1141 /* A functor is a function object with one single object argument */
1142 #if PY_VERSION_HEX >= 0x02020000
1143 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1144 #else
1145 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1146 #endif
1147
1148 /*
1149 Helper for static pointer initialization for both C and C++ code, for example
1150 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1151 */
1152 #ifdef __cplusplus
1153 #define SWIG_STATIC_POINTER(var) var
1154 #else
1155 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1156 #endif
1157
1158 /* -----------------------------------------------------------------------------
1159 * Pointer declarations
1160 * ----------------------------------------------------------------------------- */
1161
1162 /* Flags for new pointer objects */
1163 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1164 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1165
1166 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1167
1168 #ifdef __cplusplus
1169 extern "C" {
1170 #if 0
1171 } /* cc-mode */
1172 #endif
1173 #endif
1174
1175 /* How to access Py_None */
1176 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1177 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1178 # ifndef SWIG_PYTHON_BUILD_NONE
1179 # define SWIG_PYTHON_BUILD_NONE
1180 # endif
1181 # endif
1182 #endif
1183
1184 #ifdef SWIG_PYTHON_BUILD_NONE
1185 # ifdef Py_None
1186 # undef Py_None
1187 # define Py_None SWIG_Py_None()
1188 # endif
1189 SWIGRUNTIMEINLINE PyObject *
1190 _SWIG_Py_None(void)
1191 {
1192 PyObject *none = Py_BuildValue("");
1193 Py_DECREF(none);
1194 return none;
1195 }
1196 SWIGRUNTIME PyObject *
1197 SWIG_Py_None(void)
1198 {
1199 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1200 return none;
1201 }
1202 #endif
1203
1204 /* The python void return value */
1205
1206 SWIGRUNTIMEINLINE PyObject *
1207 SWIG_Py_Void(void)
1208 {
1209 PyObject *none = Py_None;
1210 Py_INCREF(none);
1211 return none;
1212 }
1213
1214 /* PySwigClientData */
1215
1216 typedef struct {
1217 PyObject *klass;
1218 PyObject *newraw;
1219 PyObject *newargs;
1220 PyObject *destroy;
1221 int delargs;
1222 int implicitconv;
1223 } PySwigClientData;
1224
1225 SWIGRUNTIMEINLINE int
1226 SWIG_Python_CheckImplicit(swig_type_info *ty)
1227 {
1228 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1229 return data ? data->implicitconv : 0;
1230 }
1231
1232 SWIGRUNTIMEINLINE PyObject *
1233 SWIG_Python_ExceptionType(swig_type_info *desc) {
1234 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1235 PyObject *klass = data ? data->klass : 0;
1236 return (klass ? klass : PyExc_RuntimeError);
1237 }
1238
1239
1240 SWIGRUNTIME PySwigClientData *
1241 PySwigClientData_New(PyObject* obj)
1242 {
1243 if (!obj) {
1244 return 0;
1245 } else {
1246 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1247 /* the klass element */
1248 data->klass = obj;
1249 Py_INCREF(data->klass);
1250 /* the newraw method and newargs arguments used to create a new raw instance */
1251 if (PyClass_Check(obj)) {
1252 data->newraw = 0;
1253 data->newargs = obj;
1254 Py_INCREF(obj);
1255 } else {
1256 #if (PY_VERSION_HEX < 0x02020000)
1257 data->newraw = 0;
1258 #else
1259 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1260 #endif
1261 if (data->newraw) {
1262 Py_INCREF(data->newraw);
1263 data->newargs = PyTuple_New(1);
1264 PyTuple_SetItem(data->newargs, 0, obj);
1265 } else {
1266 data->newargs = obj;
1267 }
1268 Py_INCREF(data->newargs);
1269 }
1270 /* the destroy method, aka as the C++ delete method */
1271 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1272 if (PyErr_Occurred()) {
1273 PyErr_Clear();
1274 data->destroy = 0;
1275 }
1276 if (data->destroy) {
1277 int flags;
1278 Py_INCREF(data->destroy);
1279 flags = PyCFunction_GET_FLAGS(data->destroy);
1280 #ifdef METH_O
1281 data->delargs = !(flags & (METH_O));
1282 #else
1283 data->delargs = 0;
1284 #endif
1285 } else {
1286 data->delargs = 0;
1287 }
1288 data->implicitconv = 0;
1289 return data;
1290 }
1291 }
1292
1293 SWIGRUNTIME void
1294 PySwigClientData_Del(PySwigClientData* data)
1295 {
1296 Py_XDECREF(data->newraw);
1297 Py_XDECREF(data->newargs);
1298 Py_XDECREF(data->destroy);
1299 }
1300
1301 /* =============== PySwigObject =====================*/
1302
1303 typedef struct {
1304 PyObject_HEAD
1305 void *ptr;
1306 swig_type_info *ty;
1307 int own;
1308 PyObject *next;
1309 } PySwigObject;
1310
1311 SWIGRUNTIME PyObject *
1312 PySwigObject_long(PySwigObject *v)
1313 {
1314 return PyLong_FromVoidPtr(v->ptr);
1315 }
1316
1317 SWIGRUNTIME PyObject *
1318 PySwigObject_format(const char* fmt, PySwigObject *v)
1319 {
1320 PyObject *res = NULL;
1321 PyObject *args = PyTuple_New(1);
1322 if (args) {
1323 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1324 PyObject *ofmt = PyString_FromString(fmt);
1325 if (ofmt) {
1326 res = PyString_Format(ofmt,args);
1327 Py_DECREF(ofmt);
1328 }
1329 Py_DECREF(args);
1330 }
1331 }
1332 return res;
1333 }
1334
1335 SWIGRUNTIME PyObject *
1336 PySwigObject_oct(PySwigObject *v)
1337 {
1338 return PySwigObject_format("%o",v);
1339 }
1340
1341 SWIGRUNTIME PyObject *
1342 PySwigObject_hex(PySwigObject *v)
1343 {
1344 return PySwigObject_format("%x",v);
1345 }
1346
1347 SWIGRUNTIME PyObject *
1348 #ifdef METH_NOARGS
1349 PySwigObject_repr(PySwigObject *v)
1350 #else
1351 PySwigObject_repr(PySwigObject *v, PyObject *args)
1352 #endif
1353 {
1354 const char *name = SWIG_TypePrettyName(v->ty);
1355 PyObject *hex = PySwigObject_hex(v);
1356 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1357 Py_DECREF(hex);
1358 if (v->next) {
1359 #ifdef METH_NOARGS
1360 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1361 #else
1362 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1363 #endif
1364 PyString_ConcatAndDel(&repr,nrep);
1365 }
1366 return repr;
1367 }
1368
1369 SWIGRUNTIME int
1370 PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1371 {
1372 #ifdef METH_NOARGS
1373 PyObject *repr = PySwigObject_repr(v);
1374 #else
1375 PyObject *repr = PySwigObject_repr(v, NULL);
1376 #endif
1377 if (repr) {
1378 fputs(PyString_AsString(repr), fp);
1379 Py_DECREF(repr);
1380 return 0;
1381 } else {
1382 return 1;
1383 }
1384 }
1385
1386 SWIGRUNTIME PyObject *
1387 PySwigObject_str(PySwigObject *v)
1388 {
1389 char result[SWIG_BUFFER_SIZE];
1390 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1391 PyString_FromString(result) : 0;
1392 }
1393
1394 SWIGRUNTIME int
1395 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1396 {
1397 void *i = v->ptr;
1398 void *j = w->ptr;
1399 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1400 }
1401
1402 SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1403
1404 SWIGRUNTIME PyTypeObject*
1405 PySwigObject_type(void) {
1406 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1407 return type;
1408 }
1409
1410 SWIGRUNTIMEINLINE int
1411 PySwigObject_Check(PyObject *op) {
1412 return ((op)->ob_type == PySwigObject_type())
1413 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1414 }
1415
1416 SWIGRUNTIME PyObject *
1417 PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1418
1419 SWIGRUNTIME void
1420 PySwigObject_dealloc(PyObject *v)
1421 {
1422 PySwigObject *sobj = (PySwigObject *) v;
1423 PyObject *next = sobj->next;
1424 if (sobj->own) {
1425 swig_type_info *ty = sobj->ty;
1426 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1427 PyObject *destroy = data ? data->destroy : 0;
1428 if (destroy) {
1429 /* destroy is always a VARARGS method */
1430 PyObject *res;
1431 if (data->delargs) {
1432 /* we need to create a temporal object to carry the destroy operation */
1433 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1434 res = SWIG_Python_CallFunctor(destroy, tmp);
1435 Py_DECREF(tmp);
1436 } else {
1437 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1438 PyObject *mself = PyCFunction_GET_SELF(destroy);
1439 res = ((*meth)(mself, v));
1440 }
1441 Py_XDECREF(res);
1442 } else {
1443 const char *name = SWIG_TypePrettyName(ty);
1444 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1445 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1446 #endif
1447 }
1448 }
1449 Py_XDECREF(next);
1450 PyObject_DEL(v);
1451 }
1452
1453 SWIGRUNTIME PyObject*
1454 PySwigObject_append(PyObject* v, PyObject* next)
1455 {
1456 PySwigObject *sobj = (PySwigObject *) v;
1457 #ifndef METH_O
1458 PyObject *tmp = 0;
1459 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1460 next = tmp;
1461 #endif
1462 if (!PySwigObject_Check(next)) {
1463 return NULL;
1464 }
1465 sobj->next = next;
1466 Py_INCREF(next);
1467 return SWIG_Py_Void();
1468 }
1469
1470 SWIGRUNTIME PyObject*
1471 #ifdef METH_NOARGS
1472 PySwigObject_next(PyObject* v)
1473 #else
1474 PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1475 #endif
1476 {
1477 PySwigObject *sobj = (PySwigObject *) v;
1478 if (sobj->next) {
1479 Py_INCREF(sobj->next);
1480 return sobj->next;
1481 } else {
1482 return SWIG_Py_Void();
1483 }
1484 }
1485
1486 SWIGINTERN PyObject*
1487 #ifdef METH_NOARGS
1488 PySwigObject_disown(PyObject *v)
1489 #else
1490 PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1491 #endif
1492 {
1493 PySwigObject *sobj = (PySwigObject *)v;
1494 sobj->own = 0;
1495 return SWIG_Py_Void();
1496 }
1497
1498 SWIGINTERN PyObject*
1499 #ifdef METH_NOARGS
1500 PySwigObject_acquire(PyObject *v)
1501 #else
1502 PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1503 #endif
1504 {
1505 PySwigObject *sobj = (PySwigObject *)v;
1506 sobj->own = SWIG_POINTER_OWN;
1507 return SWIG_Py_Void();
1508 }
1509
1510 SWIGINTERN PyObject*
1511 PySwigObject_own(PyObject *v, PyObject *args)
1512 {
1513 PyObject *val = 0;
1514 #if (PY_VERSION_HEX < 0x02020000)
1515 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1516 #else
1517 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1518 #endif
1519 {
1520 return NULL;
1521 }
1522 else
1523 {
1524 PySwigObject *sobj = (PySwigObject *)v;
1525 PyObject *obj = PyBool_FromLong(sobj->own);
1526 if (val) {
1527 #ifdef METH_NOARGS
1528 if (PyObject_IsTrue(val)) {
1529 PySwigObject_acquire(v);
1530 } else {
1531 PySwigObject_disown(v);
1532 }
1533 #else
1534 if (PyObject_IsTrue(val)) {
1535 PySwigObject_acquire(v,args);
1536 } else {
1537 PySwigObject_disown(v,args);
1538 }
1539 #endif
1540 }
1541 return obj;
1542 }
1543 }
1544
1545 #ifdef METH_O
1546 static PyMethodDef
1547 swigobject_methods[] = {
1548 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1549 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1550 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1551 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1552 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1553 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1554 {0, 0, 0, 0}
1555 };
1556 #else
1557 static PyMethodDef
1558 swigobject_methods[] = {
1559 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1560 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1561 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1562 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1563 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1564 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1565 {0, 0, 0, 0}
1566 };
1567 #endif
1568
1569 #if PY_VERSION_HEX < 0x02020000
1570 SWIGINTERN PyObject *
1571 PySwigObject_getattr(PySwigObject *sobj,char *name)
1572 {
1573 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1574 }
1575 #endif
1576
1577 SWIGRUNTIME PyTypeObject*
1578 _PySwigObject_type(void) {
1579 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1580
1581 static PyNumberMethods PySwigObject_as_number = {
1582 (binaryfunc)0, /*nb_add*/
1583 (binaryfunc)0, /*nb_subtract*/
1584 (binaryfunc)0, /*nb_multiply*/
1585 (binaryfunc)0, /*nb_divide*/
1586 (binaryfunc)0, /*nb_remainder*/
1587 (binaryfunc)0, /*nb_divmod*/
1588 (ternaryfunc)0,/*nb_power*/
1589 (unaryfunc)0, /*nb_negative*/
1590 (unaryfunc)0, /*nb_positive*/
1591 (unaryfunc)0, /*nb_absolute*/
1592 (inquiry)0, /*nb_nonzero*/
1593 0, /*nb_invert*/
1594 0, /*nb_lshift*/
1595 0, /*nb_rshift*/
1596 0, /*nb_and*/
1597 0, /*nb_xor*/
1598 0, /*nb_or*/
1599 (coercion)0, /*nb_coerce*/
1600 (unaryfunc)PySwigObject_long, /*nb_int*/
1601 (unaryfunc)PySwigObject_long, /*nb_long*/
1602 (unaryfunc)0, /*nb_float*/
1603 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1604 (unaryfunc)PySwigObject_hex, /*nb_hex*/
1605 #if PY_VERSION_HEX >= 0x02020000
1606 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1607 #elif PY_VERSION_HEX >= 0x02000000
1608 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1609 #endif
1610 };
1611
1612 static PyTypeObject pyswigobject_type;
1613 static int type_init = 0;
1614 if (!type_init) {
1615 const PyTypeObject tmp
1616 = {
1617 PyObject_HEAD_INIT(NULL)
1618 0, /* ob_size */
1619 (char *)"PySwigObject", /* tp_name */
1620 sizeof(PySwigObject), /* tp_basicsize */
1621 0, /* tp_itemsize */
1622 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1623 (printfunc)PySwigObject_print, /* tp_print */
1624 #if PY_VERSION_HEX < 0x02020000
1625 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1626 #else
1627 (getattrfunc)0, /* tp_getattr */
1628 #endif
1629 (setattrfunc)0, /* tp_setattr */
1630 (cmpfunc)PySwigObject_compare, /* tp_compare */
1631 (reprfunc)PySwigObject_repr, /* tp_repr */
1632 &PySwigObject_as_number, /* tp_as_number */
1633 0, /* tp_as_sequence */
1634 0, /* tp_as_mapping */
1635 (hashfunc)0, /* tp_hash */
1636 (ternaryfunc)0, /* tp_call */
1637 (reprfunc)PySwigObject_str, /* tp_str */
1638 PyObject_GenericGetAttr, /* tp_getattro */
1639 0, /* tp_setattro */
1640 0, /* tp_as_buffer */
1641 Py_TPFLAGS_DEFAULT, /* tp_flags */
1642 swigobject_doc, /* tp_doc */
1643 0, /* tp_traverse */
1644 0, /* tp_clear */
1645 0, /* tp_richcompare */
1646 0, /* tp_weaklistoffset */
1647 #if PY_VERSION_HEX >= 0x02020000
1648 0, /* tp_iter */
1649 0, /* tp_iternext */
1650 swigobject_methods, /* tp_methods */
1651 0, /* tp_members */
1652 0, /* tp_getset */
1653 0, /* tp_base */
1654 0, /* tp_dict */
1655 0, /* tp_descr_get */
1656 0, /* tp_descr_set */
1657 0, /* tp_dictoffset */
1658 0, /* tp_init */
1659 0, /* tp_alloc */
1660 0, /* tp_new */
1661 0, /* tp_free */
1662 0, /* tp_is_gc */
1663 0, /* tp_bases */
1664 0, /* tp_mro */
1665 0, /* tp_cache */
1666 0, /* tp_subclasses */
1667 0, /* tp_weaklist */
1668 #endif
1669 #if PY_VERSION_HEX >= 0x02030000
1670 0, /* tp_del */
1671 #endif
1672 #ifdef COUNT_ALLOCS
1673 0,0,0,0 /* tp_alloc -> tp_next */
1674 #endif
1675 };
1676 pyswigobject_type = tmp;
1677 pyswigobject_type.ob_type = &PyType_Type;
1678 type_init = 1;
1679 }
1680 return &pyswigobject_type;
1681 }
1682
1683 SWIGRUNTIME PyObject *
1684 PySwigObject_New(void *ptr, swig_type_info *ty, int own)
1685 {
1686 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1687 if (sobj) {
1688 sobj->ptr = ptr;
1689 sobj->ty = ty;
1690 sobj->own = own;
1691 sobj->next = 0;
1692 }
1693 return (PyObject *)sobj;
1694 }
1695
1696 /* -----------------------------------------------------------------------------
1697 * Implements a simple Swig Packed type, and use it instead of string
1698 * ----------------------------------------------------------------------------- */
1699
1700 typedef struct {
1701 PyObject_HEAD
1702 void *pack;
1703 swig_type_info *ty;
1704 size_t size;
1705 } PySwigPacked;
1706
1707 SWIGRUNTIME int
1708 PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1709 {
1710 char result[SWIG_BUFFER_SIZE];
1711 fputs("<Swig Packed ", fp);
1712 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1713 fputs("at ", fp);
1714 fputs(result, fp);
1715 }
1716 fputs(v->ty->name,fp);
1717 fputs(">", fp);
1718 return 0;
1719 }
1720
1721 SWIGRUNTIME PyObject *
1722 PySwigPacked_repr(PySwigPacked *v)
1723 {
1724 char result[SWIG_BUFFER_SIZE];
1725 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1726 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1727 } else {
1728 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
1729 }
1730 }
1731
1732 SWIGRUNTIME PyObject *
1733 PySwigPacked_str(PySwigPacked *v)
1734 {
1735 char result[SWIG_BUFFER_SIZE];
1736 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1737 return PyString_FromFormat("%s%s", result, v->ty->name);
1738 } else {
1739 return PyString_FromString(v->ty->name);
1740 }
1741 }
1742
1743 SWIGRUNTIME int
1744 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1745 {
1746 size_t i = v->size;
1747 size_t j = w->size;
1748 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1749 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
1750 }
1751
1752 SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
1753
1754 SWIGRUNTIME PyTypeObject*
1755 PySwigPacked_type(void) {
1756 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1757 return type;
1758 }
1759
1760 SWIGRUNTIMEINLINE int
1761 PySwigPacked_Check(PyObject *op) {
1762 return ((op)->ob_type == _PySwigPacked_type())
1763 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1764 }
1765
1766 SWIGRUNTIME void
1767 PySwigPacked_dealloc(PyObject *v)
1768 {
1769 if (PySwigPacked_Check(v)) {
1770 PySwigPacked *sobj = (PySwigPacked *) v;
1771 free(sobj->pack);
1772 }
1773 PyObject_DEL(v);
1774 }
1775
1776 SWIGRUNTIME PyTypeObject*
1777 _PySwigPacked_type(void) {
1778 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1779 static PyTypeObject pyswigpacked_type;
1780 static int type_init = 0;
1781 if (!type_init) {
1782 const PyTypeObject tmp
1783 = {
1784 PyObject_HEAD_INIT(NULL)
1785 0, /* ob_size */
1786 (char *)"PySwigPacked", /* tp_name */
1787 sizeof(PySwigPacked), /* tp_basicsize */
1788 0, /* tp_itemsize */
1789 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1790 (printfunc)PySwigPacked_print, /* tp_print */
1791 (getattrfunc)0, /* tp_getattr */
1792 (setattrfunc)0, /* tp_setattr */
1793 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1794 (reprfunc)PySwigPacked_repr, /* tp_repr */
1795 0, /* tp_as_number */
1796 0, /* tp_as_sequence */
1797 0, /* tp_as_mapping */
1798 (hashfunc)0, /* tp_hash */
1799 (ternaryfunc)0, /* tp_call */
1800 (reprfunc)PySwigPacked_str, /* tp_str */
1801 PyObject_GenericGetAttr, /* tp_getattro */
1802 0, /* tp_setattro */
1803 0, /* tp_as_buffer */
1804 Py_TPFLAGS_DEFAULT, /* tp_flags */
1805 swigpacked_doc, /* tp_doc */
1806 0, /* tp_traverse */
1807 0, /* tp_clear */
1808 0, /* tp_richcompare */
1809 0, /* tp_weaklistoffset */
1810 #if PY_VERSION_HEX >= 0x02020000
1811 0, /* tp_iter */
1812 0, /* tp_iternext */
1813 0, /* tp_methods */
1814 0, /* tp_members */
1815 0, /* tp_getset */
1816 0, /* tp_base */
1817 0, /* tp_dict */
1818 0, /* tp_descr_get */
1819 0, /* tp_descr_set */
1820 0, /* tp_dictoffset */
1821 0, /* tp_init */
1822 0, /* tp_alloc */
1823 0, /* tp_new */
1824 0, /* tp_free */
1825 0, /* tp_is_gc */
1826 0, /* tp_bases */
1827 0, /* tp_mro */
1828 0, /* tp_cache */
1829 0, /* tp_subclasses */
1830 0, /* tp_weaklist */
1831 #endif
1832 #if PY_VERSION_HEX >= 0x02030000
1833 0, /* tp_del */
1834 #endif
1835 #ifdef COUNT_ALLOCS
1836 0,0,0,0 /* tp_alloc -> tp_next */
1837 #endif
1838 };
1839 pyswigpacked_type = tmp;
1840 pyswigpacked_type.ob_type = &PyType_Type;
1841 type_init = 1;
1842 }
1843 return &pyswigpacked_type;
1844 }
1845
1846 SWIGRUNTIME PyObject *
1847 PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
1848 {
1849 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1850 if (sobj) {
1851 void *pack = malloc(size);
1852 if (pack) {
1853 memcpy(pack, ptr, size);
1854 sobj->pack = pack;
1855 sobj->ty = ty;
1856 sobj->size = size;
1857 } else {
1858 PyObject_DEL((PyObject *) sobj);
1859 sobj = 0;
1860 }
1861 }
1862 return (PyObject *) sobj;
1863 }
1864
1865 SWIGRUNTIME swig_type_info *
1866 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1867 {
1868 if (PySwigPacked_Check(obj)) {
1869 PySwigPacked *sobj = (PySwigPacked *)obj;
1870 if (sobj->size != size) return 0;
1871 memcpy(ptr, sobj->pack, size);
1872 return sobj->ty;
1873 } else {
1874 return 0;
1875 }
1876 }
1877
1878 /* -----------------------------------------------------------------------------
1879 * pointers/data manipulation
1880 * ----------------------------------------------------------------------------- */
1881
1882 SWIGRUNTIMEINLINE PyObject *
1883 _SWIG_This(void)
1884 {
1885 return PyString_FromString("this");
1886 }
1887
1888 SWIGRUNTIME PyObject *
1889 SWIG_This(void)
1890 {
1891 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1892 return swig_this;
1893 }
1894
1895 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1896
1897 SWIGRUNTIME PySwigObject *
1898 SWIG_Python_GetSwigThis(PyObject *pyobj)
1899 {
1900 if (PySwigObject_Check(pyobj)) {
1901 return (PySwigObject *) pyobj;
1902 } else {
1903 PyObject *obj = 0;
1904 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1905 if (PyInstance_Check(pyobj)) {
1906 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1907 } else {
1908 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1909 if (dictptr != NULL) {
1910 PyObject *dict = *dictptr;
1911 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1912 } else {
1913 #ifdef PyWeakref_CheckProxy
1914 if (PyWeakref_CheckProxy(pyobj)) {
1915 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1916 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1917 }
1918 #endif
1919 obj = PyObject_GetAttr(pyobj,SWIG_This());
1920 if (obj) {
1921 Py_DECREF(obj);
1922 } else {
1923 if (PyErr_Occurred()) PyErr_Clear();
1924 return 0;
1925 }
1926 }
1927 }
1928 #else
1929 obj = PyObject_GetAttr(pyobj,SWIG_This());
1930 if (obj) {
1931 Py_DECREF(obj);
1932 } else {
1933 if (PyErr_Occurred()) PyErr_Clear();
1934 return 0;
1935 }
1936 #endif
1937 if (obj && !PySwigObject_Check(obj)) {
1938 /* a PyObject is called 'this', try to get the 'real this'
1939 PySwigObject from it */
1940 return SWIG_Python_GetSwigThis(obj);
1941 }
1942 return (PySwigObject *)obj;
1943 }
1944 }
1945
1946 /* Acquire a pointer value */
1947
1948 SWIGRUNTIME int
1949 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1950 if (own) {
1951 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1952 if (sobj) {
1953 int oldown = sobj->own;
1954 sobj->own = own;
1955 return oldown;
1956 }
1957 }
1958 return 0;
1959 }
1960
1961 /* Convert a pointer value */
1962
1963 SWIGRUNTIME int
1964 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1965 if (!obj) return SWIG_ERROR;
1966 if (obj == Py_None) {
1967 if (ptr) *ptr = 0;
1968 return SWIG_OK;
1969 } else {
1970 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1971 while (sobj) {
1972 void *vptr = sobj->ptr;
1973 if (ty) {
1974 swig_type_info *to = sobj->ty;
1975 if (to == ty) {
1976 /* no type cast needed */
1977 if (ptr) *ptr = vptr;
1978 break;
1979 } else {
1980 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1981 if (!tc) {
1982 sobj = (PySwigObject *)sobj->next;
1983 } else {
1984 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1985 break;
1986 }
1987 }
1988 } else {
1989 if (ptr) *ptr = vptr;
1990 break;
1991 }
1992 }
1993 if (sobj) {
1994 if (own) *own = sobj->own;
1995 if (flags & SWIG_POINTER_DISOWN) {
1996 sobj->own = 0;
1997 }
1998 return SWIG_OK;
1999 } else {
2000 int res = SWIG_ERROR;
2001 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2002 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2003 if (data && !data->implicitconv) {
2004 PyObject *klass = data->klass;
2005 if (klass) {
2006 PyObject *impconv;
2007 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2008 impconv = SWIG_Python_CallFunctor(klass, obj);
2009 data->implicitconv = 0;
2010 if (PyErr_Occurred()) {
2011 PyErr_Clear();
2012 impconv = 0;
2013 }
2014 if (impconv) {
2015 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2016 if (iobj) {
2017 void *vptr;
2018 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2019 if (SWIG_IsOK(res)) {
2020 if (ptr) {
2021 *ptr = vptr;
2022 /* transfer the ownership to 'ptr' */
2023 iobj->own = 0;
2024 res = SWIG_AddCast(res);
2025 res = SWIG_AddNewMask(res);
2026 } else {
2027 res = SWIG_AddCast(res);
2028 }
2029 }
2030 }
2031 Py_DECREF(impconv);
2032 }
2033 }
2034 }
2035 }
2036 return res;
2037 }
2038 }
2039 }
2040
2041 /* Convert a function ptr value */
2042
2043 SWIGRUNTIME int
2044 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2045 if (!PyCFunction_Check(obj)) {
2046 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2047 } else {
2048 void *vptr = 0;
2049
2050 /* here we get the method pointer for callbacks */
2051 char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2052 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2053 if (desc) {
2054 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2055 if (!desc) return SWIG_ERROR;
2056 }
2057 if (ty) {
2058 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2059 if (!tc) return SWIG_ERROR;
2060 *ptr = SWIG_TypeCast(tc,vptr);
2061 } else {
2062 *ptr = vptr;
2063 }
2064 return SWIG_OK;
2065 }
2066 }
2067
2068 /* Convert a packed value value */
2069
2070 SWIGRUNTIME int
2071 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2072 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2073 if (!to) return SWIG_ERROR;
2074 if (ty) {
2075 if (to != ty) {
2076 /* check type cast? */
2077 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2078 if (!tc) return SWIG_ERROR;
2079 }
2080 }
2081 return SWIG_OK;
2082 }
2083
2084 /* -----------------------------------------------------------------------------
2085 * Create a new pointer object
2086 * ----------------------------------------------------------------------------- */
2087
2088 /*
2089 Create a new instance object, whitout calling __init__, and set the
2090 'this' attribute.
2091 */
2092
2093 SWIGRUNTIME PyObject*
2094 SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2095 {
2096 #if (PY_VERSION_HEX >= 0x02020000)
2097 PyObject *inst = 0;
2098 PyObject *newraw = data->newraw;
2099 if (newraw) {
2100 inst = PyObject_Call(newraw, data->newargs, NULL);
2101 if (inst) {
2102 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2103 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2104 if (dictptr != NULL) {
2105 PyObject *dict = *dictptr;
2106 if (dict == NULL) {
2107 dict = PyDict_New();
2108 *dictptr = dict;
2109 PyDict_SetItem(dict, SWIG_This(), swig_this);
2110 }
2111 }
2112 #else
2113 PyObject *key = SWIG_This();
2114 PyObject_SetAttr(inst, key, swig_this);
2115 #endif
2116 }
2117 } else {
2118 PyObject *dict = PyDict_New();
2119 PyDict_SetItem(dict, SWIG_This(), swig_this);
2120 inst = PyInstance_NewRaw(data->newargs, dict);
2121 Py_DECREF(dict);
2122 }
2123 return inst;
2124 #else
2125 #if (PY_VERSION_HEX >= 0x02010000)
2126 PyObject *inst;
2127 PyObject *dict = PyDict_New();
2128 PyDict_SetItem(dict, SWIG_This(), swig_this);
2129 inst = PyInstance_NewRaw(data->newargs, dict);
2130 Py_DECREF(dict);
2131 return (PyObject *) inst;
2132 #else
2133 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2134 if (inst == NULL) {
2135 return NULL;
2136 }
2137 inst->in_class = (PyClassObject *)data->newargs;
2138 Py_INCREF(inst->in_class);
2139 inst->in_dict = PyDict_New();
2140 if (inst->in_dict == NULL) {
2141 Py_DECREF(inst);
2142 return NULL;
2143 }
2144 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2145 inst->in_weakreflist = NULL;
2146 #endif
2147 #ifdef Py_TPFLAGS_GC
2148 PyObject_GC_Init(inst);
2149 #endif
2150 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2151 return (PyObject *) inst;
2152 #endif
2153 #endif
2154 }
2155
2156 SWIGRUNTIME void
2157 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2158 {
2159 PyObject *dict;
2160 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2161 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2162 if (dictptr != NULL) {
2163 dict = *dictptr;
2164 if (dict == NULL) {
2165 dict = PyDict_New();
2166 *dictptr = dict;
2167 }
2168 PyDict_SetItem(dict, SWIG_This(), swig_this);
2169 return;
2170 }
2171 #endif
2172 dict = PyObject_GetAttrString(inst, "__dict__");
2173 PyDict_SetItem(dict, SWIG_This(), swig_this);
2174 Py_DECREF(dict);
2175 }
2176
2177
2178 SWIGINTERN PyObject *
2179 SWIG_Python_InitShadowInstance(PyObject *args) {
2180 PyObject *obj[2];
2181 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2182 return NULL;
2183 } else {
2184 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2185 if (sthis) {
2186 PySwigObject_append((PyObject*) sthis, obj[1]);
2187 } else {
2188 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2189 }
2190 return SWIG_Py_Void();
2191 }
2192 }
2193
2194 /* Create a new pointer object */
2195
2196 SWIGRUNTIME PyObject *
2197 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
2198 if (!ptr) {
2199 return SWIG_Py_Void();
2200 } else {
2201 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2202 PyObject *robj = PySwigObject_New(ptr, type, own);
2203 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2204 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2205 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2206 if (inst) {
2207 Py_DECREF(robj);
2208 robj = inst;
2209 }
2210 }
2211 return robj;
2212 }
2213 }
2214
2215 /* Create a new packed object */
2216
2217 SWIGRUNTIMEINLINE PyObject *
2218 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2219 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2220 }
2221
2222 /* -----------------------------------------------------------------------------*
2223 * Get type list
2224 * -----------------------------------------------------------------------------*/
2225
2226 #ifdef SWIG_LINK_RUNTIME
2227 void *SWIG_ReturnGlobalTypeList(void *);
2228 #endif
2229
2230 SWIGRUNTIME swig_module_info *
2231 SWIG_Python_GetModule(void) {
2232 static void *type_pointer = (void *)0;
2233 /* first check if module already created */
2234 if (!type_pointer) {
2235 #ifdef SWIG_LINK_RUNTIME
2236 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2237 #else
2238 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2239 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2240 if (PyErr_Occurred()) {
2241 PyErr_Clear();
2242 type_pointer = (void *)0;
2243 }
2244 #endif
2245 }
2246 return (swig_module_info *) type_pointer;
2247 }
2248
2249 #if PY_MAJOR_VERSION < 2
2250 /* PyModule_AddObject function was introduced in Python 2.0. The following function
2251 is copied out of Python/modsupport.c in python version 2.3.4 */
2252 SWIGINTERN int
2253 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2254 {
2255 PyObject *dict;
2256 if (!PyModule_Check(m)) {
2257 PyErr_SetString(PyExc_TypeError,
2258 "PyModule_AddObject() needs module as first arg");
2259 return SWIG_ERROR;
2260 }
2261 if (!o) {
2262 PyErr_SetString(PyExc_TypeError,
2263 "PyModule_AddObject() needs non-NULL value");
2264 return SWIG_ERROR;
2265 }
2266
2267 dict = PyModule_GetDict(m);
2268 if (dict == NULL) {
2269 /* Internal error -- modules must have a dict! */
2270 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2271 PyModule_GetName(m));
2272 return SWIG_ERROR;
2273 }
2274 if (PyDict_SetItemString(dict, name, o))
2275 return SWIG_ERROR;
2276 Py_DECREF(o);
2277 return SWIG_OK;
2278 }
2279 #endif
2280
2281 SWIGRUNTIME void
2282 SWIG_Python_DestroyModule(void *vptr)
2283 {
2284 swig_module_info *swig_module = (swig_module_info *) vptr;
2285 swig_type_info **types = swig_module->types;
2286 size_t i;
2287 for (i =0; i < swig_module->size; ++i) {
2288 swig_type_info *ty = types[i];
2289 if (ty->owndata) {
2290 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2291 if (data) PySwigClientData_Del(data);
2292 }
2293 }
2294 Py_DECREF(SWIG_This());
2295 }
2296
2297 SWIGRUNTIME void
2298 SWIG_Python_SetModule(swig_module_info *swig_module) {
2299 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2300
2301 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2302 swig_empty_runtime_method_table);
2303 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2304 if (pointer && module) {
2305 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2306 } else {
2307 Py_XDECREF(pointer);
2308 }
2309 }
2310
2311 /* The python cached type query */
2312 SWIGRUNTIME PyObject *
2313 SWIG_Python_TypeCache() {
2314 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2315 return cache;
2316 }
2317
2318 SWIGRUNTIME swig_type_info *
2319 SWIG_Python_TypeQuery(const char *type)
2320 {
2321 PyObject *cache = SWIG_Python_TypeCache();
2322 PyObject *key = PyString_FromString(type);
2323 PyObject *obj = PyDict_GetItem(cache, key);
2324 swig_type_info *descriptor;
2325 if (obj) {
2326 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2327 } else {
2328 swig_module_info *swig_module = SWIG_Python_GetModule();
2329 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2330 if (descriptor) {
2331 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2332 PyDict_SetItem(cache, key, obj);
2333 Py_DECREF(obj);
2334 }
2335 }
2336 Py_DECREF(key);
2337 return descriptor;
2338 }
2339
2340 /*
2341 For backward compatibility only
2342 */
2343 #define SWIG_POINTER_EXCEPTION 0
2344 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2345 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2346
2347 SWIGRUNTIME int
2348 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2349 {
2350 if (PyErr_Occurred()) {
2351 PyObject *type = 0;
2352 PyObject *value = 0;
2353 PyObject *traceback = 0;
2354 PyErr_Fetch(&type, &value, &traceback);
2355 if (value) {
2356 PyObject *old_str = PyObject_Str(value);
2357 Py_XINCREF(type);
2358 PyErr_Clear();
2359 if (infront) {
2360 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2361 } else {
2362 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2363 }
2364 Py_DECREF(old_str);
2365 }
2366 return 1;
2367 } else {
2368 return 0;
2369 }
2370 }
2371
2372 SWIGRUNTIME int
2373 SWIG_Python_ArgFail(int argnum)
2374 {
2375 if (PyErr_Occurred()) {
2376 /* add information about failing argument */
2377 char mesg[256];
2378 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2379 return SWIG_Python_AddErrMesg(mesg, 1);
2380 } else {
2381 return 0;
2382 }
2383 }
2384
2385 SWIGRUNTIMEINLINE const char *
2386 PySwigObject_GetDesc(PyObject *self)
2387 {
2388 PySwigObject *v = (PySwigObject *)self;
2389 swig_type_info *ty = v ? v->ty : 0;
2390 return ty ? ty->str : (char*)"";
2391 }
2392
2393 SWIGRUNTIME void
2394 SWIG_Python_TypeError(const char *type, PyObject *obj)
2395 {
2396 if (type) {
2397 #if defined(SWIG_COBJECT_TYPES)
2398 if (obj && PySwigObject_Check(obj)) {
2399 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2400 if (otype) {
2401 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2402 type, otype);
2403 return;
2404 }
2405 } else
2406 #endif
2407 {
2408 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2409 if (otype) {
2410 PyObject *str = PyObject_Str(obj);
2411 const char *cstr = str ? PyString_AsString(str) : 0;
2412 if (cstr) {
2413 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2414 type, otype, cstr);
2415 } else {
2416 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2417 type, otype);
2418 }
2419 Py_XDECREF(str);
2420 return;
2421 }
2422 }
2423 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2424 } else {
2425 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2426 }
2427 }
2428
2429
2430 /* Convert a pointer value, signal an exception on a type mismatch */
2431 SWIGRUNTIME void *
2432 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2433 void *result;
2434 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2435 PyErr_Clear();
2436 if (flags & SWIG_POINTER_EXCEPTION) {
2437 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2438 SWIG_Python_ArgFail(argnum);
2439 }
2440 }
2441 return result;
2442 }
2443
2444
2445 #ifdef __cplusplus
2446 #if 0
2447 { /* cc-mode */
2448 #endif
2449 }
2450 #endif
2451
2452
2453
2454 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2455
2456 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2457
2458
2459
2460 /* -------- TYPES TABLE (BEGIN) -------- */
2461
2462 #define SWIGTYPE_p_bool swig_types[0]
2463 #define SWIGTYPE_p_char swig_types[1]
2464 #define SWIGTYPE_p_form_ops_t swig_types[2]
2465 #define SWIGTYPE_p_int swig_types[3]
2466 #define SWIGTYPE_p_long swig_types[4]
2467 #define SWIGTYPE_p_unsigned_char swig_types[5]
2468 #define SWIGTYPE_p_unsigned_int swig_types[6]
2469 #define SWIGTYPE_p_unsigned_long swig_types[7]
2470 #define SWIGTYPE_p_void swig_types[8]
2471 #define SWIGTYPE_p_wxANIHandler swig_types[9]
2472 #define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2473 #define SWIGTYPE_p_wxActivateEvent swig_types[11]
2474 #define SWIGTYPE_p_wxArrayInt swig_types[12]
2475 #define SWIGTYPE_p_wxArrayString swig_types[13]
2476 #define SWIGTYPE_p_wxBMPHandler swig_types[14]
2477 #define SWIGTYPE_p_wxBitmap swig_types[15]
2478 #define SWIGTYPE_p_wxBitmapButton swig_types[16]
2479 #define SWIGTYPE_p_wxBookCtrlBase swig_types[17]
2480 #define SWIGTYPE_p_wxBookCtrlBaseEvent swig_types[18]
2481 #define SWIGTYPE_p_wxBoxSizer swig_types[19]
2482 #define SWIGTYPE_p_wxButton swig_types[20]
2483 #define SWIGTYPE_p_wxCURHandler swig_types[21]
2484 #define SWIGTYPE_p_wxCheckBox swig_types[22]
2485 #define SWIGTYPE_p_wxCheckListBox swig_types[23]
2486 #define SWIGTYPE_p_wxChildFocusEvent swig_types[24]
2487 #define SWIGTYPE_p_wxChoice swig_types[25]
2488 #define SWIGTYPE_p_wxChoicebook swig_types[26]
2489 #define SWIGTYPE_p_wxChoicebookEvent swig_types[27]
2490 #define SWIGTYPE_p_wxClipboardTextEvent swig_types[28]
2491 #define SWIGTYPE_p_wxCloseEvent swig_types[29]
2492 #define SWIGTYPE_p_wxColour swig_types[30]
2493 #define SWIGTYPE_p_wxComboBox swig_types[31]
2494 #define SWIGTYPE_p_wxCommandEvent swig_types[32]
2495 #define SWIGTYPE_p_wxContextHelp swig_types[33]
2496 #define SWIGTYPE_p_wxContextHelpButton swig_types[34]
2497 #define SWIGTYPE_p_wxContextMenuEvent swig_types[35]
2498 #define SWIGTYPE_p_wxControl swig_types[36]
2499 #define SWIGTYPE_p_wxControlWithItems swig_types[37]
2500 #define SWIGTYPE_p_wxCursor swig_types[38]
2501 #define SWIGTYPE_p_wxDC swig_types[39]
2502 #define SWIGTYPE_p_wxDateEvent swig_types[40]
2503 #define SWIGTYPE_p_wxDatePickerCtrl swig_types[41]
2504 #define SWIGTYPE_p_wxDateTime swig_types[42]
2505 #define SWIGTYPE_p_wxDirFilterListCtrl swig_types[43]
2506 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[44]
2507 #define SWIGTYPE_p_wxDropFilesEvent swig_types[45]
2508 #define SWIGTYPE_p_wxDuplexMode swig_types[46]
2509 #define SWIGTYPE_p_wxEraseEvent swig_types[47]
2510 #define SWIGTYPE_p_wxEvent swig_types[48]
2511 #define SWIGTYPE_p_wxEvtHandler swig_types[49]
2512 #define SWIGTYPE_p_wxFSFile swig_types[50]
2513 #define SWIGTYPE_p_wxFileSystem swig_types[51]
2514 #define SWIGTYPE_p_wxFlexGridSizer swig_types[52]
2515 #define SWIGTYPE_p_wxFocusEvent swig_types[53]
2516 #define SWIGTYPE_p_wxFont swig_types[54]
2517 #define SWIGTYPE_p_wxGBSizerItem swig_types[55]
2518 #define SWIGTYPE_p_wxGIFHandler swig_types[56]
2519 #define SWIGTYPE_p_wxGauge swig_types[57]
2520 #define SWIGTYPE_p_wxGenericDirCtrl swig_types[58]
2521 #define SWIGTYPE_p_wxGenericDragImage swig_types[59]
2522 #define SWIGTYPE_p_wxGridBagSizer swig_types[60]
2523 #define SWIGTYPE_p_wxGridSizer swig_types[61]
2524 #define SWIGTYPE_p_wxHelpEvent swig_types[62]
2525 #define SWIGTYPE_p_wxHelpProvider swig_types[63]
2526 #define SWIGTYPE_p_wxICOHandler swig_types[64]
2527 #define SWIGTYPE_p_wxIcon swig_types[65]
2528 #define SWIGTYPE_p_wxIconizeEvent swig_types[66]
2529 #define SWIGTYPE_p_wxIdleEvent swig_types[67]
2530 #define SWIGTYPE_p_wxImage swig_types[68]
2531 #define SWIGTYPE_p_wxImageHandler swig_types[69]
2532 #define SWIGTYPE_p_wxImageList swig_types[70]
2533 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[71]
2534 #define SWIGTYPE_p_wxInitDialogEvent swig_types[72]
2535 #define SWIGTYPE_p_wxItemContainer swig_types[73]
2536 #define SWIGTYPE_p_wxJPEGHandler swig_types[74]
2537 #define SWIGTYPE_p_wxKeyEvent swig_types[75]
2538 #define SWIGTYPE_p_wxLayoutConstraints swig_types[76]
2539 #define SWIGTYPE_p_wxListBox swig_types[77]
2540 #define SWIGTYPE_p_wxListEvent swig_types[78]
2541 #define SWIGTYPE_p_wxListItem swig_types[79]
2542 #define SWIGTYPE_p_wxListItemAttr swig_types[80]
2543 #define SWIGTYPE_p_wxListView swig_types[81]
2544 #define SWIGTYPE_p_wxListbook swig_types[82]
2545 #define SWIGTYPE_p_wxListbookEvent swig_types[83]
2546 #define SWIGTYPE_p_wxMaximizeEvent swig_types[84]
2547 #define SWIGTYPE_p_wxMemoryDC swig_types[85]
2548 #define SWIGTYPE_p_wxMenu swig_types[86]
2549 #define SWIGTYPE_p_wxMenuBar swig_types[87]
2550 #define SWIGTYPE_p_wxMenuEvent swig_types[88]
2551 #define SWIGTYPE_p_wxMenuItem swig_types[89]
2552 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[90]
2553 #define SWIGTYPE_p_wxMouseEvent swig_types[91]
2554 #define SWIGTYPE_p_wxMoveEvent swig_types[92]
2555 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[93]
2556 #define SWIGTYPE_p_wxNcPaintEvent swig_types[94]
2557 #define SWIGTYPE_p_wxNotebook swig_types[95]
2558 #define SWIGTYPE_p_wxNotebookEvent swig_types[96]
2559 #define SWIGTYPE_p_wxNotifyEvent swig_types[97]
2560 #define SWIGTYPE_p_wxObject swig_types[98]
2561 #define SWIGTYPE_p_wxPCXHandler swig_types[99]
2562 #define SWIGTYPE_p_wxPNGHandler swig_types[100]
2563 #define SWIGTYPE_p_wxPNMHandler swig_types[101]
2564 #define SWIGTYPE_p_wxPaintEvent swig_types[102]
2565 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[103]
2566 #define SWIGTYPE_p_wxPaperSize swig_types[104]
2567 #define SWIGTYPE_p_wxPoint swig_types[105]
2568 #define SWIGTYPE_p_wxPyApp swig_types[106]
2569 #define SWIGTYPE_p_wxPyCommandEvent swig_types[107]
2570 #define SWIGTYPE_p_wxPyControl swig_types[108]
2571 #define SWIGTYPE_p_wxPyEvent swig_types[109]
2572 #define SWIGTYPE_p_wxPyImageHandler swig_types[110]
2573 #define SWIGTYPE_p_wxPyListCtrl swig_types[111]
2574 #define SWIGTYPE_p_wxPySizer swig_types[112]
2575 #define SWIGTYPE_p_wxPyTreeCtrl swig_types[113]
2576 #define SWIGTYPE_p_wxPyTreeItemData swig_types[114]
2577 #define SWIGTYPE_p_wxPyValidator swig_types[115]
2578 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[116]
2579 #define SWIGTYPE_p_wxRadioBox swig_types[117]
2580 #define SWIGTYPE_p_wxRadioButton swig_types[118]
2581 #define SWIGTYPE_p_wxRect swig_types[119]
2582 #define SWIGTYPE_p_wxScrollBar swig_types[120]
2583 #define SWIGTYPE_p_wxScrollEvent swig_types[121]
2584 #define SWIGTYPE_p_wxScrollWinEvent swig_types[122]
2585 #define SWIGTYPE_p_wxSetCursorEvent swig_types[123]
2586 #define SWIGTYPE_p_wxShowEvent swig_types[124]
2587 #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[125]
2588 #define SWIGTYPE_p_wxSize swig_types[126]
2589 #define SWIGTYPE_p_wxSizeEvent swig_types[127]
2590 #define SWIGTYPE_p_wxSizer swig_types[128]
2591 #define SWIGTYPE_p_wxSizerItem swig_types[129]
2592 #define SWIGTYPE_p_wxSlider swig_types[130]
2593 #define SWIGTYPE_p_wxSpinButton swig_types[131]
2594 #define SWIGTYPE_p_wxSpinCtrl swig_types[132]
2595 #define SWIGTYPE_p_wxSpinEvent swig_types[133]
2596 #define SWIGTYPE_p_wxStaticBitmap swig_types[134]
2597 #define SWIGTYPE_p_wxStaticBox swig_types[135]
2598 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[136]
2599 #define SWIGTYPE_p_wxStaticLine swig_types[137]
2600 #define SWIGTYPE_p_wxStaticText swig_types[138]
2601 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[139]
2602 #define SWIGTYPE_p_wxString swig_types[140]
2603 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[141]
2604 #define SWIGTYPE_p_wxTIFFHandler swig_types[142]
2605 #define SWIGTYPE_p_wxTextAttr swig_types[143]
2606 #define SWIGTYPE_p_wxTextCtrl swig_types[144]
2607 #define SWIGTYPE_p_wxTextUrlEvent swig_types[145]
2608 #define SWIGTYPE_p_wxToggleButton swig_types[146]
2609 #define SWIGTYPE_p_wxToolBar swig_types[147]
2610 #define SWIGTYPE_p_wxToolBarBase swig_types[148]
2611 #define SWIGTYPE_p_wxToolBarToolBase swig_types[149]
2612 #define SWIGTYPE_p_wxToolbook swig_types[150]
2613 #define SWIGTYPE_p_wxToolbookEvent swig_types[151]
2614 #define SWIGTYPE_p_wxTreeCtrl swig_types[152]
2615 #define SWIGTYPE_p_wxTreeEvent swig_types[153]
2616 #define SWIGTYPE_p_wxTreeItemId swig_types[154]
2617 #define SWIGTYPE_p_wxTreebook swig_types[155]
2618 #define SWIGTYPE_p_wxTreebookEvent swig_types[156]
2619 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[157]
2620 #define SWIGTYPE_p_wxValidator swig_types[158]
2621 #define SWIGTYPE_p_wxVisualAttributes swig_types[159]
2622 #define SWIGTYPE_p_wxWindow swig_types[160]
2623 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[161]
2624 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[162]
2625 #define SWIGTYPE_p_wxXPMHandler swig_types[163]
2626 static swig_type_info *swig_types[165];
2627 static swig_module_info swig_module = {swig_types, 164, 0, 0, 0, 0};
2628 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2629 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2630
2631 /* -------- TYPES TABLE (END) -------- */
2632
2633 #if (PY_VERSION_HEX <= 0x02000000)
2634 # if !defined(SWIG_PYTHON_CLASSIC)
2635 # error "This python version requires to use swig with the '-classic' option"
2636 # endif
2637 #endif
2638 #if (PY_VERSION_HEX <= 0x02020000)
2639 # error "This python version requires to use swig with the '-nomodern' option"
2640 #endif
2641 #if (PY_VERSION_HEX <= 0x02020000)
2642 # error "This python version requires to use swig with the '-nomodernargs' option"
2643 #endif
2644 #ifndef METH_O
2645 # error "This python version requires to use swig with the '-nofastunpack' option"
2646 #endif
2647
2648 /*-----------------------------------------------
2649 @(target):= _controls_.so
2650 ------------------------------------------------*/
2651 #define SWIG_init init_controls_
2652
2653 #define SWIG_name "_controls_"
2654
2655 #define SWIGVERSION 0x010329
2656
2657
2658 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2659 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2660
2661
2662 #include <stdexcept>
2663
2664
2665 namespace swig {
2666 class PyObject_ptr {
2667 protected:
2668 PyObject *_obj;
2669
2670 public:
2671 PyObject_ptr() :_obj(0)
2672 {
2673 }
2674
2675 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2676 {
2677 Py_XINCREF(_obj);
2678 }
2679
2680 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2681 {
2682 if (initial_ref) Py_XINCREF(_obj);
2683 }
2684
2685 PyObject_ptr & operator=(const PyObject_ptr& item)
2686 {
2687 Py_XINCREF(item._obj);
2688 Py_XDECREF(_obj);
2689 _obj = item._obj;
2690 return *this;
2691 }
2692
2693 ~PyObject_ptr()
2694 {
2695 Py_XDECREF(_obj);
2696 }
2697
2698 operator PyObject *() const
2699 {
2700 return _obj;
2701 }
2702
2703 PyObject *operator->() const
2704 {
2705 return _obj;
2706 }
2707 };
2708 }
2709
2710
2711 namespace swig {
2712 struct PyObject_var : PyObject_ptr {
2713 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2714
2715 PyObject_var & operator = (PyObject* obj)
2716 {
2717 Py_XDECREF(_obj);
2718 _obj = obj;
2719 return *this;
2720 }
2721 };
2722 }
2723
2724
2725 #include "wx/wxPython/wxPython.h"
2726 #include "wx/wxPython/pyclasses.h"
2727
2728 static const wxString wxPyPanelNameStr(wxPanelNameStr);
2729 static const wxString wxPyEmptyString(wxEmptyString);
2730 static const wxString wxPyControlNameStr(wxControlNameStr);
2731
2732 const wxArrayString wxPyEmptyStringArray;
2733
2734 static const wxString wxPyButtonNameStr(wxButtonNameStr);
2735
2736 #define SWIG_From_long PyInt_FromLong
2737
2738
2739 SWIGINTERNINLINE PyObject *
2740 SWIG_From_int (int value)
2741 {
2742 return SWIG_From_long (value);
2743 }
2744
2745
2746 #include <limits.h>
2747 #ifndef LLONG_MIN
2748 # define LLONG_MIN LONG_LONG_MIN
2749 #endif
2750 #ifndef LLONG_MAX
2751 # define LLONG_MAX LONG_LONG_MAX
2752 #endif
2753 #ifndef ULLONG_MAX
2754 # define ULLONG_MAX ULONG_LONG_MAX
2755 #endif
2756
2757
2758 SWIGINTERN int
2759 SWIG_AsVal_long (PyObject* obj, long* val)
2760 {
2761 if (PyNumber_Check(obj)) {
2762 if (val) *val = PyInt_AsLong(obj);
2763 return SWIG_OK;
2764 }
2765 return SWIG_TypeError;
2766 }
2767
2768
2769 SWIGINTERN int
2770 SWIG_AsVal_int (PyObject * obj, int *val)
2771 {
2772 long v;
2773 int res = SWIG_AsVal_long (obj, &v);
2774 if (SWIG_IsOK(res)) {
2775 if ((v < INT_MIN || v > INT_MAX)) {
2776 return SWIG_OverflowError;
2777 } else {
2778 if (val) *val = static_cast< int >(v);
2779 }
2780 }
2781 return res;
2782 }
2783
2784 static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr);
2785
2786 SWIGINTERN int
2787 SWIG_AsVal_bool (PyObject *obj, bool *val)
2788 {
2789 if (obj == Py_True) {
2790 if (val) *val = true;
2791 return SWIG_OK;
2792 } else if (obj == Py_False) {
2793 if (val) *val = false;
2794 return SWIG_OK;
2795 } else {
2796 long v = 0;
2797 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2798 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2799 return res;
2800 }
2801 }
2802
2803 static const wxString wxPyChoiceNameStr(wxChoiceNameStr);
2804 static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr);
2805 static const wxString wxPyGaugeNameStr(wxGaugeNameStr);
2806 static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr);
2807 static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr);
2808 static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr);
2809
2810 #include <wx/checklst.h>
2811
2812 static const wxString wxPyListBoxNameStr(wxListBoxNameStr);
2813 SWIGINTERN void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData=NULL){
2814 if (clientData)
2815 {
2816 wxPyClientData* data = new wxPyClientData(clientData);
2817 self->Insert(item, pos, data);
2818 }
2819 else
2820 self->Insert(item, pos);
2821 }
2822
2823 SWIGINTERN int
2824 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2825 {
2826 long v = 0;
2827 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2828 return SWIG_TypeError;
2829 }
2830 else if (val)
2831 *val = (unsigned long)v;
2832 return SWIG_OK;
2833 }
2834
2835
2836 SWIGINTERN int
2837 SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
2838 {
2839 unsigned long v;
2840 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2841 if (SWIG_IsOK(res)) {
2842 if ((v > UINT_MAX)) {
2843 return SWIG_OverflowError;
2844 } else {
2845 if (val) *val = static_cast< unsigned int >(v);
2846 }
2847 }
2848 return res;
2849 }
2850
2851 SWIGINTERN PyObject *wxListBox_GetSelections(wxListBox *self){
2852 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2853 wxArrayInt lst;
2854 self->GetSelections(lst);
2855 PyObject *tup = PyTuple_New(lst.GetCount());
2856 for (size_t i=0; i<lst.GetCount(); i++)
2857 {
2858 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
2859 }
2860 wxPyEndBlockThreads(blocked);
2861 return tup;
2862 }
2863 SWIGINTERN void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){
2864 #ifdef __WXMSW__
2865 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2866 self->GetItem(item)->SetTextColour(c);
2867 #endif
2868 }
2869 SWIGINTERN void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){
2870 #ifdef __WXMSW__
2871 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2872 self->GetItem(item)->SetBackgroundColour(c);
2873 #endif
2874 }
2875 SWIGINTERN void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){
2876 #ifdef __WXMSW__
2877 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2878 self->GetItem(item)->SetFont(f);
2879 #endif
2880 }
2881 static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr);
2882 SWIGINTERN void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
2883 self->AppendText(text);
2884 }
2885 SWIGINTERN wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
2886 return self->GetValue().Mid(from, to - from);
2887 }
2888 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
2889 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
2890 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
2891 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
2892 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
2893
2894 SWIGINTERNINLINE PyObject*
2895 SWIG_From_unsigned_SS_long (unsigned long value)
2896 {
2897 return (value > LONG_MAX) ?
2898 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2899 }
2900
2901
2902 SWIGINTERNINLINE PyObject *
2903 SWIG_From_size_t (size_t value)
2904 {
2905 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
2906 }
2907
2908
2909 SWIGINTERNINLINE PyObject *
2910 SWIG_From_unsigned_SS_int (unsigned int value)
2911 {
2912 return SWIG_From_unsigned_SS_long (value);
2913 }
2914
2915
2916 #include <wx/slider.h>
2917
2918
2919 static const wxString wxPySliderNameStr(wxSliderNameStr);
2920 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
2921
2922 #if !wxUSE_TOGGLEBTN
2923 // implement dummy items for platforms that don't have this class
2924
2925 #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
2926
2927 class wxToggleButton : public wxControl
2928 {
2929 public:
2930 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
2931 const wxPoint&, const wxSize&, long,
2932 const wxValidator&, const wxString&)
2933 { wxPyRaiseNotImplemented(); }
2934
2935 wxToggleButton()
2936 { wxPyRaiseNotImplemented(); }
2937 };
2938 #endif
2939
2940 static const wxString wxPyNotebookNameStr(wxNotebookNameStr);
2941
2942 SWIGINTERNINLINE int
2943 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
2944 {
2945 unsigned long v;
2946 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
2947 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
2948 return res;
2949 }
2950
2951 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
2952 SWIGINTERN PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
2953 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
2954 if (udata) {
2955 Py_INCREF(udata->m_obj);
2956 return udata->m_obj;
2957 } else {
2958 Py_INCREF(Py_None);
2959 return Py_None;
2960 }
2961 }
2962 SWIGINTERN void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
2963 self->SetClientData(new wxPyUserData(clientData));
2964 }
2965 SWIGINTERN wxToolBarToolBase *wxToolBarBase_DoAddTool(wxToolBarBase *self,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled=wxNullBitmap,wxItemKind kind=wxITEM_NORMAL,wxString const &shortHelp=wxPyEmptyString,wxString const &longHelp=wxPyEmptyString,PyObject *clientData=NULL){
2966 wxPyUserData* udata = NULL;
2967 if (clientData && clientData != Py_None)
2968 udata = new wxPyUserData(clientData);
2969 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
2970 shortHelp, longHelp, udata);
2971 }
2972 SWIGINTERN wxToolBarToolBase *wxToolBarBase_DoInsertTool(wxToolBarBase *self,size_t pos,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled=wxNullBitmap,wxItemKind kind=wxITEM_NORMAL,wxString const &shortHelp=wxPyEmptyString,wxString const &longHelp=wxPyEmptyString,PyObject *clientData=NULL){
2973 wxPyUserData* udata = NULL;
2974 if (clientData && clientData != Py_None)
2975 udata = new wxPyUserData(clientData);
2976 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
2977 shortHelp, longHelp, udata);
2978 }
2979 SWIGINTERN PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
2980 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
2981 if (udata) {
2982 Py_INCREF(udata->m_obj);
2983 return udata->m_obj;
2984 } else {
2985 Py_INCREF(Py_None);
2986 return Py_None;
2987 }
2988 }
2989 SWIGINTERN void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
2990 self->SetToolClientData(id, new wxPyUserData(clientData));
2991 }
2992
2993 #include <wx/listctrl.h>
2994
2995 static const wxString wxPyListCtrlNameStr(wxListCtrlNameStr);
2996 SWIGINTERN void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
2997 // Python aware sorting function for wxPyListCtrl
2998 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
2999 int retval = 0;
3000 PyObject* func = (PyObject*)funcPtr;
3001 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3002
3003 PyObject* args = Py_BuildValue("(ii)", item1, item2);
3004 PyObject* result = PyEval_CallObject(func, args);
3005 Py_DECREF(args);
3006 if (result) {
3007 retval = PyInt_AsLong(result);
3008 Py_DECREF(result);
3009 }
3010
3011 wxPyEndBlockThreads(blocked);
3012 return retval;
3013 }
3014
3015 // C++ Version of a Python aware class
3016 class wxPyListCtrl : public wxListCtrl {
3017 DECLARE_ABSTRACT_CLASS(wxPyListCtrl)
3018 public:
3019 wxPyListCtrl() : wxListCtrl() {}
3020 wxPyListCtrl(wxWindow* parent, wxWindowID id,
3021 const wxPoint& pos,
3022 const wxSize& size,
3023 long style,
3024 const wxValidator& validator,
3025 const wxString& name) :
3026 wxListCtrl(parent, id, pos, size, style, validator, name) {}
3027
3028 bool Create(wxWindow* parent, wxWindowID id,
3029 const wxPoint& pos,
3030 const wxSize& size,
3031 long style,
3032 const wxValidator& validator,
3033 const wxString& name) {
3034 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
3035 }
3036
3037 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
3038 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
3039
3040 // use the virtual version to avoid a confusing assert in the base class
3041 DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage);
3042 DEC_PYCALLBACK_INT_LONGLONG(OnGetItemColumnImage);
3043
3044 PYPRIVATE;
3045 };
3046
3047 IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
3048
3049 IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
3050 IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
3051 IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage);
3052 IMP_PYCALLBACK_INT_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemColumnImage);
3053
3054
3055 SWIGINTERN wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
3056 wxListItem item;
3057 item.SetMask( wxLIST_MASK_STATE |
3058 wxLIST_MASK_TEXT |
3059 wxLIST_MASK_IMAGE |
3060 wxLIST_MASK_DATA |
3061 wxLIST_SET_ITEM |
3062 wxLIST_MASK_WIDTH |
3063 wxLIST_MASK_FORMAT
3064 );
3065 if (self->GetColumn(col, item))
3066 return new wxListItem(item);
3067 else
3068 return NULL;
3069 }
3070 SWIGINTERN wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col=0){
3071 wxListItem* info = new wxListItem;
3072 info->m_itemId = itemId;
3073 info->m_col = col;
3074 info->m_mask = 0xFFFF;
3075 self->GetItem(*info);
3076 return info;
3077 }
3078 SWIGINTERN wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
3079 wxPoint pos;
3080 self->GetItemPosition(item, pos);
3081 return pos;
3082 }
3083 SWIGINTERN wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code=wxLIST_RECT_BOUNDS){
3084 wxRect rect;
3085 self->GetItemRect(item, rect, code);
3086 return rect;
3087 }
3088 SWIGINTERN bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
3089 if (!PyCallable_Check(func))
3090 return false;
3091 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
3092 }
3093 SWIGINTERN wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
3094
3095
3096
3097 return (wxWindow*)self->m_mainWin;
3098
3099 }
3100
3101 #include <wx/treectrl.h>
3102 #include "wx/wxPython/pytree.h"
3103
3104 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
3105 SWIGINTERN bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; }
3106 SWIGINTERN bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; }
3107 SWIGINTERN void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
3108 // C++ version of Python aware wxTreeCtrl
3109 class wxPyTreeCtrl : public wxTreeCtrl {
3110 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl)
3111 public:
3112 wxPyTreeCtrl() : wxTreeCtrl() {}
3113 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
3114 const wxPoint& pos,
3115 const wxSize& size,
3116 long style,
3117 const wxValidator& validator,
3118 const wxString& name) :
3119 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
3120
3121 bool Create(wxWindow *parent, wxWindowID id,
3122 const wxPoint& pos,
3123 const wxSize& size,
3124 long style,
3125 const wxValidator& validator,
3126 const wxString& name) {
3127 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
3128 }
3129
3130
3131 int OnCompareItems(const wxTreeItemId& item1,
3132 const wxTreeItemId& item2) {
3133 int rval = 0;
3134 bool found;
3135 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3136 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
3137 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false);
3138 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false);
3139 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
3140 Py_DECREF(o1);
3141 Py_DECREF(o2);
3142 }
3143 wxPyEndBlockThreads(blocked);
3144 if (! found)
3145 rval = wxTreeCtrl::OnCompareItems(item1, item2);
3146 return rval;
3147 }
3148 PYPRIVATE;
3149 };
3150
3151 IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
3152
3153
3154 SWIGINTERN wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
3155 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3156 if (data == NULL) {
3157 data = new wxPyTreeItemData();
3158 data->SetId(item); // set the id
3159 self->SetItemData(item, data);
3160 }
3161 return data;
3162 }
3163 SWIGINTERN PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
3164 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3165 if (data == NULL) {
3166 data = new wxPyTreeItemData();
3167 data->SetId(item); // set the id
3168 self->SetItemData(item, data);
3169 }
3170 return data->GetData();
3171 }
3172 SWIGINTERN void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
3173 data->SetId(item); // set the id
3174 self->SetItemData(item, data);
3175 }
3176 SWIGINTERN void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
3177 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3178 if (data == NULL) {
3179 data = new wxPyTreeItemData(obj);
3180 data->SetId(item); // set the id
3181 self->SetItemData(item, data);
3182 } else
3183 data->SetData(obj);
3184 }
3185 SWIGINTERN PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
3186 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3187 PyObject* rval = PyList_New(0);
3188 wxArrayTreeItemIds array;
3189 size_t num, x;
3190 num = self->GetSelections(array);
3191 for (x=0; x < num; x++) {
3192 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
3193 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true);
3194 PyList_Append(rval, item);
3195 Py_DECREF(item);
3196 }
3197 wxPyEndBlockThreads(blocked);
3198 return rval;
3199 }
3200 SWIGINTERN PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
3201 void* cookie = 0;
3202 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
3203 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3204 PyObject* tup = PyTuple_New(2);
3205 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
3206 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3207 wxPyEndBlockThreads(blocked);
3208 return tup;
3209 }
3210 SWIGINTERN PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
3211 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
3212 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3213 PyObject* tup = PyTuple_New(2);
3214 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
3215 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3216 wxPyEndBlockThreads(blocked);
3217 return tup;
3218 }
3219 SWIGINTERN PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly=false){
3220 wxRect rect;
3221 if (self->GetBoundingRect(item, rect, textOnly)) {
3222 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3223 wxRect* r = new wxRect(rect);
3224 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true);
3225 wxPyEndBlockThreads(blocked);
3226 return val;
3227 }
3228 else
3229 RETURN_NONE();
3230 }
3231 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
3232
3233 SWIGINTERNINLINE PyObject*
3234 SWIG_From_bool (bool value)
3235 {
3236 return PyBool_FromLong(value ? 1 : 0);
3237 }
3238
3239 // C++ version of Python aware wxControl
3240 class wxPyControl : public wxControl
3241 {
3242 DECLARE_DYNAMIC_CLASS(wxPyControl)
3243 public:
3244 wxPyControl() : wxControl() {}
3245 wxPyControl(wxWindow* parent, const wxWindowID id,
3246 const wxPoint& pos = wxDefaultPosition,
3247 const wxSize& size = wxDefaultSize,
3248 long style = 0,
3249 const wxValidator& validator=wxDefaultValidator,
3250 const wxString& name = wxPyControlNameStr)
3251 : wxControl(parent, id, pos, size, style, validator, name) {}
3252
3253 void SetBestSize(const wxSize& size) { wxControl::SetBestSize(size); }
3254
3255 bool DoEraseBackground(wxDC* dc) {
3256 #ifdef __WXMSW__
3257 return wxWindow::DoEraseBackground(dc->GetHDC());
3258 #else
3259 dc->SetBackground(wxBrush(GetBackgroundColour()));
3260 dc->Clear();
3261 return true;
3262 #endif
3263 }
3264
3265 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
3266 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
3267 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
3268 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
3269
3270 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
3271 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
3272 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
3273
3274 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
3275 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
3276
3277 DEC_PYCALLBACK__(InitDialog);
3278 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
3279 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
3280 DEC_PYCALLBACK_BOOL_(Validate);
3281
3282 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
3283 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
3284 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
3285
3286 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
3287 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
3288
3289 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
3290 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
3291
3292 DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
3293
3294 DEC_PYCALLBACK_VOID_(OnInternalIdle);
3295
3296 PYPRIVATE;
3297 };
3298
3299 IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
3300
3301 IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
3302 IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
3303 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
3304 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
3305
3306 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
3307 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
3308 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
3309
3310 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
3311 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
3312
3313 IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
3314 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
3315 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
3316 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
3317
3318 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
3319 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
3320 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
3321
3322 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
3323 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
3324
3325 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours);
3326 IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
3327
3328 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground);
3329
3330 IMP_PYCALLBACK_VOID_(wxPyControl, wxControl, OnInternalIdle);
3331
3332
3333
3334 SWIGINTERN void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
3335
3336 #include <wx/generic/dragimgg.h>
3337
3338 static const wxString wxPyDatePickerCtrlNameStr(wxDatePickerCtrlNameStr);
3339 SWIGINTERN wxDateTime wxDatePickerCtrl_GetLowerLimit(wxDatePickerCtrl *self){
3340 wxDateTime rv;
3341 self->GetRange(&rv, NULL);
3342 return rv;
3343 }
3344 SWIGINTERN wxDateTime wxDatePickerCtrl_GetUpperLimit(wxDatePickerCtrl *self){
3345 wxDateTime rv;
3346 self->GetRange(NULL, &rv);
3347 return rv;
3348 }
3349 #ifdef __cplusplus
3350 extern "C" {
3351 #endif
3352 SWIGINTERN int ButtonNameStr_set(PyObject *) {
3353 SWIG_Error(SWIG_AttributeError,"Variable ButtonNameStr is read-only.");
3354 return 1;
3355 }
3356
3357
3358 SWIGINTERN PyObject *ButtonNameStr_get(void) {
3359 PyObject *pyobj = 0;
3360
3361 {
3362 #if wxUSE_UNICODE
3363 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
3364 #else
3365 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
3366 #endif
3367 }
3368 return pyobj;
3369 }
3370
3371
3372 SWIGINTERN PyObject *_wrap_new_Button(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3373 PyObject *resultobj = 0;
3374 wxWindow *arg1 = (wxWindow *) 0 ;
3375 int arg2 = (int) -1 ;
3376 wxString const &arg3_defvalue = wxPyEmptyString ;
3377 wxString *arg3 = (wxString *) &arg3_defvalue ;
3378 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3379 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3380 wxSize const &arg5_defvalue = wxDefaultSize ;
3381 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3382 long arg6 = (long) 0 ;
3383 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3384 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3385 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3386 wxString *arg8 = (wxString *) &arg8_defvalue ;
3387 wxButton *result = 0 ;
3388 void *argp1 = 0 ;
3389 int res1 = 0 ;
3390 int val2 ;
3391 int ecode2 = 0 ;
3392 bool temp3 = false ;
3393 wxPoint temp4 ;
3394 wxSize temp5 ;
3395 long val6 ;
3396 int ecode6 = 0 ;
3397 void *argp7 = 0 ;
3398 int res7 = 0 ;
3399 bool temp8 = false ;
3400 PyObject * obj0 = 0 ;
3401 PyObject * obj1 = 0 ;
3402 PyObject * obj2 = 0 ;
3403 PyObject * obj3 = 0 ;
3404 PyObject * obj4 = 0 ;
3405 PyObject * obj5 = 0 ;
3406 PyObject * obj6 = 0 ;
3407 PyObject * obj7 = 0 ;
3408 char * kwnames[] = {
3409 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3410 };
3411
3412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3414 if (!SWIG_IsOK(res1)) {
3415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Button" "', expected argument " "1"" of type '" "wxWindow *""'");
3416 }
3417 arg1 = reinterpret_cast< wxWindow * >(argp1);
3418 if (obj1) {
3419 ecode2 = SWIG_AsVal_int(obj1, &val2);
3420 if (!SWIG_IsOK(ecode2)) {
3421 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Button" "', expected argument " "2"" of type '" "int""'");
3422 }
3423 arg2 = static_cast< int >(val2);
3424 }
3425 if (obj2) {
3426 {
3427 arg3 = wxString_in_helper(obj2);
3428 if (arg3 == NULL) SWIG_fail;
3429 temp3 = true;
3430 }
3431 }
3432 if (obj3) {
3433 {
3434 arg4 = &temp4;
3435 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3436 }
3437 }
3438 if (obj4) {
3439 {
3440 arg5 = &temp5;
3441 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3442 }
3443 }
3444 if (obj5) {
3445 ecode6 = SWIG_AsVal_long(obj5, &val6);
3446 if (!SWIG_IsOK(ecode6)) {
3447 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Button" "', expected argument " "6"" of type '" "long""'");
3448 }
3449 arg6 = static_cast< long >(val6);
3450 }
3451 if (obj6) {
3452 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3453 if (!SWIG_IsOK(res7)) {
3454 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
3455 }
3456 if (!argp7) {
3457 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
3458 }
3459 arg7 = reinterpret_cast< wxValidator * >(argp7);
3460 }
3461 if (obj7) {
3462 {
3463 arg8 = wxString_in_helper(obj7);
3464 if (arg8 == NULL) SWIG_fail;
3465 temp8 = true;
3466 }
3467 }
3468 {
3469 if (!wxPyCheckForApp()) SWIG_fail;
3470 PyThreadState* __tstate = wxPyBeginAllowThreads();
3471 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3472 wxPyEndAllowThreads(__tstate);
3473 if (PyErr_Occurred()) SWIG_fail;
3474 }
3475 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_NEW | 0 );
3476 {
3477 if (temp3)
3478 delete arg3;
3479 }
3480 {
3481 if (temp8)
3482 delete arg8;
3483 }
3484 return resultobj;
3485 fail:
3486 {
3487 if (temp3)
3488 delete arg3;
3489 }
3490 {
3491 if (temp8)
3492 delete arg8;
3493 }
3494 return NULL;
3495 }
3496
3497
3498 SWIGINTERN PyObject *_wrap_new_PreButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3499 PyObject *resultobj = 0;
3500 wxButton *result = 0 ;
3501
3502 if (!SWIG_Python_UnpackTuple(args,"new_PreButton",0,0,0)) SWIG_fail;
3503 {
3504 if (!wxPyCheckForApp()) SWIG_fail;
3505 PyThreadState* __tstate = wxPyBeginAllowThreads();
3506 result = (wxButton *)new wxButton();
3507 wxPyEndAllowThreads(__tstate);
3508 if (PyErr_Occurred()) SWIG_fail;
3509 }
3510 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_OWN | 0 );
3511 return resultobj;
3512 fail:
3513 return NULL;
3514 }
3515
3516
3517 SWIGINTERN PyObject *_wrap_Button_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3518 PyObject *resultobj = 0;
3519 wxButton *arg1 = (wxButton *) 0 ;
3520 wxWindow *arg2 = (wxWindow *) 0 ;
3521 int arg3 = (int) -1 ;
3522 wxString const &arg4_defvalue = wxPyEmptyString ;
3523 wxString *arg4 = (wxString *) &arg4_defvalue ;
3524 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3525 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3526 wxSize const &arg6_defvalue = wxDefaultSize ;
3527 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3528 long arg7 = (long) 0 ;
3529 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3530 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3531 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3532 wxString *arg9 = (wxString *) &arg9_defvalue ;
3533 bool result;
3534 void *argp1 = 0 ;
3535 int res1 = 0 ;
3536 void *argp2 = 0 ;
3537 int res2 = 0 ;
3538 int val3 ;
3539 int ecode3 = 0 ;
3540 bool temp4 = false ;
3541 wxPoint temp5 ;
3542 wxSize temp6 ;
3543 long val7 ;
3544 int ecode7 = 0 ;
3545 void *argp8 = 0 ;
3546 int res8 = 0 ;
3547 bool temp9 = false ;
3548 PyObject * obj0 = 0 ;
3549 PyObject * obj1 = 0 ;
3550 PyObject * obj2 = 0 ;
3551 PyObject * obj3 = 0 ;
3552 PyObject * obj4 = 0 ;
3553 PyObject * obj5 = 0 ;
3554 PyObject * obj6 = 0 ;
3555 PyObject * obj7 = 0 ;
3556 PyObject * obj8 = 0 ;
3557 char * kwnames[] = {
3558 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3559 };
3560
3561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3563 if (!SWIG_IsOK(res1)) {
3564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_Create" "', expected argument " "1"" of type '" "wxButton *""'");
3565 }
3566 arg1 = reinterpret_cast< wxButton * >(argp1);
3567 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3568 if (!SWIG_IsOK(res2)) {
3569 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Button_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3570 }
3571 arg2 = reinterpret_cast< wxWindow * >(argp2);
3572 if (obj2) {
3573 ecode3 = SWIG_AsVal_int(obj2, &val3);
3574 if (!SWIG_IsOK(ecode3)) {
3575 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Button_Create" "', expected argument " "3"" of type '" "int""'");
3576 }
3577 arg3 = static_cast< int >(val3);
3578 }
3579 if (obj3) {
3580 {
3581 arg4 = wxString_in_helper(obj3);
3582 if (arg4 == NULL) SWIG_fail;
3583 temp4 = true;
3584 }
3585 }
3586 if (obj4) {
3587 {
3588 arg5 = &temp5;
3589 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3590 }
3591 }
3592 if (obj5) {
3593 {
3594 arg6 = &temp6;
3595 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3596 }
3597 }
3598 if (obj6) {
3599 ecode7 = SWIG_AsVal_long(obj6, &val7);
3600 if (!SWIG_IsOK(ecode7)) {
3601 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Button_Create" "', expected argument " "7"" of type '" "long""'");
3602 }
3603 arg7 = static_cast< long >(val7);
3604 }
3605 if (obj7) {
3606 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3607 if (!SWIG_IsOK(res8)) {
3608 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3609 }
3610 if (!argp8) {
3611 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3612 }
3613 arg8 = reinterpret_cast< wxValidator * >(argp8);
3614 }
3615 if (obj8) {
3616 {
3617 arg9 = wxString_in_helper(obj8);
3618 if (arg9 == NULL) SWIG_fail;
3619 temp9 = true;
3620 }
3621 }
3622 {
3623 PyThreadState* __tstate = wxPyBeginAllowThreads();
3624 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3625 wxPyEndAllowThreads(__tstate);
3626 if (PyErr_Occurred()) SWIG_fail;
3627 }
3628 {
3629 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3630 }
3631 {
3632 if (temp4)
3633 delete arg4;
3634 }
3635 {
3636 if (temp9)
3637 delete arg9;
3638 }
3639 return resultobj;
3640 fail:
3641 {
3642 if (temp4)
3643 delete arg4;
3644 }
3645 {
3646 if (temp9)
3647 delete arg9;
3648 }
3649 return NULL;
3650 }
3651
3652
3653 SWIGINTERN PyObject *_wrap_Button_SetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3654 PyObject *resultobj = 0;
3655 wxButton *arg1 = (wxButton *) 0 ;
3656 void *argp1 = 0 ;
3657 int res1 = 0 ;
3658 PyObject *swig_obj[1] ;
3659
3660 if (!args) SWIG_fail;
3661 swig_obj[0] = args;
3662 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3663 if (!SWIG_IsOK(res1)) {
3664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_SetDefault" "', expected argument " "1"" of type '" "wxButton *""'");
3665 }
3666 arg1 = reinterpret_cast< wxButton * >(argp1);
3667 {
3668 PyThreadState* __tstate = wxPyBeginAllowThreads();
3669 (arg1)->SetDefault();
3670 wxPyEndAllowThreads(__tstate);
3671 if (PyErr_Occurred()) SWIG_fail;
3672 }
3673 resultobj = SWIG_Py_Void();
3674 return resultobj;
3675 fail:
3676 return NULL;
3677 }
3678
3679
3680 SWIGINTERN PyObject *_wrap_Button_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3681 PyObject *resultobj = 0;
3682 wxSize result;
3683
3684 if (!SWIG_Python_UnpackTuple(args,"Button_GetDefaultSize",0,0,0)) SWIG_fail;
3685 {
3686 PyThreadState* __tstate = wxPyBeginAllowThreads();
3687 result = wxButton::GetDefaultSize();
3688 wxPyEndAllowThreads(__tstate);
3689 if (PyErr_Occurred()) SWIG_fail;
3690 }
3691 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
3692 return resultobj;
3693 fail:
3694 return NULL;
3695 }
3696
3697
3698 SWIGINTERN PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3699 PyObject *resultobj = 0;
3700 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
3701 SwigValueWrapper<wxVisualAttributes > result;
3702 int val1 ;
3703 int ecode1 = 0 ;
3704 PyObject * obj0 = 0 ;
3705 char * kwnames[] = {
3706 (char *) "variant", NULL
3707 };
3708
3709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
3710 if (obj0) {
3711 ecode1 = SWIG_AsVal_int(obj0, &val1);
3712 if (!SWIG_IsOK(ecode1)) {
3713 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Button_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
3714 }
3715 arg1 = static_cast< wxWindowVariant >(val1);
3716 }
3717 {
3718 if (!wxPyCheckForApp()) SWIG_fail;
3719 PyThreadState* __tstate = wxPyBeginAllowThreads();
3720 result = wxButton::GetClassDefaultAttributes(arg1);
3721 wxPyEndAllowThreads(__tstate);
3722 if (PyErr_Occurred()) SWIG_fail;
3723 }
3724 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
3725 return resultobj;
3726 fail:
3727 return NULL;
3728 }
3729
3730
3731 SWIGINTERN PyObject *Button_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3732 PyObject *obj;
3733 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3734 SWIG_TypeNewClientData(SWIGTYPE_p_wxButton, SWIG_NewClientData(obj));
3735 return SWIG_Py_Void();
3736 }
3737
3738 SWIGINTERN PyObject *Button_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3739 return SWIG_Python_InitShadowInstance(args);
3740 }
3741
3742 SWIGINTERN PyObject *_wrap_new_BitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3743 PyObject *resultobj = 0;
3744 wxWindow *arg1 = (wxWindow *) 0 ;
3745 int arg2 = (int) -1 ;
3746 wxBitmap const &arg3_defvalue = wxNullBitmap ;
3747 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
3748 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3749 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3750 wxSize const &arg5_defvalue = wxDefaultSize ;
3751 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3752 long arg6 = (long) wxBU_AUTODRAW ;
3753 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3754 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3755 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3756 wxString *arg8 = (wxString *) &arg8_defvalue ;
3757 wxBitmapButton *result = 0 ;
3758 void *argp1 = 0 ;
3759 int res1 = 0 ;
3760 int val2 ;
3761 int ecode2 = 0 ;
3762 void *argp3 = 0 ;
3763 int res3 = 0 ;
3764 wxPoint temp4 ;
3765 wxSize temp5 ;
3766 long val6 ;
3767 int ecode6 = 0 ;
3768 void *argp7 = 0 ;
3769 int res7 = 0 ;
3770 bool temp8 = false ;
3771 PyObject * obj0 = 0 ;
3772 PyObject * obj1 = 0 ;
3773 PyObject * obj2 = 0 ;
3774 PyObject * obj3 = 0 ;
3775 PyObject * obj4 = 0 ;
3776 PyObject * obj5 = 0 ;
3777 PyObject * obj6 = 0 ;
3778 PyObject * obj7 = 0 ;
3779 char * kwnames[] = {
3780 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3781 };
3782
3783 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3784 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3785 if (!SWIG_IsOK(res1)) {
3786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapButton" "', expected argument " "1"" of type '" "wxWindow *""'");
3787 }
3788 arg1 = reinterpret_cast< wxWindow * >(argp1);
3789 if (obj1) {
3790 ecode2 = SWIG_AsVal_int(obj1, &val2);
3791 if (!SWIG_IsOK(ecode2)) {
3792 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapButton" "', expected argument " "2"" of type '" "int""'");
3793 }
3794 arg2 = static_cast< int >(val2);
3795 }
3796 if (obj2) {
3797 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
3798 if (!SWIG_IsOK(res3)) {
3799 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3800 }
3801 if (!argp3) {
3802 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3803 }
3804 arg3 = reinterpret_cast< wxBitmap * >(argp3);
3805 }
3806 if (obj3) {
3807 {
3808 arg4 = &temp4;
3809 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3810 }
3811 }
3812 if (obj4) {
3813 {
3814 arg5 = &temp5;
3815 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3816 }
3817 }
3818 if (obj5) {
3819 ecode6 = SWIG_AsVal_long(obj5, &val6);
3820 if (!SWIG_IsOK(ecode6)) {
3821 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_BitmapButton" "', expected argument " "6"" of type '" "long""'");
3822 }
3823 arg6 = static_cast< long >(val6);
3824 }
3825 if (obj6) {
3826 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3827 if (!SWIG_IsOK(res7)) {
3828 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
3829 }
3830 if (!argp7) {
3831 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
3832 }
3833 arg7 = reinterpret_cast< wxValidator * >(argp7);
3834 }
3835 if (obj7) {
3836 {
3837 arg8 = wxString_in_helper(obj7);
3838 if (arg8 == NULL) SWIG_fail;
3839 temp8 = true;
3840 }
3841 }
3842 {
3843 if (!wxPyCheckForApp()) SWIG_fail;
3844 PyThreadState* __tstate = wxPyBeginAllowThreads();
3845 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3846 wxPyEndAllowThreads(__tstate);
3847 if (PyErr_Occurred()) SWIG_fail;
3848 }
3849 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_NEW | 0 );
3850 {
3851 if (temp8)
3852 delete arg8;
3853 }
3854 return resultobj;
3855 fail:
3856 {
3857 if (temp8)
3858 delete arg8;
3859 }
3860 return NULL;
3861 }
3862
3863
3864 SWIGINTERN PyObject *_wrap_new_PreBitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3865 PyObject *resultobj = 0;
3866 wxBitmapButton *result = 0 ;
3867
3868 if (!SWIG_Python_UnpackTuple(args,"new_PreBitmapButton",0,0,0)) SWIG_fail;
3869 {
3870 if (!wxPyCheckForApp()) SWIG_fail;
3871 PyThreadState* __tstate = wxPyBeginAllowThreads();
3872 result = (wxBitmapButton *)new wxBitmapButton();
3873 wxPyEndAllowThreads(__tstate);
3874 if (PyErr_Occurred()) SWIG_fail;
3875 }
3876 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_OWN | 0 );
3877 return resultobj;
3878 fail:
3879 return NULL;
3880 }
3881
3882
3883 SWIGINTERN PyObject *_wrap_BitmapButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3884 PyObject *resultobj = 0;
3885 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
3886 wxWindow *arg2 = (wxWindow *) 0 ;
3887 int arg3 = (int) -1 ;
3888 wxBitmap const &arg4_defvalue = wxNullBitmap ;
3889 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
3890 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3891 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3892 wxSize const &arg6_defvalue = wxDefaultSize ;
3893 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3894 long arg7 = (long) wxBU_AUTODRAW ;
3895 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3896 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3897 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3898 wxString *arg9 = (wxString *) &arg9_defvalue ;
3899 bool result;
3900 void *argp1 = 0 ;
3901 int res1 = 0 ;
3902 void *argp2 = 0 ;
3903 int res2 = 0 ;
3904 int val3 ;
3905 int ecode3 = 0 ;
3906 void *argp4 = 0 ;
3907 int res4 = 0 ;
3908 wxPoint temp5 ;
3909 wxSize temp6 ;
3910 long val7 ;
3911 int ecode7 = 0 ;
3912 void *argp8 = 0 ;
3913 int res8 = 0 ;
3914 bool temp9 = false ;
3915 PyObject * obj0 = 0 ;
3916 PyObject * obj1 = 0 ;
3917 PyObject * obj2 = 0 ;
3918 PyObject * obj3 = 0 ;
3919 PyObject * obj4 = 0 ;
3920 PyObject * obj5 = 0 ;
3921 PyObject * obj6 = 0 ;
3922 PyObject * obj7 = 0 ;
3923 PyObject * obj8 = 0 ;
3924 char * kwnames[] = {
3925 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3926 };
3927
3928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
3930 if (!SWIG_IsOK(res1)) {
3931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_Create" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
3932 }
3933 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
3934 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3935 if (!SWIG_IsOK(res2)) {
3936 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3937 }
3938 arg2 = reinterpret_cast< wxWindow * >(argp2);
3939 if (obj2) {
3940 ecode3 = SWIG_AsVal_int(obj2, &val3);
3941 if (!SWIG_IsOK(ecode3)) {
3942 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_Create" "', expected argument " "3"" of type '" "int""'");
3943 }
3944 arg3 = static_cast< int >(val3);
3945 }
3946 if (obj3) {
3947 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
3948 if (!SWIG_IsOK(res4)) {
3949 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
3950 }
3951 if (!argp4) {
3952 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
3953 }
3954 arg4 = reinterpret_cast< wxBitmap * >(argp4);
3955 }
3956 if (obj4) {
3957 {
3958 arg5 = &temp5;
3959 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3960 }
3961 }
3962 if (obj5) {
3963 {
3964 arg6 = &temp6;
3965 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3966 }
3967 }
3968 if (obj6) {
3969 ecode7 = SWIG_AsVal_long(obj6, &val7);
3970 if (!SWIG_IsOK(ecode7)) {
3971 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "BitmapButton_Create" "', expected argument " "7"" of type '" "long""'");
3972 }
3973 arg7 = static_cast< long >(val7);
3974 }
3975 if (obj7) {
3976 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3977 if (!SWIG_IsOK(res8)) {
3978 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3979 }
3980 if (!argp8) {
3981 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3982 }
3983 arg8 = reinterpret_cast< wxValidator * >(argp8);
3984 }
3985 if (obj8) {
3986 {
3987 arg9 = wxString_in_helper(obj8);
3988 if (arg9 == NULL) SWIG_fail;
3989 temp9 = true;
3990 }
3991 }
3992 {
3993 PyThreadState* __tstate = wxPyBeginAllowThreads();
3994 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3995 wxPyEndAllowThreads(__tstate);
3996 if (PyErr_Occurred()) SWIG_fail;
3997 }
3998 {
3999 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4000 }
4001 {
4002 if (temp9)
4003 delete arg9;
4004 }
4005 return resultobj;
4006 fail:
4007 {
4008 if (temp9)
4009 delete arg9;
4010 }
4011 return NULL;
4012 }
4013
4014
4015 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4016 PyObject *resultobj = 0;
4017 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4018 wxBitmap result;
4019 void *argp1 = 0 ;
4020 int res1 = 0 ;
4021 PyObject *swig_obj[1] ;
4022
4023 if (!args) SWIG_fail;
4024 swig_obj[0] = args;
4025 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4026 if (!SWIG_IsOK(res1)) {
4027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4028 }
4029 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4030 {
4031 PyThreadState* __tstate = wxPyBeginAllowThreads();
4032 result = (arg1)->GetBitmapLabel();
4033 wxPyEndAllowThreads(__tstate);
4034 if (PyErr_Occurred()) SWIG_fail;
4035 }
4036 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4037 return resultobj;
4038 fail:
4039 return NULL;
4040 }
4041
4042
4043 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4044 PyObject *resultobj = 0;
4045 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4046 wxBitmap result;
4047 void *argp1 = 0 ;
4048 int res1 = 0 ;
4049 PyObject *swig_obj[1] ;
4050
4051 if (!args) SWIG_fail;
4052 swig_obj[0] = args;
4053 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4054 if (!SWIG_IsOK(res1)) {
4055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4056 }
4057 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4058 {
4059 PyThreadState* __tstate = wxPyBeginAllowThreads();
4060 result = (arg1)->GetBitmapDisabled();
4061 wxPyEndAllowThreads(__tstate);
4062 if (PyErr_Occurred()) SWIG_fail;
4063 }
4064 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4065 return resultobj;
4066 fail:
4067 return NULL;
4068 }
4069
4070
4071 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4072 PyObject *resultobj = 0;
4073 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4074 wxBitmap result;
4075 void *argp1 = 0 ;
4076 int res1 = 0 ;
4077 PyObject *swig_obj[1] ;
4078
4079 if (!args) SWIG_fail;
4080 swig_obj[0] = args;
4081 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4082 if (!SWIG_IsOK(res1)) {
4083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4084 }
4085 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4086 {
4087 PyThreadState* __tstate = wxPyBeginAllowThreads();
4088 result = (arg1)->GetBitmapFocus();
4089 wxPyEndAllowThreads(__tstate);
4090 if (PyErr_Occurred()) SWIG_fail;
4091 }
4092 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4093 return resultobj;
4094 fail:
4095 return NULL;
4096 }
4097
4098
4099 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4100 PyObject *resultobj = 0;
4101 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4102 wxBitmap result;
4103 void *argp1 = 0 ;
4104 int res1 = 0 ;
4105 PyObject *swig_obj[1] ;
4106
4107 if (!args) SWIG_fail;
4108 swig_obj[0] = args;
4109 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4110 if (!SWIG_IsOK(res1)) {
4111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4112 }
4113 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4114 {
4115 PyThreadState* __tstate = wxPyBeginAllowThreads();
4116 result = (arg1)->GetBitmapSelected();
4117 wxPyEndAllowThreads(__tstate);
4118 if (PyErr_Occurred()) SWIG_fail;
4119 }
4120 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4121 return resultobj;
4122 fail:
4123 return NULL;
4124 }
4125
4126
4127 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4128 PyObject *resultobj = 0;
4129 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4130 wxBitmap result;
4131 void *argp1 = 0 ;
4132 int res1 = 0 ;
4133 PyObject *swig_obj[1] ;
4134
4135 if (!args) SWIG_fail;
4136 swig_obj[0] = args;
4137 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4138 if (!SWIG_IsOK(res1)) {
4139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4140 }
4141 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4142 {
4143 PyThreadState* __tstate = wxPyBeginAllowThreads();
4144 result = (arg1)->GetBitmapHover();
4145 wxPyEndAllowThreads(__tstate);
4146 if (PyErr_Occurred()) SWIG_fail;
4147 }
4148 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4149 return resultobj;
4150 fail:
4151 return NULL;
4152 }
4153
4154
4155 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4156 PyObject *resultobj = 0;
4157 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4158 wxBitmap *arg2 = 0 ;
4159 void *argp1 = 0 ;
4160 int res1 = 0 ;
4161 void *argp2 = 0 ;
4162 int res2 = 0 ;
4163 PyObject * obj0 = 0 ;
4164 PyObject * obj1 = 0 ;
4165 char * kwnames[] = {
4166 (char *) "self",(char *) "bitmap", NULL
4167 };
4168
4169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) SWIG_fail;
4170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4171 if (!SWIG_IsOK(res1)) {
4172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4173 }
4174 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4175 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4176 if (!SWIG_IsOK(res2)) {
4177 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4178 }
4179 if (!argp2) {
4180 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4181 }
4182 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4183 {
4184 PyThreadState* __tstate = wxPyBeginAllowThreads();
4185 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
4186 wxPyEndAllowThreads(__tstate);
4187 if (PyErr_Occurred()) SWIG_fail;
4188 }
4189 resultobj = SWIG_Py_Void();
4190 return resultobj;
4191 fail:
4192 return NULL;
4193 }
4194
4195
4196 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4197 PyObject *resultobj = 0;
4198 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4199 wxBitmap *arg2 = 0 ;
4200 void *argp1 = 0 ;
4201 int res1 = 0 ;
4202 void *argp2 = 0 ;
4203 int res2 = 0 ;
4204 PyObject * obj0 = 0 ;
4205 PyObject * obj1 = 0 ;
4206 char * kwnames[] = {
4207 (char *) "self",(char *) "bitmap", NULL
4208 };
4209
4210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) SWIG_fail;
4211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4212 if (!SWIG_IsOK(res1)) {
4213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4214 }
4215 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4216 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4217 if (!SWIG_IsOK(res2)) {
4218 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4219 }
4220 if (!argp2) {
4221 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4222 }
4223 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4224 {
4225 PyThreadState* __tstate = wxPyBeginAllowThreads();
4226 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
4227 wxPyEndAllowThreads(__tstate);
4228 if (PyErr_Occurred()) SWIG_fail;
4229 }
4230 resultobj = SWIG_Py_Void();
4231 return resultobj;
4232 fail:
4233 return NULL;
4234 }
4235
4236
4237 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4238 PyObject *resultobj = 0;
4239 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4240 wxBitmap *arg2 = 0 ;
4241 void *argp1 = 0 ;
4242 int res1 = 0 ;
4243 void *argp2 = 0 ;
4244 int res2 = 0 ;
4245 PyObject * obj0 = 0 ;
4246 PyObject * obj1 = 0 ;
4247 char * kwnames[] = {
4248 (char *) "self",(char *) "bitmap", NULL
4249 };
4250
4251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) SWIG_fail;
4252 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4253 if (!SWIG_IsOK(res1)) {
4254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4255 }
4256 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4257 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4258 if (!SWIG_IsOK(res2)) {
4259 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4260 }
4261 if (!argp2) {
4262 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4263 }
4264 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4265 {
4266 PyThreadState* __tstate = wxPyBeginAllowThreads();
4267 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
4268 wxPyEndAllowThreads(__tstate);
4269 if (PyErr_Occurred()) SWIG_fail;
4270 }
4271 resultobj = SWIG_Py_Void();
4272 return resultobj;
4273 fail:
4274 return NULL;
4275 }
4276
4277
4278 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4279 PyObject *resultobj = 0;
4280 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4281 wxBitmap *arg2 = 0 ;
4282 void *argp1 = 0 ;
4283 int res1 = 0 ;
4284 void *argp2 = 0 ;
4285 int res2 = 0 ;
4286 PyObject * obj0 = 0 ;
4287 PyObject * obj1 = 0 ;
4288 char * kwnames[] = {
4289 (char *) "self",(char *) "bitmap", NULL
4290 };
4291
4292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) SWIG_fail;
4293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4294 if (!SWIG_IsOK(res1)) {
4295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4296 }
4297 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4298 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4299 if (!SWIG_IsOK(res2)) {
4300 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4301 }
4302 if (!argp2) {
4303 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4304 }
4305 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4306 {
4307 PyThreadState* __tstate = wxPyBeginAllowThreads();
4308 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
4309 wxPyEndAllowThreads(__tstate);
4310 if (PyErr_Occurred()) SWIG_fail;
4311 }
4312 resultobj = SWIG_Py_Void();
4313 return resultobj;
4314 fail:
4315 return NULL;
4316 }
4317
4318
4319 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4320 PyObject *resultobj = 0;
4321 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4322 wxBitmap *arg2 = 0 ;
4323 void *argp1 = 0 ;
4324 int res1 = 0 ;
4325 void *argp2 = 0 ;
4326 int res2 = 0 ;
4327 PyObject * obj0 = 0 ;
4328 PyObject * obj1 = 0 ;
4329 char * kwnames[] = {
4330 (char *) "self",(char *) "hover", NULL
4331 };
4332
4333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapHover",kwnames,&obj0,&obj1)) SWIG_fail;
4334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4335 if (!SWIG_IsOK(res1)) {
4336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4337 }
4338 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4339 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4340 if (!SWIG_IsOK(res2)) {
4341 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4342 }
4343 if (!argp2) {
4344 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4345 }
4346 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4347 {
4348 PyThreadState* __tstate = wxPyBeginAllowThreads();
4349 (arg1)->SetBitmapHover((wxBitmap const &)*arg2);
4350 wxPyEndAllowThreads(__tstate);
4351 if (PyErr_Occurred()) SWIG_fail;
4352 }
4353 resultobj = SWIG_Py_Void();
4354 return resultobj;
4355 fail:
4356 return NULL;
4357 }
4358
4359
4360 SWIGINTERN PyObject *_wrap_BitmapButton_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4361 PyObject *resultobj = 0;
4362 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4363 int arg2 ;
4364 int arg3 ;
4365 void *argp1 = 0 ;
4366 int res1 = 0 ;
4367 int val2 ;
4368 int ecode2 = 0 ;
4369 int val3 ;
4370 int ecode3 = 0 ;
4371 PyObject * obj0 = 0 ;
4372 PyObject * obj1 = 0 ;
4373 PyObject * obj2 = 0 ;
4374 char * kwnames[] = {
4375 (char *) "self",(char *) "x",(char *) "y", NULL
4376 };
4377
4378 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4379 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4380 if (!SWIG_IsOK(res1)) {
4381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetMargins" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4382 }
4383 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4384 ecode2 = SWIG_AsVal_int(obj1, &val2);
4385 if (!SWIG_IsOK(ecode2)) {
4386 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BitmapButton_SetMargins" "', expected argument " "2"" of type '" "int""'");
4387 }
4388 arg2 = static_cast< int >(val2);
4389 ecode3 = SWIG_AsVal_int(obj2, &val3);
4390 if (!SWIG_IsOK(ecode3)) {
4391 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_SetMargins" "', expected argument " "3"" of type '" "int""'");
4392 }
4393 arg3 = static_cast< int >(val3);
4394 {
4395 PyThreadState* __tstate = wxPyBeginAllowThreads();
4396 (arg1)->SetMargins(arg2,arg3);
4397 wxPyEndAllowThreads(__tstate);
4398 if (PyErr_Occurred()) SWIG_fail;
4399 }
4400 resultobj = SWIG_Py_Void();
4401 return resultobj;
4402 fail:
4403 return NULL;
4404 }
4405
4406
4407 SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4408 PyObject *resultobj = 0;
4409 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4410 int result;
4411 void *argp1 = 0 ;
4412 int res1 = 0 ;
4413 PyObject *swig_obj[1] ;
4414
4415 if (!args) SWIG_fail;
4416 swig_obj[0] = args;
4417 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4418 if (!SWIG_IsOK(res1)) {
4419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginX" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4420 }
4421 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4422 {
4423 PyThreadState* __tstate = wxPyBeginAllowThreads();
4424 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
4425 wxPyEndAllowThreads(__tstate);
4426 if (PyErr_Occurred()) SWIG_fail;
4427 }
4428 resultobj = SWIG_From_int(static_cast< int >(result));
4429 return resultobj;
4430 fail:
4431 return NULL;
4432 }
4433
4434
4435 SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4436 PyObject *resultobj = 0;
4437 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4438 int result;
4439 void *argp1 = 0 ;
4440 int res1 = 0 ;
4441 PyObject *swig_obj[1] ;
4442
4443 if (!args) SWIG_fail;
4444 swig_obj[0] = args;
4445 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4446 if (!SWIG_IsOK(res1)) {
4447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginY" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4448 }
4449 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4450 {
4451 PyThreadState* __tstate = wxPyBeginAllowThreads();
4452 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
4453 wxPyEndAllowThreads(__tstate);
4454 if (PyErr_Occurred()) SWIG_fail;
4455 }
4456 resultobj = SWIG_From_int(static_cast< int >(result));
4457 return resultobj;
4458 fail:
4459 return NULL;
4460 }
4461
4462
4463 SWIGINTERN PyObject *BitmapButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4464 PyObject *obj;
4465 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4466 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmapButton, SWIG_NewClientData(obj));
4467 return SWIG_Py_Void();
4468 }
4469
4470 SWIGINTERN PyObject *BitmapButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4471 return SWIG_Python_InitShadowInstance(args);
4472 }
4473
4474 SWIGINTERN int CheckBoxNameStr_set(PyObject *) {
4475 SWIG_Error(SWIG_AttributeError,"Variable CheckBoxNameStr is read-only.");
4476 return 1;
4477 }
4478
4479
4480 SWIGINTERN PyObject *CheckBoxNameStr_get(void) {
4481 PyObject *pyobj = 0;
4482
4483 {
4484 #if wxUSE_UNICODE
4485 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4486 #else
4487 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4488 #endif
4489 }
4490 return pyobj;
4491 }
4492
4493
4494 SWIGINTERN PyObject *_wrap_new_CheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4495 PyObject *resultobj = 0;
4496 wxWindow *arg1 = (wxWindow *) 0 ;
4497 int arg2 = (int) -1 ;
4498 wxString const &arg3_defvalue = wxPyEmptyString ;
4499 wxString *arg3 = (wxString *) &arg3_defvalue ;
4500 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4501 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4502 wxSize const &arg5_defvalue = wxDefaultSize ;
4503 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4504 long arg6 = (long) 0 ;
4505 wxValidator const &arg7_defvalue = wxDefaultValidator ;
4506 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
4507 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
4508 wxString *arg8 = (wxString *) &arg8_defvalue ;
4509 wxCheckBox *result = 0 ;
4510 void *argp1 = 0 ;
4511 int res1 = 0 ;
4512 int val2 ;
4513 int ecode2 = 0 ;
4514 bool temp3 = false ;
4515 wxPoint temp4 ;
4516 wxSize temp5 ;
4517 long val6 ;
4518 int ecode6 = 0 ;
4519 void *argp7 = 0 ;
4520 int res7 = 0 ;
4521 bool temp8 = false ;
4522 PyObject * obj0 = 0 ;
4523 PyObject * obj1 = 0 ;
4524 PyObject * obj2 = 0 ;
4525 PyObject * obj3 = 0 ;
4526 PyObject * obj4 = 0 ;
4527 PyObject * obj5 = 0 ;
4528 PyObject * obj6 = 0 ;
4529 PyObject * obj7 = 0 ;
4530 char * kwnames[] = {
4531 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4532 };
4533
4534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
4535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
4536 if (!SWIG_IsOK(res1)) {
4537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckBox" "', expected argument " "1"" of type '" "wxWindow *""'");
4538 }
4539 arg1 = reinterpret_cast< wxWindow * >(argp1);
4540 if (obj1) {
4541 ecode2 = SWIG_AsVal_int(obj1, &val2);
4542 if (!SWIG_IsOK(ecode2)) {
4543 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckBox" "', expected argument " "2"" of type '" "int""'");
4544 }
4545 arg2 = static_cast< int >(val2);
4546 }
4547 if (obj2) {
4548 {
4549 arg3 = wxString_in_helper(obj2);
4550 if (arg3 == NULL) SWIG_fail;
4551 temp3 = true;
4552 }
4553 }
4554 if (obj3) {
4555 {
4556 arg4 = &temp4;
4557 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4558 }
4559 }
4560 if (obj4) {
4561 {
4562 arg5 = &temp5;
4563 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4564 }
4565 }
4566 if (obj5) {
4567 ecode6 = SWIG_AsVal_long(obj5, &val6);
4568 if (!SWIG_IsOK(ecode6)) {
4569 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckBox" "', expected argument " "6"" of type '" "long""'");
4570 }
4571 arg6 = static_cast< long >(val6);
4572 }
4573 if (obj6) {
4574 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
4575 if (!SWIG_IsOK(res7)) {
4576 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4577 }
4578 if (!argp7) {
4579 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4580 }
4581 arg7 = reinterpret_cast< wxValidator * >(argp7);
4582 }
4583 if (obj7) {
4584 {
4585 arg8 = wxString_in_helper(obj7);
4586 if (arg8 == NULL) SWIG_fail;
4587 temp8 = true;
4588 }
4589 }
4590 {
4591 if (!wxPyCheckForApp()) SWIG_fail;
4592 PyThreadState* __tstate = wxPyBeginAllowThreads();
4593 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
4594 wxPyEndAllowThreads(__tstate);
4595 if (PyErr_Occurred()) SWIG_fail;
4596 }
4597 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_NEW | 0 );
4598 {
4599 if (temp3)
4600 delete arg3;
4601 }
4602 {
4603 if (temp8)
4604 delete arg8;
4605 }
4606 return resultobj;
4607 fail:
4608 {
4609 if (temp3)
4610 delete arg3;
4611 }
4612 {
4613 if (temp8)
4614 delete arg8;
4615 }
4616 return NULL;
4617 }
4618
4619
4620 SWIGINTERN PyObject *_wrap_new_PreCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4621 PyObject *resultobj = 0;
4622 wxCheckBox *result = 0 ;
4623
4624 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckBox",0,0,0)) SWIG_fail;
4625 {
4626 if (!wxPyCheckForApp()) SWIG_fail;
4627 PyThreadState* __tstate = wxPyBeginAllowThreads();
4628 result = (wxCheckBox *)new wxCheckBox();
4629 wxPyEndAllowThreads(__tstate);
4630 if (PyErr_Occurred()) SWIG_fail;
4631 }
4632 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_OWN | 0 );
4633 return resultobj;
4634 fail:
4635 return NULL;
4636 }
4637
4638
4639 SWIGINTERN PyObject *_wrap_CheckBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4640 PyObject *resultobj = 0;
4641 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4642 wxWindow *arg2 = (wxWindow *) 0 ;
4643 int arg3 = (int) -1 ;
4644 wxString const &arg4_defvalue = wxPyEmptyString ;
4645 wxString *arg4 = (wxString *) &arg4_defvalue ;
4646 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4647 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4648 wxSize const &arg6_defvalue = wxDefaultSize ;
4649 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4650 long arg7 = (long) 0 ;
4651 wxValidator const &arg8_defvalue = wxDefaultValidator ;
4652 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
4653 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
4654 wxString *arg9 = (wxString *) &arg9_defvalue ;
4655 bool result;
4656 void *argp1 = 0 ;
4657 int res1 = 0 ;
4658 void *argp2 = 0 ;
4659 int res2 = 0 ;
4660 int val3 ;
4661 int ecode3 = 0 ;
4662 bool temp4 = false ;
4663 wxPoint temp5 ;
4664 wxSize temp6 ;
4665 long val7 ;
4666 int ecode7 = 0 ;
4667 void *argp8 = 0 ;
4668 int res8 = 0 ;
4669 bool temp9 = false ;
4670 PyObject * obj0 = 0 ;
4671 PyObject * obj1 = 0 ;
4672 PyObject * obj2 = 0 ;
4673 PyObject * obj3 = 0 ;
4674 PyObject * obj4 = 0 ;
4675 PyObject * obj5 = 0 ;
4676 PyObject * obj6 = 0 ;
4677 PyObject * obj7 = 0 ;
4678 PyObject * obj8 = 0 ;
4679 char * kwnames[] = {
4680 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4681 };
4682
4683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
4684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4685 if (!SWIG_IsOK(res1)) {
4686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Create" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4687 }
4688 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4689 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
4690 if (!SWIG_IsOK(res2)) {
4691 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
4692 }
4693 arg2 = reinterpret_cast< wxWindow * >(argp2);
4694 if (obj2) {
4695 ecode3 = SWIG_AsVal_int(obj2, &val3);
4696 if (!SWIG_IsOK(ecode3)) {
4697 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckBox_Create" "', expected argument " "3"" of type '" "int""'");
4698 }
4699 arg3 = static_cast< int >(val3);
4700 }
4701 if (obj3) {
4702 {
4703 arg4 = wxString_in_helper(obj3);
4704 if (arg4 == NULL) SWIG_fail;
4705 temp4 = true;
4706 }
4707 }
4708 if (obj4) {
4709 {
4710 arg5 = &temp5;
4711 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4712 }
4713 }
4714 if (obj5) {
4715 {
4716 arg6 = &temp6;
4717 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4718 }
4719 }
4720 if (obj6) {
4721 ecode7 = SWIG_AsVal_long(obj6, &val7);
4722 if (!SWIG_IsOK(ecode7)) {
4723 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckBox_Create" "', expected argument " "7"" of type '" "long""'");
4724 }
4725 arg7 = static_cast< long >(val7);
4726 }
4727 if (obj7) {
4728 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4729 if (!SWIG_IsOK(res8)) {
4730 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4731 }
4732 if (!argp8) {
4733 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4734 }
4735 arg8 = reinterpret_cast< wxValidator * >(argp8);
4736 }
4737 if (obj8) {
4738 {
4739 arg9 = wxString_in_helper(obj8);
4740 if (arg9 == NULL) SWIG_fail;
4741 temp9 = true;
4742 }
4743 }
4744 {
4745 PyThreadState* __tstate = wxPyBeginAllowThreads();
4746 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4747 wxPyEndAllowThreads(__tstate);
4748 if (PyErr_Occurred()) SWIG_fail;
4749 }
4750 {
4751 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4752 }
4753 {
4754 if (temp4)
4755 delete arg4;
4756 }
4757 {
4758 if (temp9)
4759 delete arg9;
4760 }
4761 return resultobj;
4762 fail:
4763 {
4764 if (temp4)
4765 delete arg4;
4766 }
4767 {
4768 if (temp9)
4769 delete arg9;
4770 }
4771 return NULL;
4772 }
4773
4774
4775 SWIGINTERN PyObject *_wrap_CheckBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4776 PyObject *resultobj = 0;
4777 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4778 bool result;
4779 void *argp1 = 0 ;
4780 int res1 = 0 ;
4781 PyObject *swig_obj[1] ;
4782
4783 if (!args) SWIG_fail;
4784 swig_obj[0] = args;
4785 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4786 if (!SWIG_IsOK(res1)) {
4787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_GetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4788 }
4789 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4790 {
4791 PyThreadState* __tstate = wxPyBeginAllowThreads();
4792 result = (bool)(arg1)->GetValue();
4793 wxPyEndAllowThreads(__tstate);
4794 if (PyErr_Occurred()) SWIG_fail;
4795 }
4796 {
4797 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4798 }
4799 return resultobj;
4800 fail:
4801 return NULL;
4802 }
4803
4804
4805 SWIGINTERN PyObject *_wrap_CheckBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4806 PyObject *resultobj = 0;
4807 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4808 bool result;
4809 void *argp1 = 0 ;
4810 int res1 = 0 ;
4811 PyObject *swig_obj[1] ;
4812
4813 if (!args) SWIG_fail;
4814 swig_obj[0] = args;
4815 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4816 if (!SWIG_IsOK(res1)) {
4817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4818 }
4819 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4820 {
4821 PyThreadState* __tstate = wxPyBeginAllowThreads();
4822 result = (bool)(arg1)->IsChecked();
4823 wxPyEndAllowThreads(__tstate);
4824 if (PyErr_Occurred()) SWIG_fail;
4825 }
4826 {
4827 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4828 }
4829 return resultobj;
4830 fail:
4831 return NULL;
4832 }
4833
4834
4835 SWIGINTERN PyObject *_wrap_CheckBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4836 PyObject *resultobj = 0;
4837 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4838 bool arg2 ;
4839 void *argp1 = 0 ;
4840 int res1 = 0 ;
4841 bool val2 ;
4842 int ecode2 = 0 ;
4843 PyObject * obj0 = 0 ;
4844 PyObject * obj1 = 0 ;
4845 char * kwnames[] = {
4846 (char *) "self",(char *) "state", NULL
4847 };
4848
4849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
4850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4851 if (!SWIG_IsOK(res1)) {
4852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_SetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4853 }
4854 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4855 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4856 if (!SWIG_IsOK(ecode2)) {
4857 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_SetValue" "', expected argument " "2"" of type '" "bool""'");
4858 }
4859 arg2 = static_cast< bool >(val2);
4860 {
4861 PyThreadState* __tstate = wxPyBeginAllowThreads();
4862 (arg1)->SetValue(arg2);
4863 wxPyEndAllowThreads(__tstate);
4864 if (PyErr_Occurred()) SWIG_fail;
4865 }
4866 resultobj = SWIG_Py_Void();
4867 return resultobj;
4868 fail:
4869 return NULL;
4870 }
4871
4872
4873 SWIGINTERN PyObject *_wrap_CheckBox_Get3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4874 PyObject *resultobj = 0;
4875 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4876 wxCheckBoxState result;
4877 void *argp1 = 0 ;
4878 int res1 = 0 ;
4879 PyObject *swig_obj[1] ;
4880
4881 if (!args) SWIG_fail;
4882 swig_obj[0] = args;
4883 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4884 if (!SWIG_IsOK(res1)) {
4885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Get3StateValue" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4886 }
4887 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4888 {
4889 PyThreadState* __tstate = wxPyBeginAllowThreads();
4890 result = (wxCheckBoxState)((wxCheckBox const *)arg1)->Get3StateValue();
4891 wxPyEndAllowThreads(__tstate);
4892 if (PyErr_Occurred()) SWIG_fail;
4893 }
4894 resultobj = SWIG_From_int(static_cast< int >(result));
4895 return resultobj;
4896 fail:
4897 return NULL;
4898 }
4899
4900
4901 SWIGINTERN PyObject *_wrap_CheckBox_Set3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4902 PyObject *resultobj = 0;
4903 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4904 wxCheckBoxState arg2 ;
4905 void *argp1 = 0 ;
4906 int res1 = 0 ;
4907 int val2 ;
4908 int ecode2 = 0 ;
4909 PyObject * obj0 = 0 ;
4910 PyObject * obj1 = 0 ;
4911 char * kwnames[] = {
4912 (char *) "self",(char *) "state", NULL
4913 };
4914
4915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) SWIG_fail;
4916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4917 if (!SWIG_IsOK(res1)) {
4918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Set3StateValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4919 }
4920 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4921 ecode2 = SWIG_AsVal_int(obj1, &val2);
4922 if (!SWIG_IsOK(ecode2)) {
4923 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_Set3StateValue" "', expected argument " "2"" of type '" "wxCheckBoxState""'");
4924 }
4925 arg2 = static_cast< wxCheckBoxState >(val2);
4926 {
4927 PyThreadState* __tstate = wxPyBeginAllowThreads();
4928 (arg1)->Set3StateValue(arg2);
4929 wxPyEndAllowThreads(__tstate);
4930 if (PyErr_Occurred()) SWIG_fail;
4931 }
4932 resultobj = SWIG_Py_Void();
4933 return resultobj;
4934 fail:
4935 return NULL;
4936 }
4937
4938
4939 SWIGINTERN PyObject *_wrap_CheckBox_Is3State(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4940 PyObject *resultobj = 0;
4941 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4942 bool result;
4943 void *argp1 = 0 ;
4944 int res1 = 0 ;
4945 PyObject *swig_obj[1] ;
4946
4947 if (!args) SWIG_fail;
4948 swig_obj[0] = args;
4949 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4950 if (!SWIG_IsOK(res1)) {
4951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3State" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4952 }
4953 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4954 {
4955 PyThreadState* __tstate = wxPyBeginAllowThreads();
4956 result = (bool)((wxCheckBox const *)arg1)->Is3State();
4957 wxPyEndAllowThreads(__tstate);
4958 if (PyErr_Occurred()) SWIG_fail;
4959 }
4960 {
4961 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4962 }
4963 return resultobj;
4964 fail:
4965 return NULL;
4966 }
4967
4968
4969 SWIGINTERN PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4970 PyObject *resultobj = 0;
4971 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4972 bool result;
4973 void *argp1 = 0 ;
4974 int res1 = 0 ;
4975 PyObject *swig_obj[1] ;
4976
4977 if (!args) SWIG_fail;
4978 swig_obj[0] = args;
4979 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4980 if (!SWIG_IsOK(res1)) {
4981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3rdStateAllowedForUser" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4982 }
4983 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4984 {
4985 PyThreadState* __tstate = wxPyBeginAllowThreads();
4986 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
4987 wxPyEndAllowThreads(__tstate);
4988 if (PyErr_Occurred()) SWIG_fail;
4989 }
4990 {
4991 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4992 }
4993 return resultobj;
4994 fail:
4995 return NULL;
4996 }
4997
4998
4999 SWIGINTERN PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5000 PyObject *resultobj = 0;
5001 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5002 SwigValueWrapper<wxVisualAttributes > result;
5003 int val1 ;
5004 int ecode1 = 0 ;
5005 PyObject * obj0 = 0 ;
5006 char * kwnames[] = {
5007 (char *) "variant", NULL
5008 };
5009
5010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5011 if (obj0) {
5012 ecode1 = SWIG_AsVal_int(obj0, &val1);
5013 if (!SWIG_IsOK(ecode1)) {
5014 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CheckBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5015 }
5016 arg1 = static_cast< wxWindowVariant >(val1);
5017 }
5018 {
5019 if (!wxPyCheckForApp()) SWIG_fail;
5020 PyThreadState* __tstate = wxPyBeginAllowThreads();
5021 result = wxCheckBox::GetClassDefaultAttributes(arg1);
5022 wxPyEndAllowThreads(__tstate);
5023 if (PyErr_Occurred()) SWIG_fail;
5024 }
5025 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5026 return resultobj;
5027 fail:
5028 return NULL;
5029 }
5030
5031
5032 SWIGINTERN PyObject *CheckBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5033 PyObject *obj;
5034 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5035 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckBox, SWIG_NewClientData(obj));
5036 return SWIG_Py_Void();
5037 }
5038
5039 SWIGINTERN PyObject *CheckBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5040 return SWIG_Python_InitShadowInstance(args);
5041 }
5042
5043 SWIGINTERN int ChoiceNameStr_set(PyObject *) {
5044 SWIG_Error(SWIG_AttributeError,"Variable ChoiceNameStr is read-only.");
5045 return 1;
5046 }
5047
5048
5049 SWIGINTERN PyObject *ChoiceNameStr_get(void) {
5050 PyObject *pyobj = 0;
5051
5052 {
5053 #if wxUSE_UNICODE
5054 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5055 #else
5056 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5057 #endif
5058 }
5059 return pyobj;
5060 }
5061
5062
5063 SWIGINTERN PyObject *_wrap_new_Choice(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5064 PyObject *resultobj = 0;
5065 wxWindow *arg1 = (wxWindow *) 0 ;
5066 int arg2 = (int) -1 ;
5067 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5068 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5069 wxSize const &arg4_defvalue = wxDefaultSize ;
5070 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5071 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5072 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5073 long arg6 = (long) 0 ;
5074 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5075 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5076 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
5077 wxString *arg8 = (wxString *) &arg8_defvalue ;
5078 wxChoice *result = 0 ;
5079 void *argp1 = 0 ;
5080 int res1 = 0 ;
5081 int val2 ;
5082 int ecode2 = 0 ;
5083 wxPoint temp3 ;
5084 wxSize temp4 ;
5085 bool temp5 = false ;
5086 long val6 ;
5087 int ecode6 = 0 ;
5088 void *argp7 = 0 ;
5089 int res7 = 0 ;
5090 bool temp8 = false ;
5091 PyObject * obj0 = 0 ;
5092 PyObject * obj1 = 0 ;
5093 PyObject * obj2 = 0 ;
5094 PyObject * obj3 = 0 ;
5095 PyObject * obj4 = 0 ;
5096 PyObject * obj5 = 0 ;
5097 PyObject * obj6 = 0 ;
5098 PyObject * obj7 = 0 ;
5099 char * kwnames[] = {
5100 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5101 };
5102
5103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
5104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5105 if (!SWIG_IsOK(res1)) {
5106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choice" "', expected argument " "1"" of type '" "wxWindow *""'");
5107 }
5108 arg1 = reinterpret_cast< wxWindow * >(argp1);
5109 if (obj1) {
5110 ecode2 = SWIG_AsVal_int(obj1, &val2);
5111 if (!SWIG_IsOK(ecode2)) {
5112 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choice" "', expected argument " "2"" of type '" "int""'");
5113 }
5114 arg2 = static_cast< int >(val2);
5115 }
5116 if (obj2) {
5117 {
5118 arg3 = &temp3;
5119 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
5120 }
5121 }
5122 if (obj3) {
5123 {
5124 arg4 = &temp4;
5125 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
5126 }
5127 }
5128 if (obj4) {
5129 {
5130 if (! PySequence_Check(obj4)) {
5131 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5132 SWIG_fail;
5133 }
5134 arg5 = new wxArrayString;
5135 temp5 = true;
5136 int i, len=PySequence_Length(obj4);
5137 for (i=0; i<len; i++) {
5138 PyObject* item = PySequence_GetItem(obj4, i);
5139 wxString* s = wxString_in_helper(item);
5140 if (PyErr_Occurred()) SWIG_fail;
5141 arg5->Add(*s);
5142 delete s;
5143 Py_DECREF(item);
5144 }
5145 }
5146 }
5147 if (obj5) {
5148 ecode6 = SWIG_AsVal_long(obj5, &val6);
5149 if (!SWIG_IsOK(ecode6)) {
5150 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Choice" "', expected argument " "6"" of type '" "long""'");
5151 }
5152 arg6 = static_cast< long >(val6);
5153 }
5154 if (obj6) {
5155 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
5156 if (!SWIG_IsOK(res7)) {
5157 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5158 }
5159 if (!argp7) {
5160 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5161 }
5162 arg7 = reinterpret_cast< wxValidator * >(argp7);
5163 }
5164 if (obj7) {
5165 {
5166 arg8 = wxString_in_helper(obj7);
5167 if (arg8 == NULL) SWIG_fail;
5168 temp8 = true;
5169 }
5170 }
5171 {
5172 if (!wxPyCheckForApp()) SWIG_fail;
5173 PyThreadState* __tstate = wxPyBeginAllowThreads();
5174 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5175 wxPyEndAllowThreads(__tstate);
5176 if (PyErr_Occurred()) SWIG_fail;
5177 }
5178 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_NEW | 0 );
5179 {
5180 if (temp5) delete arg5;
5181 }
5182 {
5183 if (temp8)
5184 delete arg8;
5185 }
5186 return resultobj;
5187 fail:
5188 {
5189 if (temp5) delete arg5;
5190 }
5191 {
5192 if (temp8)
5193 delete arg8;
5194 }
5195 return NULL;
5196 }
5197
5198
5199 SWIGINTERN PyObject *_wrap_new_PreChoice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5200 PyObject *resultobj = 0;
5201 wxChoice *result = 0 ;
5202
5203 if (!SWIG_Python_UnpackTuple(args,"new_PreChoice",0,0,0)) SWIG_fail;
5204 {
5205 if (!wxPyCheckForApp()) SWIG_fail;
5206 PyThreadState* __tstate = wxPyBeginAllowThreads();
5207 result = (wxChoice *)new wxChoice();
5208 wxPyEndAllowThreads(__tstate);
5209 if (PyErr_Occurred()) SWIG_fail;
5210 }
5211 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_OWN | 0 );
5212 return resultobj;
5213 fail:
5214 return NULL;
5215 }
5216
5217
5218 SWIGINTERN PyObject *_wrap_Choice_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5219 PyObject *resultobj = 0;
5220 wxChoice *arg1 = (wxChoice *) 0 ;
5221 wxWindow *arg2 = (wxWindow *) 0 ;
5222 int arg3 = (int) -1 ;
5223 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5224 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5225 wxSize const &arg5_defvalue = wxDefaultSize ;
5226 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5227 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5228 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5229 long arg7 = (long) 0 ;
5230 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5231 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5232 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
5233 wxString *arg9 = (wxString *) &arg9_defvalue ;
5234 bool result;
5235 void *argp1 = 0 ;
5236 int res1 = 0 ;
5237 void *argp2 = 0 ;
5238 int res2 = 0 ;
5239 int val3 ;
5240 int ecode3 = 0 ;
5241 wxPoint temp4 ;
5242 wxSize temp5 ;
5243 bool temp6 = false ;
5244 long val7 ;
5245 int ecode7 = 0 ;
5246 void *argp8 = 0 ;
5247 int res8 = 0 ;
5248 bool temp9 = false ;
5249 PyObject * obj0 = 0 ;
5250 PyObject * obj1 = 0 ;
5251 PyObject * obj2 = 0 ;
5252 PyObject * obj3 = 0 ;
5253 PyObject * obj4 = 0 ;
5254 PyObject * obj5 = 0 ;
5255 PyObject * obj6 = 0 ;
5256 PyObject * obj7 = 0 ;
5257 PyObject * obj8 = 0 ;
5258 char * kwnames[] = {
5259 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5260 };
5261
5262 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5263 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5264 if (!SWIG_IsOK(res1)) {
5265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_Create" "', expected argument " "1"" of type '" "wxChoice *""'");
5266 }
5267 arg1 = reinterpret_cast< wxChoice * >(argp1);
5268 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5269 if (!SWIG_IsOK(res2)) {
5270 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choice_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5271 }
5272 arg2 = reinterpret_cast< wxWindow * >(argp2);
5273 if (obj2) {
5274 ecode3 = SWIG_AsVal_int(obj2, &val3);
5275 if (!SWIG_IsOK(ecode3)) {
5276 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choice_Create" "', expected argument " "3"" of type '" "int""'");
5277 }
5278 arg3 = static_cast< int >(val3);
5279 }
5280 if (obj3) {
5281 {
5282 arg4 = &temp4;
5283 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5284 }
5285 }
5286 if (obj4) {
5287 {
5288 arg5 = &temp5;
5289 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5290 }
5291 }
5292 if (obj5) {
5293 {
5294 if (! PySequence_Check(obj5)) {
5295 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5296 SWIG_fail;
5297 }
5298 arg6 = new wxArrayString;
5299 temp6 = true;
5300 int i, len=PySequence_Length(obj5);
5301 for (i=0; i<len; i++) {
5302 PyObject* item = PySequence_GetItem(obj5, i);
5303 wxString* s = wxString_in_helper(item);
5304 if (PyErr_Occurred()) SWIG_fail;
5305 arg6->Add(*s);
5306 delete s;
5307 Py_DECREF(item);
5308 }
5309 }
5310 }
5311 if (obj6) {
5312 ecode7 = SWIG_AsVal_long(obj6, &val7);
5313 if (!SWIG_IsOK(ecode7)) {
5314 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Choice_Create" "', expected argument " "7"" of type '" "long""'");
5315 }
5316 arg7 = static_cast< long >(val7);
5317 }
5318 if (obj7) {
5319 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5320 if (!SWIG_IsOK(res8)) {
5321 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5322 }
5323 if (!argp8) {
5324 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5325 }
5326 arg8 = reinterpret_cast< wxValidator * >(argp8);
5327 }
5328 if (obj8) {
5329 {
5330 arg9 = wxString_in_helper(obj8);
5331 if (arg9 == NULL) SWIG_fail;
5332 temp9 = true;
5333 }
5334 }
5335 {
5336 PyThreadState* __tstate = wxPyBeginAllowThreads();
5337 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5338 wxPyEndAllowThreads(__tstate);
5339 if (PyErr_Occurred()) SWIG_fail;
5340 }
5341 {
5342 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5343 }
5344 {
5345 if (temp6) delete arg6;
5346 }
5347 {
5348 if (temp9)
5349 delete arg9;
5350 }
5351 return resultobj;
5352 fail:
5353 {
5354 if (temp6) delete arg6;
5355 }
5356 {
5357 if (temp9)
5358 delete arg9;
5359 }
5360 return NULL;
5361 }
5362
5363
5364 SWIGINTERN PyObject *_wrap_Choice_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5365 PyObject *resultobj = 0;
5366 wxChoice *arg1 = (wxChoice *) 0 ;
5367 int result;
5368 void *argp1 = 0 ;
5369 int res1 = 0 ;
5370 PyObject *swig_obj[1] ;
5371
5372 if (!args) SWIG_fail;
5373 swig_obj[0] = args;
5374 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5375 if (!SWIG_IsOK(res1)) {
5376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_GetCurrentSelection" "', expected argument " "1"" of type '" "wxChoice const *""'");
5377 }
5378 arg1 = reinterpret_cast< wxChoice * >(argp1);
5379 {
5380 PyThreadState* __tstate = wxPyBeginAllowThreads();
5381 result = (int)((wxChoice const *)arg1)->GetCurrentSelection();
5382 wxPyEndAllowThreads(__tstate);
5383 if (PyErr_Occurred()) SWIG_fail;
5384 }
5385 resultobj = SWIG_From_int(static_cast< int >(result));
5386 return resultobj;
5387 fail:
5388 return NULL;
5389 }
5390
5391
5392 SWIGINTERN PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5393 PyObject *resultobj = 0;
5394 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5395 SwigValueWrapper<wxVisualAttributes > result;
5396 int val1 ;
5397 int ecode1 = 0 ;
5398 PyObject * obj0 = 0 ;
5399 char * kwnames[] = {
5400 (char *) "variant", NULL
5401 };
5402
5403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5404 if (obj0) {
5405 ecode1 = SWIG_AsVal_int(obj0, &val1);
5406 if (!SWIG_IsOK(ecode1)) {
5407 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Choice_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5408 }
5409 arg1 = static_cast< wxWindowVariant >(val1);
5410 }
5411 {
5412 if (!wxPyCheckForApp()) SWIG_fail;
5413 PyThreadState* __tstate = wxPyBeginAllowThreads();
5414 result = wxChoice::GetClassDefaultAttributes(arg1);
5415 wxPyEndAllowThreads(__tstate);
5416 if (PyErr_Occurred()) SWIG_fail;
5417 }
5418 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5419 return resultobj;
5420 fail:
5421 return NULL;
5422 }
5423
5424
5425 SWIGINTERN PyObject *Choice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5426 PyObject *obj;
5427 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5428 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoice, SWIG_NewClientData(obj));
5429 return SWIG_Py_Void();
5430 }
5431
5432 SWIGINTERN PyObject *Choice_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5433 return SWIG_Python_InitShadowInstance(args);
5434 }
5435
5436 SWIGINTERN int ComboBoxNameStr_set(PyObject *) {
5437 SWIG_Error(SWIG_AttributeError,"Variable ComboBoxNameStr is read-only.");
5438 return 1;
5439 }
5440
5441
5442 SWIGINTERN PyObject *ComboBoxNameStr_get(void) {
5443 PyObject *pyobj = 0;
5444
5445 {
5446 #if wxUSE_UNICODE
5447 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
5448 #else
5449 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
5450 #endif
5451 }
5452 return pyobj;
5453 }
5454
5455
5456 SWIGINTERN PyObject *_wrap_new_ComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5457 PyObject *resultobj = 0;
5458 wxWindow *arg1 = (wxWindow *) 0 ;
5459 int arg2 = (int) -1 ;
5460 wxString const &arg3_defvalue = wxPyEmptyString ;
5461 wxString *arg3 = (wxString *) &arg3_defvalue ;
5462 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5463 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5464 wxSize const &arg5_defvalue = wxDefaultSize ;
5465 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5466 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5467 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5468 long arg7 = (long) 0 ;
5469 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5470 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5471 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
5472 wxString *arg9 = (wxString *) &arg9_defvalue ;
5473 wxComboBox *result = 0 ;
5474 void *argp1 = 0 ;
5475 int res1 = 0 ;
5476 int val2 ;
5477 int ecode2 = 0 ;
5478 bool temp3 = false ;
5479 wxPoint temp4 ;
5480 wxSize temp5 ;
5481 bool temp6 = false ;
5482 long val7 ;
5483 int ecode7 = 0 ;
5484 void *argp8 = 0 ;
5485 int res8 = 0 ;
5486 bool temp9 = false ;
5487 PyObject * obj0 = 0 ;
5488 PyObject * obj1 = 0 ;
5489 PyObject * obj2 = 0 ;
5490 PyObject * obj3 = 0 ;
5491 PyObject * obj4 = 0 ;
5492 PyObject * obj5 = 0 ;
5493 PyObject * obj6 = 0 ;
5494 PyObject * obj7 = 0 ;
5495 PyObject * obj8 = 0 ;
5496 char * kwnames[] = {
5497 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5498 };
5499
5500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5502 if (!SWIG_IsOK(res1)) {
5503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ComboBox" "', expected argument " "1"" of type '" "wxWindow *""'");
5504 }
5505 arg1 = reinterpret_cast< wxWindow * >(argp1);
5506 if (obj1) {
5507 ecode2 = SWIG_AsVal_int(obj1, &val2);
5508 if (!SWIG_IsOK(ecode2)) {
5509 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ComboBox" "', expected argument " "2"" of type '" "int""'");
5510 }
5511 arg2 = static_cast< int >(val2);
5512 }
5513 if (obj2) {
5514 {
5515 arg3 = wxString_in_helper(obj2);
5516 if (arg3 == NULL) SWIG_fail;
5517 temp3 = true;
5518 }
5519 }
5520 if (obj3) {
5521 {
5522 arg4 = &temp4;
5523 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5524 }
5525 }
5526 if (obj4) {
5527 {
5528 arg5 = &temp5;
5529 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5530 }
5531 }
5532 if (obj5) {
5533 {
5534 if (! PySequence_Check(obj5)) {
5535 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5536 SWIG_fail;
5537 }
5538 arg6 = new wxArrayString;
5539 temp6 = true;
5540 int i, len=PySequence_Length(obj5);
5541 for (i=0; i<len; i++) {
5542 PyObject* item = PySequence_GetItem(obj5, i);
5543 wxString* s = wxString_in_helper(item);
5544 if (PyErr_Occurred()) SWIG_fail;
5545 arg6->Add(*s);
5546 delete s;
5547 Py_DECREF(item);
5548 }
5549 }
5550 }
5551 if (obj6) {
5552 ecode7 = SWIG_AsVal_long(obj6, &val7);
5553 if (!SWIG_IsOK(ecode7)) {
5554 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ComboBox" "', expected argument " "7"" of type '" "long""'");
5555 }
5556 arg7 = static_cast< long >(val7);
5557 }
5558 if (obj7) {
5559 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5560 if (!SWIG_IsOK(res8)) {
5561 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5562 }
5563 if (!argp8) {
5564 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5565 }
5566 arg8 = reinterpret_cast< wxValidator * >(argp8);
5567 }
5568 if (obj8) {
5569 {
5570 arg9 = wxString_in_helper(obj8);
5571 if (arg9 == NULL) SWIG_fail;
5572 temp9 = true;
5573 }
5574 }
5575 {
5576 if (!wxPyCheckForApp()) SWIG_fail;
5577 PyThreadState* __tstate = wxPyBeginAllowThreads();
5578 result = (wxComboBox *)new wxComboBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5579 wxPyEndAllowThreads(__tstate);
5580 if (PyErr_Occurred()) SWIG_fail;
5581 }
5582 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_NEW | 0 );
5583 {
5584 if (temp3)
5585 delete arg3;
5586 }
5587 {
5588 if (temp6) delete arg6;
5589 }
5590 {
5591 if (temp9)
5592 delete arg9;
5593 }
5594 return resultobj;
5595 fail:
5596 {
5597 if (temp3)
5598 delete arg3;
5599 }
5600 {
5601 if (temp6) delete arg6;
5602 }
5603 {
5604 if (temp9)
5605 delete arg9;
5606 }
5607 return NULL;
5608 }
5609
5610
5611 SWIGINTERN PyObject *_wrap_new_PreComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5612 PyObject *resultobj = 0;
5613 wxComboBox *result = 0 ;
5614
5615 if (!SWIG_Python_UnpackTuple(args,"new_PreComboBox",0,0,0)) SWIG_fail;
5616 {
5617 if (!wxPyCheckForApp()) SWIG_fail;
5618 PyThreadState* __tstate = wxPyBeginAllowThreads();
5619 result = (wxComboBox *)new wxComboBox();
5620 wxPyEndAllowThreads(__tstate);
5621 if (PyErr_Occurred()) SWIG_fail;
5622 }
5623 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_OWN | 0 );
5624 return resultobj;
5625 fail:
5626 return NULL;
5627 }
5628
5629
5630 SWIGINTERN PyObject *_wrap_ComboBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5631 PyObject *resultobj = 0;
5632 wxComboBox *arg1 = (wxComboBox *) 0 ;
5633 wxWindow *arg2 = (wxWindow *) 0 ;
5634 int arg3 = (int) -1 ;
5635 wxString const &arg4_defvalue = wxPyEmptyString ;
5636 wxString *arg4 = (wxString *) &arg4_defvalue ;
5637 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5638 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5639 wxSize const &arg6_defvalue = wxDefaultSize ;
5640 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5641 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
5642 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
5643 long arg8 = (long) 0 ;
5644 wxValidator const &arg9_defvalue = wxDefaultValidator ;
5645 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
5646 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
5647 wxString *arg10 = (wxString *) &arg10_defvalue ;
5648 bool result;
5649 void *argp1 = 0 ;
5650 int res1 = 0 ;
5651 void *argp2 = 0 ;
5652 int res2 = 0 ;
5653 int val3 ;
5654 int ecode3 = 0 ;
5655 bool temp4 = false ;
5656 wxPoint temp5 ;
5657 wxSize temp6 ;
5658 bool temp7 = false ;
5659 long val8 ;
5660 int ecode8 = 0 ;
5661 void *argp9 = 0 ;
5662 int res9 = 0 ;
5663 bool temp10 = false ;
5664 PyObject * obj0 = 0 ;
5665 PyObject * obj1 = 0 ;
5666 PyObject * obj2 = 0 ;
5667 PyObject * obj3 = 0 ;
5668 PyObject * obj4 = 0 ;
5669 PyObject * obj5 = 0 ;
5670 PyObject * obj6 = 0 ;
5671 PyObject * obj7 = 0 ;
5672 PyObject * obj8 = 0 ;
5673 PyObject * obj9 = 0 ;
5674 char * kwnames[] = {
5675 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5676 };
5677
5678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
5679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5680 if (!SWIG_IsOK(res1)) {
5681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Create" "', expected argument " "1"" of type '" "wxComboBox *""'");
5682 }
5683 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5684 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5685 if (!SWIG_IsOK(res2)) {
5686 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ComboBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5687 }
5688 arg2 = reinterpret_cast< wxWindow * >(argp2);
5689 if (obj2) {
5690 ecode3 = SWIG_AsVal_int(obj2, &val3);
5691 if (!SWIG_IsOK(ecode3)) {
5692 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Create" "', expected argument " "3"" of type '" "int""'");
5693 }
5694 arg3 = static_cast< int >(val3);
5695 }
5696 if (obj3) {
5697 {
5698 arg4 = wxString_in_helper(obj3);
5699 if (arg4 == NULL) SWIG_fail;
5700 temp4 = true;
5701 }
5702 }
5703 if (obj4) {
5704 {
5705 arg5 = &temp5;
5706 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5707 }
5708 }
5709 if (obj5) {
5710 {
5711 arg6 = &temp6;
5712 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5713 }
5714 }
5715 if (obj6) {
5716 {
5717 if (! PySequence_Check(obj6)) {
5718 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5719 SWIG_fail;
5720 }
5721 arg7 = new wxArrayString;
5722 temp7 = true;
5723 int i, len=PySequence_Length(obj6);
5724 for (i=0; i<len; i++) {
5725 PyObject* item = PySequence_GetItem(obj6, i);
5726 wxString* s = wxString_in_helper(item);
5727 if (PyErr_Occurred()) SWIG_fail;
5728 arg7->Add(*s);
5729 delete s;
5730 Py_DECREF(item);
5731 }
5732 }
5733 }
5734 if (obj7) {
5735 ecode8 = SWIG_AsVal_long(obj7, &val8);
5736 if (!SWIG_IsOK(ecode8)) {
5737 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ComboBox_Create" "', expected argument " "8"" of type '" "long""'");
5738 }
5739 arg8 = static_cast< long >(val8);
5740 }
5741 if (obj8) {
5742 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
5743 if (!SWIG_IsOK(res9)) {
5744 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
5745 }
5746 if (!argp9) {
5747 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
5748 }
5749 arg9 = reinterpret_cast< wxValidator * >(argp9);
5750 }
5751 if (obj9) {
5752 {
5753 arg10 = wxString_in_helper(obj9);
5754 if (arg10 == NULL) SWIG_fail;
5755 temp10 = true;
5756 }
5757 }
5758 {
5759 PyThreadState* __tstate = wxPyBeginAllowThreads();
5760 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,(wxArrayString const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
5761 wxPyEndAllowThreads(__tstate);
5762 if (PyErr_Occurred()) SWIG_fail;
5763 }
5764 {
5765 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5766 }
5767 {
5768 if (temp4)
5769 delete arg4;
5770 }
5771 {
5772 if (temp7) delete arg7;
5773 }
5774 {
5775 if (temp10)
5776 delete arg10;
5777 }
5778 return resultobj;
5779 fail:
5780 {
5781 if (temp4)
5782 delete arg4;
5783 }
5784 {
5785 if (temp7) delete arg7;
5786 }
5787 {
5788 if (temp10)
5789 delete arg10;
5790 }
5791 return NULL;
5792 }
5793
5794
5795 SWIGINTERN PyObject *_wrap_ComboBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5796 PyObject *resultobj = 0;
5797 wxComboBox *arg1 = (wxComboBox *) 0 ;
5798 wxString result;
5799 void *argp1 = 0 ;
5800 int res1 = 0 ;
5801 PyObject *swig_obj[1] ;
5802
5803 if (!args) SWIG_fail;
5804 swig_obj[0] = args;
5805 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5806 if (!SWIG_IsOK(res1)) {
5807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetValue" "', expected argument " "1"" of type '" "wxComboBox const *""'");
5808 }
5809 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5810 {
5811 PyThreadState* __tstate = wxPyBeginAllowThreads();
5812 result = ((wxComboBox const *)arg1)->GetValue();
5813 wxPyEndAllowThreads(__tstate);
5814 if (PyErr_Occurred()) SWIG_fail;
5815 }
5816 {
5817 #if wxUSE_UNICODE
5818 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5819 #else
5820 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5821 #endif
5822 }
5823 return resultobj;
5824 fail:
5825 return NULL;
5826 }
5827
5828
5829 SWIGINTERN PyObject *_wrap_ComboBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5830 PyObject *resultobj = 0;
5831 wxComboBox *arg1 = (wxComboBox *) 0 ;
5832 wxString *arg2 = 0 ;
5833 void *argp1 = 0 ;
5834 int res1 = 0 ;
5835 bool temp2 = false ;
5836 PyObject * obj0 = 0 ;
5837 PyObject * obj1 = 0 ;
5838 char * kwnames[] = {
5839 (char *) "self",(char *) "value", NULL
5840 };
5841
5842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
5843 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5844 if (!SWIG_IsOK(res1)) {
5845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetValue" "', expected argument " "1"" of type '" "wxComboBox *""'");
5846 }
5847 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5848 {
5849 arg2 = wxString_in_helper(obj1);
5850 if (arg2 == NULL) SWIG_fail;
5851 temp2 = true;
5852 }
5853 {
5854 PyThreadState* __tstate = wxPyBeginAllowThreads();
5855 (arg1)->SetValue((wxString const &)*arg2);
5856 wxPyEndAllowThreads(__tstate);
5857 if (PyErr_Occurred()) SWIG_fail;
5858 }
5859 resultobj = SWIG_Py_Void();
5860 {
5861 if (temp2)
5862 delete arg2;
5863 }
5864 return resultobj;
5865 fail:
5866 {
5867 if (temp2)
5868 delete arg2;
5869 }
5870 return NULL;
5871 }
5872
5873
5874 SWIGINTERN PyObject *_wrap_ComboBox_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5875 PyObject *resultobj = 0;
5876 wxComboBox *arg1 = (wxComboBox *) 0 ;
5877 void *argp1 = 0 ;
5878 int res1 = 0 ;
5879 PyObject *swig_obj[1] ;
5880
5881 if (!args) SWIG_fail;
5882 swig_obj[0] = args;
5883 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5884 if (!SWIG_IsOK(res1)) {
5885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Copy" "', expected argument " "1"" of type '" "wxComboBox *""'");
5886 }
5887 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5888 {
5889 PyThreadState* __tstate = wxPyBeginAllowThreads();
5890 (arg1)->Copy();
5891 wxPyEndAllowThreads(__tstate);
5892 if (PyErr_Occurred()) SWIG_fail;
5893 }
5894 resultobj = SWIG_Py_Void();
5895 return resultobj;
5896 fail:
5897 return NULL;
5898 }
5899
5900
5901 SWIGINTERN PyObject *_wrap_ComboBox_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5902 PyObject *resultobj = 0;
5903 wxComboBox *arg1 = (wxComboBox *) 0 ;
5904 void *argp1 = 0 ;
5905 int res1 = 0 ;
5906 PyObject *swig_obj[1] ;
5907
5908 if (!args) SWIG_fail;
5909 swig_obj[0] = args;
5910 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5911 if (!SWIG_IsOK(res1)) {
5912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Cut" "', expected argument " "1"" of type '" "wxComboBox *""'");
5913 }
5914 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5915 {
5916 PyThreadState* __tstate = wxPyBeginAllowThreads();
5917 (arg1)->Cut();
5918 wxPyEndAllowThreads(__tstate);
5919 if (PyErr_Occurred()) SWIG_fail;
5920 }
5921 resultobj = SWIG_Py_Void();
5922 return resultobj;
5923 fail:
5924 return NULL;
5925 }
5926
5927
5928 SWIGINTERN PyObject *_wrap_ComboBox_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5929 PyObject *resultobj = 0;
5930 wxComboBox *arg1 = (wxComboBox *) 0 ;
5931 void *argp1 = 0 ;
5932 int res1 = 0 ;
5933 PyObject *swig_obj[1] ;
5934
5935 if (!args) SWIG_fail;
5936 swig_obj[0] = args;
5937 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5938 if (!SWIG_IsOK(res1)) {
5939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Paste" "', expected argument " "1"" of type '" "wxComboBox *""'");
5940 }
5941 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5942 {
5943 PyThreadState* __tstate = wxPyBeginAllowThreads();
5944 (arg1)->Paste();
5945 wxPyEndAllowThreads(__tstate);
5946 if (PyErr_Occurred()) SWIG_fail;
5947 }
5948 resultobj = SWIG_Py_Void();
5949 return resultobj;
5950 fail:
5951 return NULL;
5952 }
5953
5954
5955 SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5956 PyObject *resultobj = 0;
5957 wxComboBox *arg1 = (wxComboBox *) 0 ;
5958 long arg2 ;
5959 void *argp1 = 0 ;
5960 int res1 = 0 ;
5961 long val2 ;
5962 int ecode2 = 0 ;
5963 PyObject * obj0 = 0 ;
5964 PyObject * obj1 = 0 ;
5965 char * kwnames[] = {
5966 (char *) "self",(char *) "pos", NULL
5967 };
5968
5969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
5970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5971 if (!SWIG_IsOK(res1)) {
5972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox *""'");
5973 }
5974 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5975 ecode2 = SWIG_AsVal_long(obj1, &val2);
5976 if (!SWIG_IsOK(ecode2)) {
5977 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
5978 }
5979 arg2 = static_cast< long >(val2);
5980 {
5981 PyThreadState* __tstate = wxPyBeginAllowThreads();
5982 (arg1)->SetInsertionPoint(arg2);
5983 wxPyEndAllowThreads(__tstate);
5984 if (PyErr_Occurred()) SWIG_fail;
5985 }
5986 resultobj = SWIG_Py_Void();
5987 return resultobj;
5988 fail:
5989 return NULL;
5990 }
5991
5992
5993 SWIGINTERN PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5994 PyObject *resultobj = 0;
5995 wxComboBox *arg1 = (wxComboBox *) 0 ;
5996 long result;
5997 void *argp1 = 0 ;
5998 int res1 = 0 ;
5999 PyObject *swig_obj[1] ;
6000
6001 if (!args) SWIG_fail;
6002 swig_obj[0] = args;
6003 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6004 if (!SWIG_IsOK(res1)) {
6005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6006 }
6007 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6008 {
6009 PyThreadState* __tstate = wxPyBeginAllowThreads();
6010 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
6011 wxPyEndAllowThreads(__tstate);
6012 if (PyErr_Occurred()) SWIG_fail;
6013 }
6014 resultobj = SWIG_From_long(static_cast< long >(result));
6015 return resultobj;
6016 fail:
6017 return NULL;
6018 }
6019
6020
6021 SWIGINTERN PyObject *_wrap_ComboBox_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6022 PyObject *resultobj = 0;
6023 wxComboBox *arg1 = (wxComboBox *) 0 ;
6024 long result;
6025 void *argp1 = 0 ;
6026 int res1 = 0 ;
6027 PyObject *swig_obj[1] ;
6028
6029 if (!args) SWIG_fail;
6030 swig_obj[0] = args;
6031 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6032 if (!SWIG_IsOK(res1)) {
6033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetLastPosition" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6034 }
6035 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6036 {
6037 PyThreadState* __tstate = wxPyBeginAllowThreads();
6038 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
6039 wxPyEndAllowThreads(__tstate);
6040 if (PyErr_Occurred()) SWIG_fail;
6041 }
6042 resultobj = SWIG_From_long(static_cast< long >(result));
6043 return resultobj;
6044 fail:
6045 return NULL;
6046 }
6047
6048
6049 SWIGINTERN PyObject *_wrap_ComboBox_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6050 PyObject *resultobj = 0;
6051 wxComboBox *arg1 = (wxComboBox *) 0 ;
6052 long arg2 ;
6053 long arg3 ;
6054 wxString *arg4 = 0 ;
6055 void *argp1 = 0 ;
6056 int res1 = 0 ;
6057 long val2 ;
6058 int ecode2 = 0 ;
6059 long val3 ;
6060 int ecode3 = 0 ;
6061 bool temp4 = false ;
6062 PyObject * obj0 = 0 ;
6063 PyObject * obj1 = 0 ;
6064 PyObject * obj2 = 0 ;
6065 PyObject * obj3 = 0 ;
6066 char * kwnames[] = {
6067 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
6068 };
6069
6070 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6071 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6072 if (!SWIG_IsOK(res1)) {
6073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Replace" "', expected argument " "1"" of type '" "wxComboBox *""'");
6074 }
6075 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6076 ecode2 = SWIG_AsVal_long(obj1, &val2);
6077 if (!SWIG_IsOK(ecode2)) {
6078 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Replace" "', expected argument " "2"" of type '" "long""'");
6079 }
6080 arg2 = static_cast< long >(val2);
6081 ecode3 = SWIG_AsVal_long(obj2, &val3);
6082 if (!SWIG_IsOK(ecode3)) {
6083 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Replace" "', expected argument " "3"" of type '" "long""'");
6084 }
6085 arg3 = static_cast< long >(val3);
6086 {
6087 arg4 = wxString_in_helper(obj3);
6088 if (arg4 == NULL) SWIG_fail;
6089 temp4 = true;
6090 }
6091 {
6092 PyThreadState* __tstate = wxPyBeginAllowThreads();
6093 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
6094 wxPyEndAllowThreads(__tstate);
6095 if (PyErr_Occurred()) SWIG_fail;
6096 }
6097 resultobj = SWIG_Py_Void();
6098 {
6099 if (temp4)
6100 delete arg4;
6101 }
6102 return resultobj;
6103 fail:
6104 {
6105 if (temp4)
6106 delete arg4;
6107 }
6108 return NULL;
6109 }
6110
6111
6112 SWIGINTERN PyObject *_wrap_ComboBox_SetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6113 PyObject *resultobj = 0;
6114 wxComboBox *arg1 = (wxComboBox *) 0 ;
6115 long arg2 ;
6116 long arg3 ;
6117 void *argp1 = 0 ;
6118 int res1 = 0 ;
6119 long val2 ;
6120 int ecode2 = 0 ;
6121 long val3 ;
6122 int ecode3 = 0 ;
6123 PyObject * obj0 = 0 ;
6124 PyObject * obj1 = 0 ;
6125 PyObject * obj2 = 0 ;
6126 char * kwnames[] = {
6127 (char *) "self",(char *) "from",(char *) "to", NULL
6128 };
6129
6130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6132 if (!SWIG_IsOK(res1)) {
6133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6134 }
6135 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6136 ecode2 = SWIG_AsVal_long(obj1, &val2);
6137 if (!SWIG_IsOK(ecode2)) {
6138 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetMark" "', expected argument " "2"" of type '" "long""'");
6139 }
6140 arg2 = static_cast< long >(val2);
6141 ecode3 = SWIG_AsVal_long(obj2, &val3);
6142 if (!SWIG_IsOK(ecode3)) {
6143 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_SetMark" "', expected argument " "3"" of type '" "long""'");
6144 }
6145 arg3 = static_cast< long >(val3);
6146 {
6147 PyThreadState* __tstate = wxPyBeginAllowThreads();
6148 (arg1)->SetSelection(arg2,arg3);
6149 wxPyEndAllowThreads(__tstate);
6150 if (PyErr_Occurred()) SWIG_fail;
6151 }
6152 resultobj = SWIG_Py_Void();
6153 return resultobj;
6154 fail:
6155 return NULL;
6156 }
6157
6158
6159 SWIGINTERN PyObject *_wrap_ComboBox_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6160 PyObject *resultobj = 0;
6161 wxComboBox *arg1 = (wxComboBox *) 0 ;
6162 int result;
6163 void *argp1 = 0 ;
6164 int res1 = 0 ;
6165 PyObject *swig_obj[1] ;
6166
6167 if (!args) SWIG_fail;
6168 swig_obj[0] = args;
6169 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6170 if (!SWIG_IsOK(res1)) {
6171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetCurrentSelection" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6172 }
6173 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6174 {
6175 PyThreadState* __tstate = wxPyBeginAllowThreads();
6176 result = (int)((wxComboBox const *)arg1)->GetCurrentSelection();
6177 wxPyEndAllowThreads(__tstate);
6178 if (PyErr_Occurred()) SWIG_fail;
6179 }
6180 resultobj = SWIG_From_int(static_cast< int >(result));
6181 return resultobj;
6182 fail:
6183 return NULL;
6184 }
6185
6186
6187 SWIGINTERN PyObject *_wrap_ComboBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6188 PyObject *resultobj = 0;
6189 wxComboBox *arg1 = (wxComboBox *) 0 ;
6190 wxString *arg2 = 0 ;
6191 bool result;
6192 void *argp1 = 0 ;
6193 int res1 = 0 ;
6194 bool temp2 = false ;
6195 PyObject * obj0 = 0 ;
6196 PyObject * obj1 = 0 ;
6197 char * kwnames[] = {
6198 (char *) "self",(char *) "string", NULL
6199 };
6200
6201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
6202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6203 if (!SWIG_IsOK(res1)) {
6204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetStringSelection" "', expected argument " "1"" of type '" "wxComboBox *""'");
6205 }
6206 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6207 {
6208 arg2 = wxString_in_helper(obj1);
6209 if (arg2 == NULL) SWIG_fail;
6210 temp2 = true;
6211 }
6212 {
6213 PyThreadState* __tstate = wxPyBeginAllowThreads();
6214 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
6215 wxPyEndAllowThreads(__tstate);
6216 if (PyErr_Occurred()) SWIG_fail;
6217 }
6218 {
6219 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6220 }
6221 {
6222 if (temp2)
6223 delete arg2;
6224 }
6225 return resultobj;
6226 fail:
6227 {
6228 if (temp2)
6229 delete arg2;
6230 }
6231 return NULL;
6232 }
6233
6234
6235 SWIGINTERN PyObject *_wrap_ComboBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6236 PyObject *resultobj = 0;
6237 wxComboBox *arg1 = (wxComboBox *) 0 ;
6238 int arg2 ;
6239 wxString *arg3 = 0 ;
6240 void *argp1 = 0 ;
6241 int res1 = 0 ;
6242 int val2 ;
6243 int ecode2 = 0 ;
6244 bool temp3 = false ;
6245 PyObject * obj0 = 0 ;
6246 PyObject * obj1 = 0 ;
6247 PyObject * obj2 = 0 ;
6248 char * kwnames[] = {
6249 (char *) "self",(char *) "n",(char *) "string", NULL
6250 };
6251
6252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6253 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6254 if (!SWIG_IsOK(res1)) {
6255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetString" "', expected argument " "1"" of type '" "wxComboBox *""'");
6256 }
6257 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6258 ecode2 = SWIG_AsVal_int(obj1, &val2);
6259 if (!SWIG_IsOK(ecode2)) {
6260 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetString" "', expected argument " "2"" of type '" "int""'");
6261 }
6262 arg2 = static_cast< int >(val2);
6263 {
6264 arg3 = wxString_in_helper(obj2);
6265 if (arg3 == NULL) SWIG_fail;
6266 temp3 = true;
6267 }
6268 {
6269 PyThreadState* __tstate = wxPyBeginAllowThreads();
6270 (arg1)->SetString(arg2,(wxString const &)*arg3);
6271 wxPyEndAllowThreads(__tstate);
6272 if (PyErr_Occurred()) SWIG_fail;
6273 }
6274 resultobj = SWIG_Py_Void();
6275 {
6276 if (temp3)
6277 delete arg3;
6278 }
6279 return resultobj;
6280 fail:
6281 {
6282 if (temp3)
6283 delete arg3;
6284 }
6285 return NULL;
6286 }
6287
6288
6289 SWIGINTERN PyObject *_wrap_ComboBox_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6290 PyObject *resultobj = 0;
6291 wxComboBox *arg1 = (wxComboBox *) 0 ;
6292 bool arg2 ;
6293 void *argp1 = 0 ;
6294 int res1 = 0 ;
6295 bool val2 ;
6296 int ecode2 = 0 ;
6297 PyObject * obj0 = 0 ;
6298 PyObject * obj1 = 0 ;
6299 char * kwnames[] = {
6300 (char *) "self",(char *) "editable", NULL
6301 };
6302
6303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
6304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6305 if (!SWIG_IsOK(res1)) {
6306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetEditable" "', expected argument " "1"" of type '" "wxComboBox *""'");
6307 }
6308 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6309 ecode2 = SWIG_AsVal_bool(obj1, &val2);
6310 if (!SWIG_IsOK(ecode2)) {
6311 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetEditable" "', expected argument " "2"" of type '" "bool""'");
6312 }
6313 arg2 = static_cast< bool >(val2);
6314 {
6315 PyThreadState* __tstate = wxPyBeginAllowThreads();
6316 (arg1)->SetEditable(arg2);
6317 wxPyEndAllowThreads(__tstate);
6318 if (PyErr_Occurred()) SWIG_fail;
6319 }
6320 resultobj = SWIG_Py_Void();
6321 return resultobj;
6322 fail:
6323 return NULL;
6324 }
6325
6326
6327 SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6328 PyObject *resultobj = 0;
6329 wxComboBox *arg1 = (wxComboBox *) 0 ;
6330 void *argp1 = 0 ;
6331 int res1 = 0 ;
6332 PyObject *swig_obj[1] ;
6333
6334 if (!args) SWIG_fail;
6335 swig_obj[0] = args;
6336 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6337 if (!SWIG_IsOK(res1)) {
6338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxComboBox *""'");
6339 }
6340 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6341 {
6342 PyThreadState* __tstate = wxPyBeginAllowThreads();
6343 (arg1)->SetInsertionPointEnd();
6344 wxPyEndAllowThreads(__tstate);
6345 if (PyErr_Occurred()) SWIG_fail;
6346 }
6347 resultobj = SWIG_Py_Void();
6348 return resultobj;
6349 fail:
6350 return NULL;
6351 }
6352
6353
6354 SWIGINTERN PyObject *_wrap_ComboBox_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6355 PyObject *resultobj = 0;
6356 wxComboBox *arg1 = (wxComboBox *) 0 ;
6357 long arg2 ;
6358 long arg3 ;
6359 void *argp1 = 0 ;
6360 int res1 = 0 ;
6361 long val2 ;
6362 int ecode2 = 0 ;
6363 long val3 ;
6364 int ecode3 = 0 ;
6365 PyObject * obj0 = 0 ;
6366 PyObject * obj1 = 0 ;
6367 PyObject * obj2 = 0 ;
6368 char * kwnames[] = {
6369 (char *) "self",(char *) "from",(char *) "to", NULL
6370 };
6371
6372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6374 if (!SWIG_IsOK(res1)) {
6375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Remove" "', expected argument " "1"" of type '" "wxComboBox *""'");
6376 }
6377 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6378 ecode2 = SWIG_AsVal_long(obj1, &val2);
6379 if (!SWIG_IsOK(ecode2)) {
6380 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Remove" "', expected argument " "2"" of type '" "long""'");
6381 }
6382 arg2 = static_cast< long >(val2);
6383 ecode3 = SWIG_AsVal_long(obj2, &val3);
6384 if (!SWIG_IsOK(ecode3)) {
6385 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Remove" "', expected argument " "3"" of type '" "long""'");
6386 }
6387 arg3 = static_cast< long >(val3);
6388 {
6389 PyThreadState* __tstate = wxPyBeginAllowThreads();
6390 (arg1)->Remove(arg2,arg3);
6391 wxPyEndAllowThreads(__tstate);
6392 if (PyErr_Occurred()) SWIG_fail;
6393 }
6394 resultobj = SWIG_Py_Void();
6395 return resultobj;
6396 fail:
6397 return NULL;
6398 }
6399
6400
6401 SWIGINTERN PyObject *_wrap_ComboBox_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6402 PyObject *resultobj = 0;
6403 wxComboBox *arg1 = (wxComboBox *) 0 ;
6404 bool result;
6405 void *argp1 = 0 ;
6406 int res1 = 0 ;
6407 PyObject *swig_obj[1] ;
6408
6409 if (!args) SWIG_fail;
6410 swig_obj[0] = args;
6411 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6412 if (!SWIG_IsOK(res1)) {
6413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_IsEditable" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6414 }
6415 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6416 {
6417 PyThreadState* __tstate = wxPyBeginAllowThreads();
6418 result = (bool)((wxComboBox const *)arg1)->IsEditable();
6419 wxPyEndAllowThreads(__tstate);
6420 if (PyErr_Occurred()) SWIG_fail;
6421 }
6422 {
6423 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6424 }
6425 return resultobj;
6426 fail:
6427 return NULL;
6428 }
6429
6430
6431 SWIGINTERN PyObject *_wrap_ComboBox_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6432 PyObject *resultobj = 0;
6433 wxComboBox *arg1 = (wxComboBox *) 0 ;
6434 void *argp1 = 0 ;
6435 int res1 = 0 ;
6436 PyObject *swig_obj[1] ;
6437
6438 if (!args) SWIG_fail;
6439 swig_obj[0] = args;
6440 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6441 if (!SWIG_IsOK(res1)) {
6442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Undo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6443 }
6444 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6445 {
6446 PyThreadState* __tstate = wxPyBeginAllowThreads();
6447 (arg1)->Undo();
6448 wxPyEndAllowThreads(__tstate);
6449 if (PyErr_Occurred()) SWIG_fail;
6450 }
6451 resultobj = SWIG_Py_Void();
6452 return resultobj;
6453 fail:
6454 return NULL;
6455 }
6456
6457
6458 SWIGINTERN PyObject *_wrap_ComboBox_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6459 PyObject *resultobj = 0;
6460 wxComboBox *arg1 = (wxComboBox *) 0 ;
6461 void *argp1 = 0 ;
6462 int res1 = 0 ;
6463 PyObject *swig_obj[1] ;
6464
6465 if (!args) SWIG_fail;
6466 swig_obj[0] = args;
6467 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6468 if (!SWIG_IsOK(res1)) {
6469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Redo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6470 }
6471 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6472 {
6473 PyThreadState* __tstate = wxPyBeginAllowThreads();
6474 (arg1)->Redo();
6475 wxPyEndAllowThreads(__tstate);
6476 if (PyErr_Occurred()) SWIG_fail;
6477 }
6478 resultobj = SWIG_Py_Void();
6479 return resultobj;
6480 fail:
6481 return NULL;
6482 }
6483
6484
6485 SWIGINTERN PyObject *_wrap_ComboBox_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6486 PyObject *resultobj = 0;
6487 wxComboBox *arg1 = (wxComboBox *) 0 ;
6488 void *argp1 = 0 ;
6489 int res1 = 0 ;
6490 PyObject *swig_obj[1] ;
6491
6492 if (!args) SWIG_fail;
6493 swig_obj[0] = args;
6494 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6495 if (!SWIG_IsOK(res1)) {
6496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SelectAll" "', expected argument " "1"" of type '" "wxComboBox *""'");
6497 }
6498 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6499 {
6500 PyThreadState* __tstate = wxPyBeginAllowThreads();
6501 (arg1)->SelectAll();
6502 wxPyEndAllowThreads(__tstate);
6503 if (PyErr_Occurred()) SWIG_fail;
6504 }
6505 resultobj = SWIG_Py_Void();
6506 return resultobj;
6507 fail:
6508 return NULL;
6509 }
6510
6511
6512 SWIGINTERN PyObject *_wrap_ComboBox_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6513 PyObject *resultobj = 0;
6514 wxComboBox *arg1 = (wxComboBox *) 0 ;
6515 bool result;
6516 void *argp1 = 0 ;
6517 int res1 = 0 ;
6518 PyObject *swig_obj[1] ;
6519
6520 if (!args) SWIG_fail;
6521 swig_obj[0] = args;
6522 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6523 if (!SWIG_IsOK(res1)) {
6524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCopy" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6525 }
6526 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6527 {
6528 PyThreadState* __tstate = wxPyBeginAllowThreads();
6529 result = (bool)((wxComboBox const *)arg1)->CanCopy();
6530 wxPyEndAllowThreads(__tstate);
6531 if (PyErr_Occurred()) SWIG_fail;
6532 }
6533 {
6534 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6535 }
6536 return resultobj;
6537 fail:
6538 return NULL;
6539 }
6540
6541
6542 SWIGINTERN PyObject *_wrap_ComboBox_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6543 PyObject *resultobj = 0;
6544 wxComboBox *arg1 = (wxComboBox *) 0 ;
6545 bool result;
6546 void *argp1 = 0 ;
6547 int res1 = 0 ;
6548 PyObject *swig_obj[1] ;
6549
6550 if (!args) SWIG_fail;
6551 swig_obj[0] = args;
6552 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6553 if (!SWIG_IsOK(res1)) {
6554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCut" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6555 }
6556 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6557 {
6558 PyThreadState* __tstate = wxPyBeginAllowThreads();
6559 result = (bool)((wxComboBox const *)arg1)->CanCut();
6560 wxPyEndAllowThreads(__tstate);
6561 if (PyErr_Occurred()) SWIG_fail;
6562 }
6563 {
6564 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6565 }
6566 return resultobj;
6567 fail:
6568 return NULL;
6569 }
6570
6571
6572 SWIGINTERN PyObject *_wrap_ComboBox_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6573 PyObject *resultobj = 0;
6574 wxComboBox *arg1 = (wxComboBox *) 0 ;
6575 bool result;
6576 void *argp1 = 0 ;
6577 int res1 = 0 ;
6578 PyObject *swig_obj[1] ;
6579
6580 if (!args) SWIG_fail;
6581 swig_obj[0] = args;
6582 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6583 if (!SWIG_IsOK(res1)) {
6584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanPaste" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6585 }
6586 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6587 {
6588 PyThreadState* __tstate = wxPyBeginAllowThreads();
6589 result = (bool)((wxComboBox const *)arg1)->CanPaste();
6590 wxPyEndAllowThreads(__tstate);
6591 if (PyErr_Occurred()) SWIG_fail;
6592 }
6593 {
6594 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6595 }
6596 return resultobj;
6597 fail:
6598 return NULL;
6599 }
6600
6601
6602 SWIGINTERN PyObject *_wrap_ComboBox_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6603 PyObject *resultobj = 0;
6604 wxComboBox *arg1 = (wxComboBox *) 0 ;
6605 bool result;
6606 void *argp1 = 0 ;
6607 int res1 = 0 ;
6608 PyObject *swig_obj[1] ;
6609
6610 if (!args) SWIG_fail;
6611 swig_obj[0] = args;
6612 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6613 if (!SWIG_IsOK(res1)) {
6614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanUndo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6615 }
6616 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6617 {
6618 PyThreadState* __tstate = wxPyBeginAllowThreads();
6619 result = (bool)((wxComboBox const *)arg1)->CanUndo();
6620 wxPyEndAllowThreads(__tstate);
6621 if (PyErr_Occurred()) SWIG_fail;
6622 }
6623 {
6624 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6625 }
6626 return resultobj;
6627 fail:
6628 return NULL;
6629 }
6630
6631
6632 SWIGINTERN PyObject *_wrap_ComboBox_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6633 PyObject *resultobj = 0;
6634 wxComboBox *arg1 = (wxComboBox *) 0 ;
6635 bool result;
6636 void *argp1 = 0 ;
6637 int res1 = 0 ;
6638 PyObject *swig_obj[1] ;
6639
6640 if (!args) SWIG_fail;
6641 swig_obj[0] = args;
6642 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6643 if (!SWIG_IsOK(res1)) {
6644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanRedo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6645 }
6646 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6647 {
6648 PyThreadState* __tstate = wxPyBeginAllowThreads();
6649 result = (bool)((wxComboBox const *)arg1)->CanRedo();
6650 wxPyEndAllowThreads(__tstate);
6651 if (PyErr_Occurred()) SWIG_fail;
6652 }
6653 {
6654 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6655 }
6656 return resultobj;
6657 fail:
6658 return NULL;
6659 }
6660
6661
6662 SWIGINTERN PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6663 PyObject *resultobj = 0;
6664 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
6665 SwigValueWrapper<wxVisualAttributes > result;
6666 int val1 ;
6667 int ecode1 = 0 ;
6668 PyObject * obj0 = 0 ;
6669 char * kwnames[] = {
6670 (char *) "variant", NULL
6671 };
6672
6673 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
6674 if (obj0) {
6675 ecode1 = SWIG_AsVal_int(obj0, &val1);
6676 if (!SWIG_IsOK(ecode1)) {
6677 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ComboBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
6678 }
6679 arg1 = static_cast< wxWindowVariant >(val1);
6680 }
6681 {
6682 if (!wxPyCheckForApp()) SWIG_fail;
6683 PyThreadState* __tstate = wxPyBeginAllowThreads();
6684 result = wxComboBox::GetClassDefaultAttributes(arg1);
6685 wxPyEndAllowThreads(__tstate);
6686 if (PyErr_Occurred()) SWIG_fail;
6687 }
6688 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
6689 return resultobj;
6690 fail:
6691 return NULL;
6692 }
6693
6694
6695 SWIGINTERN PyObject *ComboBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6696 PyObject *obj;
6697 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6698 SWIG_TypeNewClientData(SWIGTYPE_p_wxComboBox, SWIG_NewClientData(obj));
6699 return SWIG_Py_Void();
6700 }
6701
6702 SWIGINTERN PyObject *ComboBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6703 return SWIG_Python_InitShadowInstance(args);
6704 }
6705
6706 SWIGINTERN int GaugeNameStr_set(PyObject *) {
6707 SWIG_Error(SWIG_AttributeError,"Variable GaugeNameStr is read-only.");
6708 return 1;
6709 }
6710
6711
6712 SWIGINTERN PyObject *GaugeNameStr_get(void) {
6713 PyObject *pyobj = 0;
6714
6715 {
6716 #if wxUSE_UNICODE
6717 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6718 #else
6719 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6720 #endif
6721 }
6722 return pyobj;
6723 }
6724
6725
6726 SWIGINTERN PyObject *_wrap_new_Gauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6727 PyObject *resultobj = 0;
6728 wxWindow *arg1 = (wxWindow *) 0 ;
6729 int arg2 = (int) -1 ;
6730 int arg3 = (int) 100 ;
6731 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6732 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6733 wxSize const &arg5_defvalue = wxDefaultSize ;
6734 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6735 long arg6 = (long) wxGA_HORIZONTAL ;
6736 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6737 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6738 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
6739 wxString *arg8 = (wxString *) &arg8_defvalue ;
6740 wxGauge *result = 0 ;
6741 void *argp1 = 0 ;
6742 int res1 = 0 ;
6743 int val2 ;
6744 int ecode2 = 0 ;
6745 int val3 ;
6746 int ecode3 = 0 ;
6747 wxPoint temp4 ;
6748 wxSize temp5 ;
6749 long val6 ;
6750 int ecode6 = 0 ;
6751 void *argp7 = 0 ;
6752 int res7 = 0 ;
6753 bool temp8 = false ;
6754 PyObject * obj0 = 0 ;
6755 PyObject * obj1 = 0 ;
6756 PyObject * obj2 = 0 ;
6757 PyObject * obj3 = 0 ;
6758 PyObject * obj4 = 0 ;
6759 PyObject * obj5 = 0 ;
6760 PyObject * obj6 = 0 ;
6761 PyObject * obj7 = 0 ;
6762 char * kwnames[] = {
6763 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6764 };
6765
6766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
6767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
6768 if (!SWIG_IsOK(res1)) {
6769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gauge" "', expected argument " "1"" of type '" "wxWindow *""'");
6770 }
6771 arg1 = reinterpret_cast< wxWindow * >(argp1);
6772 if (obj1) {
6773 ecode2 = SWIG_AsVal_int(obj1, &val2);
6774 if (!SWIG_IsOK(ecode2)) {
6775 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gauge" "', expected argument " "2"" of type '" "int""'");
6776 }
6777 arg2 = static_cast< int >(val2);
6778 }
6779 if (obj2) {
6780 ecode3 = SWIG_AsVal_int(obj2, &val3);
6781 if (!SWIG_IsOK(ecode3)) {
6782 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gauge" "', expected argument " "3"" of type '" "int""'");
6783 }
6784 arg3 = static_cast< int >(val3);
6785 }
6786 if (obj3) {
6787 {
6788 arg4 = &temp4;
6789 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
6790 }
6791 }
6792 if (obj4) {
6793 {
6794 arg5 = &temp5;
6795 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
6796 }
6797 }
6798 if (obj5) {
6799 ecode6 = SWIG_AsVal_long(obj5, &val6);
6800 if (!SWIG_IsOK(ecode6)) {
6801 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Gauge" "', expected argument " "6"" of type '" "long""'");
6802 }
6803 arg6 = static_cast< long >(val6);
6804 }
6805 if (obj6) {
6806 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
6807 if (!SWIG_IsOK(res7)) {
6808 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6809 }
6810 if (!argp7) {
6811 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6812 }
6813 arg7 = reinterpret_cast< wxValidator * >(argp7);
6814 }
6815 if (obj7) {
6816 {
6817 arg8 = wxString_in_helper(obj7);
6818 if (arg8 == NULL) SWIG_fail;
6819 temp8 = true;
6820 }
6821 }
6822 {
6823 if (!wxPyCheckForApp()) SWIG_fail;
6824 PyThreadState* __tstate = wxPyBeginAllowThreads();
6825 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6826 wxPyEndAllowThreads(__tstate);
6827 if (PyErr_Occurred()) SWIG_fail;
6828 }
6829 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_NEW | 0 );
6830 {
6831 if (temp8)
6832 delete arg8;
6833 }
6834 return resultobj;
6835 fail:
6836 {
6837 if (temp8)
6838 delete arg8;
6839 }
6840 return NULL;
6841 }
6842
6843
6844 SWIGINTERN PyObject *_wrap_new_PreGauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6845 PyObject *resultobj = 0;
6846 wxGauge *result = 0 ;
6847
6848 if (!SWIG_Python_UnpackTuple(args,"new_PreGauge",0,0,0)) SWIG_fail;
6849 {
6850 if (!wxPyCheckForApp()) SWIG_fail;
6851 PyThreadState* __tstate = wxPyBeginAllowThreads();
6852 result = (wxGauge *)new wxGauge();
6853 wxPyEndAllowThreads(__tstate);
6854 if (PyErr_Occurred()) SWIG_fail;
6855 }
6856 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_OWN | 0 );
6857 return resultobj;
6858 fail:
6859 return NULL;
6860 }
6861
6862
6863 SWIGINTERN PyObject *_wrap_Gauge_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6864 PyObject *resultobj = 0;
6865 wxGauge *arg1 = (wxGauge *) 0 ;
6866 wxWindow *arg2 = (wxWindow *) 0 ;
6867 int arg3 = (int) -1 ;
6868 int arg4 = (int) 100 ;
6869 wxPoint const &arg5_defvalue = wxDefaultPosition ;
6870 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
6871 wxSize const &arg6_defvalue = wxDefaultSize ;
6872 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
6873 long arg7 = (long) wxGA_HORIZONTAL ;
6874 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6875 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6876 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
6877 wxString *arg9 = (wxString *) &arg9_defvalue ;
6878 bool result;
6879 void *argp1 = 0 ;
6880 int res1 = 0 ;
6881 void *argp2 = 0 ;
6882 int res2 = 0 ;
6883 int val3 ;
6884 int ecode3 = 0 ;
6885 int val4 ;
6886 int ecode4 = 0 ;
6887 wxPoint temp5 ;
6888 wxSize temp6 ;
6889 long val7 ;
6890 int ecode7 = 0 ;
6891 void *argp8 = 0 ;
6892 int res8 = 0 ;
6893 bool temp9 = false ;
6894 PyObject * obj0 = 0 ;
6895 PyObject * obj1 = 0 ;
6896 PyObject * obj2 = 0 ;
6897 PyObject * obj3 = 0 ;
6898 PyObject * obj4 = 0 ;
6899 PyObject * obj5 = 0 ;
6900 PyObject * obj6 = 0 ;
6901 PyObject * obj7 = 0 ;
6902 PyObject * obj8 = 0 ;
6903 char * kwnames[] = {
6904 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6905 };
6906
6907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
6908 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
6909 if (!SWIG_IsOK(res1)) {
6910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Create" "', expected argument " "1"" of type '" "wxGauge *""'");
6911 }
6912 arg1 = reinterpret_cast< wxGauge * >(argp1);
6913 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
6914 if (!SWIG_IsOK(res2)) {
6915 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gauge_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
6916 }
6917 arg2 = reinterpret_cast< wxWindow * >(argp2);
6918 if (obj2) {
6919 ecode3 = SWIG_AsVal_int(obj2, &val3);
6920 if (!SWIG_IsOK(ecode3)) {
6921 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Gauge_Create" "', expected argument " "3"" of type '" "int""'");
6922 }
6923 arg3 = static_cast< int >(val3);
6924 }
6925 if (obj3) {
6926 ecode4 = SWIG_AsVal_int(obj3, &val4);
6927 if (!SWIG_IsOK(ecode4)) {
6928 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Gauge_Create" "', expected argument " "4"" of type '" "int""'");
6929 }
6930 arg4 = static_cast< int >(val4);
6931 }
6932 if (obj4) {
6933 {
6934 arg5 = &temp5;
6935 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
6936 }
6937 }
6938 if (obj5) {
6939 {
6940 arg6 = &temp6;
6941 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
6942 }
6943 }
6944 if (obj6) {
6945 ecode7 = SWIG_AsVal_long(obj6, &val7);
6946 if (!SWIG_IsOK(ecode7)) {
6947 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Gauge_Create" "', expected argument " "7"" of type '" "long""'");
6948 }
6949 arg7 = static_cast< long >(val7);
6950 }
6951 if (obj7) {
6952 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
6953 if (!SWIG_IsOK(res8)) {
6954 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
6955 }
6956 if (!argp8) {
6957 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
6958 }
6959 arg8 = reinterpret_cast< wxValidator * >(argp8);
6960 }
6961 if (obj8) {
6962 {
6963 arg9 = wxString_in_helper(obj8);
6964 if (arg9 == NULL) SWIG_fail;
6965 temp9 = true;
6966 }
6967 }
6968 {
6969 PyThreadState* __tstate = wxPyBeginAllowThreads();
6970 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
6971 wxPyEndAllowThreads(__tstate);
6972 if (PyErr_Occurred()) SWIG_fail;
6973 }
6974 {
6975 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6976 }
6977 {
6978 if (temp9)
6979 delete arg9;
6980 }
6981 return resultobj;
6982 fail:
6983 {
6984 if (temp9)
6985 delete arg9;
6986 }
6987 return NULL;
6988 }
6989
6990
6991 SWIGINTERN PyObject *_wrap_Gauge_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6992 PyObject *resultobj = 0;
6993 wxGauge *arg1 = (wxGauge *) 0 ;
6994 int arg2 ;
6995 void *argp1 = 0 ;
6996 int res1 = 0 ;
6997 int val2 ;
6998 int ecode2 = 0 ;
6999 PyObject * obj0 = 0 ;
7000 PyObject * obj1 = 0 ;
7001 char * kwnames[] = {
7002 (char *) "self",(char *) "range", NULL
7003 };
7004
7005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) SWIG_fail;
7006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7007 if (!SWIG_IsOK(res1)) {
7008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetRange" "', expected argument " "1"" of type '" "wxGauge *""'");
7009 }
7010 arg1 = reinterpret_cast< wxGauge * >(argp1);
7011 ecode2 = SWIG_AsVal_int(obj1, &val2);
7012 if (!SWIG_IsOK(ecode2)) {
7013 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetRange" "', expected argument " "2"" of type '" "int""'");
7014 }
7015 arg2 = static_cast< int >(val2);
7016 {
7017 PyThreadState* __tstate = wxPyBeginAllowThreads();
7018 (arg1)->SetRange(arg2);
7019 wxPyEndAllowThreads(__tstate);
7020 if (PyErr_Occurred()) SWIG_fail;
7021 }
7022 resultobj = SWIG_Py_Void();
7023 return resultobj;
7024 fail:
7025 return NULL;
7026 }
7027
7028
7029 SWIGINTERN PyObject *_wrap_Gauge_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7030 PyObject *resultobj = 0;
7031 wxGauge *arg1 = (wxGauge *) 0 ;
7032 int result;
7033 void *argp1 = 0 ;
7034 int res1 = 0 ;
7035 PyObject *swig_obj[1] ;
7036
7037 if (!args) SWIG_fail;
7038 swig_obj[0] = args;
7039 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7040 if (!SWIG_IsOK(res1)) {
7041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetRange" "', expected argument " "1"" of type '" "wxGauge const *""'");
7042 }
7043 arg1 = reinterpret_cast< wxGauge * >(argp1);
7044 {
7045 PyThreadState* __tstate = wxPyBeginAllowThreads();
7046 result = (int)((wxGauge const *)arg1)->GetRange();
7047 wxPyEndAllowThreads(__tstate);
7048 if (PyErr_Occurred()) SWIG_fail;
7049 }
7050 resultobj = SWIG_From_int(static_cast< int >(result));
7051 return resultobj;
7052 fail:
7053 return NULL;
7054 }
7055
7056
7057 SWIGINTERN PyObject *_wrap_Gauge_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7058 PyObject *resultobj = 0;
7059 wxGauge *arg1 = (wxGauge *) 0 ;
7060 int arg2 ;
7061 void *argp1 = 0 ;
7062 int res1 = 0 ;
7063 int val2 ;
7064 int ecode2 = 0 ;
7065 PyObject * obj0 = 0 ;
7066 PyObject * obj1 = 0 ;
7067 char * kwnames[] = {
7068 (char *) "self",(char *) "pos", NULL
7069 };
7070
7071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
7072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7073 if (!SWIG_IsOK(res1)) {
7074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetValue" "', expected argument " "1"" of type '" "wxGauge *""'");
7075 }
7076 arg1 = reinterpret_cast< wxGauge * >(argp1);
7077 ecode2 = SWIG_AsVal_int(obj1, &val2);
7078 if (!SWIG_IsOK(ecode2)) {
7079 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetValue" "', expected argument " "2"" of type '" "int""'");
7080 }
7081 arg2 = static_cast< int >(val2);
7082 {
7083 PyThreadState* __tstate = wxPyBeginAllowThreads();
7084 (arg1)->SetValue(arg2);
7085 wxPyEndAllowThreads(__tstate);
7086 if (PyErr_Occurred()) SWIG_fail;
7087 }
7088 resultobj = SWIG_Py_Void();
7089 return resultobj;
7090 fail:
7091 return NULL;
7092 }
7093
7094
7095 SWIGINTERN PyObject *_wrap_Gauge_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7096 PyObject *resultobj = 0;
7097 wxGauge *arg1 = (wxGauge *) 0 ;
7098 int result;
7099 void *argp1 = 0 ;
7100 int res1 = 0 ;
7101 PyObject *swig_obj[1] ;
7102
7103 if (!args) SWIG_fail;
7104 swig_obj[0] = args;
7105 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7106 if (!SWIG_IsOK(res1)) {
7107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetValue" "', expected argument " "1"" of type '" "wxGauge const *""'");
7108 }
7109 arg1 = reinterpret_cast< wxGauge * >(argp1);
7110 {
7111 PyThreadState* __tstate = wxPyBeginAllowThreads();
7112 result = (int)((wxGauge const *)arg1)->GetValue();
7113 wxPyEndAllowThreads(__tstate);
7114 if (PyErr_Occurred()) SWIG_fail;
7115 }
7116 resultobj = SWIG_From_int(static_cast< int >(result));
7117 return resultobj;
7118 fail:
7119 return NULL;
7120 }
7121
7122
7123 SWIGINTERN PyObject *_wrap_Gauge_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7124 PyObject *resultobj = 0;
7125 wxGauge *arg1 = (wxGauge *) 0 ;
7126 bool result;
7127 void *argp1 = 0 ;
7128 int res1 = 0 ;
7129 PyObject *swig_obj[1] ;
7130
7131 if (!args) SWIG_fail;
7132 swig_obj[0] = args;
7133 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7134 if (!SWIG_IsOK(res1)) {
7135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_IsVertical" "', expected argument " "1"" of type '" "wxGauge const *""'");
7136 }
7137 arg1 = reinterpret_cast< wxGauge * >(argp1);
7138 {
7139 PyThreadState* __tstate = wxPyBeginAllowThreads();
7140 result = (bool)((wxGauge const *)arg1)->IsVertical();
7141 wxPyEndAllowThreads(__tstate);
7142 if (PyErr_Occurred()) SWIG_fail;
7143 }
7144 {
7145 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7146 }
7147 return resultobj;
7148 fail:
7149 return NULL;
7150 }
7151
7152
7153 SWIGINTERN PyObject *_wrap_Gauge_SetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7154 PyObject *resultobj = 0;
7155 wxGauge *arg1 = (wxGauge *) 0 ;
7156 int arg2 ;
7157 void *argp1 = 0 ;
7158 int res1 = 0 ;
7159 int val2 ;
7160 int ecode2 = 0 ;
7161 PyObject * obj0 = 0 ;
7162 PyObject * obj1 = 0 ;
7163 char * kwnames[] = {
7164 (char *) "self",(char *) "w", NULL
7165 };
7166
7167 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7168 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7169 if (!SWIG_IsOK(res1)) {
7170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetShadowWidth" "', expected argument " "1"" of type '" "wxGauge *""'");
7171 }
7172 arg1 = reinterpret_cast< wxGauge * >(argp1);
7173 ecode2 = SWIG_AsVal_int(obj1, &val2);
7174 if (!SWIG_IsOK(ecode2)) {
7175 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetShadowWidth" "', expected argument " "2"" of type '" "int""'");
7176 }
7177 arg2 = static_cast< int >(val2);
7178 {
7179 PyThreadState* __tstate = wxPyBeginAllowThreads();
7180 (arg1)->SetShadowWidth(arg2);
7181 wxPyEndAllowThreads(__tstate);
7182 if (PyErr_Occurred()) SWIG_fail;
7183 }
7184 resultobj = SWIG_Py_Void();
7185 return resultobj;
7186 fail:
7187 return NULL;
7188 }
7189
7190
7191 SWIGINTERN PyObject *_wrap_Gauge_GetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7192 PyObject *resultobj = 0;
7193 wxGauge *arg1 = (wxGauge *) 0 ;
7194 int result;
7195 void *argp1 = 0 ;
7196 int res1 = 0 ;
7197 PyObject *swig_obj[1] ;
7198
7199 if (!args) SWIG_fail;
7200 swig_obj[0] = args;
7201 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7202 if (!SWIG_IsOK(res1)) {
7203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetShadowWidth" "', expected argument " "1"" of type '" "wxGauge const *""'");
7204 }
7205 arg1 = reinterpret_cast< wxGauge * >(argp1);
7206 {
7207 PyThreadState* __tstate = wxPyBeginAllowThreads();
7208 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
7209 wxPyEndAllowThreads(__tstate);
7210 if (PyErr_Occurred()) SWIG_fail;
7211 }
7212 resultobj = SWIG_From_int(static_cast< int >(result));
7213 return resultobj;
7214 fail:
7215 return NULL;
7216 }
7217
7218
7219 SWIGINTERN PyObject *_wrap_Gauge_SetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7220 PyObject *resultobj = 0;
7221 wxGauge *arg1 = (wxGauge *) 0 ;
7222 int arg2 ;
7223 void *argp1 = 0 ;
7224 int res1 = 0 ;
7225 int val2 ;
7226 int ecode2 = 0 ;
7227 PyObject * obj0 = 0 ;
7228 PyObject * obj1 = 0 ;
7229 char * kwnames[] = {
7230 (char *) "self",(char *) "w", NULL
7231 };
7232
7233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) SWIG_fail;
7234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7235 if (!SWIG_IsOK(res1)) {
7236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetBezelFace" "', expected argument " "1"" of type '" "wxGauge *""'");
7237 }
7238 arg1 = reinterpret_cast< wxGauge * >(argp1);
7239 ecode2 = SWIG_AsVal_int(obj1, &val2);
7240 if (!SWIG_IsOK(ecode2)) {
7241 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetBezelFace" "', expected argument " "2"" of type '" "int""'");
7242 }
7243 arg2 = static_cast< int >(val2);
7244 {
7245 PyThreadState* __tstate = wxPyBeginAllowThreads();
7246 (arg1)->SetBezelFace(arg2);
7247 wxPyEndAllowThreads(__tstate);
7248 if (PyErr_Occurred()) SWIG_fail;
7249 }
7250 resultobj = SWIG_Py_Void();
7251 return resultobj;
7252 fail:
7253 return NULL;
7254 }
7255
7256
7257 SWIGINTERN PyObject *_wrap_Gauge_GetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7258 PyObject *resultobj = 0;
7259 wxGauge *arg1 = (wxGauge *) 0 ;
7260 int result;
7261 void *argp1 = 0 ;
7262 int res1 = 0 ;
7263 PyObject *swig_obj[1] ;
7264
7265 if (!args) SWIG_fail;
7266 swig_obj[0] = args;
7267 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7268 if (!SWIG_IsOK(res1)) {
7269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetBezelFace" "', expected argument " "1"" of type '" "wxGauge const *""'");
7270 }
7271 arg1 = reinterpret_cast< wxGauge * >(argp1);
7272 {
7273 PyThreadState* __tstate = wxPyBeginAllowThreads();
7274 result = (int)((wxGauge const *)arg1)->GetBezelFace();
7275 wxPyEndAllowThreads(__tstate);
7276 if (PyErr_Occurred()) SWIG_fail;
7277 }
7278 resultobj = SWIG_From_int(static_cast< int >(result));
7279 return resultobj;
7280 fail:
7281 return NULL;
7282 }
7283
7284
7285 SWIGINTERN PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7286 PyObject *resultobj = 0;
7287 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7288 SwigValueWrapper<wxVisualAttributes > result;
7289 int val1 ;
7290 int ecode1 = 0 ;
7291 PyObject * obj0 = 0 ;
7292 char * kwnames[] = {
7293 (char *) "variant", NULL
7294 };
7295
7296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7297 if (obj0) {
7298 ecode1 = SWIG_AsVal_int(obj0, &val1);
7299 if (!SWIG_IsOK(ecode1)) {
7300 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Gauge_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7301 }
7302 arg1 = static_cast< wxWindowVariant >(val1);
7303 }
7304 {
7305 if (!wxPyCheckForApp()) SWIG_fail;
7306 PyThreadState* __tstate = wxPyBeginAllowThreads();
7307 result = wxGauge::GetClassDefaultAttributes(arg1);
7308 wxPyEndAllowThreads(__tstate);
7309 if (PyErr_Occurred()) SWIG_fail;
7310 }
7311 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7312 return resultobj;
7313 fail:
7314 return NULL;
7315 }
7316
7317
7318 SWIGINTERN PyObject *Gauge_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7319 PyObject *obj;
7320 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7321 SWIG_TypeNewClientData(SWIGTYPE_p_wxGauge, SWIG_NewClientData(obj));
7322 return SWIG_Py_Void();
7323 }
7324
7325 SWIGINTERN PyObject *Gauge_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7326 return SWIG_Python_InitShadowInstance(args);
7327 }
7328
7329 SWIGINTERN int StaticBitmapNameStr_set(PyObject *) {
7330 SWIG_Error(SWIG_AttributeError,"Variable StaticBitmapNameStr is read-only.");
7331 return 1;
7332 }
7333
7334
7335 SWIGINTERN PyObject *StaticBitmapNameStr_get(void) {
7336 PyObject *pyobj = 0;
7337
7338 {
7339 #if wxUSE_UNICODE
7340 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7341 #else
7342 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7343 #endif
7344 }
7345 return pyobj;
7346 }
7347
7348
7349 SWIGINTERN int StaticBoxNameStr_set(PyObject *) {
7350 SWIG_Error(SWIG_AttributeError,"Variable StaticBoxNameStr is read-only.");
7351 return 1;
7352 }
7353
7354
7355 SWIGINTERN PyObject *StaticBoxNameStr_get(void) {
7356 PyObject *pyobj = 0;
7357
7358 {
7359 #if wxUSE_UNICODE
7360 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7361 #else
7362 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7363 #endif
7364 }
7365 return pyobj;
7366 }
7367
7368
7369 SWIGINTERN int StaticTextNameStr_set(PyObject *) {
7370 SWIG_Error(SWIG_AttributeError,"Variable StaticTextNameStr is read-only.");
7371 return 1;
7372 }
7373
7374
7375 SWIGINTERN PyObject *StaticTextNameStr_get(void) {
7376 PyObject *pyobj = 0;
7377
7378 {
7379 #if wxUSE_UNICODE
7380 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7381 #else
7382 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7383 #endif
7384 }
7385 return pyobj;
7386 }
7387
7388
7389 SWIGINTERN PyObject *_wrap_new_StaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7390 PyObject *resultobj = 0;
7391 wxWindow *arg1 = (wxWindow *) 0 ;
7392 int arg2 = (int) -1 ;
7393 wxString const &arg3_defvalue = wxPyEmptyString ;
7394 wxString *arg3 = (wxString *) &arg3_defvalue ;
7395 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7396 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7397 wxSize const &arg5_defvalue = wxDefaultSize ;
7398 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7399 long arg6 = (long) 0 ;
7400 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
7401 wxString *arg7 = (wxString *) &arg7_defvalue ;
7402 wxStaticBox *result = 0 ;
7403 void *argp1 = 0 ;
7404 int res1 = 0 ;
7405 int val2 ;
7406 int ecode2 = 0 ;
7407 bool temp3 = false ;
7408 wxPoint temp4 ;
7409 wxSize temp5 ;
7410 long val6 ;
7411 int ecode6 = 0 ;
7412 bool temp7 = false ;
7413 PyObject * obj0 = 0 ;
7414 PyObject * obj1 = 0 ;
7415 PyObject * obj2 = 0 ;
7416 PyObject * obj3 = 0 ;
7417 PyObject * obj4 = 0 ;
7418 PyObject * obj5 = 0 ;
7419 PyObject * obj6 = 0 ;
7420 char * kwnames[] = {
7421 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7422 };
7423
7424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7426 if (!SWIG_IsOK(res1)) {
7427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBox" "', expected argument " "1"" of type '" "wxWindow *""'");
7428 }
7429 arg1 = reinterpret_cast< wxWindow * >(argp1);
7430 if (obj1) {
7431 ecode2 = SWIG_AsVal_int(obj1, &val2);
7432 if (!SWIG_IsOK(ecode2)) {
7433 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBox" "', expected argument " "2"" of type '" "int""'");
7434 }
7435 arg2 = static_cast< int >(val2);
7436 }
7437 if (obj2) {
7438 {
7439 arg3 = wxString_in_helper(obj2);
7440 if (arg3 == NULL) SWIG_fail;
7441 temp3 = true;
7442 }
7443 }
7444 if (obj3) {
7445 {
7446 arg4 = &temp4;
7447 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7448 }
7449 }
7450 if (obj4) {
7451 {
7452 arg5 = &temp5;
7453 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7454 }
7455 }
7456 if (obj5) {
7457 ecode6 = SWIG_AsVal_long(obj5, &val6);
7458 if (!SWIG_IsOK(ecode6)) {
7459 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBox" "', expected argument " "6"" of type '" "long""'");
7460 }
7461 arg6 = static_cast< long >(val6);
7462 }
7463 if (obj6) {
7464 {
7465 arg7 = wxString_in_helper(obj6);
7466 if (arg7 == NULL) SWIG_fail;
7467 temp7 = true;
7468 }
7469 }
7470 {
7471 if (!wxPyCheckForApp()) SWIG_fail;
7472 PyThreadState* __tstate = wxPyBeginAllowThreads();
7473 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7474 wxPyEndAllowThreads(__tstate);
7475 if (PyErr_Occurred()) SWIG_fail;
7476 }
7477 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_NEW | 0 );
7478 {
7479 if (temp3)
7480 delete arg3;
7481 }
7482 {
7483 if (temp7)
7484 delete arg7;
7485 }
7486 return resultobj;
7487 fail:
7488 {
7489 if (temp3)
7490 delete arg3;
7491 }
7492 {
7493 if (temp7)
7494 delete arg7;
7495 }
7496 return NULL;
7497 }
7498
7499
7500 SWIGINTERN PyObject *_wrap_new_PreStaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7501 PyObject *resultobj = 0;
7502 wxStaticBox *result = 0 ;
7503
7504 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBox",0,0,0)) SWIG_fail;
7505 {
7506 if (!wxPyCheckForApp()) SWIG_fail;
7507 PyThreadState* __tstate = wxPyBeginAllowThreads();
7508 result = (wxStaticBox *)new wxStaticBox();
7509 wxPyEndAllowThreads(__tstate);
7510 if (PyErr_Occurred()) SWIG_fail;
7511 }
7512 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_OWN | 0 );
7513 return resultobj;
7514 fail:
7515 return NULL;
7516 }
7517
7518
7519 SWIGINTERN PyObject *_wrap_StaticBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7520 PyObject *resultobj = 0;
7521 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
7522 wxWindow *arg2 = (wxWindow *) 0 ;
7523 int arg3 = (int) -1 ;
7524 wxString const &arg4_defvalue = wxPyEmptyString ;
7525 wxString *arg4 = (wxString *) &arg4_defvalue ;
7526 wxPoint const &arg5_defvalue = wxDefaultPosition ;
7527 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
7528 wxSize const &arg6_defvalue = wxDefaultSize ;
7529 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
7530 long arg7 = (long) 0 ;
7531 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
7532 wxString *arg8 = (wxString *) &arg8_defvalue ;
7533 bool result;
7534 void *argp1 = 0 ;
7535 int res1 = 0 ;
7536 void *argp2 = 0 ;
7537 int res2 = 0 ;
7538 int val3 ;
7539 int ecode3 = 0 ;
7540 bool temp4 = false ;
7541 wxPoint temp5 ;
7542 wxSize temp6 ;
7543 long val7 ;
7544 int ecode7 = 0 ;
7545 bool temp8 = false ;
7546 PyObject * obj0 = 0 ;
7547 PyObject * obj1 = 0 ;
7548 PyObject * obj2 = 0 ;
7549 PyObject * obj3 = 0 ;
7550 PyObject * obj4 = 0 ;
7551 PyObject * obj5 = 0 ;
7552 PyObject * obj6 = 0 ;
7553 PyObject * obj7 = 0 ;
7554 char * kwnames[] = {
7555 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7556 };
7557
7558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
7559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBox, 0 | 0 );
7560 if (!SWIG_IsOK(res1)) {
7561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBox_Create" "', expected argument " "1"" of type '" "wxStaticBox *""'");
7562 }
7563 arg1 = reinterpret_cast< wxStaticBox * >(argp1);
7564 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7565 if (!SWIG_IsOK(res2)) {
7566 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7567 }
7568 arg2 = reinterpret_cast< wxWindow * >(argp2);
7569 if (obj2) {
7570 ecode3 = SWIG_AsVal_int(obj2, &val3);
7571 if (!SWIG_IsOK(ecode3)) {
7572 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBox_Create" "', expected argument " "3"" of type '" "int""'");
7573 }
7574 arg3 = static_cast< int >(val3);
7575 }
7576 if (obj3) {
7577 {
7578 arg4 = wxString_in_helper(obj3);
7579 if (arg4 == NULL) SWIG_fail;
7580 temp4 = true;
7581 }
7582 }
7583 if (obj4) {
7584 {
7585 arg5 = &temp5;
7586 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
7587 }
7588 }
7589 if (obj5) {
7590 {
7591 arg6 = &temp6;
7592 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
7593 }
7594 }
7595 if (obj6) {
7596 ecode7 = SWIG_AsVal_long(obj6, &val7);
7597 if (!SWIG_IsOK(ecode7)) {
7598 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBox_Create" "', expected argument " "7"" of type '" "long""'");
7599 }
7600 arg7 = static_cast< long >(val7);
7601 }
7602 if (obj7) {
7603 {
7604 arg8 = wxString_in_helper(obj7);
7605 if (arg8 == NULL) SWIG_fail;
7606 temp8 = true;
7607 }
7608 }
7609 {
7610 PyThreadState* __tstate = wxPyBeginAllowThreads();
7611 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
7612 wxPyEndAllowThreads(__tstate);
7613 if (PyErr_Occurred()) SWIG_fail;
7614 }
7615 {
7616 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7617 }
7618 {
7619 if (temp4)
7620 delete arg4;
7621 }
7622 {
7623 if (temp8)
7624 delete arg8;
7625 }
7626 return resultobj;
7627 fail:
7628 {
7629 if (temp4)
7630 delete arg4;
7631 }
7632 {
7633 if (temp8)
7634 delete arg8;
7635 }
7636 return NULL;
7637 }
7638
7639
7640 SWIGINTERN PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7641 PyObject *resultobj = 0;
7642 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7643 SwigValueWrapper<wxVisualAttributes > result;
7644 int val1 ;
7645 int ecode1 = 0 ;
7646 PyObject * obj0 = 0 ;
7647 char * kwnames[] = {
7648 (char *) "variant", NULL
7649 };
7650
7651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7652 if (obj0) {
7653 ecode1 = SWIG_AsVal_int(obj0, &val1);
7654 if (!SWIG_IsOK(ecode1)) {
7655 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7656 }
7657 arg1 = static_cast< wxWindowVariant >(val1);
7658 }
7659 {
7660 if (!wxPyCheckForApp()) SWIG_fail;
7661 PyThreadState* __tstate = wxPyBeginAllowThreads();
7662 result = wxStaticBox::GetClassDefaultAttributes(arg1);
7663 wxPyEndAllowThreads(__tstate);
7664 if (PyErr_Occurred()) SWIG_fail;
7665 }
7666 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7667 return resultobj;
7668 fail:
7669 return NULL;
7670 }
7671
7672
7673 SWIGINTERN PyObject *StaticBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7674 PyObject *obj;
7675 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7676 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBox, SWIG_NewClientData(obj));
7677 return SWIG_Py_Void();
7678 }
7679
7680 SWIGINTERN PyObject *StaticBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7681 return SWIG_Python_InitShadowInstance(args);
7682 }
7683
7684 SWIGINTERN PyObject *_wrap_new_StaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7685 PyObject *resultobj = 0;
7686 wxWindow *arg1 = (wxWindow *) 0 ;
7687 int arg2 = (int) -1 ;
7688 wxPoint const &arg3_defvalue = wxDefaultPosition ;
7689 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
7690 wxSize const &arg4_defvalue = wxDefaultSize ;
7691 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
7692 long arg5 = (long) wxLI_HORIZONTAL ;
7693 wxString const &arg6_defvalue = wxPyStaticTextNameStr ;
7694 wxString *arg6 = (wxString *) &arg6_defvalue ;
7695 wxStaticLine *result = 0 ;
7696 void *argp1 = 0 ;
7697 int res1 = 0 ;
7698 int val2 ;
7699 int ecode2 = 0 ;
7700 wxPoint temp3 ;
7701 wxSize temp4 ;
7702 long val5 ;
7703 int ecode5 = 0 ;
7704 bool temp6 = false ;
7705 PyObject * obj0 = 0 ;
7706 PyObject * obj1 = 0 ;
7707 PyObject * obj2 = 0 ;
7708 PyObject * obj3 = 0 ;
7709 PyObject * obj4 = 0 ;
7710 PyObject * obj5 = 0 ;
7711 char * kwnames[] = {
7712 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7713 };
7714
7715 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
7716 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7717 if (!SWIG_IsOK(res1)) {
7718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticLine" "', expected argument " "1"" of type '" "wxWindow *""'");
7719 }
7720 arg1 = reinterpret_cast< wxWindow * >(argp1);
7721 if (obj1) {
7722 ecode2 = SWIG_AsVal_int(obj1, &val2);
7723 if (!SWIG_IsOK(ecode2)) {
7724 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticLine" "', expected argument " "2"" of type '" "int""'");
7725 }
7726 arg2 = static_cast< int >(val2);
7727 }
7728 if (obj2) {
7729 {
7730 arg3 = &temp3;
7731 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
7732 }
7733 }
7734 if (obj3) {
7735 {
7736 arg4 = &temp4;
7737 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
7738 }
7739 }
7740 if (obj4) {
7741 ecode5 = SWIG_AsVal_long(obj4, &val5);
7742 if (!SWIG_IsOK(ecode5)) {
7743 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_StaticLine" "', expected argument " "5"" of type '" "long""'");
7744 }
7745 arg5 = static_cast< long >(val5);
7746 }
7747 if (obj5) {
7748 {
7749 arg6 = wxString_in_helper(obj5);
7750 if (arg6 == NULL) SWIG_fail;
7751 temp6 = true;
7752 }
7753 }
7754 {
7755 if (!wxPyCheckForApp()) SWIG_fail;
7756 PyThreadState* __tstate = wxPyBeginAllowThreads();
7757 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
7758 wxPyEndAllowThreads(__tstate);
7759 if (PyErr_Occurred()) SWIG_fail;
7760 }
7761 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_NEW | 0 );
7762 {
7763 if (temp6)
7764 delete arg6;
7765 }
7766 return resultobj;
7767 fail:
7768 {
7769 if (temp6)
7770 delete arg6;
7771 }
7772 return NULL;
7773 }
7774
7775
7776 SWIGINTERN PyObject *_wrap_new_PreStaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7777 PyObject *resultobj = 0;
7778 wxStaticLine *result = 0 ;
7779
7780 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticLine",0,0,0)) SWIG_fail;
7781 {
7782 if (!wxPyCheckForApp()) SWIG_fail;
7783 PyThreadState* __tstate = wxPyBeginAllowThreads();
7784 result = (wxStaticLine *)new wxStaticLine();
7785 wxPyEndAllowThreads(__tstate);
7786 if (PyErr_Occurred()) SWIG_fail;
7787 }
7788 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_OWN | 0 );
7789 return resultobj;
7790 fail:
7791 return NULL;
7792 }
7793
7794
7795 SWIGINTERN PyObject *_wrap_StaticLine_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7796 PyObject *resultobj = 0;
7797 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7798 wxWindow *arg2 = (wxWindow *) 0 ;
7799 int arg3 = (int) -1 ;
7800 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7801 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7802 wxSize const &arg5_defvalue = wxDefaultSize ;
7803 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7804 long arg6 = (long) wxLI_HORIZONTAL ;
7805 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
7806 wxString *arg7 = (wxString *) &arg7_defvalue ;
7807 bool result;
7808 void *argp1 = 0 ;
7809 int res1 = 0 ;
7810 void *argp2 = 0 ;
7811 int res2 = 0 ;
7812 int val3 ;
7813 int ecode3 = 0 ;
7814 wxPoint temp4 ;
7815 wxSize temp5 ;
7816 long val6 ;
7817 int ecode6 = 0 ;
7818 bool temp7 = false ;
7819 PyObject * obj0 = 0 ;
7820 PyObject * obj1 = 0 ;
7821 PyObject * obj2 = 0 ;
7822 PyObject * obj3 = 0 ;
7823 PyObject * obj4 = 0 ;
7824 PyObject * obj5 = 0 ;
7825 PyObject * obj6 = 0 ;
7826 char * kwnames[] = {
7827 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7828 };
7829
7830 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7831 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7832 if (!SWIG_IsOK(res1)) {
7833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_Create" "', expected argument " "1"" of type '" "wxStaticLine *""'");
7834 }
7835 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7836 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7837 if (!SWIG_IsOK(res2)) {
7838 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticLine_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7839 }
7840 arg2 = reinterpret_cast< wxWindow * >(argp2);
7841 if (obj2) {
7842 ecode3 = SWIG_AsVal_int(obj2, &val3);
7843 if (!SWIG_IsOK(ecode3)) {
7844 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticLine_Create" "', expected argument " "3"" of type '" "int""'");
7845 }
7846 arg3 = static_cast< int >(val3);
7847 }
7848 if (obj3) {
7849 {
7850 arg4 = &temp4;
7851 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7852 }
7853 }
7854 if (obj4) {
7855 {
7856 arg5 = &temp5;
7857 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7858 }
7859 }
7860 if (obj5) {
7861 ecode6 = SWIG_AsVal_long(obj5, &val6);
7862 if (!SWIG_IsOK(ecode6)) {
7863 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "StaticLine_Create" "', expected argument " "6"" of type '" "long""'");
7864 }
7865 arg6 = static_cast< long >(val6);
7866 }
7867 if (obj6) {
7868 {
7869 arg7 = wxString_in_helper(obj6);
7870 if (arg7 == NULL) SWIG_fail;
7871 temp7 = true;
7872 }
7873 }
7874 {
7875 PyThreadState* __tstate = wxPyBeginAllowThreads();
7876 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7877 wxPyEndAllowThreads(__tstate);
7878 if (PyErr_Occurred()) SWIG_fail;
7879 }
7880 {
7881 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7882 }
7883 {
7884 if (temp7)
7885 delete arg7;
7886 }
7887 return resultobj;
7888 fail:
7889 {
7890 if (temp7)
7891 delete arg7;
7892 }
7893 return NULL;
7894 }
7895
7896
7897 SWIGINTERN PyObject *_wrap_StaticLine_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7898 PyObject *resultobj = 0;
7899 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7900 bool result;
7901 void *argp1 = 0 ;
7902 int res1 = 0 ;
7903 PyObject *swig_obj[1] ;
7904
7905 if (!args) SWIG_fail;
7906 swig_obj[0] = args;
7907 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7908 if (!SWIG_IsOK(res1)) {
7909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_IsVertical" "', expected argument " "1"" of type '" "wxStaticLine const *""'");
7910 }
7911 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7912 {
7913 PyThreadState* __tstate = wxPyBeginAllowThreads();
7914 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
7915 wxPyEndAllowThreads(__tstate);
7916 if (PyErr_Occurred()) SWIG_fail;
7917 }
7918 {
7919 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7920 }
7921 return resultobj;
7922 fail:
7923 return NULL;
7924 }
7925
7926
7927 SWIGINTERN PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7928 PyObject *resultobj = 0;
7929 int result;
7930
7931 if (!SWIG_Python_UnpackTuple(args,"StaticLine_GetDefaultSize",0,0,0)) SWIG_fail;
7932 {
7933 PyThreadState* __tstate = wxPyBeginAllowThreads();
7934 result = (int)wxStaticLine::GetDefaultSize();
7935 wxPyEndAllowThreads(__tstate);
7936 if (PyErr_Occurred()) SWIG_fail;
7937 }
7938 resultobj = SWIG_From_int(static_cast< int >(result));
7939 return resultobj;
7940 fail:
7941 return NULL;
7942 }
7943
7944
7945 SWIGINTERN PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7946 PyObject *resultobj = 0;
7947 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7948 SwigValueWrapper<wxVisualAttributes > result;
7949 int val1 ;
7950 int ecode1 = 0 ;
7951 PyObject * obj0 = 0 ;
7952 char * kwnames[] = {
7953 (char *) "variant", NULL
7954 };
7955
7956 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7957 if (obj0) {
7958 ecode1 = SWIG_AsVal_int(obj0, &val1);
7959 if (!SWIG_IsOK(ecode1)) {
7960 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticLine_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7961 }
7962 arg1 = static_cast< wxWindowVariant >(val1);
7963 }
7964 {
7965 if (!wxPyCheckForApp()) SWIG_fail;
7966 PyThreadState* __tstate = wxPyBeginAllowThreads();
7967 result = wxStaticLine::GetClassDefaultAttributes(arg1);
7968 wxPyEndAllowThreads(__tstate);
7969 if (PyErr_Occurred()) SWIG_fail;
7970 }
7971 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7972 return resultobj;
7973 fail:
7974 return NULL;
7975 }
7976
7977
7978 SWIGINTERN PyObject *StaticLine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7979 PyObject *obj;
7980 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7981 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticLine, SWIG_NewClientData(obj));
7982 return SWIG_Py_Void();
7983 }
7984
7985 SWIGINTERN PyObject *StaticLine_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7986 return SWIG_Python_InitShadowInstance(args);
7987 }
7988
7989 SWIGINTERN PyObject *_wrap_new_StaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7990 PyObject *resultobj = 0;
7991 wxWindow *arg1 = (wxWindow *) 0 ;
7992 int arg2 = (int) -1 ;
7993 wxString const &arg3_defvalue = wxPyEmptyString ;
7994 wxString *arg3 = (wxString *) &arg3_defvalue ;
7995 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7996 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7997 wxSize const &arg5_defvalue = wxDefaultSize ;
7998 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7999 long arg6 = (long) 0 ;
8000 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
8001 wxString *arg7 = (wxString *) &arg7_defvalue ;
8002 wxStaticText *result = 0 ;
8003 void *argp1 = 0 ;
8004 int res1 = 0 ;
8005 int val2 ;
8006 int ecode2 = 0 ;
8007 bool temp3 = false ;
8008 wxPoint temp4 ;
8009 wxSize temp5 ;
8010 long val6 ;
8011 int ecode6 = 0 ;
8012 bool temp7 = false ;
8013 PyObject * obj0 = 0 ;
8014 PyObject * obj1 = 0 ;
8015 PyObject * obj2 = 0 ;
8016 PyObject * obj3 = 0 ;
8017 PyObject * obj4 = 0 ;
8018 PyObject * obj5 = 0 ;
8019 PyObject * obj6 = 0 ;
8020 char * kwnames[] = {
8021 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8022 };
8023
8024 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8025 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8026 if (!SWIG_IsOK(res1)) {
8027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticText" "', expected argument " "1"" of type '" "wxWindow *""'");
8028 }
8029 arg1 = reinterpret_cast< wxWindow * >(argp1);
8030 if (obj1) {
8031 ecode2 = SWIG_AsVal_int(obj1, &val2);
8032 if (!SWIG_IsOK(ecode2)) {
8033 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticText" "', expected argument " "2"" of type '" "int""'");
8034 }
8035 arg2 = static_cast< int >(val2);
8036 }
8037 if (obj2) {
8038 {
8039 arg3 = wxString_in_helper(obj2);
8040 if (arg3 == NULL) SWIG_fail;
8041 temp3 = true;
8042 }
8043 }
8044 if (obj3) {
8045 {
8046 arg4 = &temp4;
8047 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8048 }
8049 }
8050 if (obj4) {
8051 {
8052 arg5 = &temp5;
8053 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8054 }
8055 }
8056 if (obj5) {
8057 ecode6 = SWIG_AsVal_long(obj5, &val6);
8058 if (!SWIG_IsOK(ecode6)) {
8059 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticText" "', expected argument " "6"" of type '" "long""'");
8060 }
8061 arg6 = static_cast< long >(val6);
8062 }
8063 if (obj6) {
8064 {
8065 arg7 = wxString_in_helper(obj6);
8066 if (arg7 == NULL) SWIG_fail;
8067 temp7 = true;
8068 }
8069 }
8070 {
8071 if (!wxPyCheckForApp()) SWIG_fail;
8072 PyThreadState* __tstate = wxPyBeginAllowThreads();
8073 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8074 wxPyEndAllowThreads(__tstate);
8075 if (PyErr_Occurred()) SWIG_fail;
8076 }
8077 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_NEW | 0 );
8078 {
8079 if (temp3)
8080 delete arg3;
8081 }
8082 {
8083 if (temp7)
8084 delete arg7;
8085 }
8086 return resultobj;
8087 fail:
8088 {
8089 if (temp3)
8090 delete arg3;
8091 }
8092 {
8093 if (temp7)
8094 delete arg7;
8095 }
8096 return NULL;
8097 }
8098
8099
8100 SWIGINTERN PyObject *_wrap_new_PreStaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8101 PyObject *resultobj = 0;
8102 wxStaticText *result = 0 ;
8103
8104 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticText",0,0,0)) SWIG_fail;
8105 {
8106 if (!wxPyCheckForApp()) SWIG_fail;
8107 PyThreadState* __tstate = wxPyBeginAllowThreads();
8108 result = (wxStaticText *)new wxStaticText();
8109 wxPyEndAllowThreads(__tstate);
8110 if (PyErr_Occurred()) SWIG_fail;
8111 }
8112 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_OWN | 0 );
8113 return resultobj;
8114 fail:
8115 return NULL;
8116 }
8117
8118
8119 SWIGINTERN PyObject *_wrap_StaticText_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8120 PyObject *resultobj = 0;
8121 wxStaticText *arg1 = (wxStaticText *) 0 ;
8122 wxWindow *arg2 = (wxWindow *) 0 ;
8123 int arg3 = (int) -1 ;
8124 wxString const &arg4_defvalue = wxPyEmptyString ;
8125 wxString *arg4 = (wxString *) &arg4_defvalue ;
8126 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8127 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8128 wxSize const &arg6_defvalue = wxDefaultSize ;
8129 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8130 long arg7 = (long) 0 ;
8131 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
8132 wxString *arg8 = (wxString *) &arg8_defvalue ;
8133 bool result;
8134 void *argp1 = 0 ;
8135 int res1 = 0 ;
8136 void *argp2 = 0 ;
8137 int res2 = 0 ;
8138 int val3 ;
8139 int ecode3 = 0 ;
8140 bool temp4 = false ;
8141 wxPoint temp5 ;
8142 wxSize temp6 ;
8143 long val7 ;
8144 int ecode7 = 0 ;
8145 bool temp8 = false ;
8146 PyObject * obj0 = 0 ;
8147 PyObject * obj1 = 0 ;
8148 PyObject * obj2 = 0 ;
8149 PyObject * obj3 = 0 ;
8150 PyObject * obj4 = 0 ;
8151 PyObject * obj5 = 0 ;
8152 PyObject * obj6 = 0 ;
8153 PyObject * obj7 = 0 ;
8154 char * kwnames[] = {
8155 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8156 };
8157
8158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8160 if (!SWIG_IsOK(res1)) {
8161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Create" "', expected argument " "1"" of type '" "wxStaticText *""'");
8162 }
8163 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8164 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8165 if (!SWIG_IsOK(res2)) {
8166 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticText_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8167 }
8168 arg2 = reinterpret_cast< wxWindow * >(argp2);
8169 if (obj2) {
8170 ecode3 = SWIG_AsVal_int(obj2, &val3);
8171 if (!SWIG_IsOK(ecode3)) {
8172 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticText_Create" "', expected argument " "3"" of type '" "int""'");
8173 }
8174 arg3 = static_cast< int >(val3);
8175 }
8176 if (obj3) {
8177 {
8178 arg4 = wxString_in_helper(obj3);
8179 if (arg4 == NULL) SWIG_fail;
8180 temp4 = true;
8181 }
8182 }
8183 if (obj4) {
8184 {
8185 arg5 = &temp5;
8186 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8187 }
8188 }
8189 if (obj5) {
8190 {
8191 arg6 = &temp6;
8192 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8193 }
8194 }
8195 if (obj6) {
8196 ecode7 = SWIG_AsVal_long(obj6, &val7);
8197 if (!SWIG_IsOK(ecode7)) {
8198 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticText_Create" "', expected argument " "7"" of type '" "long""'");
8199 }
8200 arg7 = static_cast< long >(val7);
8201 }
8202 if (obj7) {
8203 {
8204 arg8 = wxString_in_helper(obj7);
8205 if (arg8 == NULL) SWIG_fail;
8206 temp8 = true;
8207 }
8208 }
8209 {
8210 PyThreadState* __tstate = wxPyBeginAllowThreads();
8211 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8212 wxPyEndAllowThreads(__tstate);
8213 if (PyErr_Occurred()) SWIG_fail;
8214 }
8215 {
8216 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8217 }
8218 {
8219 if (temp4)
8220 delete arg4;
8221 }
8222 {
8223 if (temp8)
8224 delete arg8;
8225 }
8226 return resultobj;
8227 fail:
8228 {
8229 if (temp4)
8230 delete arg4;
8231 }
8232 {
8233 if (temp8)
8234 delete arg8;
8235 }
8236 return NULL;
8237 }
8238
8239
8240 SWIGINTERN PyObject *_wrap_StaticText_Wrap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8241 PyObject *resultobj = 0;
8242 wxStaticText *arg1 = (wxStaticText *) 0 ;
8243 int arg2 ;
8244 void *argp1 = 0 ;
8245 int res1 = 0 ;
8246 int val2 ;
8247 int ecode2 = 0 ;
8248 PyObject * obj0 = 0 ;
8249 PyObject * obj1 = 0 ;
8250 char * kwnames[] = {
8251 (char *) "self",(char *) "width", NULL
8252 };
8253
8254 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticText_Wrap",kwnames,&obj0,&obj1)) SWIG_fail;
8255 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8256 if (!SWIG_IsOK(res1)) {
8257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Wrap" "', expected argument " "1"" of type '" "wxStaticText *""'");
8258 }
8259 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8260 ecode2 = SWIG_AsVal_int(obj1, &val2);
8261 if (!SWIG_IsOK(ecode2)) {
8262 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StaticText_Wrap" "', expected argument " "2"" of type '" "int""'");
8263 }
8264 arg2 = static_cast< int >(val2);
8265 {
8266 PyThreadState* __tstate = wxPyBeginAllowThreads();
8267 (arg1)->Wrap(arg2);
8268 wxPyEndAllowThreads(__tstate);
8269 if (PyErr_Occurred()) SWIG_fail;
8270 }
8271 resultobj = SWIG_Py_Void();
8272 return resultobj;
8273 fail:
8274 return NULL;
8275 }
8276
8277
8278 SWIGINTERN PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8279 PyObject *resultobj = 0;
8280 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8281 SwigValueWrapper<wxVisualAttributes > result;
8282 int val1 ;
8283 int ecode1 = 0 ;
8284 PyObject * obj0 = 0 ;
8285 char * kwnames[] = {
8286 (char *) "variant", NULL
8287 };
8288
8289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8290 if (obj0) {
8291 ecode1 = SWIG_AsVal_int(obj0, &val1);
8292 if (!SWIG_IsOK(ecode1)) {
8293 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticText_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8294 }
8295 arg1 = static_cast< wxWindowVariant >(val1);
8296 }
8297 {
8298 if (!wxPyCheckForApp()) SWIG_fail;
8299 PyThreadState* __tstate = wxPyBeginAllowThreads();
8300 result = wxStaticText::GetClassDefaultAttributes(arg1);
8301 wxPyEndAllowThreads(__tstate);
8302 if (PyErr_Occurred()) SWIG_fail;
8303 }
8304 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8305 return resultobj;
8306 fail:
8307 return NULL;
8308 }
8309
8310
8311 SWIGINTERN PyObject *StaticText_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8312 PyObject *obj;
8313 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8314 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticText, SWIG_NewClientData(obj));
8315 return SWIG_Py_Void();
8316 }
8317
8318 SWIGINTERN PyObject *StaticText_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8319 return SWIG_Python_InitShadowInstance(args);
8320 }
8321
8322 SWIGINTERN PyObject *_wrap_new_StaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8323 PyObject *resultobj = 0;
8324 wxWindow *arg1 = (wxWindow *) 0 ;
8325 int arg2 = (int) -1 ;
8326 wxBitmap const &arg3_defvalue = wxNullBitmap ;
8327 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
8328 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8329 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8330 wxSize const &arg5_defvalue = wxDefaultSize ;
8331 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8332 long arg6 = (long) 0 ;
8333 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
8334 wxString *arg7 = (wxString *) &arg7_defvalue ;
8335 wxStaticBitmap *result = 0 ;
8336 void *argp1 = 0 ;
8337 int res1 = 0 ;
8338 int val2 ;
8339 int ecode2 = 0 ;
8340 void *argp3 = 0 ;
8341 int res3 = 0 ;
8342 wxPoint temp4 ;
8343 wxSize temp5 ;
8344 long val6 ;
8345 int ecode6 = 0 ;
8346 bool temp7 = false ;
8347 PyObject * obj0 = 0 ;
8348 PyObject * obj1 = 0 ;
8349 PyObject * obj2 = 0 ;
8350 PyObject * obj3 = 0 ;
8351 PyObject * obj4 = 0 ;
8352 PyObject * obj5 = 0 ;
8353 PyObject * obj6 = 0 ;
8354 char * kwnames[] = {
8355 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8356 };
8357
8358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8359 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8360 if (!SWIG_IsOK(res1)) {
8361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBitmap" "', expected argument " "1"" of type '" "wxWindow *""'");
8362 }
8363 arg1 = reinterpret_cast< wxWindow * >(argp1);
8364 if (obj1) {
8365 ecode2 = SWIG_AsVal_int(obj1, &val2);
8366 if (!SWIG_IsOK(ecode2)) {
8367 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBitmap" "', expected argument " "2"" of type '" "int""'");
8368 }
8369 arg2 = static_cast< int >(val2);
8370 }
8371 if (obj2) {
8372 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
8373 if (!SWIG_IsOK(res3)) {
8374 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8375 }
8376 if (!argp3) {
8377 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8378 }
8379 arg3 = reinterpret_cast< wxBitmap * >(argp3);
8380 }
8381 if (obj3) {
8382 {
8383 arg4 = &temp4;
8384 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8385 }
8386 }
8387 if (obj4) {
8388 {
8389 arg5 = &temp5;
8390 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8391 }
8392 }
8393 if (obj5) {
8394 ecode6 = SWIG_AsVal_long(obj5, &val6);
8395 if (!SWIG_IsOK(ecode6)) {
8396 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBitmap" "', expected argument " "6"" of type '" "long""'");
8397 }
8398 arg6 = static_cast< long >(val6);
8399 }
8400 if (obj6) {
8401 {
8402 arg7 = wxString_in_helper(obj6);
8403 if (arg7 == NULL) SWIG_fail;
8404 temp7 = true;
8405 }
8406 }
8407 {
8408 if (!wxPyCheckForApp()) SWIG_fail;
8409 PyThreadState* __tstate = wxPyBeginAllowThreads();
8410 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8411 wxPyEndAllowThreads(__tstate);
8412 if (PyErr_Occurred()) SWIG_fail;
8413 }
8414 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_NEW | 0 );
8415 {
8416 if (temp7)
8417 delete arg7;
8418 }
8419 return resultobj;
8420 fail:
8421 {
8422 if (temp7)
8423 delete arg7;
8424 }
8425 return NULL;
8426 }
8427
8428
8429 SWIGINTERN PyObject *_wrap_new_PreStaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8430 PyObject *resultobj = 0;
8431 wxStaticBitmap *result = 0 ;
8432
8433 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBitmap",0,0,0)) SWIG_fail;
8434 {
8435 if (!wxPyCheckForApp()) SWIG_fail;
8436 PyThreadState* __tstate = wxPyBeginAllowThreads();
8437 result = (wxStaticBitmap *)new wxStaticBitmap();
8438 wxPyEndAllowThreads(__tstate);
8439 if (PyErr_Occurred()) SWIG_fail;
8440 }
8441 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_OWN | 0 );
8442 return resultobj;
8443 fail:
8444 return NULL;
8445 }
8446
8447
8448 SWIGINTERN PyObject *_wrap_StaticBitmap_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8449 PyObject *resultobj = 0;
8450 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8451 wxWindow *arg2 = (wxWindow *) 0 ;
8452 int arg3 = (int) -1 ;
8453 wxBitmap const &arg4_defvalue = wxNullBitmap ;
8454 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
8455 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8456 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8457 wxSize const &arg6_defvalue = wxDefaultSize ;
8458 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8459 long arg7 = (long) 0 ;
8460 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
8461 wxString *arg8 = (wxString *) &arg8_defvalue ;
8462 bool result;
8463 void *argp1 = 0 ;
8464 int res1 = 0 ;
8465 void *argp2 = 0 ;
8466 int res2 = 0 ;
8467 int val3 ;
8468 int ecode3 = 0 ;
8469 void *argp4 = 0 ;
8470 int res4 = 0 ;
8471 wxPoint temp5 ;
8472 wxSize temp6 ;
8473 long val7 ;
8474 int ecode7 = 0 ;
8475 bool temp8 = false ;
8476 PyObject * obj0 = 0 ;
8477 PyObject * obj1 = 0 ;
8478 PyObject * obj2 = 0 ;
8479 PyObject * obj3 = 0 ;
8480 PyObject * obj4 = 0 ;
8481 PyObject * obj5 = 0 ;
8482 PyObject * obj6 = 0 ;
8483 PyObject * obj7 = 0 ;
8484 char * kwnames[] = {
8485 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8486 };
8487
8488 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8489 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8490 if (!SWIG_IsOK(res1)) {
8491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_Create" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8492 }
8493 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8494 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8495 if (!SWIG_IsOK(res2)) {
8496 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8497 }
8498 arg2 = reinterpret_cast< wxWindow * >(argp2);
8499 if (obj2) {
8500 ecode3 = SWIG_AsVal_int(obj2, &val3);
8501 if (!SWIG_IsOK(ecode3)) {
8502 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBitmap_Create" "', expected argument " "3"" of type '" "int""'");
8503 }
8504 arg3 = static_cast< int >(val3);
8505 }
8506 if (obj3) {
8507 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
8508 if (!SWIG_IsOK(res4)) {
8509 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8510 }
8511 if (!argp4) {
8512 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8513 }
8514 arg4 = reinterpret_cast< wxBitmap * >(argp4);
8515 }
8516 if (obj4) {
8517 {
8518 arg5 = &temp5;
8519 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8520 }
8521 }
8522 if (obj5) {
8523 {
8524 arg6 = &temp6;
8525 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8526 }
8527 }
8528 if (obj6) {
8529 ecode7 = SWIG_AsVal_long(obj6, &val7);
8530 if (!SWIG_IsOK(ecode7)) {
8531 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBitmap_Create" "', expected argument " "7"" of type '" "long""'");
8532 }
8533 arg7 = static_cast< long >(val7);
8534 }
8535 if (obj7) {
8536 {
8537 arg8 = wxString_in_helper(obj7);
8538 if (arg8 == NULL) SWIG_fail;
8539 temp8 = true;
8540 }
8541 }
8542 {
8543 PyThreadState* __tstate = wxPyBeginAllowThreads();
8544 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8545 wxPyEndAllowThreads(__tstate);
8546 if (PyErr_Occurred()) SWIG_fail;
8547 }
8548 {
8549 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8550 }
8551 {
8552 if (temp8)
8553 delete arg8;
8554 }
8555 return resultobj;
8556 fail:
8557 {
8558 if (temp8)
8559 delete arg8;
8560 }
8561 return NULL;
8562 }
8563
8564
8565 SWIGINTERN PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8566 PyObject *resultobj = 0;
8567 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8568 wxBitmap result;
8569 void *argp1 = 0 ;
8570 int res1 = 0 ;
8571 PyObject *swig_obj[1] ;
8572
8573 if (!args) SWIG_fail;
8574 swig_obj[0] = args;
8575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8576 if (!SWIG_IsOK(res1)) {
8577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_GetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8578 }
8579 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8580 {
8581 PyThreadState* __tstate = wxPyBeginAllowThreads();
8582 result = (arg1)->GetBitmap();
8583 wxPyEndAllowThreads(__tstate);
8584 if (PyErr_Occurred()) SWIG_fail;
8585 }
8586 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8587 return resultobj;
8588 fail:
8589 return NULL;
8590 }
8591
8592
8593 SWIGINTERN PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8594 PyObject *resultobj = 0;
8595 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8596 wxBitmap *arg2 = 0 ;
8597 void *argp1 = 0 ;
8598 int res1 = 0 ;
8599 void *argp2 = 0 ;
8600 int res2 = 0 ;
8601 PyObject * obj0 = 0 ;
8602 PyObject * obj1 = 0 ;
8603 char * kwnames[] = {
8604 (char *) "self",(char *) "bitmap", NULL
8605 };
8606
8607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
8608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8609 if (!SWIG_IsOK(res1)) {
8610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8611 }
8612 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8613 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8614 if (!SWIG_IsOK(res2)) {
8615 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8616 }
8617 if (!argp2) {
8618 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8619 }
8620 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8621 {
8622 PyThreadState* __tstate = wxPyBeginAllowThreads();
8623 (arg1)->SetBitmap((wxBitmap const &)*arg2);
8624 wxPyEndAllowThreads(__tstate);
8625 if (PyErr_Occurred()) SWIG_fail;
8626 }
8627 resultobj = SWIG_Py_Void();
8628 return resultobj;
8629 fail:
8630 return NULL;
8631 }
8632
8633
8634 SWIGINTERN PyObject *_wrap_StaticBitmap_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8635 PyObject *resultobj = 0;
8636 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8637 wxIcon *arg2 = 0 ;
8638 void *argp1 = 0 ;
8639 int res1 = 0 ;
8640 void *argp2 = 0 ;
8641 int res2 = 0 ;
8642 PyObject * obj0 = 0 ;
8643 PyObject * obj1 = 0 ;
8644 char * kwnames[] = {
8645 (char *) "self",(char *) "icon", NULL
8646 };
8647
8648 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
8649 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8650 if (!SWIG_IsOK(res1)) {
8651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetIcon" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8652 }
8653 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8654 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
8655 if (!SWIG_IsOK(res2)) {
8656 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8657 }
8658 if (!argp2) {
8659 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8660 }
8661 arg2 = reinterpret_cast< wxIcon * >(argp2);
8662 {
8663 PyThreadState* __tstate = wxPyBeginAllowThreads();
8664 (arg1)->SetIcon((wxIcon const &)*arg2);
8665 wxPyEndAllowThreads(__tstate);
8666 if (PyErr_Occurred()) SWIG_fail;
8667 }
8668 resultobj = SWIG_Py_Void();
8669 return resultobj;
8670 fail:
8671 return NULL;
8672 }
8673
8674
8675 SWIGINTERN PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8676 PyObject *resultobj = 0;
8677 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8678 SwigValueWrapper<wxVisualAttributes > result;
8679 int val1 ;
8680 int ecode1 = 0 ;
8681 PyObject * obj0 = 0 ;
8682 char * kwnames[] = {
8683 (char *) "variant", NULL
8684 };
8685
8686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8687 if (obj0) {
8688 ecode1 = SWIG_AsVal_int(obj0, &val1);
8689 if (!SWIG_IsOK(ecode1)) {
8690 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBitmap_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8691 }
8692 arg1 = static_cast< wxWindowVariant >(val1);
8693 }
8694 {
8695 if (!wxPyCheckForApp()) SWIG_fail;
8696 PyThreadState* __tstate = wxPyBeginAllowThreads();
8697 result = wxStaticBitmap::GetClassDefaultAttributes(arg1);
8698 wxPyEndAllowThreads(__tstate);
8699 if (PyErr_Occurred()) SWIG_fail;
8700 }
8701 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8702 return resultobj;
8703 fail:
8704 return NULL;
8705 }
8706
8707
8708 SWIGINTERN PyObject *StaticBitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8709 PyObject *obj;
8710 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8711 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBitmap, SWIG_NewClientData(obj));
8712 return SWIG_Py_Void();
8713 }
8714
8715 SWIGINTERN PyObject *StaticBitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8716 return SWIG_Python_InitShadowInstance(args);
8717 }
8718
8719 SWIGINTERN int ListBoxNameStr_set(PyObject *) {
8720 SWIG_Error(SWIG_AttributeError,"Variable ListBoxNameStr is read-only.");
8721 return 1;
8722 }
8723
8724
8725 SWIGINTERN PyObject *ListBoxNameStr_get(void) {
8726 PyObject *pyobj = 0;
8727
8728 {
8729 #if wxUSE_UNICODE
8730 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8731 #else
8732 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8733 #endif
8734 }
8735 return pyobj;
8736 }
8737
8738
8739 SWIGINTERN PyObject *_wrap_new_ListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8740 PyObject *resultobj = 0;
8741 wxWindow *arg1 = (wxWindow *) 0 ;
8742 int arg2 = (int) -1 ;
8743 wxPoint const &arg3_defvalue = wxDefaultPosition ;
8744 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
8745 wxSize const &arg4_defvalue = wxDefaultSize ;
8746 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
8747 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
8748 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
8749 long arg6 = (long) 0 ;
8750 wxValidator const &arg7_defvalue = wxDefaultValidator ;
8751 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
8752 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
8753 wxString *arg8 = (wxString *) &arg8_defvalue ;
8754 wxListBox *result = 0 ;
8755 void *argp1 = 0 ;
8756 int res1 = 0 ;
8757 int val2 ;
8758 int ecode2 = 0 ;
8759 wxPoint temp3 ;
8760 wxSize temp4 ;
8761 bool temp5 = false ;
8762 long val6 ;
8763 int ecode6 = 0 ;
8764 void *argp7 = 0 ;
8765 int res7 = 0 ;
8766 bool temp8 = false ;
8767 PyObject * obj0 = 0 ;
8768 PyObject * obj1 = 0 ;
8769 PyObject * obj2 = 0 ;
8770 PyObject * obj3 = 0 ;
8771 PyObject * obj4 = 0 ;
8772 PyObject * obj5 = 0 ;
8773 PyObject * obj6 = 0 ;
8774 PyObject * obj7 = 0 ;
8775 char * kwnames[] = {
8776 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8777 };
8778
8779 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8780 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8781 if (!SWIG_IsOK(res1)) {
8782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
8783 }
8784 arg1 = reinterpret_cast< wxWindow * >(argp1);
8785 if (obj1) {
8786 ecode2 = SWIG_AsVal_int(obj1, &val2);
8787 if (!SWIG_IsOK(ecode2)) {
8788 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListBox" "', expected argument " "2"" of type '" "int""'");
8789 }
8790 arg2 = static_cast< int >(val2);
8791 }
8792 if (obj2) {
8793 {
8794 arg3 = &temp3;
8795 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
8796 }
8797 }
8798 if (obj3) {
8799 {
8800 arg4 = &temp4;
8801 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
8802 }
8803 }
8804 if (obj4) {
8805 {
8806 if (! PySequence_Check(obj4)) {
8807 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
8808 SWIG_fail;
8809 }
8810 arg5 = new wxArrayString;
8811 temp5 = true;
8812 int i, len=PySequence_Length(obj4);
8813 for (i=0; i<len; i++) {
8814 PyObject* item = PySequence_GetItem(obj4, i);
8815 wxString* s = wxString_in_helper(item);
8816 if (PyErr_Occurred()) SWIG_fail;
8817 arg5->Add(*s);
8818 delete s;
8819 Py_DECREF(item);
8820 }
8821 }
8822 }
8823 if (obj5) {
8824 ecode6 = SWIG_AsVal_long(obj5, &val6);
8825 if (!SWIG_IsOK(ecode6)) {
8826 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ListBox" "', expected argument " "6"" of type '" "long""'");
8827 }
8828 arg6 = static_cast< long >(val6);
8829 }
8830 if (obj6) {
8831 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
8832 if (!SWIG_IsOK(res7)) {
8833 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
8834 }
8835 if (!argp7) {
8836 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
8837 }
8838 arg7 = reinterpret_cast< wxValidator * >(argp7);
8839 }
8840 if (obj7) {
8841 {
8842 arg8 = wxString_in_helper(obj7);
8843 if (arg8 == NULL) SWIG_fail;
8844 temp8 = true;
8845 }
8846 }
8847 {
8848 if (!wxPyCheckForApp()) SWIG_fail;
8849 PyThreadState* __tstate = wxPyBeginAllowThreads();
8850 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
8851 wxPyEndAllowThreads(__tstate);
8852 if (PyErr_Occurred()) SWIG_fail;
8853 }
8854 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_NEW | 0 );
8855 {
8856 if (temp5) delete arg5;
8857 }
8858 {
8859 if (temp8)
8860 delete arg8;
8861 }
8862 return resultobj;
8863 fail:
8864 {
8865 if (temp5) delete arg5;
8866 }
8867 {
8868 if (temp8)
8869 delete arg8;
8870 }
8871 return NULL;
8872 }
8873
8874
8875 SWIGINTERN PyObject *_wrap_new_PreListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8876 PyObject *resultobj = 0;
8877 wxListBox *result = 0 ;
8878
8879 if (!SWIG_Python_UnpackTuple(args,"new_PreListBox",0,0,0)) SWIG_fail;
8880 {
8881 if (!wxPyCheckForApp()) SWIG_fail;
8882 PyThreadState* __tstate = wxPyBeginAllowThreads();
8883 result = (wxListBox *)new wxListBox();
8884 wxPyEndAllowThreads(__tstate);
8885 if (PyErr_Occurred()) SWIG_fail;
8886 }
8887 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_OWN | 0 );
8888 return resultobj;
8889 fail:
8890 return NULL;
8891 }
8892
8893
8894 SWIGINTERN PyObject *_wrap_ListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8895 PyObject *resultobj = 0;
8896 wxListBox *arg1 = (wxListBox *) 0 ;
8897 wxWindow *arg2 = (wxWindow *) 0 ;
8898 int arg3 = (int) -1 ;
8899 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8900 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8901 wxSize const &arg5_defvalue = wxDefaultSize ;
8902 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8903 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
8904 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
8905 long arg7 = (long) 0 ;
8906 wxValidator const &arg8_defvalue = wxDefaultValidator ;
8907 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
8908 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
8909 wxString *arg9 = (wxString *) &arg9_defvalue ;
8910 bool result;
8911 void *argp1 = 0 ;
8912 int res1 = 0 ;
8913 void *argp2 = 0 ;
8914 int res2 = 0 ;
8915 int val3 ;
8916 int ecode3 = 0 ;
8917 wxPoint temp4 ;
8918 wxSize temp5 ;
8919 bool temp6 = false ;
8920 long val7 ;
8921 int ecode7 = 0 ;
8922 void *argp8 = 0 ;
8923 int res8 = 0 ;
8924 bool temp9 = false ;
8925 PyObject * obj0 = 0 ;
8926 PyObject * obj1 = 0 ;
8927 PyObject * obj2 = 0 ;
8928 PyObject * obj3 = 0 ;
8929 PyObject * obj4 = 0 ;
8930 PyObject * obj5 = 0 ;
8931 PyObject * obj6 = 0 ;
8932 PyObject * obj7 = 0 ;
8933 PyObject * obj8 = 0 ;
8934 char * kwnames[] = {
8935 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8936 };
8937
8938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
8939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
8940 if (!SWIG_IsOK(res1)) {
8941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Create" "', expected argument " "1"" of type '" "wxListBox *""'");
8942 }
8943 arg1 = reinterpret_cast< wxListBox * >(argp1);
8944 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8945 if (!SWIG_IsOK(res2)) {
8946 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8947 }
8948 arg2 = reinterpret_cast< wxWindow * >(argp2);
8949 if (obj2) {
8950 ecode3 = SWIG_AsVal_int(obj2, &val3);
8951 if (!SWIG_IsOK(ecode3)) {
8952 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Create" "', expected argument " "3"" of type '" "int""'");
8953 }
8954 arg3 = static_cast< int >(val3);
8955 }
8956 if (obj3) {
8957 {
8958 arg4 = &temp4;
8959 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8960 }
8961 }
8962 if (obj4) {
8963 {
8964 arg5 = &temp5;
8965 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8966 }
8967 }
8968 if (obj5) {
8969 {
8970 if (! PySequence_Check(obj5)) {
8971 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
8972 SWIG_fail;
8973 }
8974 arg6 = new wxArrayString;
8975 temp6 = true;
8976 int i, len=PySequence_Length(obj5);
8977 for (i=0; i<len; i++) {
8978 PyObject* item = PySequence_GetItem(obj5, i);
8979 wxString* s = wxString_in_helper(item);
8980 if (PyErr_Occurred()) SWIG_fail;
8981 arg6->Add(*s);
8982 delete s;
8983 Py_DECREF(item);
8984 }
8985 }
8986 }
8987 if (obj6) {
8988 ecode7 = SWIG_AsVal_long(obj6, &val7);
8989 if (!SWIG_IsOK(ecode7)) {
8990 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ListBox_Create" "', expected argument " "7"" of type '" "long""'");
8991 }
8992 arg7 = static_cast< long >(val7);
8993 }
8994 if (obj7) {
8995 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
8996 if (!SWIG_IsOK(res8)) {
8997 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
8998 }
8999 if (!argp8) {
9000 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
9001 }
9002 arg8 = reinterpret_cast< wxValidator * >(argp8);
9003 }
9004 if (obj8) {
9005 {
9006 arg9 = wxString_in_helper(obj8);
9007 if (arg9 == NULL) SWIG_fail;
9008 temp9 = true;
9009 }
9010 }
9011 {
9012 PyThreadState* __tstate = wxPyBeginAllowThreads();
9013 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
9014 wxPyEndAllowThreads(__tstate);
9015 if (PyErr_Occurred()) SWIG_fail;
9016 }
9017 {
9018 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9019 }
9020 {
9021 if (temp6) delete arg6;
9022 }
9023 {
9024 if (temp9)
9025 delete arg9;
9026 }
9027 return resultobj;
9028 fail:
9029 {
9030 if (temp6) delete arg6;
9031 }
9032 {
9033 if (temp9)
9034 delete arg9;
9035 }
9036 return NULL;
9037 }
9038
9039
9040 SWIGINTERN PyObject *_wrap_ListBox_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9041 PyObject *resultobj = 0;
9042 wxListBox *arg1 = (wxListBox *) 0 ;
9043 wxString *arg2 = 0 ;
9044 int arg3 ;
9045 PyObject *arg4 = (PyObject *) NULL ;
9046 void *argp1 = 0 ;
9047 int res1 = 0 ;
9048 bool temp2 = false ;
9049 int val3 ;
9050 int ecode3 = 0 ;
9051 PyObject * obj0 = 0 ;
9052 PyObject * obj1 = 0 ;
9053 PyObject * obj2 = 0 ;
9054 PyObject * obj3 = 0 ;
9055 char * kwnames[] = {
9056 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
9057 };
9058
9059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9061 if (!SWIG_IsOK(res1)) {
9062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Insert" "', expected argument " "1"" of type '" "wxListBox *""'");
9063 }
9064 arg1 = reinterpret_cast< wxListBox * >(argp1);
9065 {
9066 arg2 = wxString_in_helper(obj1);
9067 if (arg2 == NULL) SWIG_fail;
9068 temp2 = true;
9069 }
9070 ecode3 = SWIG_AsVal_int(obj2, &val3);
9071 if (!SWIG_IsOK(ecode3)) {
9072 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Insert" "', expected argument " "3"" of type '" "int""'");
9073 }
9074 arg3 = static_cast< int >(val3);
9075 if (obj3) {
9076 arg4 = obj3;
9077 }
9078 {
9079 PyThreadState* __tstate = wxPyBeginAllowThreads();
9080 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
9081 wxPyEndAllowThreads(__tstate);
9082 if (PyErr_Occurred()) SWIG_fail;
9083 }
9084 resultobj = SWIG_Py_Void();
9085 {
9086 if (temp2)
9087 delete arg2;
9088 }
9089 return resultobj;
9090 fail:
9091 {
9092 if (temp2)
9093 delete arg2;
9094 }
9095 return NULL;
9096 }
9097
9098
9099 SWIGINTERN PyObject *_wrap_ListBox_InsertItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9100 PyObject *resultobj = 0;
9101 wxListBox *arg1 = (wxListBox *) 0 ;
9102 wxArrayString *arg2 = 0 ;
9103 unsigned int arg3 ;
9104 void *argp1 = 0 ;
9105 int res1 = 0 ;
9106 bool temp2 = false ;
9107 unsigned int val3 ;
9108 int ecode3 = 0 ;
9109 PyObject * obj0 = 0 ;
9110 PyObject * obj1 = 0 ;
9111 PyObject * obj2 = 0 ;
9112 char * kwnames[] = {
9113 (char *) "self",(char *) "items",(char *) "pos", NULL
9114 };
9115
9116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9118 if (!SWIG_IsOK(res1)) {
9119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_InsertItems" "', expected argument " "1"" of type '" "wxListBox *""'");
9120 }
9121 arg1 = reinterpret_cast< wxListBox * >(argp1);
9122 {
9123 if (! PySequence_Check(obj1)) {
9124 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9125 SWIG_fail;
9126 }
9127 arg2 = new wxArrayString;
9128 temp2 = true;
9129 int i, len=PySequence_Length(obj1);
9130 for (i=0; i<len; i++) {
9131 PyObject* item = PySequence_GetItem(obj1, i);
9132 wxString* s = wxString_in_helper(item);
9133 if (PyErr_Occurred()) SWIG_fail;
9134 arg2->Add(*s);
9135 delete s;
9136 Py_DECREF(item);
9137 }
9138 }
9139 ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
9140 if (!SWIG_IsOK(ecode3)) {
9141 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_InsertItems" "', expected argument " "3"" of type '" "unsigned int""'");
9142 }
9143 arg3 = static_cast< unsigned int >(val3);
9144 {
9145 PyThreadState* __tstate = wxPyBeginAllowThreads();
9146 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
9147 wxPyEndAllowThreads(__tstate);
9148 if (PyErr_Occurred()) SWIG_fail;
9149 }
9150 resultobj = SWIG_Py_Void();
9151 {
9152 if (temp2) delete arg2;
9153 }
9154 return resultobj;
9155 fail:
9156 {
9157 if (temp2) delete arg2;
9158 }
9159 return NULL;
9160 }
9161
9162
9163 SWIGINTERN PyObject *_wrap_ListBox_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9164 PyObject *resultobj = 0;
9165 wxListBox *arg1 = (wxListBox *) 0 ;
9166 wxArrayString *arg2 = 0 ;
9167 void *argp1 = 0 ;
9168 int res1 = 0 ;
9169 bool temp2 = false ;
9170 PyObject * obj0 = 0 ;
9171 PyObject * obj1 = 0 ;
9172 char * kwnames[] = {
9173 (char *) "self",(char *) "items", NULL
9174 };
9175
9176 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) SWIG_fail;
9177 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9178 if (!SWIG_IsOK(res1)) {
9179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Set" "', expected argument " "1"" of type '" "wxListBox *""'");
9180 }
9181 arg1 = reinterpret_cast< wxListBox * >(argp1);
9182 {
9183 if (! PySequence_Check(obj1)) {
9184 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9185 SWIG_fail;
9186 }
9187 arg2 = new wxArrayString;
9188 temp2 = true;
9189 int i, len=PySequence_Length(obj1);
9190 for (i=0; i<len; i++) {
9191 PyObject* item = PySequence_GetItem(obj1, i);
9192 wxString* s = wxString_in_helper(item);
9193 if (PyErr_Occurred()) SWIG_fail;
9194 arg2->Add(*s);
9195 delete s;
9196 Py_DECREF(item);
9197 }
9198 }
9199 {
9200 PyThreadState* __tstate = wxPyBeginAllowThreads();
9201 (arg1)->Set((wxArrayString const &)*arg2);
9202 wxPyEndAllowThreads(__tstate);
9203 if (PyErr_Occurred()) SWIG_fail;
9204 }
9205 resultobj = SWIG_Py_Void();
9206 {
9207 if (temp2) delete arg2;
9208 }
9209 return resultobj;
9210 fail:
9211 {
9212 if (temp2) delete arg2;
9213 }
9214 return NULL;
9215 }
9216
9217
9218 SWIGINTERN PyObject *_wrap_ListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9219 PyObject *resultobj = 0;
9220 wxListBox *arg1 = (wxListBox *) 0 ;
9221 int arg2 ;
9222 bool result;
9223 void *argp1 = 0 ;
9224 int res1 = 0 ;
9225 int val2 ;
9226 int ecode2 = 0 ;
9227 PyObject * obj0 = 0 ;
9228 PyObject * obj1 = 0 ;
9229 char * kwnames[] = {
9230 (char *) "self",(char *) "n", NULL
9231 };
9232
9233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
9234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9235 if (!SWIG_IsOK(res1)) {
9236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSelected" "', expected argument " "1"" of type '" "wxListBox const *""'");
9237 }
9238 arg1 = reinterpret_cast< wxListBox * >(argp1);
9239 ecode2 = SWIG_AsVal_int(obj1, &val2);
9240 if (!SWIG_IsOK(ecode2)) {
9241 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_IsSelected" "', expected argument " "2"" of type '" "int""'");
9242 }
9243 arg2 = static_cast< int >(val2);
9244 {
9245 PyThreadState* __tstate = wxPyBeginAllowThreads();
9246 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
9247 wxPyEndAllowThreads(__tstate);
9248 if (PyErr_Occurred()) SWIG_fail;
9249 }
9250 {
9251 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9252 }
9253 return resultobj;
9254 fail:
9255 return NULL;
9256 }
9257
9258
9259 SWIGINTERN PyObject *_wrap_ListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9260 PyObject *resultobj = 0;
9261 wxListBox *arg1 = (wxListBox *) 0 ;
9262 int arg2 ;
9263 bool arg3 = (bool) true ;
9264 void *argp1 = 0 ;
9265 int res1 = 0 ;
9266 int val2 ;
9267 int ecode2 = 0 ;
9268 bool val3 ;
9269 int ecode3 = 0 ;
9270 PyObject * obj0 = 0 ;
9271 PyObject * obj1 = 0 ;
9272 PyObject * obj2 = 0 ;
9273 char * kwnames[] = {
9274 (char *) "self",(char *) "n",(char *) "select", NULL
9275 };
9276
9277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9279 if (!SWIG_IsOK(res1)) {
9280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9281 }
9282 arg1 = reinterpret_cast< wxListBox * >(argp1);
9283 ecode2 = SWIG_AsVal_int(obj1, &val2);
9284 if (!SWIG_IsOK(ecode2)) {
9285 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
9286 }
9287 arg2 = static_cast< int >(val2);
9288 if (obj2) {
9289 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9290 if (!SWIG_IsOK(ecode3)) {
9291 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetSelection" "', expected argument " "3"" of type '" "bool""'");
9292 }
9293 arg3 = static_cast< bool >(val3);
9294 }
9295 {
9296 PyThreadState* __tstate = wxPyBeginAllowThreads();
9297 (arg1)->SetSelection(arg2,arg3);
9298 wxPyEndAllowThreads(__tstate);
9299 if (PyErr_Occurred()) SWIG_fail;
9300 }
9301 resultobj = SWIG_Py_Void();
9302 return resultobj;
9303 fail:
9304 return NULL;
9305 }
9306
9307
9308 SWIGINTERN PyObject *_wrap_ListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9309 PyObject *resultobj = 0;
9310 wxListBox *arg1 = (wxListBox *) 0 ;
9311 int arg2 ;
9312 void *argp1 = 0 ;
9313 int res1 = 0 ;
9314 int val2 ;
9315 int ecode2 = 0 ;
9316 PyObject * obj0 = 0 ;
9317 PyObject * obj1 = 0 ;
9318 char * kwnames[] = {
9319 (char *) "self",(char *) "n", NULL
9320 };
9321
9322 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) SWIG_fail;
9323 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9324 if (!SWIG_IsOK(res1)) {
9325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Select" "', expected argument " "1"" of type '" "wxListBox *""'");
9326 }
9327 arg1 = reinterpret_cast< wxListBox * >(argp1);
9328 ecode2 = SWIG_AsVal_int(obj1, &val2);
9329 if (!SWIG_IsOK(ecode2)) {
9330 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Select" "', expected argument " "2"" of type '" "int""'");
9331 }
9332 arg2 = static_cast< int >(val2);
9333 {
9334 PyThreadState* __tstate = wxPyBeginAllowThreads();
9335 (arg1)->Select(arg2);
9336 wxPyEndAllowThreads(__tstate);
9337 if (PyErr_Occurred()) SWIG_fail;
9338 }
9339 resultobj = SWIG_Py_Void();
9340 return resultobj;
9341 fail:
9342 return NULL;
9343 }
9344
9345
9346 SWIGINTERN PyObject *_wrap_ListBox_Deselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9347 PyObject *resultobj = 0;
9348 wxListBox *arg1 = (wxListBox *) 0 ;
9349 int arg2 ;
9350 void *argp1 = 0 ;
9351 int res1 = 0 ;
9352 int val2 ;
9353 int ecode2 = 0 ;
9354 PyObject * obj0 = 0 ;
9355 PyObject * obj1 = 0 ;
9356 char * kwnames[] = {
9357 (char *) "self",(char *) "n", NULL
9358 };
9359
9360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) SWIG_fail;
9361 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9362 if (!SWIG_IsOK(res1)) {
9363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Deselect" "', expected argument " "1"" of type '" "wxListBox *""'");
9364 }
9365 arg1 = reinterpret_cast< wxListBox * >(argp1);
9366 ecode2 = SWIG_AsVal_int(obj1, &val2);
9367 if (!SWIG_IsOK(ecode2)) {
9368 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Deselect" "', expected argument " "2"" of type '" "int""'");
9369 }
9370 arg2 = static_cast< int >(val2);
9371 {
9372 PyThreadState* __tstate = wxPyBeginAllowThreads();
9373 (arg1)->Deselect(arg2);
9374 wxPyEndAllowThreads(__tstate);
9375 if (PyErr_Occurred()) SWIG_fail;
9376 }
9377 resultobj = SWIG_Py_Void();
9378 return resultobj;
9379 fail:
9380 return NULL;
9381 }
9382
9383
9384 SWIGINTERN PyObject *_wrap_ListBox_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9385 PyObject *resultobj = 0;
9386 wxListBox *arg1 = (wxListBox *) 0 ;
9387 int arg2 = (int) -1 ;
9388 void *argp1 = 0 ;
9389 int res1 = 0 ;
9390 int val2 ;
9391 int ecode2 = 0 ;
9392 PyObject * obj0 = 0 ;
9393 PyObject * obj1 = 0 ;
9394 char * kwnames[] = {
9395 (char *) "self",(char *) "itemToLeaveSelected", NULL
9396 };
9397
9398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) SWIG_fail;
9399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9400 if (!SWIG_IsOK(res1)) {
9401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_DeselectAll" "', expected argument " "1"" of type '" "wxListBox *""'");
9402 }
9403 arg1 = reinterpret_cast< wxListBox * >(argp1);
9404 if (obj1) {
9405 ecode2 = SWIG_AsVal_int(obj1, &val2);
9406 if (!SWIG_IsOK(ecode2)) {
9407 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_DeselectAll" "', expected argument " "2"" of type '" "int""'");
9408 }
9409 arg2 = static_cast< int >(val2);
9410 }
9411 {
9412 PyThreadState* __tstate = wxPyBeginAllowThreads();
9413 (arg1)->DeselectAll(arg2);
9414 wxPyEndAllowThreads(__tstate);
9415 if (PyErr_Occurred()) SWIG_fail;
9416 }
9417 resultobj = SWIG_Py_Void();
9418 return resultobj;
9419 fail:
9420 return NULL;
9421 }
9422
9423
9424 SWIGINTERN PyObject *_wrap_ListBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9425 PyObject *resultobj = 0;
9426 wxListBox *arg1 = (wxListBox *) 0 ;
9427 wxString *arg2 = 0 ;
9428 bool arg3 = (bool) true ;
9429 bool result;
9430 void *argp1 = 0 ;
9431 int res1 = 0 ;
9432 bool temp2 = false ;
9433 bool val3 ;
9434 int ecode3 = 0 ;
9435 PyObject * obj0 = 0 ;
9436 PyObject * obj1 = 0 ;
9437 PyObject * obj2 = 0 ;
9438 char * kwnames[] = {
9439 (char *) "self",(char *) "s",(char *) "select", NULL
9440 };
9441
9442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9444 if (!SWIG_IsOK(res1)) {
9445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetStringSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9446 }
9447 arg1 = reinterpret_cast< wxListBox * >(argp1);
9448 {
9449 arg2 = wxString_in_helper(obj1);
9450 if (arg2 == NULL) SWIG_fail;
9451 temp2 = true;
9452 }
9453 if (obj2) {
9454 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9455 if (!SWIG_IsOK(ecode3)) {
9456 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetStringSelection" "', expected argument " "3"" of type '" "bool""'");
9457 }
9458 arg3 = static_cast< bool >(val3);
9459 }
9460 {
9461 PyThreadState* __tstate = wxPyBeginAllowThreads();
9462 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
9463 wxPyEndAllowThreads(__tstate);
9464 if (PyErr_Occurred()) SWIG_fail;
9465 }
9466 {
9467 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9468 }
9469 {
9470 if (temp2)
9471 delete arg2;
9472 }
9473 return resultobj;
9474 fail:
9475 {
9476 if (temp2)
9477 delete arg2;
9478 }
9479 return NULL;
9480 }
9481
9482
9483 SWIGINTERN PyObject *_wrap_ListBox_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9484 PyObject *resultobj = 0;
9485 wxListBox *arg1 = (wxListBox *) 0 ;
9486 PyObject *result = 0 ;
9487 void *argp1 = 0 ;
9488 int res1 = 0 ;
9489 PyObject *swig_obj[1] ;
9490
9491 if (!args) SWIG_fail;
9492 swig_obj[0] = args;
9493 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9494 if (!SWIG_IsOK(res1)) {
9495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_GetSelections" "', expected argument " "1"" of type '" "wxListBox *""'");
9496 }
9497 arg1 = reinterpret_cast< wxListBox * >(argp1);
9498 {
9499 PyThreadState* __tstate = wxPyBeginAllowThreads();
9500 result = (PyObject *)wxListBox_GetSelections(arg1);
9501 wxPyEndAllowThreads(__tstate);
9502 if (PyErr_Occurred()) SWIG_fail;
9503 }
9504 resultobj = result;
9505 return resultobj;
9506 fail:
9507 return NULL;
9508 }
9509
9510
9511 SWIGINTERN PyObject *_wrap_ListBox_SetFirstItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9512 PyObject *resultobj = 0;
9513 wxListBox *arg1 = (wxListBox *) 0 ;
9514 int arg2 ;
9515 void *argp1 = 0 ;
9516 int res1 = 0 ;
9517 int val2 ;
9518 int ecode2 = 0 ;
9519 PyObject * obj0 = 0 ;
9520 PyObject * obj1 = 0 ;
9521 char * kwnames[] = {
9522 (char *) "self",(char *) "n", NULL
9523 };
9524
9525 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) SWIG_fail;
9526 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9527 if (!SWIG_IsOK(res1)) {
9528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItem" "', expected argument " "1"" of type '" "wxListBox *""'");
9529 }
9530 arg1 = reinterpret_cast< wxListBox * >(argp1);
9531 ecode2 = SWIG_AsVal_int(obj1, &val2);
9532 if (!SWIG_IsOK(ecode2)) {
9533 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetFirstItem" "', expected argument " "2"" of type '" "int""'");
9534 }
9535 arg2 = static_cast< int >(val2);
9536 {
9537 PyThreadState* __tstate = wxPyBeginAllowThreads();
9538 (arg1)->SetFirstItem(arg2);
9539 wxPyEndAllowThreads(__tstate);
9540 if (PyErr_Occurred()) SWIG_fail;
9541 }
9542 resultobj = SWIG_Py_Void();
9543 return resultobj;
9544 fail:
9545 return NULL;
9546 }
9547
9548
9549 SWIGINTERN PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9550 PyObject *resultobj = 0;
9551 wxListBox *arg1 = (wxListBox *) 0 ;
9552 wxString *arg2 = 0 ;
9553 void *argp1 = 0 ;
9554 int res1 = 0 ;
9555 bool temp2 = false ;
9556 PyObject * obj0 = 0 ;
9557 PyObject * obj1 = 0 ;
9558 char * kwnames[] = {
9559 (char *) "self",(char *) "s", NULL
9560 };
9561
9562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) SWIG_fail;
9563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9564 if (!SWIG_IsOK(res1)) {
9565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItemStr" "', expected argument " "1"" of type '" "wxListBox *""'");
9566 }
9567 arg1 = reinterpret_cast< wxListBox * >(argp1);
9568 {
9569 arg2 = wxString_in_helper(obj1);
9570 if (arg2 == NULL) SWIG_fail;
9571 temp2 = true;
9572 }
9573 {
9574 PyThreadState* __tstate = wxPyBeginAllowThreads();
9575 (arg1)->SetFirstItem((wxString const &)*arg2);
9576 wxPyEndAllowThreads(__tstate);
9577 if (PyErr_Occurred()) SWIG_fail;
9578 }
9579 resultobj = SWIG_Py_Void();
9580 {
9581 if (temp2)
9582 delete arg2;
9583 }
9584 return resultobj;
9585 fail:
9586 {
9587 if (temp2)
9588 delete arg2;
9589 }
9590 return NULL;
9591 }
9592
9593
9594 SWIGINTERN PyObject *_wrap_ListBox_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9595 PyObject *resultobj = 0;
9596 wxListBox *arg1 = (wxListBox *) 0 ;
9597 int arg2 ;
9598 void *argp1 = 0 ;
9599 int res1 = 0 ;
9600 int val2 ;
9601 int ecode2 = 0 ;
9602 PyObject * obj0 = 0 ;
9603 PyObject * obj1 = 0 ;
9604 char * kwnames[] = {
9605 (char *) "self",(char *) "n", NULL
9606 };
9607
9608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9610 if (!SWIG_IsOK(res1)) {
9611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_EnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9612 }
9613 arg1 = reinterpret_cast< wxListBox * >(argp1);
9614 ecode2 = SWIG_AsVal_int(obj1, &val2);
9615 if (!SWIG_IsOK(ecode2)) {
9616 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_EnsureVisible" "', expected argument " "2"" of type '" "int""'");
9617 }
9618 arg2 = static_cast< int >(val2);
9619 {
9620 PyThreadState* __tstate = wxPyBeginAllowThreads();
9621 (arg1)->EnsureVisible(arg2);
9622 wxPyEndAllowThreads(__tstate);
9623 if (PyErr_Occurred()) SWIG_fail;
9624 }
9625 resultobj = SWIG_Py_Void();
9626 return resultobj;
9627 fail:
9628 return NULL;
9629 }
9630
9631
9632 SWIGINTERN PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9633 PyObject *resultobj = 0;
9634 wxListBox *arg1 = (wxListBox *) 0 ;
9635 wxString *arg2 = 0 ;
9636 void *argp1 = 0 ;
9637 int res1 = 0 ;
9638 bool temp2 = false ;
9639 PyObject * obj0 = 0 ;
9640 PyObject * obj1 = 0 ;
9641 char * kwnames[] = {
9642 (char *) "self",(char *) "s", NULL
9643 };
9644
9645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9647 if (!SWIG_IsOK(res1)) {
9648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_AppendAndEnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9649 }
9650 arg1 = reinterpret_cast< wxListBox * >(argp1);
9651 {
9652 arg2 = wxString_in_helper(obj1);
9653 if (arg2 == NULL) SWIG_fail;
9654 temp2 = true;
9655 }
9656 {
9657 PyThreadState* __tstate = wxPyBeginAllowThreads();
9658 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
9659 wxPyEndAllowThreads(__tstate);
9660 if (PyErr_Occurred()) SWIG_fail;
9661 }
9662 resultobj = SWIG_Py_Void();
9663 {
9664 if (temp2)
9665 delete arg2;
9666 }
9667 return resultobj;
9668 fail:
9669 {
9670 if (temp2)
9671 delete arg2;
9672 }
9673 return NULL;
9674 }
9675
9676
9677 SWIGINTERN PyObject *_wrap_ListBox_IsSorted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9678 PyObject *resultobj = 0;
9679 wxListBox *arg1 = (wxListBox *) 0 ;
9680 bool result;
9681 void *argp1 = 0 ;
9682 int res1 = 0 ;
9683 PyObject *swig_obj[1] ;
9684
9685 if (!args) SWIG_fail;
9686 swig_obj[0] = args;
9687 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9688 if (!SWIG_IsOK(res1)) {
9689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSorted" "', expected argument " "1"" of type '" "wxListBox const *""'");
9690 }
9691 arg1 = reinterpret_cast< wxListBox * >(argp1);
9692 {
9693 PyThreadState* __tstate = wxPyBeginAllowThreads();
9694 result = (bool)((wxListBox const *)arg1)->IsSorted();
9695 wxPyEndAllowThreads(__tstate);
9696 if (PyErr_Occurred()) SWIG_fail;
9697 }
9698 {
9699 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9700 }
9701 return resultobj;
9702 fail:
9703 return NULL;
9704 }
9705
9706
9707 SWIGINTERN PyObject *_wrap_ListBox_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9708 PyObject *resultobj = 0;
9709 wxListBox *arg1 = (wxListBox *) 0 ;
9710 wxPoint *arg2 = 0 ;
9711 int result;
9712 void *argp1 = 0 ;
9713 int res1 = 0 ;
9714 wxPoint temp2 ;
9715 PyObject * obj0 = 0 ;
9716 PyObject * obj1 = 0 ;
9717 char * kwnames[] = {
9718 (char *) "self",(char *) "pt", NULL
9719 };
9720
9721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
9722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9723 if (!SWIG_IsOK(res1)) {
9724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_HitTest" "', expected argument " "1"" of type '" "wxListBox const *""'");
9725 }
9726 arg1 = reinterpret_cast< wxListBox * >(argp1);
9727 {
9728 arg2 = &temp2;
9729 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9730 }
9731 {
9732 PyThreadState* __tstate = wxPyBeginAllowThreads();
9733 result = (int)((wxListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
9734 wxPyEndAllowThreads(__tstate);
9735 if (PyErr_Occurred()) SWIG_fail;
9736 }
9737 resultobj = SWIG_From_int(static_cast< int >(result));
9738 return resultobj;
9739 fail:
9740 return NULL;
9741 }
9742
9743
9744 SWIGINTERN PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9745 PyObject *resultobj = 0;
9746 wxListBox *arg1 = (wxListBox *) 0 ;
9747 int arg2 ;
9748 wxColour *arg3 = 0 ;
9749 void *argp1 = 0 ;
9750 int res1 = 0 ;
9751 int val2 ;
9752 int ecode2 = 0 ;
9753 wxColour temp3 ;
9754 PyObject * obj0 = 0 ;
9755 PyObject * obj1 = 0 ;
9756 PyObject * obj2 = 0 ;
9757 char * kwnames[] = {
9758 (char *) "self",(char *) "item",(char *) "c", NULL
9759 };
9760
9761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9763 if (!SWIG_IsOK(res1)) {
9764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9765 }
9766 arg1 = reinterpret_cast< wxListBox * >(argp1);
9767 ecode2 = SWIG_AsVal_int(obj1, &val2);
9768 if (!SWIG_IsOK(ecode2)) {
9769 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "2"" of type '" "int""'");
9770 }
9771 arg2 = static_cast< int >(val2);
9772 {
9773 arg3 = &temp3;
9774 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9775 }
9776 {
9777 PyThreadState* __tstate = wxPyBeginAllowThreads();
9778 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
9779 wxPyEndAllowThreads(__tstate);
9780 if (PyErr_Occurred()) SWIG_fail;
9781 }
9782 resultobj = SWIG_Py_Void();
9783 return resultobj;
9784 fail:
9785 return NULL;
9786 }
9787
9788
9789 SWIGINTERN PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9790 PyObject *resultobj = 0;
9791 wxListBox *arg1 = (wxListBox *) 0 ;
9792 int arg2 ;
9793 wxColour *arg3 = 0 ;
9794 void *argp1 = 0 ;
9795 int res1 = 0 ;
9796 int val2 ;
9797 int ecode2 = 0 ;
9798 wxColour temp3 ;
9799 PyObject * obj0 = 0 ;
9800 PyObject * obj1 = 0 ;
9801 PyObject * obj2 = 0 ;
9802 char * kwnames[] = {
9803 (char *) "self",(char *) "item",(char *) "c", NULL
9804 };
9805
9806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9807 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9808 if (!SWIG_IsOK(res1)) {
9809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9810 }
9811 arg1 = reinterpret_cast< wxListBox * >(argp1);
9812 ecode2 = SWIG_AsVal_int(obj1, &val2);
9813 if (!SWIG_IsOK(ecode2)) {
9814 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "2"" of type '" "int""'");
9815 }
9816 arg2 = static_cast< int >(val2);
9817 {
9818 arg3 = &temp3;
9819 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9820 }
9821 {
9822 PyThreadState* __tstate = wxPyBeginAllowThreads();
9823 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
9824 wxPyEndAllowThreads(__tstate);
9825 if (PyErr_Occurred()) SWIG_fail;
9826 }
9827 resultobj = SWIG_Py_Void();
9828 return resultobj;
9829 fail:
9830 return NULL;
9831 }
9832
9833
9834 SWIGINTERN PyObject *_wrap_ListBox_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9835 PyObject *resultobj = 0;
9836 wxListBox *arg1 = (wxListBox *) 0 ;
9837 int arg2 ;
9838 wxFont *arg3 = 0 ;
9839 void *argp1 = 0 ;
9840 int res1 = 0 ;
9841 int val2 ;
9842 int ecode2 = 0 ;
9843 void *argp3 = 0 ;
9844 int res3 = 0 ;
9845 PyObject * obj0 = 0 ;
9846 PyObject * obj1 = 0 ;
9847 PyObject * obj2 = 0 ;
9848 char * kwnames[] = {
9849 (char *) "self",(char *) "item",(char *) "f", NULL
9850 };
9851
9852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9853 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9854 if (!SWIG_IsOK(res1)) {
9855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemFont" "', expected argument " "1"" of type '" "wxListBox *""'");
9856 }
9857 arg1 = reinterpret_cast< wxListBox * >(argp1);
9858 ecode2 = SWIG_AsVal_int(obj1, &val2);
9859 if (!SWIG_IsOK(ecode2)) {
9860 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemFont" "', expected argument " "2"" of type '" "int""'");
9861 }
9862 arg2 = static_cast< int >(val2);
9863 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
9864 if (!SWIG_IsOK(res3)) {
9865 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9866 }
9867 if (!argp3) {
9868 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9869 }
9870 arg3 = reinterpret_cast< wxFont * >(argp3);
9871 {
9872 PyThreadState* __tstate = wxPyBeginAllowThreads();
9873 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
9874 wxPyEndAllowThreads(__tstate);
9875 if (PyErr_Occurred()) SWIG_fail;
9876 }
9877 resultobj = SWIG_Py_Void();
9878 return resultobj;
9879 fail:
9880 return NULL;
9881 }
9882
9883
9884 SWIGINTERN PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9885 PyObject *resultobj = 0;
9886 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
9887 SwigValueWrapper<wxVisualAttributes > result;
9888 int val1 ;
9889 int ecode1 = 0 ;
9890 PyObject * obj0 = 0 ;
9891 char * kwnames[] = {
9892 (char *) "variant", NULL
9893 };
9894
9895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
9896 if (obj0) {
9897 ecode1 = SWIG_AsVal_int(obj0, &val1);
9898 if (!SWIG_IsOK(ecode1)) {
9899 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
9900 }
9901 arg1 = static_cast< wxWindowVariant >(val1);
9902 }
9903 {
9904 if (!wxPyCheckForApp()) SWIG_fail;
9905 PyThreadState* __tstate = wxPyBeginAllowThreads();
9906 result = wxListBox::GetClassDefaultAttributes(arg1);
9907 wxPyEndAllowThreads(__tstate);
9908 if (PyErr_Occurred()) SWIG_fail;
9909 }
9910 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
9911 return resultobj;
9912 fail:
9913 return NULL;
9914 }
9915
9916
9917 SWIGINTERN PyObject *ListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9918 PyObject *obj;
9919 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9920 SWIG_TypeNewClientData(SWIGTYPE_p_wxListBox, SWIG_NewClientData(obj));
9921 return SWIG_Py_Void();
9922 }
9923
9924 SWIGINTERN PyObject *ListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9925 return SWIG_Python_InitShadowInstance(args);
9926 }
9927
9928 SWIGINTERN PyObject *_wrap_new_CheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9929 PyObject *resultobj = 0;
9930 wxWindow *arg1 = (wxWindow *) 0 ;
9931 int arg2 = (int) -1 ;
9932 wxPoint const &arg3_defvalue = wxDefaultPosition ;
9933 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
9934 wxSize const &arg4_defvalue = wxDefaultSize ;
9935 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
9936 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
9937 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
9938 long arg6 = (long) 0 ;
9939 wxValidator const &arg7_defvalue = wxDefaultValidator ;
9940 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
9941 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
9942 wxString *arg8 = (wxString *) &arg8_defvalue ;
9943 wxCheckListBox *result = 0 ;
9944 void *argp1 = 0 ;
9945 int res1 = 0 ;
9946 int val2 ;
9947 int ecode2 = 0 ;
9948 wxPoint temp3 ;
9949 wxSize temp4 ;
9950 bool temp5 = false ;
9951 long val6 ;
9952 int ecode6 = 0 ;
9953 void *argp7 = 0 ;
9954 int res7 = 0 ;
9955 bool temp8 = false ;
9956 PyObject * obj0 = 0 ;
9957 PyObject * obj1 = 0 ;
9958 PyObject * obj2 = 0 ;
9959 PyObject * obj3 = 0 ;
9960 PyObject * obj4 = 0 ;
9961 PyObject * obj5 = 0 ;
9962 PyObject * obj6 = 0 ;
9963 PyObject * obj7 = 0 ;
9964 char * kwnames[] = {
9965 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
9966 };
9967
9968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
9969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
9970 if (!SWIG_IsOK(res1)) {
9971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
9972 }
9973 arg1 = reinterpret_cast< wxWindow * >(argp1);
9974 if (obj1) {
9975 ecode2 = SWIG_AsVal_int(obj1, &val2);
9976 if (!SWIG_IsOK(ecode2)) {
9977 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckListBox" "', expected argument " "2"" of type '" "int""'");
9978 }
9979 arg2 = static_cast< int >(val2);
9980 }
9981 if (obj2) {
9982 {
9983 arg3 = &temp3;
9984 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
9985 }
9986 }
9987 if (obj3) {
9988 {
9989 arg4 = &temp4;
9990 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
9991 }
9992 }
9993 if (obj4) {
9994 {
9995 if (! PySequence_Check(obj4)) {
9996 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9997 SWIG_fail;
9998 }
9999 arg5 = new wxArrayString;
10000 temp5 = true;
10001 int i, len=PySequence_Length(obj4);
10002 for (i=0; i<len; i++) {
10003 PyObject* item = PySequence_GetItem(obj4, i);
10004 wxString* s = wxString_in_helper(item);
10005 if (PyErr_Occurred()) SWIG_fail;
10006 arg5->Add(*s);
10007 delete s;
10008 Py_DECREF(item);
10009 }
10010 }
10011 }
10012 if (obj5) {
10013 ecode6 = SWIG_AsVal_long(obj5, &val6);
10014 if (!SWIG_IsOK(ecode6)) {
10015 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckListBox" "', expected argument " "6"" of type '" "long""'");
10016 }
10017 arg6 = static_cast< long >(val6);
10018 }
10019 if (obj6) {
10020 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
10021 if (!SWIG_IsOK(res7)) {
10022 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
10023 }
10024 if (!argp7) {
10025 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
10026 }
10027 arg7 = reinterpret_cast< wxValidator * >(argp7);
10028 }
10029 if (obj7) {
10030 {
10031 arg8 = wxString_in_helper(obj7);
10032 if (arg8 == NULL) SWIG_fail;
10033 temp8 = true;
10034 }
10035 }
10036 {
10037 if (!wxPyCheckForApp()) SWIG_fail;
10038 PyThreadState* __tstate = wxPyBeginAllowThreads();
10039 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10040 wxPyEndAllowThreads(__tstate);
10041 if (PyErr_Occurred()) SWIG_fail;
10042 }
10043 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_NEW | 0 );
10044 {
10045 if (temp5) delete arg5;
10046 }
10047 {
10048 if (temp8)
10049 delete arg8;
10050 }
10051 return resultobj;
10052 fail:
10053 {
10054 if (temp5) delete arg5;
10055 }
10056 {
10057 if (temp8)
10058 delete arg8;
10059 }
10060 return NULL;
10061 }
10062
10063
10064 SWIGINTERN PyObject *_wrap_new_PreCheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10065 PyObject *resultobj = 0;
10066 wxCheckListBox *result = 0 ;
10067
10068 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckListBox",0,0,0)) SWIG_fail;
10069 {
10070 if (!wxPyCheckForApp()) SWIG_fail;
10071 PyThreadState* __tstate = wxPyBeginAllowThreads();
10072 result = (wxCheckListBox *)new wxCheckListBox();
10073 wxPyEndAllowThreads(__tstate);
10074 if (PyErr_Occurred()) SWIG_fail;
10075 }
10076 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_OWN | 0 );
10077 return resultobj;
10078 fail:
10079 return NULL;
10080 }
10081
10082
10083 SWIGINTERN PyObject *_wrap_CheckListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10084 PyObject *resultobj = 0;
10085 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10086 wxWindow *arg2 = (wxWindow *) 0 ;
10087 int arg3 = (int) -1 ;
10088 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10089 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10090 wxSize const &arg5_defvalue = wxDefaultSize ;
10091 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10092 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
10093 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
10094 long arg7 = (long) 0 ;
10095 wxValidator const &arg8_defvalue = wxDefaultValidator ;
10096 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
10097 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
10098 wxString *arg9 = (wxString *) &arg9_defvalue ;
10099 bool result;
10100 void *argp1 = 0 ;
10101 int res1 = 0 ;
10102 void *argp2 = 0 ;
10103 int res2 = 0 ;
10104 int val3 ;
10105 int ecode3 = 0 ;
10106 wxPoint temp4 ;
10107 wxSize temp5 ;
10108 bool temp6 = false ;
10109 long val7 ;
10110 int ecode7 = 0 ;
10111 void *argp8 = 0 ;
10112 int res8 = 0 ;
10113 bool temp9 = false ;
10114 PyObject * obj0 = 0 ;
10115 PyObject * obj1 = 0 ;
10116 PyObject * obj2 = 0 ;
10117 PyObject * obj3 = 0 ;
10118 PyObject * obj4 = 0 ;
10119 PyObject * obj5 = 0 ;
10120 PyObject * obj6 = 0 ;
10121 PyObject * obj7 = 0 ;
10122 PyObject * obj8 = 0 ;
10123 char * kwnames[] = {
10124 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10125 };
10126
10127 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
10128 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10129 if (!SWIG_IsOK(res1)) {
10130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Create" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10131 }
10132 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10133 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
10134 if (!SWIG_IsOK(res2)) {
10135 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
10136 }
10137 arg2 = reinterpret_cast< wxWindow * >(argp2);
10138 if (obj2) {
10139 ecode3 = SWIG_AsVal_int(obj2, &val3);
10140 if (!SWIG_IsOK(ecode3)) {
10141 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Create" "', expected argument " "3"" of type '" "int""'");
10142 }
10143 arg3 = static_cast< int >(val3);
10144 }
10145 if (obj3) {
10146 {
10147 arg4 = &temp4;
10148 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10149 }
10150 }
10151 if (obj4) {
10152 {
10153 arg5 = &temp5;
10154 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10155 }
10156 }
10157 if (obj5) {
10158 {
10159 if (! PySequence_Check(obj5)) {
10160 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10161 SWIG_fail;
10162 }
10163 arg6 = new wxArrayString;
10164 temp6 = true;
10165 int i, len=PySequence_Length(obj5);
10166 for (i=0; i<len; i++) {
10167 PyObject* item = PySequence_GetItem(obj5, i);
10168 wxString* s = wxString_in_helper(item);
10169 if (PyErr_Occurred()) SWIG_fail;
10170 arg6->Add(*s);
10171 delete s;
10172 Py_DECREF(item);
10173 }
10174 }
10175 }
10176 if (obj6) {
10177 ecode7 = SWIG_AsVal_long(obj6, &val7);
10178 if (!SWIG_IsOK(ecode7)) {
10179 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckListBox_Create" "', expected argument " "7"" of type '" "long""'");
10180 }
10181 arg7 = static_cast< long >(val7);
10182 }
10183 if (obj7) {
10184 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
10185 if (!SWIG_IsOK(res8)) {
10186 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10187 }
10188 if (!argp8) {
10189 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10190 }
10191 arg8 = reinterpret_cast< wxValidator * >(argp8);
10192 }
10193 if (obj8) {
10194 {
10195 arg9 = wxString_in_helper(obj8);
10196 if (arg9 == NULL) SWIG_fail;
10197 temp9 = true;
10198 }
10199 }
10200 {
10201 PyThreadState* __tstate = wxPyBeginAllowThreads();
10202 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
10203 wxPyEndAllowThreads(__tstate);
10204 if (PyErr_Occurred()) SWIG_fail;
10205 }
10206 {
10207 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10208 }
10209 {
10210 if (temp6) delete arg6;
10211 }
10212 {
10213 if (temp9)
10214 delete arg9;
10215 }
10216 return resultobj;
10217 fail:
10218 {
10219 if (temp6) delete arg6;
10220 }
10221 {
10222 if (temp9)
10223 delete arg9;
10224 }
10225 return NULL;
10226 }
10227
10228
10229 SWIGINTERN PyObject *_wrap_CheckListBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10230 PyObject *resultobj = 0;
10231 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10232 unsigned int arg2 ;
10233 bool result;
10234 void *argp1 = 0 ;
10235 int res1 = 0 ;
10236 unsigned int val2 ;
10237 int ecode2 = 0 ;
10238 PyObject * obj0 = 0 ;
10239 PyObject * obj1 = 0 ;
10240 char * kwnames[] = {
10241 (char *) "self",(char *) "index", NULL
10242 };
10243
10244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) SWIG_fail;
10245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10246 if (!SWIG_IsOK(res1)) {
10247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10248 }
10249 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10250 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
10251 if (!SWIG_IsOK(ecode2)) {
10252 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_IsChecked" "', expected argument " "2"" of type '" "unsigned int""'");
10253 }
10254 arg2 = static_cast< unsigned int >(val2);
10255 {
10256 PyThreadState* __tstate = wxPyBeginAllowThreads();
10257 result = (bool)(arg1)->IsChecked(arg2);
10258 wxPyEndAllowThreads(__tstate);
10259 if (PyErr_Occurred()) SWIG_fail;
10260 }
10261 {
10262 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10263 }
10264 return resultobj;
10265 fail:
10266 return NULL;
10267 }
10268
10269
10270 SWIGINTERN PyObject *_wrap_CheckListBox_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10271 PyObject *resultobj = 0;
10272 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10273 unsigned int arg2 ;
10274 int arg3 = (int) true ;
10275 void *argp1 = 0 ;
10276 int res1 = 0 ;
10277 unsigned int val2 ;
10278 int ecode2 = 0 ;
10279 int val3 ;
10280 int ecode3 = 0 ;
10281 PyObject * obj0 = 0 ;
10282 PyObject * obj1 = 0 ;
10283 PyObject * obj2 = 0 ;
10284 char * kwnames[] = {
10285 (char *) "self",(char *) "index",(char *) "check", NULL
10286 };
10287
10288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10290 if (!SWIG_IsOK(res1)) {
10291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Check" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10292 }
10293 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10294 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
10295 if (!SWIG_IsOK(ecode2)) {
10296 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_Check" "', expected argument " "2"" of type '" "unsigned int""'");
10297 }
10298 arg2 = static_cast< unsigned int >(val2);
10299 if (obj2) {
10300 ecode3 = SWIG_AsVal_int(obj2, &val3);
10301 if (!SWIG_IsOK(ecode3)) {
10302 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Check" "', expected argument " "3"" of type '" "int""'");
10303 }
10304 arg3 = static_cast< int >(val3);
10305 }
10306 {
10307 PyThreadState* __tstate = wxPyBeginAllowThreads();
10308 (arg1)->Check(arg2,arg3);
10309 wxPyEndAllowThreads(__tstate);
10310 if (PyErr_Occurred()) SWIG_fail;
10311 }
10312 resultobj = SWIG_Py_Void();
10313 return resultobj;
10314 fail:
10315 return NULL;
10316 }
10317
10318
10319 SWIGINTERN PyObject *CheckListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10320 PyObject *obj;
10321 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10322 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckListBox, SWIG_NewClientData(obj));
10323 return SWIG_Py_Void();
10324 }
10325
10326 SWIGINTERN PyObject *CheckListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10327 return SWIG_Python_InitShadowInstance(args);
10328 }
10329
10330 SWIGINTERN int TextCtrlNameStr_set(PyObject *) {
10331 SWIG_Error(SWIG_AttributeError,"Variable TextCtrlNameStr is read-only.");
10332 return 1;
10333 }
10334
10335
10336 SWIGINTERN PyObject *TextCtrlNameStr_get(void) {
10337 PyObject *pyobj = 0;
10338
10339 {
10340 #if wxUSE_UNICODE
10341 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10342 #else
10343 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10344 #endif
10345 }
10346 return pyobj;
10347 }
10348
10349
10350 SWIGINTERN PyObject *_wrap_new_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10351 PyObject *resultobj = 0;
10352 wxColour const &arg1_defvalue = wxNullColour ;
10353 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
10354 wxColour const &arg2_defvalue = wxNullColour ;
10355 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
10356 wxFont const &arg3_defvalue = wxNullFont ;
10357 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
10358 wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ;
10359 wxTextAttr *result = 0 ;
10360 wxColour temp1 ;
10361 wxColour temp2 ;
10362 void *argp3 = 0 ;
10363 int res3 = 0 ;
10364 int val4 ;
10365 int ecode4 = 0 ;
10366 PyObject * obj0 = 0 ;
10367 PyObject * obj1 = 0 ;
10368 PyObject * obj2 = 0 ;
10369 PyObject * obj3 = 0 ;
10370 char * kwnames[] = {
10371 (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL
10372 };
10373
10374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10375 if (obj0) {
10376 {
10377 arg1 = &temp1;
10378 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
10379 }
10380 }
10381 if (obj1) {
10382 {
10383 arg2 = &temp2;
10384 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10385 }
10386 }
10387 if (obj2) {
10388 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
10389 if (!SWIG_IsOK(res3)) {
10390 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10391 }
10392 if (!argp3) {
10393 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10394 }
10395 arg3 = reinterpret_cast< wxFont * >(argp3);
10396 }
10397 if (obj3) {
10398 ecode4 = SWIG_AsVal_int(obj3, &val4);
10399 if (!SWIG_IsOK(ecode4)) {
10400 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextAttr" "', expected argument " "4"" of type '" "wxTextAttrAlignment""'");
10401 }
10402 arg4 = static_cast< wxTextAttrAlignment >(val4);
10403 }
10404 {
10405 PyThreadState* __tstate = wxPyBeginAllowThreads();
10406 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,arg4);
10407 wxPyEndAllowThreads(__tstate);
10408 if (PyErr_Occurred()) SWIG_fail;
10409 }
10410 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_NEW | 0 );
10411 return resultobj;
10412 fail:
10413 return NULL;
10414 }
10415
10416
10417 SWIGINTERN PyObject *_wrap_delete_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10418 PyObject *resultobj = 0;
10419 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10420 void *argp1 = 0 ;
10421 int res1 = 0 ;
10422 PyObject *swig_obj[1] ;
10423
10424 if (!args) SWIG_fail;
10425 swig_obj[0] = args;
10426 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, SWIG_POINTER_DISOWN | 0 );
10427 if (!SWIG_IsOK(res1)) {
10428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TextAttr" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10429 }
10430 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10431 {
10432 PyThreadState* __tstate = wxPyBeginAllowThreads();
10433 delete arg1;
10434
10435 wxPyEndAllowThreads(__tstate);
10436 if (PyErr_Occurred()) SWIG_fail;
10437 }
10438 resultobj = SWIG_Py_Void();
10439 return resultobj;
10440 fail:
10441 return NULL;
10442 }
10443
10444
10445 SWIGINTERN PyObject *_wrap_TextAttr_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10446 PyObject *resultobj = 0;
10447 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10448 void *argp1 = 0 ;
10449 int res1 = 0 ;
10450 PyObject *swig_obj[1] ;
10451
10452 if (!args) SWIG_fail;
10453 swig_obj[0] = args;
10454 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10455 if (!SWIG_IsOK(res1)) {
10456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Init" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10457 }
10458 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10459 {
10460 PyThreadState* __tstate = wxPyBeginAllowThreads();
10461 (arg1)->Init();
10462 wxPyEndAllowThreads(__tstate);
10463 if (PyErr_Occurred()) SWIG_fail;
10464 }
10465 resultobj = SWIG_Py_Void();
10466 return resultobj;
10467 fail:
10468 return NULL;
10469 }
10470
10471
10472 SWIGINTERN PyObject *_wrap_TextAttr_Merge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10473 PyObject *resultobj = 0;
10474 wxTextAttr *arg1 = 0 ;
10475 wxTextAttr *arg2 = 0 ;
10476 wxTextAttr result;
10477 void *argp1 = 0 ;
10478 int res1 = 0 ;
10479 void *argp2 = 0 ;
10480 int res2 = 0 ;
10481 PyObject * obj0 = 0 ;
10482 PyObject * obj1 = 0 ;
10483 char * kwnames[] = {
10484 (char *) "base",(char *) "overlay", NULL
10485 };
10486
10487 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_Merge",kwnames,&obj0,&obj1)) SWIG_fail;
10488 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
10489 if (!SWIG_IsOK(res1)) {
10490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10491 }
10492 if (!argp1) {
10493 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10494 }
10495 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10496 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
10497 if (!SWIG_IsOK(res2)) {
10498 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10499 }
10500 if (!argp2) {
10501 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10502 }
10503 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
10504 {
10505 PyThreadState* __tstate = wxPyBeginAllowThreads();
10506 result = wxTextAttr::Merge((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2);
10507 wxPyEndAllowThreads(__tstate);
10508 if (PyErr_Occurred()) SWIG_fail;
10509 }
10510 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
10511 return resultobj;
10512 fail:
10513 return NULL;
10514 }
10515
10516
10517 SWIGINTERN PyObject *_wrap_TextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10518 PyObject *resultobj = 0;
10519 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10520 wxColour *arg2 = 0 ;
10521 void *argp1 = 0 ;
10522 int res1 = 0 ;
10523 wxColour temp2 ;
10524 PyObject * obj0 = 0 ;
10525 PyObject * obj1 = 0 ;
10526 char * kwnames[] = {
10527 (char *) "self",(char *) "colText", NULL
10528 };
10529
10530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
10531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10532 if (!SWIG_IsOK(res1)) {
10533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10534 }
10535 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10536 {
10537 arg2 = &temp2;
10538 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10539 }
10540 {
10541 PyThreadState* __tstate = wxPyBeginAllowThreads();
10542 (arg1)->SetTextColour((wxColour const &)*arg2);
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_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10554 PyObject *resultobj = 0;
10555 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10556 wxColour *arg2 = 0 ;
10557 void *argp1 = 0 ;
10558 int res1 = 0 ;
10559 wxColour temp2 ;
10560 PyObject * obj0 = 0 ;
10561 PyObject * obj1 = 0 ;
10562 char * kwnames[] = {
10563 (char *) "self",(char *) "colBack", NULL
10564 };
10565
10566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
10567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10568 if (!SWIG_IsOK(res1)) {
10569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10570 }
10571 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10572 {
10573 arg2 = &temp2;
10574 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10575 }
10576 {
10577 PyThreadState* __tstate = wxPyBeginAllowThreads();
10578 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
10579 wxPyEndAllowThreads(__tstate);
10580 if (PyErr_Occurred()) SWIG_fail;
10581 }
10582 resultobj = SWIG_Py_Void();
10583 return resultobj;
10584 fail:
10585 return NULL;
10586 }
10587
10588
10589 SWIGINTERN PyObject *_wrap_TextAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10590 PyObject *resultobj = 0;
10591 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10592 wxFont *arg2 = 0 ;
10593 long arg3 = (long) wxTEXT_ATTR_FONT ;
10594 void *argp1 = 0 ;
10595 int res1 = 0 ;
10596 void *argp2 = 0 ;
10597 int res2 = 0 ;
10598 long val3 ;
10599 int ecode3 = 0 ;
10600 PyObject * obj0 = 0 ;
10601 PyObject * obj1 = 0 ;
10602 PyObject * obj2 = 0 ;
10603 char * kwnames[] = {
10604 (char *) "self",(char *) "font",(char *) "flags", NULL
10605 };
10606
10607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10609 if (!SWIG_IsOK(res1)) {
10610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFont" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10611 }
10612 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10613 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
10614 if (!SWIG_IsOK(res2)) {
10615 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10616 }
10617 if (!argp2) {
10618 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10619 }
10620 arg2 = reinterpret_cast< wxFont * >(argp2);
10621 if (obj2) {
10622 ecode3 = SWIG_AsVal_long(obj2, &val3);
10623 if (!SWIG_IsOK(ecode3)) {
10624 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetFont" "', expected argument " "3"" of type '" "long""'");
10625 }
10626 arg3 = static_cast< long >(val3);
10627 }
10628 {
10629 PyThreadState* __tstate = wxPyBeginAllowThreads();
10630 (arg1)->SetFont((wxFont const &)*arg2,arg3);
10631 wxPyEndAllowThreads(__tstate);
10632 if (PyErr_Occurred()) SWIG_fail;
10633 }
10634 resultobj = SWIG_Py_Void();
10635 return resultobj;
10636 fail:
10637 return NULL;
10638 }
10639
10640
10641 SWIGINTERN PyObject *_wrap_TextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10642 PyObject *resultobj = 0;
10643 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10644 wxTextAttrAlignment arg2 ;
10645 void *argp1 = 0 ;
10646 int res1 = 0 ;
10647 int val2 ;
10648 int ecode2 = 0 ;
10649 PyObject * obj0 = 0 ;
10650 PyObject * obj1 = 0 ;
10651 char * kwnames[] = {
10652 (char *) "self",(char *) "alignment", NULL
10653 };
10654
10655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail;
10656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10657 if (!SWIG_IsOK(res1)) {
10658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10659 }
10660 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10661 ecode2 = SWIG_AsVal_int(obj1, &val2);
10662 if (!SWIG_IsOK(ecode2)) {
10663 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
10664 }
10665 arg2 = static_cast< wxTextAttrAlignment >(val2);
10666 {
10667 PyThreadState* __tstate = wxPyBeginAllowThreads();
10668 (arg1)->SetAlignment(arg2);
10669 wxPyEndAllowThreads(__tstate);
10670 if (PyErr_Occurred()) SWIG_fail;
10671 }
10672 resultobj = SWIG_Py_Void();
10673 return resultobj;
10674 fail:
10675 return NULL;
10676 }
10677
10678
10679 SWIGINTERN PyObject *_wrap_TextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10680 PyObject *resultobj = 0;
10681 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10682 wxArrayInt *arg2 = 0 ;
10683 void *argp1 = 0 ;
10684 int res1 = 0 ;
10685 bool temp2 = false ;
10686 PyObject * obj0 = 0 ;
10687 PyObject * obj1 = 0 ;
10688 char * kwnames[] = {
10689 (char *) "self",(char *) "tabs", NULL
10690 };
10691
10692 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail;
10693 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10694 if (!SWIG_IsOK(res1)) {
10695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTabs" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10696 }
10697 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10698 {
10699 if (! PySequence_Check(obj1)) {
10700 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10701 SWIG_fail;
10702 }
10703 arg2 = new wxArrayInt;
10704 temp2 = true;
10705 int i, len=PySequence_Length(obj1);
10706 for (i=0; i<len; i++) {
10707 PyObject* item = PySequence_GetItem(obj1, i);
10708 PyObject* number = PyNumber_Int(item);
10709 arg2->Add(PyInt_AS_LONG(number));
10710 Py_DECREF(item);
10711 Py_DECREF(number);
10712 }
10713 }
10714 {
10715 PyThreadState* __tstate = wxPyBeginAllowThreads();
10716 (arg1)->SetTabs((wxArrayInt const &)*arg2);
10717 wxPyEndAllowThreads(__tstate);
10718 if (PyErr_Occurred()) SWIG_fail;
10719 }
10720 resultobj = SWIG_Py_Void();
10721 {
10722 if (temp2) delete arg2;
10723 }
10724 return resultobj;
10725 fail:
10726 {
10727 if (temp2) delete arg2;
10728 }
10729 return NULL;
10730 }
10731
10732
10733 SWIGINTERN PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10734 PyObject *resultobj = 0;
10735 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10736 int arg2 ;
10737 int arg3 = (int) 0 ;
10738 void *argp1 = 0 ;
10739 int res1 = 0 ;
10740 int val2 ;
10741 int ecode2 = 0 ;
10742 int val3 ;
10743 int ecode3 = 0 ;
10744 PyObject * obj0 = 0 ;
10745 PyObject * obj1 = 0 ;
10746 PyObject * obj2 = 0 ;
10747 char * kwnames[] = {
10748 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
10749 };
10750
10751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10753 if (!SWIG_IsOK(res1)) {
10754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10755 }
10756 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10757 ecode2 = SWIG_AsVal_int(obj1, &val2);
10758 if (!SWIG_IsOK(ecode2)) {
10759 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'");
10760 }
10761 arg2 = static_cast< int >(val2);
10762 if (obj2) {
10763 ecode3 = SWIG_AsVal_int(obj2, &val3);
10764 if (!SWIG_IsOK(ecode3)) {
10765 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'");
10766 }
10767 arg3 = static_cast< int >(val3);
10768 }
10769 {
10770 PyThreadState* __tstate = wxPyBeginAllowThreads();
10771 (arg1)->SetLeftIndent(arg2,arg3);
10772 wxPyEndAllowThreads(__tstate);
10773 if (PyErr_Occurred()) SWIG_fail;
10774 }
10775 resultobj = SWIG_Py_Void();
10776 return resultobj;
10777 fail:
10778 return NULL;
10779 }
10780
10781
10782 SWIGINTERN PyObject *_wrap_TextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10783 PyObject *resultobj = 0;
10784 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10785 int arg2 ;
10786 void *argp1 = 0 ;
10787 int res1 = 0 ;
10788 int val2 ;
10789 int ecode2 = 0 ;
10790 PyObject * obj0 = 0 ;
10791 PyObject * obj1 = 0 ;
10792 char * kwnames[] = {
10793 (char *) "self",(char *) "indent", NULL
10794 };
10795
10796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail;
10797 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10798 if (!SWIG_IsOK(res1)) {
10799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10800 }
10801 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10802 ecode2 = SWIG_AsVal_int(obj1, &val2);
10803 if (!SWIG_IsOK(ecode2)) {
10804 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'");
10805 }
10806 arg2 = static_cast< int >(val2);
10807 {
10808 PyThreadState* __tstate = wxPyBeginAllowThreads();
10809 (arg1)->SetRightIndent(arg2);
10810 wxPyEndAllowThreads(__tstate);
10811 if (PyErr_Occurred()) SWIG_fail;
10812 }
10813 resultobj = SWIG_Py_Void();
10814 return resultobj;
10815 fail:
10816 return NULL;
10817 }
10818
10819
10820 SWIGINTERN PyObject *_wrap_TextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10821 PyObject *resultobj = 0;
10822 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10823 long arg2 ;
10824 void *argp1 = 0 ;
10825 int res1 = 0 ;
10826 long val2 ;
10827 int ecode2 = 0 ;
10828 PyObject * obj0 = 0 ;
10829 PyObject * obj1 = 0 ;
10830 char * kwnames[] = {
10831 (char *) "self",(char *) "flags", NULL
10832 };
10833
10834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
10835 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10836 if (!SWIG_IsOK(res1)) {
10837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFlags" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10838 }
10839 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10840 ecode2 = SWIG_AsVal_long(obj1, &val2);
10841 if (!SWIG_IsOK(ecode2)) {
10842 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'");
10843 }
10844 arg2 = static_cast< long >(val2);
10845 {
10846 PyThreadState* __tstate = wxPyBeginAllowThreads();
10847 (arg1)->SetFlags(arg2);
10848 wxPyEndAllowThreads(__tstate);
10849 if (PyErr_Occurred()) SWIG_fail;
10850 }
10851 resultobj = SWIG_Py_Void();
10852 return resultobj;
10853 fail:
10854 return NULL;
10855 }
10856
10857
10858 SWIGINTERN PyObject *_wrap_TextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10859 PyObject *resultobj = 0;
10860 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10861 bool result;
10862 void *argp1 = 0 ;
10863 int res1 = 0 ;
10864 PyObject *swig_obj[1] ;
10865
10866 if (!args) SWIG_fail;
10867 swig_obj[0] = args;
10868 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10869 if (!SWIG_IsOK(res1)) {
10870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10871 }
10872 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10873 {
10874 PyThreadState* __tstate = wxPyBeginAllowThreads();
10875 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
10876 wxPyEndAllowThreads(__tstate);
10877 if (PyErr_Occurred()) SWIG_fail;
10878 }
10879 {
10880 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10881 }
10882 return resultobj;
10883 fail:
10884 return NULL;
10885 }
10886
10887
10888 SWIGINTERN PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10889 PyObject *resultobj = 0;
10890 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10891 bool result;
10892 void *argp1 = 0 ;
10893 int res1 = 0 ;
10894 PyObject *swig_obj[1] ;
10895
10896 if (!args) SWIG_fail;
10897 swig_obj[0] = args;
10898 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10899 if (!SWIG_IsOK(res1)) {
10900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10901 }
10902 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10903 {
10904 PyThreadState* __tstate = wxPyBeginAllowThreads();
10905 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
10906 wxPyEndAllowThreads(__tstate);
10907 if (PyErr_Occurred()) SWIG_fail;
10908 }
10909 {
10910 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10911 }
10912 return resultobj;
10913 fail:
10914 return NULL;
10915 }
10916
10917
10918 SWIGINTERN PyObject *_wrap_TextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10919 PyObject *resultobj = 0;
10920 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10921 bool result;
10922 void *argp1 = 0 ;
10923 int res1 = 0 ;
10924 PyObject *swig_obj[1] ;
10925
10926 if (!args) SWIG_fail;
10927 swig_obj[0] = args;
10928 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10929 if (!SWIG_IsOK(res1)) {
10930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10931 }
10932 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10933 {
10934 PyThreadState* __tstate = wxPyBeginAllowThreads();
10935 result = (bool)((wxTextAttr const *)arg1)->HasFont();
10936 wxPyEndAllowThreads(__tstate);
10937 if (PyErr_Occurred()) SWIG_fail;
10938 }
10939 {
10940 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10941 }
10942 return resultobj;
10943 fail:
10944 return NULL;
10945 }
10946
10947
10948 SWIGINTERN PyObject *_wrap_TextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10949 PyObject *resultobj = 0;
10950 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10951 bool result;
10952 void *argp1 = 0 ;
10953 int res1 = 0 ;
10954 PyObject *swig_obj[1] ;
10955
10956 if (!args) SWIG_fail;
10957 swig_obj[0] = args;
10958 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10959 if (!SWIG_IsOK(res1)) {
10960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10961 }
10962 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10963 {
10964 PyThreadState* __tstate = wxPyBeginAllowThreads();
10965 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
10966 wxPyEndAllowThreads(__tstate);
10967 if (PyErr_Occurred()) SWIG_fail;
10968 }
10969 {
10970 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10971 }
10972 return resultobj;
10973 fail:
10974 return NULL;
10975 }
10976
10977
10978 SWIGINTERN PyObject *_wrap_TextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10979 PyObject *resultobj = 0;
10980 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10981 bool result;
10982 void *argp1 = 0 ;
10983 int res1 = 0 ;
10984 PyObject *swig_obj[1] ;
10985
10986 if (!args) SWIG_fail;
10987 swig_obj[0] = args;
10988 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10989 if (!SWIG_IsOK(res1)) {
10990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10991 }
10992 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10993 {
10994 PyThreadState* __tstate = wxPyBeginAllowThreads();
10995 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
10996 wxPyEndAllowThreads(__tstate);
10997 if (PyErr_Occurred()) SWIG_fail;
10998 }
10999 {
11000 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11001 }
11002 return resultobj;
11003 fail:
11004 return NULL;
11005 }
11006
11007
11008 SWIGINTERN PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11009 PyObject *resultobj = 0;
11010 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11011 bool result;
11012 void *argp1 = 0 ;
11013 int res1 = 0 ;
11014 PyObject *swig_obj[1] ;
11015
11016 if (!args) SWIG_fail;
11017 swig_obj[0] = args;
11018 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11019 if (!SWIG_IsOK(res1)) {
11020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11021 }
11022 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11023 {
11024 PyThreadState* __tstate = wxPyBeginAllowThreads();
11025 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
11026 wxPyEndAllowThreads(__tstate);
11027 if (PyErr_Occurred()) SWIG_fail;
11028 }
11029 {
11030 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11031 }
11032 return resultobj;
11033 fail:
11034 return NULL;
11035 }
11036
11037
11038 SWIGINTERN PyObject *_wrap_TextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11039 PyObject *resultobj = 0;
11040 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11041 bool result;
11042 void *argp1 = 0 ;
11043 int res1 = 0 ;
11044 PyObject *swig_obj[1] ;
11045
11046 if (!args) SWIG_fail;
11047 swig_obj[0] = args;
11048 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11049 if (!SWIG_IsOK(res1)) {
11050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11051 }
11052 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11053 {
11054 PyThreadState* __tstate = wxPyBeginAllowThreads();
11055 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
11056 wxPyEndAllowThreads(__tstate);
11057 if (PyErr_Occurred()) SWIG_fail;
11058 }
11059 {
11060 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11061 }
11062 return resultobj;
11063 fail:
11064 return NULL;
11065 }
11066
11067
11068 SWIGINTERN PyObject *_wrap_TextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11069 PyObject *resultobj = 0;
11070 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11071 long arg2 ;
11072 bool result;
11073 void *argp1 = 0 ;
11074 int res1 = 0 ;
11075 long val2 ;
11076 int ecode2 = 0 ;
11077 PyObject * obj0 = 0 ;
11078 PyObject * obj1 = 0 ;
11079 char * kwnames[] = {
11080 (char *) "self",(char *) "flag", NULL
11081 };
11082
11083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail;
11084 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11085 if (!SWIG_IsOK(res1)) {
11086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFlag" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11087 }
11088 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11089 ecode2 = SWIG_AsVal_long(obj1, &val2);
11090 if (!SWIG_IsOK(ecode2)) {
11091 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'");
11092 }
11093 arg2 = static_cast< long >(val2);
11094 {
11095 PyThreadState* __tstate = wxPyBeginAllowThreads();
11096 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
11097 wxPyEndAllowThreads(__tstate);
11098 if (PyErr_Occurred()) SWIG_fail;
11099 }
11100 {
11101 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11102 }
11103 return resultobj;
11104 fail:
11105 return NULL;
11106 }
11107
11108
11109 SWIGINTERN PyObject *_wrap_TextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11110 PyObject *resultobj = 0;
11111 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11112 wxColour *result = 0 ;
11113 void *argp1 = 0 ;
11114 int res1 = 0 ;
11115 PyObject *swig_obj[1] ;
11116
11117 if (!args) SWIG_fail;
11118 swig_obj[0] = args;
11119 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11120 if (!SWIG_IsOK(res1)) {
11121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11122 }
11123 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11124 {
11125 PyThreadState* __tstate = wxPyBeginAllowThreads();
11126 {
11127 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
11128 result = (wxColour *) &_result_ref;
11129 }
11130 wxPyEndAllowThreads(__tstate);
11131 if (PyErr_Occurred()) SWIG_fail;
11132 }
11133 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11134 return resultobj;
11135 fail:
11136 return NULL;
11137 }
11138
11139
11140 SWIGINTERN PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11141 PyObject *resultobj = 0;
11142 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11143 wxColour *result = 0 ;
11144 void *argp1 = 0 ;
11145 int res1 = 0 ;
11146 PyObject *swig_obj[1] ;
11147
11148 if (!args) SWIG_fail;
11149 swig_obj[0] = args;
11150 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11151 if (!SWIG_IsOK(res1)) {
11152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11153 }
11154 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11155 {
11156 PyThreadState* __tstate = wxPyBeginAllowThreads();
11157 {
11158 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
11159 result = (wxColour *) &_result_ref;
11160 }
11161 wxPyEndAllowThreads(__tstate);
11162 if (PyErr_Occurred()) SWIG_fail;
11163 }
11164 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11165 return resultobj;
11166 fail:
11167 return NULL;
11168 }
11169
11170
11171 SWIGINTERN PyObject *_wrap_TextAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11172 PyObject *resultobj = 0;
11173 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11174 wxFont *result = 0 ;
11175 void *argp1 = 0 ;
11176 int res1 = 0 ;
11177 PyObject *swig_obj[1] ;
11178
11179 if (!args) SWIG_fail;
11180 swig_obj[0] = args;
11181 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11182 if (!SWIG_IsOK(res1)) {
11183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11184 }
11185 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11186 {
11187 PyThreadState* __tstate = wxPyBeginAllowThreads();
11188 {
11189 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
11190 result = (wxFont *) &_result_ref;
11191 }
11192 wxPyEndAllowThreads(__tstate);
11193 if (PyErr_Occurred()) SWIG_fail;
11194 }
11195 {
11196 wxFont* resultptr = new wxFont(*result);
11197 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
11198 }
11199 return resultobj;
11200 fail:
11201 return NULL;
11202 }
11203
11204
11205 SWIGINTERN PyObject *_wrap_TextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11206 PyObject *resultobj = 0;
11207 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11208 wxTextAttrAlignment result;
11209 void *argp1 = 0 ;
11210 int res1 = 0 ;
11211 PyObject *swig_obj[1] ;
11212
11213 if (!args) SWIG_fail;
11214 swig_obj[0] = args;
11215 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11216 if (!SWIG_IsOK(res1)) {
11217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11218 }
11219 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11220 {
11221 PyThreadState* __tstate = wxPyBeginAllowThreads();
11222 result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment();
11223 wxPyEndAllowThreads(__tstate);
11224 if (PyErr_Occurred()) SWIG_fail;
11225 }
11226 resultobj = SWIG_From_int(static_cast< int >(result));
11227 return resultobj;
11228 fail:
11229 return NULL;
11230 }
11231
11232
11233 SWIGINTERN PyObject *_wrap_TextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11234 PyObject *resultobj = 0;
11235 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11236 wxArrayInt *result = 0 ;
11237 void *argp1 = 0 ;
11238 int res1 = 0 ;
11239 PyObject *swig_obj[1] ;
11240
11241 if (!args) SWIG_fail;
11242 swig_obj[0] = args;
11243 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11244 if (!SWIG_IsOK(res1)) {
11245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11246 }
11247 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11248 {
11249 PyThreadState* __tstate = wxPyBeginAllowThreads();
11250 {
11251 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
11252 result = (wxArrayInt *) &_result_ref;
11253 }
11254 wxPyEndAllowThreads(__tstate);
11255 if (PyErr_Occurred()) SWIG_fail;
11256 }
11257 {
11258 resultobj = PyList_New(0);
11259 size_t idx;
11260 for (idx = 0; idx < result->GetCount(); idx += 1) {
11261 PyObject* val = PyInt_FromLong( result->Item(idx) );
11262 PyList_Append(resultobj, val);
11263 Py_DECREF(val);
11264 }
11265 }
11266 return resultobj;
11267 fail:
11268 return NULL;
11269 }
11270
11271
11272 SWIGINTERN PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11273 PyObject *resultobj = 0;
11274 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11275 long result;
11276 void *argp1 = 0 ;
11277 int res1 = 0 ;
11278 PyObject *swig_obj[1] ;
11279
11280 if (!args) SWIG_fail;
11281 swig_obj[0] = args;
11282 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11283 if (!SWIG_IsOK(res1)) {
11284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11285 }
11286 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11287 {
11288 PyThreadState* __tstate = wxPyBeginAllowThreads();
11289 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
11290 wxPyEndAllowThreads(__tstate);
11291 if (PyErr_Occurred()) SWIG_fail;
11292 }
11293 resultobj = SWIG_From_long(static_cast< long >(result));
11294 return resultobj;
11295 fail:
11296 return NULL;
11297 }
11298
11299
11300 SWIGINTERN PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11301 PyObject *resultobj = 0;
11302 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11303 long result;
11304 void *argp1 = 0 ;
11305 int res1 = 0 ;
11306 PyObject *swig_obj[1] ;
11307
11308 if (!args) SWIG_fail;
11309 swig_obj[0] = args;
11310 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11311 if (!SWIG_IsOK(res1)) {
11312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11313 }
11314 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11315 {
11316 PyThreadState* __tstate = wxPyBeginAllowThreads();
11317 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
11318 wxPyEndAllowThreads(__tstate);
11319 if (PyErr_Occurred()) SWIG_fail;
11320 }
11321 resultobj = SWIG_From_long(static_cast< long >(result));
11322 return resultobj;
11323 fail:
11324 return NULL;
11325 }
11326
11327
11328 SWIGINTERN PyObject *_wrap_TextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11329 PyObject *resultobj = 0;
11330 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11331 long result;
11332 void *argp1 = 0 ;
11333 int res1 = 0 ;
11334 PyObject *swig_obj[1] ;
11335
11336 if (!args) SWIG_fail;
11337 swig_obj[0] = args;
11338 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11339 if (!SWIG_IsOK(res1)) {
11340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11341 }
11342 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11343 {
11344 PyThreadState* __tstate = wxPyBeginAllowThreads();
11345 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
11346 wxPyEndAllowThreads(__tstate);
11347 if (PyErr_Occurred()) SWIG_fail;
11348 }
11349 resultobj = SWIG_From_long(static_cast< long >(result));
11350 return resultobj;
11351 fail:
11352 return NULL;
11353 }
11354
11355
11356 SWIGINTERN PyObject *_wrap_TextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11357 PyObject *resultobj = 0;
11358 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11359 long result;
11360 void *argp1 = 0 ;
11361 int res1 = 0 ;
11362 PyObject *swig_obj[1] ;
11363
11364 if (!args) SWIG_fail;
11365 swig_obj[0] = args;
11366 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11367 if (!SWIG_IsOK(res1)) {
11368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFlags" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11369 }
11370 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11371 {
11372 PyThreadState* __tstate = wxPyBeginAllowThreads();
11373 result = (long)((wxTextAttr const *)arg1)->GetFlags();
11374 wxPyEndAllowThreads(__tstate);
11375 if (PyErr_Occurred()) SWIG_fail;
11376 }
11377 resultobj = SWIG_From_long(static_cast< long >(result));
11378 return resultobj;
11379 fail:
11380 return NULL;
11381 }
11382
11383
11384 SWIGINTERN PyObject *_wrap_TextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11385 PyObject *resultobj = 0;
11386 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11387 bool result;
11388 void *argp1 = 0 ;
11389 int res1 = 0 ;
11390 PyObject *swig_obj[1] ;
11391
11392 if (!args) SWIG_fail;
11393 swig_obj[0] = args;
11394 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11395 if (!SWIG_IsOK(res1)) {
11396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_IsDefault" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11397 }
11398 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11399 {
11400 PyThreadState* __tstate = wxPyBeginAllowThreads();
11401 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
11402 wxPyEndAllowThreads(__tstate);
11403 if (PyErr_Occurred()) SWIG_fail;
11404 }
11405 {
11406 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11407 }
11408 return resultobj;
11409 fail:
11410 return NULL;
11411 }
11412
11413
11414 SWIGINTERN PyObject *_wrap_TextAttr_Combine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11415 PyObject *resultobj = 0;
11416 wxTextAttr *arg1 = 0 ;
11417 wxTextAttr *arg2 = 0 ;
11418 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
11419 wxTextAttr result;
11420 void *argp1 = 0 ;
11421 int res1 = 0 ;
11422 void *argp2 = 0 ;
11423 int res2 = 0 ;
11424 void *argp3 = 0 ;
11425 int res3 = 0 ;
11426 PyObject * obj0 = 0 ;
11427 PyObject * obj1 = 0 ;
11428 PyObject * obj2 = 0 ;
11429 char * kwnames[] = {
11430 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
11431 };
11432
11433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11434 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
11435 if (!SWIG_IsOK(res1)) {
11436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11437 }
11438 if (!argp1) {
11439 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11440 }
11441 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11442 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
11443 if (!SWIG_IsOK(res2)) {
11444 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11445 }
11446 if (!argp2) {
11447 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11448 }
11449 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
11450 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11451 if (!SWIG_IsOK(res3)) {
11452 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextAttr_Combine" "', expected argument " "3"" of type '" "wxTextCtrl const *""'");
11453 }
11454 arg3 = reinterpret_cast< wxTextCtrl * >(argp3);
11455 {
11456 PyThreadState* __tstate = wxPyBeginAllowThreads();
11457 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
11458 wxPyEndAllowThreads(__tstate);
11459 if (PyErr_Occurred()) SWIG_fail;
11460 }
11461 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
11462 return resultobj;
11463 fail:
11464 return NULL;
11465 }
11466
11467
11468 SWIGINTERN PyObject *TextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11469 PyObject *obj;
11470 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11471 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextAttr, SWIG_NewClientData(obj));
11472 return SWIG_Py_Void();
11473 }
11474
11475 SWIGINTERN PyObject *TextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11476 return SWIG_Python_InitShadowInstance(args);
11477 }
11478
11479 SWIGINTERN PyObject *_wrap_new_TextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11480 PyObject *resultobj = 0;
11481 wxWindow *arg1 = (wxWindow *) 0 ;
11482 int arg2 = (int) -1 ;
11483 wxString const &arg3_defvalue = wxPyEmptyString ;
11484 wxString *arg3 = (wxString *) &arg3_defvalue ;
11485 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11486 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11487 wxSize const &arg5_defvalue = wxDefaultSize ;
11488 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11489 long arg6 = (long) 0 ;
11490 wxValidator const &arg7_defvalue = wxDefaultValidator ;
11491 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
11492 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
11493 wxString *arg8 = (wxString *) &arg8_defvalue ;
11494 wxTextCtrl *result = 0 ;
11495 void *argp1 = 0 ;
11496 int res1 = 0 ;
11497 int val2 ;
11498 int ecode2 = 0 ;
11499 bool temp3 = false ;
11500 wxPoint temp4 ;
11501 wxSize temp5 ;
11502 long val6 ;
11503 int ecode6 = 0 ;
11504 void *argp7 = 0 ;
11505 int res7 = 0 ;
11506 bool temp8 = false ;
11507 PyObject * obj0 = 0 ;
11508 PyObject * obj1 = 0 ;
11509 PyObject * obj2 = 0 ;
11510 PyObject * obj3 = 0 ;
11511 PyObject * obj4 = 0 ;
11512 PyObject * obj5 = 0 ;
11513 PyObject * obj6 = 0 ;
11514 PyObject * obj7 = 0 ;
11515 char * kwnames[] = {
11516 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11517 };
11518
11519 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
11520 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
11521 if (!SWIG_IsOK(res1)) {
11522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
11523 }
11524 arg1 = reinterpret_cast< wxWindow * >(argp1);
11525 if (obj1) {
11526 ecode2 = SWIG_AsVal_int(obj1, &val2);
11527 if (!SWIG_IsOK(ecode2)) {
11528 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TextCtrl" "', expected argument " "2"" of type '" "int""'");
11529 }
11530 arg2 = static_cast< int >(val2);
11531 }
11532 if (obj2) {
11533 {
11534 arg3 = wxString_in_helper(obj2);
11535 if (arg3 == NULL) SWIG_fail;
11536 temp3 = true;
11537 }
11538 }
11539 if (obj3) {
11540 {
11541 arg4 = &temp4;
11542 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11543 }
11544 }
11545 if (obj4) {
11546 {
11547 arg5 = &temp5;
11548 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11549 }
11550 }
11551 if (obj5) {
11552 ecode6 = SWIG_AsVal_long(obj5, &val6);
11553 if (!SWIG_IsOK(ecode6)) {
11554 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_TextCtrl" "', expected argument " "6"" of type '" "long""'");
11555 }
11556 arg6 = static_cast< long >(val6);
11557 }
11558 if (obj6) {
11559 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
11560 if (!SWIG_IsOK(res7)) {
11561 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
11562 }
11563 if (!argp7) {
11564 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
11565 }
11566 arg7 = reinterpret_cast< wxValidator * >(argp7);
11567 }
11568 if (obj7) {
11569 {
11570 arg8 = wxString_in_helper(obj7);
11571 if (arg8 == NULL) SWIG_fail;
11572 temp8 = true;
11573 }
11574 }
11575 {
11576 if (!wxPyCheckForApp()) SWIG_fail;
11577 PyThreadState* __tstate = wxPyBeginAllowThreads();
11578 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
11579 wxPyEndAllowThreads(__tstate);
11580 if (PyErr_Occurred()) SWIG_fail;
11581 }
11582 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_NEW | 0 );
11583 {
11584 if (temp3)
11585 delete arg3;
11586 }
11587 {
11588 if (temp8)
11589 delete arg8;
11590 }
11591 return resultobj;
11592 fail:
11593 {
11594 if (temp3)
11595 delete arg3;
11596 }
11597 {
11598 if (temp8)
11599 delete arg8;
11600 }
11601 return NULL;
11602 }
11603
11604
11605 SWIGINTERN PyObject *_wrap_new_PreTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11606 PyObject *resultobj = 0;
11607 wxTextCtrl *result = 0 ;
11608
11609 if (!SWIG_Python_UnpackTuple(args,"new_PreTextCtrl",0,0,0)) SWIG_fail;
11610 {
11611 if (!wxPyCheckForApp()) SWIG_fail;
11612 PyThreadState* __tstate = wxPyBeginAllowThreads();
11613 result = (wxTextCtrl *)new wxTextCtrl();
11614 wxPyEndAllowThreads(__tstate);
11615 if (PyErr_Occurred()) SWIG_fail;
11616 }
11617 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_OWN | 0 );
11618 return resultobj;
11619 fail:
11620 return NULL;
11621 }
11622
11623
11624 SWIGINTERN PyObject *_wrap_TextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11625 PyObject *resultobj = 0;
11626 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11627 wxWindow *arg2 = (wxWindow *) 0 ;
11628 int arg3 = (int) -1 ;
11629 wxString const &arg4_defvalue = wxPyEmptyString ;
11630 wxString *arg4 = (wxString *) &arg4_defvalue ;
11631 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11632 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11633 wxSize const &arg6_defvalue = wxDefaultSize ;
11634 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11635 long arg7 = (long) 0 ;
11636 wxValidator const &arg8_defvalue = wxDefaultValidator ;
11637 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
11638 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
11639 wxString *arg9 = (wxString *) &arg9_defvalue ;
11640 bool result;
11641 void *argp1 = 0 ;
11642 int res1 = 0 ;
11643 void *argp2 = 0 ;
11644 int res2 = 0 ;
11645 int val3 ;
11646 int ecode3 = 0 ;
11647 bool temp4 = false ;
11648 wxPoint temp5 ;
11649 wxSize temp6 ;
11650 long val7 ;
11651 int ecode7 = 0 ;
11652 void *argp8 = 0 ;
11653 int res8 = 0 ;
11654 bool temp9 = false ;
11655 PyObject * obj0 = 0 ;
11656 PyObject * obj1 = 0 ;
11657 PyObject * obj2 = 0 ;
11658 PyObject * obj3 = 0 ;
11659 PyObject * obj4 = 0 ;
11660 PyObject * obj5 = 0 ;
11661 PyObject * obj6 = 0 ;
11662 PyObject * obj7 = 0 ;
11663 PyObject * obj8 = 0 ;
11664 char * kwnames[] = {
11665 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11666 };
11667
11668 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
11669 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11670 if (!SWIG_IsOK(res1)) {
11671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Create" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11672 }
11673 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11674 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11675 if (!SWIG_IsOK(res2)) {
11676 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
11677 }
11678 arg2 = reinterpret_cast< wxWindow * >(argp2);
11679 if (obj2) {
11680 ecode3 = SWIG_AsVal_int(obj2, &val3);
11681 if (!SWIG_IsOK(ecode3)) {
11682 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Create" "', expected argument " "3"" of type '" "int""'");
11683 }
11684 arg3 = static_cast< int >(val3);
11685 }
11686 if (obj3) {
11687 {
11688 arg4 = wxString_in_helper(obj3);
11689 if (arg4 == NULL) SWIG_fail;
11690 temp4 = true;
11691 }
11692 }
11693 if (obj4) {
11694 {
11695 arg5 = &temp5;
11696 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11697 }
11698 }
11699 if (obj5) {
11700 {
11701 arg6 = &temp6;
11702 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11703 }
11704 }
11705 if (obj6) {
11706 ecode7 = SWIG_AsVal_long(obj6, &val7);
11707 if (!SWIG_IsOK(ecode7)) {
11708 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "TextCtrl_Create" "', expected argument " "7"" of type '" "long""'");
11709 }
11710 arg7 = static_cast< long >(val7);
11711 }
11712 if (obj7) {
11713 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
11714 if (!SWIG_IsOK(res8)) {
11715 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11716 }
11717 if (!argp8) {
11718 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11719 }
11720 arg8 = reinterpret_cast< wxValidator * >(argp8);
11721 }
11722 if (obj8) {
11723 {
11724 arg9 = wxString_in_helper(obj8);
11725 if (arg9 == NULL) SWIG_fail;
11726 temp9 = true;
11727 }
11728 }
11729 {
11730 PyThreadState* __tstate = wxPyBeginAllowThreads();
11731 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
11732 wxPyEndAllowThreads(__tstate);
11733 if (PyErr_Occurred()) SWIG_fail;
11734 }
11735 {
11736 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11737 }
11738 {
11739 if (temp4)
11740 delete arg4;
11741 }
11742 {
11743 if (temp9)
11744 delete arg9;
11745 }
11746 return resultobj;
11747 fail:
11748 {
11749 if (temp4)
11750 delete arg4;
11751 }
11752 {
11753 if (temp9)
11754 delete arg9;
11755 }
11756 return NULL;
11757 }
11758
11759
11760 SWIGINTERN PyObject *_wrap_TextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11761 PyObject *resultobj = 0;
11762 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11763 wxString result;
11764 void *argp1 = 0 ;
11765 int res1 = 0 ;
11766 PyObject *swig_obj[1] ;
11767
11768 if (!args) SWIG_fail;
11769 swig_obj[0] = args;
11770 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11771 if (!SWIG_IsOK(res1)) {
11772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetValue" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11773 }
11774 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11775 {
11776 PyThreadState* __tstate = wxPyBeginAllowThreads();
11777 result = ((wxTextCtrl const *)arg1)->GetValue();
11778 wxPyEndAllowThreads(__tstate);
11779 if (PyErr_Occurred()) SWIG_fail;
11780 }
11781 {
11782 #if wxUSE_UNICODE
11783 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11784 #else
11785 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11786 #endif
11787 }
11788 return resultobj;
11789 fail:
11790 return NULL;
11791 }
11792
11793
11794 SWIGINTERN PyObject *_wrap_TextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11795 PyObject *resultobj = 0;
11796 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11797 wxString *arg2 = 0 ;
11798 void *argp1 = 0 ;
11799 int res1 = 0 ;
11800 bool temp2 = false ;
11801 PyObject * obj0 = 0 ;
11802 PyObject * obj1 = 0 ;
11803 char * kwnames[] = {
11804 (char *) "self",(char *) "value", NULL
11805 };
11806
11807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
11808 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11809 if (!SWIG_IsOK(res1)) {
11810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11811 }
11812 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11813 {
11814 arg2 = wxString_in_helper(obj1);
11815 if (arg2 == NULL) SWIG_fail;
11816 temp2 = true;
11817 }
11818 {
11819 PyThreadState* __tstate = wxPyBeginAllowThreads();
11820 (arg1)->SetValue((wxString const &)*arg2);
11821 wxPyEndAllowThreads(__tstate);
11822 if (PyErr_Occurred()) SWIG_fail;
11823 }
11824 resultobj = SWIG_Py_Void();
11825 {
11826 if (temp2)
11827 delete arg2;
11828 }
11829 return resultobj;
11830 fail:
11831 {
11832 if (temp2)
11833 delete arg2;
11834 }
11835 return NULL;
11836 }
11837
11838
11839 SWIGINTERN PyObject *_wrap_TextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11840 PyObject *resultobj = 0;
11841 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11842 long arg2 ;
11843 long arg3 ;
11844 wxString result;
11845 void *argp1 = 0 ;
11846 int res1 = 0 ;
11847 long val2 ;
11848 int ecode2 = 0 ;
11849 long val3 ;
11850 int ecode3 = 0 ;
11851 PyObject * obj0 = 0 ;
11852 PyObject * obj1 = 0 ;
11853 PyObject * obj2 = 0 ;
11854 char * kwnames[] = {
11855 (char *) "self",(char *) "from",(char *) "to", NULL
11856 };
11857
11858 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11859 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11860 if (!SWIG_IsOK(res1)) {
11861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetRange" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11862 }
11863 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11864 ecode2 = SWIG_AsVal_long(obj1, &val2);
11865 if (!SWIG_IsOK(ecode2)) {
11866 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'");
11867 }
11868 arg2 = static_cast< long >(val2);
11869 ecode3 = SWIG_AsVal_long(obj2, &val3);
11870 if (!SWIG_IsOK(ecode3)) {
11871 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'");
11872 }
11873 arg3 = static_cast< long >(val3);
11874 {
11875 PyThreadState* __tstate = wxPyBeginAllowThreads();
11876 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
11877 wxPyEndAllowThreads(__tstate);
11878 if (PyErr_Occurred()) SWIG_fail;
11879 }
11880 {
11881 #if wxUSE_UNICODE
11882 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11883 #else
11884 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11885 #endif
11886 }
11887 return resultobj;
11888 fail:
11889 return NULL;
11890 }
11891
11892
11893 SWIGINTERN PyObject *_wrap_TextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11894 PyObject *resultobj = 0;
11895 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11896 long arg2 ;
11897 int result;
11898 void *argp1 = 0 ;
11899 int res1 = 0 ;
11900 long val2 ;
11901 int ecode2 = 0 ;
11902 PyObject * obj0 = 0 ;
11903 PyObject * obj1 = 0 ;
11904 char * kwnames[] = {
11905 (char *) "self",(char *) "lineNo", NULL
11906 };
11907
11908 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail;
11909 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11910 if (!SWIG_IsOK(res1)) {
11911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11912 }
11913 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11914 ecode2 = SWIG_AsVal_long(obj1, &val2);
11915 if (!SWIG_IsOK(ecode2)) {
11916 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'");
11917 }
11918 arg2 = static_cast< long >(val2);
11919 {
11920 PyThreadState* __tstate = wxPyBeginAllowThreads();
11921 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
11922 wxPyEndAllowThreads(__tstate);
11923 if (PyErr_Occurred()) SWIG_fail;
11924 }
11925 resultobj = SWIG_From_int(static_cast< int >(result));
11926 return resultobj;
11927 fail:
11928 return NULL;
11929 }
11930
11931
11932 SWIGINTERN PyObject *_wrap_TextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11933 PyObject *resultobj = 0;
11934 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11935 long arg2 ;
11936 wxString result;
11937 void *argp1 = 0 ;
11938 int res1 = 0 ;
11939 long val2 ;
11940 int ecode2 = 0 ;
11941 PyObject * obj0 = 0 ;
11942 PyObject * obj1 = 0 ;
11943 char * kwnames[] = {
11944 (char *) "self",(char *) "lineNo", NULL
11945 };
11946
11947 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail;
11948 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11949 if (!SWIG_IsOK(res1)) {
11950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11951 }
11952 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11953 ecode2 = SWIG_AsVal_long(obj1, &val2);
11954 if (!SWIG_IsOK(ecode2)) {
11955 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'");
11956 }
11957 arg2 = static_cast< long >(val2);
11958 {
11959 PyThreadState* __tstate = wxPyBeginAllowThreads();
11960 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
11961 wxPyEndAllowThreads(__tstate);
11962 if (PyErr_Occurred()) SWIG_fail;
11963 }
11964 {
11965 #if wxUSE_UNICODE
11966 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11967 #else
11968 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11969 #endif
11970 }
11971 return resultobj;
11972 fail:
11973 return NULL;
11974 }
11975
11976
11977 SWIGINTERN PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11978 PyObject *resultobj = 0;
11979 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11980 int result;
11981 void *argp1 = 0 ;
11982 int res1 = 0 ;
11983 PyObject *swig_obj[1] ;
11984
11985 if (!args) SWIG_fail;
11986 swig_obj[0] = args;
11987 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11988 if (!SWIG_IsOK(res1)) {
11989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11990 }
11991 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11992 {
11993 PyThreadState* __tstate = wxPyBeginAllowThreads();
11994 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
11995 wxPyEndAllowThreads(__tstate);
11996 if (PyErr_Occurred()) SWIG_fail;
11997 }
11998 resultobj = SWIG_From_int(static_cast< int >(result));
11999 return resultobj;
12000 fail:
12001 return NULL;
12002 }
12003
12004
12005 SWIGINTERN PyObject *_wrap_TextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12006 PyObject *resultobj = 0;
12007 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12008 bool result;
12009 void *argp1 = 0 ;
12010 int res1 = 0 ;
12011 PyObject *swig_obj[1] ;
12012
12013 if (!args) SWIG_fail;
12014 swig_obj[0] = args;
12015 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12016 if (!SWIG_IsOK(res1)) {
12017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsModified" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12018 }
12019 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12020 {
12021 PyThreadState* __tstate = wxPyBeginAllowThreads();
12022 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
12023 wxPyEndAllowThreads(__tstate);
12024 if (PyErr_Occurred()) SWIG_fail;
12025 }
12026 {
12027 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12028 }
12029 return resultobj;
12030 fail:
12031 return NULL;
12032 }
12033
12034
12035 SWIGINTERN PyObject *_wrap_TextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12036 PyObject *resultobj = 0;
12037 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12038 bool result;
12039 void *argp1 = 0 ;
12040 int res1 = 0 ;
12041 PyObject *swig_obj[1] ;
12042
12043 if (!args) SWIG_fail;
12044 swig_obj[0] = args;
12045 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12046 if (!SWIG_IsOK(res1)) {
12047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12048 }
12049 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12050 {
12051 PyThreadState* __tstate = wxPyBeginAllowThreads();
12052 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
12053 wxPyEndAllowThreads(__tstate);
12054 if (PyErr_Occurred()) SWIG_fail;
12055 }
12056 {
12057 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12058 }
12059 return resultobj;
12060 fail:
12061 return NULL;
12062 }
12063
12064
12065 SWIGINTERN PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12066 PyObject *resultobj = 0;
12067 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12068 bool result;
12069 void *argp1 = 0 ;
12070 int res1 = 0 ;
12071 PyObject *swig_obj[1] ;
12072
12073 if (!args) SWIG_fail;
12074 swig_obj[0] = args;
12075 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12076 if (!SWIG_IsOK(res1)) {
12077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12078 }
12079 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12080 {
12081 PyThreadState* __tstate = wxPyBeginAllowThreads();
12082 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
12083 wxPyEndAllowThreads(__tstate);
12084 if (PyErr_Occurred()) SWIG_fail;
12085 }
12086 {
12087 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12088 }
12089 return resultobj;
12090 fail:
12091 return NULL;
12092 }
12093
12094
12095 SWIGINTERN PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12096 PyObject *resultobj = 0;
12097 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12098 bool result;
12099 void *argp1 = 0 ;
12100 int res1 = 0 ;
12101 PyObject *swig_obj[1] ;
12102
12103 if (!args) SWIG_fail;
12104 swig_obj[0] = args;
12105 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12106 if (!SWIG_IsOK(res1)) {
12107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12108 }
12109 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12110 {
12111 PyThreadState* __tstate = wxPyBeginAllowThreads();
12112 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
12113 wxPyEndAllowThreads(__tstate);
12114 if (PyErr_Occurred()) SWIG_fail;
12115 }
12116 {
12117 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12118 }
12119 return resultobj;
12120 fail:
12121 return NULL;
12122 }
12123
12124
12125 SWIGINTERN PyObject *_wrap_TextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12126 PyObject *resultobj = 0;
12127 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12128 long *arg2 = (long *) 0 ;
12129 long *arg3 = (long *) 0 ;
12130 void *argp1 = 0 ;
12131 int res1 = 0 ;
12132 long temp2 ;
12133 int res2 = SWIG_TMPOBJ ;
12134 long temp3 ;
12135 int res3 = SWIG_TMPOBJ ;
12136 PyObject *swig_obj[1] ;
12137
12138 arg2 = &temp2;
12139 arg3 = &temp3;
12140 if (!args) SWIG_fail;
12141 swig_obj[0] = args;
12142 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12143 if (!SWIG_IsOK(res1)) {
12144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12145 }
12146 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12147 {
12148 PyThreadState* __tstate = wxPyBeginAllowThreads();
12149 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
12150 wxPyEndAllowThreads(__tstate);
12151 if (PyErr_Occurred()) SWIG_fail;
12152 }
12153 resultobj = SWIG_Py_Void();
12154 if (SWIG_IsTmpObj(res2)) {
12155 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
12156 } else {
12157 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12158 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
12159 }
12160 if (SWIG_IsTmpObj(res3)) {
12161 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
12162 } else {
12163 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12164 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
12165 }
12166 return resultobj;
12167 fail:
12168 return NULL;
12169 }
12170
12171
12172 SWIGINTERN PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12173 PyObject *resultobj = 0;
12174 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12175 wxString result;
12176 void *argp1 = 0 ;
12177 int res1 = 0 ;
12178 PyObject *swig_obj[1] ;
12179
12180 if (!args) SWIG_fail;
12181 swig_obj[0] = args;
12182 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12183 if (!SWIG_IsOK(res1)) {
12184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12185 }
12186 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12187 {
12188 PyThreadState* __tstate = wxPyBeginAllowThreads();
12189 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
12190 wxPyEndAllowThreads(__tstate);
12191 if (PyErr_Occurred()) SWIG_fail;
12192 }
12193 {
12194 #if wxUSE_UNICODE
12195 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12196 #else
12197 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12198 #endif
12199 }
12200 return resultobj;
12201 fail:
12202 return NULL;
12203 }
12204
12205
12206 SWIGINTERN PyObject *_wrap_TextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12207 PyObject *resultobj = 0;
12208 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12209 void *argp1 = 0 ;
12210 int res1 = 0 ;
12211 PyObject *swig_obj[1] ;
12212
12213 if (!args) SWIG_fail;
12214 swig_obj[0] = args;
12215 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12216 if (!SWIG_IsOK(res1)) {
12217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Clear" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12218 }
12219 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12220 {
12221 PyThreadState* __tstate = wxPyBeginAllowThreads();
12222 (arg1)->Clear();
12223 wxPyEndAllowThreads(__tstate);
12224 if (PyErr_Occurred()) SWIG_fail;
12225 }
12226 resultobj = SWIG_Py_Void();
12227 return resultobj;
12228 fail:
12229 return NULL;
12230 }
12231
12232
12233 SWIGINTERN PyObject *_wrap_TextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12234 PyObject *resultobj = 0;
12235 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12236 long arg2 ;
12237 long arg3 ;
12238 wxString *arg4 = 0 ;
12239 void *argp1 = 0 ;
12240 int res1 = 0 ;
12241 long val2 ;
12242 int ecode2 = 0 ;
12243 long val3 ;
12244 int ecode3 = 0 ;
12245 bool temp4 = false ;
12246 PyObject * obj0 = 0 ;
12247 PyObject * obj1 = 0 ;
12248 PyObject * obj2 = 0 ;
12249 PyObject * obj3 = 0 ;
12250 char * kwnames[] = {
12251 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
12252 };
12253
12254 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12255 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12256 if (!SWIG_IsOK(res1)) {
12257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Replace" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12258 }
12259 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12260 ecode2 = SWIG_AsVal_long(obj1, &val2);
12261 if (!SWIG_IsOK(ecode2)) {
12262 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Replace" "', expected argument " "2"" of type '" "long""'");
12263 }
12264 arg2 = static_cast< long >(val2);
12265 ecode3 = SWIG_AsVal_long(obj2, &val3);
12266 if (!SWIG_IsOK(ecode3)) {
12267 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Replace" "', expected argument " "3"" of type '" "long""'");
12268 }
12269 arg3 = static_cast< long >(val3);
12270 {
12271 arg4 = wxString_in_helper(obj3);
12272 if (arg4 == NULL) SWIG_fail;
12273 temp4 = true;
12274 }
12275 {
12276 PyThreadState* __tstate = wxPyBeginAllowThreads();
12277 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
12278 wxPyEndAllowThreads(__tstate);
12279 if (PyErr_Occurred()) SWIG_fail;
12280 }
12281 resultobj = SWIG_Py_Void();
12282 {
12283 if (temp4)
12284 delete arg4;
12285 }
12286 return resultobj;
12287 fail:
12288 {
12289 if (temp4)
12290 delete arg4;
12291 }
12292 return NULL;
12293 }
12294
12295
12296 SWIGINTERN PyObject *_wrap_TextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12297 PyObject *resultobj = 0;
12298 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12299 long arg2 ;
12300 long arg3 ;
12301 void *argp1 = 0 ;
12302 int res1 = 0 ;
12303 long val2 ;
12304 int ecode2 = 0 ;
12305 long val3 ;
12306 int ecode3 = 0 ;
12307 PyObject * obj0 = 0 ;
12308 PyObject * obj1 = 0 ;
12309 PyObject * obj2 = 0 ;
12310 char * kwnames[] = {
12311 (char *) "self",(char *) "from",(char *) "to", NULL
12312 };
12313
12314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12316 if (!SWIG_IsOK(res1)) {
12317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Remove" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12318 }
12319 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12320 ecode2 = SWIG_AsVal_long(obj1, &val2);
12321 if (!SWIG_IsOK(ecode2)) {
12322 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Remove" "', expected argument " "2"" of type '" "long""'");
12323 }
12324 arg2 = static_cast< long >(val2);
12325 ecode3 = SWIG_AsVal_long(obj2, &val3);
12326 if (!SWIG_IsOK(ecode3)) {
12327 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Remove" "', expected argument " "3"" of type '" "long""'");
12328 }
12329 arg3 = static_cast< long >(val3);
12330 {
12331 PyThreadState* __tstate = wxPyBeginAllowThreads();
12332 (arg1)->Remove(arg2,arg3);
12333 wxPyEndAllowThreads(__tstate);
12334 if (PyErr_Occurred()) SWIG_fail;
12335 }
12336 resultobj = SWIG_Py_Void();
12337 return resultobj;
12338 fail:
12339 return NULL;
12340 }
12341
12342
12343 SWIGINTERN PyObject *_wrap_TextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12344 PyObject *resultobj = 0;
12345 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12346 wxString *arg2 = 0 ;
12347 bool result;
12348 void *argp1 = 0 ;
12349 int res1 = 0 ;
12350 bool temp2 = false ;
12351 PyObject * obj0 = 0 ;
12352 PyObject * obj1 = 0 ;
12353 char * kwnames[] = {
12354 (char *) "self",(char *) "file", NULL
12355 };
12356
12357 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) SWIG_fail;
12358 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12359 if (!SWIG_IsOK(res1)) {
12360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12361 }
12362 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12363 {
12364 arg2 = wxString_in_helper(obj1);
12365 if (arg2 == NULL) SWIG_fail;
12366 temp2 = true;
12367 }
12368 {
12369 PyThreadState* __tstate = wxPyBeginAllowThreads();
12370 result = (bool)(arg1)->LoadFile((wxString const &)*arg2);
12371 wxPyEndAllowThreads(__tstate);
12372 if (PyErr_Occurred()) SWIG_fail;
12373 }
12374 {
12375 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12376 }
12377 {
12378 if (temp2)
12379 delete arg2;
12380 }
12381 return resultobj;
12382 fail:
12383 {
12384 if (temp2)
12385 delete arg2;
12386 }
12387 return NULL;
12388 }
12389
12390
12391 SWIGINTERN PyObject *_wrap_TextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12392 PyObject *resultobj = 0;
12393 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12394 wxString const &arg2_defvalue = wxPyEmptyString ;
12395 wxString *arg2 = (wxString *) &arg2_defvalue ;
12396 bool result;
12397 void *argp1 = 0 ;
12398 int res1 = 0 ;
12399 bool temp2 = false ;
12400 PyObject * obj0 = 0 ;
12401 PyObject * obj1 = 0 ;
12402 char * kwnames[] = {
12403 (char *) "self",(char *) "file", NULL
12404 };
12405
12406 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) SWIG_fail;
12407 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12408 if (!SWIG_IsOK(res1)) {
12409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12410 }
12411 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12412 if (obj1) {
12413 {
12414 arg2 = wxString_in_helper(obj1);
12415 if (arg2 == NULL) SWIG_fail;
12416 temp2 = true;
12417 }
12418 }
12419 {
12420 PyThreadState* __tstate = wxPyBeginAllowThreads();
12421 result = (bool)(arg1)->SaveFile((wxString const &)*arg2);
12422 wxPyEndAllowThreads(__tstate);
12423 if (PyErr_Occurred()) SWIG_fail;
12424 }
12425 {
12426 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12427 }
12428 {
12429 if (temp2)
12430 delete arg2;
12431 }
12432 return resultobj;
12433 fail:
12434 {
12435 if (temp2)
12436 delete arg2;
12437 }
12438 return NULL;
12439 }
12440
12441
12442 SWIGINTERN PyObject *_wrap_TextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12443 PyObject *resultobj = 0;
12444 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12445 void *argp1 = 0 ;
12446 int res1 = 0 ;
12447 PyObject *swig_obj[1] ;
12448
12449 if (!args) SWIG_fail;
12450 swig_obj[0] = args;
12451 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12452 if (!SWIG_IsOK(res1)) {
12453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12454 }
12455 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12456 {
12457 PyThreadState* __tstate = wxPyBeginAllowThreads();
12458 (arg1)->MarkDirty();
12459 wxPyEndAllowThreads(__tstate);
12460 if (PyErr_Occurred()) SWIG_fail;
12461 }
12462 resultobj = SWIG_Py_Void();
12463 return resultobj;
12464 fail:
12465 return NULL;
12466 }
12467
12468
12469 SWIGINTERN PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12470 PyObject *resultobj = 0;
12471 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12472 void *argp1 = 0 ;
12473 int res1 = 0 ;
12474 PyObject *swig_obj[1] ;
12475
12476 if (!args) SWIG_fail;
12477 swig_obj[0] = args;
12478 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12479 if (!SWIG_IsOK(res1)) {
12480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12481 }
12482 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12483 {
12484 PyThreadState* __tstate = wxPyBeginAllowThreads();
12485 (arg1)->DiscardEdits();
12486 wxPyEndAllowThreads(__tstate);
12487 if (PyErr_Occurred()) SWIG_fail;
12488 }
12489 resultobj = SWIG_Py_Void();
12490 return resultobj;
12491 fail:
12492 return NULL;
12493 }
12494
12495
12496 SWIGINTERN PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12497 PyObject *resultobj = 0;
12498 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12499 unsigned long arg2 ;
12500 void *argp1 = 0 ;
12501 int res1 = 0 ;
12502 unsigned long val2 ;
12503 int ecode2 = 0 ;
12504 PyObject * obj0 = 0 ;
12505 PyObject * obj1 = 0 ;
12506 char * kwnames[] = {
12507 (char *) "self",(char *) "len", NULL
12508 };
12509
12510 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail;
12511 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12512 if (!SWIG_IsOK(res1)) {
12513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12514 }
12515 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12516 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
12517 if (!SWIG_IsOK(ecode2)) {
12518 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'");
12519 }
12520 arg2 = static_cast< unsigned long >(val2);
12521 {
12522 PyThreadState* __tstate = wxPyBeginAllowThreads();
12523 (arg1)->SetMaxLength(arg2);
12524 wxPyEndAllowThreads(__tstate);
12525 if (PyErr_Occurred()) SWIG_fail;
12526 }
12527 resultobj = SWIG_Py_Void();
12528 return resultobj;
12529 fail:
12530 return NULL;
12531 }
12532
12533
12534 SWIGINTERN PyObject *_wrap_TextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12535 PyObject *resultobj = 0;
12536 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12537 wxString *arg2 = 0 ;
12538 void *argp1 = 0 ;
12539 int res1 = 0 ;
12540 bool temp2 = false ;
12541 PyObject * obj0 = 0 ;
12542 PyObject * obj1 = 0 ;
12543 char * kwnames[] = {
12544 (char *) "self",(char *) "text", NULL
12545 };
12546
12547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail;
12548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12549 if (!SWIG_IsOK(res1)) {
12550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_WriteText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12551 }
12552 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12553 {
12554 arg2 = wxString_in_helper(obj1);
12555 if (arg2 == NULL) SWIG_fail;
12556 temp2 = true;
12557 }
12558 {
12559 PyThreadState* __tstate = wxPyBeginAllowThreads();
12560 (arg1)->WriteText((wxString const &)*arg2);
12561 wxPyEndAllowThreads(__tstate);
12562 if (PyErr_Occurred()) SWIG_fail;
12563 }
12564 resultobj = SWIG_Py_Void();
12565 {
12566 if (temp2)
12567 delete arg2;
12568 }
12569 return resultobj;
12570 fail:
12571 {
12572 if (temp2)
12573 delete arg2;
12574 }
12575 return NULL;
12576 }
12577
12578
12579 SWIGINTERN PyObject *_wrap_TextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12580 PyObject *resultobj = 0;
12581 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12582 wxString *arg2 = 0 ;
12583 void *argp1 = 0 ;
12584 int res1 = 0 ;
12585 bool temp2 = false ;
12586 PyObject * obj0 = 0 ;
12587 PyObject * obj1 = 0 ;
12588 char * kwnames[] = {
12589 (char *) "self",(char *) "text", NULL
12590 };
12591
12592 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail;
12593 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12594 if (!SWIG_IsOK(res1)) {
12595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_AppendText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12596 }
12597 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12598 {
12599 arg2 = wxString_in_helper(obj1);
12600 if (arg2 == NULL) SWIG_fail;
12601 temp2 = true;
12602 }
12603 {
12604 PyThreadState* __tstate = wxPyBeginAllowThreads();
12605 (arg1)->AppendText((wxString const &)*arg2);
12606 wxPyEndAllowThreads(__tstate);
12607 if (PyErr_Occurred()) SWIG_fail;
12608 }
12609 resultobj = SWIG_Py_Void();
12610 {
12611 if (temp2)
12612 delete arg2;
12613 }
12614 return resultobj;
12615 fail:
12616 {
12617 if (temp2)
12618 delete arg2;
12619 }
12620 return NULL;
12621 }
12622
12623
12624 SWIGINTERN PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12625 PyObject *resultobj = 0;
12626 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12627 wxKeyEvent *arg2 = 0 ;
12628 bool result;
12629 void *argp1 = 0 ;
12630 int res1 = 0 ;
12631 void *argp2 = 0 ;
12632 int res2 = 0 ;
12633 PyObject * obj0 = 0 ;
12634 PyObject * obj1 = 0 ;
12635 char * kwnames[] = {
12636 (char *) "self",(char *) "event", NULL
12637 };
12638
12639 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) SWIG_fail;
12640 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12641 if (!SWIG_IsOK(res1)) {
12642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12643 }
12644 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12645 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
12646 if (!SWIG_IsOK(res2)) {
12647 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12648 }
12649 if (!argp2) {
12650 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12651 }
12652 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
12653 {
12654 PyThreadState* __tstate = wxPyBeginAllowThreads();
12655 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
12656 wxPyEndAllowThreads(__tstate);
12657 if (PyErr_Occurred()) SWIG_fail;
12658 }
12659 {
12660 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12661 }
12662 return resultobj;
12663 fail:
12664 return NULL;
12665 }
12666
12667
12668 SWIGINTERN PyObject *_wrap_TextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12669 PyObject *resultobj = 0;
12670 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12671 long arg2 ;
12672 long arg3 ;
12673 wxTextAttr *arg4 = 0 ;
12674 bool result;
12675 void *argp1 = 0 ;
12676 int res1 = 0 ;
12677 long val2 ;
12678 int ecode2 = 0 ;
12679 long val3 ;
12680 int ecode3 = 0 ;
12681 void *argp4 = 0 ;
12682 int res4 = 0 ;
12683 PyObject * obj0 = 0 ;
12684 PyObject * obj1 = 0 ;
12685 PyObject * obj2 = 0 ;
12686 PyObject * obj3 = 0 ;
12687 char * kwnames[] = {
12688 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
12689 };
12690
12691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12693 if (!SWIG_IsOK(res1)) {
12694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12695 }
12696 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12697 ecode2 = SWIG_AsVal_long(obj1, &val2);
12698 if (!SWIG_IsOK(ecode2)) {
12699 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetStyle" "', expected argument " "2"" of type '" "long""'");
12700 }
12701 arg2 = static_cast< long >(val2);
12702 ecode3 = SWIG_AsVal_long(obj2, &val3);
12703 if (!SWIG_IsOK(ecode3)) {
12704 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetStyle" "', expected argument " "3"" of type '" "long""'");
12705 }
12706 arg3 = static_cast< long >(val3);
12707 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxTextAttr, 0 | 0);
12708 if (!SWIG_IsOK(res4)) {
12709 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12710 }
12711 if (!argp4) {
12712 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12713 }
12714 arg4 = reinterpret_cast< wxTextAttr * >(argp4);
12715 {
12716 PyThreadState* __tstate = wxPyBeginAllowThreads();
12717 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
12718 wxPyEndAllowThreads(__tstate);
12719 if (PyErr_Occurred()) SWIG_fail;
12720 }
12721 {
12722 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12723 }
12724 return resultobj;
12725 fail:
12726 return NULL;
12727 }
12728
12729
12730 SWIGINTERN PyObject *_wrap_TextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12731 PyObject *resultobj = 0;
12732 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12733 long arg2 ;
12734 wxTextAttr *arg3 = 0 ;
12735 bool result;
12736 void *argp1 = 0 ;
12737 int res1 = 0 ;
12738 long val2 ;
12739 int ecode2 = 0 ;
12740 void *argp3 = 0 ;
12741 int res3 = 0 ;
12742 PyObject * obj0 = 0 ;
12743 PyObject * obj1 = 0 ;
12744 PyObject * obj2 = 0 ;
12745 char * kwnames[] = {
12746 (char *) "self",(char *) "position",(char *) "style", NULL
12747 };
12748
12749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12751 if (!SWIG_IsOK(res1)) {
12752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12753 }
12754 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12755 ecode2 = SWIG_AsVal_long(obj1, &val2);
12756 if (!SWIG_IsOK(ecode2)) {
12757 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'");
12758 }
12759 arg2 = static_cast< long >(val2);
12760 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTextAttr, 0 );
12761 if (!SWIG_IsOK(res3)) {
12762 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12763 }
12764 if (!argp3) {
12765 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12766 }
12767 arg3 = reinterpret_cast< wxTextAttr * >(argp3);
12768 {
12769 PyThreadState* __tstate = wxPyBeginAllowThreads();
12770 result = (bool)(arg1)->GetStyle(arg2,*arg3);
12771 wxPyEndAllowThreads(__tstate);
12772 if (PyErr_Occurred()) SWIG_fail;
12773 }
12774 {
12775 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12776 }
12777 return resultobj;
12778 fail:
12779 return NULL;
12780 }
12781
12782
12783 SWIGINTERN PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12784 PyObject *resultobj = 0;
12785 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12786 wxTextAttr *arg2 = 0 ;
12787 bool result;
12788 void *argp1 = 0 ;
12789 int res1 = 0 ;
12790 void *argp2 = 0 ;
12791 int res2 = 0 ;
12792 PyObject * obj0 = 0 ;
12793 PyObject * obj1 = 0 ;
12794 char * kwnames[] = {
12795 (char *) "self",(char *) "style", NULL
12796 };
12797
12798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12800 if (!SWIG_IsOK(res1)) {
12801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12802 }
12803 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12804 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
12805 if (!SWIG_IsOK(res2)) {
12806 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12807 }
12808 if (!argp2) {
12809 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12810 }
12811 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
12812 {
12813 PyThreadState* __tstate = wxPyBeginAllowThreads();
12814 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
12815 wxPyEndAllowThreads(__tstate);
12816 if (PyErr_Occurred()) SWIG_fail;
12817 }
12818 {
12819 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12820 }
12821 return resultobj;
12822 fail:
12823 return NULL;
12824 }
12825
12826
12827 SWIGINTERN PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12828 PyObject *resultobj = 0;
12829 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12830 wxTextAttr *result = 0 ;
12831 void *argp1 = 0 ;
12832 int res1 = 0 ;
12833 PyObject *swig_obj[1] ;
12834
12835 if (!args) SWIG_fail;
12836 swig_obj[0] = args;
12837 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12838 if (!SWIG_IsOK(res1)) {
12839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12840 }
12841 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12842 {
12843 PyThreadState* __tstate = wxPyBeginAllowThreads();
12844 {
12845 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
12846 result = (wxTextAttr *) &_result_ref;
12847 }
12848 wxPyEndAllowThreads(__tstate);
12849 if (PyErr_Occurred()) SWIG_fail;
12850 }
12851 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, 0 | 0 );
12852 return resultobj;
12853 fail:
12854 return NULL;
12855 }
12856
12857
12858 SWIGINTERN PyObject *_wrap_TextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12859 PyObject *resultobj = 0;
12860 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12861 long arg2 ;
12862 long arg3 ;
12863 long result;
12864 void *argp1 = 0 ;
12865 int res1 = 0 ;
12866 long val2 ;
12867 int ecode2 = 0 ;
12868 long val3 ;
12869 int ecode3 = 0 ;
12870 PyObject * obj0 = 0 ;
12871 PyObject * obj1 = 0 ;
12872 PyObject * obj2 = 0 ;
12873 char * kwnames[] = {
12874 (char *) "self",(char *) "x",(char *) "y", NULL
12875 };
12876
12877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12879 if (!SWIG_IsOK(res1)) {
12880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12881 }
12882 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12883 ecode2 = SWIG_AsVal_long(obj1, &val2);
12884 if (!SWIG_IsOK(ecode2)) {
12885 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'");
12886 }
12887 arg2 = static_cast< long >(val2);
12888 ecode3 = SWIG_AsVal_long(obj2, &val3);
12889 if (!SWIG_IsOK(ecode3)) {
12890 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'");
12891 }
12892 arg3 = static_cast< long >(val3);
12893 {
12894 PyThreadState* __tstate = wxPyBeginAllowThreads();
12895 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
12896 wxPyEndAllowThreads(__tstate);
12897 if (PyErr_Occurred()) SWIG_fail;
12898 }
12899 resultobj = SWIG_From_long(static_cast< long >(result));
12900 return resultobj;
12901 fail:
12902 return NULL;
12903 }
12904
12905
12906 SWIGINTERN PyObject *_wrap_TextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12907 PyObject *resultobj = 0;
12908 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12909 long arg2 ;
12910 long *arg3 = (long *) 0 ;
12911 long *arg4 = (long *) 0 ;
12912 void *argp1 = 0 ;
12913 int res1 = 0 ;
12914 long val2 ;
12915 int ecode2 = 0 ;
12916 long temp3 ;
12917 int res3 = SWIG_TMPOBJ ;
12918 long temp4 ;
12919 int res4 = SWIG_TMPOBJ ;
12920 PyObject * obj0 = 0 ;
12921 PyObject * obj1 = 0 ;
12922 char * kwnames[] = {
12923 (char *) "self",(char *) "pos", NULL
12924 };
12925
12926 arg3 = &temp3;
12927 arg4 = &temp4;
12928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail;
12929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12930 if (!SWIG_IsOK(res1)) {
12931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12932 }
12933 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12934 ecode2 = SWIG_AsVal_long(obj1, &val2);
12935 if (!SWIG_IsOK(ecode2)) {
12936 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'");
12937 }
12938 arg2 = static_cast< long >(val2);
12939 {
12940 PyThreadState* __tstate = wxPyBeginAllowThreads();
12941 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
12942 wxPyEndAllowThreads(__tstate);
12943 if (PyErr_Occurred()) SWIG_fail;
12944 }
12945 resultobj = SWIG_Py_Void();
12946 if (SWIG_IsTmpObj(res3)) {
12947 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
12948 } else {
12949 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12950 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
12951 }
12952 if (SWIG_IsTmpObj(res4)) {
12953 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
12954 } else {
12955 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12956 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
12957 }
12958 return resultobj;
12959 fail:
12960 return NULL;
12961 }
12962
12963
12964 SWIGINTERN PyObject *_wrap_TextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12965 PyObject *resultobj = 0;
12966 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12967 long arg2 ;
12968 void *argp1 = 0 ;
12969 int res1 = 0 ;
12970 long val2 ;
12971 int ecode2 = 0 ;
12972 PyObject * obj0 = 0 ;
12973 PyObject * obj1 = 0 ;
12974 char * kwnames[] = {
12975 (char *) "self",(char *) "pos", NULL
12976 };
12977
12978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail;
12979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12980 if (!SWIG_IsOK(res1)) {
12981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12982 }
12983 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12984 ecode2 = SWIG_AsVal_long(obj1, &val2);
12985 if (!SWIG_IsOK(ecode2)) {
12986 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'");
12987 }
12988 arg2 = static_cast< long >(val2);
12989 {
12990 PyThreadState* __tstate = wxPyBeginAllowThreads();
12991 (arg1)->ShowPosition(arg2);
12992 wxPyEndAllowThreads(__tstate);
12993 if (PyErr_Occurred()) SWIG_fail;
12994 }
12995 resultobj = SWIG_Py_Void();
12996 return resultobj;
12997 fail:
12998 return NULL;
12999 }
13000
13001
13002 SWIGINTERN PyObject *_wrap_TextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13003 PyObject *resultobj = 0;
13004 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13005 wxPoint *arg2 = 0 ;
13006 long *arg3 = (long *) 0 ;
13007 long *arg4 = (long *) 0 ;
13008 wxTextCtrlHitTestResult result;
13009 void *argp1 = 0 ;
13010 int res1 = 0 ;
13011 wxPoint temp2 ;
13012 long temp3 ;
13013 int res3 = SWIG_TMPOBJ ;
13014 long temp4 ;
13015 int res4 = SWIG_TMPOBJ ;
13016 PyObject * obj0 = 0 ;
13017 PyObject * obj1 = 0 ;
13018 char * kwnames[] = {
13019 (char *) "self",(char *) "pt", NULL
13020 };
13021
13022 arg3 = &temp3;
13023 arg4 = &temp4;
13024 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
13025 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13026 if (!SWIG_IsOK(res1)) {
13027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTest" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13028 }
13029 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13030 {
13031 arg2 = &temp2;
13032 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13033 }
13034 {
13035 PyThreadState* __tstate = wxPyBeginAllowThreads();
13036 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
13037 wxPyEndAllowThreads(__tstate);
13038 if (PyErr_Occurred()) SWIG_fail;
13039 }
13040 resultobj = SWIG_From_int(static_cast< int >(result));
13041 if (SWIG_IsTmpObj(res3)) {
13042 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13043 } else {
13044 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13045 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13046 }
13047 if (SWIG_IsTmpObj(res4)) {
13048 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13049 } else {
13050 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13051 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13052 }
13053 return resultobj;
13054 fail:
13055 return NULL;
13056 }
13057
13058
13059 SWIGINTERN PyObject *_wrap_TextCtrl_HitTestPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13060 PyObject *resultobj = 0;
13061 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13062 wxPoint *arg2 = 0 ;
13063 long *arg3 = (long *) 0 ;
13064 wxTextCtrlHitTestResult result;
13065 void *argp1 = 0 ;
13066 int res1 = 0 ;
13067 wxPoint temp2 ;
13068 long temp3 ;
13069 int res3 = SWIG_TMPOBJ ;
13070 PyObject * obj0 = 0 ;
13071 PyObject * obj1 = 0 ;
13072 char * kwnames[] = {
13073 (char *) "self",(char *) "pt", NULL
13074 };
13075
13076 arg3 = &temp3;
13077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) SWIG_fail;
13078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13079 if (!SWIG_IsOK(res1)) {
13080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTestPos" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13081 }
13082 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13083 {
13084 arg2 = &temp2;
13085 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13086 }
13087 {
13088 PyThreadState* __tstate = wxPyBeginAllowThreads();
13089 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
13090 wxPyEndAllowThreads(__tstate);
13091 if (PyErr_Occurred()) SWIG_fail;
13092 }
13093 resultobj = SWIG_From_int(static_cast< int >(result));
13094 if (SWIG_IsTmpObj(res3)) {
13095 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13096 } else {
13097 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13098 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13099 }
13100 return resultobj;
13101 fail:
13102 return NULL;
13103 }
13104
13105
13106 SWIGINTERN PyObject *_wrap_TextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13107 PyObject *resultobj = 0;
13108 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13109 void *argp1 = 0 ;
13110 int res1 = 0 ;
13111 PyObject *swig_obj[1] ;
13112
13113 if (!args) SWIG_fail;
13114 swig_obj[0] = args;
13115 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13116 if (!SWIG_IsOK(res1)) {
13117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Copy" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13118 }
13119 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13120 {
13121 PyThreadState* __tstate = wxPyBeginAllowThreads();
13122 (arg1)->Copy();
13123 wxPyEndAllowThreads(__tstate);
13124 if (PyErr_Occurred()) SWIG_fail;
13125 }
13126 resultobj = SWIG_Py_Void();
13127 return resultobj;
13128 fail:
13129 return NULL;
13130 }
13131
13132
13133 SWIGINTERN PyObject *_wrap_TextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13134 PyObject *resultobj = 0;
13135 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13136 void *argp1 = 0 ;
13137 int res1 = 0 ;
13138 PyObject *swig_obj[1] ;
13139
13140 if (!args) SWIG_fail;
13141 swig_obj[0] = args;
13142 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13143 if (!SWIG_IsOK(res1)) {
13144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Cut" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13145 }
13146 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13147 {
13148 PyThreadState* __tstate = wxPyBeginAllowThreads();
13149 (arg1)->Cut();
13150 wxPyEndAllowThreads(__tstate);
13151 if (PyErr_Occurred()) SWIG_fail;
13152 }
13153 resultobj = SWIG_Py_Void();
13154 return resultobj;
13155 fail:
13156 return NULL;
13157 }
13158
13159
13160 SWIGINTERN PyObject *_wrap_TextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13161 PyObject *resultobj = 0;
13162 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13163 void *argp1 = 0 ;
13164 int res1 = 0 ;
13165 PyObject *swig_obj[1] ;
13166
13167 if (!args) SWIG_fail;
13168 swig_obj[0] = args;
13169 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13170 if (!SWIG_IsOK(res1)) {
13171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Paste" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13172 }
13173 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13174 {
13175 PyThreadState* __tstate = wxPyBeginAllowThreads();
13176 (arg1)->Paste();
13177 wxPyEndAllowThreads(__tstate);
13178 if (PyErr_Occurred()) SWIG_fail;
13179 }
13180 resultobj = SWIG_Py_Void();
13181 return resultobj;
13182 fail:
13183 return NULL;
13184 }
13185
13186
13187 SWIGINTERN PyObject *_wrap_TextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13188 PyObject *resultobj = 0;
13189 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13190 bool result;
13191 void *argp1 = 0 ;
13192 int res1 = 0 ;
13193 PyObject *swig_obj[1] ;
13194
13195 if (!args) SWIG_fail;
13196 swig_obj[0] = args;
13197 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13198 if (!SWIG_IsOK(res1)) {
13199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13200 }
13201 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13202 {
13203 PyThreadState* __tstate = wxPyBeginAllowThreads();
13204 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
13205 wxPyEndAllowThreads(__tstate);
13206 if (PyErr_Occurred()) SWIG_fail;
13207 }
13208 {
13209 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13210 }
13211 return resultobj;
13212 fail:
13213 return NULL;
13214 }
13215
13216
13217 SWIGINTERN PyObject *_wrap_TextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13218 PyObject *resultobj = 0;
13219 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13220 bool result;
13221 void *argp1 = 0 ;
13222 int res1 = 0 ;
13223 PyObject *swig_obj[1] ;
13224
13225 if (!args) SWIG_fail;
13226 swig_obj[0] = args;
13227 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13228 if (!SWIG_IsOK(res1)) {
13229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCut" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13230 }
13231 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13232 {
13233 PyThreadState* __tstate = wxPyBeginAllowThreads();
13234 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
13235 wxPyEndAllowThreads(__tstate);
13236 if (PyErr_Occurred()) SWIG_fail;
13237 }
13238 {
13239 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13240 }
13241 return resultobj;
13242 fail:
13243 return NULL;
13244 }
13245
13246
13247 SWIGINTERN PyObject *_wrap_TextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13248 PyObject *resultobj = 0;
13249 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13250 bool result;
13251 void *argp1 = 0 ;
13252 int res1 = 0 ;
13253 PyObject *swig_obj[1] ;
13254
13255 if (!args) SWIG_fail;
13256 swig_obj[0] = args;
13257 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13258 if (!SWIG_IsOK(res1)) {
13259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13260 }
13261 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13262 {
13263 PyThreadState* __tstate = wxPyBeginAllowThreads();
13264 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
13265 wxPyEndAllowThreads(__tstate);
13266 if (PyErr_Occurred()) SWIG_fail;
13267 }
13268 {
13269 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13270 }
13271 return resultobj;
13272 fail:
13273 return NULL;
13274 }
13275
13276
13277 SWIGINTERN PyObject *_wrap_TextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13278 PyObject *resultobj = 0;
13279 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13280 void *argp1 = 0 ;
13281 int res1 = 0 ;
13282 PyObject *swig_obj[1] ;
13283
13284 if (!args) SWIG_fail;
13285 swig_obj[0] = args;
13286 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13287 if (!SWIG_IsOK(res1)) {
13288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Undo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13289 }
13290 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13291 {
13292 PyThreadState* __tstate = wxPyBeginAllowThreads();
13293 (arg1)->Undo();
13294 wxPyEndAllowThreads(__tstate);
13295 if (PyErr_Occurred()) SWIG_fail;
13296 }
13297 resultobj = SWIG_Py_Void();
13298 return resultobj;
13299 fail:
13300 return NULL;
13301 }
13302
13303
13304 SWIGINTERN PyObject *_wrap_TextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13305 PyObject *resultobj = 0;
13306 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13307 void *argp1 = 0 ;
13308 int res1 = 0 ;
13309 PyObject *swig_obj[1] ;
13310
13311 if (!args) SWIG_fail;
13312 swig_obj[0] = args;
13313 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13314 if (!SWIG_IsOK(res1)) {
13315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Redo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13316 }
13317 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13318 {
13319 PyThreadState* __tstate = wxPyBeginAllowThreads();
13320 (arg1)->Redo();
13321 wxPyEndAllowThreads(__tstate);
13322 if (PyErr_Occurred()) SWIG_fail;
13323 }
13324 resultobj = SWIG_Py_Void();
13325 return resultobj;
13326 fail:
13327 return NULL;
13328 }
13329
13330
13331 SWIGINTERN PyObject *_wrap_TextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13332 PyObject *resultobj = 0;
13333 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13334 bool result;
13335 void *argp1 = 0 ;
13336 int res1 = 0 ;
13337 PyObject *swig_obj[1] ;
13338
13339 if (!args) SWIG_fail;
13340 swig_obj[0] = args;
13341 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13342 if (!SWIG_IsOK(res1)) {
13343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13344 }
13345 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13346 {
13347 PyThreadState* __tstate = wxPyBeginAllowThreads();
13348 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
13349 wxPyEndAllowThreads(__tstate);
13350 if (PyErr_Occurred()) SWIG_fail;
13351 }
13352 {
13353 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13354 }
13355 return resultobj;
13356 fail:
13357 return NULL;
13358 }
13359
13360
13361 SWIGINTERN PyObject *_wrap_TextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13362 PyObject *resultobj = 0;
13363 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13364 bool result;
13365 void *argp1 = 0 ;
13366 int res1 = 0 ;
13367 PyObject *swig_obj[1] ;
13368
13369 if (!args) SWIG_fail;
13370 swig_obj[0] = args;
13371 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13372 if (!SWIG_IsOK(res1)) {
13373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13374 }
13375 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13376 {
13377 PyThreadState* __tstate = wxPyBeginAllowThreads();
13378 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
13379 wxPyEndAllowThreads(__tstate);
13380 if (PyErr_Occurred()) SWIG_fail;
13381 }
13382 {
13383 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13384 }
13385 return resultobj;
13386 fail:
13387 return NULL;
13388 }
13389
13390
13391 SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13392 PyObject *resultobj = 0;
13393 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13394 long arg2 ;
13395 void *argp1 = 0 ;
13396 int res1 = 0 ;
13397 long val2 ;
13398 int ecode2 = 0 ;
13399 PyObject * obj0 = 0 ;
13400 PyObject * obj1 = 0 ;
13401 char * kwnames[] = {
13402 (char *) "self",(char *) "pos", NULL
13403 };
13404
13405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
13406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13407 if (!SWIG_IsOK(res1)) {
13408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13409 }
13410 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13411 ecode2 = SWIG_AsVal_long(obj1, &val2);
13412 if (!SWIG_IsOK(ecode2)) {
13413 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
13414 }
13415 arg2 = static_cast< long >(val2);
13416 {
13417 PyThreadState* __tstate = wxPyBeginAllowThreads();
13418 (arg1)->SetInsertionPoint(arg2);
13419 wxPyEndAllowThreads(__tstate);
13420 if (PyErr_Occurred()) SWIG_fail;
13421 }
13422 resultobj = SWIG_Py_Void();
13423 return resultobj;
13424 fail:
13425 return NULL;
13426 }
13427
13428
13429 SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13430 PyObject *resultobj = 0;
13431 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13432 void *argp1 = 0 ;
13433 int res1 = 0 ;
13434 PyObject *swig_obj[1] ;
13435
13436 if (!args) SWIG_fail;
13437 swig_obj[0] = args;
13438 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13439 if (!SWIG_IsOK(res1)) {
13440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13441 }
13442 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13443 {
13444 PyThreadState* __tstate = wxPyBeginAllowThreads();
13445 (arg1)->SetInsertionPointEnd();
13446 wxPyEndAllowThreads(__tstate);
13447 if (PyErr_Occurred()) SWIG_fail;
13448 }
13449 resultobj = SWIG_Py_Void();
13450 return resultobj;
13451 fail:
13452 return NULL;
13453 }
13454
13455
13456 SWIGINTERN PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13457 PyObject *resultobj = 0;
13458 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13459 long result;
13460 void *argp1 = 0 ;
13461 int res1 = 0 ;
13462 PyObject *swig_obj[1] ;
13463
13464 if (!args) SWIG_fail;
13465 swig_obj[0] = args;
13466 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13467 if (!SWIG_IsOK(res1)) {
13468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13469 }
13470 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13471 {
13472 PyThreadState* __tstate = wxPyBeginAllowThreads();
13473 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
13474 wxPyEndAllowThreads(__tstate);
13475 if (PyErr_Occurred()) SWIG_fail;
13476 }
13477 resultobj = SWIG_From_long(static_cast< long >(result));
13478 return resultobj;
13479 fail:
13480 return NULL;
13481 }
13482
13483
13484 SWIGINTERN PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13485 PyObject *resultobj = 0;
13486 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13487 long result;
13488 void *argp1 = 0 ;
13489 int res1 = 0 ;
13490 PyObject *swig_obj[1] ;
13491
13492 if (!args) SWIG_fail;
13493 swig_obj[0] = args;
13494 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13495 if (!SWIG_IsOK(res1)) {
13496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13497 }
13498 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13499 {
13500 PyThreadState* __tstate = wxPyBeginAllowThreads();
13501 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
13502 wxPyEndAllowThreads(__tstate);
13503 if (PyErr_Occurred()) SWIG_fail;
13504 }
13505 resultobj = SWIG_From_long(static_cast< long >(result));
13506 return resultobj;
13507 fail:
13508 return NULL;
13509 }
13510
13511
13512 SWIGINTERN PyObject *_wrap_TextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13513 PyObject *resultobj = 0;
13514 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13515 long arg2 ;
13516 long arg3 ;
13517 void *argp1 = 0 ;
13518 int res1 = 0 ;
13519 long val2 ;
13520 int ecode2 = 0 ;
13521 long val3 ;
13522 int ecode3 = 0 ;
13523 PyObject * obj0 = 0 ;
13524 PyObject * obj1 = 0 ;
13525 PyObject * obj2 = 0 ;
13526 char * kwnames[] = {
13527 (char *) "self",(char *) "from",(char *) "to", NULL
13528 };
13529
13530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13532 if (!SWIG_IsOK(res1)) {
13533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13534 }
13535 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13536 ecode2 = SWIG_AsVal_long(obj1, &val2);
13537 if (!SWIG_IsOK(ecode2)) {
13538 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
13539 }
13540 arg2 = static_cast< long >(val2);
13541 ecode3 = SWIG_AsVal_long(obj2, &val3);
13542 if (!SWIG_IsOK(ecode3)) {
13543 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
13544 }
13545 arg3 = static_cast< long >(val3);
13546 {
13547 PyThreadState* __tstate = wxPyBeginAllowThreads();
13548 (arg1)->SetSelection(arg2,arg3);
13549 wxPyEndAllowThreads(__tstate);
13550 if (PyErr_Occurred()) SWIG_fail;
13551 }
13552 resultobj = SWIG_Py_Void();
13553 return resultobj;
13554 fail:
13555 return NULL;
13556 }
13557
13558
13559 SWIGINTERN PyObject *_wrap_TextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13560 PyObject *resultobj = 0;
13561 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13562 void *argp1 = 0 ;
13563 int res1 = 0 ;
13564 PyObject *swig_obj[1] ;
13565
13566 if (!args) SWIG_fail;
13567 swig_obj[0] = args;
13568 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13569 if (!SWIG_IsOK(res1)) {
13570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13571 }
13572 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13573 {
13574 PyThreadState* __tstate = wxPyBeginAllowThreads();
13575 (arg1)->SelectAll();
13576 wxPyEndAllowThreads(__tstate);
13577 if (PyErr_Occurred()) SWIG_fail;
13578 }
13579 resultobj = SWIG_Py_Void();
13580 return resultobj;
13581 fail:
13582 return NULL;
13583 }
13584
13585
13586 SWIGINTERN PyObject *_wrap_TextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13587 PyObject *resultobj = 0;
13588 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13589 bool arg2 ;
13590 void *argp1 = 0 ;
13591 int res1 = 0 ;
13592 bool val2 ;
13593 int ecode2 = 0 ;
13594 PyObject * obj0 = 0 ;
13595 PyObject * obj1 = 0 ;
13596 char * kwnames[] = {
13597 (char *) "self",(char *) "editable", NULL
13598 };
13599
13600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
13601 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13602 if (!SWIG_IsOK(res1)) {
13603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13604 }
13605 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13606 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13607 if (!SWIG_IsOK(ecode2)) {
13608 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'");
13609 }
13610 arg2 = static_cast< bool >(val2);
13611 {
13612 PyThreadState* __tstate = wxPyBeginAllowThreads();
13613 (arg1)->SetEditable(arg2);
13614 wxPyEndAllowThreads(__tstate);
13615 if (PyErr_Occurred()) SWIG_fail;
13616 }
13617 resultobj = SWIG_Py_Void();
13618 return resultobj;
13619 fail:
13620 return NULL;
13621 }
13622
13623
13624 SWIGINTERN PyObject *_wrap_TextCtrl_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13625 PyObject *resultobj = 0;
13626 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13627 wxString *arg2 = 0 ;
13628 void *argp1 = 0 ;
13629 int res1 = 0 ;
13630 bool temp2 = false ;
13631 PyObject * obj0 = 0 ;
13632 PyObject * obj1 = 0 ;
13633 char * kwnames[] = {
13634 (char *) "self",(char *) "text", NULL
13635 };
13636
13637 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) SWIG_fail;
13638 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13639 if (!SWIG_IsOK(res1)) {
13640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_write" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13641 }
13642 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13643 {
13644 arg2 = wxString_in_helper(obj1);
13645 if (arg2 == NULL) SWIG_fail;
13646 temp2 = true;
13647 }
13648 {
13649 PyThreadState* __tstate = wxPyBeginAllowThreads();
13650 wxTextCtrl_write(arg1,(wxString const &)*arg2);
13651 wxPyEndAllowThreads(__tstate);
13652 if (PyErr_Occurred()) SWIG_fail;
13653 }
13654 resultobj = SWIG_Py_Void();
13655 {
13656 if (temp2)
13657 delete arg2;
13658 }
13659 return resultobj;
13660 fail:
13661 {
13662 if (temp2)
13663 delete arg2;
13664 }
13665 return NULL;
13666 }
13667
13668
13669 SWIGINTERN PyObject *_wrap_TextCtrl_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13670 PyObject *resultobj = 0;
13671 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13672 long arg2 ;
13673 long arg3 ;
13674 wxString result;
13675 void *argp1 = 0 ;
13676 int res1 = 0 ;
13677 long val2 ;
13678 int ecode2 = 0 ;
13679 long val3 ;
13680 int ecode3 = 0 ;
13681 PyObject * obj0 = 0 ;
13682 PyObject * obj1 = 0 ;
13683 PyObject * obj2 = 0 ;
13684 char * kwnames[] = {
13685 (char *) "self",(char *) "from",(char *) "to", NULL
13686 };
13687
13688 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13689 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13690 if (!SWIG_IsOK(res1)) {
13691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetString" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13692 }
13693 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13694 ecode2 = SWIG_AsVal_long(obj1, &val2);
13695 if (!SWIG_IsOK(ecode2)) {
13696 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetString" "', expected argument " "2"" of type '" "long""'");
13697 }
13698 arg2 = static_cast< long >(val2);
13699 ecode3 = SWIG_AsVal_long(obj2, &val3);
13700 if (!SWIG_IsOK(ecode3)) {
13701 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetString" "', expected argument " "3"" of type '" "long""'");
13702 }
13703 arg3 = static_cast< long >(val3);
13704 {
13705 PyThreadState* __tstate = wxPyBeginAllowThreads();
13706 result = wxTextCtrl_GetString(arg1,arg2,arg3);
13707 wxPyEndAllowThreads(__tstate);
13708 if (PyErr_Occurred()) SWIG_fail;
13709 }
13710 {
13711 #if wxUSE_UNICODE
13712 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13713 #else
13714 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13715 #endif
13716 }
13717 return resultobj;
13718 fail:
13719 return NULL;
13720 }
13721
13722
13723 SWIGINTERN PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13724 PyObject *resultobj = 0;
13725 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
13726 SwigValueWrapper<wxVisualAttributes > result;
13727 int val1 ;
13728 int ecode1 = 0 ;
13729 PyObject * obj0 = 0 ;
13730 char * kwnames[] = {
13731 (char *) "variant", NULL
13732 };
13733
13734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
13735 if (obj0) {
13736 ecode1 = SWIG_AsVal_int(obj0, &val1);
13737 if (!SWIG_IsOK(ecode1)) {
13738 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TextCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
13739 }
13740 arg1 = static_cast< wxWindowVariant >(val1);
13741 }
13742 {
13743 if (!wxPyCheckForApp()) SWIG_fail;
13744 PyThreadState* __tstate = wxPyBeginAllowThreads();
13745 result = wxTextCtrl::GetClassDefaultAttributes(arg1);
13746 wxPyEndAllowThreads(__tstate);
13747 if (PyErr_Occurred()) SWIG_fail;
13748 }
13749 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
13750 return resultobj;
13751 fail:
13752 return NULL;
13753 }
13754
13755
13756 SWIGINTERN PyObject *TextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13757 PyObject *obj;
13758 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13759 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextCtrl, SWIG_NewClientData(obj));
13760 return SWIG_Py_Void();
13761 }
13762
13763 SWIGINTERN PyObject *TextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13764 return SWIG_Python_InitShadowInstance(args);
13765 }
13766
13767 SWIGINTERN PyObject *_wrap_new_TextUrlEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13768 PyObject *resultobj = 0;
13769 int arg1 ;
13770 wxMouseEvent *arg2 = 0 ;
13771 long arg3 ;
13772 long arg4 ;
13773 wxTextUrlEvent *result = 0 ;
13774 int val1 ;
13775 int ecode1 = 0 ;
13776 void *argp2 = 0 ;
13777 int res2 = 0 ;
13778 long val3 ;
13779 int ecode3 = 0 ;
13780 long val4 ;
13781 int ecode4 = 0 ;
13782 PyObject * obj0 = 0 ;
13783 PyObject * obj1 = 0 ;
13784 PyObject * obj2 = 0 ;
13785 PyObject * obj3 = 0 ;
13786 char * kwnames[] = {
13787 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
13788 };
13789
13790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13791 ecode1 = SWIG_AsVal_int(obj0, &val1);
13792 if (!SWIG_IsOK(ecode1)) {
13793 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TextUrlEvent" "', expected argument " "1"" of type '" "int""'");
13794 }
13795 arg1 = static_cast< int >(val1);
13796 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxMouseEvent, 0 | 0);
13797 if (!SWIG_IsOK(res2)) {
13798 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
13799 }
13800 if (!argp2) {
13801 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
13802 }
13803 arg2 = reinterpret_cast< wxMouseEvent * >(argp2);
13804 ecode3 = SWIG_AsVal_long(obj2, &val3);
13805 if (!SWIG_IsOK(ecode3)) {
13806 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TextUrlEvent" "', expected argument " "3"" of type '" "long""'");
13807 }
13808 arg3 = static_cast< long >(val3);
13809 ecode4 = SWIG_AsVal_long(obj3, &val4);
13810 if (!SWIG_IsOK(ecode4)) {
13811 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextUrlEvent" "', expected argument " "4"" of type '" "long""'");
13812 }
13813 arg4 = static_cast< long >(val4);
13814 {
13815 PyThreadState* __tstate = wxPyBeginAllowThreads();
13816 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
13817 wxPyEndAllowThreads(__tstate);
13818 if (PyErr_Occurred()) SWIG_fail;
13819 }
13820 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_NEW | 0 );
13821 return resultobj;
13822 fail:
13823 return NULL;
13824 }
13825
13826
13827 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13828 PyObject *resultobj = 0;
13829 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
13830 wxMouseEvent *result = 0 ;
13831 void *argp1 = 0 ;
13832 int res1 = 0 ;
13833 PyObject *swig_obj[1] ;
13834
13835 if (!args) SWIG_fail;
13836 swig_obj[0] = args;
13837 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
13838 if (!SWIG_IsOK(res1)) {
13839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetMouseEvent" "', expected argument " "1"" of type '" "wxTextUrlEvent *""'");
13840 }
13841 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
13842 {
13843 PyThreadState* __tstate = wxPyBeginAllowThreads();
13844 {
13845 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
13846 result = (wxMouseEvent *) &_result_ref;
13847 }
13848 wxPyEndAllowThreads(__tstate);
13849 if (PyErr_Occurred()) SWIG_fail;
13850 }
13851 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseEvent, 0 | 0 );
13852 return resultobj;
13853 fail:
13854 return NULL;
13855 }
13856
13857
13858 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13859 PyObject *resultobj = 0;
13860 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
13861 long result;
13862 void *argp1 = 0 ;
13863 int res1 = 0 ;
13864 PyObject *swig_obj[1] ;
13865
13866 if (!args) SWIG_fail;
13867 swig_obj[0] = args;
13868 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
13869 if (!SWIG_IsOK(res1)) {
13870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLStart" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
13871 }
13872 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
13873 {
13874 PyThreadState* __tstate = wxPyBeginAllowThreads();
13875 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
13876 wxPyEndAllowThreads(__tstate);
13877 if (PyErr_Occurred()) SWIG_fail;
13878 }
13879 resultobj = SWIG_From_long(static_cast< long >(result));
13880 return resultobj;
13881 fail:
13882 return NULL;
13883 }
13884
13885
13886 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13887 PyObject *resultobj = 0;
13888 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
13889 long result;
13890 void *argp1 = 0 ;
13891 int res1 = 0 ;
13892 PyObject *swig_obj[1] ;
13893
13894 if (!args) SWIG_fail;
13895 swig_obj[0] = args;
13896 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
13897 if (!SWIG_IsOK(res1)) {
13898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLEnd" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
13899 }
13900 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
13901 {
13902 PyThreadState* __tstate = wxPyBeginAllowThreads();
13903 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
13904 wxPyEndAllowThreads(__tstate);
13905 if (PyErr_Occurred()) SWIG_fail;
13906 }
13907 resultobj = SWIG_From_long(static_cast< long >(result));
13908 return resultobj;
13909 fail:
13910 return NULL;
13911 }
13912
13913
13914 SWIGINTERN PyObject *TextUrlEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13915 PyObject *obj;
13916 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13917 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextUrlEvent, SWIG_NewClientData(obj));
13918 return SWIG_Py_Void();
13919 }
13920
13921 SWIGINTERN PyObject *TextUrlEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13922 return SWIG_Python_InitShadowInstance(args);
13923 }
13924
13925 SWIGINTERN int ScrollBarNameStr_set(PyObject *) {
13926 SWIG_Error(SWIG_AttributeError,"Variable ScrollBarNameStr is read-only.");
13927 return 1;
13928 }
13929
13930
13931 SWIGINTERN PyObject *ScrollBarNameStr_get(void) {
13932 PyObject *pyobj = 0;
13933
13934 {
13935 #if wxUSE_UNICODE
13936 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
13937 #else
13938 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
13939 #endif
13940 }
13941 return pyobj;
13942 }
13943
13944
13945 SWIGINTERN PyObject *_wrap_new_ScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13946 PyObject *resultobj = 0;
13947 wxWindow *arg1 = (wxWindow *) 0 ;
13948 int arg2 = (int) -1 ;
13949 wxPoint const &arg3_defvalue = wxDefaultPosition ;
13950 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
13951 wxSize const &arg4_defvalue = wxDefaultSize ;
13952 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
13953 long arg5 = (long) wxSB_HORIZONTAL ;
13954 wxValidator const &arg6_defvalue = wxDefaultValidator ;
13955 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
13956 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
13957 wxString *arg7 = (wxString *) &arg7_defvalue ;
13958 wxScrollBar *result = 0 ;
13959 void *argp1 = 0 ;
13960 int res1 = 0 ;
13961 int val2 ;
13962 int ecode2 = 0 ;
13963 wxPoint temp3 ;
13964 wxSize temp4 ;
13965 long val5 ;
13966 int ecode5 = 0 ;
13967 void *argp6 = 0 ;
13968 int res6 = 0 ;
13969 bool temp7 = false ;
13970 PyObject * obj0 = 0 ;
13971 PyObject * obj1 = 0 ;
13972 PyObject * obj2 = 0 ;
13973 PyObject * obj3 = 0 ;
13974 PyObject * obj4 = 0 ;
13975 PyObject * obj5 = 0 ;
13976 PyObject * obj6 = 0 ;
13977 char * kwnames[] = {
13978 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
13979 };
13980
13981 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13982 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
13983 if (!SWIG_IsOK(res1)) {
13984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrollBar" "', expected argument " "1"" of type '" "wxWindow *""'");
13985 }
13986 arg1 = reinterpret_cast< wxWindow * >(argp1);
13987 if (obj1) {
13988 ecode2 = SWIG_AsVal_int(obj1, &val2);
13989 if (!SWIG_IsOK(ecode2)) {
13990 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollBar" "', expected argument " "2"" of type '" "int""'");
13991 }
13992 arg2 = static_cast< int >(val2);
13993 }
13994 if (obj2) {
13995 {
13996 arg3 = &temp3;
13997 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
13998 }
13999 }
14000 if (obj3) {
14001 {
14002 arg4 = &temp4;
14003 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14004 }
14005 }
14006 if (obj4) {
14007 ecode5 = SWIG_AsVal_long(obj4, &val5);
14008 if (!SWIG_IsOK(ecode5)) {
14009 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrollBar" "', expected argument " "5"" of type '" "long""'");
14010 }
14011 arg5 = static_cast< long >(val5);
14012 }
14013 if (obj5) {
14014 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
14015 if (!SWIG_IsOK(res6)) {
14016 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14017 }
14018 if (!argp6) {
14019 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14020 }
14021 arg6 = reinterpret_cast< wxValidator * >(argp6);
14022 }
14023 if (obj6) {
14024 {
14025 arg7 = wxString_in_helper(obj6);
14026 if (arg7 == NULL) SWIG_fail;
14027 temp7 = true;
14028 }
14029 }
14030 {
14031 if (!wxPyCheckForApp()) SWIG_fail;
14032 PyThreadState* __tstate = wxPyBeginAllowThreads();
14033 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
14034 wxPyEndAllowThreads(__tstate);
14035 if (PyErr_Occurred()) SWIG_fail;
14036 }
14037 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_NEW | 0 );
14038 {
14039 if (temp7)
14040 delete arg7;
14041 }
14042 return resultobj;
14043 fail:
14044 {
14045 if (temp7)
14046 delete arg7;
14047 }
14048 return NULL;
14049 }
14050
14051
14052 SWIGINTERN PyObject *_wrap_new_PreScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14053 PyObject *resultobj = 0;
14054 wxScrollBar *result = 0 ;
14055
14056 if (!SWIG_Python_UnpackTuple(args,"new_PreScrollBar",0,0,0)) SWIG_fail;
14057 {
14058 if (!wxPyCheckForApp()) SWIG_fail;
14059 PyThreadState* __tstate = wxPyBeginAllowThreads();
14060 result = (wxScrollBar *)new wxScrollBar();
14061 wxPyEndAllowThreads(__tstate);
14062 if (PyErr_Occurred()) SWIG_fail;
14063 }
14064 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_OWN | 0 );
14065 return resultobj;
14066 fail:
14067 return NULL;
14068 }
14069
14070
14071 SWIGINTERN PyObject *_wrap_ScrollBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14072 PyObject *resultobj = 0;
14073 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14074 wxWindow *arg2 = (wxWindow *) 0 ;
14075 int arg3 = (int) -1 ;
14076 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14077 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14078 wxSize const &arg5_defvalue = wxDefaultSize ;
14079 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14080 long arg6 = (long) wxSB_HORIZONTAL ;
14081 wxValidator const &arg7_defvalue = wxDefaultValidator ;
14082 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
14083 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
14084 wxString *arg8 = (wxString *) &arg8_defvalue ;
14085 bool result;
14086 void *argp1 = 0 ;
14087 int res1 = 0 ;
14088 void *argp2 = 0 ;
14089 int res2 = 0 ;
14090 int val3 ;
14091 int ecode3 = 0 ;
14092 wxPoint temp4 ;
14093 wxSize temp5 ;
14094 long val6 ;
14095 int ecode6 = 0 ;
14096 void *argp7 = 0 ;
14097 int res7 = 0 ;
14098 bool temp8 = false ;
14099 PyObject * obj0 = 0 ;
14100 PyObject * obj1 = 0 ;
14101 PyObject * obj2 = 0 ;
14102 PyObject * obj3 = 0 ;
14103 PyObject * obj4 = 0 ;
14104 PyObject * obj5 = 0 ;
14105 PyObject * obj6 = 0 ;
14106 PyObject * obj7 = 0 ;
14107 char * kwnames[] = {
14108 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14109 };
14110
14111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
14112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14113 if (!SWIG_IsOK(res1)) {
14114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_Create" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14115 }
14116 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14117 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14118 if (!SWIG_IsOK(res2)) {
14119 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrollBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14120 }
14121 arg2 = reinterpret_cast< wxWindow * >(argp2);
14122 if (obj2) {
14123 ecode3 = SWIG_AsVal_int(obj2, &val3);
14124 if (!SWIG_IsOK(ecode3)) {
14125 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrollBar_Create" "', expected argument " "3"" of type '" "int""'");
14126 }
14127 arg3 = static_cast< int >(val3);
14128 }
14129 if (obj3) {
14130 {
14131 arg4 = &temp4;
14132 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14133 }
14134 }
14135 if (obj4) {
14136 {
14137 arg5 = &temp5;
14138 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14139 }
14140 }
14141 if (obj5) {
14142 ecode6 = SWIG_AsVal_long(obj5, &val6);
14143 if (!SWIG_IsOK(ecode6)) {
14144 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrollBar_Create" "', expected argument " "6"" of type '" "long""'");
14145 }
14146 arg6 = static_cast< long >(val6);
14147 }
14148 if (obj6) {
14149 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
14150 if (!SWIG_IsOK(res7)) {
14151 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14152 }
14153 if (!argp7) {
14154 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14155 }
14156 arg7 = reinterpret_cast< wxValidator * >(argp7);
14157 }
14158 if (obj7) {
14159 {
14160 arg8 = wxString_in_helper(obj7);
14161 if (arg8 == NULL) SWIG_fail;
14162 temp8 = true;
14163 }
14164 }
14165 {
14166 PyThreadState* __tstate = wxPyBeginAllowThreads();
14167 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
14168 wxPyEndAllowThreads(__tstate);
14169 if (PyErr_Occurred()) SWIG_fail;
14170 }
14171 {
14172 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14173 }
14174 {
14175 if (temp8)
14176 delete arg8;
14177 }
14178 return resultobj;
14179 fail:
14180 {
14181 if (temp8)
14182 delete arg8;
14183 }
14184 return NULL;
14185 }
14186
14187
14188 SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14189 PyObject *resultobj = 0;
14190 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14191 int result;
14192 void *argp1 = 0 ;
14193 int res1 = 0 ;
14194 PyObject *swig_obj[1] ;
14195
14196 if (!args) SWIG_fail;
14197 swig_obj[0] = args;
14198 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14199 if (!SWIG_IsOK(res1)) {
14200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14201 }
14202 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14203 {
14204 PyThreadState* __tstate = wxPyBeginAllowThreads();
14205 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
14206 wxPyEndAllowThreads(__tstate);
14207 if (PyErr_Occurred()) SWIG_fail;
14208 }
14209 resultobj = SWIG_From_int(static_cast< int >(result));
14210 return resultobj;
14211 fail:
14212 return NULL;
14213 }
14214
14215
14216 SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14217 PyObject *resultobj = 0;
14218 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14219 int result;
14220 void *argp1 = 0 ;
14221 int res1 = 0 ;
14222 PyObject *swig_obj[1] ;
14223
14224 if (!args) SWIG_fail;
14225 swig_obj[0] = args;
14226 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14227 if (!SWIG_IsOK(res1)) {
14228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14229 }
14230 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14231 {
14232 PyThreadState* __tstate = wxPyBeginAllowThreads();
14233 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
14234 wxPyEndAllowThreads(__tstate);
14235 if (PyErr_Occurred()) SWIG_fail;
14236 }
14237 resultobj = SWIG_From_int(static_cast< int >(result));
14238 return resultobj;
14239 fail:
14240 return NULL;
14241 }
14242
14243
14244 SWIGINTERN PyObject *_wrap_ScrollBar_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14245 PyObject *resultobj = 0;
14246 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14247 int result;
14248 void *argp1 = 0 ;
14249 int res1 = 0 ;
14250 PyObject *swig_obj[1] ;
14251
14252 if (!args) SWIG_fail;
14253 swig_obj[0] = args;
14254 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14255 if (!SWIG_IsOK(res1)) {
14256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetPageSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14257 }
14258 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14259 {
14260 PyThreadState* __tstate = wxPyBeginAllowThreads();
14261 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
14262 wxPyEndAllowThreads(__tstate);
14263 if (PyErr_Occurred()) SWIG_fail;
14264 }
14265 resultobj = SWIG_From_int(static_cast< int >(result));
14266 return resultobj;
14267 fail:
14268 return NULL;
14269 }
14270
14271
14272 SWIGINTERN PyObject *_wrap_ScrollBar_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14273 PyObject *resultobj = 0;
14274 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14275 int result;
14276 void *argp1 = 0 ;
14277 int res1 = 0 ;
14278 PyObject *swig_obj[1] ;
14279
14280 if (!args) SWIG_fail;
14281 swig_obj[0] = args;
14282 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14283 if (!SWIG_IsOK(res1)) {
14284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetRange" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14285 }
14286 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14287 {
14288 PyThreadState* __tstate = wxPyBeginAllowThreads();
14289 result = (int)((wxScrollBar const *)arg1)->GetRange();
14290 wxPyEndAllowThreads(__tstate);
14291 if (PyErr_Occurred()) SWIG_fail;
14292 }
14293 resultobj = SWIG_From_int(static_cast< int >(result));
14294 return resultobj;
14295 fail:
14296 return NULL;
14297 }
14298
14299
14300 SWIGINTERN PyObject *_wrap_ScrollBar_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14301 PyObject *resultobj = 0;
14302 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14303 bool result;
14304 void *argp1 = 0 ;
14305 int res1 = 0 ;
14306 PyObject *swig_obj[1] ;
14307
14308 if (!args) SWIG_fail;
14309 swig_obj[0] = args;
14310 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14311 if (!SWIG_IsOK(res1)) {
14312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_IsVertical" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14313 }
14314 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14315 {
14316 PyThreadState* __tstate = wxPyBeginAllowThreads();
14317 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
14318 wxPyEndAllowThreads(__tstate);
14319 if (PyErr_Occurred()) SWIG_fail;
14320 }
14321 {
14322 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14323 }
14324 return resultobj;
14325 fail:
14326 return NULL;
14327 }
14328
14329
14330 SWIGINTERN PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14331 PyObject *resultobj = 0;
14332 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14333 int arg2 ;
14334 void *argp1 = 0 ;
14335 int res1 = 0 ;
14336 int val2 ;
14337 int ecode2 = 0 ;
14338 PyObject * obj0 = 0 ;
14339 PyObject * obj1 = 0 ;
14340 char * kwnames[] = {
14341 (char *) "self",(char *) "viewStart", NULL
14342 };
14343
14344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) SWIG_fail;
14345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14346 if (!SWIG_IsOK(res1)) {
14347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14348 }
14349 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14350 ecode2 = SWIG_AsVal_int(obj1, &val2);
14351 if (!SWIG_IsOK(ecode2)) {
14352 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "2"" of type '" "int""'");
14353 }
14354 arg2 = static_cast< int >(val2);
14355 {
14356 PyThreadState* __tstate = wxPyBeginAllowThreads();
14357 (arg1)->SetThumbPosition(arg2);
14358 wxPyEndAllowThreads(__tstate);
14359 if (PyErr_Occurred()) SWIG_fail;
14360 }
14361 resultobj = SWIG_Py_Void();
14362 return resultobj;
14363 fail:
14364 return NULL;
14365 }
14366
14367
14368 SWIGINTERN PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14369 PyObject *resultobj = 0;
14370 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14371 SwigValueWrapper<wxVisualAttributes > result;
14372 int val1 ;
14373 int ecode1 = 0 ;
14374 PyObject * obj0 = 0 ;
14375 char * kwnames[] = {
14376 (char *) "variant", NULL
14377 };
14378
14379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14380 if (obj0) {
14381 ecode1 = SWIG_AsVal_int(obj0, &val1);
14382 if (!SWIG_IsOK(ecode1)) {
14383 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrollBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14384 }
14385 arg1 = static_cast< wxWindowVariant >(val1);
14386 }
14387 {
14388 if (!wxPyCheckForApp()) SWIG_fail;
14389 PyThreadState* __tstate = wxPyBeginAllowThreads();
14390 result = wxScrollBar::GetClassDefaultAttributes(arg1);
14391 wxPyEndAllowThreads(__tstate);
14392 if (PyErr_Occurred()) SWIG_fail;
14393 }
14394 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14395 return resultobj;
14396 fail:
14397 return NULL;
14398 }
14399
14400
14401 SWIGINTERN PyObject *ScrollBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14402 PyObject *obj;
14403 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14404 SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollBar, SWIG_NewClientData(obj));
14405 return SWIG_Py_Void();
14406 }
14407
14408 SWIGINTERN PyObject *ScrollBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14409 return SWIG_Python_InitShadowInstance(args);
14410 }
14411
14412 SWIGINTERN int SPIN_BUTTON_NAME_set(PyObject *) {
14413 SWIG_Error(SWIG_AttributeError,"Variable SPIN_BUTTON_NAME is read-only.");
14414 return 1;
14415 }
14416
14417
14418 SWIGINTERN PyObject *SPIN_BUTTON_NAME_get(void) {
14419 PyObject *pyobj = 0;
14420
14421 {
14422 #if wxUSE_UNICODE
14423 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14424 #else
14425 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14426 #endif
14427 }
14428 return pyobj;
14429 }
14430
14431
14432 SWIGINTERN int SpinCtrlNameStr_set(PyObject *) {
14433 SWIG_Error(SWIG_AttributeError,"Variable SpinCtrlNameStr is read-only.");
14434 return 1;
14435 }
14436
14437
14438 SWIGINTERN PyObject *SpinCtrlNameStr_get(void) {
14439 PyObject *pyobj = 0;
14440
14441 {
14442 #if wxUSE_UNICODE
14443 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14444 #else
14445 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14446 #endif
14447 }
14448 return pyobj;
14449 }
14450
14451
14452 SWIGINTERN PyObject *_wrap_new_SpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14453 PyObject *resultobj = 0;
14454 wxWindow *arg1 = (wxWindow *) 0 ;
14455 int arg2 = (int) -1 ;
14456 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14457 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14458 wxSize const &arg4_defvalue = wxDefaultSize ;
14459 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14460 long arg5 = (long) wxSP_HORIZONTAL ;
14461 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
14462 wxString *arg6 = (wxString *) &arg6_defvalue ;
14463 wxSpinButton *result = 0 ;
14464 void *argp1 = 0 ;
14465 int res1 = 0 ;
14466 int val2 ;
14467 int ecode2 = 0 ;
14468 wxPoint temp3 ;
14469 wxSize temp4 ;
14470 long val5 ;
14471 int ecode5 = 0 ;
14472 bool temp6 = false ;
14473 PyObject * obj0 = 0 ;
14474 PyObject * obj1 = 0 ;
14475 PyObject * obj2 = 0 ;
14476 PyObject * obj3 = 0 ;
14477 PyObject * obj4 = 0 ;
14478 PyObject * obj5 = 0 ;
14479 char * kwnames[] = {
14480 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14481 };
14482
14483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
14484 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14485 if (!SWIG_IsOK(res1)) {
14486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinButton" "', expected argument " "1"" of type '" "wxWindow *""'");
14487 }
14488 arg1 = reinterpret_cast< wxWindow * >(argp1);
14489 if (obj1) {
14490 ecode2 = SWIG_AsVal_int(obj1, &val2);
14491 if (!SWIG_IsOK(ecode2)) {
14492 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinButton" "', expected argument " "2"" of type '" "int""'");
14493 }
14494 arg2 = static_cast< int >(val2);
14495 }
14496 if (obj2) {
14497 {
14498 arg3 = &temp3;
14499 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14500 }
14501 }
14502 if (obj3) {
14503 {
14504 arg4 = &temp4;
14505 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14506 }
14507 }
14508 if (obj4) {
14509 ecode5 = SWIG_AsVal_long(obj4, &val5);
14510 if (!SWIG_IsOK(ecode5)) {
14511 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpinButton" "', expected argument " "5"" of type '" "long""'");
14512 }
14513 arg5 = static_cast< long >(val5);
14514 }
14515 if (obj5) {
14516 {
14517 arg6 = wxString_in_helper(obj5);
14518 if (arg6 == NULL) SWIG_fail;
14519 temp6 = true;
14520 }
14521 }
14522 {
14523 if (!wxPyCheckForApp()) SWIG_fail;
14524 PyThreadState* __tstate = wxPyBeginAllowThreads();
14525 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14526 wxPyEndAllowThreads(__tstate);
14527 if (PyErr_Occurred()) SWIG_fail;
14528 }
14529 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_NEW | 0 );
14530 {
14531 if (temp6)
14532 delete arg6;
14533 }
14534 return resultobj;
14535 fail:
14536 {
14537 if (temp6)
14538 delete arg6;
14539 }
14540 return NULL;
14541 }
14542
14543
14544 SWIGINTERN PyObject *_wrap_new_PreSpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14545 PyObject *resultobj = 0;
14546 wxSpinButton *result = 0 ;
14547
14548 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinButton",0,0,0)) SWIG_fail;
14549 {
14550 if (!wxPyCheckForApp()) SWIG_fail;
14551 PyThreadState* __tstate = wxPyBeginAllowThreads();
14552 result = (wxSpinButton *)new wxSpinButton();
14553 wxPyEndAllowThreads(__tstate);
14554 if (PyErr_Occurred()) SWIG_fail;
14555 }
14556 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_OWN | 0 );
14557 return resultobj;
14558 fail:
14559 return NULL;
14560 }
14561
14562
14563 SWIGINTERN PyObject *_wrap_SpinButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14564 PyObject *resultobj = 0;
14565 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14566 wxWindow *arg2 = (wxWindow *) 0 ;
14567 int arg3 = (int) -1 ;
14568 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14569 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14570 wxSize const &arg5_defvalue = wxDefaultSize ;
14571 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14572 long arg6 = (long) wxSP_HORIZONTAL ;
14573 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
14574 wxString *arg7 = (wxString *) &arg7_defvalue ;
14575 bool result;
14576 void *argp1 = 0 ;
14577 int res1 = 0 ;
14578 void *argp2 = 0 ;
14579 int res2 = 0 ;
14580 int val3 ;
14581 int ecode3 = 0 ;
14582 wxPoint temp4 ;
14583 wxSize temp5 ;
14584 long val6 ;
14585 int ecode6 = 0 ;
14586 bool temp7 = false ;
14587 PyObject * obj0 = 0 ;
14588 PyObject * obj1 = 0 ;
14589 PyObject * obj2 = 0 ;
14590 PyObject * obj3 = 0 ;
14591 PyObject * obj4 = 0 ;
14592 PyObject * obj5 = 0 ;
14593 PyObject * obj6 = 0 ;
14594 char * kwnames[] = {
14595 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14596 };
14597
14598 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14599 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14600 if (!SWIG_IsOK(res1)) {
14601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_Create" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14602 }
14603 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14604 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14605 if (!SWIG_IsOK(res2)) {
14606 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14607 }
14608 arg2 = reinterpret_cast< wxWindow * >(argp2);
14609 if (obj2) {
14610 ecode3 = SWIG_AsVal_int(obj2, &val3);
14611 if (!SWIG_IsOK(ecode3)) {
14612 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_Create" "', expected argument " "3"" of type '" "int""'");
14613 }
14614 arg3 = static_cast< int >(val3);
14615 }
14616 if (obj3) {
14617 {
14618 arg4 = &temp4;
14619 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14620 }
14621 }
14622 if (obj4) {
14623 {
14624 arg5 = &temp5;
14625 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14626 }
14627 }
14628 if (obj5) {
14629 ecode6 = SWIG_AsVal_long(obj5, &val6);
14630 if (!SWIG_IsOK(ecode6)) {
14631 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SpinButton_Create" "', expected argument " "6"" of type '" "long""'");
14632 }
14633 arg6 = static_cast< long >(val6);
14634 }
14635 if (obj6) {
14636 {
14637 arg7 = wxString_in_helper(obj6);
14638 if (arg7 == NULL) SWIG_fail;
14639 temp7 = true;
14640 }
14641 }
14642 {
14643 PyThreadState* __tstate = wxPyBeginAllowThreads();
14644 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
14645 wxPyEndAllowThreads(__tstate);
14646 if (PyErr_Occurred()) SWIG_fail;
14647 }
14648 {
14649 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14650 }
14651 {
14652 if (temp7)
14653 delete arg7;
14654 }
14655 return resultobj;
14656 fail:
14657 {
14658 if (temp7)
14659 delete arg7;
14660 }
14661 return NULL;
14662 }
14663
14664
14665 SWIGINTERN PyObject *_wrap_SpinButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14666 PyObject *resultobj = 0;
14667 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14668 int result;
14669 void *argp1 = 0 ;
14670 int res1 = 0 ;
14671 PyObject *swig_obj[1] ;
14672
14673 if (!args) SWIG_fail;
14674 swig_obj[0] = args;
14675 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14676 if (!SWIG_IsOK(res1)) {
14677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetValue" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14678 }
14679 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14680 {
14681 PyThreadState* __tstate = wxPyBeginAllowThreads();
14682 result = (int)((wxSpinButton const *)arg1)->GetValue();
14683 wxPyEndAllowThreads(__tstate);
14684 if (PyErr_Occurred()) SWIG_fail;
14685 }
14686 resultobj = SWIG_From_int(static_cast< int >(result));
14687 return resultobj;
14688 fail:
14689 return NULL;
14690 }
14691
14692
14693 SWIGINTERN PyObject *_wrap_SpinButton_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14694 PyObject *resultobj = 0;
14695 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14696 int result;
14697 void *argp1 = 0 ;
14698 int res1 = 0 ;
14699 PyObject *swig_obj[1] ;
14700
14701 if (!args) SWIG_fail;
14702 swig_obj[0] = args;
14703 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14704 if (!SWIG_IsOK(res1)) {
14705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMin" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14706 }
14707 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14708 {
14709 PyThreadState* __tstate = wxPyBeginAllowThreads();
14710 result = (int)((wxSpinButton const *)arg1)->GetMin();
14711 wxPyEndAllowThreads(__tstate);
14712 if (PyErr_Occurred()) SWIG_fail;
14713 }
14714 resultobj = SWIG_From_int(static_cast< int >(result));
14715 return resultobj;
14716 fail:
14717 return NULL;
14718 }
14719
14720
14721 SWIGINTERN PyObject *_wrap_SpinButton_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14722 PyObject *resultobj = 0;
14723 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14724 int result;
14725 void *argp1 = 0 ;
14726 int res1 = 0 ;
14727 PyObject *swig_obj[1] ;
14728
14729 if (!args) SWIG_fail;
14730 swig_obj[0] = args;
14731 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14732 if (!SWIG_IsOK(res1)) {
14733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMax" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14734 }
14735 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14736 {
14737 PyThreadState* __tstate = wxPyBeginAllowThreads();
14738 result = (int)((wxSpinButton const *)arg1)->GetMax();
14739 wxPyEndAllowThreads(__tstate);
14740 if (PyErr_Occurred()) SWIG_fail;
14741 }
14742 resultobj = SWIG_From_int(static_cast< int >(result));
14743 return resultobj;
14744 fail:
14745 return NULL;
14746 }
14747
14748
14749 SWIGINTERN PyObject *_wrap_SpinButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14750 PyObject *resultobj = 0;
14751 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14752 int arg2 ;
14753 void *argp1 = 0 ;
14754 int res1 = 0 ;
14755 int val2 ;
14756 int ecode2 = 0 ;
14757 PyObject * obj0 = 0 ;
14758 PyObject * obj1 = 0 ;
14759 char * kwnames[] = {
14760 (char *) "self",(char *) "val", NULL
14761 };
14762
14763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
14764 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14765 if (!SWIG_IsOK(res1)) {
14766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetValue" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14767 }
14768 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14769 ecode2 = SWIG_AsVal_int(obj1, &val2);
14770 if (!SWIG_IsOK(ecode2)) {
14771 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetValue" "', expected argument " "2"" of type '" "int""'");
14772 }
14773 arg2 = static_cast< int >(val2);
14774 {
14775 PyThreadState* __tstate = wxPyBeginAllowThreads();
14776 (arg1)->SetValue(arg2);
14777 wxPyEndAllowThreads(__tstate);
14778 if (PyErr_Occurred()) SWIG_fail;
14779 }
14780 resultobj = SWIG_Py_Void();
14781 return resultobj;
14782 fail:
14783 return NULL;
14784 }
14785
14786
14787 SWIGINTERN PyObject *_wrap_SpinButton_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14788 PyObject *resultobj = 0;
14789 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14790 int arg2 ;
14791 void *argp1 = 0 ;
14792 int res1 = 0 ;
14793 int val2 ;
14794 int ecode2 = 0 ;
14795 PyObject * obj0 = 0 ;
14796 PyObject * obj1 = 0 ;
14797 char * kwnames[] = {
14798 (char *) "self",(char *) "minVal", NULL
14799 };
14800
14801 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
14802 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14803 if (!SWIG_IsOK(res1)) {
14804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMin" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14805 }
14806 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14807 ecode2 = SWIG_AsVal_int(obj1, &val2);
14808 if (!SWIG_IsOK(ecode2)) {
14809 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMin" "', expected argument " "2"" of type '" "int""'");
14810 }
14811 arg2 = static_cast< int >(val2);
14812 {
14813 PyThreadState* __tstate = wxPyBeginAllowThreads();
14814 (arg1)->SetMin(arg2);
14815 wxPyEndAllowThreads(__tstate);
14816 if (PyErr_Occurred()) SWIG_fail;
14817 }
14818 resultobj = SWIG_Py_Void();
14819 return resultobj;
14820 fail:
14821 return NULL;
14822 }
14823
14824
14825 SWIGINTERN PyObject *_wrap_SpinButton_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14826 PyObject *resultobj = 0;
14827 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14828 int arg2 ;
14829 void *argp1 = 0 ;
14830 int res1 = 0 ;
14831 int val2 ;
14832 int ecode2 = 0 ;
14833 PyObject * obj0 = 0 ;
14834 PyObject * obj1 = 0 ;
14835 char * kwnames[] = {
14836 (char *) "self",(char *) "maxVal", NULL
14837 };
14838
14839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
14840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14841 if (!SWIG_IsOK(res1)) {
14842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMax" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14843 }
14844 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14845 ecode2 = SWIG_AsVal_int(obj1, &val2);
14846 if (!SWIG_IsOK(ecode2)) {
14847 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMax" "', expected argument " "2"" of type '" "int""'");
14848 }
14849 arg2 = static_cast< int >(val2);
14850 {
14851 PyThreadState* __tstate = wxPyBeginAllowThreads();
14852 (arg1)->SetMax(arg2);
14853 wxPyEndAllowThreads(__tstate);
14854 if (PyErr_Occurred()) SWIG_fail;
14855 }
14856 resultobj = SWIG_Py_Void();
14857 return resultobj;
14858 fail:
14859 return NULL;
14860 }
14861
14862
14863 SWIGINTERN PyObject *_wrap_SpinButton_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14864 PyObject *resultobj = 0;
14865 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14866 int arg2 ;
14867 int arg3 ;
14868 void *argp1 = 0 ;
14869 int res1 = 0 ;
14870 int val2 ;
14871 int ecode2 = 0 ;
14872 int val3 ;
14873 int ecode3 = 0 ;
14874 PyObject * obj0 = 0 ;
14875 PyObject * obj1 = 0 ;
14876 PyObject * obj2 = 0 ;
14877 char * kwnames[] = {
14878 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
14879 };
14880
14881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14882 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14883 if (!SWIG_IsOK(res1)) {
14884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetRange" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14885 }
14886 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14887 ecode2 = SWIG_AsVal_int(obj1, &val2);
14888 if (!SWIG_IsOK(ecode2)) {
14889 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetRange" "', expected argument " "2"" of type '" "int""'");
14890 }
14891 arg2 = static_cast< int >(val2);
14892 ecode3 = SWIG_AsVal_int(obj2, &val3);
14893 if (!SWIG_IsOK(ecode3)) {
14894 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_SetRange" "', expected argument " "3"" of type '" "int""'");
14895 }
14896 arg3 = static_cast< int >(val3);
14897 {
14898 PyThreadState* __tstate = wxPyBeginAllowThreads();
14899 (arg1)->SetRange(arg2,arg3);
14900 wxPyEndAllowThreads(__tstate);
14901 if (PyErr_Occurred()) SWIG_fail;
14902 }
14903 resultobj = SWIG_Py_Void();
14904 return resultobj;
14905 fail:
14906 return NULL;
14907 }
14908
14909
14910 SWIGINTERN PyObject *_wrap_SpinButton_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14911 PyObject *resultobj = 0;
14912 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14913 bool result;
14914 void *argp1 = 0 ;
14915 int res1 = 0 ;
14916 PyObject *swig_obj[1] ;
14917
14918 if (!args) SWIG_fail;
14919 swig_obj[0] = args;
14920 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14921 if (!SWIG_IsOK(res1)) {
14922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_IsVertical" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14923 }
14924 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14925 {
14926 PyThreadState* __tstate = wxPyBeginAllowThreads();
14927 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
14928 wxPyEndAllowThreads(__tstate);
14929 if (PyErr_Occurred()) SWIG_fail;
14930 }
14931 {
14932 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14933 }
14934 return resultobj;
14935 fail:
14936 return NULL;
14937 }
14938
14939
14940 SWIGINTERN PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14941 PyObject *resultobj = 0;
14942 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14943 SwigValueWrapper<wxVisualAttributes > result;
14944 int val1 ;
14945 int ecode1 = 0 ;
14946 PyObject * obj0 = 0 ;
14947 char * kwnames[] = {
14948 (char *) "variant", NULL
14949 };
14950
14951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14952 if (obj0) {
14953 ecode1 = SWIG_AsVal_int(obj0, &val1);
14954 if (!SWIG_IsOK(ecode1)) {
14955 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14956 }
14957 arg1 = static_cast< wxWindowVariant >(val1);
14958 }
14959 {
14960 if (!wxPyCheckForApp()) SWIG_fail;
14961 PyThreadState* __tstate = wxPyBeginAllowThreads();
14962 result = wxSpinButton::GetClassDefaultAttributes(arg1);
14963 wxPyEndAllowThreads(__tstate);
14964 if (PyErr_Occurred()) SWIG_fail;
14965 }
14966 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14967 return resultobj;
14968 fail:
14969 return NULL;
14970 }
14971
14972
14973 SWIGINTERN PyObject *SpinButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14974 PyObject *obj;
14975 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14976 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinButton, SWIG_NewClientData(obj));
14977 return SWIG_Py_Void();
14978 }
14979
14980 SWIGINTERN PyObject *SpinButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14981 return SWIG_Python_InitShadowInstance(args);
14982 }
14983
14984 SWIGINTERN PyObject *_wrap_new_SpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14985 PyObject *resultobj = 0;
14986 wxWindow *arg1 = (wxWindow *) 0 ;
14987 int arg2 = (int) -1 ;
14988 wxString const &arg3_defvalue = wxPyEmptyString ;
14989 wxString *arg3 = (wxString *) &arg3_defvalue ;
14990 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14991 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14992 wxSize const &arg5_defvalue = wxDefaultSize ;
14993 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14994 long arg6 = (long) wxSP_ARROW_KEYS ;
14995 int arg7 = (int) 0 ;
14996 int arg8 = (int) 100 ;
14997 int arg9 = (int) 0 ;
14998 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
14999 wxString *arg10 = (wxString *) &arg10_defvalue ;
15000 wxSpinCtrl *result = 0 ;
15001 void *argp1 = 0 ;
15002 int res1 = 0 ;
15003 int val2 ;
15004 int ecode2 = 0 ;
15005 bool temp3 = false ;
15006 wxPoint temp4 ;
15007 wxSize temp5 ;
15008 long val6 ;
15009 int ecode6 = 0 ;
15010 int val7 ;
15011 int ecode7 = 0 ;
15012 int val8 ;
15013 int ecode8 = 0 ;
15014 int val9 ;
15015 int ecode9 = 0 ;
15016 bool temp10 = false ;
15017 PyObject * obj0 = 0 ;
15018 PyObject * obj1 = 0 ;
15019 PyObject * obj2 = 0 ;
15020 PyObject * obj3 = 0 ;
15021 PyObject * obj4 = 0 ;
15022 PyObject * obj5 = 0 ;
15023 PyObject * obj6 = 0 ;
15024 PyObject * obj7 = 0 ;
15025 PyObject * obj8 = 0 ;
15026 PyObject * obj9 = 0 ;
15027 char * kwnames[] = {
15028 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15029 };
15030
15031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15033 if (!SWIG_IsOK(res1)) {
15034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
15035 }
15036 arg1 = reinterpret_cast< wxWindow * >(argp1);
15037 if (obj1) {
15038 ecode2 = SWIG_AsVal_int(obj1, &val2);
15039 if (!SWIG_IsOK(ecode2)) {
15040 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinCtrl" "', expected argument " "2"" of type '" "int""'");
15041 }
15042 arg2 = static_cast< int >(val2);
15043 }
15044 if (obj2) {
15045 {
15046 arg3 = wxString_in_helper(obj2);
15047 if (arg3 == NULL) SWIG_fail;
15048 temp3 = true;
15049 }
15050 }
15051 if (obj3) {
15052 {
15053 arg4 = &temp4;
15054 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15055 }
15056 }
15057 if (obj4) {
15058 {
15059 arg5 = &temp5;
15060 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15061 }
15062 }
15063 if (obj5) {
15064 ecode6 = SWIG_AsVal_long(obj5, &val6);
15065 if (!SWIG_IsOK(ecode6)) {
15066 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpinCtrl" "', expected argument " "6"" of type '" "long""'");
15067 }
15068 arg6 = static_cast< long >(val6);
15069 }
15070 if (obj6) {
15071 ecode7 = SWIG_AsVal_int(obj6, &val7);
15072 if (!SWIG_IsOK(ecode7)) {
15073 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpinCtrl" "', expected argument " "7"" of type '" "int""'");
15074 }
15075 arg7 = static_cast< int >(val7);
15076 }
15077 if (obj7) {
15078 ecode8 = SWIG_AsVal_int(obj7, &val8);
15079 if (!SWIG_IsOK(ecode8)) {
15080 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SpinCtrl" "', expected argument " "8"" of type '" "int""'");
15081 }
15082 arg8 = static_cast< int >(val8);
15083 }
15084 if (obj8) {
15085 ecode9 = SWIG_AsVal_int(obj8, &val9);
15086 if (!SWIG_IsOK(ecode9)) {
15087 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpinCtrl" "', expected argument " "9"" of type '" "int""'");
15088 }
15089 arg9 = static_cast< int >(val9);
15090 }
15091 if (obj9) {
15092 {
15093 arg10 = wxString_in_helper(obj9);
15094 if (arg10 == NULL) SWIG_fail;
15095 temp10 = true;
15096 }
15097 }
15098 {
15099 if (!wxPyCheckForApp()) SWIG_fail;
15100 PyThreadState* __tstate = wxPyBeginAllowThreads();
15101 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
15102 wxPyEndAllowThreads(__tstate);
15103 if (PyErr_Occurred()) SWIG_fail;
15104 }
15105 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_NEW | 0 );
15106 {
15107 if (temp3)
15108 delete arg3;
15109 }
15110 {
15111 if (temp10)
15112 delete arg10;
15113 }
15114 return resultobj;
15115 fail:
15116 {
15117 if (temp3)
15118 delete arg3;
15119 }
15120 {
15121 if (temp10)
15122 delete arg10;
15123 }
15124 return NULL;
15125 }
15126
15127
15128 SWIGINTERN PyObject *_wrap_new_PreSpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15129 PyObject *resultobj = 0;
15130 wxSpinCtrl *result = 0 ;
15131
15132 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinCtrl",0,0,0)) SWIG_fail;
15133 {
15134 if (!wxPyCheckForApp()) SWIG_fail;
15135 PyThreadState* __tstate = wxPyBeginAllowThreads();
15136 result = (wxSpinCtrl *)new wxSpinCtrl();
15137 wxPyEndAllowThreads(__tstate);
15138 if (PyErr_Occurred()) SWIG_fail;
15139 }
15140 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_OWN | 0 );
15141 return resultobj;
15142 fail:
15143 return NULL;
15144 }
15145
15146
15147 SWIGINTERN PyObject *_wrap_SpinCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15148 PyObject *resultobj = 0;
15149 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15150 wxWindow *arg2 = (wxWindow *) 0 ;
15151 int arg3 = (int) -1 ;
15152 wxString const &arg4_defvalue = wxPyEmptyString ;
15153 wxString *arg4 = (wxString *) &arg4_defvalue ;
15154 wxPoint const &arg5_defvalue = wxDefaultPosition ;
15155 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
15156 wxSize const &arg6_defvalue = wxDefaultSize ;
15157 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
15158 long arg7 = (long) wxSP_ARROW_KEYS ;
15159 int arg8 = (int) 0 ;
15160 int arg9 = (int) 100 ;
15161 int arg10 = (int) 0 ;
15162 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
15163 wxString *arg11 = (wxString *) &arg11_defvalue ;
15164 bool result;
15165 void *argp1 = 0 ;
15166 int res1 = 0 ;
15167 void *argp2 = 0 ;
15168 int res2 = 0 ;
15169 int val3 ;
15170 int ecode3 = 0 ;
15171 bool temp4 = false ;
15172 wxPoint temp5 ;
15173 wxSize temp6 ;
15174 long val7 ;
15175 int ecode7 = 0 ;
15176 int val8 ;
15177 int ecode8 = 0 ;
15178 int val9 ;
15179 int ecode9 = 0 ;
15180 int val10 ;
15181 int ecode10 = 0 ;
15182 bool temp11 = false ;
15183 PyObject * obj0 = 0 ;
15184 PyObject * obj1 = 0 ;
15185 PyObject * obj2 = 0 ;
15186 PyObject * obj3 = 0 ;
15187 PyObject * obj4 = 0 ;
15188 PyObject * obj5 = 0 ;
15189 PyObject * obj6 = 0 ;
15190 PyObject * obj7 = 0 ;
15191 PyObject * obj8 = 0 ;
15192 PyObject * obj9 = 0 ;
15193 PyObject * obj10 = 0 ;
15194 char * kwnames[] = {
15195 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15196 };
15197
15198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
15199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15200 if (!SWIG_IsOK(res1)) {
15201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_Create" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15202 }
15203 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15204 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
15205 if (!SWIG_IsOK(res2)) {
15206 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
15207 }
15208 arg2 = reinterpret_cast< wxWindow * >(argp2);
15209 if (obj2) {
15210 ecode3 = SWIG_AsVal_int(obj2, &val3);
15211 if (!SWIG_IsOK(ecode3)) {
15212 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_Create" "', expected argument " "3"" of type '" "int""'");
15213 }
15214 arg3 = static_cast< int >(val3);
15215 }
15216 if (obj3) {
15217 {
15218 arg4 = wxString_in_helper(obj3);
15219 if (arg4 == NULL) SWIG_fail;
15220 temp4 = true;
15221 }
15222 }
15223 if (obj4) {
15224 {
15225 arg5 = &temp5;
15226 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
15227 }
15228 }
15229 if (obj5) {
15230 {
15231 arg6 = &temp6;
15232 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
15233 }
15234 }
15235 if (obj6) {
15236 ecode7 = SWIG_AsVal_long(obj6, &val7);
15237 if (!SWIG_IsOK(ecode7)) {
15238 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SpinCtrl_Create" "', expected argument " "7"" of type '" "long""'");
15239 }
15240 arg7 = static_cast< long >(val7);
15241 }
15242 if (obj7) {
15243 ecode8 = SWIG_AsVal_int(obj7, &val8);
15244 if (!SWIG_IsOK(ecode8)) {
15245 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "SpinCtrl_Create" "', expected argument " "8"" of type '" "int""'");
15246 }
15247 arg8 = static_cast< int >(val8);
15248 }
15249 if (obj8) {
15250 ecode9 = SWIG_AsVal_int(obj8, &val9);
15251 if (!SWIG_IsOK(ecode9)) {
15252 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "SpinCtrl_Create" "', expected argument " "9"" of type '" "int""'");
15253 }
15254 arg9 = static_cast< int >(val9);
15255 }
15256 if (obj9) {
15257 ecode10 = SWIG_AsVal_int(obj9, &val10);
15258 if (!SWIG_IsOK(ecode10)) {
15259 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "SpinCtrl_Create" "', expected argument " "10"" of type '" "int""'");
15260 }
15261 arg10 = static_cast< int >(val10);
15262 }
15263 if (obj10) {
15264 {
15265 arg11 = wxString_in_helper(obj10);
15266 if (arg11 == NULL) SWIG_fail;
15267 temp11 = true;
15268 }
15269 }
15270 {
15271 PyThreadState* __tstate = wxPyBeginAllowThreads();
15272 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
15273 wxPyEndAllowThreads(__tstate);
15274 if (PyErr_Occurred()) SWIG_fail;
15275 }
15276 {
15277 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15278 }
15279 {
15280 if (temp4)
15281 delete arg4;
15282 }
15283 {
15284 if (temp11)
15285 delete arg11;
15286 }
15287 return resultobj;
15288 fail:
15289 {
15290 if (temp4)
15291 delete arg4;
15292 }
15293 {
15294 if (temp11)
15295 delete arg11;
15296 }
15297 return NULL;
15298 }
15299
15300
15301 SWIGINTERN PyObject *_wrap_SpinCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15302 PyObject *resultobj = 0;
15303 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15304 int result;
15305 void *argp1 = 0 ;
15306 int res1 = 0 ;
15307 PyObject *swig_obj[1] ;
15308
15309 if (!args) SWIG_fail;
15310 swig_obj[0] = args;
15311 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15312 if (!SWIG_IsOK(res1)) {
15313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetValue" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15314 }
15315 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15316 {
15317 PyThreadState* __tstate = wxPyBeginAllowThreads();
15318 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
15319 wxPyEndAllowThreads(__tstate);
15320 if (PyErr_Occurred()) SWIG_fail;
15321 }
15322 resultobj = SWIG_From_int(static_cast< int >(result));
15323 return resultobj;
15324 fail:
15325 return NULL;
15326 }
15327
15328
15329 SWIGINTERN PyObject *_wrap_SpinCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15330 PyObject *resultobj = 0;
15331 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15332 int arg2 ;
15333 void *argp1 = 0 ;
15334 int res1 = 0 ;
15335 int val2 ;
15336 int ecode2 = 0 ;
15337 PyObject * obj0 = 0 ;
15338 PyObject * obj1 = 0 ;
15339 char * kwnames[] = {
15340 (char *) "self",(char *) "value", NULL
15341 };
15342
15343 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15344 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15345 if (!SWIG_IsOK(res1)) {
15346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValue" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15347 }
15348 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15349 ecode2 = SWIG_AsVal_int(obj1, &val2);
15350 if (!SWIG_IsOK(ecode2)) {
15351 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetValue" "', expected argument " "2"" of type '" "int""'");
15352 }
15353 arg2 = static_cast< int >(val2);
15354 {
15355 PyThreadState* __tstate = wxPyBeginAllowThreads();
15356 (arg1)->SetValue(arg2);
15357 wxPyEndAllowThreads(__tstate);
15358 if (PyErr_Occurred()) SWIG_fail;
15359 }
15360 resultobj = SWIG_Py_Void();
15361 return resultobj;
15362 fail:
15363 return NULL;
15364 }
15365
15366
15367 SWIGINTERN PyObject *_wrap_SpinCtrl_SetValueString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15368 PyObject *resultobj = 0;
15369 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15370 wxString *arg2 = 0 ;
15371 void *argp1 = 0 ;
15372 int res1 = 0 ;
15373 bool temp2 = false ;
15374 PyObject * obj0 = 0 ;
15375 PyObject * obj1 = 0 ;
15376 char * kwnames[] = {
15377 (char *) "self",(char *) "text", NULL
15378 };
15379
15380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) SWIG_fail;
15381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15382 if (!SWIG_IsOK(res1)) {
15383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValueString" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15384 }
15385 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15386 {
15387 arg2 = wxString_in_helper(obj1);
15388 if (arg2 == NULL) SWIG_fail;
15389 temp2 = true;
15390 }
15391 {
15392 PyThreadState* __tstate = wxPyBeginAllowThreads();
15393 (arg1)->SetValue((wxString const &)*arg2);
15394 wxPyEndAllowThreads(__tstate);
15395 if (PyErr_Occurred()) SWIG_fail;
15396 }
15397 resultobj = SWIG_Py_Void();
15398 {
15399 if (temp2)
15400 delete arg2;
15401 }
15402 return resultobj;
15403 fail:
15404 {
15405 if (temp2)
15406 delete arg2;
15407 }
15408 return NULL;
15409 }
15410
15411
15412 SWIGINTERN PyObject *_wrap_SpinCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15413 PyObject *resultobj = 0;
15414 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15415 int arg2 ;
15416 int arg3 ;
15417 void *argp1 = 0 ;
15418 int res1 = 0 ;
15419 int val2 ;
15420 int ecode2 = 0 ;
15421 int val3 ;
15422 int ecode3 = 0 ;
15423 PyObject * obj0 = 0 ;
15424 PyObject * obj1 = 0 ;
15425 PyObject * obj2 = 0 ;
15426 char * kwnames[] = {
15427 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15428 };
15429
15430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15431 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15432 if (!SWIG_IsOK(res1)) {
15433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetRange" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15434 }
15435 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15436 ecode2 = SWIG_AsVal_int(obj1, &val2);
15437 if (!SWIG_IsOK(ecode2)) {
15438 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetRange" "', expected argument " "2"" of type '" "int""'");
15439 }
15440 arg2 = static_cast< int >(val2);
15441 ecode3 = SWIG_AsVal_int(obj2, &val3);
15442 if (!SWIG_IsOK(ecode3)) {
15443 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetRange" "', expected argument " "3"" of type '" "int""'");
15444 }
15445 arg3 = static_cast< int >(val3);
15446 {
15447 PyThreadState* __tstate = wxPyBeginAllowThreads();
15448 (arg1)->SetRange(arg2,arg3);
15449 wxPyEndAllowThreads(__tstate);
15450 if (PyErr_Occurred()) SWIG_fail;
15451 }
15452 resultobj = SWIG_Py_Void();
15453 return resultobj;
15454 fail:
15455 return NULL;
15456 }
15457
15458
15459 SWIGINTERN PyObject *_wrap_SpinCtrl_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15460 PyObject *resultobj = 0;
15461 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15462 int result;
15463 void *argp1 = 0 ;
15464 int res1 = 0 ;
15465 PyObject *swig_obj[1] ;
15466
15467 if (!args) SWIG_fail;
15468 swig_obj[0] = args;
15469 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15470 if (!SWIG_IsOK(res1)) {
15471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMin" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15472 }
15473 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15474 {
15475 PyThreadState* __tstate = wxPyBeginAllowThreads();
15476 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
15477 wxPyEndAllowThreads(__tstate);
15478 if (PyErr_Occurred()) SWIG_fail;
15479 }
15480 resultobj = SWIG_From_int(static_cast< int >(result));
15481 return resultobj;
15482 fail:
15483 return NULL;
15484 }
15485
15486
15487 SWIGINTERN PyObject *_wrap_SpinCtrl_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15488 PyObject *resultobj = 0;
15489 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15490 int result;
15491 void *argp1 = 0 ;
15492 int res1 = 0 ;
15493 PyObject *swig_obj[1] ;
15494
15495 if (!args) SWIG_fail;
15496 swig_obj[0] = args;
15497 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15498 if (!SWIG_IsOK(res1)) {
15499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMax" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15500 }
15501 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15502 {
15503 PyThreadState* __tstate = wxPyBeginAllowThreads();
15504 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
15505 wxPyEndAllowThreads(__tstate);
15506 if (PyErr_Occurred()) SWIG_fail;
15507 }
15508 resultobj = SWIG_From_int(static_cast< int >(result));
15509 return resultobj;
15510 fail:
15511 return NULL;
15512 }
15513
15514
15515 SWIGINTERN PyObject *_wrap_SpinCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15516 PyObject *resultobj = 0;
15517 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15518 long arg2 ;
15519 long arg3 ;
15520 void *argp1 = 0 ;
15521 int res1 = 0 ;
15522 long val2 ;
15523 int ecode2 = 0 ;
15524 long val3 ;
15525 int ecode3 = 0 ;
15526 PyObject * obj0 = 0 ;
15527 PyObject * obj1 = 0 ;
15528 PyObject * obj2 = 0 ;
15529 char * kwnames[] = {
15530 (char *) "self",(char *) "from",(char *) "to", NULL
15531 };
15532
15533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15535 if (!SWIG_IsOK(res1)) {
15536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetSelection" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15537 }
15538 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15539 ecode2 = SWIG_AsVal_long(obj1, &val2);
15540 if (!SWIG_IsOK(ecode2)) {
15541 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
15542 }
15543 arg2 = static_cast< long >(val2);
15544 ecode3 = SWIG_AsVal_long(obj2, &val3);
15545 if (!SWIG_IsOK(ecode3)) {
15546 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
15547 }
15548 arg3 = static_cast< long >(val3);
15549 {
15550 PyThreadState* __tstate = wxPyBeginAllowThreads();
15551 (arg1)->SetSelection(arg2,arg3);
15552 wxPyEndAllowThreads(__tstate);
15553 if (PyErr_Occurred()) SWIG_fail;
15554 }
15555 resultobj = SWIG_Py_Void();
15556 return resultobj;
15557 fail:
15558 return NULL;
15559 }
15560
15561
15562 SWIGINTERN PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15563 PyObject *resultobj = 0;
15564 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15565 SwigValueWrapper<wxVisualAttributes > result;
15566 int val1 ;
15567 int ecode1 = 0 ;
15568 PyObject * obj0 = 0 ;
15569 char * kwnames[] = {
15570 (char *) "variant", NULL
15571 };
15572
15573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15574 if (obj0) {
15575 ecode1 = SWIG_AsVal_int(obj0, &val1);
15576 if (!SWIG_IsOK(ecode1)) {
15577 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15578 }
15579 arg1 = static_cast< wxWindowVariant >(val1);
15580 }
15581 {
15582 if (!wxPyCheckForApp()) SWIG_fail;
15583 PyThreadState* __tstate = wxPyBeginAllowThreads();
15584 result = wxSpinCtrl::GetClassDefaultAttributes(arg1);
15585 wxPyEndAllowThreads(__tstate);
15586 if (PyErr_Occurred()) SWIG_fail;
15587 }
15588 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15589 return resultobj;
15590 fail:
15591 return NULL;
15592 }
15593
15594
15595 SWIGINTERN PyObject *SpinCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15596 PyObject *obj;
15597 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15598 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinCtrl, SWIG_NewClientData(obj));
15599 return SWIG_Py_Void();
15600 }
15601
15602 SWIGINTERN PyObject *SpinCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15603 return SWIG_Python_InitShadowInstance(args);
15604 }
15605
15606 SWIGINTERN PyObject *_wrap_new_SpinEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15607 PyObject *resultobj = 0;
15608 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15609 int arg2 = (int) 0 ;
15610 wxSpinEvent *result = 0 ;
15611 int val1 ;
15612 int ecode1 = 0 ;
15613 int val2 ;
15614 int ecode2 = 0 ;
15615 PyObject * obj0 = 0 ;
15616 PyObject * obj1 = 0 ;
15617 char * kwnames[] = {
15618 (char *) "commandType",(char *) "winid", NULL
15619 };
15620
15621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) SWIG_fail;
15622 if (obj0) {
15623 ecode1 = SWIG_AsVal_int(obj0, &val1);
15624 if (!SWIG_IsOK(ecode1)) {
15625 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SpinEvent" "', expected argument " "1"" of type '" "wxEventType""'");
15626 }
15627 arg1 = static_cast< wxEventType >(val1);
15628 }
15629 if (obj1) {
15630 ecode2 = SWIG_AsVal_int(obj1, &val2);
15631 if (!SWIG_IsOK(ecode2)) {
15632 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinEvent" "', expected argument " "2"" of type '" "int""'");
15633 }
15634 arg2 = static_cast< int >(val2);
15635 }
15636 {
15637 PyThreadState* __tstate = wxPyBeginAllowThreads();
15638 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
15639 wxPyEndAllowThreads(__tstate);
15640 if (PyErr_Occurred()) SWIG_fail;
15641 }
15642 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_NEW | 0 );
15643 return resultobj;
15644 fail:
15645 return NULL;
15646 }
15647
15648
15649 SWIGINTERN PyObject *_wrap_SpinEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15650 PyObject *resultobj = 0;
15651 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15652 int result;
15653 void *argp1 = 0 ;
15654 int res1 = 0 ;
15655 PyObject *swig_obj[1] ;
15656
15657 if (!args) SWIG_fail;
15658 swig_obj[0] = args;
15659 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15660 if (!SWIG_IsOK(res1)) {
15661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_GetPosition" "', expected argument " "1"" of type '" "wxSpinEvent const *""'");
15662 }
15663 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15664 {
15665 PyThreadState* __tstate = wxPyBeginAllowThreads();
15666 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
15667 wxPyEndAllowThreads(__tstate);
15668 if (PyErr_Occurred()) SWIG_fail;
15669 }
15670 resultobj = SWIG_From_int(static_cast< int >(result));
15671 return resultobj;
15672 fail:
15673 return NULL;
15674 }
15675
15676
15677 SWIGINTERN PyObject *_wrap_SpinEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15678 PyObject *resultobj = 0;
15679 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15680 int arg2 ;
15681 void *argp1 = 0 ;
15682 int res1 = 0 ;
15683 int val2 ;
15684 int ecode2 = 0 ;
15685 PyObject * obj0 = 0 ;
15686 PyObject * obj1 = 0 ;
15687 char * kwnames[] = {
15688 (char *) "self",(char *) "pos", NULL
15689 };
15690
15691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
15692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15693 if (!SWIG_IsOK(res1)) {
15694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_SetPosition" "', expected argument " "1"" of type '" "wxSpinEvent *""'");
15695 }
15696 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15697 ecode2 = SWIG_AsVal_int(obj1, &val2);
15698 if (!SWIG_IsOK(ecode2)) {
15699 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinEvent_SetPosition" "', expected argument " "2"" of type '" "int""'");
15700 }
15701 arg2 = static_cast< int >(val2);
15702 {
15703 PyThreadState* __tstate = wxPyBeginAllowThreads();
15704 (arg1)->SetPosition(arg2);
15705 wxPyEndAllowThreads(__tstate);
15706 if (PyErr_Occurred()) SWIG_fail;
15707 }
15708 resultobj = SWIG_Py_Void();
15709 return resultobj;
15710 fail:
15711 return NULL;
15712 }
15713
15714
15715 SWIGINTERN PyObject *SpinEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15716 PyObject *obj;
15717 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15718 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinEvent, SWIG_NewClientData(obj));
15719 return SWIG_Py_Void();
15720 }
15721
15722 SWIGINTERN PyObject *SpinEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15723 return SWIG_Python_InitShadowInstance(args);
15724 }
15725
15726 SWIGINTERN int RadioBoxNameStr_set(PyObject *) {
15727 SWIG_Error(SWIG_AttributeError,"Variable RadioBoxNameStr is read-only.");
15728 return 1;
15729 }
15730
15731
15732 SWIGINTERN PyObject *RadioBoxNameStr_get(void) {
15733 PyObject *pyobj = 0;
15734
15735 {
15736 #if wxUSE_UNICODE
15737 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
15738 #else
15739 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
15740 #endif
15741 }
15742 return pyobj;
15743 }
15744
15745
15746 SWIGINTERN int RadioButtonNameStr_set(PyObject *) {
15747 SWIG_Error(SWIG_AttributeError,"Variable RadioButtonNameStr is read-only.");
15748 return 1;
15749 }
15750
15751
15752 SWIGINTERN PyObject *RadioButtonNameStr_get(void) {
15753 PyObject *pyobj = 0;
15754
15755 {
15756 #if wxUSE_UNICODE
15757 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15758 #else
15759 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15760 #endif
15761 }
15762 return pyobj;
15763 }
15764
15765
15766 SWIGINTERN PyObject *_wrap_new_RadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15767 PyObject *resultobj = 0;
15768 wxWindow *arg1 = (wxWindow *) 0 ;
15769 int arg2 = (int) -1 ;
15770 wxString const &arg3_defvalue = wxPyEmptyString ;
15771 wxString *arg3 = (wxString *) &arg3_defvalue ;
15772 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15773 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15774 wxSize const &arg5_defvalue = wxDefaultSize ;
15775 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15776 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
15777 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
15778 int arg7 = (int) 0 ;
15779 long arg8 = (long) wxRA_HORIZONTAL ;
15780 wxValidator const &arg9_defvalue = wxDefaultValidator ;
15781 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
15782 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
15783 wxString *arg10 = (wxString *) &arg10_defvalue ;
15784 wxRadioBox *result = 0 ;
15785 void *argp1 = 0 ;
15786 int res1 = 0 ;
15787 int val2 ;
15788 int ecode2 = 0 ;
15789 bool temp3 = false ;
15790 wxPoint temp4 ;
15791 wxSize temp5 ;
15792 bool temp6 = false ;
15793 int val7 ;
15794 int ecode7 = 0 ;
15795 long val8 ;
15796 int ecode8 = 0 ;
15797 void *argp9 = 0 ;
15798 int res9 = 0 ;
15799 bool temp10 = false ;
15800 PyObject * obj0 = 0 ;
15801 PyObject * obj1 = 0 ;
15802 PyObject * obj2 = 0 ;
15803 PyObject * obj3 = 0 ;
15804 PyObject * obj4 = 0 ;
15805 PyObject * obj5 = 0 ;
15806 PyObject * obj6 = 0 ;
15807 PyObject * obj7 = 0 ;
15808 PyObject * obj8 = 0 ;
15809 PyObject * obj9 = 0 ;
15810 char * kwnames[] = {
15811 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
15812 };
15813
15814 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15815 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15816 if (!SWIG_IsOK(res1)) {
15817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioBox" "', expected argument " "1"" of type '" "wxWindow *""'");
15818 }
15819 arg1 = reinterpret_cast< wxWindow * >(argp1);
15820 if (obj1) {
15821 ecode2 = SWIG_AsVal_int(obj1, &val2);
15822 if (!SWIG_IsOK(ecode2)) {
15823 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioBox" "', expected argument " "2"" of type '" "int""'");
15824 }
15825 arg2 = static_cast< int >(val2);
15826 }
15827 if (obj2) {
15828 {
15829 arg3 = wxString_in_helper(obj2);
15830 if (arg3 == NULL) SWIG_fail;
15831 temp3 = true;
15832 }
15833 }
15834 if (obj3) {
15835 {
15836 arg4 = &temp4;
15837 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15838 }
15839 }
15840 if (obj4) {
15841 {
15842 arg5 = &temp5;
15843 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15844 }
15845 }
15846 if (obj5) {
15847 {
15848 if (! PySequence_Check(obj5)) {
15849 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
15850 SWIG_fail;
15851 }
15852 arg6 = new wxArrayString;
15853 temp6 = true;
15854 int i, len=PySequence_Length(obj5);
15855 for (i=0; i<len; i++) {
15856 PyObject* item = PySequence_GetItem(obj5, i);
15857 wxString* s = wxString_in_helper(item);
15858 if (PyErr_Occurred()) SWIG_fail;
15859 arg6->Add(*s);
15860 delete s;
15861 Py_DECREF(item);
15862 }
15863 }
15864 }
15865 if (obj6) {
15866 ecode7 = SWIG_AsVal_int(obj6, &val7);
15867 if (!SWIG_IsOK(ecode7)) {
15868 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_RadioBox" "', expected argument " "7"" of type '" "int""'");
15869 }
15870 arg7 = static_cast< int >(val7);
15871 }
15872 if (obj7) {
15873 ecode8 = SWIG_AsVal_long(obj7, &val8);
15874 if (!SWIG_IsOK(ecode8)) {
15875 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_RadioBox" "', expected argument " "8"" of type '" "long""'");
15876 }
15877 arg8 = static_cast< long >(val8);
15878 }
15879 if (obj8) {
15880 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
15881 if (!SWIG_IsOK(res9)) {
15882 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
15883 }
15884 if (!argp9) {
15885 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
15886 }
15887 arg9 = reinterpret_cast< wxValidator * >(argp9);
15888 }
15889 if (obj9) {
15890 {
15891 arg10 = wxString_in_helper(obj9);
15892 if (arg10 == NULL) SWIG_fail;
15893 temp10 = true;
15894 }
15895 }
15896 {
15897 if (!wxPyCheckForApp()) SWIG_fail;
15898 PyThreadState* __tstate = wxPyBeginAllowThreads();
15899 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);
15900 wxPyEndAllowThreads(__tstate);
15901 if (PyErr_Occurred()) SWIG_fail;
15902 }
15903 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_NEW | 0 );
15904 {
15905 if (temp3)
15906 delete arg3;
15907 }
15908 {
15909 if (temp6) delete arg6;
15910 }
15911 {
15912 if (temp10)
15913 delete arg10;
15914 }
15915 return resultobj;
15916 fail:
15917 {
15918 if (temp3)
15919 delete arg3;
15920 }
15921 {
15922 if (temp6) delete arg6;
15923 }
15924 {
15925 if (temp10)
15926 delete arg10;
15927 }
15928 return NULL;
15929 }
15930
15931
15932 SWIGINTERN PyObject *_wrap_new_PreRadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15933 PyObject *resultobj = 0;
15934 wxRadioBox *result = 0 ;
15935
15936 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioBox",0,0,0)) SWIG_fail;
15937 {
15938 if (!wxPyCheckForApp()) SWIG_fail;
15939 PyThreadState* __tstate = wxPyBeginAllowThreads();
15940 result = (wxRadioBox *)new wxRadioBox();
15941 wxPyEndAllowThreads(__tstate);
15942 if (PyErr_Occurred()) SWIG_fail;
15943 }
15944 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_OWN | 0 );
15945 return resultobj;
15946 fail:
15947 return NULL;
15948 }
15949
15950
15951 SWIGINTERN PyObject *_wrap_RadioBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15952 PyObject *resultobj = 0;
15953 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
15954 wxWindow *arg2 = (wxWindow *) 0 ;
15955 int arg3 = (int) -1 ;
15956 wxString const &arg4_defvalue = wxPyEmptyString ;
15957 wxString *arg4 = (wxString *) &arg4_defvalue ;
15958 wxPoint const &arg5_defvalue = wxDefaultPosition ;
15959 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
15960 wxSize const &arg6_defvalue = wxDefaultSize ;
15961 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
15962 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
15963 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
15964 int arg8 = (int) 0 ;
15965 long arg9 = (long) wxRA_HORIZONTAL ;
15966 wxValidator const &arg10_defvalue = wxDefaultValidator ;
15967 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
15968 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
15969 wxString *arg11 = (wxString *) &arg11_defvalue ;
15970 bool result;
15971 void *argp1 = 0 ;
15972 int res1 = 0 ;
15973 void *argp2 = 0 ;
15974 int res2 = 0 ;
15975 int val3 ;
15976 int ecode3 = 0 ;
15977 bool temp4 = false ;
15978 wxPoint temp5 ;
15979 wxSize temp6 ;
15980 bool temp7 = false ;
15981 int val8 ;
15982 int ecode8 = 0 ;
15983 long val9 ;
15984 int ecode9 = 0 ;
15985 void *argp10 = 0 ;
15986 int res10 = 0 ;
15987 bool temp11 = false ;
15988 PyObject * obj0 = 0 ;
15989 PyObject * obj1 = 0 ;
15990 PyObject * obj2 = 0 ;
15991 PyObject * obj3 = 0 ;
15992 PyObject * obj4 = 0 ;
15993 PyObject * obj5 = 0 ;
15994 PyObject * obj6 = 0 ;
15995 PyObject * obj7 = 0 ;
15996 PyObject * obj8 = 0 ;
15997 PyObject * obj9 = 0 ;
15998 PyObject * obj10 = 0 ;
15999 char * kwnames[] = {
16000 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16001 };
16002
16003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
16004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16005 if (!SWIG_IsOK(res1)) {
16006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_Create" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16007 }
16008 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16009 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
16010 if (!SWIG_IsOK(res2)) {
16011 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
16012 }
16013 arg2 = reinterpret_cast< wxWindow * >(argp2);
16014 if (obj2) {
16015 ecode3 = SWIG_AsVal_int(obj2, &val3);
16016 if (!SWIG_IsOK(ecode3)) {
16017 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_Create" "', expected argument " "3"" of type '" "int""'");
16018 }
16019 arg3 = static_cast< int >(val3);
16020 }
16021 if (obj3) {
16022 {
16023 arg4 = wxString_in_helper(obj3);
16024 if (arg4 == NULL) SWIG_fail;
16025 temp4 = true;
16026 }
16027 }
16028 if (obj4) {
16029 {
16030 arg5 = &temp5;
16031 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
16032 }
16033 }
16034 if (obj5) {
16035 {
16036 arg6 = &temp6;
16037 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
16038 }
16039 }
16040 if (obj6) {
16041 {
16042 if (! PySequence_Check(obj6)) {
16043 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16044 SWIG_fail;
16045 }
16046 arg7 = new wxArrayString;
16047 temp7 = true;
16048 int i, len=PySequence_Length(obj6);
16049 for (i=0; i<len; i++) {
16050 PyObject* item = PySequence_GetItem(obj6, i);
16051 wxString* s = wxString_in_helper(item);
16052 if (PyErr_Occurred()) SWIG_fail;
16053 arg7->Add(*s);
16054 delete s;
16055 Py_DECREF(item);
16056 }
16057 }
16058 }
16059 if (obj7) {
16060 ecode8 = SWIG_AsVal_int(obj7, &val8);
16061 if (!SWIG_IsOK(ecode8)) {
16062 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "RadioBox_Create" "', expected argument " "8"" of type '" "int""'");
16063 }
16064 arg8 = static_cast< int >(val8);
16065 }
16066 if (obj8) {
16067 ecode9 = SWIG_AsVal_long(obj8, &val9);
16068 if (!SWIG_IsOK(ecode9)) {
16069 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "RadioBox_Create" "', expected argument " "9"" of type '" "long""'");
16070 }
16071 arg9 = static_cast< long >(val9);
16072 }
16073 if (obj9) {
16074 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
16075 if (!SWIG_IsOK(res10)) {
16076 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
16077 }
16078 if (!argp10) {
16079 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
16080 }
16081 arg10 = reinterpret_cast< wxValidator * >(argp10);
16082 }
16083 if (obj10) {
16084 {
16085 arg11 = wxString_in_helper(obj10);
16086 if (arg11 == NULL) SWIG_fail;
16087 temp11 = true;
16088 }
16089 }
16090 {
16091 PyThreadState* __tstate = wxPyBeginAllowThreads();
16092 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);
16093 wxPyEndAllowThreads(__tstate);
16094 if (PyErr_Occurred()) SWIG_fail;
16095 }
16096 {
16097 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16098 }
16099 {
16100 if (temp4)
16101 delete arg4;
16102 }
16103 {
16104 if (temp7) delete arg7;
16105 }
16106 {
16107 if (temp11)
16108 delete arg11;
16109 }
16110 return resultobj;
16111 fail:
16112 {
16113 if (temp4)
16114 delete arg4;
16115 }
16116 {
16117 if (temp7) delete arg7;
16118 }
16119 {
16120 if (temp11)
16121 delete arg11;
16122 }
16123 return NULL;
16124 }
16125
16126
16127 SWIGINTERN PyObject *_wrap_RadioBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16128 PyObject *resultobj = 0;
16129 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16130 int arg2 ;
16131 void *argp1 = 0 ;
16132 int res1 = 0 ;
16133 int val2 ;
16134 int ecode2 = 0 ;
16135 PyObject * obj0 = 0 ;
16136 PyObject * obj1 = 0 ;
16137 char * kwnames[] = {
16138 (char *) "self",(char *) "n", NULL
16139 };
16140
16141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16143 if (!SWIG_IsOK(res1)) {
16144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16145 }
16146 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16147 ecode2 = SWIG_AsVal_int(obj1, &val2);
16148 if (!SWIG_IsOK(ecode2)) {
16149 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
16150 }
16151 arg2 = static_cast< int >(val2);
16152 {
16153 PyThreadState* __tstate = wxPyBeginAllowThreads();
16154 (arg1)->SetSelection(arg2);
16155 wxPyEndAllowThreads(__tstate);
16156 if (PyErr_Occurred()) SWIG_fail;
16157 }
16158 resultobj = SWIG_Py_Void();
16159 return resultobj;
16160 fail:
16161 return NULL;
16162 }
16163
16164
16165 SWIGINTERN PyObject *_wrap_RadioBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16166 PyObject *resultobj = 0;
16167 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16168 int result;
16169 void *argp1 = 0 ;
16170 int res1 = 0 ;
16171 PyObject *swig_obj[1] ;
16172
16173 if (!args) SWIG_fail;
16174 swig_obj[0] = args;
16175 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16176 if (!SWIG_IsOK(res1)) {
16177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16178 }
16179 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16180 {
16181 PyThreadState* __tstate = wxPyBeginAllowThreads();
16182 result = (int)((wxRadioBox const *)arg1)->GetSelection();
16183 wxPyEndAllowThreads(__tstate);
16184 if (PyErr_Occurred()) SWIG_fail;
16185 }
16186 resultobj = SWIG_From_int(static_cast< int >(result));
16187 return resultobj;
16188 fail:
16189 return NULL;
16190 }
16191
16192
16193 SWIGINTERN PyObject *_wrap_RadioBox_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16194 PyObject *resultobj = 0;
16195 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16196 wxString result;
16197 void *argp1 = 0 ;
16198 int res1 = 0 ;
16199 PyObject *swig_obj[1] ;
16200
16201 if (!args) SWIG_fail;
16202 swig_obj[0] = args;
16203 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16204 if (!SWIG_IsOK(res1)) {
16205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16206 }
16207 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16208 {
16209 PyThreadState* __tstate = wxPyBeginAllowThreads();
16210 result = ((wxRadioBox const *)arg1)->GetStringSelection();
16211 wxPyEndAllowThreads(__tstate);
16212 if (PyErr_Occurred()) SWIG_fail;
16213 }
16214 {
16215 #if wxUSE_UNICODE
16216 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16217 #else
16218 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16219 #endif
16220 }
16221 return resultobj;
16222 fail:
16223 return NULL;
16224 }
16225
16226
16227 SWIGINTERN PyObject *_wrap_RadioBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16228 PyObject *resultobj = 0;
16229 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16230 wxString *arg2 = 0 ;
16231 bool result;
16232 void *argp1 = 0 ;
16233 int res1 = 0 ;
16234 bool temp2 = false ;
16235 PyObject * obj0 = 0 ;
16236 PyObject * obj1 = 0 ;
16237 char * kwnames[] = {
16238 (char *) "self",(char *) "s", NULL
16239 };
16240
16241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16242 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16243 if (!SWIG_IsOK(res1)) {
16244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16245 }
16246 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16247 {
16248 arg2 = wxString_in_helper(obj1);
16249 if (arg2 == NULL) SWIG_fail;
16250 temp2 = true;
16251 }
16252 {
16253 PyThreadState* __tstate = wxPyBeginAllowThreads();
16254 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
16255 wxPyEndAllowThreads(__tstate);
16256 if (PyErr_Occurred()) SWIG_fail;
16257 }
16258 {
16259 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16260 }
16261 {
16262 if (temp2)
16263 delete arg2;
16264 }
16265 return resultobj;
16266 fail:
16267 {
16268 if (temp2)
16269 delete arg2;
16270 }
16271 return NULL;
16272 }
16273
16274
16275 SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16276 PyObject *resultobj = 0;
16277 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16278 size_t result;
16279 void *argp1 = 0 ;
16280 int res1 = 0 ;
16281 PyObject *swig_obj[1] ;
16282
16283 if (!args) SWIG_fail;
16284 swig_obj[0] = args;
16285 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16286 if (!SWIG_IsOK(res1)) {
16287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16288 }
16289 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16290 {
16291 PyThreadState* __tstate = wxPyBeginAllowThreads();
16292 result = (size_t)((wxRadioBox const *)arg1)->GetCount();
16293 wxPyEndAllowThreads(__tstate);
16294 if (PyErr_Occurred()) SWIG_fail;
16295 }
16296 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
16297 return resultobj;
16298 fail:
16299 return NULL;
16300 }
16301
16302
16303 SWIGINTERN PyObject *_wrap_RadioBox_FindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16304 PyObject *resultobj = 0;
16305 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16306 wxString *arg2 = 0 ;
16307 int result;
16308 void *argp1 = 0 ;
16309 int res1 = 0 ;
16310 bool temp2 = false ;
16311 PyObject * obj0 = 0 ;
16312 PyObject * obj1 = 0 ;
16313 char * kwnames[] = {
16314 (char *) "self",(char *) "s", NULL
16315 };
16316
16317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) SWIG_fail;
16318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16319 if (!SWIG_IsOK(res1)) {
16320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_FindString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16321 }
16322 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16323 {
16324 arg2 = wxString_in_helper(obj1);
16325 if (arg2 == NULL) SWIG_fail;
16326 temp2 = true;
16327 }
16328 {
16329 PyThreadState* __tstate = wxPyBeginAllowThreads();
16330 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
16331 wxPyEndAllowThreads(__tstate);
16332 if (PyErr_Occurred()) SWIG_fail;
16333 }
16334 resultobj = SWIG_From_int(static_cast< int >(result));
16335 {
16336 if (temp2)
16337 delete arg2;
16338 }
16339 return resultobj;
16340 fail:
16341 {
16342 if (temp2)
16343 delete arg2;
16344 }
16345 return NULL;
16346 }
16347
16348
16349 SWIGINTERN PyObject *_wrap_RadioBox_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16350 PyObject *resultobj = 0;
16351 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16352 int arg2 ;
16353 wxString result;
16354 void *argp1 = 0 ;
16355 int res1 = 0 ;
16356 int val2 ;
16357 int ecode2 = 0 ;
16358 PyObject * obj0 = 0 ;
16359 PyObject * obj1 = 0 ;
16360 char * kwnames[] = {
16361 (char *) "self",(char *) "n", NULL
16362 };
16363
16364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) SWIG_fail;
16365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16366 if (!SWIG_IsOK(res1)) {
16367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16368 }
16369 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16370 ecode2 = SWIG_AsVal_int(obj1, &val2);
16371 if (!SWIG_IsOK(ecode2)) {
16372 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetString" "', expected argument " "2"" of type '" "int""'");
16373 }
16374 arg2 = static_cast< int >(val2);
16375 {
16376 PyThreadState* __tstate = wxPyBeginAllowThreads();
16377 result = ((wxRadioBox const *)arg1)->GetString(arg2);
16378 wxPyEndAllowThreads(__tstate);
16379 if (PyErr_Occurred()) SWIG_fail;
16380 }
16381 {
16382 #if wxUSE_UNICODE
16383 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16384 #else
16385 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16386 #endif
16387 }
16388 return resultobj;
16389 fail:
16390 return NULL;
16391 }
16392
16393
16394 SWIGINTERN PyObject *_wrap_RadioBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16395 PyObject *resultobj = 0;
16396 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16397 int arg2 ;
16398 wxString *arg3 = 0 ;
16399 void *argp1 = 0 ;
16400 int res1 = 0 ;
16401 int val2 ;
16402 int ecode2 = 0 ;
16403 bool temp3 = false ;
16404 PyObject * obj0 = 0 ;
16405 PyObject * obj1 = 0 ;
16406 PyObject * obj2 = 0 ;
16407 char * kwnames[] = {
16408 (char *) "self",(char *) "n",(char *) "label", NULL
16409 };
16410
16411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16413 if (!SWIG_IsOK(res1)) {
16414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetString" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16415 }
16416 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16417 ecode2 = SWIG_AsVal_int(obj1, &val2);
16418 if (!SWIG_IsOK(ecode2)) {
16419 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetString" "', expected argument " "2"" of type '" "int""'");
16420 }
16421 arg2 = static_cast< int >(val2);
16422 {
16423 arg3 = wxString_in_helper(obj2);
16424 if (arg3 == NULL) SWIG_fail;
16425 temp3 = true;
16426 }
16427 {
16428 PyThreadState* __tstate = wxPyBeginAllowThreads();
16429 (arg1)->SetString(arg2,(wxString const &)*arg3);
16430 wxPyEndAllowThreads(__tstate);
16431 if (PyErr_Occurred()) SWIG_fail;
16432 }
16433 resultobj = SWIG_Py_Void();
16434 {
16435 if (temp3)
16436 delete arg3;
16437 }
16438 return resultobj;
16439 fail:
16440 {
16441 if (temp3)
16442 delete arg3;
16443 }
16444 return NULL;
16445 }
16446
16447
16448 SWIGINTERN PyObject *_wrap_RadioBox_EnableItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16449 PyObject *resultobj = 0;
16450 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16451 unsigned int arg2 ;
16452 bool arg3 = (bool) true ;
16453 void *argp1 = 0 ;
16454 int res1 = 0 ;
16455 unsigned int val2 ;
16456 int ecode2 = 0 ;
16457 bool val3 ;
16458 int ecode3 = 0 ;
16459 PyObject * obj0 = 0 ;
16460 PyObject * obj1 = 0 ;
16461 PyObject * obj2 = 0 ;
16462 char * kwnames[] = {
16463 (char *) "self",(char *) "n",(char *) "enable", NULL
16464 };
16465
16466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16468 if (!SWIG_IsOK(res1)) {
16469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_EnableItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16470 }
16471 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16472 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16473 if (!SWIG_IsOK(ecode2)) {
16474 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_EnableItem" "', expected argument " "2"" of type '" "unsigned int""'");
16475 }
16476 arg2 = static_cast< unsigned int >(val2);
16477 if (obj2) {
16478 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16479 if (!SWIG_IsOK(ecode3)) {
16480 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_EnableItem" "', expected argument " "3"" of type '" "bool""'");
16481 }
16482 arg3 = static_cast< bool >(val3);
16483 }
16484 {
16485 PyThreadState* __tstate = wxPyBeginAllowThreads();
16486 (arg1)->Enable(arg2,arg3);
16487 wxPyEndAllowThreads(__tstate);
16488 if (PyErr_Occurred()) SWIG_fail;
16489 }
16490 resultobj = SWIG_Py_Void();
16491 return resultobj;
16492 fail:
16493 return NULL;
16494 }
16495
16496
16497 SWIGINTERN PyObject *_wrap_RadioBox_ShowItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16498 PyObject *resultobj = 0;
16499 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16500 unsigned int arg2 ;
16501 bool arg3 = (bool) true ;
16502 void *argp1 = 0 ;
16503 int res1 = 0 ;
16504 unsigned int val2 ;
16505 int ecode2 = 0 ;
16506 bool val3 ;
16507 int ecode3 = 0 ;
16508 PyObject * obj0 = 0 ;
16509 PyObject * obj1 = 0 ;
16510 PyObject * obj2 = 0 ;
16511 char * kwnames[] = {
16512 (char *) "self",(char *) "n",(char *) "show", NULL
16513 };
16514
16515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16516 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16517 if (!SWIG_IsOK(res1)) {
16518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_ShowItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16519 }
16520 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16521 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16522 if (!SWIG_IsOK(ecode2)) {
16523 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_ShowItem" "', expected argument " "2"" of type '" "unsigned int""'");
16524 }
16525 arg2 = static_cast< unsigned int >(val2);
16526 if (obj2) {
16527 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16528 if (!SWIG_IsOK(ecode3)) {
16529 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_ShowItem" "', expected argument " "3"" of type '" "bool""'");
16530 }
16531 arg3 = static_cast< bool >(val3);
16532 }
16533 {
16534 PyThreadState* __tstate = wxPyBeginAllowThreads();
16535 (arg1)->Show(arg2,arg3);
16536 wxPyEndAllowThreads(__tstate);
16537 if (PyErr_Occurred()) SWIG_fail;
16538 }
16539 resultobj = SWIG_Py_Void();
16540 return resultobj;
16541 fail:
16542 return NULL;
16543 }
16544
16545
16546 SWIGINTERN PyObject *_wrap_RadioBox_IsItemEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16547 PyObject *resultobj = 0;
16548 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16549 unsigned int arg2 ;
16550 bool result;
16551 void *argp1 = 0 ;
16552 int res1 = 0 ;
16553 unsigned int val2 ;
16554 int ecode2 = 0 ;
16555 PyObject * obj0 = 0 ;
16556 PyObject * obj1 = 0 ;
16557 char * kwnames[] = {
16558 (char *) "self",(char *) "n", NULL
16559 };
16560
16561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
16562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16563 if (!SWIG_IsOK(res1)) {
16564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16565 }
16566 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16567 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16568 if (!SWIG_IsOK(ecode2)) {
16569 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "2"" of type '" "unsigned int""'");
16570 }
16571 arg2 = static_cast< unsigned int >(val2);
16572 {
16573 PyThreadState* __tstate = wxPyBeginAllowThreads();
16574 result = (bool)((wxRadioBox const *)arg1)->IsItemEnabled(arg2);
16575 wxPyEndAllowThreads(__tstate);
16576 if (PyErr_Occurred()) SWIG_fail;
16577 }
16578 {
16579 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16580 }
16581 return resultobj;
16582 fail:
16583 return NULL;
16584 }
16585
16586
16587 SWIGINTERN PyObject *_wrap_RadioBox_IsItemShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16588 PyObject *resultobj = 0;
16589 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16590 unsigned int arg2 ;
16591 bool result;
16592 void *argp1 = 0 ;
16593 int res1 = 0 ;
16594 unsigned int val2 ;
16595 int ecode2 = 0 ;
16596 PyObject * obj0 = 0 ;
16597 PyObject * obj1 = 0 ;
16598 char * kwnames[] = {
16599 (char *) "self",(char *) "n", NULL
16600 };
16601
16602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemShown",kwnames,&obj0,&obj1)) SWIG_fail;
16603 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16604 if (!SWIG_IsOK(res1)) {
16605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemShown" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16606 }
16607 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16608 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16609 if (!SWIG_IsOK(ecode2)) {
16610 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemShown" "', expected argument " "2"" of type '" "unsigned int""'");
16611 }
16612 arg2 = static_cast< unsigned int >(val2);
16613 {
16614 PyThreadState* __tstate = wxPyBeginAllowThreads();
16615 result = (bool)((wxRadioBox const *)arg1)->IsItemShown(arg2);
16616 wxPyEndAllowThreads(__tstate);
16617 if (PyErr_Occurred()) SWIG_fail;
16618 }
16619 {
16620 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16621 }
16622 return resultobj;
16623 fail:
16624 return NULL;
16625 }
16626
16627
16628 SWIGINTERN PyObject *_wrap_RadioBox_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16629 PyObject *resultobj = 0;
16630 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16631 unsigned int result;
16632 void *argp1 = 0 ;
16633 int res1 = 0 ;
16634 PyObject *swig_obj[1] ;
16635
16636 if (!args) SWIG_fail;
16637 swig_obj[0] = args;
16638 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16639 if (!SWIG_IsOK(res1)) {
16640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetColumnCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16641 }
16642 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16643 {
16644 PyThreadState* __tstate = wxPyBeginAllowThreads();
16645 result = (unsigned int)((wxRadioBox const *)arg1)->GetColumnCount();
16646 wxPyEndAllowThreads(__tstate);
16647 if (PyErr_Occurred()) SWIG_fail;
16648 }
16649 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
16650 return resultobj;
16651 fail:
16652 return NULL;
16653 }
16654
16655
16656 SWIGINTERN PyObject *_wrap_RadioBox_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16657 PyObject *resultobj = 0;
16658 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16659 unsigned int result;
16660 void *argp1 = 0 ;
16661 int res1 = 0 ;
16662 PyObject *swig_obj[1] ;
16663
16664 if (!args) SWIG_fail;
16665 swig_obj[0] = args;
16666 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16667 if (!SWIG_IsOK(res1)) {
16668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetRowCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16669 }
16670 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16671 {
16672 PyThreadState* __tstate = wxPyBeginAllowThreads();
16673 result = (unsigned int)((wxRadioBox const *)arg1)->GetRowCount();
16674 wxPyEndAllowThreads(__tstate);
16675 if (PyErr_Occurred()) SWIG_fail;
16676 }
16677 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
16678 return resultobj;
16679 fail:
16680 return NULL;
16681 }
16682
16683
16684 SWIGINTERN PyObject *_wrap_RadioBox_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16685 PyObject *resultobj = 0;
16686 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16687 int arg2 ;
16688 wxDirection arg3 ;
16689 long arg4 ;
16690 int result;
16691 void *argp1 = 0 ;
16692 int res1 = 0 ;
16693 int val2 ;
16694 int ecode2 = 0 ;
16695 int val3 ;
16696 int ecode3 = 0 ;
16697 long val4 ;
16698 int ecode4 = 0 ;
16699 PyObject * obj0 = 0 ;
16700 PyObject * obj1 = 0 ;
16701 PyObject * obj2 = 0 ;
16702 PyObject * obj3 = 0 ;
16703 char * kwnames[] = {
16704 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
16705 };
16706
16707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16709 if (!SWIG_IsOK(res1)) {
16710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetNextItem" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16711 }
16712 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16713 ecode2 = SWIG_AsVal_int(obj1, &val2);
16714 if (!SWIG_IsOK(ecode2)) {
16715 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetNextItem" "', expected argument " "2"" of type '" "int""'");
16716 }
16717 arg2 = static_cast< int >(val2);
16718 ecode3 = SWIG_AsVal_int(obj2, &val3);
16719 if (!SWIG_IsOK(ecode3)) {
16720 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_GetNextItem" "', expected argument " "3"" of type '" "wxDirection""'");
16721 }
16722 arg3 = static_cast< wxDirection >(val3);
16723 ecode4 = SWIG_AsVal_long(obj3, &val4);
16724 if (!SWIG_IsOK(ecode4)) {
16725 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RadioBox_GetNextItem" "', expected argument " "4"" of type '" "long""'");
16726 }
16727 arg4 = static_cast< long >(val4);
16728 {
16729 PyThreadState* __tstate = wxPyBeginAllowThreads();
16730 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,arg3,arg4);
16731 wxPyEndAllowThreads(__tstate);
16732 if (PyErr_Occurred()) SWIG_fail;
16733 }
16734 resultobj = SWIG_From_int(static_cast< int >(result));
16735 return resultobj;
16736 fail:
16737 return NULL;
16738 }
16739
16740
16741 SWIGINTERN PyObject *_wrap_RadioBox_SetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16742 PyObject *resultobj = 0;
16743 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16744 unsigned int arg2 ;
16745 wxString *arg3 = 0 ;
16746 void *argp1 = 0 ;
16747 int res1 = 0 ;
16748 unsigned int val2 ;
16749 int ecode2 = 0 ;
16750 bool temp3 = false ;
16751 PyObject * obj0 = 0 ;
16752 PyObject * obj1 = 0 ;
16753 PyObject * obj2 = 0 ;
16754 char * kwnames[] = {
16755 (char *) "self",(char *) "item",(char *) "text", NULL
16756 };
16757
16758 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemToolTip",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16759 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16760 if (!SWIG_IsOK(res1)) {
16761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16762 }
16763 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16764 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16765 if (!SWIG_IsOK(ecode2)) {
16766 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
16767 }
16768 arg2 = static_cast< unsigned int >(val2);
16769 {
16770 arg3 = wxString_in_helper(obj2);
16771 if (arg3 == NULL) SWIG_fail;
16772 temp3 = true;
16773 }
16774 {
16775 PyThreadState* __tstate = wxPyBeginAllowThreads();
16776 (arg1)->SetItemToolTip(arg2,(wxString const &)*arg3);
16777 wxPyEndAllowThreads(__tstate);
16778 if (PyErr_Occurred()) SWIG_fail;
16779 }
16780 resultobj = SWIG_Py_Void();
16781 {
16782 if (temp3)
16783 delete arg3;
16784 }
16785 return resultobj;
16786 fail:
16787 {
16788 if (temp3)
16789 delete arg3;
16790 }
16791 return NULL;
16792 }
16793
16794
16795 SWIGINTERN PyObject *_wrap_RadioBox_GetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16796 PyObject *resultobj = 0;
16797 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16798 unsigned int arg2 ;
16799 wxToolTip *result = 0 ;
16800 void *argp1 = 0 ;
16801 int res1 = 0 ;
16802 unsigned int val2 ;
16803 int ecode2 = 0 ;
16804 PyObject * obj0 = 0 ;
16805 PyObject * obj1 = 0 ;
16806 char * kwnames[] = {
16807 (char *) "self",(char *) "item", NULL
16808 };
16809
16810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
16811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16812 if (!SWIG_IsOK(res1)) {
16813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16814 }
16815 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16816 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16817 if (!SWIG_IsOK(ecode2)) {
16818 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
16819 }
16820 arg2 = static_cast< unsigned int >(val2);
16821 {
16822 PyThreadState* __tstate = wxPyBeginAllowThreads();
16823 result = (wxToolTip *)((wxRadioBox const *)arg1)->GetItemToolTip(arg2);
16824 wxPyEndAllowThreads(__tstate);
16825 if (PyErr_Occurred()) SWIG_fail;
16826 }
16827 {
16828 resultobj = wxPyMake_wxObject(result, (bool)0);
16829 }
16830 return resultobj;
16831 fail:
16832 return NULL;
16833 }
16834
16835
16836 SWIGINTERN PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16837 PyObject *resultobj = 0;
16838 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
16839 SwigValueWrapper<wxVisualAttributes > result;
16840 int val1 ;
16841 int ecode1 = 0 ;
16842 PyObject * obj0 = 0 ;
16843 char * kwnames[] = {
16844 (char *) "variant", NULL
16845 };
16846
16847 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
16848 if (obj0) {
16849 ecode1 = SWIG_AsVal_int(obj0, &val1);
16850 if (!SWIG_IsOK(ecode1)) {
16851 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
16852 }
16853 arg1 = static_cast< wxWindowVariant >(val1);
16854 }
16855 {
16856 if (!wxPyCheckForApp()) SWIG_fail;
16857 PyThreadState* __tstate = wxPyBeginAllowThreads();
16858 result = wxRadioBox::GetClassDefaultAttributes(arg1);
16859 wxPyEndAllowThreads(__tstate);
16860 if (PyErr_Occurred()) SWIG_fail;
16861 }
16862 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
16863 return resultobj;
16864 fail:
16865 return NULL;
16866 }
16867
16868
16869 SWIGINTERN PyObject *RadioBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16870 PyObject *obj;
16871 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16872 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioBox, SWIG_NewClientData(obj));
16873 return SWIG_Py_Void();
16874 }
16875
16876 SWIGINTERN PyObject *RadioBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16877 return SWIG_Python_InitShadowInstance(args);
16878 }
16879
16880 SWIGINTERN PyObject *_wrap_new_RadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16881 PyObject *resultobj = 0;
16882 wxWindow *arg1 = (wxWindow *) 0 ;
16883 int arg2 = (int) -1 ;
16884 wxString const &arg3_defvalue = wxPyEmptyString ;
16885 wxString *arg3 = (wxString *) &arg3_defvalue ;
16886 wxPoint const &arg4_defvalue = wxDefaultPosition ;
16887 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
16888 wxSize const &arg5_defvalue = wxDefaultSize ;
16889 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
16890 long arg6 = (long) 0 ;
16891 wxValidator const &arg7_defvalue = wxDefaultValidator ;
16892 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
16893 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
16894 wxString *arg8 = (wxString *) &arg8_defvalue ;
16895 wxRadioButton *result = 0 ;
16896 void *argp1 = 0 ;
16897 int res1 = 0 ;
16898 int val2 ;
16899 int ecode2 = 0 ;
16900 bool temp3 = false ;
16901 wxPoint temp4 ;
16902 wxSize temp5 ;
16903 long val6 ;
16904 int ecode6 = 0 ;
16905 void *argp7 = 0 ;
16906 int res7 = 0 ;
16907 bool temp8 = false ;
16908 PyObject * obj0 = 0 ;
16909 PyObject * obj1 = 0 ;
16910 PyObject * obj2 = 0 ;
16911 PyObject * obj3 = 0 ;
16912 PyObject * obj4 = 0 ;
16913 PyObject * obj5 = 0 ;
16914 PyObject * obj6 = 0 ;
16915 PyObject * obj7 = 0 ;
16916 char * kwnames[] = {
16917 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
16918 };
16919
16920 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
16921 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
16922 if (!SWIG_IsOK(res1)) {
16923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioButton" "', expected argument " "1"" of type '" "wxWindow *""'");
16924 }
16925 arg1 = reinterpret_cast< wxWindow * >(argp1);
16926 if (obj1) {
16927 ecode2 = SWIG_AsVal_int(obj1, &val2);
16928 if (!SWIG_IsOK(ecode2)) {
16929 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioButton" "', expected argument " "2"" of type '" "int""'");
16930 }
16931 arg2 = static_cast< int >(val2);
16932 }
16933 if (obj2) {
16934 {
16935 arg3 = wxString_in_helper(obj2);
16936 if (arg3 == NULL) SWIG_fail;
16937 temp3 = true;
16938 }
16939 }
16940 if (obj3) {
16941 {
16942 arg4 = &temp4;
16943 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
16944 }
16945 }
16946 if (obj4) {
16947 {
16948 arg5 = &temp5;
16949 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
16950 }
16951 }
16952 if (obj5) {
16953 ecode6 = SWIG_AsVal_long(obj5, &val6);
16954 if (!SWIG_IsOK(ecode6)) {
16955 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RadioButton" "', expected argument " "6"" of type '" "long""'");
16956 }
16957 arg6 = static_cast< long >(val6);
16958 }
16959 if (obj6) {
16960 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
16961 if (!SWIG_IsOK(res7)) {
16962 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
16963 }
16964 if (!argp7) {
16965 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
16966 }
16967 arg7 = reinterpret_cast< wxValidator * >(argp7);
16968 }
16969 if (obj7) {
16970 {
16971 arg8 = wxString_in_helper(obj7);
16972 if (arg8 == NULL) SWIG_fail;
16973 temp8 = true;
16974 }
16975 }
16976 {
16977 if (!wxPyCheckForApp()) SWIG_fail;
16978 PyThreadState* __tstate = wxPyBeginAllowThreads();
16979 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
16980 wxPyEndAllowThreads(__tstate);
16981 if (PyErr_Occurred()) SWIG_fail;
16982 }
16983 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_NEW | 0 );
16984 {
16985 if (temp3)
16986 delete arg3;
16987 }
16988 {
16989 if (temp8)
16990 delete arg8;
16991 }
16992 return resultobj;
16993 fail:
16994 {
16995 if (temp3)
16996 delete arg3;
16997 }
16998 {
16999 if (temp8)
17000 delete arg8;
17001 }
17002 return NULL;
17003 }
17004
17005
17006 SWIGINTERN PyObject *_wrap_new_PreRadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17007 PyObject *resultobj = 0;
17008 wxRadioButton *result = 0 ;
17009
17010 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioButton",0,0,0)) SWIG_fail;
17011 {
17012 if (!wxPyCheckForApp()) SWIG_fail;
17013 PyThreadState* __tstate = wxPyBeginAllowThreads();
17014 result = (wxRadioButton *)new wxRadioButton();
17015 wxPyEndAllowThreads(__tstate);
17016 if (PyErr_Occurred()) SWIG_fail;
17017 }
17018 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_OWN | 0 );
17019 return resultobj;
17020 fail:
17021 return NULL;
17022 }
17023
17024
17025 SWIGINTERN PyObject *_wrap_RadioButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17026 PyObject *resultobj = 0;
17027 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17028 wxWindow *arg2 = (wxWindow *) 0 ;
17029 int arg3 = (int) -1 ;
17030 wxString const &arg4_defvalue = wxPyEmptyString ;
17031 wxString *arg4 = (wxString *) &arg4_defvalue ;
17032 wxPoint const &arg5_defvalue = wxDefaultPosition ;
17033 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
17034 wxSize const &arg6_defvalue = wxDefaultSize ;
17035 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
17036 long arg7 = (long) 0 ;
17037 wxValidator const &arg8_defvalue = wxDefaultValidator ;
17038 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
17039 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
17040 wxString *arg9 = (wxString *) &arg9_defvalue ;
17041 bool result;
17042 void *argp1 = 0 ;
17043 int res1 = 0 ;
17044 void *argp2 = 0 ;
17045 int res2 = 0 ;
17046 int val3 ;
17047 int ecode3 = 0 ;
17048 bool temp4 = false ;
17049 wxPoint temp5 ;
17050 wxSize temp6 ;
17051 long val7 ;
17052 int ecode7 = 0 ;
17053 void *argp8 = 0 ;
17054 int res8 = 0 ;
17055 bool temp9 = false ;
17056 PyObject * obj0 = 0 ;
17057 PyObject * obj1 = 0 ;
17058 PyObject * obj2 = 0 ;
17059 PyObject * obj3 = 0 ;
17060 PyObject * obj4 = 0 ;
17061 PyObject * obj5 = 0 ;
17062 PyObject * obj6 = 0 ;
17063 PyObject * obj7 = 0 ;
17064 PyObject * obj8 = 0 ;
17065 char * kwnames[] = {
17066 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17067 };
17068
17069 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
17070 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17071 if (!SWIG_IsOK(res1)) {
17072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_Create" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17073 }
17074 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17075 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17076 if (!SWIG_IsOK(res2)) {
17077 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17078 }
17079 arg2 = reinterpret_cast< wxWindow * >(argp2);
17080 if (obj2) {
17081 ecode3 = SWIG_AsVal_int(obj2, &val3);
17082 if (!SWIG_IsOK(ecode3)) {
17083 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioButton_Create" "', expected argument " "3"" of type '" "int""'");
17084 }
17085 arg3 = static_cast< int >(val3);
17086 }
17087 if (obj3) {
17088 {
17089 arg4 = wxString_in_helper(obj3);
17090 if (arg4 == NULL) SWIG_fail;
17091 temp4 = true;
17092 }
17093 }
17094 if (obj4) {
17095 {
17096 arg5 = &temp5;
17097 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17098 }
17099 }
17100 if (obj5) {
17101 {
17102 arg6 = &temp6;
17103 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
17104 }
17105 }
17106 if (obj6) {
17107 ecode7 = SWIG_AsVal_long(obj6, &val7);
17108 if (!SWIG_IsOK(ecode7)) {
17109 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RadioButton_Create" "', expected argument " "7"" of type '" "long""'");
17110 }
17111 arg7 = static_cast< long >(val7);
17112 }
17113 if (obj7) {
17114 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
17115 if (!SWIG_IsOK(res8)) {
17116 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17117 }
17118 if (!argp8) {
17119 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17120 }
17121 arg8 = reinterpret_cast< wxValidator * >(argp8);
17122 }
17123 if (obj8) {
17124 {
17125 arg9 = wxString_in_helper(obj8);
17126 if (arg9 == NULL) SWIG_fail;
17127 temp9 = true;
17128 }
17129 }
17130 {
17131 PyThreadState* __tstate = wxPyBeginAllowThreads();
17132 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
17133 wxPyEndAllowThreads(__tstate);
17134 if (PyErr_Occurred()) SWIG_fail;
17135 }
17136 {
17137 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17138 }
17139 {
17140 if (temp4)
17141 delete arg4;
17142 }
17143 {
17144 if (temp9)
17145 delete arg9;
17146 }
17147 return resultobj;
17148 fail:
17149 {
17150 if (temp4)
17151 delete arg4;
17152 }
17153 {
17154 if (temp9)
17155 delete arg9;
17156 }
17157 return NULL;
17158 }
17159
17160
17161 SWIGINTERN PyObject *_wrap_RadioButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17162 PyObject *resultobj = 0;
17163 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17164 bool result;
17165 void *argp1 = 0 ;
17166 int res1 = 0 ;
17167 PyObject *swig_obj[1] ;
17168
17169 if (!args) SWIG_fail;
17170 swig_obj[0] = args;
17171 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17172 if (!SWIG_IsOK(res1)) {
17173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_GetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17174 }
17175 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17176 {
17177 PyThreadState* __tstate = wxPyBeginAllowThreads();
17178 result = (bool)(arg1)->GetValue();
17179 wxPyEndAllowThreads(__tstate);
17180 if (PyErr_Occurred()) SWIG_fail;
17181 }
17182 {
17183 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17184 }
17185 return resultobj;
17186 fail:
17187 return NULL;
17188 }
17189
17190
17191 SWIGINTERN PyObject *_wrap_RadioButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17192 PyObject *resultobj = 0;
17193 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17194 bool arg2 ;
17195 void *argp1 = 0 ;
17196 int res1 = 0 ;
17197 bool val2 ;
17198 int ecode2 = 0 ;
17199 PyObject * obj0 = 0 ;
17200 PyObject * obj1 = 0 ;
17201 char * kwnames[] = {
17202 (char *) "self",(char *) "value", NULL
17203 };
17204
17205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17207 if (!SWIG_IsOK(res1)) {
17208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_SetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17209 }
17210 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17211 ecode2 = SWIG_AsVal_bool(obj1, &val2);
17212 if (!SWIG_IsOK(ecode2)) {
17213 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
17214 }
17215 arg2 = static_cast< bool >(val2);
17216 {
17217 PyThreadState* __tstate = wxPyBeginAllowThreads();
17218 (arg1)->SetValue(arg2);
17219 wxPyEndAllowThreads(__tstate);
17220 if (PyErr_Occurred()) SWIG_fail;
17221 }
17222 resultobj = SWIG_Py_Void();
17223 return resultobj;
17224 fail:
17225 return NULL;
17226 }
17227
17228
17229 SWIGINTERN PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17230 PyObject *resultobj = 0;
17231 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17232 SwigValueWrapper<wxVisualAttributes > result;
17233 int val1 ;
17234 int ecode1 = 0 ;
17235 PyObject * obj0 = 0 ;
17236 char * kwnames[] = {
17237 (char *) "variant", NULL
17238 };
17239
17240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17241 if (obj0) {
17242 ecode1 = SWIG_AsVal_int(obj0, &val1);
17243 if (!SWIG_IsOK(ecode1)) {
17244 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17245 }
17246 arg1 = static_cast< wxWindowVariant >(val1);
17247 }
17248 {
17249 if (!wxPyCheckForApp()) SWIG_fail;
17250 PyThreadState* __tstate = wxPyBeginAllowThreads();
17251 result = wxRadioButton::GetClassDefaultAttributes(arg1);
17252 wxPyEndAllowThreads(__tstate);
17253 if (PyErr_Occurred()) SWIG_fail;
17254 }
17255 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17256 return resultobj;
17257 fail:
17258 return NULL;
17259 }
17260
17261
17262 SWIGINTERN PyObject *RadioButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17263 PyObject *obj;
17264 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17265 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioButton, SWIG_NewClientData(obj));
17266 return SWIG_Py_Void();
17267 }
17268
17269 SWIGINTERN PyObject *RadioButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17270 return SWIG_Python_InitShadowInstance(args);
17271 }
17272
17273 SWIGINTERN int SliderNameStr_set(PyObject *) {
17274 SWIG_Error(SWIG_AttributeError,"Variable SliderNameStr is read-only.");
17275 return 1;
17276 }
17277
17278
17279 SWIGINTERN PyObject *SliderNameStr_get(void) {
17280 PyObject *pyobj = 0;
17281
17282 {
17283 #if wxUSE_UNICODE
17284 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17285 #else
17286 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17287 #endif
17288 }
17289 return pyobj;
17290 }
17291
17292
17293 SWIGINTERN PyObject *_wrap_new_Slider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17294 PyObject *resultobj = 0;
17295 wxWindow *arg1 = (wxWindow *) 0 ;
17296 int arg2 = (int) -1 ;
17297 int arg3 = (int) 0 ;
17298 int arg4 = (int) 0 ;
17299 int arg5 = (int) 100 ;
17300 wxPoint const &arg6_defvalue = wxDefaultPosition ;
17301 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
17302 wxSize const &arg7_defvalue = wxDefaultSize ;
17303 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
17304 long arg8 = (long) wxSL_HORIZONTAL ;
17305 wxValidator const &arg9_defvalue = wxDefaultValidator ;
17306 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
17307 wxString const &arg10_defvalue = wxPySliderNameStr ;
17308 wxString *arg10 = (wxString *) &arg10_defvalue ;
17309 wxSlider *result = 0 ;
17310 void *argp1 = 0 ;
17311 int res1 = 0 ;
17312 int val2 ;
17313 int ecode2 = 0 ;
17314 int val3 ;
17315 int ecode3 = 0 ;
17316 int val4 ;
17317 int ecode4 = 0 ;
17318 int val5 ;
17319 int ecode5 = 0 ;
17320 wxPoint temp6 ;
17321 wxSize temp7 ;
17322 long val8 ;
17323 int ecode8 = 0 ;
17324 void *argp9 = 0 ;
17325 int res9 = 0 ;
17326 bool temp10 = false ;
17327 PyObject * obj0 = 0 ;
17328 PyObject * obj1 = 0 ;
17329 PyObject * obj2 = 0 ;
17330 PyObject * obj3 = 0 ;
17331 PyObject * obj4 = 0 ;
17332 PyObject * obj5 = 0 ;
17333 PyObject * obj6 = 0 ;
17334 PyObject * obj7 = 0 ;
17335 PyObject * obj8 = 0 ;
17336 PyObject * obj9 = 0 ;
17337 char * kwnames[] = {
17338 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17339 };
17340
17341 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
17342 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17343 if (!SWIG_IsOK(res1)) {
17344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Slider" "', expected argument " "1"" of type '" "wxWindow *""'");
17345 }
17346 arg1 = reinterpret_cast< wxWindow * >(argp1);
17347 if (obj1) {
17348 ecode2 = SWIG_AsVal_int(obj1, &val2);
17349 if (!SWIG_IsOK(ecode2)) {
17350 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Slider" "', expected argument " "2"" of type '" "int""'");
17351 }
17352 arg2 = static_cast< int >(val2);
17353 }
17354 if (obj2) {
17355 ecode3 = SWIG_AsVal_int(obj2, &val3);
17356 if (!SWIG_IsOK(ecode3)) {
17357 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Slider" "', expected argument " "3"" of type '" "int""'");
17358 }
17359 arg3 = static_cast< int >(val3);
17360 }
17361 if (obj3) {
17362 ecode4 = SWIG_AsVal_int(obj3, &val4);
17363 if (!SWIG_IsOK(ecode4)) {
17364 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Slider" "', expected argument " "4"" of type '" "int""'");
17365 }
17366 arg4 = static_cast< int >(val4);
17367 }
17368 if (obj4) {
17369 ecode5 = SWIG_AsVal_int(obj4, &val5);
17370 if (!SWIG_IsOK(ecode5)) {
17371 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Slider" "', expected argument " "5"" of type '" "int""'");
17372 }
17373 arg5 = static_cast< int >(val5);
17374 }
17375 if (obj5) {
17376 {
17377 arg6 = &temp6;
17378 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
17379 }
17380 }
17381 if (obj6) {
17382 {
17383 arg7 = &temp7;
17384 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
17385 }
17386 }
17387 if (obj7) {
17388 ecode8 = SWIG_AsVal_long(obj7, &val8);
17389 if (!SWIG_IsOK(ecode8)) {
17390 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Slider" "', expected argument " "8"" of type '" "long""'");
17391 }
17392 arg8 = static_cast< long >(val8);
17393 }
17394 if (obj8) {
17395 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
17396 if (!SWIG_IsOK(res9)) {
17397 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
17398 }
17399 if (!argp9) {
17400 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
17401 }
17402 arg9 = reinterpret_cast< wxValidator * >(argp9);
17403 }
17404 if (obj9) {
17405 {
17406 arg10 = wxString_in_helper(obj9);
17407 if (arg10 == NULL) SWIG_fail;
17408 temp10 = true;
17409 }
17410 }
17411 {
17412 if (!wxPyCheckForApp()) SWIG_fail;
17413 PyThreadState* __tstate = wxPyBeginAllowThreads();
17414 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
17415 wxPyEndAllowThreads(__tstate);
17416 if (PyErr_Occurred()) SWIG_fail;
17417 }
17418 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_NEW | 0 );
17419 {
17420 if (temp10)
17421 delete arg10;
17422 }
17423 return resultobj;
17424 fail:
17425 {
17426 if (temp10)
17427 delete arg10;
17428 }
17429 return NULL;
17430 }
17431
17432
17433 SWIGINTERN PyObject *_wrap_new_PreSlider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17434 PyObject *resultobj = 0;
17435 wxSlider *result = 0 ;
17436
17437 if (!SWIG_Python_UnpackTuple(args,"new_PreSlider",0,0,0)) SWIG_fail;
17438 {
17439 if (!wxPyCheckForApp()) SWIG_fail;
17440 PyThreadState* __tstate = wxPyBeginAllowThreads();
17441 result = (wxSlider *)new wxSlider();
17442 wxPyEndAllowThreads(__tstate);
17443 if (PyErr_Occurred()) SWIG_fail;
17444 }
17445 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_OWN | 0 );
17446 return resultobj;
17447 fail:
17448 return NULL;
17449 }
17450
17451
17452 SWIGINTERN PyObject *_wrap_Slider_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17453 PyObject *resultobj = 0;
17454 wxSlider *arg1 = (wxSlider *) 0 ;
17455 wxWindow *arg2 = (wxWindow *) 0 ;
17456 int arg3 = (int) -1 ;
17457 int arg4 = (int) 0 ;
17458 int arg5 = (int) 0 ;
17459 int arg6 = (int) 100 ;
17460 wxPoint const &arg7_defvalue = wxDefaultPosition ;
17461 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
17462 wxSize const &arg8_defvalue = wxDefaultSize ;
17463 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
17464 long arg9 = (long) wxSL_HORIZONTAL ;
17465 wxValidator const &arg10_defvalue = wxDefaultValidator ;
17466 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
17467 wxString const &arg11_defvalue = wxPySliderNameStr ;
17468 wxString *arg11 = (wxString *) &arg11_defvalue ;
17469 bool result;
17470 void *argp1 = 0 ;
17471 int res1 = 0 ;
17472 void *argp2 = 0 ;
17473 int res2 = 0 ;
17474 int val3 ;
17475 int ecode3 = 0 ;
17476 int val4 ;
17477 int ecode4 = 0 ;
17478 int val5 ;
17479 int ecode5 = 0 ;
17480 int val6 ;
17481 int ecode6 = 0 ;
17482 wxPoint temp7 ;
17483 wxSize temp8 ;
17484 long val9 ;
17485 int ecode9 = 0 ;
17486 void *argp10 = 0 ;
17487 int res10 = 0 ;
17488 bool temp11 = false ;
17489 PyObject * obj0 = 0 ;
17490 PyObject * obj1 = 0 ;
17491 PyObject * obj2 = 0 ;
17492 PyObject * obj3 = 0 ;
17493 PyObject * obj4 = 0 ;
17494 PyObject * obj5 = 0 ;
17495 PyObject * obj6 = 0 ;
17496 PyObject * obj7 = 0 ;
17497 PyObject * obj8 = 0 ;
17498 PyObject * obj9 = 0 ;
17499 PyObject * obj10 = 0 ;
17500 char * kwnames[] = {
17501 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17502 };
17503
17504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
17505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17506 if (!SWIG_IsOK(res1)) {
17507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_Create" "', expected argument " "1"" of type '" "wxSlider *""'");
17508 }
17509 arg1 = reinterpret_cast< wxSlider * >(argp1);
17510 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17511 if (!SWIG_IsOK(res2)) {
17512 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Slider_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17513 }
17514 arg2 = reinterpret_cast< wxWindow * >(argp2);
17515 if (obj2) {
17516 ecode3 = SWIG_AsVal_int(obj2, &val3);
17517 if (!SWIG_IsOK(ecode3)) {
17518 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_Create" "', expected argument " "3"" of type '" "int""'");
17519 }
17520 arg3 = static_cast< int >(val3);
17521 }
17522 if (obj3) {
17523 ecode4 = SWIG_AsVal_int(obj3, &val4);
17524 if (!SWIG_IsOK(ecode4)) {
17525 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Slider_Create" "', expected argument " "4"" of type '" "int""'");
17526 }
17527 arg4 = static_cast< int >(val4);
17528 }
17529 if (obj4) {
17530 ecode5 = SWIG_AsVal_int(obj4, &val5);
17531 if (!SWIG_IsOK(ecode5)) {
17532 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Slider_Create" "', expected argument " "5"" of type '" "int""'");
17533 }
17534 arg5 = static_cast< int >(val5);
17535 }
17536 if (obj5) {
17537 ecode6 = SWIG_AsVal_int(obj5, &val6);
17538 if (!SWIG_IsOK(ecode6)) {
17539 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Slider_Create" "', expected argument " "6"" of type '" "int""'");
17540 }
17541 arg6 = static_cast< int >(val6);
17542 }
17543 if (obj6) {
17544 {
17545 arg7 = &temp7;
17546 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
17547 }
17548 }
17549 if (obj7) {
17550 {
17551 arg8 = &temp8;
17552 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
17553 }
17554 }
17555 if (obj8) {
17556 ecode9 = SWIG_AsVal_long(obj8, &val9);
17557 if (!SWIG_IsOK(ecode9)) {
17558 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "Slider_Create" "', expected argument " "9"" of type '" "long""'");
17559 }
17560 arg9 = static_cast< long >(val9);
17561 }
17562 if (obj9) {
17563 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
17564 if (!SWIG_IsOK(res10)) {
17565 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
17566 }
17567 if (!argp10) {
17568 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
17569 }
17570 arg10 = reinterpret_cast< wxValidator * >(argp10);
17571 }
17572 if (obj10) {
17573 {
17574 arg11 = wxString_in_helper(obj10);
17575 if (arg11 == NULL) SWIG_fail;
17576 temp11 = true;
17577 }
17578 }
17579 {
17580 PyThreadState* __tstate = wxPyBeginAllowThreads();
17581 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
17582 wxPyEndAllowThreads(__tstate);
17583 if (PyErr_Occurred()) SWIG_fail;
17584 }
17585 {
17586 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17587 }
17588 {
17589 if (temp11)
17590 delete arg11;
17591 }
17592 return resultobj;
17593 fail:
17594 {
17595 if (temp11)
17596 delete arg11;
17597 }
17598 return NULL;
17599 }
17600
17601
17602 SWIGINTERN PyObject *_wrap_Slider_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17603 PyObject *resultobj = 0;
17604 wxSlider *arg1 = (wxSlider *) 0 ;
17605 int result;
17606 void *argp1 = 0 ;
17607 int res1 = 0 ;
17608 PyObject *swig_obj[1] ;
17609
17610 if (!args) SWIG_fail;
17611 swig_obj[0] = args;
17612 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17613 if (!SWIG_IsOK(res1)) {
17614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetValue" "', expected argument " "1"" of type '" "wxSlider const *""'");
17615 }
17616 arg1 = reinterpret_cast< wxSlider * >(argp1);
17617 {
17618 PyThreadState* __tstate = wxPyBeginAllowThreads();
17619 result = (int)((wxSlider const *)arg1)->GetValue();
17620 wxPyEndAllowThreads(__tstate);
17621 if (PyErr_Occurred()) SWIG_fail;
17622 }
17623 resultobj = SWIG_From_int(static_cast< int >(result));
17624 return resultobj;
17625 fail:
17626 return NULL;
17627 }
17628
17629
17630 SWIGINTERN PyObject *_wrap_Slider_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17631 PyObject *resultobj = 0;
17632 wxSlider *arg1 = (wxSlider *) 0 ;
17633 int arg2 ;
17634 void *argp1 = 0 ;
17635 int res1 = 0 ;
17636 int val2 ;
17637 int ecode2 = 0 ;
17638 PyObject * obj0 = 0 ;
17639 PyObject * obj1 = 0 ;
17640 char * kwnames[] = {
17641 (char *) "self",(char *) "value", NULL
17642 };
17643
17644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17646 if (!SWIG_IsOK(res1)) {
17647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetValue" "', expected argument " "1"" of type '" "wxSlider *""'");
17648 }
17649 arg1 = reinterpret_cast< wxSlider * >(argp1);
17650 ecode2 = SWIG_AsVal_int(obj1, &val2);
17651 if (!SWIG_IsOK(ecode2)) {
17652 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetValue" "', expected argument " "2"" of type '" "int""'");
17653 }
17654 arg2 = static_cast< int >(val2);
17655 {
17656 PyThreadState* __tstate = wxPyBeginAllowThreads();
17657 (arg1)->SetValue(arg2);
17658 wxPyEndAllowThreads(__tstate);
17659 if (PyErr_Occurred()) SWIG_fail;
17660 }
17661 resultobj = SWIG_Py_Void();
17662 return resultobj;
17663 fail:
17664 return NULL;
17665 }
17666
17667
17668 SWIGINTERN PyObject *_wrap_Slider_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17669 PyObject *resultobj = 0;
17670 wxSlider *arg1 = (wxSlider *) 0 ;
17671 int arg2 ;
17672 int arg3 ;
17673 void *argp1 = 0 ;
17674 int res1 = 0 ;
17675 int val2 ;
17676 int ecode2 = 0 ;
17677 int val3 ;
17678 int ecode3 = 0 ;
17679 PyObject * obj0 = 0 ;
17680 PyObject * obj1 = 0 ;
17681 PyObject * obj2 = 0 ;
17682 char * kwnames[] = {
17683 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
17684 };
17685
17686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17688 if (!SWIG_IsOK(res1)) {
17689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetRange" "', expected argument " "1"" of type '" "wxSlider *""'");
17690 }
17691 arg1 = reinterpret_cast< wxSlider * >(argp1);
17692 ecode2 = SWIG_AsVal_int(obj1, &val2);
17693 if (!SWIG_IsOK(ecode2)) {
17694 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetRange" "', expected argument " "2"" of type '" "int""'");
17695 }
17696 arg2 = static_cast< int >(val2);
17697 ecode3 = SWIG_AsVal_int(obj2, &val3);
17698 if (!SWIG_IsOK(ecode3)) {
17699 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetRange" "', expected argument " "3"" of type '" "int""'");
17700 }
17701 arg3 = static_cast< int >(val3);
17702 {
17703 PyThreadState* __tstate = wxPyBeginAllowThreads();
17704 (arg1)->SetRange(arg2,arg3);
17705 wxPyEndAllowThreads(__tstate);
17706 if (PyErr_Occurred()) SWIG_fail;
17707 }
17708 resultobj = SWIG_Py_Void();
17709 return resultobj;
17710 fail:
17711 return NULL;
17712 }
17713
17714
17715 SWIGINTERN PyObject *_wrap_Slider_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17716 PyObject *resultobj = 0;
17717 wxSlider *arg1 = (wxSlider *) 0 ;
17718 int result;
17719 void *argp1 = 0 ;
17720 int res1 = 0 ;
17721 PyObject *swig_obj[1] ;
17722
17723 if (!args) SWIG_fail;
17724 swig_obj[0] = args;
17725 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17726 if (!SWIG_IsOK(res1)) {
17727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMin" "', expected argument " "1"" of type '" "wxSlider const *""'");
17728 }
17729 arg1 = reinterpret_cast< wxSlider * >(argp1);
17730 {
17731 PyThreadState* __tstate = wxPyBeginAllowThreads();
17732 result = (int)((wxSlider const *)arg1)->GetMin();
17733 wxPyEndAllowThreads(__tstate);
17734 if (PyErr_Occurred()) SWIG_fail;
17735 }
17736 resultobj = SWIG_From_int(static_cast< int >(result));
17737 return resultobj;
17738 fail:
17739 return NULL;
17740 }
17741
17742
17743 SWIGINTERN PyObject *_wrap_Slider_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17744 PyObject *resultobj = 0;
17745 wxSlider *arg1 = (wxSlider *) 0 ;
17746 int result;
17747 void *argp1 = 0 ;
17748 int res1 = 0 ;
17749 PyObject *swig_obj[1] ;
17750
17751 if (!args) SWIG_fail;
17752 swig_obj[0] = args;
17753 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17754 if (!SWIG_IsOK(res1)) {
17755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMax" "', expected argument " "1"" of type '" "wxSlider const *""'");
17756 }
17757 arg1 = reinterpret_cast< wxSlider * >(argp1);
17758 {
17759 PyThreadState* __tstate = wxPyBeginAllowThreads();
17760 result = (int)((wxSlider const *)arg1)->GetMax();
17761 wxPyEndAllowThreads(__tstate);
17762 if (PyErr_Occurred()) SWIG_fail;
17763 }
17764 resultobj = SWIG_From_int(static_cast< int >(result));
17765 return resultobj;
17766 fail:
17767 return NULL;
17768 }
17769
17770
17771 SWIGINTERN PyObject *_wrap_Slider_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17772 PyObject *resultobj = 0;
17773 wxSlider *arg1 = (wxSlider *) 0 ;
17774 int arg2 ;
17775 void *argp1 = 0 ;
17776 int res1 = 0 ;
17777 int val2 ;
17778 int ecode2 = 0 ;
17779 PyObject * obj0 = 0 ;
17780 PyObject * obj1 = 0 ;
17781 char * kwnames[] = {
17782 (char *) "self",(char *) "minValue", NULL
17783 };
17784
17785 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
17786 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17787 if (!SWIG_IsOK(res1)) {
17788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMin" "', expected argument " "1"" of type '" "wxSlider *""'");
17789 }
17790 arg1 = reinterpret_cast< wxSlider * >(argp1);
17791 ecode2 = SWIG_AsVal_int(obj1, &val2);
17792 if (!SWIG_IsOK(ecode2)) {
17793 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMin" "', expected argument " "2"" of type '" "int""'");
17794 }
17795 arg2 = static_cast< int >(val2);
17796 {
17797 PyThreadState* __tstate = wxPyBeginAllowThreads();
17798 (arg1)->SetMin(arg2);
17799 wxPyEndAllowThreads(__tstate);
17800 if (PyErr_Occurred()) SWIG_fail;
17801 }
17802 resultobj = SWIG_Py_Void();
17803 return resultobj;
17804 fail:
17805 return NULL;
17806 }
17807
17808
17809 SWIGINTERN PyObject *_wrap_Slider_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17810 PyObject *resultobj = 0;
17811 wxSlider *arg1 = (wxSlider *) 0 ;
17812 int arg2 ;
17813 void *argp1 = 0 ;
17814 int res1 = 0 ;
17815 int val2 ;
17816 int ecode2 = 0 ;
17817 PyObject * obj0 = 0 ;
17818 PyObject * obj1 = 0 ;
17819 char * kwnames[] = {
17820 (char *) "self",(char *) "maxValue", NULL
17821 };
17822
17823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
17824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17825 if (!SWIG_IsOK(res1)) {
17826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMax" "', expected argument " "1"" of type '" "wxSlider *""'");
17827 }
17828 arg1 = reinterpret_cast< wxSlider * >(argp1);
17829 ecode2 = SWIG_AsVal_int(obj1, &val2);
17830 if (!SWIG_IsOK(ecode2)) {
17831 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMax" "', expected argument " "2"" of type '" "int""'");
17832 }
17833 arg2 = static_cast< int >(val2);
17834 {
17835 PyThreadState* __tstate = wxPyBeginAllowThreads();
17836 (arg1)->SetMax(arg2);
17837 wxPyEndAllowThreads(__tstate);
17838 if (PyErr_Occurred()) SWIG_fail;
17839 }
17840 resultobj = SWIG_Py_Void();
17841 return resultobj;
17842 fail:
17843 return NULL;
17844 }
17845
17846
17847 SWIGINTERN PyObject *_wrap_Slider_SetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17848 PyObject *resultobj = 0;
17849 wxSlider *arg1 = (wxSlider *) 0 ;
17850 int arg2 ;
17851 void *argp1 = 0 ;
17852 int res1 = 0 ;
17853 int val2 ;
17854 int ecode2 = 0 ;
17855 PyObject * obj0 = 0 ;
17856 PyObject * obj1 = 0 ;
17857 char * kwnames[] = {
17858 (char *) "self",(char *) "lineSize", NULL
17859 };
17860
17861 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) SWIG_fail;
17862 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17863 if (!SWIG_IsOK(res1)) {
17864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetLineSize" "', expected argument " "1"" of type '" "wxSlider *""'");
17865 }
17866 arg1 = reinterpret_cast< wxSlider * >(argp1);
17867 ecode2 = SWIG_AsVal_int(obj1, &val2);
17868 if (!SWIG_IsOK(ecode2)) {
17869 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetLineSize" "', expected argument " "2"" of type '" "int""'");
17870 }
17871 arg2 = static_cast< int >(val2);
17872 {
17873 PyThreadState* __tstate = wxPyBeginAllowThreads();
17874 (arg1)->SetLineSize(arg2);
17875 wxPyEndAllowThreads(__tstate);
17876 if (PyErr_Occurred()) SWIG_fail;
17877 }
17878 resultobj = SWIG_Py_Void();
17879 return resultobj;
17880 fail:
17881 return NULL;
17882 }
17883
17884
17885 SWIGINTERN PyObject *_wrap_Slider_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17886 PyObject *resultobj = 0;
17887 wxSlider *arg1 = (wxSlider *) 0 ;
17888 int arg2 ;
17889 void *argp1 = 0 ;
17890 int res1 = 0 ;
17891 int val2 ;
17892 int ecode2 = 0 ;
17893 PyObject * obj0 = 0 ;
17894 PyObject * obj1 = 0 ;
17895 char * kwnames[] = {
17896 (char *) "self",(char *) "pageSize", NULL
17897 };
17898
17899 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
17900 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17901 if (!SWIG_IsOK(res1)) {
17902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetPageSize" "', expected argument " "1"" of type '" "wxSlider *""'");
17903 }
17904 arg1 = reinterpret_cast< wxSlider * >(argp1);
17905 ecode2 = SWIG_AsVal_int(obj1, &val2);
17906 if (!SWIG_IsOK(ecode2)) {
17907 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetPageSize" "', expected argument " "2"" of type '" "int""'");
17908 }
17909 arg2 = static_cast< int >(val2);
17910 {
17911 PyThreadState* __tstate = wxPyBeginAllowThreads();
17912 (arg1)->SetPageSize(arg2);
17913 wxPyEndAllowThreads(__tstate);
17914 if (PyErr_Occurred()) SWIG_fail;
17915 }
17916 resultobj = SWIG_Py_Void();
17917 return resultobj;
17918 fail:
17919 return NULL;
17920 }
17921
17922
17923 SWIGINTERN PyObject *_wrap_Slider_GetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17924 PyObject *resultobj = 0;
17925 wxSlider *arg1 = (wxSlider *) 0 ;
17926 int result;
17927 void *argp1 = 0 ;
17928 int res1 = 0 ;
17929 PyObject *swig_obj[1] ;
17930
17931 if (!args) SWIG_fail;
17932 swig_obj[0] = args;
17933 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17934 if (!SWIG_IsOK(res1)) {
17935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetLineSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
17936 }
17937 arg1 = reinterpret_cast< wxSlider * >(argp1);
17938 {
17939 PyThreadState* __tstate = wxPyBeginAllowThreads();
17940 result = (int)((wxSlider const *)arg1)->GetLineSize();
17941 wxPyEndAllowThreads(__tstate);
17942 if (PyErr_Occurred()) SWIG_fail;
17943 }
17944 resultobj = SWIG_From_int(static_cast< int >(result));
17945 return resultobj;
17946 fail:
17947 return NULL;
17948 }
17949
17950
17951 SWIGINTERN PyObject *_wrap_Slider_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17952 PyObject *resultobj = 0;
17953 wxSlider *arg1 = (wxSlider *) 0 ;
17954 int result;
17955 void *argp1 = 0 ;
17956 int res1 = 0 ;
17957 PyObject *swig_obj[1] ;
17958
17959 if (!args) SWIG_fail;
17960 swig_obj[0] = args;
17961 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17962 if (!SWIG_IsOK(res1)) {
17963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetPageSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
17964 }
17965 arg1 = reinterpret_cast< wxSlider * >(argp1);
17966 {
17967 PyThreadState* __tstate = wxPyBeginAllowThreads();
17968 result = (int)((wxSlider const *)arg1)->GetPageSize();
17969 wxPyEndAllowThreads(__tstate);
17970 if (PyErr_Occurred()) SWIG_fail;
17971 }
17972 resultobj = SWIG_From_int(static_cast< int >(result));
17973 return resultobj;
17974 fail:
17975 return NULL;
17976 }
17977
17978
17979 SWIGINTERN PyObject *_wrap_Slider_SetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17980 PyObject *resultobj = 0;
17981 wxSlider *arg1 = (wxSlider *) 0 ;
17982 int arg2 ;
17983 void *argp1 = 0 ;
17984 int res1 = 0 ;
17985 int val2 ;
17986 int ecode2 = 0 ;
17987 PyObject * obj0 = 0 ;
17988 PyObject * obj1 = 0 ;
17989 char * kwnames[] = {
17990 (char *) "self",(char *) "lenPixels", NULL
17991 };
17992
17993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) SWIG_fail;
17994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17995 if (!SWIG_IsOK(res1)) {
17996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetThumbLength" "', expected argument " "1"" of type '" "wxSlider *""'");
17997 }
17998 arg1 = reinterpret_cast< wxSlider * >(argp1);
17999 ecode2 = SWIG_AsVal_int(obj1, &val2);
18000 if (!SWIG_IsOK(ecode2)) {
18001 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetThumbLength" "', expected argument " "2"" of type '" "int""'");
18002 }
18003 arg2 = static_cast< int >(val2);
18004 {
18005 PyThreadState* __tstate = wxPyBeginAllowThreads();
18006 (arg1)->SetThumbLength(arg2);
18007 wxPyEndAllowThreads(__tstate);
18008 if (PyErr_Occurred()) SWIG_fail;
18009 }
18010 resultobj = SWIG_Py_Void();
18011 return resultobj;
18012 fail:
18013 return NULL;
18014 }
18015
18016
18017 SWIGINTERN PyObject *_wrap_Slider_GetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18018 PyObject *resultobj = 0;
18019 wxSlider *arg1 = (wxSlider *) 0 ;
18020 int result;
18021 void *argp1 = 0 ;
18022 int res1 = 0 ;
18023 PyObject *swig_obj[1] ;
18024
18025 if (!args) SWIG_fail;
18026 swig_obj[0] = args;
18027 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18028 if (!SWIG_IsOK(res1)) {
18029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetThumbLength" "', expected argument " "1"" of type '" "wxSlider const *""'");
18030 }
18031 arg1 = reinterpret_cast< wxSlider * >(argp1);
18032 {
18033 PyThreadState* __tstate = wxPyBeginAllowThreads();
18034 result = (int)((wxSlider const *)arg1)->GetThumbLength();
18035 wxPyEndAllowThreads(__tstate);
18036 if (PyErr_Occurred()) SWIG_fail;
18037 }
18038 resultobj = SWIG_From_int(static_cast< int >(result));
18039 return resultobj;
18040 fail:
18041 return NULL;
18042 }
18043
18044
18045 SWIGINTERN PyObject *_wrap_Slider_SetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18046 PyObject *resultobj = 0;
18047 wxSlider *arg1 = (wxSlider *) 0 ;
18048 int arg2 ;
18049 int arg3 = (int) 1 ;
18050 void *argp1 = 0 ;
18051 int res1 = 0 ;
18052 int val2 ;
18053 int ecode2 = 0 ;
18054 int val3 ;
18055 int ecode3 = 0 ;
18056 PyObject * obj0 = 0 ;
18057 PyObject * obj1 = 0 ;
18058 PyObject * obj2 = 0 ;
18059 char * kwnames[] = {
18060 (char *) "self",(char *) "n",(char *) "pos", NULL
18061 };
18062
18063 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18064 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18065 if (!SWIG_IsOK(res1)) {
18066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTickFreq" "', expected argument " "1"" of type '" "wxSlider *""'");
18067 }
18068 arg1 = reinterpret_cast< wxSlider * >(argp1);
18069 ecode2 = SWIG_AsVal_int(obj1, &val2);
18070 if (!SWIG_IsOK(ecode2)) {
18071 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTickFreq" "', expected argument " "2"" of type '" "int""'");
18072 }
18073 arg2 = static_cast< int >(val2);
18074 if (obj2) {
18075 ecode3 = SWIG_AsVal_int(obj2, &val3);
18076 if (!SWIG_IsOK(ecode3)) {
18077 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetTickFreq" "', expected argument " "3"" of type '" "int""'");
18078 }
18079 arg3 = static_cast< int >(val3);
18080 }
18081 {
18082 PyThreadState* __tstate = wxPyBeginAllowThreads();
18083 (arg1)->SetTickFreq(arg2,arg3);
18084 wxPyEndAllowThreads(__tstate);
18085 if (PyErr_Occurred()) SWIG_fail;
18086 }
18087 resultobj = SWIG_Py_Void();
18088 return resultobj;
18089 fail:
18090 return NULL;
18091 }
18092
18093
18094 SWIGINTERN PyObject *_wrap_Slider_GetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18095 PyObject *resultobj = 0;
18096 wxSlider *arg1 = (wxSlider *) 0 ;
18097 int result;
18098 void *argp1 = 0 ;
18099 int res1 = 0 ;
18100 PyObject *swig_obj[1] ;
18101
18102 if (!args) SWIG_fail;
18103 swig_obj[0] = args;
18104 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18105 if (!SWIG_IsOK(res1)) {
18106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetTickFreq" "', expected argument " "1"" of type '" "wxSlider const *""'");
18107 }
18108 arg1 = reinterpret_cast< wxSlider * >(argp1);
18109 {
18110 PyThreadState* __tstate = wxPyBeginAllowThreads();
18111 result = (int)((wxSlider const *)arg1)->GetTickFreq();
18112 wxPyEndAllowThreads(__tstate);
18113 if (PyErr_Occurred()) SWIG_fail;
18114 }
18115 resultobj = SWIG_From_int(static_cast< int >(result));
18116 return resultobj;
18117 fail:
18118 return NULL;
18119 }
18120
18121
18122 SWIGINTERN PyObject *_wrap_Slider_ClearTicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18123 PyObject *resultobj = 0;
18124 wxSlider *arg1 = (wxSlider *) 0 ;
18125 void *argp1 = 0 ;
18126 int res1 = 0 ;
18127 PyObject *swig_obj[1] ;
18128
18129 if (!args) SWIG_fail;
18130 swig_obj[0] = args;
18131 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18132 if (!SWIG_IsOK(res1)) {
18133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearTicks" "', expected argument " "1"" of type '" "wxSlider *""'");
18134 }
18135 arg1 = reinterpret_cast< wxSlider * >(argp1);
18136 {
18137 PyThreadState* __tstate = wxPyBeginAllowThreads();
18138 (arg1)->ClearTicks();
18139 wxPyEndAllowThreads(__tstate);
18140 if (PyErr_Occurred()) SWIG_fail;
18141 }
18142 resultobj = SWIG_Py_Void();
18143 return resultobj;
18144 fail:
18145 return NULL;
18146 }
18147
18148
18149 SWIGINTERN PyObject *_wrap_Slider_SetTick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18150 PyObject *resultobj = 0;
18151 wxSlider *arg1 = (wxSlider *) 0 ;
18152 int arg2 ;
18153 void *argp1 = 0 ;
18154 int res1 = 0 ;
18155 int val2 ;
18156 int ecode2 = 0 ;
18157 PyObject * obj0 = 0 ;
18158 PyObject * obj1 = 0 ;
18159 char * kwnames[] = {
18160 (char *) "self",(char *) "tickPos", NULL
18161 };
18162
18163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) SWIG_fail;
18164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18165 if (!SWIG_IsOK(res1)) {
18166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTick" "', expected argument " "1"" of type '" "wxSlider *""'");
18167 }
18168 arg1 = reinterpret_cast< wxSlider * >(argp1);
18169 ecode2 = SWIG_AsVal_int(obj1, &val2);
18170 if (!SWIG_IsOK(ecode2)) {
18171 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTick" "', expected argument " "2"" of type '" "int""'");
18172 }
18173 arg2 = static_cast< int >(val2);
18174 {
18175 PyThreadState* __tstate = wxPyBeginAllowThreads();
18176 (arg1)->SetTick(arg2);
18177 wxPyEndAllowThreads(__tstate);
18178 if (PyErr_Occurred()) SWIG_fail;
18179 }
18180 resultobj = SWIG_Py_Void();
18181 return resultobj;
18182 fail:
18183 return NULL;
18184 }
18185
18186
18187 SWIGINTERN PyObject *_wrap_Slider_ClearSel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18188 PyObject *resultobj = 0;
18189 wxSlider *arg1 = (wxSlider *) 0 ;
18190 void *argp1 = 0 ;
18191 int res1 = 0 ;
18192 PyObject *swig_obj[1] ;
18193
18194 if (!args) SWIG_fail;
18195 swig_obj[0] = args;
18196 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18197 if (!SWIG_IsOK(res1)) {
18198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearSel" "', expected argument " "1"" of type '" "wxSlider *""'");
18199 }
18200 arg1 = reinterpret_cast< wxSlider * >(argp1);
18201 {
18202 PyThreadState* __tstate = wxPyBeginAllowThreads();
18203 (arg1)->ClearSel();
18204 wxPyEndAllowThreads(__tstate);
18205 if (PyErr_Occurred()) SWIG_fail;
18206 }
18207 resultobj = SWIG_Py_Void();
18208 return resultobj;
18209 fail:
18210 return NULL;
18211 }
18212
18213
18214 SWIGINTERN PyObject *_wrap_Slider_GetSelEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18215 PyObject *resultobj = 0;
18216 wxSlider *arg1 = (wxSlider *) 0 ;
18217 int result;
18218 void *argp1 = 0 ;
18219 int res1 = 0 ;
18220 PyObject *swig_obj[1] ;
18221
18222 if (!args) SWIG_fail;
18223 swig_obj[0] = args;
18224 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18225 if (!SWIG_IsOK(res1)) {
18226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelEnd" "', expected argument " "1"" of type '" "wxSlider const *""'");
18227 }
18228 arg1 = reinterpret_cast< wxSlider * >(argp1);
18229 {
18230 PyThreadState* __tstate = wxPyBeginAllowThreads();
18231 result = (int)((wxSlider const *)arg1)->GetSelEnd();
18232 wxPyEndAllowThreads(__tstate);
18233 if (PyErr_Occurred()) SWIG_fail;
18234 }
18235 resultobj = SWIG_From_int(static_cast< int >(result));
18236 return resultobj;
18237 fail:
18238 return NULL;
18239 }
18240
18241
18242 SWIGINTERN PyObject *_wrap_Slider_GetSelStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18243 PyObject *resultobj = 0;
18244 wxSlider *arg1 = (wxSlider *) 0 ;
18245 int result;
18246 void *argp1 = 0 ;
18247 int res1 = 0 ;
18248 PyObject *swig_obj[1] ;
18249
18250 if (!args) SWIG_fail;
18251 swig_obj[0] = args;
18252 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18253 if (!SWIG_IsOK(res1)) {
18254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelStart" "', expected argument " "1"" of type '" "wxSlider const *""'");
18255 }
18256 arg1 = reinterpret_cast< wxSlider * >(argp1);
18257 {
18258 PyThreadState* __tstate = wxPyBeginAllowThreads();
18259 result = (int)((wxSlider const *)arg1)->GetSelStart();
18260 wxPyEndAllowThreads(__tstate);
18261 if (PyErr_Occurred()) SWIG_fail;
18262 }
18263 resultobj = SWIG_From_int(static_cast< int >(result));
18264 return resultobj;
18265 fail:
18266 return NULL;
18267 }
18268
18269
18270 SWIGINTERN PyObject *_wrap_Slider_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18271 PyObject *resultobj = 0;
18272 wxSlider *arg1 = (wxSlider *) 0 ;
18273 int arg2 ;
18274 int arg3 ;
18275 void *argp1 = 0 ;
18276 int res1 = 0 ;
18277 int val2 ;
18278 int ecode2 = 0 ;
18279 int val3 ;
18280 int ecode3 = 0 ;
18281 PyObject * obj0 = 0 ;
18282 PyObject * obj1 = 0 ;
18283 PyObject * obj2 = 0 ;
18284 char * kwnames[] = {
18285 (char *) "self",(char *) "min",(char *) "max", NULL
18286 };
18287
18288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18290 if (!SWIG_IsOK(res1)) {
18291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetSelection" "', expected argument " "1"" of type '" "wxSlider *""'");
18292 }
18293 arg1 = reinterpret_cast< wxSlider * >(argp1);
18294 ecode2 = SWIG_AsVal_int(obj1, &val2);
18295 if (!SWIG_IsOK(ecode2)) {
18296 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetSelection" "', expected argument " "2"" of type '" "int""'");
18297 }
18298 arg2 = static_cast< int >(val2);
18299 ecode3 = SWIG_AsVal_int(obj2, &val3);
18300 if (!SWIG_IsOK(ecode3)) {
18301 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetSelection" "', expected argument " "3"" of type '" "int""'");
18302 }
18303 arg3 = static_cast< int >(val3);
18304 {
18305 PyThreadState* __tstate = wxPyBeginAllowThreads();
18306 (arg1)->SetSelection(arg2,arg3);
18307 wxPyEndAllowThreads(__tstate);
18308 if (PyErr_Occurred()) SWIG_fail;
18309 }
18310 resultobj = SWIG_Py_Void();
18311 return resultobj;
18312 fail:
18313 return NULL;
18314 }
18315
18316
18317 SWIGINTERN PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18318 PyObject *resultobj = 0;
18319 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18320 SwigValueWrapper<wxVisualAttributes > result;
18321 int val1 ;
18322 int ecode1 = 0 ;
18323 PyObject * obj0 = 0 ;
18324 char * kwnames[] = {
18325 (char *) "variant", NULL
18326 };
18327
18328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18329 if (obj0) {
18330 ecode1 = SWIG_AsVal_int(obj0, &val1);
18331 if (!SWIG_IsOK(ecode1)) {
18332 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Slider_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18333 }
18334 arg1 = static_cast< wxWindowVariant >(val1);
18335 }
18336 {
18337 if (!wxPyCheckForApp()) SWIG_fail;
18338 PyThreadState* __tstate = wxPyBeginAllowThreads();
18339 result = wxSlider::GetClassDefaultAttributes(arg1);
18340 wxPyEndAllowThreads(__tstate);
18341 if (PyErr_Occurred()) SWIG_fail;
18342 }
18343 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18344 return resultobj;
18345 fail:
18346 return NULL;
18347 }
18348
18349
18350 SWIGINTERN PyObject *Slider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18351 PyObject *obj;
18352 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18353 SWIG_TypeNewClientData(SWIGTYPE_p_wxSlider, SWIG_NewClientData(obj));
18354 return SWIG_Py_Void();
18355 }
18356
18357 SWIGINTERN PyObject *Slider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18358 return SWIG_Python_InitShadowInstance(args);
18359 }
18360
18361 SWIGINTERN int ToggleButtonNameStr_set(PyObject *) {
18362 SWIG_Error(SWIG_AttributeError,"Variable ToggleButtonNameStr is read-only.");
18363 return 1;
18364 }
18365
18366
18367 SWIGINTERN PyObject *ToggleButtonNameStr_get(void) {
18368 PyObject *pyobj = 0;
18369
18370 {
18371 #if wxUSE_UNICODE
18372 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18373 #else
18374 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18375 #endif
18376 }
18377 return pyobj;
18378 }
18379
18380
18381 SWIGINTERN PyObject *_wrap_new_ToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18382 PyObject *resultobj = 0;
18383 wxWindow *arg1 = (wxWindow *) 0 ;
18384 int arg2 = (int) -1 ;
18385 wxString const &arg3_defvalue = wxPyEmptyString ;
18386 wxString *arg3 = (wxString *) &arg3_defvalue ;
18387 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18388 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18389 wxSize const &arg5_defvalue = wxDefaultSize ;
18390 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18391 long arg6 = (long) 0 ;
18392 wxValidator const &arg7_defvalue = wxDefaultValidator ;
18393 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
18394 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
18395 wxString *arg8 = (wxString *) &arg8_defvalue ;
18396 wxToggleButton *result = 0 ;
18397 void *argp1 = 0 ;
18398 int res1 = 0 ;
18399 int val2 ;
18400 int ecode2 = 0 ;
18401 bool temp3 = false ;
18402 wxPoint temp4 ;
18403 wxSize temp5 ;
18404 long val6 ;
18405 int ecode6 = 0 ;
18406 void *argp7 = 0 ;
18407 int res7 = 0 ;
18408 bool temp8 = false ;
18409 PyObject * obj0 = 0 ;
18410 PyObject * obj1 = 0 ;
18411 PyObject * obj2 = 0 ;
18412 PyObject * obj3 = 0 ;
18413 PyObject * obj4 = 0 ;
18414 PyObject * obj5 = 0 ;
18415 PyObject * obj6 = 0 ;
18416 PyObject * obj7 = 0 ;
18417 char * kwnames[] = {
18418 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18419 };
18420
18421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
18422 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
18423 if (!SWIG_IsOK(res1)) {
18424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToggleButton" "', expected argument " "1"" of type '" "wxWindow *""'");
18425 }
18426 arg1 = reinterpret_cast< wxWindow * >(argp1);
18427 if (obj1) {
18428 ecode2 = SWIG_AsVal_int(obj1, &val2);
18429 if (!SWIG_IsOK(ecode2)) {
18430 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToggleButton" "', expected argument " "2"" of type '" "int""'");
18431 }
18432 arg2 = static_cast< int >(val2);
18433 }
18434 if (obj2) {
18435 {
18436 arg3 = wxString_in_helper(obj2);
18437 if (arg3 == NULL) SWIG_fail;
18438 temp3 = true;
18439 }
18440 }
18441 if (obj3) {
18442 {
18443 arg4 = &temp4;
18444 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18445 }
18446 }
18447 if (obj4) {
18448 {
18449 arg5 = &temp5;
18450 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
18451 }
18452 }
18453 if (obj5) {
18454 ecode6 = SWIG_AsVal_long(obj5, &val6);
18455 if (!SWIG_IsOK(ecode6)) {
18456 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ToggleButton" "', expected argument " "6"" of type '" "long""'");
18457 }
18458 arg6 = static_cast< long >(val6);
18459 }
18460 if (obj6) {
18461 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
18462 if (!SWIG_IsOK(res7)) {
18463 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
18464 }
18465 if (!argp7) {
18466 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
18467 }
18468 arg7 = reinterpret_cast< wxValidator * >(argp7);
18469 }
18470 if (obj7) {
18471 {
18472 arg8 = wxString_in_helper(obj7);
18473 if (arg8 == NULL) SWIG_fail;
18474 temp8 = true;
18475 }
18476 }
18477 {
18478 if (!wxPyCheckForApp()) SWIG_fail;
18479 PyThreadState* __tstate = wxPyBeginAllowThreads();
18480 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
18481 wxPyEndAllowThreads(__tstate);
18482 if (PyErr_Occurred()) SWIG_fail;
18483 }
18484 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_NEW | 0 );
18485 {
18486 if (temp3)
18487 delete arg3;
18488 }
18489 {
18490 if (temp8)
18491 delete arg8;
18492 }
18493 return resultobj;
18494 fail:
18495 {
18496 if (temp3)
18497 delete arg3;
18498 }
18499 {
18500 if (temp8)
18501 delete arg8;
18502 }
18503 return NULL;
18504 }
18505
18506
18507 SWIGINTERN PyObject *_wrap_new_PreToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18508 PyObject *resultobj = 0;
18509 wxToggleButton *result = 0 ;
18510
18511 if (!SWIG_Python_UnpackTuple(args,"new_PreToggleButton",0,0,0)) SWIG_fail;
18512 {
18513 if (!wxPyCheckForApp()) SWIG_fail;
18514 PyThreadState* __tstate = wxPyBeginAllowThreads();
18515 result = (wxToggleButton *)new wxToggleButton();
18516 wxPyEndAllowThreads(__tstate);
18517 if (PyErr_Occurred()) SWIG_fail;
18518 }
18519 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_OWN | 0 );
18520 return resultobj;
18521 fail:
18522 return NULL;
18523 }
18524
18525
18526 SWIGINTERN PyObject *_wrap_ToggleButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18527 PyObject *resultobj = 0;
18528 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18529 wxWindow *arg2 = (wxWindow *) 0 ;
18530 int arg3 = (int) -1 ;
18531 wxString const &arg4_defvalue = wxPyEmptyString ;
18532 wxString *arg4 = (wxString *) &arg4_defvalue ;
18533 wxPoint const &arg5_defvalue = wxDefaultPosition ;
18534 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
18535 wxSize const &arg6_defvalue = wxDefaultSize ;
18536 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
18537 long arg7 = (long) 0 ;
18538 wxValidator const &arg8_defvalue = wxDefaultValidator ;
18539 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
18540 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
18541 wxString *arg9 = (wxString *) &arg9_defvalue ;
18542 bool result;
18543 void *argp1 = 0 ;
18544 int res1 = 0 ;
18545 void *argp2 = 0 ;
18546 int res2 = 0 ;
18547 int val3 ;
18548 int ecode3 = 0 ;
18549 bool temp4 = false ;
18550 wxPoint temp5 ;
18551 wxSize temp6 ;
18552 long val7 ;
18553 int ecode7 = 0 ;
18554 void *argp8 = 0 ;
18555 int res8 = 0 ;
18556 bool temp9 = false ;
18557 PyObject * obj0 = 0 ;
18558 PyObject * obj1 = 0 ;
18559 PyObject * obj2 = 0 ;
18560 PyObject * obj3 = 0 ;
18561 PyObject * obj4 = 0 ;
18562 PyObject * obj5 = 0 ;
18563 PyObject * obj6 = 0 ;
18564 PyObject * obj7 = 0 ;
18565 PyObject * obj8 = 0 ;
18566 char * kwnames[] = {
18567 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18568 };
18569
18570 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
18571 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18572 if (!SWIG_IsOK(res1)) {
18573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_Create" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18574 }
18575 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18576 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
18577 if (!SWIG_IsOK(res2)) {
18578 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToggleButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
18579 }
18580 arg2 = reinterpret_cast< wxWindow * >(argp2);
18581 if (obj2) {
18582 ecode3 = SWIG_AsVal_int(obj2, &val3);
18583 if (!SWIG_IsOK(ecode3)) {
18584 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToggleButton_Create" "', expected argument " "3"" of type '" "int""'");
18585 }
18586 arg3 = static_cast< int >(val3);
18587 }
18588 if (obj3) {
18589 {
18590 arg4 = wxString_in_helper(obj3);
18591 if (arg4 == NULL) SWIG_fail;
18592 temp4 = true;
18593 }
18594 }
18595 if (obj4) {
18596 {
18597 arg5 = &temp5;
18598 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
18599 }
18600 }
18601 if (obj5) {
18602 {
18603 arg6 = &temp6;
18604 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
18605 }
18606 }
18607 if (obj6) {
18608 ecode7 = SWIG_AsVal_long(obj6, &val7);
18609 if (!SWIG_IsOK(ecode7)) {
18610 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToggleButton_Create" "', expected argument " "7"" of type '" "long""'");
18611 }
18612 arg7 = static_cast< long >(val7);
18613 }
18614 if (obj7) {
18615 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
18616 if (!SWIG_IsOK(res8)) {
18617 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
18618 }
18619 if (!argp8) {
18620 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
18621 }
18622 arg8 = reinterpret_cast< wxValidator * >(argp8);
18623 }
18624 if (obj8) {
18625 {
18626 arg9 = wxString_in_helper(obj8);
18627 if (arg9 == NULL) SWIG_fail;
18628 temp9 = true;
18629 }
18630 }
18631 {
18632 PyThreadState* __tstate = wxPyBeginAllowThreads();
18633 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
18634 wxPyEndAllowThreads(__tstate);
18635 if (PyErr_Occurred()) SWIG_fail;
18636 }
18637 {
18638 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18639 }
18640 {
18641 if (temp4)
18642 delete arg4;
18643 }
18644 {
18645 if (temp9)
18646 delete arg9;
18647 }
18648 return resultobj;
18649 fail:
18650 {
18651 if (temp4)
18652 delete arg4;
18653 }
18654 {
18655 if (temp9)
18656 delete arg9;
18657 }
18658 return NULL;
18659 }
18660
18661
18662 SWIGINTERN PyObject *_wrap_ToggleButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18663 PyObject *resultobj = 0;
18664 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18665 bool arg2 ;
18666 void *argp1 = 0 ;
18667 int res1 = 0 ;
18668 bool val2 ;
18669 int ecode2 = 0 ;
18670 PyObject * obj0 = 0 ;
18671 PyObject * obj1 = 0 ;
18672 char * kwnames[] = {
18673 (char *) "self",(char *) "value", NULL
18674 };
18675
18676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
18677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18678 if (!SWIG_IsOK(res1)) {
18679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_SetValue" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18680 }
18681 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18682 ecode2 = SWIG_AsVal_bool(obj1, &val2);
18683 if (!SWIG_IsOK(ecode2)) {
18684 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToggleButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
18685 }
18686 arg2 = static_cast< bool >(val2);
18687 {
18688 PyThreadState* __tstate = wxPyBeginAllowThreads();
18689 (arg1)->SetValue(arg2);
18690 wxPyEndAllowThreads(__tstate);
18691 if (PyErr_Occurred()) SWIG_fail;
18692 }
18693 resultobj = SWIG_Py_Void();
18694 return resultobj;
18695 fail:
18696 return NULL;
18697 }
18698
18699
18700 SWIGINTERN PyObject *_wrap_ToggleButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18701 PyObject *resultobj = 0;
18702 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18703 bool result;
18704 void *argp1 = 0 ;
18705 int res1 = 0 ;
18706 PyObject *swig_obj[1] ;
18707
18708 if (!args) SWIG_fail;
18709 swig_obj[0] = args;
18710 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18711 if (!SWIG_IsOK(res1)) {
18712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_GetValue" "', expected argument " "1"" of type '" "wxToggleButton const *""'");
18713 }
18714 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18715 {
18716 PyThreadState* __tstate = wxPyBeginAllowThreads();
18717 result = (bool)((wxToggleButton const *)arg1)->GetValue();
18718 wxPyEndAllowThreads(__tstate);
18719 if (PyErr_Occurred()) SWIG_fail;
18720 }
18721 {
18722 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18723 }
18724 return resultobj;
18725 fail:
18726 return NULL;
18727 }
18728
18729
18730 SWIGINTERN PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18731 PyObject *resultobj = 0;
18732 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18733 SwigValueWrapper<wxVisualAttributes > result;
18734 int val1 ;
18735 int ecode1 = 0 ;
18736 PyObject * obj0 = 0 ;
18737 char * kwnames[] = {
18738 (char *) "variant", NULL
18739 };
18740
18741 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18742 if (obj0) {
18743 ecode1 = SWIG_AsVal_int(obj0, &val1);
18744 if (!SWIG_IsOK(ecode1)) {
18745 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToggleButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18746 }
18747 arg1 = static_cast< wxWindowVariant >(val1);
18748 }
18749 {
18750 if (!wxPyCheckForApp()) SWIG_fail;
18751 PyThreadState* __tstate = wxPyBeginAllowThreads();
18752 result = wxToggleButton::GetClassDefaultAttributes(arg1);
18753 wxPyEndAllowThreads(__tstate);
18754 if (PyErr_Occurred()) SWIG_fail;
18755 }
18756 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18757 return resultobj;
18758 fail:
18759 return NULL;
18760 }
18761
18762
18763 SWIGINTERN PyObject *ToggleButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18764 PyObject *obj;
18765 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18766 SWIG_TypeNewClientData(SWIGTYPE_p_wxToggleButton, SWIG_NewClientData(obj));
18767 return SWIG_Py_Void();
18768 }
18769
18770 SWIGINTERN PyObject *ToggleButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18771 return SWIG_Python_InitShadowInstance(args);
18772 }
18773
18774 SWIGINTERN int NotebookNameStr_set(PyObject *) {
18775 SWIG_Error(SWIG_AttributeError,"Variable NotebookNameStr is read-only.");
18776 return 1;
18777 }
18778
18779
18780 SWIGINTERN PyObject *NotebookNameStr_get(void) {
18781 PyObject *pyobj = 0;
18782
18783 {
18784 #if wxUSE_UNICODE
18785 pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
18786 #else
18787 pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
18788 #endif
18789 }
18790 return pyobj;
18791 }
18792
18793
18794 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18795 PyObject *resultobj = 0;
18796 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18797 size_t result;
18798 void *argp1 = 0 ;
18799 int res1 = 0 ;
18800 PyObject *swig_obj[1] ;
18801
18802 if (!args) SWIG_fail;
18803 swig_obj[0] = args;
18804 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18805 if (!SWIG_IsOK(res1)) {
18806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageCount" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
18807 }
18808 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18809 {
18810 PyThreadState* __tstate = wxPyBeginAllowThreads();
18811 result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount();
18812 wxPyEndAllowThreads(__tstate);
18813 if (PyErr_Occurred()) SWIG_fail;
18814 }
18815 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
18816 return resultobj;
18817 fail:
18818 return NULL;
18819 }
18820
18821
18822 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18823 PyObject *resultobj = 0;
18824 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18825 size_t arg2 ;
18826 wxWindow *result = 0 ;
18827 void *argp1 = 0 ;
18828 int res1 = 0 ;
18829 size_t val2 ;
18830 int ecode2 = 0 ;
18831 PyObject * obj0 = 0 ;
18832 PyObject * obj1 = 0 ;
18833 char * kwnames[] = {
18834 (char *) "self",(char *) "n", NULL
18835 };
18836
18837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) SWIG_fail;
18838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18839 if (!SWIG_IsOK(res1)) {
18840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
18841 }
18842 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18843 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
18844 if (!SWIG_IsOK(ecode2)) {
18845 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPage" "', expected argument " "2"" of type '" "size_t""'");
18846 }
18847 arg2 = static_cast< size_t >(val2);
18848 {
18849 PyThreadState* __tstate = wxPyBeginAllowThreads();
18850 result = (wxWindow *)(arg1)->GetPage(arg2);
18851 wxPyEndAllowThreads(__tstate);
18852 if (PyErr_Occurred()) SWIG_fail;
18853 }
18854 {
18855 resultobj = wxPyMake_wxObject(result, 0);
18856 }
18857 return resultobj;
18858 fail:
18859 return NULL;
18860 }
18861
18862
18863 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18864 PyObject *resultobj = 0;
18865 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18866 wxWindow *result = 0 ;
18867 void *argp1 = 0 ;
18868 int res1 = 0 ;
18869 PyObject *swig_obj[1] ;
18870
18871 if (!args) SWIG_fail;
18872 swig_obj[0] = args;
18873 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18874 if (!SWIG_IsOK(res1)) {
18875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
18876 }
18877 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18878 {
18879 PyThreadState* __tstate = wxPyBeginAllowThreads();
18880 result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage();
18881 wxPyEndAllowThreads(__tstate);
18882 if (PyErr_Occurred()) SWIG_fail;
18883 }
18884 {
18885 resultobj = wxPyMake_wxObject(result, 0);
18886 }
18887 return resultobj;
18888 fail:
18889 return NULL;
18890 }
18891
18892
18893 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18894 PyObject *resultobj = 0;
18895 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18896 int result;
18897 void *argp1 = 0 ;
18898 int res1 = 0 ;
18899 PyObject *swig_obj[1] ;
18900
18901 if (!args) SWIG_fail;
18902 swig_obj[0] = args;
18903 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18904 if (!SWIG_IsOK(res1)) {
18905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
18906 }
18907 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18908 {
18909 PyThreadState* __tstate = wxPyBeginAllowThreads();
18910 result = (int)((wxBookCtrlBase const *)arg1)->GetSelection();
18911 wxPyEndAllowThreads(__tstate);
18912 if (PyErr_Occurred()) SWIG_fail;
18913 }
18914 resultobj = SWIG_From_int(static_cast< int >(result));
18915 return resultobj;
18916 fail:
18917 return NULL;
18918 }
18919
18920
18921 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18922 PyObject *resultobj = 0;
18923 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18924 size_t arg2 ;
18925 wxString *arg3 = 0 ;
18926 bool result;
18927 void *argp1 = 0 ;
18928 int res1 = 0 ;
18929 size_t val2 ;
18930 int ecode2 = 0 ;
18931 bool temp3 = false ;
18932 PyObject * obj0 = 0 ;
18933 PyObject * obj1 = 0 ;
18934 PyObject * obj2 = 0 ;
18935 char * kwnames[] = {
18936 (char *) "self",(char *) "n",(char *) "strText", NULL
18937 };
18938
18939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18941 if (!SWIG_IsOK(res1)) {
18942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
18943 }
18944 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18945 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
18946 if (!SWIG_IsOK(ecode2)) {
18947 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "2"" of type '" "size_t""'");
18948 }
18949 arg2 = static_cast< size_t >(val2);
18950 {
18951 arg3 = wxString_in_helper(obj2);
18952 if (arg3 == NULL) SWIG_fail;
18953 temp3 = true;
18954 }
18955 {
18956 PyThreadState* __tstate = wxPyBeginAllowThreads();
18957 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
18958 wxPyEndAllowThreads(__tstate);
18959 if (PyErr_Occurred()) SWIG_fail;
18960 }
18961 {
18962 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18963 }
18964 {
18965 if (temp3)
18966 delete arg3;
18967 }
18968 return resultobj;
18969 fail:
18970 {
18971 if (temp3)
18972 delete arg3;
18973 }
18974 return NULL;
18975 }
18976
18977
18978 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18979 PyObject *resultobj = 0;
18980 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18981 size_t arg2 ;
18982 wxString result;
18983 void *argp1 = 0 ;
18984 int res1 = 0 ;
18985 size_t val2 ;
18986 int ecode2 = 0 ;
18987 PyObject * obj0 = 0 ;
18988 PyObject * obj1 = 0 ;
18989 char * kwnames[] = {
18990 (char *) "self",(char *) "n", NULL
18991 };
18992
18993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) SWIG_fail;
18994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18995 if (!SWIG_IsOK(res1)) {
18996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
18997 }
18998 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18999 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19000 if (!SWIG_IsOK(ecode2)) {
19001 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "2"" of type '" "size_t""'");
19002 }
19003 arg2 = static_cast< size_t >(val2);
19004 {
19005 PyThreadState* __tstate = wxPyBeginAllowThreads();
19006 result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2);
19007 wxPyEndAllowThreads(__tstate);
19008 if (PyErr_Occurred()) SWIG_fail;
19009 }
19010 {
19011 #if wxUSE_UNICODE
19012 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19013 #else
19014 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19015 #endif
19016 }
19017 return resultobj;
19018 fail:
19019 return NULL;
19020 }
19021
19022
19023 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19024 PyObject *resultobj = 0;
19025 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19026 wxImageList *arg2 = (wxImageList *) 0 ;
19027 void *argp1 = 0 ;
19028 int res1 = 0 ;
19029 void *argp2 = 0 ;
19030 int res2 = 0 ;
19031 PyObject * obj0 = 0 ;
19032 PyObject * obj1 = 0 ;
19033 char * kwnames[] = {
19034 (char *) "self",(char *) "imageList", NULL
19035 };
19036
19037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19038 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19039 if (!SWIG_IsOK(res1)) {
19040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19041 }
19042 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19043 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
19044 if (!SWIG_IsOK(res2)) {
19045 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19046 }
19047 arg2 = reinterpret_cast< wxImageList * >(argp2);
19048 {
19049 PyThreadState* __tstate = wxPyBeginAllowThreads();
19050 (arg1)->SetImageList(arg2);
19051 wxPyEndAllowThreads(__tstate);
19052 if (PyErr_Occurred()) SWIG_fail;
19053 }
19054 resultobj = SWIG_Py_Void();
19055 return resultobj;
19056 fail:
19057 return NULL;
19058 }
19059
19060
19061 SWIGINTERN PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19062 PyObject *resultobj = 0;
19063 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19064 wxImageList *arg2 = (wxImageList *) 0 ;
19065 void *argp1 = 0 ;
19066 int res1 = 0 ;
19067 int res2 = 0 ;
19068 PyObject * obj0 = 0 ;
19069 PyObject * obj1 = 0 ;
19070 char * kwnames[] = {
19071 (char *) "self",(char *) "imageList", NULL
19072 };
19073
19074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",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_AssignImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19078 }
19079 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19080 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
19081 if (!SWIG_IsOK(res2)) {
19082 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19083 }
19084 {
19085 PyThreadState* __tstate = wxPyBeginAllowThreads();
19086 (arg1)->AssignImageList(arg2);
19087 wxPyEndAllowThreads(__tstate);
19088 if (PyErr_Occurred()) SWIG_fail;
19089 }
19090 resultobj = SWIG_Py_Void();
19091 return resultobj;
19092 fail:
19093 return NULL;
19094 }
19095
19096
19097 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19098 PyObject *resultobj = 0;
19099 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19100 wxImageList *result = 0 ;
19101 void *argp1 = 0 ;
19102 int res1 = 0 ;
19103 PyObject *swig_obj[1] ;
19104
19105 if (!args) SWIG_fail;
19106 swig_obj[0] = args;
19107 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19108 if (!SWIG_IsOK(res1)) {
19109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19110 }
19111 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19112 {
19113 PyThreadState* __tstate = wxPyBeginAllowThreads();
19114 result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList();
19115 wxPyEndAllowThreads(__tstate);
19116 if (PyErr_Occurred()) SWIG_fail;
19117 }
19118 {
19119 resultobj = wxPyMake_wxObject(result, (bool)0);
19120 }
19121 return resultobj;
19122 fail:
19123 return NULL;
19124 }
19125
19126
19127 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19128 PyObject *resultobj = 0;
19129 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19130 size_t arg2 ;
19131 int result;
19132 void *argp1 = 0 ;
19133 int res1 = 0 ;
19134 size_t val2 ;
19135 int ecode2 = 0 ;
19136 PyObject * obj0 = 0 ;
19137 PyObject * obj1 = 0 ;
19138 char * kwnames[] = {
19139 (char *) "self",(char *) "n", NULL
19140 };
19141
19142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) SWIG_fail;
19143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19144 if (!SWIG_IsOK(res1)) {
19145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19146 }
19147 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19148 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19149 if (!SWIG_IsOK(ecode2)) {
19150 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19151 }
19152 arg2 = static_cast< size_t >(val2);
19153 {
19154 PyThreadState* __tstate = wxPyBeginAllowThreads();
19155 result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2);
19156 wxPyEndAllowThreads(__tstate);
19157 if (PyErr_Occurred()) SWIG_fail;
19158 }
19159 resultobj = SWIG_From_int(static_cast< int >(result));
19160 return resultobj;
19161 fail:
19162 return NULL;
19163 }
19164
19165
19166 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19167 PyObject *resultobj = 0;
19168 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19169 size_t arg2 ;
19170 int arg3 ;
19171 bool result;
19172 void *argp1 = 0 ;
19173 int res1 = 0 ;
19174 size_t val2 ;
19175 int ecode2 = 0 ;
19176 int val3 ;
19177 int ecode3 = 0 ;
19178 PyObject * obj0 = 0 ;
19179 PyObject * obj1 = 0 ;
19180 PyObject * obj2 = 0 ;
19181 char * kwnames[] = {
19182 (char *) "self",(char *) "n",(char *) "imageId", NULL
19183 };
19184
19185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19187 if (!SWIG_IsOK(res1)) {
19188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19189 }
19190 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19191 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19192 if (!SWIG_IsOK(ecode2)) {
19193 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19194 }
19195 arg2 = static_cast< size_t >(val2);
19196 ecode3 = SWIG_AsVal_int(obj2, &val3);
19197 if (!SWIG_IsOK(ecode3)) {
19198 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "3"" of type '" "int""'");
19199 }
19200 arg3 = static_cast< int >(val3);
19201 {
19202 PyThreadState* __tstate = wxPyBeginAllowThreads();
19203 result = (bool)(arg1)->SetPageImage(arg2,arg3);
19204 wxPyEndAllowThreads(__tstate);
19205 if (PyErr_Occurred()) SWIG_fail;
19206 }
19207 {
19208 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19209 }
19210 return resultobj;
19211 fail:
19212 return NULL;
19213 }
19214
19215
19216 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19217 PyObject *resultobj = 0;
19218 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19219 wxSize *arg2 = 0 ;
19220 void *argp1 = 0 ;
19221 int res1 = 0 ;
19222 wxSize temp2 ;
19223 PyObject * obj0 = 0 ;
19224 PyObject * obj1 = 0 ;
19225 char * kwnames[] = {
19226 (char *) "self",(char *) "size", NULL
19227 };
19228
19229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
19230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19231 if (!SWIG_IsOK(res1)) {
19232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageSize" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19233 }
19234 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19235 {
19236 arg2 = &temp2;
19237 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19238 }
19239 {
19240 PyThreadState* __tstate = wxPyBeginAllowThreads();
19241 (arg1)->SetPageSize((wxSize const &)*arg2);
19242 wxPyEndAllowThreads(__tstate);
19243 if (PyErr_Occurred()) SWIG_fail;
19244 }
19245 resultobj = SWIG_Py_Void();
19246 return resultobj;
19247 fail:
19248 return NULL;
19249 }
19250
19251
19252 SWIGINTERN PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19253 PyObject *resultobj = 0;
19254 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19255 wxSize *arg2 = 0 ;
19256 wxSize result;
19257 void *argp1 = 0 ;
19258 int res1 = 0 ;
19259 wxSize temp2 ;
19260 PyObject * obj0 = 0 ;
19261 PyObject * obj1 = 0 ;
19262 char * kwnames[] = {
19263 (char *) "self",(char *) "sizePage", NULL
19264 };
19265
19266 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) 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_CalcSizeFromPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19270 }
19271 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19272 {
19273 arg2 = &temp2;
19274 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19275 }
19276 {
19277 PyThreadState* __tstate = wxPyBeginAllowThreads();
19278 result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
19279 wxPyEndAllowThreads(__tstate);
19280 if (PyErr_Occurred()) SWIG_fail;
19281 }
19282 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
19283 return resultobj;
19284 fail:
19285 return NULL;
19286 }
19287
19288
19289 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19290 PyObject *resultobj = 0;
19291 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19292 unsigned int result;
19293 void *argp1 = 0 ;
19294 int res1 = 0 ;
19295 PyObject *swig_obj[1] ;
19296
19297 if (!args) SWIG_fail;
19298 swig_obj[0] = args;
19299 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19300 if (!SWIG_IsOK(res1)) {
19301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19302 }
19303 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19304 {
19305 PyThreadState* __tstate = wxPyBeginAllowThreads();
19306 result = (unsigned int)((wxBookCtrlBase const *)arg1)->GetInternalBorder();
19307 wxPyEndAllowThreads(__tstate);
19308 if (PyErr_Occurred()) SWIG_fail;
19309 }
19310 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
19311 return resultobj;
19312 fail:
19313 return NULL;
19314 }
19315
19316
19317 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19318 PyObject *resultobj = 0;
19319 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19320 unsigned int arg2 ;
19321 void *argp1 = 0 ;
19322 int res1 = 0 ;
19323 unsigned int val2 ;
19324 int ecode2 = 0 ;
19325 PyObject * obj0 = 0 ;
19326 PyObject * obj1 = 0 ;
19327 char * kwnames[] = {
19328 (char *) "self",(char *) "internalBorder", NULL
19329 };
19330
19331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetInternalBorder",kwnames,&obj0,&obj1)) SWIG_fail;
19332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19333 if (!SWIG_IsOK(res1)) {
19334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19335 }
19336 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19337 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
19338 if (!SWIG_IsOK(ecode2)) {
19339 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "2"" of type '" "unsigned int""'");
19340 }
19341 arg2 = static_cast< unsigned int >(val2);
19342 {
19343 PyThreadState* __tstate = wxPyBeginAllowThreads();
19344 (arg1)->SetInternalBorder(arg2);
19345 wxPyEndAllowThreads(__tstate);
19346 if (PyErr_Occurred()) SWIG_fail;
19347 }
19348 resultobj = SWIG_Py_Void();
19349 return resultobj;
19350 fail:
19351 return NULL;
19352 }
19353
19354
19355 SWIGINTERN PyObject *_wrap_BookCtrlBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19356 PyObject *resultobj = 0;
19357 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19358 bool result;
19359 void *argp1 = 0 ;
19360 int res1 = 0 ;
19361 PyObject *swig_obj[1] ;
19362
19363 if (!args) SWIG_fail;
19364 swig_obj[0] = args;
19365 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19366 if (!SWIG_IsOK(res1)) {
19367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_IsVertical" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19368 }
19369 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19370 {
19371 PyThreadState* __tstate = wxPyBeginAllowThreads();
19372 result = (bool)((wxBookCtrlBase const *)arg1)->IsVertical();
19373 wxPyEndAllowThreads(__tstate);
19374 if (PyErr_Occurred()) SWIG_fail;
19375 }
19376 {
19377 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19378 }
19379 return resultobj;
19380 fail:
19381 return NULL;
19382 }
19383
19384
19385 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19386 PyObject *resultobj = 0;
19387 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19388 int arg2 ;
19389 void *argp1 = 0 ;
19390 int res1 = 0 ;
19391 int val2 ;
19392 int ecode2 = 0 ;
19393 PyObject * obj0 = 0 ;
19394 PyObject * obj1 = 0 ;
19395 char * kwnames[] = {
19396 (char *) "self",(char *) "margin", NULL
19397 };
19398
19399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetControlMargin",kwnames,&obj0,&obj1)) SWIG_fail;
19400 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19401 if (!SWIG_IsOK(res1)) {
19402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19403 }
19404 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19405 ecode2 = SWIG_AsVal_int(obj1, &val2);
19406 if (!SWIG_IsOK(ecode2)) {
19407 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "2"" of type '" "int""'");
19408 }
19409 arg2 = static_cast< int >(val2);
19410 {
19411 PyThreadState* __tstate = wxPyBeginAllowThreads();
19412 (arg1)->SetControlMargin(arg2);
19413 wxPyEndAllowThreads(__tstate);
19414 if (PyErr_Occurred()) SWIG_fail;
19415 }
19416 resultobj = SWIG_Py_Void();
19417 return resultobj;
19418 fail:
19419 return NULL;
19420 }
19421
19422
19423 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19424 PyObject *resultobj = 0;
19425 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19426 int result;
19427 void *argp1 = 0 ;
19428 int res1 = 0 ;
19429 PyObject *swig_obj[1] ;
19430
19431 if (!args) SWIG_fail;
19432 swig_obj[0] = args;
19433 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19434 if (!SWIG_IsOK(res1)) {
19435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19436 }
19437 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19438 {
19439 PyThreadState* __tstate = wxPyBeginAllowThreads();
19440 result = (int)((wxBookCtrlBase const *)arg1)->GetControlMargin();
19441 wxPyEndAllowThreads(__tstate);
19442 if (PyErr_Occurred()) SWIG_fail;
19443 }
19444 resultobj = SWIG_From_int(static_cast< int >(result));
19445 return resultobj;
19446 fail:
19447 return NULL;
19448 }
19449
19450
19451 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19452 PyObject *resultobj = 0;
19453 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19454 bool arg2 ;
19455 void *argp1 = 0 ;
19456 int res1 = 0 ;
19457 bool val2 ;
19458 int ecode2 = 0 ;
19459 PyObject * obj0 = 0 ;
19460 PyObject * obj1 = 0 ;
19461 char * kwnames[] = {
19462 (char *) "self",(char *) "fit", NULL
19463 };
19464
19465 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetFitToCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail;
19466 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19467 if (!SWIG_IsOK(res1)) {
19468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19469 }
19470 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19471 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19472 if (!SWIG_IsOK(ecode2)) {
19473 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "2"" of type '" "bool""'");
19474 }
19475 arg2 = static_cast< bool >(val2);
19476 {
19477 PyThreadState* __tstate = wxPyBeginAllowThreads();
19478 (arg1)->SetFitToCurrentPage(arg2);
19479 wxPyEndAllowThreads(__tstate);
19480 if (PyErr_Occurred()) SWIG_fail;
19481 }
19482 resultobj = SWIG_Py_Void();
19483 return resultobj;
19484 fail:
19485 return NULL;
19486 }
19487
19488
19489 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19490 PyObject *resultobj = 0;
19491 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19492 bool result;
19493 void *argp1 = 0 ;
19494 int res1 = 0 ;
19495 PyObject *swig_obj[1] ;
19496
19497 if (!args) SWIG_fail;
19498 swig_obj[0] = args;
19499 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19500 if (!SWIG_IsOK(res1)) {
19501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19502 }
19503 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19504 {
19505 PyThreadState* __tstate = wxPyBeginAllowThreads();
19506 result = (bool)((wxBookCtrlBase const *)arg1)->GetFitToCurrentPage();
19507 wxPyEndAllowThreads(__tstate);
19508 if (PyErr_Occurred()) SWIG_fail;
19509 }
19510 {
19511 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19512 }
19513 return resultobj;
19514 fail:
19515 return NULL;
19516 }
19517
19518
19519 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19520 PyObject *resultobj = 0;
19521 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19522 wxSizer *result = 0 ;
19523 void *argp1 = 0 ;
19524 int res1 = 0 ;
19525 PyObject *swig_obj[1] ;
19526
19527 if (!args) SWIG_fail;
19528 swig_obj[0] = args;
19529 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19530 if (!SWIG_IsOK(res1)) {
19531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlSizer" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19532 }
19533 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19534 {
19535 PyThreadState* __tstate = wxPyBeginAllowThreads();
19536 result = (wxSizer *)((wxBookCtrlBase const *)arg1)->GetControlSizer();
19537 wxPyEndAllowThreads(__tstate);
19538 if (PyErr_Occurred()) SWIG_fail;
19539 }
19540 {
19541 resultobj = wxPyMake_wxObject(result, (bool)0);
19542 }
19543 return resultobj;
19544 fail:
19545 return NULL;
19546 }
19547
19548
19549 SWIGINTERN PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19550 PyObject *resultobj = 0;
19551 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19552 size_t arg2 ;
19553 bool result;
19554 void *argp1 = 0 ;
19555 int res1 = 0 ;
19556 size_t val2 ;
19557 int ecode2 = 0 ;
19558 PyObject * obj0 = 0 ;
19559 PyObject * obj1 = 0 ;
19560 char * kwnames[] = {
19561 (char *) "self",(char *) "n", NULL
19562 };
19563
19564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) SWIG_fail;
19565 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19566 if (!SWIG_IsOK(res1)) {
19567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19568 }
19569 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19570 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19571 if (!SWIG_IsOK(ecode2)) {
19572 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "2"" of type '" "size_t""'");
19573 }
19574 arg2 = static_cast< size_t >(val2);
19575 {
19576 PyThreadState* __tstate = wxPyBeginAllowThreads();
19577 result = (bool)(arg1)->DeletePage(arg2);
19578 wxPyEndAllowThreads(__tstate);
19579 if (PyErr_Occurred()) SWIG_fail;
19580 }
19581 {
19582 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19583 }
19584 return resultobj;
19585 fail:
19586 return NULL;
19587 }
19588
19589
19590 SWIGINTERN PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19591 PyObject *resultobj = 0;
19592 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19593 size_t arg2 ;
19594 bool result;
19595 void *argp1 = 0 ;
19596 int res1 = 0 ;
19597 size_t val2 ;
19598 int ecode2 = 0 ;
19599 PyObject * obj0 = 0 ;
19600 PyObject * obj1 = 0 ;
19601 char * kwnames[] = {
19602 (char *) "self",(char *) "n", NULL
19603 };
19604
19605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) SWIG_fail;
19606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19607 if (!SWIG_IsOK(res1)) {
19608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19609 }
19610 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19611 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19612 if (!SWIG_IsOK(ecode2)) {
19613 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "2"" of type '" "size_t""'");
19614 }
19615 arg2 = static_cast< size_t >(val2);
19616 {
19617 PyThreadState* __tstate = wxPyBeginAllowThreads();
19618 result = (bool)(arg1)->RemovePage(arg2);
19619 wxPyEndAllowThreads(__tstate);
19620 if (PyErr_Occurred()) SWIG_fail;
19621 }
19622 {
19623 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19624 }
19625 return resultobj;
19626 fail:
19627 return NULL;
19628 }
19629
19630
19631 SWIGINTERN PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19632 PyObject *resultobj = 0;
19633 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19634 bool result;
19635 void *argp1 = 0 ;
19636 int res1 = 0 ;
19637 PyObject *swig_obj[1] ;
19638
19639 if (!args) SWIG_fail;
19640 swig_obj[0] = args;
19641 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19642 if (!SWIG_IsOK(res1)) {
19643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeleteAllPages" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19644 }
19645 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19646 {
19647 PyThreadState* __tstate = wxPyBeginAllowThreads();
19648 result = (bool)(arg1)->DeleteAllPages();
19649 wxPyEndAllowThreads(__tstate);
19650 if (PyErr_Occurred()) SWIG_fail;
19651 }
19652 {
19653 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19654 }
19655 return resultobj;
19656 fail:
19657 return NULL;
19658 }
19659
19660
19661 SWIGINTERN PyObject *_wrap_BookCtrlBase_AddPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19662 PyObject *resultobj = 0;
19663 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19664 wxWindow *arg2 = (wxWindow *) 0 ;
19665 wxString *arg3 = 0 ;
19666 bool arg4 = (bool) false ;
19667 int arg5 = (int) -1 ;
19668 bool result;
19669 void *argp1 = 0 ;
19670 int res1 = 0 ;
19671 void *argp2 = 0 ;
19672 int res2 = 0 ;
19673 bool temp3 = false ;
19674 bool val4 ;
19675 int ecode4 = 0 ;
19676 int val5 ;
19677 int ecode5 = 0 ;
19678 PyObject * obj0 = 0 ;
19679 PyObject * obj1 = 0 ;
19680 PyObject * obj2 = 0 ;
19681 PyObject * obj3 = 0 ;
19682 PyObject * obj4 = 0 ;
19683 char * kwnames[] = {
19684 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
19685 };
19686
19687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19689 if (!SWIG_IsOK(res1)) {
19690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AddPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19691 }
19692 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19693 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
19694 if (!SWIG_IsOK(res2)) {
19695 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AddPage" "', expected argument " "2"" of type '" "wxWindow *""'");
19696 }
19697 arg2 = reinterpret_cast< wxWindow * >(argp2);
19698 {
19699 arg3 = wxString_in_helper(obj2);
19700 if (arg3 == NULL) SWIG_fail;
19701 temp3 = true;
19702 }
19703 if (obj3) {
19704 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19705 if (!SWIG_IsOK(ecode4)) {
19706 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BookCtrlBase_AddPage" "', expected argument " "4"" of type '" "bool""'");
19707 }
19708 arg4 = static_cast< bool >(val4);
19709 }
19710 if (obj4) {
19711 ecode5 = SWIG_AsVal_int(obj4, &val5);
19712 if (!SWIG_IsOK(ecode5)) {
19713 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_AddPage" "', expected argument " "5"" of type '" "int""'");
19714 }
19715 arg5 = static_cast< int >(val5);
19716 }
19717 {
19718 PyThreadState* __tstate = wxPyBeginAllowThreads();
19719 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
19720 wxPyEndAllowThreads(__tstate);
19721 if (PyErr_Occurred()) SWIG_fail;
19722 }
19723 {
19724 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19725 }
19726 {
19727 if (temp3)
19728 delete arg3;
19729 }
19730 return resultobj;
19731 fail:
19732 {
19733 if (temp3)
19734 delete arg3;
19735 }
19736 return NULL;
19737 }
19738
19739
19740 SWIGINTERN PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19741 PyObject *resultobj = 0;
19742 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19743 size_t arg2 ;
19744 wxWindow *arg3 = (wxWindow *) 0 ;
19745 wxString *arg4 = 0 ;
19746 bool arg5 = (bool) false ;
19747 int arg6 = (int) -1 ;
19748 bool result;
19749 void *argp1 = 0 ;
19750 int res1 = 0 ;
19751 size_t val2 ;
19752 int ecode2 = 0 ;
19753 void *argp3 = 0 ;
19754 int res3 = 0 ;
19755 bool temp4 = false ;
19756 bool val5 ;
19757 int ecode5 = 0 ;
19758 int val6 ;
19759 int ecode6 = 0 ;
19760 PyObject * obj0 = 0 ;
19761 PyObject * obj1 = 0 ;
19762 PyObject * obj2 = 0 ;
19763 PyObject * obj3 = 0 ;
19764 PyObject * obj4 = 0 ;
19765 PyObject * obj5 = 0 ;
19766 char * kwnames[] = {
19767 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
19768 };
19769
19770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19772 if (!SWIG_IsOK(res1)) {
19773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19774 }
19775 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19776 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19777 if (!SWIG_IsOK(ecode2)) {
19778 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "2"" of type '" "size_t""'");
19779 }
19780 arg2 = static_cast< size_t >(val2);
19781 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
19782 if (!SWIG_IsOK(res3)) {
19783 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "3"" of type '" "wxWindow *""'");
19784 }
19785 arg3 = reinterpret_cast< wxWindow * >(argp3);
19786 {
19787 arg4 = wxString_in_helper(obj3);
19788 if (arg4 == NULL) SWIG_fail;
19789 temp4 = true;
19790 }
19791 if (obj4) {
19792 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19793 if (!SWIG_IsOK(ecode5)) {
19794 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "5"" of type '" "bool""'");
19795 }
19796 arg5 = static_cast< bool >(val5);
19797 }
19798 if (obj5) {
19799 ecode6 = SWIG_AsVal_int(obj5, &val6);
19800 if (!SWIG_IsOK(ecode6)) {
19801 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "6"" of type '" "int""'");
19802 }
19803 arg6 = static_cast< int >(val6);
19804 }
19805 {
19806 PyThreadState* __tstate = wxPyBeginAllowThreads();
19807 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
19808 wxPyEndAllowThreads(__tstate);
19809 if (PyErr_Occurred()) SWIG_fail;
19810 }
19811 {
19812 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19813 }
19814 {
19815 if (temp4)
19816 delete arg4;
19817 }
19818 return resultobj;
19819 fail:
19820 {
19821 if (temp4)
19822 delete arg4;
19823 }
19824 return NULL;
19825 }
19826
19827
19828 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19829 PyObject *resultobj = 0;
19830 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19831 size_t arg2 ;
19832 int result;
19833 void *argp1 = 0 ;
19834 int res1 = 0 ;
19835 size_t val2 ;
19836 int ecode2 = 0 ;
19837 PyObject * obj0 = 0 ;
19838 PyObject * obj1 = 0 ;
19839 char * kwnames[] = {
19840 (char *) "self",(char *) "n", NULL
19841 };
19842
19843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
19844 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19845 if (!SWIG_IsOK(res1)) {
19846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19847 }
19848 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19849 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19850 if (!SWIG_IsOK(ecode2)) {
19851 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "2"" of type '" "size_t""'");
19852 }
19853 arg2 = static_cast< size_t >(val2);
19854 {
19855 PyThreadState* __tstate = wxPyBeginAllowThreads();
19856 result = (int)(arg1)->SetSelection(arg2);
19857 wxPyEndAllowThreads(__tstate);
19858 if (PyErr_Occurred()) SWIG_fail;
19859 }
19860 resultobj = SWIG_From_int(static_cast< int >(result));
19861 return resultobj;
19862 fail:
19863 return NULL;
19864 }
19865
19866
19867 SWIGINTERN PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19868 PyObject *resultobj = 0;
19869 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19870 bool arg2 = (bool) true ;
19871 void *argp1 = 0 ;
19872 int res1 = 0 ;
19873 bool val2 ;
19874 int ecode2 = 0 ;
19875 PyObject * obj0 = 0 ;
19876 PyObject * obj1 = 0 ;
19877 char * kwnames[] = {
19878 (char *) "self",(char *) "forward", NULL
19879 };
19880
19881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) SWIG_fail;
19882 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19883 if (!SWIG_IsOK(res1)) {
19884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19885 }
19886 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19887 if (obj1) {
19888 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19889 if (!SWIG_IsOK(ecode2)) {
19890 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "2"" of type '" "bool""'");
19891 }
19892 arg2 = static_cast< bool >(val2);
19893 }
19894 {
19895 PyThreadState* __tstate = wxPyBeginAllowThreads();
19896 (arg1)->AdvanceSelection(arg2);
19897 wxPyEndAllowThreads(__tstate);
19898 if (PyErr_Occurred()) SWIG_fail;
19899 }
19900 resultobj = SWIG_Py_Void();
19901 return resultobj;
19902 fail:
19903 return NULL;
19904 }
19905
19906
19907 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19908 PyObject *resultobj = 0;
19909 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
19910 SwigValueWrapper<wxVisualAttributes > result;
19911 int val1 ;
19912 int ecode1 = 0 ;
19913 PyObject * obj0 = 0 ;
19914 char * kwnames[] = {
19915 (char *) "variant", NULL
19916 };
19917
19918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
19919 if (obj0) {
19920 ecode1 = SWIG_AsVal_int(obj0, &val1);
19921 if (!SWIG_IsOK(ecode1)) {
19922 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "BookCtrlBase_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
19923 }
19924 arg1 = static_cast< wxWindowVariant >(val1);
19925 }
19926 {
19927 if (!wxPyCheckForApp()) SWIG_fail;
19928 PyThreadState* __tstate = wxPyBeginAllowThreads();
19929 result = wxBookCtrlBase::GetClassDefaultAttributes(arg1);
19930 wxPyEndAllowThreads(__tstate);
19931 if (PyErr_Occurred()) SWIG_fail;
19932 }
19933 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
19934 return resultobj;
19935 fail:
19936 return NULL;
19937 }
19938
19939
19940 SWIGINTERN PyObject *BookCtrlBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19941 PyObject *obj;
19942 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
19943 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBase, SWIG_NewClientData(obj));
19944 return SWIG_Py_Void();
19945 }
19946
19947 SWIGINTERN PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19948 PyObject *resultobj = 0;
19949 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
19950 int arg2 = (int) 0 ;
19951 int arg3 = (int) -1 ;
19952 int arg4 = (int) -1 ;
19953 wxBookCtrlBaseEvent *result = 0 ;
19954 int val1 ;
19955 int ecode1 = 0 ;
19956 int val2 ;
19957 int ecode2 = 0 ;
19958 int val3 ;
19959 int ecode3 = 0 ;
19960 int val4 ;
19961 int ecode4 = 0 ;
19962 PyObject * obj0 = 0 ;
19963 PyObject * obj1 = 0 ;
19964 PyObject * obj2 = 0 ;
19965 PyObject * obj3 = 0 ;
19966 char * kwnames[] = {
19967 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
19968 };
19969
19970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19971 if (obj0) {
19972 ecode1 = SWIG_AsVal_int(obj0, &val1);
19973 if (!SWIG_IsOK(ecode1)) {
19974 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "1"" of type '" "wxEventType""'");
19975 }
19976 arg1 = static_cast< wxEventType >(val1);
19977 }
19978 if (obj1) {
19979 ecode2 = SWIG_AsVal_int(obj1, &val2);
19980 if (!SWIG_IsOK(ecode2)) {
19981 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "2"" of type '" "int""'");
19982 }
19983 arg2 = static_cast< int >(val2);
19984 }
19985 if (obj2) {
19986 ecode3 = SWIG_AsVal_int(obj2, &val3);
19987 if (!SWIG_IsOK(ecode3)) {
19988 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "3"" of type '" "int""'");
19989 }
19990 arg3 = static_cast< int >(val3);
19991 }
19992 if (obj3) {
19993 ecode4 = SWIG_AsVal_int(obj3, &val4);
19994 if (!SWIG_IsOK(ecode4)) {
19995 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "4"" of type '" "int""'");
19996 }
19997 arg4 = static_cast< int >(val4);
19998 }
19999 {
20000 PyThreadState* __tstate = wxPyBeginAllowThreads();
20001 result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4);
20002 wxPyEndAllowThreads(__tstate);
20003 if (PyErr_Occurred()) SWIG_fail;
20004 }
20005 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_NEW | 0 );
20006 return resultobj;
20007 fail:
20008 return NULL;
20009 }
20010
20011
20012 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20013 PyObject *resultobj = 0;
20014 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20015 int result;
20016 void *argp1 = 0 ;
20017 int res1 = 0 ;
20018 PyObject *swig_obj[1] ;
20019
20020 if (!args) SWIG_fail;
20021 swig_obj[0] = args;
20022 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20023 if (!SWIG_IsOK(res1)) {
20024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20025 }
20026 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20027 {
20028 PyThreadState* __tstate = wxPyBeginAllowThreads();
20029 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection();
20030 wxPyEndAllowThreads(__tstate);
20031 if (PyErr_Occurred()) SWIG_fail;
20032 }
20033 resultobj = SWIG_From_int(static_cast< int >(result));
20034 return resultobj;
20035 fail:
20036 return NULL;
20037 }
20038
20039
20040 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20041 PyObject *resultobj = 0;
20042 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20043 int arg2 ;
20044 void *argp1 = 0 ;
20045 int res1 = 0 ;
20046 int val2 ;
20047 int ecode2 = 0 ;
20048 PyObject * obj0 = 0 ;
20049 PyObject * obj1 = 0 ;
20050 char * kwnames[] = {
20051 (char *) "self",(char *) "nSel", NULL
20052 };
20053
20054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20056 if (!SWIG_IsOK(res1)) {
20057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20058 }
20059 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20060 ecode2 = SWIG_AsVal_int(obj1, &val2);
20061 if (!SWIG_IsOK(ecode2)) {
20062 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "2"" of type '" "int""'");
20063 }
20064 arg2 = static_cast< int >(val2);
20065 {
20066 PyThreadState* __tstate = wxPyBeginAllowThreads();
20067 (arg1)->SetSelection(arg2);
20068 wxPyEndAllowThreads(__tstate);
20069 if (PyErr_Occurred()) SWIG_fail;
20070 }
20071 resultobj = SWIG_Py_Void();
20072 return resultobj;
20073 fail:
20074 return NULL;
20075 }
20076
20077
20078 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20079 PyObject *resultobj = 0;
20080 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20081 int result;
20082 void *argp1 = 0 ;
20083 int res1 = 0 ;
20084 PyObject *swig_obj[1] ;
20085
20086 if (!args) SWIG_fail;
20087 swig_obj[0] = args;
20088 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20089 if (!SWIG_IsOK(res1)) {
20090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20091 }
20092 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20093 {
20094 PyThreadState* __tstate = wxPyBeginAllowThreads();
20095 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection();
20096 wxPyEndAllowThreads(__tstate);
20097 if (PyErr_Occurred()) SWIG_fail;
20098 }
20099 resultobj = SWIG_From_int(static_cast< int >(result));
20100 return resultobj;
20101 fail:
20102 return NULL;
20103 }
20104
20105
20106 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20107 PyObject *resultobj = 0;
20108 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20109 int arg2 ;
20110 void *argp1 = 0 ;
20111 int res1 = 0 ;
20112 int val2 ;
20113 int ecode2 = 0 ;
20114 PyObject * obj0 = 0 ;
20115 PyObject * obj1 = 0 ;
20116 char * kwnames[] = {
20117 (char *) "self",(char *) "nOldSel", NULL
20118 };
20119
20120 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20121 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20122 if (!SWIG_IsOK(res1)) {
20123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20124 }
20125 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20126 ecode2 = SWIG_AsVal_int(obj1, &val2);
20127 if (!SWIG_IsOK(ecode2)) {
20128 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "2"" of type '" "int""'");
20129 }
20130 arg2 = static_cast< int >(val2);
20131 {
20132 PyThreadState* __tstate = wxPyBeginAllowThreads();
20133 (arg1)->SetOldSelection(arg2);
20134 wxPyEndAllowThreads(__tstate);
20135 if (PyErr_Occurred()) SWIG_fail;
20136 }
20137 resultobj = SWIG_Py_Void();
20138 return resultobj;
20139 fail:
20140 return NULL;
20141 }
20142
20143
20144 SWIGINTERN PyObject *BookCtrlBaseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20145 PyObject *obj;
20146 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20147 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_NewClientData(obj));
20148 return SWIG_Py_Void();
20149 }
20150
20151 SWIGINTERN PyObject *BookCtrlBaseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20152 return SWIG_Python_InitShadowInstance(args);
20153 }
20154
20155 SWIGINTERN PyObject *_wrap_new_Notebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20156 PyObject *resultobj = 0;
20157 wxWindow *arg1 = (wxWindow *) 0 ;
20158 int arg2 = (int) -1 ;
20159 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20160 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20161 wxSize const &arg4_defvalue = wxDefaultSize ;
20162 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20163 long arg5 = (long) 0 ;
20164 wxString const &arg6_defvalue = wxPyNotebookNameStr ;
20165 wxString *arg6 = (wxString *) &arg6_defvalue ;
20166 wxNotebook *result = 0 ;
20167 void *argp1 = 0 ;
20168 int res1 = 0 ;
20169 int val2 ;
20170 int ecode2 = 0 ;
20171 wxPoint temp3 ;
20172 wxSize temp4 ;
20173 long val5 ;
20174 int ecode5 = 0 ;
20175 bool temp6 = false ;
20176 PyObject * obj0 = 0 ;
20177 PyObject * obj1 = 0 ;
20178 PyObject * obj2 = 0 ;
20179 PyObject * obj3 = 0 ;
20180 PyObject * obj4 = 0 ;
20181 PyObject * obj5 = 0 ;
20182 char * kwnames[] = {
20183 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20184 };
20185
20186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20187 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20188 if (!SWIG_IsOK(res1)) {
20189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Notebook" "', expected argument " "1"" of type '" "wxWindow *""'");
20190 }
20191 arg1 = reinterpret_cast< wxWindow * >(argp1);
20192 if (obj1) {
20193 ecode2 = SWIG_AsVal_int(obj1, &val2);
20194 if (!SWIG_IsOK(ecode2)) {
20195 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Notebook" "', expected argument " "2"" of type '" "int""'");
20196 }
20197 arg2 = static_cast< int >(val2);
20198 }
20199 if (obj2) {
20200 {
20201 arg3 = &temp3;
20202 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20203 }
20204 }
20205 if (obj3) {
20206 {
20207 arg4 = &temp4;
20208 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
20209 }
20210 }
20211 if (obj4) {
20212 ecode5 = SWIG_AsVal_long(obj4, &val5);
20213 if (!SWIG_IsOK(ecode5)) {
20214 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Notebook" "', expected argument " "5"" of type '" "long""'");
20215 }
20216 arg5 = static_cast< long >(val5);
20217 }
20218 if (obj5) {
20219 {
20220 arg6 = wxString_in_helper(obj5);
20221 if (arg6 == NULL) SWIG_fail;
20222 temp6 = true;
20223 }
20224 }
20225 {
20226 if (!wxPyCheckForApp()) SWIG_fail;
20227 PyThreadState* __tstate = wxPyBeginAllowThreads();
20228 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20229 wxPyEndAllowThreads(__tstate);
20230 if (PyErr_Occurred()) SWIG_fail;
20231 }
20232 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_NEW | 0 );
20233 {
20234 if (temp6)
20235 delete arg6;
20236 }
20237 return resultobj;
20238 fail:
20239 {
20240 if (temp6)
20241 delete arg6;
20242 }
20243 return NULL;
20244 }
20245
20246
20247 SWIGINTERN PyObject *_wrap_new_PreNotebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20248 PyObject *resultobj = 0;
20249 wxNotebook *result = 0 ;
20250
20251 if (!SWIG_Python_UnpackTuple(args,"new_PreNotebook",0,0,0)) SWIG_fail;
20252 {
20253 if (!wxPyCheckForApp()) SWIG_fail;
20254 PyThreadState* __tstate = wxPyBeginAllowThreads();
20255 result = (wxNotebook *)new wxNotebook();
20256 wxPyEndAllowThreads(__tstate);
20257 if (PyErr_Occurred()) SWIG_fail;
20258 }
20259 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_OWN | 0 );
20260 return resultobj;
20261 fail:
20262 return NULL;
20263 }
20264
20265
20266 SWIGINTERN PyObject *_wrap_Notebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20267 PyObject *resultobj = 0;
20268 wxNotebook *arg1 = (wxNotebook *) 0 ;
20269 wxWindow *arg2 = (wxWindow *) 0 ;
20270 int arg3 = (int) -1 ;
20271 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20272 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20273 wxSize const &arg5_defvalue = wxDefaultSize ;
20274 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20275 long arg6 = (long) 0 ;
20276 wxString const &arg7_defvalue = wxPyNotebookNameStr ;
20277 wxString *arg7 = (wxString *) &arg7_defvalue ;
20278 bool result;
20279 void *argp1 = 0 ;
20280 int res1 = 0 ;
20281 void *argp2 = 0 ;
20282 int res2 = 0 ;
20283 int val3 ;
20284 int ecode3 = 0 ;
20285 wxPoint temp4 ;
20286 wxSize temp5 ;
20287 long val6 ;
20288 int ecode6 = 0 ;
20289 bool temp7 = false ;
20290 PyObject * obj0 = 0 ;
20291 PyObject * obj1 = 0 ;
20292 PyObject * obj2 = 0 ;
20293 PyObject * obj3 = 0 ;
20294 PyObject * obj4 = 0 ;
20295 PyObject * obj5 = 0 ;
20296 PyObject * obj6 = 0 ;
20297 char * kwnames[] = {
20298 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20299 };
20300
20301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20302 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20303 if (!SWIG_IsOK(res1)) {
20304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_Create" "', expected argument " "1"" of type '" "wxNotebook *""'");
20305 }
20306 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20307 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20308 if (!SWIG_IsOK(res2)) {
20309 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Notebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20310 }
20311 arg2 = reinterpret_cast< wxWindow * >(argp2);
20312 if (obj2) {
20313 ecode3 = SWIG_AsVal_int(obj2, &val3);
20314 if (!SWIG_IsOK(ecode3)) {
20315 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_Create" "', expected argument " "3"" of type '" "int""'");
20316 }
20317 arg3 = static_cast< int >(val3);
20318 }
20319 if (obj3) {
20320 {
20321 arg4 = &temp4;
20322 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
20323 }
20324 }
20325 if (obj4) {
20326 {
20327 arg5 = &temp5;
20328 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
20329 }
20330 }
20331 if (obj5) {
20332 ecode6 = SWIG_AsVal_long(obj5, &val6);
20333 if (!SWIG_IsOK(ecode6)) {
20334 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Notebook_Create" "', expected argument " "6"" of type '" "long""'");
20335 }
20336 arg6 = static_cast< long >(val6);
20337 }
20338 if (obj6) {
20339 {
20340 arg7 = wxString_in_helper(obj6);
20341 if (arg7 == NULL) SWIG_fail;
20342 temp7 = true;
20343 }
20344 }
20345 {
20346 PyThreadState* __tstate = wxPyBeginAllowThreads();
20347 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20348 wxPyEndAllowThreads(__tstate);
20349 if (PyErr_Occurred()) SWIG_fail;
20350 }
20351 {
20352 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20353 }
20354 {
20355 if (temp7)
20356 delete arg7;
20357 }
20358 return resultobj;
20359 fail:
20360 {
20361 if (temp7)
20362 delete arg7;
20363 }
20364 return NULL;
20365 }
20366
20367
20368 SWIGINTERN PyObject *_wrap_Notebook_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20369 PyObject *resultobj = 0;
20370 wxNotebook *arg1 = (wxNotebook *) 0 ;
20371 int result;
20372 void *argp1 = 0 ;
20373 int res1 = 0 ;
20374 PyObject *swig_obj[1] ;
20375
20376 if (!args) SWIG_fail;
20377 swig_obj[0] = args;
20378 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20379 if (!SWIG_IsOK(res1)) {
20380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetRowCount" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20381 }
20382 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20383 {
20384 PyThreadState* __tstate = wxPyBeginAllowThreads();
20385 result = (int)((wxNotebook const *)arg1)->GetRowCount();
20386 wxPyEndAllowThreads(__tstate);
20387 if (PyErr_Occurred()) SWIG_fail;
20388 }
20389 resultobj = SWIG_From_int(static_cast< int >(result));
20390 return resultobj;
20391 fail:
20392 return NULL;
20393 }
20394
20395
20396 SWIGINTERN PyObject *_wrap_Notebook_SetPadding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20397 PyObject *resultobj = 0;
20398 wxNotebook *arg1 = (wxNotebook *) 0 ;
20399 wxSize *arg2 = 0 ;
20400 void *argp1 = 0 ;
20401 int res1 = 0 ;
20402 wxSize temp2 ;
20403 PyObject * obj0 = 0 ;
20404 PyObject * obj1 = 0 ;
20405 char * kwnames[] = {
20406 (char *) "self",(char *) "padding", NULL
20407 };
20408
20409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) SWIG_fail;
20410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20411 if (!SWIG_IsOK(res1)) {
20412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetPadding" "', expected argument " "1"" of type '" "wxNotebook *""'");
20413 }
20414 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20415 {
20416 arg2 = &temp2;
20417 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20418 }
20419 {
20420 PyThreadState* __tstate = wxPyBeginAllowThreads();
20421 (arg1)->SetPadding((wxSize const &)*arg2);
20422 wxPyEndAllowThreads(__tstate);
20423 if (PyErr_Occurred()) SWIG_fail;
20424 }
20425 resultobj = SWIG_Py_Void();
20426 return resultobj;
20427 fail:
20428 return NULL;
20429 }
20430
20431
20432 SWIGINTERN PyObject *_wrap_Notebook_SetTabSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20433 PyObject *resultobj = 0;
20434 wxNotebook *arg1 = (wxNotebook *) 0 ;
20435 wxSize *arg2 = 0 ;
20436 void *argp1 = 0 ;
20437 int res1 = 0 ;
20438 wxSize temp2 ;
20439 PyObject * obj0 = 0 ;
20440 PyObject * obj1 = 0 ;
20441 char * kwnames[] = {
20442 (char *) "self",(char *) "sz", NULL
20443 };
20444
20445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) SWIG_fail;
20446 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20447 if (!SWIG_IsOK(res1)) {
20448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetTabSize" "', expected argument " "1"" of type '" "wxNotebook *""'");
20449 }
20450 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20451 {
20452 arg2 = &temp2;
20453 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20454 }
20455 {
20456 PyThreadState* __tstate = wxPyBeginAllowThreads();
20457 (arg1)->SetTabSize((wxSize const &)*arg2);
20458 wxPyEndAllowThreads(__tstate);
20459 if (PyErr_Occurred()) SWIG_fail;
20460 }
20461 resultobj = SWIG_Py_Void();
20462 return resultobj;
20463 fail:
20464 return NULL;
20465 }
20466
20467
20468 SWIGINTERN PyObject *_wrap_Notebook_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20469 PyObject *resultobj = 0;
20470 wxNotebook *arg1 = (wxNotebook *) 0 ;
20471 wxPoint *arg2 = 0 ;
20472 long *arg3 = (long *) 0 ;
20473 int result;
20474 void *argp1 = 0 ;
20475 int res1 = 0 ;
20476 wxPoint temp2 ;
20477 long temp3 ;
20478 int res3 = SWIG_TMPOBJ ;
20479 PyObject * obj0 = 0 ;
20480 PyObject * obj1 = 0 ;
20481 char * kwnames[] = {
20482 (char *) "self",(char *) "pt", NULL
20483 };
20484
20485 arg3 = &temp3;
20486 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
20487 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20488 if (!SWIG_IsOK(res1)) {
20489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_HitTest" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20490 }
20491 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20492 {
20493 arg2 = &temp2;
20494 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20495 }
20496 {
20497 PyThreadState* __tstate = wxPyBeginAllowThreads();
20498 result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
20499 wxPyEndAllowThreads(__tstate);
20500 if (PyErr_Occurred()) SWIG_fail;
20501 }
20502 resultobj = SWIG_From_int(static_cast< int >(result));
20503 if (SWIG_IsTmpObj(res3)) {
20504 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
20505 } else {
20506 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20507 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
20508 }
20509 return resultobj;
20510 fail:
20511 return NULL;
20512 }
20513
20514
20515 SWIGINTERN PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20516 PyObject *resultobj = 0;
20517 wxNotebook *arg1 = (wxNotebook *) 0 ;
20518 wxColour result;
20519 void *argp1 = 0 ;
20520 int res1 = 0 ;
20521 PyObject *swig_obj[1] ;
20522
20523 if (!args) SWIG_fail;
20524 swig_obj[0] = args;
20525 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20526 if (!SWIG_IsOK(res1)) {
20527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetThemeBackgroundColour" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20528 }
20529 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20530 {
20531 PyThreadState* __tstate = wxPyBeginAllowThreads();
20532 result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour();
20533 wxPyEndAllowThreads(__tstate);
20534 if (PyErr_Occurred()) SWIG_fail;
20535 }
20536 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
20537 return resultobj;
20538 fail:
20539 return NULL;
20540 }
20541
20542
20543 SWIGINTERN PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20544 PyObject *resultobj = 0;
20545 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20546 SwigValueWrapper<wxVisualAttributes > result;
20547 int val1 ;
20548 int ecode1 = 0 ;
20549 PyObject * obj0 = 0 ;
20550 char * kwnames[] = {
20551 (char *) "variant", NULL
20552 };
20553
20554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20555 if (obj0) {
20556 ecode1 = SWIG_AsVal_int(obj0, &val1);
20557 if (!SWIG_IsOK(ecode1)) {
20558 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Notebook_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20559 }
20560 arg1 = static_cast< wxWindowVariant >(val1);
20561 }
20562 {
20563 if (!wxPyCheckForApp()) SWIG_fail;
20564 PyThreadState* __tstate = wxPyBeginAllowThreads();
20565 result = wxNotebook::GetClassDefaultAttributes(arg1);
20566 wxPyEndAllowThreads(__tstate);
20567 if (PyErr_Occurred()) SWIG_fail;
20568 }
20569 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20570 return resultobj;
20571 fail:
20572 return NULL;
20573 }
20574
20575
20576 SWIGINTERN PyObject *Notebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20577 PyObject *obj;
20578 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20579 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebook, SWIG_NewClientData(obj));
20580 return SWIG_Py_Void();
20581 }
20582
20583 SWIGINTERN PyObject *Notebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20584 return SWIG_Python_InitShadowInstance(args);
20585 }
20586
20587 SWIGINTERN PyObject *_wrap_new_NotebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20588 PyObject *resultobj = 0;
20589 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20590 int arg2 = (int) 0 ;
20591 int arg3 = (int) -1 ;
20592 int arg4 = (int) -1 ;
20593 wxNotebookEvent *result = 0 ;
20594 int val1 ;
20595 int ecode1 = 0 ;
20596 int val2 ;
20597 int ecode2 = 0 ;
20598 int val3 ;
20599 int ecode3 = 0 ;
20600 int val4 ;
20601 int ecode4 = 0 ;
20602 PyObject * obj0 = 0 ;
20603 PyObject * obj1 = 0 ;
20604 PyObject * obj2 = 0 ;
20605 PyObject * obj3 = 0 ;
20606 char * kwnames[] = {
20607 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20608 };
20609
20610 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20611 if (obj0) {
20612 ecode1 = SWIG_AsVal_int(obj0, &val1);
20613 if (!SWIG_IsOK(ecode1)) {
20614 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NotebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20615 }
20616 arg1 = static_cast< wxEventType >(val1);
20617 }
20618 if (obj1) {
20619 ecode2 = SWIG_AsVal_int(obj1, &val2);
20620 if (!SWIG_IsOK(ecode2)) {
20621 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NotebookEvent" "', expected argument " "2"" of type '" "int""'");
20622 }
20623 arg2 = static_cast< int >(val2);
20624 }
20625 if (obj2) {
20626 ecode3 = SWIG_AsVal_int(obj2, &val3);
20627 if (!SWIG_IsOK(ecode3)) {
20628 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NotebookEvent" "', expected argument " "3"" of type '" "int""'");
20629 }
20630 arg3 = static_cast< int >(val3);
20631 }
20632 if (obj3) {
20633 ecode4 = SWIG_AsVal_int(obj3, &val4);
20634 if (!SWIG_IsOK(ecode4)) {
20635 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NotebookEvent" "', expected argument " "4"" of type '" "int""'");
20636 }
20637 arg4 = static_cast< int >(val4);
20638 }
20639 {
20640 PyThreadState* __tstate = wxPyBeginAllowThreads();
20641 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
20642 wxPyEndAllowThreads(__tstate);
20643 if (PyErr_Occurred()) SWIG_fail;
20644 }
20645 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebookEvent, SWIG_POINTER_NEW | 0 );
20646 return resultobj;
20647 fail:
20648 return NULL;
20649 }
20650
20651
20652 SWIGINTERN PyObject *NotebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20653 PyObject *obj;
20654 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20655 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebookEvent, SWIG_NewClientData(obj));
20656 return SWIG_Py_Void();
20657 }
20658
20659 SWIGINTERN PyObject *NotebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20660 return SWIG_Python_InitShadowInstance(args);
20661 }
20662
20663 SWIGINTERN PyObject *_wrap_new_Listbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20664 PyObject *resultobj = 0;
20665 wxWindow *arg1 = (wxWindow *) 0 ;
20666 int arg2 = (int) -1 ;
20667 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20668 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20669 wxSize const &arg4_defvalue = wxDefaultSize ;
20670 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20671 long arg5 = (long) 0 ;
20672 wxString const &arg6_defvalue = wxPyEmptyString ;
20673 wxString *arg6 = (wxString *) &arg6_defvalue ;
20674 wxListbook *result = 0 ;
20675 void *argp1 = 0 ;
20676 int res1 = 0 ;
20677 int val2 ;
20678 int ecode2 = 0 ;
20679 wxPoint temp3 ;
20680 wxSize temp4 ;
20681 long val5 ;
20682 int ecode5 = 0 ;
20683 bool temp6 = false ;
20684 PyObject * obj0 = 0 ;
20685 PyObject * obj1 = 0 ;
20686 PyObject * obj2 = 0 ;
20687 PyObject * obj3 = 0 ;
20688 PyObject * obj4 = 0 ;
20689 PyObject * obj5 = 0 ;
20690 char * kwnames[] = {
20691 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20692 };
20693
20694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20696 if (!SWIG_IsOK(res1)) {
20697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Listbook" "', expected argument " "1"" of type '" "wxWindow *""'");
20698 }
20699 arg1 = reinterpret_cast< wxWindow * >(argp1);
20700 if (obj1) {
20701 ecode2 = SWIG_AsVal_int(obj1, &val2);
20702 if (!SWIG_IsOK(ecode2)) {
20703 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Listbook" "', expected argument " "2"" of type '" "int""'");
20704 }
20705 arg2 = static_cast< int >(val2);
20706 }
20707 if (obj2) {
20708 {
20709 arg3 = &temp3;
20710 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20711 }
20712 }
20713 if (obj3) {
20714 {
20715 arg4 = &temp4;
20716 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
20717 }
20718 }
20719 if (obj4) {
20720 ecode5 = SWIG_AsVal_long(obj4, &val5);
20721 if (!SWIG_IsOK(ecode5)) {
20722 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Listbook" "', expected argument " "5"" of type '" "long""'");
20723 }
20724 arg5 = static_cast< long >(val5);
20725 }
20726 if (obj5) {
20727 {
20728 arg6 = wxString_in_helper(obj5);
20729 if (arg6 == NULL) SWIG_fail;
20730 temp6 = true;
20731 }
20732 }
20733 {
20734 if (!wxPyCheckForApp()) SWIG_fail;
20735 PyThreadState* __tstate = wxPyBeginAllowThreads();
20736 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20737 wxPyEndAllowThreads(__tstate);
20738 if (PyErr_Occurred()) SWIG_fail;
20739 }
20740 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_NEW | 0 );
20741 {
20742 if (temp6)
20743 delete arg6;
20744 }
20745 return resultobj;
20746 fail:
20747 {
20748 if (temp6)
20749 delete arg6;
20750 }
20751 return NULL;
20752 }
20753
20754
20755 SWIGINTERN PyObject *_wrap_new_PreListbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20756 PyObject *resultobj = 0;
20757 wxListbook *result = 0 ;
20758
20759 if (!SWIG_Python_UnpackTuple(args,"new_PreListbook",0,0,0)) SWIG_fail;
20760 {
20761 if (!wxPyCheckForApp()) SWIG_fail;
20762 PyThreadState* __tstate = wxPyBeginAllowThreads();
20763 result = (wxListbook *)new wxListbook();
20764 wxPyEndAllowThreads(__tstate);
20765 if (PyErr_Occurred()) SWIG_fail;
20766 }
20767 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_OWN | 0 );
20768 return resultobj;
20769 fail:
20770 return NULL;
20771 }
20772
20773
20774 SWIGINTERN PyObject *_wrap_Listbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20775 PyObject *resultobj = 0;
20776 wxListbook *arg1 = (wxListbook *) 0 ;
20777 wxWindow *arg2 = (wxWindow *) 0 ;
20778 int arg3 = (int) -1 ;
20779 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20780 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20781 wxSize const &arg5_defvalue = wxDefaultSize ;
20782 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20783 long arg6 = (long) 0 ;
20784 wxString const &arg7_defvalue = wxPyEmptyString ;
20785 wxString *arg7 = (wxString *) &arg7_defvalue ;
20786 bool result;
20787 void *argp1 = 0 ;
20788 int res1 = 0 ;
20789 void *argp2 = 0 ;
20790 int res2 = 0 ;
20791 int val3 ;
20792 int ecode3 = 0 ;
20793 wxPoint temp4 ;
20794 wxSize temp5 ;
20795 long val6 ;
20796 int ecode6 = 0 ;
20797 bool temp7 = false ;
20798 PyObject * obj0 = 0 ;
20799 PyObject * obj1 = 0 ;
20800 PyObject * obj2 = 0 ;
20801 PyObject * obj3 = 0 ;
20802 PyObject * obj4 = 0 ;
20803 PyObject * obj5 = 0 ;
20804 PyObject * obj6 = 0 ;
20805 char * kwnames[] = {
20806 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20807 };
20808
20809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
20811 if (!SWIG_IsOK(res1)) {
20812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_Create" "', expected argument " "1"" of type '" "wxListbook *""'");
20813 }
20814 arg1 = reinterpret_cast< wxListbook * >(argp1);
20815 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20816 if (!SWIG_IsOK(res2)) {
20817 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Listbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20818 }
20819 arg2 = reinterpret_cast< wxWindow * >(argp2);
20820 if (obj2) {
20821 ecode3 = SWIG_AsVal_int(obj2, &val3);
20822 if (!SWIG_IsOK(ecode3)) {
20823 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Listbook_Create" "', expected argument " "3"" of type '" "int""'");
20824 }
20825 arg3 = static_cast< int >(val3);
20826 }
20827 if (obj3) {
20828 {
20829 arg4 = &temp4;
20830 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
20831 }
20832 }
20833 if (obj4) {
20834 {
20835 arg5 = &temp5;
20836 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
20837 }
20838 }
20839 if (obj5) {
20840 ecode6 = SWIG_AsVal_long(obj5, &val6);
20841 if (!SWIG_IsOK(ecode6)) {
20842 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Listbook_Create" "', expected argument " "6"" of type '" "long""'");
20843 }
20844 arg6 = static_cast< long >(val6);
20845 }
20846 if (obj6) {
20847 {
20848 arg7 = wxString_in_helper(obj6);
20849 if (arg7 == NULL) SWIG_fail;
20850 temp7 = true;
20851 }
20852 }
20853 {
20854 PyThreadState* __tstate = wxPyBeginAllowThreads();
20855 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20856 wxPyEndAllowThreads(__tstate);
20857 if (PyErr_Occurred()) SWIG_fail;
20858 }
20859 {
20860 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20861 }
20862 {
20863 if (temp7)
20864 delete arg7;
20865 }
20866 return resultobj;
20867 fail:
20868 {
20869 if (temp7)
20870 delete arg7;
20871 }
20872 return NULL;
20873 }
20874
20875
20876 SWIGINTERN PyObject *_wrap_Listbook_GetListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20877 PyObject *resultobj = 0;
20878 wxListbook *arg1 = (wxListbook *) 0 ;
20879 wxListView *result = 0 ;
20880 void *argp1 = 0 ;
20881 int res1 = 0 ;
20882 PyObject *swig_obj[1] ;
20883
20884 if (!args) SWIG_fail;
20885 swig_obj[0] = args;
20886 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
20887 if (!SWIG_IsOK(res1)) {
20888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_GetListView" "', expected argument " "1"" of type '" "wxListbook *""'");
20889 }
20890 arg1 = reinterpret_cast< wxListbook * >(argp1);
20891 {
20892 PyThreadState* __tstate = wxPyBeginAllowThreads();
20893 result = (wxListView *)(arg1)->GetListView();
20894 wxPyEndAllowThreads(__tstate);
20895 if (PyErr_Occurred()) SWIG_fail;
20896 }
20897 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, 0 | 0 );
20898 return resultobj;
20899 fail:
20900 return NULL;
20901 }
20902
20903
20904 SWIGINTERN PyObject *Listbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20905 PyObject *obj;
20906 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20907 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbook, SWIG_NewClientData(obj));
20908 return SWIG_Py_Void();
20909 }
20910
20911 SWIGINTERN PyObject *Listbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20912 return SWIG_Python_InitShadowInstance(args);
20913 }
20914
20915 SWIGINTERN PyObject *_wrap_new_ListbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20916 PyObject *resultobj = 0;
20917 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20918 int arg2 = (int) 0 ;
20919 int arg3 = (int) -1 ;
20920 int arg4 = (int) -1 ;
20921 wxListbookEvent *result = 0 ;
20922 int val1 ;
20923 int ecode1 = 0 ;
20924 int val2 ;
20925 int ecode2 = 0 ;
20926 int val3 ;
20927 int ecode3 = 0 ;
20928 int val4 ;
20929 int ecode4 = 0 ;
20930 PyObject * obj0 = 0 ;
20931 PyObject * obj1 = 0 ;
20932 PyObject * obj2 = 0 ;
20933 PyObject * obj3 = 0 ;
20934 char * kwnames[] = {
20935 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20936 };
20937
20938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20939 if (obj0) {
20940 ecode1 = SWIG_AsVal_int(obj0, &val1);
20941 if (!SWIG_IsOK(ecode1)) {
20942 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20943 }
20944 arg1 = static_cast< wxEventType >(val1);
20945 }
20946 if (obj1) {
20947 ecode2 = SWIG_AsVal_int(obj1, &val2);
20948 if (!SWIG_IsOK(ecode2)) {
20949 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListbookEvent" "', expected argument " "2"" of type '" "int""'");
20950 }
20951 arg2 = static_cast< int >(val2);
20952 }
20953 if (obj2) {
20954 ecode3 = SWIG_AsVal_int(obj2, &val3);
20955 if (!SWIG_IsOK(ecode3)) {
20956 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ListbookEvent" "', expected argument " "3"" of type '" "int""'");
20957 }
20958 arg3 = static_cast< int >(val3);
20959 }
20960 if (obj3) {
20961 ecode4 = SWIG_AsVal_int(obj3, &val4);
20962 if (!SWIG_IsOK(ecode4)) {
20963 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ListbookEvent" "', expected argument " "4"" of type '" "int""'");
20964 }
20965 arg4 = static_cast< int >(val4);
20966 }
20967 {
20968 PyThreadState* __tstate = wxPyBeginAllowThreads();
20969 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
20970 wxPyEndAllowThreads(__tstate);
20971 if (PyErr_Occurred()) SWIG_fail;
20972 }
20973 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbookEvent, SWIG_POINTER_NEW | 0 );
20974 return resultobj;
20975 fail:
20976 return NULL;
20977 }
20978
20979
20980 SWIGINTERN PyObject *ListbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20981 PyObject *obj;
20982 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20983 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbookEvent, SWIG_NewClientData(obj));
20984 return SWIG_Py_Void();
20985 }
20986
20987 SWIGINTERN PyObject *ListbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20988 return SWIG_Python_InitShadowInstance(args);
20989 }
20990
20991 SWIGINTERN PyObject *_wrap_new_Choicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20992 PyObject *resultobj = 0;
20993 wxWindow *arg1 = (wxWindow *) 0 ;
20994 int arg2 ;
20995 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20996 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20997 wxSize const &arg4_defvalue = wxDefaultSize ;
20998 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20999 long arg5 = (long) 0 ;
21000 wxString const &arg6_defvalue = wxPyEmptyString ;
21001 wxString *arg6 = (wxString *) &arg6_defvalue ;
21002 wxChoicebook *result = 0 ;
21003 void *argp1 = 0 ;
21004 int res1 = 0 ;
21005 int val2 ;
21006 int ecode2 = 0 ;
21007 wxPoint temp3 ;
21008 wxSize temp4 ;
21009 long val5 ;
21010 int ecode5 = 0 ;
21011 bool temp6 = false ;
21012 PyObject * obj0 = 0 ;
21013 PyObject * obj1 = 0 ;
21014 PyObject * obj2 = 0 ;
21015 PyObject * obj3 = 0 ;
21016 PyObject * obj4 = 0 ;
21017 PyObject * obj5 = 0 ;
21018 char * kwnames[] = {
21019 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21020 };
21021
21022 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21023 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21024 if (!SWIG_IsOK(res1)) {
21025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choicebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21026 }
21027 arg1 = reinterpret_cast< wxWindow * >(argp1);
21028 ecode2 = SWIG_AsVal_int(obj1, &val2);
21029 if (!SWIG_IsOK(ecode2)) {
21030 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choicebook" "', expected argument " "2"" of type '" "int""'");
21031 }
21032 arg2 = static_cast< int >(val2);
21033 if (obj2) {
21034 {
21035 arg3 = &temp3;
21036 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21037 }
21038 }
21039 if (obj3) {
21040 {
21041 arg4 = &temp4;
21042 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21043 }
21044 }
21045 if (obj4) {
21046 ecode5 = SWIG_AsVal_long(obj4, &val5);
21047 if (!SWIG_IsOK(ecode5)) {
21048 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Choicebook" "', expected argument " "5"" of type '" "long""'");
21049 }
21050 arg5 = static_cast< long >(val5);
21051 }
21052 if (obj5) {
21053 {
21054 arg6 = wxString_in_helper(obj5);
21055 if (arg6 == NULL) SWIG_fail;
21056 temp6 = true;
21057 }
21058 }
21059 {
21060 if (!wxPyCheckForApp()) SWIG_fail;
21061 PyThreadState* __tstate = wxPyBeginAllowThreads();
21062 result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21063 wxPyEndAllowThreads(__tstate);
21064 if (PyErr_Occurred()) SWIG_fail;
21065 }
21066 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_NEW | 0 );
21067 {
21068 if (temp6)
21069 delete arg6;
21070 }
21071 return resultobj;
21072 fail:
21073 {
21074 if (temp6)
21075 delete arg6;
21076 }
21077 return NULL;
21078 }
21079
21080
21081 SWIGINTERN PyObject *_wrap_new_PreChoicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21082 PyObject *resultobj = 0;
21083 wxChoicebook *result = 0 ;
21084
21085 if (!SWIG_Python_UnpackTuple(args,"new_PreChoicebook",0,0,0)) SWIG_fail;
21086 {
21087 if (!wxPyCheckForApp()) SWIG_fail;
21088 PyThreadState* __tstate = wxPyBeginAllowThreads();
21089 result = (wxChoicebook *)new wxChoicebook();
21090 wxPyEndAllowThreads(__tstate);
21091 if (PyErr_Occurred()) SWIG_fail;
21092 }
21093 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_OWN | 0 );
21094 return resultobj;
21095 fail:
21096 return NULL;
21097 }
21098
21099
21100 SWIGINTERN PyObject *_wrap_Choicebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21101 PyObject *resultobj = 0;
21102 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21103 wxWindow *arg2 = (wxWindow *) 0 ;
21104 int arg3 ;
21105 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21106 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21107 wxSize const &arg5_defvalue = wxDefaultSize ;
21108 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21109 long arg6 = (long) 0 ;
21110 wxString const &arg7_defvalue = wxPyEmptyString ;
21111 wxString *arg7 = (wxString *) &arg7_defvalue ;
21112 bool result;
21113 void *argp1 = 0 ;
21114 int res1 = 0 ;
21115 void *argp2 = 0 ;
21116 int res2 = 0 ;
21117 int val3 ;
21118 int ecode3 = 0 ;
21119 wxPoint temp4 ;
21120 wxSize temp5 ;
21121 long val6 ;
21122 int ecode6 = 0 ;
21123 bool temp7 = false ;
21124 PyObject * obj0 = 0 ;
21125 PyObject * obj1 = 0 ;
21126 PyObject * obj2 = 0 ;
21127 PyObject * obj3 = 0 ;
21128 PyObject * obj4 = 0 ;
21129 PyObject * obj5 = 0 ;
21130 PyObject * obj6 = 0 ;
21131 char * kwnames[] = {
21132 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21133 };
21134
21135 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21136 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21137 if (!SWIG_IsOK(res1)) {
21138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_Create" "', expected argument " "1"" of type '" "wxChoicebook *""'");
21139 }
21140 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21141 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21142 if (!SWIG_IsOK(res2)) {
21143 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choicebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21144 }
21145 arg2 = reinterpret_cast< wxWindow * >(argp2);
21146 ecode3 = SWIG_AsVal_int(obj2, &val3);
21147 if (!SWIG_IsOK(ecode3)) {
21148 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choicebook_Create" "', expected argument " "3"" of type '" "int""'");
21149 }
21150 arg3 = static_cast< int >(val3);
21151 if (obj3) {
21152 {
21153 arg4 = &temp4;
21154 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21155 }
21156 }
21157 if (obj4) {
21158 {
21159 arg5 = &temp5;
21160 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21161 }
21162 }
21163 if (obj5) {
21164 ecode6 = SWIG_AsVal_long(obj5, &val6);
21165 if (!SWIG_IsOK(ecode6)) {
21166 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Choicebook_Create" "', expected argument " "6"" of type '" "long""'");
21167 }
21168 arg6 = static_cast< long >(val6);
21169 }
21170 if (obj6) {
21171 {
21172 arg7 = wxString_in_helper(obj6);
21173 if (arg7 == NULL) SWIG_fail;
21174 temp7 = true;
21175 }
21176 }
21177 {
21178 PyThreadState* __tstate = wxPyBeginAllowThreads();
21179 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21180 wxPyEndAllowThreads(__tstate);
21181 if (PyErr_Occurred()) SWIG_fail;
21182 }
21183 {
21184 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21185 }
21186 {
21187 if (temp7)
21188 delete arg7;
21189 }
21190 return resultobj;
21191 fail:
21192 {
21193 if (temp7)
21194 delete arg7;
21195 }
21196 return NULL;
21197 }
21198
21199
21200 SWIGINTERN PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21201 PyObject *resultobj = 0;
21202 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21203 wxChoice *result = 0 ;
21204 void *argp1 = 0 ;
21205 int res1 = 0 ;
21206 PyObject *swig_obj[1] ;
21207
21208 if (!args) SWIG_fail;
21209 swig_obj[0] = args;
21210 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21211 if (!SWIG_IsOK(res1)) {
21212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_GetChoiceCtrl" "', expected argument " "1"" of type '" "wxChoicebook const *""'");
21213 }
21214 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21215 {
21216 PyThreadState* __tstate = wxPyBeginAllowThreads();
21217 result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl();
21218 wxPyEndAllowThreads(__tstate);
21219 if (PyErr_Occurred()) SWIG_fail;
21220 }
21221 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, 0 | 0 );
21222 return resultobj;
21223 fail:
21224 return NULL;
21225 }
21226
21227
21228 SWIGINTERN PyObject *Choicebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21229 PyObject *obj;
21230 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21231 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebook, SWIG_NewClientData(obj));
21232 return SWIG_Py_Void();
21233 }
21234
21235 SWIGINTERN PyObject *Choicebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21236 return SWIG_Python_InitShadowInstance(args);
21237 }
21238
21239 SWIGINTERN PyObject *_wrap_new_ChoicebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21240 PyObject *resultobj = 0;
21241 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21242 int arg2 = (int) 0 ;
21243 int arg3 = (int) -1 ;
21244 int arg4 = (int) -1 ;
21245 wxChoicebookEvent *result = 0 ;
21246 int val1 ;
21247 int ecode1 = 0 ;
21248 int val2 ;
21249 int ecode2 = 0 ;
21250 int val3 ;
21251 int ecode3 = 0 ;
21252 int val4 ;
21253 int ecode4 = 0 ;
21254 PyObject * obj0 = 0 ;
21255 PyObject * obj1 = 0 ;
21256 PyObject * obj2 = 0 ;
21257 PyObject * obj3 = 0 ;
21258 char * kwnames[] = {
21259 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21260 };
21261
21262 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21263 if (obj0) {
21264 ecode1 = SWIG_AsVal_int(obj0, &val1);
21265 if (!SWIG_IsOK(ecode1)) {
21266 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ChoicebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21267 }
21268 arg1 = static_cast< wxEventType >(val1);
21269 }
21270 if (obj1) {
21271 ecode2 = SWIG_AsVal_int(obj1, &val2);
21272 if (!SWIG_IsOK(ecode2)) {
21273 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ChoicebookEvent" "', expected argument " "2"" of type '" "int""'");
21274 }
21275 arg2 = static_cast< int >(val2);
21276 }
21277 if (obj2) {
21278 ecode3 = SWIG_AsVal_int(obj2, &val3);
21279 if (!SWIG_IsOK(ecode3)) {
21280 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ChoicebookEvent" "', expected argument " "3"" of type '" "int""'");
21281 }
21282 arg3 = static_cast< int >(val3);
21283 }
21284 if (obj3) {
21285 ecode4 = SWIG_AsVal_int(obj3, &val4);
21286 if (!SWIG_IsOK(ecode4)) {
21287 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ChoicebookEvent" "', expected argument " "4"" of type '" "int""'");
21288 }
21289 arg4 = static_cast< int >(val4);
21290 }
21291 {
21292 PyThreadState* __tstate = wxPyBeginAllowThreads();
21293 result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4);
21294 wxPyEndAllowThreads(__tstate);
21295 if (PyErr_Occurred()) SWIG_fail;
21296 }
21297 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebookEvent, SWIG_POINTER_NEW | 0 );
21298 return resultobj;
21299 fail:
21300 return NULL;
21301 }
21302
21303
21304 SWIGINTERN PyObject *ChoicebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21305 PyObject *obj;
21306 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21307 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebookEvent, SWIG_NewClientData(obj));
21308 return SWIG_Py_Void();
21309 }
21310
21311 SWIGINTERN PyObject *ChoicebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21312 return SWIG_Python_InitShadowInstance(args);
21313 }
21314
21315 SWIGINTERN PyObject *_wrap_new_Treebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21316 PyObject *resultobj = 0;
21317 wxWindow *arg1 = (wxWindow *) 0 ;
21318 int arg2 ;
21319 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21320 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21321 wxSize const &arg4_defvalue = wxDefaultSize ;
21322 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21323 long arg5 = (long) wxBK_DEFAULT ;
21324 wxString const &arg6_defvalue = wxPyEmptyString ;
21325 wxString *arg6 = (wxString *) &arg6_defvalue ;
21326 wxTreebook *result = 0 ;
21327 void *argp1 = 0 ;
21328 int res1 = 0 ;
21329 int val2 ;
21330 int ecode2 = 0 ;
21331 wxPoint temp3 ;
21332 wxSize temp4 ;
21333 long val5 ;
21334 int ecode5 = 0 ;
21335 bool temp6 = false ;
21336 PyObject * obj0 = 0 ;
21337 PyObject * obj1 = 0 ;
21338 PyObject * obj2 = 0 ;
21339 PyObject * obj3 = 0 ;
21340 PyObject * obj4 = 0 ;
21341 PyObject * obj5 = 0 ;
21342 char * kwnames[] = {
21343 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21344 };
21345
21346 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Treebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21347 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21348 if (!SWIG_IsOK(res1)) {
21349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Treebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21350 }
21351 arg1 = reinterpret_cast< wxWindow * >(argp1);
21352 ecode2 = SWIG_AsVal_int(obj1, &val2);
21353 if (!SWIG_IsOK(ecode2)) {
21354 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Treebook" "', expected argument " "2"" of type '" "int""'");
21355 }
21356 arg2 = static_cast< int >(val2);
21357 if (obj2) {
21358 {
21359 arg3 = &temp3;
21360 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21361 }
21362 }
21363 if (obj3) {
21364 {
21365 arg4 = &temp4;
21366 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21367 }
21368 }
21369 if (obj4) {
21370 ecode5 = SWIG_AsVal_long(obj4, &val5);
21371 if (!SWIG_IsOK(ecode5)) {
21372 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Treebook" "', expected argument " "5"" of type '" "long""'");
21373 }
21374 arg5 = static_cast< long >(val5);
21375 }
21376 if (obj5) {
21377 {
21378 arg6 = wxString_in_helper(obj5);
21379 if (arg6 == NULL) SWIG_fail;
21380 temp6 = true;
21381 }
21382 }
21383 {
21384 if (!wxPyCheckForApp()) SWIG_fail;
21385 PyThreadState* __tstate = wxPyBeginAllowThreads();
21386 result = (wxTreebook *)new wxTreebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21387 wxPyEndAllowThreads(__tstate);
21388 if (PyErr_Occurred()) SWIG_fail;
21389 }
21390 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_NEW | 0 );
21391 {
21392 if (temp6)
21393 delete arg6;
21394 }
21395 return resultobj;
21396 fail:
21397 {
21398 if (temp6)
21399 delete arg6;
21400 }
21401 return NULL;
21402 }
21403
21404
21405 SWIGINTERN PyObject *_wrap_new_PreTreebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21406 PyObject *resultobj = 0;
21407 wxTreebook *result = 0 ;
21408
21409 if (!SWIG_Python_UnpackTuple(args,"new_PreTreebook",0,0,0)) SWIG_fail;
21410 {
21411 if (!wxPyCheckForApp()) SWIG_fail;
21412 PyThreadState* __tstate = wxPyBeginAllowThreads();
21413 result = (wxTreebook *)new wxTreebook();
21414 wxPyEndAllowThreads(__tstate);
21415 if (PyErr_Occurred()) SWIG_fail;
21416 }
21417 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_OWN | 0 );
21418 return resultobj;
21419 fail:
21420 return NULL;
21421 }
21422
21423
21424 SWIGINTERN PyObject *_wrap_Treebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21425 PyObject *resultobj = 0;
21426 wxTreebook *arg1 = (wxTreebook *) 0 ;
21427 wxWindow *arg2 = (wxWindow *) 0 ;
21428 int arg3 ;
21429 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21430 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21431 wxSize const &arg5_defvalue = wxDefaultSize ;
21432 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21433 long arg6 = (long) wxBK_DEFAULT ;
21434 wxString const &arg7_defvalue = wxPyEmptyString ;
21435 wxString *arg7 = (wxString *) &arg7_defvalue ;
21436 bool result;
21437 void *argp1 = 0 ;
21438 int res1 = 0 ;
21439 void *argp2 = 0 ;
21440 int res2 = 0 ;
21441 int val3 ;
21442 int ecode3 = 0 ;
21443 wxPoint temp4 ;
21444 wxSize temp5 ;
21445 long val6 ;
21446 int ecode6 = 0 ;
21447 bool temp7 = false ;
21448 PyObject * obj0 = 0 ;
21449 PyObject * obj1 = 0 ;
21450 PyObject * obj2 = 0 ;
21451 PyObject * obj3 = 0 ;
21452 PyObject * obj4 = 0 ;
21453 PyObject * obj5 = 0 ;
21454 PyObject * obj6 = 0 ;
21455 char * kwnames[] = {
21456 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21457 };
21458
21459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Treebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21461 if (!SWIG_IsOK(res1)) {
21462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_Create" "', expected argument " "1"" of type '" "wxTreebook *""'");
21463 }
21464 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21465 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21466 if (!SWIG_IsOK(res2)) {
21467 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21468 }
21469 arg2 = reinterpret_cast< wxWindow * >(argp2);
21470 ecode3 = SWIG_AsVal_int(obj2, &val3);
21471 if (!SWIG_IsOK(ecode3)) {
21472 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_Create" "', expected argument " "3"" of type '" "int""'");
21473 }
21474 arg3 = static_cast< int >(val3);
21475 if (obj3) {
21476 {
21477 arg4 = &temp4;
21478 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21479 }
21480 }
21481 if (obj4) {
21482 {
21483 arg5 = &temp5;
21484 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21485 }
21486 }
21487 if (obj5) {
21488 ecode6 = SWIG_AsVal_long(obj5, &val6);
21489 if (!SWIG_IsOK(ecode6)) {
21490 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_Create" "', expected argument " "6"" of type '" "long""'");
21491 }
21492 arg6 = static_cast< long >(val6);
21493 }
21494 if (obj6) {
21495 {
21496 arg7 = wxString_in_helper(obj6);
21497 if (arg7 == NULL) SWIG_fail;
21498 temp7 = true;
21499 }
21500 }
21501 {
21502 PyThreadState* __tstate = wxPyBeginAllowThreads();
21503 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21504 wxPyEndAllowThreads(__tstate);
21505 if (PyErr_Occurred()) SWIG_fail;
21506 }
21507 {
21508 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21509 }
21510 {
21511 if (temp7)
21512 delete arg7;
21513 }
21514 return resultobj;
21515 fail:
21516 {
21517 if (temp7)
21518 delete arg7;
21519 }
21520 return NULL;
21521 }
21522
21523
21524 SWIGINTERN PyObject *_wrap_Treebook_InsertSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21525 PyObject *resultobj = 0;
21526 wxTreebook *arg1 = (wxTreebook *) 0 ;
21527 size_t arg2 ;
21528 wxWindow *arg3 = (wxWindow *) 0 ;
21529 wxString *arg4 = 0 ;
21530 bool arg5 = (bool) false ;
21531 int arg6 = (int) wxNOT_FOUND ;
21532 bool result;
21533 void *argp1 = 0 ;
21534 int res1 = 0 ;
21535 size_t val2 ;
21536 int ecode2 = 0 ;
21537 void *argp3 = 0 ;
21538 int res3 = 0 ;
21539 bool temp4 = false ;
21540 bool val5 ;
21541 int ecode5 = 0 ;
21542 int val6 ;
21543 int ecode6 = 0 ;
21544 PyObject * obj0 = 0 ;
21545 PyObject * obj1 = 0 ;
21546 PyObject * obj2 = 0 ;
21547 PyObject * obj3 = 0 ;
21548 PyObject * obj4 = 0 ;
21549 PyObject * obj5 = 0 ;
21550 char * kwnames[] = {
21551 (char *) "self",(char *) "pos",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21552 };
21553
21554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Treebook_InsertSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21556 if (!SWIG_IsOK(res1)) {
21557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_InsertSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21558 }
21559 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21560 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21561 if (!SWIG_IsOK(ecode2)) {
21562 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_InsertSubPage" "', expected argument " "2"" of type '" "size_t""'");
21563 }
21564 arg2 = static_cast< size_t >(val2);
21565 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
21566 if (!SWIG_IsOK(res3)) {
21567 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Treebook_InsertSubPage" "', expected argument " "3"" of type '" "wxWindow *""'");
21568 }
21569 arg3 = reinterpret_cast< wxWindow * >(argp3);
21570 {
21571 arg4 = wxString_in_helper(obj3);
21572 if (arg4 == NULL) SWIG_fail;
21573 temp4 = true;
21574 }
21575 if (obj4) {
21576 ecode5 = SWIG_AsVal_bool(obj4, &val5);
21577 if (!SWIG_IsOK(ecode5)) {
21578 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_InsertSubPage" "', expected argument " "5"" of type '" "bool""'");
21579 }
21580 arg5 = static_cast< bool >(val5);
21581 }
21582 if (obj5) {
21583 ecode6 = SWIG_AsVal_int(obj5, &val6);
21584 if (!SWIG_IsOK(ecode6)) {
21585 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_InsertSubPage" "', expected argument " "6"" of type '" "int""'");
21586 }
21587 arg6 = static_cast< int >(val6);
21588 }
21589 {
21590 PyThreadState* __tstate = wxPyBeginAllowThreads();
21591 result = (bool)(arg1)->InsertSubPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
21592 wxPyEndAllowThreads(__tstate);
21593 if (PyErr_Occurred()) SWIG_fail;
21594 }
21595 {
21596 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21597 }
21598 {
21599 if (temp4)
21600 delete arg4;
21601 }
21602 return resultobj;
21603 fail:
21604 {
21605 if (temp4)
21606 delete arg4;
21607 }
21608 return NULL;
21609 }
21610
21611
21612 SWIGINTERN PyObject *_wrap_Treebook_AddSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21613 PyObject *resultobj = 0;
21614 wxTreebook *arg1 = (wxTreebook *) 0 ;
21615 wxWindow *arg2 = (wxWindow *) 0 ;
21616 wxString *arg3 = 0 ;
21617 bool arg4 = (bool) false ;
21618 int arg5 = (int) wxNOT_FOUND ;
21619 bool result;
21620 void *argp1 = 0 ;
21621 int res1 = 0 ;
21622 void *argp2 = 0 ;
21623 int res2 = 0 ;
21624 bool temp3 = false ;
21625 bool val4 ;
21626 int ecode4 = 0 ;
21627 int val5 ;
21628 int ecode5 = 0 ;
21629 PyObject * obj0 = 0 ;
21630 PyObject * obj1 = 0 ;
21631 PyObject * obj2 = 0 ;
21632 PyObject * obj3 = 0 ;
21633 PyObject * obj4 = 0 ;
21634 char * kwnames[] = {
21635 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21636 };
21637
21638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Treebook_AddSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
21639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21640 if (!SWIG_IsOK(res1)) {
21641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_AddSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21642 }
21643 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21644 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21645 if (!SWIG_IsOK(res2)) {
21646 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_AddSubPage" "', expected argument " "2"" of type '" "wxWindow *""'");
21647 }
21648 arg2 = reinterpret_cast< wxWindow * >(argp2);
21649 {
21650 arg3 = wxString_in_helper(obj2);
21651 if (arg3 == NULL) SWIG_fail;
21652 temp3 = true;
21653 }
21654 if (obj3) {
21655 ecode4 = SWIG_AsVal_bool(obj3, &val4);
21656 if (!SWIG_IsOK(ecode4)) {
21657 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Treebook_AddSubPage" "', expected argument " "4"" of type '" "bool""'");
21658 }
21659 arg4 = static_cast< bool >(val4);
21660 }
21661 if (obj4) {
21662 ecode5 = SWIG_AsVal_int(obj4, &val5);
21663 if (!SWIG_IsOK(ecode5)) {
21664 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_AddSubPage" "', expected argument " "5"" of type '" "int""'");
21665 }
21666 arg5 = static_cast< int >(val5);
21667 }
21668 {
21669 PyThreadState* __tstate = wxPyBeginAllowThreads();
21670 result = (bool)(arg1)->AddSubPage(arg2,(wxString const &)*arg3,arg4,arg5);
21671 wxPyEndAllowThreads(__tstate);
21672 if (PyErr_Occurred()) SWIG_fail;
21673 }
21674 {
21675 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21676 }
21677 {
21678 if (temp3)
21679 delete arg3;
21680 }
21681 return resultobj;
21682 fail:
21683 {
21684 if (temp3)
21685 delete arg3;
21686 }
21687 return NULL;
21688 }
21689
21690
21691 SWIGINTERN PyObject *_wrap_Treebook_IsNodeExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21692 PyObject *resultobj = 0;
21693 wxTreebook *arg1 = (wxTreebook *) 0 ;
21694 size_t arg2 ;
21695 bool result;
21696 void *argp1 = 0 ;
21697 int res1 = 0 ;
21698 size_t val2 ;
21699 int ecode2 = 0 ;
21700 PyObject * obj0 = 0 ;
21701 PyObject * obj1 = 0 ;
21702 char * kwnames[] = {
21703 (char *) "self",(char *) "pos", NULL
21704 };
21705
21706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_IsNodeExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
21707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21708 if (!SWIG_IsOK(res1)) {
21709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "1"" of type '" "wxTreebook const *""'");
21710 }
21711 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21712 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21713 if (!SWIG_IsOK(ecode2)) {
21714 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "2"" of type '" "size_t""'");
21715 }
21716 arg2 = static_cast< size_t >(val2);
21717 {
21718 PyThreadState* __tstate = wxPyBeginAllowThreads();
21719 result = (bool)((wxTreebook const *)arg1)->IsNodeExpanded(arg2);
21720 wxPyEndAllowThreads(__tstate);
21721 if (PyErr_Occurred()) SWIG_fail;
21722 }
21723 {
21724 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21725 }
21726 return resultobj;
21727 fail:
21728 return NULL;
21729 }
21730
21731
21732 SWIGINTERN PyObject *_wrap_Treebook_ExpandNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21733 PyObject *resultobj = 0;
21734 wxTreebook *arg1 = (wxTreebook *) 0 ;
21735 size_t arg2 ;
21736 bool arg3 = (bool) true ;
21737 bool result;
21738 void *argp1 = 0 ;
21739 int res1 = 0 ;
21740 size_t val2 ;
21741 int ecode2 = 0 ;
21742 bool val3 ;
21743 int ecode3 = 0 ;
21744 PyObject * obj0 = 0 ;
21745 PyObject * obj1 = 0 ;
21746 PyObject * obj2 = 0 ;
21747 char * kwnames[] = {
21748 (char *) "self",(char *) "pos",(char *) "expand", NULL
21749 };
21750
21751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Treebook_ExpandNode",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21753 if (!SWIG_IsOK(res1)) {
21754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_ExpandNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
21755 }
21756 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21757 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21758 if (!SWIG_IsOK(ecode2)) {
21759 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_ExpandNode" "', expected argument " "2"" of type '" "size_t""'");
21760 }
21761 arg2 = static_cast< size_t >(val2);
21762 if (obj2) {
21763 ecode3 = SWIG_AsVal_bool(obj2, &val3);
21764 if (!SWIG_IsOK(ecode3)) {
21765 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_ExpandNode" "', expected argument " "3"" of type '" "bool""'");
21766 }
21767 arg3 = static_cast< bool >(val3);
21768 }
21769 {
21770 PyThreadState* __tstate = wxPyBeginAllowThreads();
21771 result = (bool)(arg1)->ExpandNode(arg2,arg3);
21772 wxPyEndAllowThreads(__tstate);
21773 if (PyErr_Occurred()) SWIG_fail;
21774 }
21775 {
21776 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21777 }
21778 return resultobj;
21779 fail:
21780 return NULL;
21781 }
21782
21783
21784 SWIGINTERN PyObject *_wrap_Treebook_CollapseNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21785 PyObject *resultobj = 0;
21786 wxTreebook *arg1 = (wxTreebook *) 0 ;
21787 size_t arg2 ;
21788 bool result;
21789 void *argp1 = 0 ;
21790 int res1 = 0 ;
21791 size_t val2 ;
21792 int ecode2 = 0 ;
21793 PyObject * obj0 = 0 ;
21794 PyObject * obj1 = 0 ;
21795 char * kwnames[] = {
21796 (char *) "self",(char *) "pos", NULL
21797 };
21798
21799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_CollapseNode",kwnames,&obj0,&obj1)) SWIG_fail;
21800 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21801 if (!SWIG_IsOK(res1)) {
21802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_CollapseNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
21803 }
21804 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21805 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21806 if (!SWIG_IsOK(ecode2)) {
21807 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_CollapseNode" "', expected argument " "2"" of type '" "size_t""'");
21808 }
21809 arg2 = static_cast< size_t >(val2);
21810 {
21811 PyThreadState* __tstate = wxPyBeginAllowThreads();
21812 result = (bool)(arg1)->CollapseNode(arg2);
21813 wxPyEndAllowThreads(__tstate);
21814 if (PyErr_Occurred()) SWIG_fail;
21815 }
21816 {
21817 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21818 }
21819 return resultobj;
21820 fail:
21821 return NULL;
21822 }
21823
21824
21825 SWIGINTERN PyObject *_wrap_Treebook_GetPageParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21826 PyObject *resultobj = 0;
21827 wxTreebook *arg1 = (wxTreebook *) 0 ;
21828 size_t arg2 ;
21829 int result;
21830 void *argp1 = 0 ;
21831 int res1 = 0 ;
21832 size_t val2 ;
21833 int ecode2 = 0 ;
21834 PyObject * obj0 = 0 ;
21835 PyObject * obj1 = 0 ;
21836 char * kwnames[] = {
21837 (char *) "self",(char *) "pos", NULL
21838 };
21839
21840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_GetPageParent",kwnames,&obj0,&obj1)) SWIG_fail;
21841 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21842 if (!SWIG_IsOK(res1)) {
21843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetPageParent" "', expected argument " "1"" of type '" "wxTreebook const *""'");
21844 }
21845 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21846 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21847 if (!SWIG_IsOK(ecode2)) {
21848 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_GetPageParent" "', expected argument " "2"" of type '" "size_t""'");
21849 }
21850 arg2 = static_cast< size_t >(val2);
21851 {
21852 PyThreadState* __tstate = wxPyBeginAllowThreads();
21853 result = (int)((wxTreebook const *)arg1)->GetPageParent(arg2);
21854 wxPyEndAllowThreads(__tstate);
21855 if (PyErr_Occurred()) SWIG_fail;
21856 }
21857 resultobj = SWIG_From_int(static_cast< int >(result));
21858 return resultobj;
21859 fail:
21860 return NULL;
21861 }
21862
21863
21864 SWIGINTERN PyObject *_wrap_Treebook_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21865 PyObject *resultobj = 0;
21866 wxTreebook *arg1 = (wxTreebook *) 0 ;
21867 wxTreeCtrl *result = 0 ;
21868 void *argp1 = 0 ;
21869 int res1 = 0 ;
21870 PyObject *swig_obj[1] ;
21871
21872 if (!args) SWIG_fail;
21873 swig_obj[0] = args;
21874 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21875 if (!SWIG_IsOK(res1)) {
21876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetTreeCtrl" "', expected argument " "1"" of type '" "wxTreebook const *""'");
21877 }
21878 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21879 {
21880 PyThreadState* __tstate = wxPyBeginAllowThreads();
21881 result = (wxTreeCtrl *)((wxTreebook const *)arg1)->GetTreeCtrl();
21882 wxPyEndAllowThreads(__tstate);
21883 if (PyErr_Occurred()) SWIG_fail;
21884 }
21885 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeCtrl, 0 | 0 );
21886 return resultobj;
21887 fail:
21888 return NULL;
21889 }
21890
21891
21892 SWIGINTERN PyObject *Treebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21893 PyObject *obj;
21894 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21895 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebook, SWIG_NewClientData(obj));
21896 return SWIG_Py_Void();
21897 }
21898
21899 SWIGINTERN PyObject *Treebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21900 return SWIG_Python_InitShadowInstance(args);
21901 }
21902
21903 SWIGINTERN PyObject *_wrap_new_TreebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21904 PyObject *resultobj = 0;
21905 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21906 int arg2 = (int) 0 ;
21907 int arg3 = (int) wxNOT_FOUND ;
21908 int arg4 = (int) wxNOT_FOUND ;
21909 wxTreebookEvent *result = 0 ;
21910 int val1 ;
21911 int ecode1 = 0 ;
21912 int val2 ;
21913 int ecode2 = 0 ;
21914 int val3 ;
21915 int ecode3 = 0 ;
21916 int val4 ;
21917 int ecode4 = 0 ;
21918 PyObject * obj0 = 0 ;
21919 PyObject * obj1 = 0 ;
21920 PyObject * obj2 = 0 ;
21921 PyObject * obj3 = 0 ;
21922 char * kwnames[] = {
21923 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21924 };
21925
21926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TreebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21927 if (obj0) {
21928 ecode1 = SWIG_AsVal_int(obj0, &val1);
21929 if (!SWIG_IsOK(ecode1)) {
21930 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21931 }
21932 arg1 = static_cast< wxEventType >(val1);
21933 }
21934 if (obj1) {
21935 ecode2 = SWIG_AsVal_int(obj1, &val2);
21936 if (!SWIG_IsOK(ecode2)) {
21937 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreebookEvent" "', expected argument " "2"" of type '" "int""'");
21938 }
21939 arg2 = static_cast< int >(val2);
21940 }
21941 if (obj2) {
21942 ecode3 = SWIG_AsVal_int(obj2, &val3);
21943 if (!SWIG_IsOK(ecode3)) {
21944 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TreebookEvent" "', expected argument " "3"" of type '" "int""'");
21945 }
21946 arg3 = static_cast< int >(val3);
21947 }
21948 if (obj3) {
21949 ecode4 = SWIG_AsVal_int(obj3, &val4);
21950 if (!SWIG_IsOK(ecode4)) {
21951 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TreebookEvent" "', expected argument " "4"" of type '" "int""'");
21952 }
21953 arg4 = static_cast< int >(val4);
21954 }
21955 {
21956 PyThreadState* __tstate = wxPyBeginAllowThreads();
21957 result = (wxTreebookEvent *)new wxTreebookEvent(arg1,arg2,arg3,arg4);
21958 wxPyEndAllowThreads(__tstate);
21959 if (PyErr_Occurred()) SWIG_fail;
21960 }
21961 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebookEvent, SWIG_POINTER_NEW | 0 );
21962 return resultobj;
21963 fail:
21964 return NULL;
21965 }
21966
21967
21968 SWIGINTERN PyObject *TreebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21969 PyObject *obj;
21970 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21971 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebookEvent, SWIG_NewClientData(obj));
21972 return SWIG_Py_Void();
21973 }
21974
21975 SWIGINTERN PyObject *TreebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21976 return SWIG_Python_InitShadowInstance(args);
21977 }
21978
21979 SWIGINTERN PyObject *_wrap_new_Toolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21980 PyObject *resultobj = 0;
21981 wxWindow *arg1 = (wxWindow *) 0 ;
21982 int arg2 ;
21983 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21984 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21985 wxSize const &arg4_defvalue = wxDefaultSize ;
21986 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21987 long arg5 = (long) wxBK_DEFAULT ;
21988 wxString const &arg6_defvalue = wxPyEmptyString ;
21989 wxString *arg6 = (wxString *) &arg6_defvalue ;
21990 wxToolbook *result = 0 ;
21991 void *argp1 = 0 ;
21992 int res1 = 0 ;
21993 int val2 ;
21994 int ecode2 = 0 ;
21995 wxPoint temp3 ;
21996 wxSize temp4 ;
21997 long val5 ;
21998 int ecode5 = 0 ;
21999 bool temp6 = false ;
22000 PyObject * obj0 = 0 ;
22001 PyObject * obj1 = 0 ;
22002 PyObject * obj2 = 0 ;
22003 PyObject * obj3 = 0 ;
22004 PyObject * obj4 = 0 ;
22005 PyObject * obj5 = 0 ;
22006 char * kwnames[] = {
22007 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22008 };
22009
22010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Toolbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
22012 if (!SWIG_IsOK(res1)) {
22013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Toolbook" "', expected argument " "1"" of type '" "wxWindow *""'");
22014 }
22015 arg1 = reinterpret_cast< wxWindow * >(argp1);
22016 ecode2 = SWIG_AsVal_int(obj1, &val2);
22017 if (!SWIG_IsOK(ecode2)) {
22018 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Toolbook" "', expected argument " "2"" of type '" "int""'");
22019 }
22020 arg2 = static_cast< int >(val2);
22021 if (obj2) {
22022 {
22023 arg3 = &temp3;
22024 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
22025 }
22026 }
22027 if (obj3) {
22028 {
22029 arg4 = &temp4;
22030 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
22031 }
22032 }
22033 if (obj4) {
22034 ecode5 = SWIG_AsVal_long(obj4, &val5);
22035 if (!SWIG_IsOK(ecode5)) {
22036 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Toolbook" "', expected argument " "5"" of type '" "long""'");
22037 }
22038 arg5 = static_cast< long >(val5);
22039 }
22040 if (obj5) {
22041 {
22042 arg6 = wxString_in_helper(obj5);
22043 if (arg6 == NULL) SWIG_fail;
22044 temp6 = true;
22045 }
22046 }
22047 {
22048 PyThreadState* __tstate = wxPyBeginAllowThreads();
22049 result = (wxToolbook *)new wxToolbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
22050 wxPyEndAllowThreads(__tstate);
22051 if (PyErr_Occurred()) SWIG_fail;
22052 }
22053 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_NEW | 0 );
22054 {
22055 if (temp6)
22056 delete arg6;
22057 }
22058 return resultobj;
22059 fail:
22060 {
22061 if (temp6)
22062 delete arg6;
22063 }
22064 return NULL;
22065 }
22066
22067
22068 SWIGINTERN PyObject *_wrap_new_PreToolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22069 PyObject *resultobj = 0;
22070 wxToolbook *result = 0 ;
22071
22072 if (!SWIG_Python_UnpackTuple(args,"new_PreToolbook",0,0,0)) SWIG_fail;
22073 {
22074 PyThreadState* __tstate = wxPyBeginAllowThreads();
22075 result = (wxToolbook *)new wxToolbook();
22076 wxPyEndAllowThreads(__tstate);
22077 if (PyErr_Occurred()) SWIG_fail;
22078 }
22079 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_OWN | 0 );
22080 return resultobj;
22081 fail:
22082 return NULL;
22083 }
22084
22085
22086 SWIGINTERN PyObject *_wrap_Toolbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22087 PyObject *resultobj = 0;
22088 wxToolbook *arg1 = (wxToolbook *) 0 ;
22089 wxWindow *arg2 = (wxWindow *) 0 ;
22090 int arg3 ;
22091 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22092 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22093 wxSize const &arg5_defvalue = wxDefaultSize ;
22094 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22095 long arg6 = (long) 0 ;
22096 wxString const &arg7_defvalue = wxEmptyString ;
22097 wxString *arg7 = (wxString *) &arg7_defvalue ;
22098 bool result;
22099 void *argp1 = 0 ;
22100 int res1 = 0 ;
22101 void *argp2 = 0 ;
22102 int res2 = 0 ;
22103 int val3 ;
22104 int ecode3 = 0 ;
22105 wxPoint temp4 ;
22106 wxSize temp5 ;
22107 long val6 ;
22108 int ecode6 = 0 ;
22109 bool temp7 = false ;
22110 PyObject * obj0 = 0 ;
22111 PyObject * obj1 = 0 ;
22112 PyObject * obj2 = 0 ;
22113 PyObject * obj3 = 0 ;
22114 PyObject * obj4 = 0 ;
22115 PyObject * obj5 = 0 ;
22116 PyObject * obj6 = 0 ;
22117 char * kwnames[] = {
22118 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22119 };
22120
22121 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Toolbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22122 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22123 if (!SWIG_IsOK(res1)) {
22124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Create" "', expected argument " "1"" of type '" "wxToolbook *""'");
22125 }
22126 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22127 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22128 if (!SWIG_IsOK(res2)) {
22129 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Toolbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
22130 }
22131 arg2 = reinterpret_cast< wxWindow * >(argp2);
22132 ecode3 = SWIG_AsVal_int(obj2, &val3);
22133 if (!SWIG_IsOK(ecode3)) {
22134 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Toolbook_Create" "', expected argument " "3"" of type '" "int""'");
22135 }
22136 arg3 = static_cast< int >(val3);
22137 if (obj3) {
22138 {
22139 arg4 = &temp4;
22140 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
22141 }
22142 }
22143 if (obj4) {
22144 {
22145 arg5 = &temp5;
22146 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
22147 }
22148 }
22149 if (obj5) {
22150 ecode6 = SWIG_AsVal_long(obj5, &val6);
22151 if (!SWIG_IsOK(ecode6)) {
22152 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Toolbook_Create" "', expected argument " "6"" of type '" "long""'");
22153 }
22154 arg6 = static_cast< long >(val6);
22155 }
22156 if (obj6) {
22157 {
22158 arg7 = wxString_in_helper(obj6);
22159 if (arg7 == NULL) SWIG_fail;
22160 temp7 = true;
22161 }
22162 }
22163 {
22164 PyThreadState* __tstate = wxPyBeginAllowThreads();
22165 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22166 wxPyEndAllowThreads(__tstate);
22167 if (PyErr_Occurred()) SWIG_fail;
22168 }
22169 {
22170 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22171 }
22172 {
22173 if (temp7)
22174 delete arg7;
22175 }
22176 return resultobj;
22177 fail:
22178 {
22179 if (temp7)
22180 delete arg7;
22181 }
22182 return NULL;
22183 }
22184
22185
22186 SWIGINTERN PyObject *_wrap_Toolbook_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22187 PyObject *resultobj = 0;
22188 wxToolbook *arg1 = (wxToolbook *) 0 ;
22189 wxToolBarBase *result = 0 ;
22190 void *argp1 = 0 ;
22191 int res1 = 0 ;
22192 PyObject *swig_obj[1] ;
22193
22194 if (!args) SWIG_fail;
22195 swig_obj[0] = args;
22196 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22197 if (!SWIG_IsOK(res1)) {
22198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_GetToolBar" "', expected argument " "1"" of type '" "wxToolbook const *""'");
22199 }
22200 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22201 {
22202 PyThreadState* __tstate = wxPyBeginAllowThreads();
22203 result = (wxToolBarBase *)((wxToolbook const *)arg1)->GetToolBar();
22204 wxPyEndAllowThreads(__tstate);
22205 if (PyErr_Occurred()) SWIG_fail;
22206 }
22207 {
22208 resultobj = wxPyMake_wxObject(result, (bool)0);
22209 }
22210 return resultobj;
22211 fail:
22212 return NULL;
22213 }
22214
22215
22216 SWIGINTERN PyObject *_wrap_Toolbook_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22217 PyObject *resultobj = 0;
22218 wxToolbook *arg1 = (wxToolbook *) 0 ;
22219 void *argp1 = 0 ;
22220 int res1 = 0 ;
22221 PyObject *swig_obj[1] ;
22222
22223 if (!args) SWIG_fail;
22224 swig_obj[0] = args;
22225 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22226 if (!SWIG_IsOK(res1)) {
22227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Realize" "', expected argument " "1"" of type '" "wxToolbook *""'");
22228 }
22229 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22230 {
22231 PyThreadState* __tstate = wxPyBeginAllowThreads();
22232 (arg1)->Realize();
22233 wxPyEndAllowThreads(__tstate);
22234 if (PyErr_Occurred()) SWIG_fail;
22235 }
22236 resultobj = SWIG_Py_Void();
22237 return resultobj;
22238 fail:
22239 return NULL;
22240 }
22241
22242
22243 SWIGINTERN PyObject *Toolbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22244 PyObject *obj;
22245 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22246 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbook, SWIG_NewClientData(obj));
22247 return SWIG_Py_Void();
22248 }
22249
22250 SWIGINTERN PyObject *Toolbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22251 return SWIG_Python_InitShadowInstance(args);
22252 }
22253
22254 SWIGINTERN PyObject *_wrap_new_ToolbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22255 PyObject *resultobj = 0;
22256 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22257 int arg2 = (int) 0 ;
22258 int arg3 = (int) wxNOT_FOUND ;
22259 int arg4 = (int) wxNOT_FOUND ;
22260 wxToolbookEvent *result = 0 ;
22261 int val1 ;
22262 int ecode1 = 0 ;
22263 int val2 ;
22264 int ecode2 = 0 ;
22265 int val3 ;
22266 int ecode3 = 0 ;
22267 int val4 ;
22268 int ecode4 = 0 ;
22269 PyObject * obj0 = 0 ;
22270 PyObject * obj1 = 0 ;
22271 PyObject * obj2 = 0 ;
22272 PyObject * obj3 = 0 ;
22273 char * kwnames[] = {
22274 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22275 };
22276
22277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ToolbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22278 if (obj0) {
22279 ecode1 = SWIG_AsVal_int(obj0, &val1);
22280 if (!SWIG_IsOK(ecode1)) {
22281 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ToolbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22282 }
22283 arg1 = static_cast< wxEventType >(val1);
22284 }
22285 if (obj1) {
22286 ecode2 = SWIG_AsVal_int(obj1, &val2);
22287 if (!SWIG_IsOK(ecode2)) {
22288 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolbookEvent" "', expected argument " "2"" of type '" "int""'");
22289 }
22290 arg2 = static_cast< int >(val2);
22291 }
22292 if (obj2) {
22293 ecode3 = SWIG_AsVal_int(obj2, &val3);
22294 if (!SWIG_IsOK(ecode3)) {
22295 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ToolbookEvent" "', expected argument " "3"" of type '" "int""'");
22296 }
22297 arg3 = static_cast< int >(val3);
22298 }
22299 if (obj3) {
22300 ecode4 = SWIG_AsVal_int(obj3, &val4);
22301 if (!SWIG_IsOK(ecode4)) {
22302 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ToolbookEvent" "', expected argument " "4"" of type '" "int""'");
22303 }
22304 arg4 = static_cast< int >(val4);
22305 }
22306 {
22307 PyThreadState* __tstate = wxPyBeginAllowThreads();
22308 result = (wxToolbookEvent *)new wxToolbookEvent(arg1,arg2,arg3,arg4);
22309 wxPyEndAllowThreads(__tstate);
22310 if (PyErr_Occurred()) SWIG_fail;
22311 }
22312 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbookEvent, SWIG_POINTER_NEW | 0 );
22313 return resultobj;
22314 fail:
22315 return NULL;
22316 }
22317
22318
22319 SWIGINTERN PyObject *ToolbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22320 PyObject *obj;
22321 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22322 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbookEvent, SWIG_NewClientData(obj));
22323 return SWIG_Py_Void();
22324 }
22325
22326 SWIGINTERN PyObject *ToolbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22327 return SWIG_Python_InitShadowInstance(args);
22328 }
22329
22330 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22331 PyObject *resultobj = 0;
22332 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22333 int result;
22334 void *argp1 = 0 ;
22335 int res1 = 0 ;
22336 PyObject *swig_obj[1] ;
22337
22338 if (!args) SWIG_fail;
22339 swig_obj[0] = args;
22340 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22341 if (!SWIG_IsOK(res1)) {
22342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetId" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22343 }
22344 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22345 {
22346 PyThreadState* __tstate = wxPyBeginAllowThreads();
22347 result = (int)(arg1)->GetId();
22348 wxPyEndAllowThreads(__tstate);
22349 if (PyErr_Occurred()) SWIG_fail;
22350 }
22351 resultobj = SWIG_From_int(static_cast< int >(result));
22352 return resultobj;
22353 fail:
22354 return NULL;
22355 }
22356
22357
22358 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22359 PyObject *resultobj = 0;
22360 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22361 wxControl *result = 0 ;
22362 void *argp1 = 0 ;
22363 int res1 = 0 ;
22364 PyObject *swig_obj[1] ;
22365
22366 if (!args) SWIG_fail;
22367 swig_obj[0] = args;
22368 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22369 if (!SWIG_IsOK(res1)) {
22370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22371 }
22372 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22373 {
22374 PyThreadState* __tstate = wxPyBeginAllowThreads();
22375 result = (wxControl *)(arg1)->GetControl();
22376 wxPyEndAllowThreads(__tstate);
22377 if (PyErr_Occurred()) SWIG_fail;
22378 }
22379 {
22380 resultobj = wxPyMake_wxObject(result, 0);
22381 }
22382 return resultobj;
22383 fail:
22384 return NULL;
22385 }
22386
22387
22388 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22389 PyObject *resultobj = 0;
22390 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22391 wxToolBarBase *result = 0 ;
22392 void *argp1 = 0 ;
22393 int res1 = 0 ;
22394 PyObject *swig_obj[1] ;
22395
22396 if (!args) SWIG_fail;
22397 swig_obj[0] = args;
22398 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22399 if (!SWIG_IsOK(res1)) {
22400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetToolBar" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22401 }
22402 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22403 {
22404 PyThreadState* __tstate = wxPyBeginAllowThreads();
22405 result = (wxToolBarBase *)(arg1)->GetToolBar();
22406 wxPyEndAllowThreads(__tstate);
22407 if (PyErr_Occurred()) SWIG_fail;
22408 }
22409 {
22410 resultobj = wxPyMake_wxObject(result, (bool)0);
22411 }
22412 return resultobj;
22413 fail:
22414 return NULL;
22415 }
22416
22417
22418 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22419 PyObject *resultobj = 0;
22420 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22421 int result;
22422 void *argp1 = 0 ;
22423 int res1 = 0 ;
22424 PyObject *swig_obj[1] ;
22425
22426 if (!args) SWIG_fail;
22427 swig_obj[0] = args;
22428 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22429 if (!SWIG_IsOK(res1)) {
22430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsButton" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22431 }
22432 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22433 {
22434 PyThreadState* __tstate = wxPyBeginAllowThreads();
22435 result = (int)(arg1)->IsButton();
22436 wxPyEndAllowThreads(__tstate);
22437 if (PyErr_Occurred()) SWIG_fail;
22438 }
22439 resultobj = SWIG_From_int(static_cast< int >(result));
22440 return resultobj;
22441 fail:
22442 return NULL;
22443 }
22444
22445
22446 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22447 PyObject *resultobj = 0;
22448 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22449 int result;
22450 void *argp1 = 0 ;
22451 int res1 = 0 ;
22452 PyObject *swig_obj[1] ;
22453
22454 if (!args) SWIG_fail;
22455 swig_obj[0] = args;
22456 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22457 if (!SWIG_IsOK(res1)) {
22458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22459 }
22460 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22461 {
22462 PyThreadState* __tstate = wxPyBeginAllowThreads();
22463 result = (int)(arg1)->IsControl();
22464 wxPyEndAllowThreads(__tstate);
22465 if (PyErr_Occurred()) SWIG_fail;
22466 }
22467 resultobj = SWIG_From_int(static_cast< int >(result));
22468 return resultobj;
22469 fail:
22470 return NULL;
22471 }
22472
22473
22474 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22475 PyObject *resultobj = 0;
22476 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22477 int result;
22478 void *argp1 = 0 ;
22479 int res1 = 0 ;
22480 PyObject *swig_obj[1] ;
22481
22482 if (!args) SWIG_fail;
22483 swig_obj[0] = args;
22484 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22485 if (!SWIG_IsOK(res1)) {
22486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsSeparator" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22487 }
22488 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22489 {
22490 PyThreadState* __tstate = wxPyBeginAllowThreads();
22491 result = (int)(arg1)->IsSeparator();
22492 wxPyEndAllowThreads(__tstate);
22493 if (PyErr_Occurred()) SWIG_fail;
22494 }
22495 resultobj = SWIG_From_int(static_cast< int >(result));
22496 return resultobj;
22497 fail:
22498 return NULL;
22499 }
22500
22501
22502 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22503 PyObject *resultobj = 0;
22504 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22505 int result;
22506 void *argp1 = 0 ;
22507 int res1 = 0 ;
22508 PyObject *swig_obj[1] ;
22509
22510 if (!args) SWIG_fail;
22511 swig_obj[0] = args;
22512 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22513 if (!SWIG_IsOK(res1)) {
22514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetStyle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22515 }
22516 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22517 {
22518 PyThreadState* __tstate = wxPyBeginAllowThreads();
22519 result = (int)(arg1)->GetStyle();
22520 wxPyEndAllowThreads(__tstate);
22521 if (PyErr_Occurred()) SWIG_fail;
22522 }
22523 resultobj = SWIG_From_int(static_cast< int >(result));
22524 return resultobj;
22525 fail:
22526 return NULL;
22527 }
22528
22529
22530 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22531 PyObject *resultobj = 0;
22532 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22533 wxItemKind result;
22534 void *argp1 = 0 ;
22535 int res1 = 0 ;
22536 PyObject *swig_obj[1] ;
22537
22538 if (!args) SWIG_fail;
22539 swig_obj[0] = args;
22540 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22541 if (!SWIG_IsOK(res1)) {
22542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetKind" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22543 }
22544 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22545 {
22546 PyThreadState* __tstate = wxPyBeginAllowThreads();
22547 result = (wxItemKind)(arg1)->GetKind();
22548 wxPyEndAllowThreads(__tstate);
22549 if (PyErr_Occurred()) SWIG_fail;
22550 }
22551 resultobj = SWIG_From_int(static_cast< int >(result));
22552 return resultobj;
22553 fail:
22554 return NULL;
22555 }
22556
22557
22558 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22559 PyObject *resultobj = 0;
22560 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22561 bool result;
22562 void *argp1 = 0 ;
22563 int res1 = 0 ;
22564 PyObject *swig_obj[1] ;
22565
22566 if (!args) SWIG_fail;
22567 swig_obj[0] = args;
22568 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22569 if (!SWIG_IsOK(res1)) {
22570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsEnabled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22571 }
22572 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22573 {
22574 PyThreadState* __tstate = wxPyBeginAllowThreads();
22575 result = (bool)(arg1)->IsEnabled();
22576 wxPyEndAllowThreads(__tstate);
22577 if (PyErr_Occurred()) SWIG_fail;
22578 }
22579 {
22580 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22581 }
22582 return resultobj;
22583 fail:
22584 return NULL;
22585 }
22586
22587
22588 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22589 PyObject *resultobj = 0;
22590 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22591 bool result;
22592 void *argp1 = 0 ;
22593 int res1 = 0 ;
22594 PyObject *swig_obj[1] ;
22595
22596 if (!args) SWIG_fail;
22597 swig_obj[0] = args;
22598 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22599 if (!SWIG_IsOK(res1)) {
22600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22601 }
22602 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22603 {
22604 PyThreadState* __tstate = wxPyBeginAllowThreads();
22605 result = (bool)(arg1)->IsToggled();
22606 wxPyEndAllowThreads(__tstate);
22607 if (PyErr_Occurred()) SWIG_fail;
22608 }
22609 {
22610 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22611 }
22612 return resultobj;
22613 fail:
22614 return NULL;
22615 }
22616
22617
22618 SWIGINTERN PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22619 PyObject *resultobj = 0;
22620 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22621 bool result;
22622 void *argp1 = 0 ;
22623 int res1 = 0 ;
22624 PyObject *swig_obj[1] ;
22625
22626 if (!args) SWIG_fail;
22627 swig_obj[0] = args;
22628 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22629 if (!SWIG_IsOK(res1)) {
22630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_CanBeToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22631 }
22632 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22633 {
22634 PyThreadState* __tstate = wxPyBeginAllowThreads();
22635 result = (bool)(arg1)->CanBeToggled();
22636 wxPyEndAllowThreads(__tstate);
22637 if (PyErr_Occurred()) SWIG_fail;
22638 }
22639 {
22640 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22641 }
22642 return resultobj;
22643 fail:
22644 return NULL;
22645 }
22646
22647
22648 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22649 PyObject *resultobj = 0;
22650 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22651 wxBitmap *result = 0 ;
22652 void *argp1 = 0 ;
22653 int res1 = 0 ;
22654 PyObject *swig_obj[1] ;
22655
22656 if (!args) SWIG_fail;
22657 swig_obj[0] = args;
22658 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22659 if (!SWIG_IsOK(res1)) {
22660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22661 }
22662 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22663 {
22664 PyThreadState* __tstate = wxPyBeginAllowThreads();
22665 {
22666 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
22667 result = (wxBitmap *) &_result_ref;
22668 }
22669 wxPyEndAllowThreads(__tstate);
22670 if (PyErr_Occurred()) SWIG_fail;
22671 }
22672 {
22673 wxBitmap* resultptr = new wxBitmap(*result);
22674 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
22675 }
22676 return resultobj;
22677 fail:
22678 return NULL;
22679 }
22680
22681
22682 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22683 PyObject *resultobj = 0;
22684 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22685 wxBitmap *result = 0 ;
22686 void *argp1 = 0 ;
22687 int res1 = 0 ;
22688 PyObject *swig_obj[1] ;
22689
22690 if (!args) SWIG_fail;
22691 swig_obj[0] = args;
22692 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22693 if (!SWIG_IsOK(res1)) {
22694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22695 }
22696 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22697 {
22698 PyThreadState* __tstate = wxPyBeginAllowThreads();
22699 {
22700 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
22701 result = (wxBitmap *) &_result_ref;
22702 }
22703 wxPyEndAllowThreads(__tstate);
22704 if (PyErr_Occurred()) SWIG_fail;
22705 }
22706 {
22707 wxBitmap* resultptr = new wxBitmap(*result);
22708 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
22709 }
22710 return resultobj;
22711 fail:
22712 return NULL;
22713 }
22714
22715
22716 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22717 PyObject *resultobj = 0;
22718 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22719 wxBitmap result;
22720 void *argp1 = 0 ;
22721 int res1 = 0 ;
22722 PyObject *swig_obj[1] ;
22723
22724 if (!args) SWIG_fail;
22725 swig_obj[0] = args;
22726 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22727 if (!SWIG_IsOK(res1)) {
22728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22729 }
22730 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22731 {
22732 PyThreadState* __tstate = wxPyBeginAllowThreads();
22733 result = (arg1)->GetBitmap();
22734 wxPyEndAllowThreads(__tstate);
22735 if (PyErr_Occurred()) SWIG_fail;
22736 }
22737 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
22738 return resultobj;
22739 fail:
22740 return NULL;
22741 }
22742
22743
22744 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22745 PyObject *resultobj = 0;
22746 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22747 wxString result;
22748 void *argp1 = 0 ;
22749 int res1 = 0 ;
22750 PyObject *swig_obj[1] ;
22751
22752 if (!args) SWIG_fail;
22753 swig_obj[0] = args;
22754 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22755 if (!SWIG_IsOK(res1)) {
22756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22757 }
22758 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22759 {
22760 PyThreadState* __tstate = wxPyBeginAllowThreads();
22761 result = (arg1)->GetLabel();
22762 wxPyEndAllowThreads(__tstate);
22763 if (PyErr_Occurred()) SWIG_fail;
22764 }
22765 {
22766 #if wxUSE_UNICODE
22767 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22768 #else
22769 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22770 #endif
22771 }
22772 return resultobj;
22773 fail:
22774 return NULL;
22775 }
22776
22777
22778 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22779 PyObject *resultobj = 0;
22780 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22781 wxString result;
22782 void *argp1 = 0 ;
22783 int res1 = 0 ;
22784 PyObject *swig_obj[1] ;
22785
22786 if (!args) SWIG_fail;
22787 swig_obj[0] = args;
22788 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22789 if (!SWIG_IsOK(res1)) {
22790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22791 }
22792 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22793 {
22794 PyThreadState* __tstate = wxPyBeginAllowThreads();
22795 result = (arg1)->GetShortHelp();
22796 wxPyEndAllowThreads(__tstate);
22797 if (PyErr_Occurred()) SWIG_fail;
22798 }
22799 {
22800 #if wxUSE_UNICODE
22801 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22802 #else
22803 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22804 #endif
22805 }
22806 return resultobj;
22807 fail:
22808 return NULL;
22809 }
22810
22811
22812 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22813 PyObject *resultobj = 0;
22814 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22815 wxString result;
22816 void *argp1 = 0 ;
22817 int res1 = 0 ;
22818 PyObject *swig_obj[1] ;
22819
22820 if (!args) SWIG_fail;
22821 swig_obj[0] = args;
22822 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22823 if (!SWIG_IsOK(res1)) {
22824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22825 }
22826 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22827 {
22828 PyThreadState* __tstate = wxPyBeginAllowThreads();
22829 result = (arg1)->GetLongHelp();
22830 wxPyEndAllowThreads(__tstate);
22831 if (PyErr_Occurred()) SWIG_fail;
22832 }
22833 {
22834 #if wxUSE_UNICODE
22835 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22836 #else
22837 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22838 #endif
22839 }
22840 return resultobj;
22841 fail:
22842 return NULL;
22843 }
22844
22845
22846 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22847 PyObject *resultobj = 0;
22848 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22849 bool arg2 ;
22850 bool result;
22851 void *argp1 = 0 ;
22852 int res1 = 0 ;
22853 bool val2 ;
22854 int ecode2 = 0 ;
22855 PyObject * obj0 = 0 ;
22856 PyObject * obj1 = 0 ;
22857 char * kwnames[] = {
22858 (char *) "self",(char *) "enable", NULL
22859 };
22860
22861 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) SWIG_fail;
22862 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22863 if (!SWIG_IsOK(res1)) {
22864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Enable" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22865 }
22866 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22867 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22868 if (!SWIG_IsOK(ecode2)) {
22869 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_Enable" "', expected argument " "2"" of type '" "bool""'");
22870 }
22871 arg2 = static_cast< bool >(val2);
22872 {
22873 PyThreadState* __tstate = wxPyBeginAllowThreads();
22874 result = (bool)(arg1)->Enable(arg2);
22875 wxPyEndAllowThreads(__tstate);
22876 if (PyErr_Occurred()) SWIG_fail;
22877 }
22878 {
22879 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22880 }
22881 return resultobj;
22882 fail:
22883 return NULL;
22884 }
22885
22886
22887 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22888 PyObject *resultobj = 0;
22889 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22890 void *argp1 = 0 ;
22891 int res1 = 0 ;
22892 PyObject *swig_obj[1] ;
22893
22894 if (!args) SWIG_fail;
22895 swig_obj[0] = args;
22896 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22897 if (!SWIG_IsOK(res1)) {
22898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Toggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22899 }
22900 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22901 {
22902 PyThreadState* __tstate = wxPyBeginAllowThreads();
22903 (arg1)->Toggle();
22904 wxPyEndAllowThreads(__tstate);
22905 if (PyErr_Occurred()) SWIG_fail;
22906 }
22907 resultobj = SWIG_Py_Void();
22908 return resultobj;
22909 fail:
22910 return NULL;
22911 }
22912
22913
22914 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22915 PyObject *resultobj = 0;
22916 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22917 bool arg2 ;
22918 bool result;
22919 void *argp1 = 0 ;
22920 int res1 = 0 ;
22921 bool val2 ;
22922 int ecode2 = 0 ;
22923 PyObject * obj0 = 0 ;
22924 PyObject * obj1 = 0 ;
22925 char * kwnames[] = {
22926 (char *) "self",(char *) "toggle", NULL
22927 };
22928
22929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) SWIG_fail;
22930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22931 if (!SWIG_IsOK(res1)) {
22932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22933 }
22934 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22935 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22936 if (!SWIG_IsOK(ecode2)) {
22937 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "2"" of type '" "bool""'");
22938 }
22939 arg2 = static_cast< bool >(val2);
22940 {
22941 PyThreadState* __tstate = wxPyBeginAllowThreads();
22942 result = (bool)(arg1)->SetToggle(arg2);
22943 wxPyEndAllowThreads(__tstate);
22944 if (PyErr_Occurred()) SWIG_fail;
22945 }
22946 {
22947 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22948 }
22949 return resultobj;
22950 fail:
22951 return NULL;
22952 }
22953
22954
22955 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22956 PyObject *resultobj = 0;
22957 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22958 wxString *arg2 = 0 ;
22959 bool result;
22960 void *argp1 = 0 ;
22961 int res1 = 0 ;
22962 bool temp2 = false ;
22963 PyObject * obj0 = 0 ;
22964 PyObject * obj1 = 0 ;
22965 char * kwnames[] = {
22966 (char *) "self",(char *) "help", NULL
22967 };
22968
22969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
22970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22971 if (!SWIG_IsOK(res1)) {
22972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22973 }
22974 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22975 {
22976 arg2 = wxString_in_helper(obj1);
22977 if (arg2 == NULL) SWIG_fail;
22978 temp2 = true;
22979 }
22980 {
22981 PyThreadState* __tstate = wxPyBeginAllowThreads();
22982 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
22983 wxPyEndAllowThreads(__tstate);
22984 if (PyErr_Occurred()) SWIG_fail;
22985 }
22986 {
22987 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22988 }
22989 {
22990 if (temp2)
22991 delete arg2;
22992 }
22993 return resultobj;
22994 fail:
22995 {
22996 if (temp2)
22997 delete arg2;
22998 }
22999 return NULL;
23000 }
23001
23002
23003 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23004 PyObject *resultobj = 0;
23005 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23006 wxString *arg2 = 0 ;
23007 bool result;
23008 void *argp1 = 0 ;
23009 int res1 = 0 ;
23010 bool temp2 = false ;
23011 PyObject * obj0 = 0 ;
23012 PyObject * obj1 = 0 ;
23013 char * kwnames[] = {
23014 (char *) "self",(char *) "help", NULL
23015 };
23016
23017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23019 if (!SWIG_IsOK(res1)) {
23020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23021 }
23022 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23023 {
23024 arg2 = wxString_in_helper(obj1);
23025 if (arg2 == NULL) SWIG_fail;
23026 temp2 = true;
23027 }
23028 {
23029 PyThreadState* __tstate = wxPyBeginAllowThreads();
23030 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
23031 wxPyEndAllowThreads(__tstate);
23032 if (PyErr_Occurred()) SWIG_fail;
23033 }
23034 {
23035 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23036 }
23037 {
23038 if (temp2)
23039 delete arg2;
23040 }
23041 return resultobj;
23042 fail:
23043 {
23044 if (temp2)
23045 delete arg2;
23046 }
23047 return NULL;
23048 }
23049
23050
23051 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23052 PyObject *resultobj = 0;
23053 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23054 wxBitmap *arg2 = 0 ;
23055 void *argp1 = 0 ;
23056 int res1 = 0 ;
23057 void *argp2 = 0 ;
23058 int res2 = 0 ;
23059 PyObject * obj0 = 0 ;
23060 PyObject * obj1 = 0 ;
23061 char * kwnames[] = {
23062 (char *) "self",(char *) "bmp", NULL
23063 };
23064
23065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23067 if (!SWIG_IsOK(res1)) {
23068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23069 }
23070 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23071 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23072 if (!SWIG_IsOK(res2)) {
23073 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23074 }
23075 if (!argp2) {
23076 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23077 }
23078 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23079 {
23080 PyThreadState* __tstate = wxPyBeginAllowThreads();
23081 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
23082 wxPyEndAllowThreads(__tstate);
23083 if (PyErr_Occurred()) SWIG_fail;
23084 }
23085 resultobj = SWIG_Py_Void();
23086 return resultobj;
23087 fail:
23088 return NULL;
23089 }
23090
23091
23092 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23093 PyObject *resultobj = 0;
23094 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23095 wxBitmap *arg2 = 0 ;
23096 void *argp1 = 0 ;
23097 int res1 = 0 ;
23098 void *argp2 = 0 ;
23099 int res2 = 0 ;
23100 PyObject * obj0 = 0 ;
23101 PyObject * obj1 = 0 ;
23102 char * kwnames[] = {
23103 (char *) "self",(char *) "bmp", NULL
23104 };
23105
23106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23108 if (!SWIG_IsOK(res1)) {
23109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23110 }
23111 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23112 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23113 if (!SWIG_IsOK(res2)) {
23114 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23115 }
23116 if (!argp2) {
23117 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23118 }
23119 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23120 {
23121 PyThreadState* __tstate = wxPyBeginAllowThreads();
23122 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
23123 wxPyEndAllowThreads(__tstate);
23124 if (PyErr_Occurred()) SWIG_fail;
23125 }
23126 resultobj = SWIG_Py_Void();
23127 return resultobj;
23128 fail:
23129 return NULL;
23130 }
23131
23132
23133 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23134 PyObject *resultobj = 0;
23135 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23136 wxString *arg2 = 0 ;
23137 void *argp1 = 0 ;
23138 int res1 = 0 ;
23139 bool temp2 = false ;
23140 PyObject * obj0 = 0 ;
23141 PyObject * obj1 = 0 ;
23142 char * kwnames[] = {
23143 (char *) "self",(char *) "label", NULL
23144 };
23145
23146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",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_SetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23150 }
23151 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23152 {
23153 arg2 = wxString_in_helper(obj1);
23154 if (arg2 == NULL) SWIG_fail;
23155 temp2 = true;
23156 }
23157 {
23158 PyThreadState* __tstate = wxPyBeginAllowThreads();
23159 (arg1)->SetLabel((wxString const &)*arg2);
23160 wxPyEndAllowThreads(__tstate);
23161 if (PyErr_Occurred()) SWIG_fail;
23162 }
23163 resultobj = SWIG_Py_Void();
23164 {
23165 if (temp2)
23166 delete arg2;
23167 }
23168 return resultobj;
23169 fail:
23170 {
23171 if (temp2)
23172 delete arg2;
23173 }
23174 return NULL;
23175 }
23176
23177
23178 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23179 PyObject *resultobj = 0;
23180 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23181 void *argp1 = 0 ;
23182 int res1 = 0 ;
23183 PyObject *swig_obj[1] ;
23184
23185 if (!args) SWIG_fail;
23186 swig_obj[0] = args;
23187 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23188 if (!SWIG_IsOK(res1)) {
23189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Detach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23190 }
23191 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23192 {
23193 PyThreadState* __tstate = wxPyBeginAllowThreads();
23194 (arg1)->Detach();
23195 wxPyEndAllowThreads(__tstate);
23196 if (PyErr_Occurred()) SWIG_fail;
23197 }
23198 resultobj = SWIG_Py_Void();
23199 return resultobj;
23200 fail:
23201 return NULL;
23202 }
23203
23204
23205 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23206 PyObject *resultobj = 0;
23207 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23208 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
23209 void *argp1 = 0 ;
23210 int res1 = 0 ;
23211 void *argp2 = 0 ;
23212 int res2 = 0 ;
23213 PyObject * obj0 = 0 ;
23214 PyObject * obj1 = 0 ;
23215 char * kwnames[] = {
23216 (char *) "self",(char *) "tbar", NULL
23217 };
23218
23219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) SWIG_fail;
23220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23221 if (!SWIG_IsOK(res1)) {
23222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Attach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23223 }
23224 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23225 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23226 if (!SWIG_IsOK(res2)) {
23227 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_Attach" "', expected argument " "2"" of type '" "wxToolBarBase *""'");
23228 }
23229 arg2 = reinterpret_cast< wxToolBarBase * >(argp2);
23230 {
23231 PyThreadState* __tstate = wxPyBeginAllowThreads();
23232 (arg1)->Attach(arg2);
23233 wxPyEndAllowThreads(__tstate);
23234 if (PyErr_Occurred()) SWIG_fail;
23235 }
23236 resultobj = SWIG_Py_Void();
23237 return resultobj;
23238 fail:
23239 return NULL;
23240 }
23241
23242
23243 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23244 PyObject *resultobj = 0;
23245 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23246 PyObject *result = 0 ;
23247 void *argp1 = 0 ;
23248 int res1 = 0 ;
23249 PyObject *swig_obj[1] ;
23250
23251 if (!args) SWIG_fail;
23252 swig_obj[0] = args;
23253 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23254 if (!SWIG_IsOK(res1)) {
23255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23256 }
23257 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23258 {
23259 PyThreadState* __tstate = wxPyBeginAllowThreads();
23260 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
23261 wxPyEndAllowThreads(__tstate);
23262 if (PyErr_Occurred()) SWIG_fail;
23263 }
23264 resultobj = result;
23265 return resultobj;
23266 fail:
23267 return NULL;
23268 }
23269
23270
23271 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23272 PyObject *resultobj = 0;
23273 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23274 PyObject *arg2 = (PyObject *) 0 ;
23275 void *argp1 = 0 ;
23276 int res1 = 0 ;
23277 PyObject * obj0 = 0 ;
23278 PyObject * obj1 = 0 ;
23279 char * kwnames[] = {
23280 (char *) "self",(char *) "clientData", NULL
23281 };
23282
23283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) SWIG_fail;
23284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23285 if (!SWIG_IsOK(res1)) {
23286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23287 }
23288 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23289 arg2 = obj1;
23290 {
23291 PyThreadState* __tstate = wxPyBeginAllowThreads();
23292 wxToolBarToolBase_SetClientData(arg1,arg2);
23293 wxPyEndAllowThreads(__tstate);
23294 if (PyErr_Occurred()) SWIG_fail;
23295 }
23296 resultobj = SWIG_Py_Void();
23297 return resultobj;
23298 fail:
23299 return NULL;
23300 }
23301
23302
23303 SWIGINTERN PyObject *ToolBarToolBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23304 PyObject *obj;
23305 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23306 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarToolBase, SWIG_NewClientData(obj));
23307 return SWIG_Py_Void();
23308 }
23309
23310 SWIGINTERN PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23311 PyObject *resultobj = 0;
23312 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23313 int arg2 ;
23314 wxString *arg3 = 0 ;
23315 wxBitmap *arg4 = 0 ;
23316 wxBitmap const &arg5_defvalue = wxNullBitmap ;
23317 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
23318 wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ;
23319 wxString const &arg7_defvalue = wxPyEmptyString ;
23320 wxString *arg7 = (wxString *) &arg7_defvalue ;
23321 wxString const &arg8_defvalue = wxPyEmptyString ;
23322 wxString *arg8 = (wxString *) &arg8_defvalue ;
23323 PyObject *arg9 = (PyObject *) NULL ;
23324 wxToolBarToolBase *result = 0 ;
23325 void *argp1 = 0 ;
23326 int res1 = 0 ;
23327 int val2 ;
23328 int ecode2 = 0 ;
23329 bool temp3 = false ;
23330 void *argp4 = 0 ;
23331 int res4 = 0 ;
23332 void *argp5 = 0 ;
23333 int res5 = 0 ;
23334 int val6 ;
23335 int ecode6 = 0 ;
23336 bool temp7 = false ;
23337 bool temp8 = false ;
23338 PyObject * obj0 = 0 ;
23339 PyObject * obj1 = 0 ;
23340 PyObject * obj2 = 0 ;
23341 PyObject * obj3 = 0 ;
23342 PyObject * obj4 = 0 ;
23343 PyObject * obj5 = 0 ;
23344 PyObject * obj6 = 0 ;
23345 PyObject * obj7 = 0 ;
23346 PyObject * obj8 = 0 ;
23347 char * kwnames[] = {
23348 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23349 };
23350
23351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
23352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23353 if (!SWIG_IsOK(res1)) {
23354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23355 }
23356 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23357 ecode2 = SWIG_AsVal_int(obj1, &val2);
23358 if (!SWIG_IsOK(ecode2)) {
23359 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "2"" of type '" "int""'");
23360 }
23361 arg2 = static_cast< int >(val2);
23362 {
23363 arg3 = wxString_in_helper(obj2);
23364 if (arg3 == NULL) SWIG_fail;
23365 temp3 = true;
23366 }
23367 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
23368 if (!SWIG_IsOK(res4)) {
23369 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23370 }
23371 if (!argp4) {
23372 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23373 }
23374 arg4 = reinterpret_cast< wxBitmap * >(argp4);
23375 if (obj4) {
23376 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23377 if (!SWIG_IsOK(res5)) {
23378 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23379 }
23380 if (!argp5) {
23381 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23382 }
23383 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23384 }
23385 if (obj5) {
23386 ecode6 = SWIG_AsVal_int(obj5, &val6);
23387 if (!SWIG_IsOK(ecode6)) {
23388 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "6"" of type '" "wxItemKind""'");
23389 }
23390 arg6 = static_cast< wxItemKind >(val6);
23391 }
23392 if (obj6) {
23393 {
23394 arg7 = wxString_in_helper(obj6);
23395 if (arg7 == NULL) SWIG_fail;
23396 temp7 = true;
23397 }
23398 }
23399 if (obj7) {
23400 {
23401 arg8 = wxString_in_helper(obj7);
23402 if (arg8 == NULL) SWIG_fail;
23403 temp8 = true;
23404 }
23405 }
23406 if (obj8) {
23407 arg9 = obj8;
23408 }
23409 {
23410 PyThreadState* __tstate = wxPyBeginAllowThreads();
23411 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
23412 wxPyEndAllowThreads(__tstate);
23413 if (PyErr_Occurred()) SWIG_fail;
23414 }
23415 {
23416 resultobj = wxPyMake_wxObject(result, (bool)0);
23417 }
23418 {
23419 if (temp3)
23420 delete arg3;
23421 }
23422 {
23423 if (temp7)
23424 delete arg7;
23425 }
23426 {
23427 if (temp8)
23428 delete arg8;
23429 }
23430 return resultobj;
23431 fail:
23432 {
23433 if (temp3)
23434 delete arg3;
23435 }
23436 {
23437 if (temp7)
23438 delete arg7;
23439 }
23440 {
23441 if (temp8)
23442 delete arg8;
23443 }
23444 return NULL;
23445 }
23446
23447
23448 SWIGINTERN PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23449 PyObject *resultobj = 0;
23450 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23451 size_t arg2 ;
23452 int arg3 ;
23453 wxString *arg4 = 0 ;
23454 wxBitmap *arg5 = 0 ;
23455 wxBitmap const &arg6_defvalue = wxNullBitmap ;
23456 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
23457 wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ;
23458 wxString const &arg8_defvalue = wxPyEmptyString ;
23459 wxString *arg8 = (wxString *) &arg8_defvalue ;
23460 wxString const &arg9_defvalue = wxPyEmptyString ;
23461 wxString *arg9 = (wxString *) &arg9_defvalue ;
23462 PyObject *arg10 = (PyObject *) NULL ;
23463 wxToolBarToolBase *result = 0 ;
23464 void *argp1 = 0 ;
23465 int res1 = 0 ;
23466 size_t val2 ;
23467 int ecode2 = 0 ;
23468 int val3 ;
23469 int ecode3 = 0 ;
23470 bool temp4 = false ;
23471 void *argp5 = 0 ;
23472 int res5 = 0 ;
23473 void *argp6 = 0 ;
23474 int res6 = 0 ;
23475 int val7 ;
23476 int ecode7 = 0 ;
23477 bool temp8 = false ;
23478 bool temp9 = false ;
23479 PyObject * obj0 = 0 ;
23480 PyObject * obj1 = 0 ;
23481 PyObject * obj2 = 0 ;
23482 PyObject * obj3 = 0 ;
23483 PyObject * obj4 = 0 ;
23484 PyObject * obj5 = 0 ;
23485 PyObject * obj6 = 0 ;
23486 PyObject * obj7 = 0 ;
23487 PyObject * obj8 = 0 ;
23488 PyObject * obj9 = 0 ;
23489 char * kwnames[] = {
23490 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23491 };
23492
23493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
23494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23495 if (!SWIG_IsOK(res1)) {
23496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23497 }
23498 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23499 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23500 if (!SWIG_IsOK(ecode2)) {
23501 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "2"" of type '" "size_t""'");
23502 }
23503 arg2 = static_cast< size_t >(val2);
23504 ecode3 = SWIG_AsVal_int(obj2, &val3);
23505 if (!SWIG_IsOK(ecode3)) {
23506 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "3"" of type '" "int""'");
23507 }
23508 arg3 = static_cast< int >(val3);
23509 {
23510 arg4 = wxString_in_helper(obj3);
23511 if (arg4 == NULL) SWIG_fail;
23512 temp4 = true;
23513 }
23514 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23515 if (!SWIG_IsOK(res5)) {
23516 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23517 }
23518 if (!argp5) {
23519 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23520 }
23521 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23522 if (obj5) {
23523 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxBitmap, 0 | 0);
23524 if (!SWIG_IsOK(res6)) {
23525 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
23526 }
23527 if (!argp6) {
23528 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
23529 }
23530 arg6 = reinterpret_cast< wxBitmap * >(argp6);
23531 }
23532 if (obj6) {
23533 ecode7 = SWIG_AsVal_int(obj6, &val7);
23534 if (!SWIG_IsOK(ecode7)) {
23535 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "7"" of type '" "wxItemKind""'");
23536 }
23537 arg7 = static_cast< wxItemKind >(val7);
23538 }
23539 if (obj7) {
23540 {
23541 arg8 = wxString_in_helper(obj7);
23542 if (arg8 == NULL) SWIG_fail;
23543 temp8 = true;
23544 }
23545 }
23546 if (obj8) {
23547 {
23548 arg9 = wxString_in_helper(obj8);
23549 if (arg9 == NULL) SWIG_fail;
23550 temp9 = true;
23551 }
23552 }
23553 if (obj9) {
23554 arg10 = obj9;
23555 }
23556 {
23557 PyThreadState* __tstate = wxPyBeginAllowThreads();
23558 result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10);
23559 wxPyEndAllowThreads(__tstate);
23560 if (PyErr_Occurred()) SWIG_fail;
23561 }
23562 {
23563 resultobj = wxPyMake_wxObject(result, (bool)0);
23564 }
23565 {
23566 if (temp4)
23567 delete arg4;
23568 }
23569 {
23570 if (temp8)
23571 delete arg8;
23572 }
23573 {
23574 if (temp9)
23575 delete arg9;
23576 }
23577 return resultobj;
23578 fail:
23579 {
23580 if (temp4)
23581 delete arg4;
23582 }
23583 {
23584 if (temp8)
23585 delete arg8;
23586 }
23587 {
23588 if (temp9)
23589 delete arg9;
23590 }
23591 return NULL;
23592 }
23593
23594
23595 SWIGINTERN PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23596 PyObject *resultobj = 0;
23597 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23598 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
23599 wxToolBarToolBase *result = 0 ;
23600 void *argp1 = 0 ;
23601 int res1 = 0 ;
23602 void *argp2 = 0 ;
23603 int res2 = 0 ;
23604 PyObject * obj0 = 0 ;
23605 PyObject * obj1 = 0 ;
23606 char * kwnames[] = {
23607 (char *) "self",(char *) "tool", NULL
23608 };
23609
23610 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) SWIG_fail;
23611 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23612 if (!SWIG_IsOK(res1)) {
23613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23614 }
23615 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23616 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23617 if (!SWIG_IsOK(res2)) {
23618 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "2"" of type '" "wxToolBarToolBase *""'");
23619 }
23620 arg2 = reinterpret_cast< wxToolBarToolBase * >(argp2);
23621 {
23622 PyThreadState* __tstate = wxPyBeginAllowThreads();
23623 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
23624 wxPyEndAllowThreads(__tstate);
23625 if (PyErr_Occurred()) SWIG_fail;
23626 }
23627 {
23628 resultobj = wxPyMake_wxObject(result, (bool)0);
23629 }
23630 return resultobj;
23631 fail:
23632 return NULL;
23633 }
23634
23635
23636 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23637 PyObject *resultobj = 0;
23638 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23639 size_t arg2 ;
23640 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
23641 wxToolBarToolBase *result = 0 ;
23642 void *argp1 = 0 ;
23643 int res1 = 0 ;
23644 size_t val2 ;
23645 int ecode2 = 0 ;
23646 void *argp3 = 0 ;
23647 int res3 = 0 ;
23648 PyObject * obj0 = 0 ;
23649 PyObject * obj1 = 0 ;
23650 PyObject * obj2 = 0 ;
23651 char * kwnames[] = {
23652 (char *) "self",(char *) "pos",(char *) "tool", NULL
23653 };
23654
23655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23657 if (!SWIG_IsOK(res1)) {
23658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23659 }
23660 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23661 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23662 if (!SWIG_IsOK(ecode2)) {
23663 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "2"" of type '" "size_t""'");
23664 }
23665 arg2 = static_cast< size_t >(val2);
23666 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23667 if (!SWIG_IsOK(res3)) {
23668 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "3"" of type '" "wxToolBarToolBase *""'");
23669 }
23670 arg3 = reinterpret_cast< wxToolBarToolBase * >(argp3);
23671 {
23672 PyThreadState* __tstate = wxPyBeginAllowThreads();
23673 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
23674 wxPyEndAllowThreads(__tstate);
23675 if (PyErr_Occurred()) SWIG_fail;
23676 }
23677 {
23678 resultobj = wxPyMake_wxObject(result, (bool)0);
23679 }
23680 return resultobj;
23681 fail:
23682 return NULL;
23683 }
23684
23685
23686 SWIGINTERN PyObject *_wrap_ToolBarBase_AddControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23687 PyObject *resultobj = 0;
23688 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23689 wxControl *arg2 = (wxControl *) 0 ;
23690 wxToolBarToolBase *result = 0 ;
23691 void *argp1 = 0 ;
23692 int res1 = 0 ;
23693 void *argp2 = 0 ;
23694 int res2 = 0 ;
23695 PyObject * obj0 = 0 ;
23696 PyObject * obj1 = 0 ;
23697 char * kwnames[] = {
23698 (char *) "self",(char *) "control", NULL
23699 };
23700
23701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) SWIG_fail;
23702 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23703 if (!SWIG_IsOK(res1)) {
23704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23705 }
23706 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23707 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxControl, 0 | 0 );
23708 if (!SWIG_IsOK(res2)) {
23709 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddControl" "', expected argument " "2"" of type '" "wxControl *""'");
23710 }
23711 arg2 = reinterpret_cast< wxControl * >(argp2);
23712 {
23713 PyThreadState* __tstate = wxPyBeginAllowThreads();
23714 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
23715 wxPyEndAllowThreads(__tstate);
23716 if (PyErr_Occurred()) SWIG_fail;
23717 }
23718 {
23719 resultobj = wxPyMake_wxObject(result, (bool)0);
23720 }
23721 return resultobj;
23722 fail:
23723 return NULL;
23724 }
23725
23726
23727 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23728 PyObject *resultobj = 0;
23729 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23730 size_t arg2 ;
23731 wxControl *arg3 = (wxControl *) 0 ;
23732 wxToolBarToolBase *result = 0 ;
23733 void *argp1 = 0 ;
23734 int res1 = 0 ;
23735 size_t val2 ;
23736 int ecode2 = 0 ;
23737 void *argp3 = 0 ;
23738 int res3 = 0 ;
23739 PyObject * obj0 = 0 ;
23740 PyObject * obj1 = 0 ;
23741 PyObject * obj2 = 0 ;
23742 char * kwnames[] = {
23743 (char *) "self",(char *) "pos",(char *) "control", NULL
23744 };
23745
23746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23747 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23748 if (!SWIG_IsOK(res1)) {
23749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23750 }
23751 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23752 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23753 if (!SWIG_IsOK(ecode2)) {
23754 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertControl" "', expected argument " "2"" of type '" "size_t""'");
23755 }
23756 arg2 = static_cast< size_t >(val2);
23757 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxControl, 0 | 0 );
23758 if (!SWIG_IsOK(res3)) {
23759 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertControl" "', expected argument " "3"" of type '" "wxControl *""'");
23760 }
23761 arg3 = reinterpret_cast< wxControl * >(argp3);
23762 {
23763 PyThreadState* __tstate = wxPyBeginAllowThreads();
23764 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
23765 wxPyEndAllowThreads(__tstate);
23766 if (PyErr_Occurred()) SWIG_fail;
23767 }
23768 {
23769 resultobj = wxPyMake_wxObject(result, (bool)0);
23770 }
23771 return resultobj;
23772 fail:
23773 return NULL;
23774 }
23775
23776
23777 SWIGINTERN PyObject *_wrap_ToolBarBase_FindControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23778 PyObject *resultobj = 0;
23779 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23780 int arg2 ;
23781 wxControl *result = 0 ;
23782 void *argp1 = 0 ;
23783 int res1 = 0 ;
23784 int val2 ;
23785 int ecode2 = 0 ;
23786 PyObject * obj0 = 0 ;
23787 PyObject * obj1 = 0 ;
23788 char * kwnames[] = {
23789 (char *) "self",(char *) "id", NULL
23790 };
23791
23792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) SWIG_fail;
23793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23794 if (!SWIG_IsOK(res1)) {
23795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23796 }
23797 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23798 ecode2 = SWIG_AsVal_int(obj1, &val2);
23799 if (!SWIG_IsOK(ecode2)) {
23800 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindControl" "', expected argument " "2"" of type '" "int""'");
23801 }
23802 arg2 = static_cast< int >(val2);
23803 {
23804 PyThreadState* __tstate = wxPyBeginAllowThreads();
23805 result = (wxControl *)(arg1)->FindControl(arg2);
23806 wxPyEndAllowThreads(__tstate);
23807 if (PyErr_Occurred()) SWIG_fail;
23808 }
23809 {
23810 resultobj = wxPyMake_wxObject(result, 0);
23811 }
23812 return resultobj;
23813 fail:
23814 return NULL;
23815 }
23816
23817
23818 SWIGINTERN PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23819 PyObject *resultobj = 0;
23820 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23821 wxToolBarToolBase *result = 0 ;
23822 void *argp1 = 0 ;
23823 int res1 = 0 ;
23824 PyObject *swig_obj[1] ;
23825
23826 if (!args) SWIG_fail;
23827 swig_obj[0] = args;
23828 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23829 if (!SWIG_IsOK(res1)) {
23830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23831 }
23832 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23833 {
23834 PyThreadState* __tstate = wxPyBeginAllowThreads();
23835 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
23836 wxPyEndAllowThreads(__tstate);
23837 if (PyErr_Occurred()) SWIG_fail;
23838 }
23839 {
23840 resultobj = wxPyMake_wxObject(result, (bool)0);
23841 }
23842 return resultobj;
23843 fail:
23844 return NULL;
23845 }
23846
23847
23848 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23849 PyObject *resultobj = 0;
23850 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23851 size_t arg2 ;
23852 wxToolBarToolBase *result = 0 ;
23853 void *argp1 = 0 ;
23854 int res1 = 0 ;
23855 size_t val2 ;
23856 int ecode2 = 0 ;
23857 PyObject * obj0 = 0 ;
23858 PyObject * obj1 = 0 ;
23859 char * kwnames[] = {
23860 (char *) "self",(char *) "pos", NULL
23861 };
23862
23863 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) SWIG_fail;
23864 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23865 if (!SWIG_IsOK(res1)) {
23866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23867 }
23868 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23869 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23870 if (!SWIG_IsOK(ecode2)) {
23871 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "2"" of type '" "size_t""'");
23872 }
23873 arg2 = static_cast< size_t >(val2);
23874 {
23875 PyThreadState* __tstate = wxPyBeginAllowThreads();
23876 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
23877 wxPyEndAllowThreads(__tstate);
23878 if (PyErr_Occurred()) SWIG_fail;
23879 }
23880 {
23881 resultobj = wxPyMake_wxObject(result, (bool)0);
23882 }
23883 return resultobj;
23884 fail:
23885 return NULL;
23886 }
23887
23888
23889 SWIGINTERN PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23890 PyObject *resultobj = 0;
23891 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23892 int arg2 ;
23893 wxToolBarToolBase *result = 0 ;
23894 void *argp1 = 0 ;
23895 int res1 = 0 ;
23896 int val2 ;
23897 int ecode2 = 0 ;
23898 PyObject * obj0 = 0 ;
23899 PyObject * obj1 = 0 ;
23900 char * kwnames[] = {
23901 (char *) "self",(char *) "id", NULL
23902 };
23903
23904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) SWIG_fail;
23905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23906 if (!SWIG_IsOK(res1)) {
23907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23908 }
23909 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23910 ecode2 = SWIG_AsVal_int(obj1, &val2);
23911 if (!SWIG_IsOK(ecode2)) {
23912 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "2"" of type '" "int""'");
23913 }
23914 arg2 = static_cast< int >(val2);
23915 {
23916 PyThreadState* __tstate = wxPyBeginAllowThreads();
23917 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
23918 wxPyEndAllowThreads(__tstate);
23919 if (PyErr_Occurred()) SWIG_fail;
23920 }
23921 {
23922 resultobj = wxPyMake_wxObject(result, (bool)0);
23923 }
23924 return resultobj;
23925 fail:
23926 return NULL;
23927 }
23928
23929
23930 SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23931 PyObject *resultobj = 0;
23932 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23933 size_t arg2 ;
23934 bool result;
23935 void *argp1 = 0 ;
23936 int res1 = 0 ;
23937 size_t val2 ;
23938 int ecode2 = 0 ;
23939 PyObject * obj0 = 0 ;
23940 PyObject * obj1 = 0 ;
23941 char * kwnames[] = {
23942 (char *) "self",(char *) "pos", NULL
23943 };
23944
23945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) SWIG_fail;
23946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23947 if (!SWIG_IsOK(res1)) {
23948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23949 }
23950 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23951 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23952 if (!SWIG_IsOK(ecode2)) {
23953 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "2"" of type '" "size_t""'");
23954 }
23955 arg2 = static_cast< size_t >(val2);
23956 {
23957 PyThreadState* __tstate = wxPyBeginAllowThreads();
23958 result = (bool)(arg1)->DeleteToolByPos(arg2);
23959 wxPyEndAllowThreads(__tstate);
23960 if (PyErr_Occurred()) SWIG_fail;
23961 }
23962 {
23963 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23964 }
23965 return resultobj;
23966 fail:
23967 return NULL;
23968 }
23969
23970
23971 SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23972 PyObject *resultobj = 0;
23973 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23974 int arg2 ;
23975 bool result;
23976 void *argp1 = 0 ;
23977 int res1 = 0 ;
23978 int val2 ;
23979 int ecode2 = 0 ;
23980 PyObject * obj0 = 0 ;
23981 PyObject * obj1 = 0 ;
23982 char * kwnames[] = {
23983 (char *) "self",(char *) "id", NULL
23984 };
23985
23986 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) SWIG_fail;
23987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23988 if (!SWIG_IsOK(res1)) {
23989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23990 }
23991 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23992 ecode2 = SWIG_AsVal_int(obj1, &val2);
23993 if (!SWIG_IsOK(ecode2)) {
23994 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "2"" of type '" "int""'");
23995 }
23996 arg2 = static_cast< int >(val2);
23997 {
23998 PyThreadState* __tstate = wxPyBeginAllowThreads();
23999 result = (bool)(arg1)->DeleteTool(arg2);
24000 wxPyEndAllowThreads(__tstate);
24001 if (PyErr_Occurred()) SWIG_fail;
24002 }
24003 {
24004 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24005 }
24006 return resultobj;
24007 fail:
24008 return NULL;
24009 }
24010
24011
24012 SWIGINTERN PyObject *_wrap_ToolBarBase_ClearTools(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24013 PyObject *resultobj = 0;
24014 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24015 void *argp1 = 0 ;
24016 int res1 = 0 ;
24017 PyObject *swig_obj[1] ;
24018
24019 if (!args) SWIG_fail;
24020 swig_obj[0] = args;
24021 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24022 if (!SWIG_IsOK(res1)) {
24023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ClearTools" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24024 }
24025 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24026 {
24027 PyThreadState* __tstate = wxPyBeginAllowThreads();
24028 (arg1)->ClearTools();
24029 wxPyEndAllowThreads(__tstate);
24030 if (PyErr_Occurred()) SWIG_fail;
24031 }
24032 resultobj = SWIG_Py_Void();
24033 return resultobj;
24034 fail:
24035 return NULL;
24036 }
24037
24038
24039 SWIGINTERN PyObject *_wrap_ToolBarBase_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24040 PyObject *resultobj = 0;
24041 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24042 bool result;
24043 void *argp1 = 0 ;
24044 int res1 = 0 ;
24045 PyObject *swig_obj[1] ;
24046
24047 if (!args) SWIG_fail;
24048 swig_obj[0] = args;
24049 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24050 if (!SWIG_IsOK(res1)) {
24051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_Realize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24052 }
24053 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24054 {
24055 PyThreadState* __tstate = wxPyBeginAllowThreads();
24056 result = (bool)(arg1)->Realize();
24057 wxPyEndAllowThreads(__tstate);
24058 if (PyErr_Occurred()) SWIG_fail;
24059 }
24060 {
24061 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24062 }
24063 return resultobj;
24064 fail:
24065 return NULL;
24066 }
24067
24068
24069 SWIGINTERN PyObject *_wrap_ToolBarBase_EnableTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24070 PyObject *resultobj = 0;
24071 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24072 int arg2 ;
24073 bool arg3 ;
24074 void *argp1 = 0 ;
24075 int res1 = 0 ;
24076 int val2 ;
24077 int ecode2 = 0 ;
24078 bool val3 ;
24079 int ecode3 = 0 ;
24080 PyObject * obj0 = 0 ;
24081 PyObject * obj1 = 0 ;
24082 PyObject * obj2 = 0 ;
24083 char * kwnames[] = {
24084 (char *) "self",(char *) "id",(char *) "enable", NULL
24085 };
24086
24087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24089 if (!SWIG_IsOK(res1)) {
24090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_EnableTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24091 }
24092 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24093 ecode2 = SWIG_AsVal_int(obj1, &val2);
24094 if (!SWIG_IsOK(ecode2)) {
24095 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_EnableTool" "', expected argument " "2"" of type '" "int""'");
24096 }
24097 arg2 = static_cast< int >(val2);
24098 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24099 if (!SWIG_IsOK(ecode3)) {
24100 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_EnableTool" "', expected argument " "3"" of type '" "bool""'");
24101 }
24102 arg3 = static_cast< bool >(val3);
24103 {
24104 PyThreadState* __tstate = wxPyBeginAllowThreads();
24105 (arg1)->EnableTool(arg2,arg3);
24106 wxPyEndAllowThreads(__tstate);
24107 if (PyErr_Occurred()) SWIG_fail;
24108 }
24109 resultobj = SWIG_Py_Void();
24110 return resultobj;
24111 fail:
24112 return NULL;
24113 }
24114
24115
24116 SWIGINTERN PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24117 PyObject *resultobj = 0;
24118 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24119 int arg2 ;
24120 bool arg3 ;
24121 void *argp1 = 0 ;
24122 int res1 = 0 ;
24123 int val2 ;
24124 int ecode2 = 0 ;
24125 bool val3 ;
24126 int ecode3 = 0 ;
24127 PyObject * obj0 = 0 ;
24128 PyObject * obj1 = 0 ;
24129 PyObject * obj2 = 0 ;
24130 char * kwnames[] = {
24131 (char *) "self",(char *) "id",(char *) "toggle", NULL
24132 };
24133
24134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24136 if (!SWIG_IsOK(res1)) {
24137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24138 }
24139 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24140 ecode2 = SWIG_AsVal_int(obj1, &val2);
24141 if (!SWIG_IsOK(ecode2)) {
24142 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "2"" of type '" "int""'");
24143 }
24144 arg2 = static_cast< int >(val2);
24145 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24146 if (!SWIG_IsOK(ecode3)) {
24147 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "3"" of type '" "bool""'");
24148 }
24149 arg3 = static_cast< bool >(val3);
24150 {
24151 PyThreadState* __tstate = wxPyBeginAllowThreads();
24152 (arg1)->ToggleTool(arg2,arg3);
24153 wxPyEndAllowThreads(__tstate);
24154 if (PyErr_Occurred()) SWIG_fail;
24155 }
24156 resultobj = SWIG_Py_Void();
24157 return resultobj;
24158 fail:
24159 return NULL;
24160 }
24161
24162
24163 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24164 PyObject *resultobj = 0;
24165 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24166 int arg2 ;
24167 bool arg3 ;
24168 void *argp1 = 0 ;
24169 int res1 = 0 ;
24170 int val2 ;
24171 int ecode2 = 0 ;
24172 bool val3 ;
24173 int ecode3 = 0 ;
24174 PyObject * obj0 = 0 ;
24175 PyObject * obj1 = 0 ;
24176 PyObject * obj2 = 0 ;
24177 char * kwnames[] = {
24178 (char *) "self",(char *) "id",(char *) "toggle", NULL
24179 };
24180
24181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24183 if (!SWIG_IsOK(res1)) {
24184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24185 }
24186 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24187 ecode2 = SWIG_AsVal_int(obj1, &val2);
24188 if (!SWIG_IsOK(ecode2)) {
24189 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToggle" "', expected argument " "2"" of type '" "int""'");
24190 }
24191 arg2 = static_cast< int >(val2);
24192 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24193 if (!SWIG_IsOK(ecode3)) {
24194 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetToggle" "', expected argument " "3"" of type '" "bool""'");
24195 }
24196 arg3 = static_cast< bool >(val3);
24197 {
24198 PyThreadState* __tstate = wxPyBeginAllowThreads();
24199 (arg1)->SetToggle(arg2,arg3);
24200 wxPyEndAllowThreads(__tstate);
24201 if (PyErr_Occurred()) SWIG_fail;
24202 }
24203 resultobj = SWIG_Py_Void();
24204 return resultobj;
24205 fail:
24206 return NULL;
24207 }
24208
24209
24210 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24211 PyObject *resultobj = 0;
24212 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24213 int arg2 ;
24214 PyObject *result = 0 ;
24215 void *argp1 = 0 ;
24216 int res1 = 0 ;
24217 int val2 ;
24218 int ecode2 = 0 ;
24219 PyObject * obj0 = 0 ;
24220 PyObject * obj1 = 0 ;
24221 char * kwnames[] = {
24222 (char *) "self",(char *) "id", NULL
24223 };
24224
24225 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) SWIG_fail;
24226 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24227 if (!SWIG_IsOK(res1)) {
24228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24229 }
24230 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24231 ecode2 = SWIG_AsVal_int(obj1, &val2);
24232 if (!SWIG_IsOK(ecode2)) {
24233 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "2"" of type '" "int""'");
24234 }
24235 arg2 = static_cast< int >(val2);
24236 {
24237 PyThreadState* __tstate = wxPyBeginAllowThreads();
24238 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
24239 wxPyEndAllowThreads(__tstate);
24240 if (PyErr_Occurred()) SWIG_fail;
24241 }
24242 resultobj = result;
24243 return resultobj;
24244 fail:
24245 return NULL;
24246 }
24247
24248
24249 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24250 PyObject *resultobj = 0;
24251 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24252 int arg2 ;
24253 PyObject *arg3 = (PyObject *) 0 ;
24254 void *argp1 = 0 ;
24255 int res1 = 0 ;
24256 int val2 ;
24257 int ecode2 = 0 ;
24258 PyObject * obj0 = 0 ;
24259 PyObject * obj1 = 0 ;
24260 PyObject * obj2 = 0 ;
24261 char * kwnames[] = {
24262 (char *) "self",(char *) "id",(char *) "clientData", NULL
24263 };
24264
24265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24266 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24267 if (!SWIG_IsOK(res1)) {
24268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24269 }
24270 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24271 ecode2 = SWIG_AsVal_int(obj1, &val2);
24272 if (!SWIG_IsOK(ecode2)) {
24273 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "2"" of type '" "int""'");
24274 }
24275 arg2 = static_cast< int >(val2);
24276 arg3 = obj2;
24277 {
24278 PyThreadState* __tstate = wxPyBeginAllowThreads();
24279 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
24280 wxPyEndAllowThreads(__tstate);
24281 if (PyErr_Occurred()) SWIG_fail;
24282 }
24283 resultobj = SWIG_Py_Void();
24284 return resultobj;
24285 fail:
24286 return NULL;
24287 }
24288
24289
24290 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24291 PyObject *resultobj = 0;
24292 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24293 int arg2 ;
24294 int result;
24295 void *argp1 = 0 ;
24296 int res1 = 0 ;
24297 int val2 ;
24298 int ecode2 = 0 ;
24299 PyObject * obj0 = 0 ;
24300 PyObject * obj1 = 0 ;
24301 char * kwnames[] = {
24302 (char *) "self",(char *) "id", NULL
24303 };
24304
24305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) SWIG_fail;
24306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24307 if (!SWIG_IsOK(res1)) {
24308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
24309 }
24310 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24311 ecode2 = SWIG_AsVal_int(obj1, &val2);
24312 if (!SWIG_IsOK(ecode2)) {
24313 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "2"" of type '" "int""'");
24314 }
24315 arg2 = static_cast< int >(val2);
24316 {
24317 PyThreadState* __tstate = wxPyBeginAllowThreads();
24318 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
24319 wxPyEndAllowThreads(__tstate);
24320 if (PyErr_Occurred()) SWIG_fail;
24321 }
24322 resultobj = SWIG_From_int(static_cast< int >(result));
24323 return resultobj;
24324 fail:
24325 return NULL;
24326 }
24327
24328
24329 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24330 PyObject *resultobj = 0;
24331 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24332 int arg2 ;
24333 bool result;
24334 void *argp1 = 0 ;
24335 int res1 = 0 ;
24336 int val2 ;
24337 int ecode2 = 0 ;
24338 PyObject * obj0 = 0 ;
24339 PyObject * obj1 = 0 ;
24340 char * kwnames[] = {
24341 (char *) "self",(char *) "id", NULL
24342 };
24343
24344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) SWIG_fail;
24345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24346 if (!SWIG_IsOK(res1)) {
24347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolState" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24348 }
24349 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24350 ecode2 = SWIG_AsVal_int(obj1, &val2);
24351 if (!SWIG_IsOK(ecode2)) {
24352 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolState" "', expected argument " "2"" of type '" "int""'");
24353 }
24354 arg2 = static_cast< int >(val2);
24355 {
24356 PyThreadState* __tstate = wxPyBeginAllowThreads();
24357 result = (bool)(arg1)->GetToolState(arg2);
24358 wxPyEndAllowThreads(__tstate);
24359 if (PyErr_Occurred()) SWIG_fail;
24360 }
24361 {
24362 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24363 }
24364 return resultobj;
24365 fail:
24366 return NULL;
24367 }
24368
24369
24370 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24371 PyObject *resultobj = 0;
24372 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24373 int arg2 ;
24374 bool result;
24375 void *argp1 = 0 ;
24376 int res1 = 0 ;
24377 int val2 ;
24378 int ecode2 = 0 ;
24379 PyObject * obj0 = 0 ;
24380 PyObject * obj1 = 0 ;
24381 char * kwnames[] = {
24382 (char *) "self",(char *) "id", NULL
24383 };
24384
24385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
24386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24387 if (!SWIG_IsOK(res1)) {
24388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24389 }
24390 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24391 ecode2 = SWIG_AsVal_int(obj1, &val2);
24392 if (!SWIG_IsOK(ecode2)) {
24393 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "2"" of type '" "int""'");
24394 }
24395 arg2 = static_cast< int >(val2);
24396 {
24397 PyThreadState* __tstate = wxPyBeginAllowThreads();
24398 result = (bool)(arg1)->GetToolEnabled(arg2);
24399 wxPyEndAllowThreads(__tstate);
24400 if (PyErr_Occurred()) SWIG_fail;
24401 }
24402 {
24403 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24404 }
24405 return resultobj;
24406 fail:
24407 return NULL;
24408 }
24409
24410
24411 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24412 PyObject *resultobj = 0;
24413 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24414 int arg2 ;
24415 wxString *arg3 = 0 ;
24416 void *argp1 = 0 ;
24417 int res1 = 0 ;
24418 int val2 ;
24419 int ecode2 = 0 ;
24420 bool temp3 = false ;
24421 PyObject * obj0 = 0 ;
24422 PyObject * obj1 = 0 ;
24423 PyObject * obj2 = 0 ;
24424 char * kwnames[] = {
24425 (char *) "self",(char *) "id",(char *) "helpString", NULL
24426 };
24427
24428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24430 if (!SWIG_IsOK(res1)) {
24431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24432 }
24433 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24434 ecode2 = SWIG_AsVal_int(obj1, &val2);
24435 if (!SWIG_IsOK(ecode2)) {
24436 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24437 }
24438 arg2 = static_cast< int >(val2);
24439 {
24440 arg3 = wxString_in_helper(obj2);
24441 if (arg3 == NULL) SWIG_fail;
24442 temp3 = true;
24443 }
24444 {
24445 PyThreadState* __tstate = wxPyBeginAllowThreads();
24446 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
24447 wxPyEndAllowThreads(__tstate);
24448 if (PyErr_Occurred()) SWIG_fail;
24449 }
24450 resultobj = SWIG_Py_Void();
24451 {
24452 if (temp3)
24453 delete arg3;
24454 }
24455 return resultobj;
24456 fail:
24457 {
24458 if (temp3)
24459 delete arg3;
24460 }
24461 return NULL;
24462 }
24463
24464
24465 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24466 PyObject *resultobj = 0;
24467 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24468 int arg2 ;
24469 wxString result;
24470 void *argp1 = 0 ;
24471 int res1 = 0 ;
24472 int val2 ;
24473 int ecode2 = 0 ;
24474 PyObject * obj0 = 0 ;
24475 PyObject * obj1 = 0 ;
24476 char * kwnames[] = {
24477 (char *) "self",(char *) "id", NULL
24478 };
24479
24480 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24481 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24482 if (!SWIG_IsOK(res1)) {
24483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24484 }
24485 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24486 ecode2 = SWIG_AsVal_int(obj1, &val2);
24487 if (!SWIG_IsOK(ecode2)) {
24488 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24489 }
24490 arg2 = static_cast< int >(val2);
24491 {
24492 PyThreadState* __tstate = wxPyBeginAllowThreads();
24493 result = (arg1)->GetToolShortHelp(arg2);
24494 wxPyEndAllowThreads(__tstate);
24495 if (PyErr_Occurred()) SWIG_fail;
24496 }
24497 {
24498 #if wxUSE_UNICODE
24499 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24500 #else
24501 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24502 #endif
24503 }
24504 return resultobj;
24505 fail:
24506 return NULL;
24507 }
24508
24509
24510 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24511 PyObject *resultobj = 0;
24512 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24513 int arg2 ;
24514 wxString *arg3 = 0 ;
24515 void *argp1 = 0 ;
24516 int res1 = 0 ;
24517 int val2 ;
24518 int ecode2 = 0 ;
24519 bool temp3 = false ;
24520 PyObject * obj0 = 0 ;
24521 PyObject * obj1 = 0 ;
24522 PyObject * obj2 = 0 ;
24523 char * kwnames[] = {
24524 (char *) "self",(char *) "id",(char *) "helpString", NULL
24525 };
24526
24527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24529 if (!SWIG_IsOK(res1)) {
24530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24531 }
24532 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24533 ecode2 = SWIG_AsVal_int(obj1, &val2);
24534 if (!SWIG_IsOK(ecode2)) {
24535 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24536 }
24537 arg2 = static_cast< int >(val2);
24538 {
24539 arg3 = wxString_in_helper(obj2);
24540 if (arg3 == NULL) SWIG_fail;
24541 temp3 = true;
24542 }
24543 {
24544 PyThreadState* __tstate = wxPyBeginAllowThreads();
24545 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
24546 wxPyEndAllowThreads(__tstate);
24547 if (PyErr_Occurred()) SWIG_fail;
24548 }
24549 resultobj = SWIG_Py_Void();
24550 {
24551 if (temp3)
24552 delete arg3;
24553 }
24554 return resultobj;
24555 fail:
24556 {
24557 if (temp3)
24558 delete arg3;
24559 }
24560 return NULL;
24561 }
24562
24563
24564 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24565 PyObject *resultobj = 0;
24566 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24567 int arg2 ;
24568 wxString result;
24569 void *argp1 = 0 ;
24570 int res1 = 0 ;
24571 int val2 ;
24572 int ecode2 = 0 ;
24573 PyObject * obj0 = 0 ;
24574 PyObject * obj1 = 0 ;
24575 char * kwnames[] = {
24576 (char *) "self",(char *) "id", NULL
24577 };
24578
24579 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24580 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24581 if (!SWIG_IsOK(res1)) {
24582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24583 }
24584 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24585 ecode2 = SWIG_AsVal_int(obj1, &val2);
24586 if (!SWIG_IsOK(ecode2)) {
24587 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24588 }
24589 arg2 = static_cast< int >(val2);
24590 {
24591 PyThreadState* __tstate = wxPyBeginAllowThreads();
24592 result = (arg1)->GetToolLongHelp(arg2);
24593 wxPyEndAllowThreads(__tstate);
24594 if (PyErr_Occurred()) SWIG_fail;
24595 }
24596 {
24597 #if wxUSE_UNICODE
24598 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24599 #else
24600 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24601 #endif
24602 }
24603 return resultobj;
24604 fail:
24605 return NULL;
24606 }
24607
24608
24609 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24610 PyObject *resultobj = 0;
24611 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24612 int arg2 ;
24613 int arg3 ;
24614 void *argp1 = 0 ;
24615 int res1 = 0 ;
24616 int val2 ;
24617 int ecode2 = 0 ;
24618 int val3 ;
24619 int ecode3 = 0 ;
24620 PyObject * obj0 = 0 ;
24621 PyObject * obj1 = 0 ;
24622 PyObject * obj2 = 0 ;
24623 char * kwnames[] = {
24624 (char *) "self",(char *) "x",(char *) "y", NULL
24625 };
24626
24627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24629 if (!SWIG_IsOK(res1)) {
24630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24631 }
24632 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24633 ecode2 = SWIG_AsVal_int(obj1, &val2);
24634 if (!SWIG_IsOK(ecode2)) {
24635 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "2"" of type '" "int""'");
24636 }
24637 arg2 = static_cast< int >(val2);
24638 ecode3 = SWIG_AsVal_int(obj2, &val3);
24639 if (!SWIG_IsOK(ecode3)) {
24640 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "3"" of type '" "int""'");
24641 }
24642 arg3 = static_cast< int >(val3);
24643 {
24644 PyThreadState* __tstate = wxPyBeginAllowThreads();
24645 (arg1)->SetMargins(arg2,arg3);
24646 wxPyEndAllowThreads(__tstate);
24647 if (PyErr_Occurred()) SWIG_fail;
24648 }
24649 resultobj = SWIG_Py_Void();
24650 return resultobj;
24651 fail:
24652 return NULL;
24653 }
24654
24655
24656 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24657 PyObject *resultobj = 0;
24658 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24659 wxSize *arg2 = 0 ;
24660 void *argp1 = 0 ;
24661 int res1 = 0 ;
24662 wxSize temp2 ;
24663 PyObject * obj0 = 0 ;
24664 PyObject * obj1 = 0 ;
24665 char * kwnames[] = {
24666 (char *) "self",(char *) "size", NULL
24667 };
24668
24669 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail;
24670 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24671 if (!SWIG_IsOK(res1)) {
24672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24673 }
24674 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24675 {
24676 arg2 = &temp2;
24677 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
24678 }
24679 {
24680 PyThreadState* __tstate = wxPyBeginAllowThreads();
24681 (arg1)->SetMargins((wxSize const &)*arg2);
24682 wxPyEndAllowThreads(__tstate);
24683 if (PyErr_Occurred()) SWIG_fail;
24684 }
24685 resultobj = SWIG_Py_Void();
24686 return resultobj;
24687 fail:
24688 return NULL;
24689 }
24690
24691
24692 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24693 PyObject *resultobj = 0;
24694 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24695 int arg2 ;
24696 void *argp1 = 0 ;
24697 int res1 = 0 ;
24698 int val2 ;
24699 int ecode2 = 0 ;
24700 PyObject * obj0 = 0 ;
24701 PyObject * obj1 = 0 ;
24702 char * kwnames[] = {
24703 (char *) "self",(char *) "packing", NULL
24704 };
24705
24706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) SWIG_fail;
24707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24708 if (!SWIG_IsOK(res1)) {
24709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24710 }
24711 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24712 ecode2 = SWIG_AsVal_int(obj1, &val2);
24713 if (!SWIG_IsOK(ecode2)) {
24714 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "2"" of type '" "int""'");
24715 }
24716 arg2 = static_cast< int >(val2);
24717 {
24718 PyThreadState* __tstate = wxPyBeginAllowThreads();
24719 (arg1)->SetToolPacking(arg2);
24720 wxPyEndAllowThreads(__tstate);
24721 if (PyErr_Occurred()) SWIG_fail;
24722 }
24723 resultobj = SWIG_Py_Void();
24724 return resultobj;
24725 fail:
24726 return NULL;
24727 }
24728
24729
24730 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24731 PyObject *resultobj = 0;
24732 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24733 int arg2 ;
24734 void *argp1 = 0 ;
24735 int res1 = 0 ;
24736 int val2 ;
24737 int ecode2 = 0 ;
24738 PyObject * obj0 = 0 ;
24739 PyObject * obj1 = 0 ;
24740 char * kwnames[] = {
24741 (char *) "self",(char *) "separation", NULL
24742 };
24743
24744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) SWIG_fail;
24745 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24746 if (!SWIG_IsOK(res1)) {
24747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24748 }
24749 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24750 ecode2 = SWIG_AsVal_int(obj1, &val2);
24751 if (!SWIG_IsOK(ecode2)) {
24752 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "2"" of type '" "int""'");
24753 }
24754 arg2 = static_cast< int >(val2);
24755 {
24756 PyThreadState* __tstate = wxPyBeginAllowThreads();
24757 (arg1)->SetToolSeparation(arg2);
24758 wxPyEndAllowThreads(__tstate);
24759 if (PyErr_Occurred()) SWIG_fail;
24760 }
24761 resultobj = SWIG_Py_Void();
24762 return resultobj;
24763 fail:
24764 return NULL;
24765 }
24766
24767
24768 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24769 PyObject *resultobj = 0;
24770 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24771 wxSize result;
24772 void *argp1 = 0 ;
24773 int res1 = 0 ;
24774 PyObject *swig_obj[1] ;
24775
24776 if (!args) SWIG_fail;
24777 swig_obj[0] = args;
24778 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24779 if (!SWIG_IsOK(res1)) {
24780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24781 }
24782 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24783 {
24784 PyThreadState* __tstate = wxPyBeginAllowThreads();
24785 result = (arg1)->GetToolMargins();
24786 wxPyEndAllowThreads(__tstate);
24787 if (PyErr_Occurred()) SWIG_fail;
24788 }
24789 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24790 return resultobj;
24791 fail:
24792 return NULL;
24793 }
24794
24795
24796 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24797 PyObject *resultobj = 0;
24798 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24799 wxSize result;
24800 void *argp1 = 0 ;
24801 int res1 = 0 ;
24802 PyObject *swig_obj[1] ;
24803
24804 if (!args) SWIG_fail;
24805 swig_obj[0] = args;
24806 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24807 if (!SWIG_IsOK(res1)) {
24808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24809 }
24810 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24811 {
24812 PyThreadState* __tstate = wxPyBeginAllowThreads();
24813 result = (arg1)->GetMargins();
24814 wxPyEndAllowThreads(__tstate);
24815 if (PyErr_Occurred()) SWIG_fail;
24816 }
24817 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24818 return resultobj;
24819 fail:
24820 return NULL;
24821 }
24822
24823
24824 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24825 PyObject *resultobj = 0;
24826 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24827 int result;
24828 void *argp1 = 0 ;
24829 int res1 = 0 ;
24830 PyObject *swig_obj[1] ;
24831
24832 if (!args) SWIG_fail;
24833 swig_obj[0] = args;
24834 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24835 if (!SWIG_IsOK(res1)) {
24836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24837 }
24838 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24839 {
24840 PyThreadState* __tstate = wxPyBeginAllowThreads();
24841 result = (int)(arg1)->GetToolPacking();
24842 wxPyEndAllowThreads(__tstate);
24843 if (PyErr_Occurred()) SWIG_fail;
24844 }
24845 resultobj = SWIG_From_int(static_cast< int >(result));
24846 return resultobj;
24847 fail:
24848 return NULL;
24849 }
24850
24851
24852 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24853 PyObject *resultobj = 0;
24854 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24855 int result;
24856 void *argp1 = 0 ;
24857 int res1 = 0 ;
24858 PyObject *swig_obj[1] ;
24859
24860 if (!args) SWIG_fail;
24861 swig_obj[0] = args;
24862 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24863 if (!SWIG_IsOK(res1)) {
24864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24865 }
24866 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24867 {
24868 PyThreadState* __tstate = wxPyBeginAllowThreads();
24869 result = (int)(arg1)->GetToolSeparation();
24870 wxPyEndAllowThreads(__tstate);
24871 if (PyErr_Occurred()) SWIG_fail;
24872 }
24873 resultobj = SWIG_From_int(static_cast< int >(result));
24874 return resultobj;
24875 fail:
24876 return NULL;
24877 }
24878
24879
24880 SWIGINTERN PyObject *_wrap_ToolBarBase_SetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24881 PyObject *resultobj = 0;
24882 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24883 int arg2 ;
24884 void *argp1 = 0 ;
24885 int res1 = 0 ;
24886 int val2 ;
24887 int ecode2 = 0 ;
24888 PyObject * obj0 = 0 ;
24889 PyObject * obj1 = 0 ;
24890 char * kwnames[] = {
24891 (char *) "self",(char *) "nRows", NULL
24892 };
24893
24894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) SWIG_fail;
24895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24896 if (!SWIG_IsOK(res1)) {
24897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24898 }
24899 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24900 ecode2 = SWIG_AsVal_int(obj1, &val2);
24901 if (!SWIG_IsOK(ecode2)) {
24902 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetRows" "', expected argument " "2"" of type '" "int""'");
24903 }
24904 arg2 = static_cast< int >(val2);
24905 {
24906 PyThreadState* __tstate = wxPyBeginAllowThreads();
24907 (arg1)->SetRows(arg2);
24908 wxPyEndAllowThreads(__tstate);
24909 if (PyErr_Occurred()) SWIG_fail;
24910 }
24911 resultobj = SWIG_Py_Void();
24912 return resultobj;
24913 fail:
24914 return NULL;
24915 }
24916
24917
24918 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24919 PyObject *resultobj = 0;
24920 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24921 int arg2 ;
24922 int arg3 ;
24923 void *argp1 = 0 ;
24924 int res1 = 0 ;
24925 int val2 ;
24926 int ecode2 = 0 ;
24927 int val3 ;
24928 int ecode3 = 0 ;
24929 PyObject * obj0 = 0 ;
24930 PyObject * obj1 = 0 ;
24931 PyObject * obj2 = 0 ;
24932 char * kwnames[] = {
24933 (char *) "self",(char *) "rows",(char *) "cols", NULL
24934 };
24935
24936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24938 if (!SWIG_IsOK(res1)) {
24939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24940 }
24941 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24942 ecode2 = SWIG_AsVal_int(obj1, &val2);
24943 if (!SWIG_IsOK(ecode2)) {
24944 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "2"" of type '" "int""'");
24945 }
24946 arg2 = static_cast< int >(val2);
24947 ecode3 = SWIG_AsVal_int(obj2, &val3);
24948 if (!SWIG_IsOK(ecode3)) {
24949 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "3"" of type '" "int""'");
24950 }
24951 arg3 = static_cast< int >(val3);
24952 {
24953 PyThreadState* __tstate = wxPyBeginAllowThreads();
24954 (arg1)->SetMaxRowsCols(arg2,arg3);
24955 wxPyEndAllowThreads(__tstate);
24956 if (PyErr_Occurred()) SWIG_fail;
24957 }
24958 resultobj = SWIG_Py_Void();
24959 return resultobj;
24960 fail:
24961 return NULL;
24962 }
24963
24964
24965 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24966 PyObject *resultobj = 0;
24967 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24968 int result;
24969 void *argp1 = 0 ;
24970 int res1 = 0 ;
24971 PyObject *swig_obj[1] ;
24972
24973 if (!args) SWIG_fail;
24974 swig_obj[0] = args;
24975 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24976 if (!SWIG_IsOK(res1)) {
24977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24978 }
24979 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24980 {
24981 PyThreadState* __tstate = wxPyBeginAllowThreads();
24982 result = (int)(arg1)->GetMaxRows();
24983 wxPyEndAllowThreads(__tstate);
24984 if (PyErr_Occurred()) SWIG_fail;
24985 }
24986 resultobj = SWIG_From_int(static_cast< int >(result));
24987 return resultobj;
24988 fail:
24989 return NULL;
24990 }
24991
24992
24993 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24994 PyObject *resultobj = 0;
24995 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24996 int result;
24997 void *argp1 = 0 ;
24998 int res1 = 0 ;
24999 PyObject *swig_obj[1] ;
25000
25001 if (!args) SWIG_fail;
25002 swig_obj[0] = args;
25003 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25004 if (!SWIG_IsOK(res1)) {
25005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25006 }
25007 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25008 {
25009 PyThreadState* __tstate = wxPyBeginAllowThreads();
25010 result = (int)(arg1)->GetMaxCols();
25011 wxPyEndAllowThreads(__tstate);
25012 if (PyErr_Occurred()) SWIG_fail;
25013 }
25014 resultobj = SWIG_From_int(static_cast< int >(result));
25015 return resultobj;
25016 fail:
25017 return NULL;
25018 }
25019
25020
25021 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25022 PyObject *resultobj = 0;
25023 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25024 wxSize *arg2 = 0 ;
25025 void *argp1 = 0 ;
25026 int res1 = 0 ;
25027 wxSize temp2 ;
25028 PyObject * obj0 = 0 ;
25029 PyObject * obj1 = 0 ;
25030 char * kwnames[] = {
25031 (char *) "self",(char *) "size", NULL
25032 };
25033
25034 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) SWIG_fail;
25035 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25036 if (!SWIG_IsOK(res1)) {
25037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25038 }
25039 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25040 {
25041 arg2 = &temp2;
25042 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25043 }
25044 {
25045 PyThreadState* __tstate = wxPyBeginAllowThreads();
25046 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
25047 wxPyEndAllowThreads(__tstate);
25048 if (PyErr_Occurred()) SWIG_fail;
25049 }
25050 resultobj = SWIG_Py_Void();
25051 return resultobj;
25052 fail:
25053 return NULL;
25054 }
25055
25056
25057 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25058 PyObject *resultobj = 0;
25059 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25060 wxSize result;
25061 void *argp1 = 0 ;
25062 int res1 = 0 ;
25063 PyObject *swig_obj[1] ;
25064
25065 if (!args) SWIG_fail;
25066 swig_obj[0] = args;
25067 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25068 if (!SWIG_IsOK(res1)) {
25069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25070 }
25071 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25072 {
25073 PyThreadState* __tstate = wxPyBeginAllowThreads();
25074 result = (arg1)->GetToolBitmapSize();
25075 wxPyEndAllowThreads(__tstate);
25076 if (PyErr_Occurred()) SWIG_fail;
25077 }
25078 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25079 return resultobj;
25080 fail:
25081 return NULL;
25082 }
25083
25084
25085 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25086 PyObject *resultobj = 0;
25087 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25088 wxSize result;
25089 void *argp1 = 0 ;
25090 int res1 = 0 ;
25091 PyObject *swig_obj[1] ;
25092
25093 if (!args) SWIG_fail;
25094 swig_obj[0] = args;
25095 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25096 if (!SWIG_IsOK(res1)) {
25097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25098 }
25099 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25100 {
25101 PyThreadState* __tstate = wxPyBeginAllowThreads();
25102 result = (arg1)->GetToolSize();
25103 wxPyEndAllowThreads(__tstate);
25104 if (PyErr_Occurred()) SWIG_fail;
25105 }
25106 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25107 return resultobj;
25108 fail:
25109 return NULL;
25110 }
25111
25112
25113 SWIGINTERN PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25114 PyObject *resultobj = 0;
25115 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25116 int arg2 ;
25117 int arg3 ;
25118 wxToolBarToolBase *result = 0 ;
25119 void *argp1 = 0 ;
25120 int res1 = 0 ;
25121 int val2 ;
25122 int ecode2 = 0 ;
25123 int val3 ;
25124 int ecode3 = 0 ;
25125 PyObject * obj0 = 0 ;
25126 PyObject * obj1 = 0 ;
25127 PyObject * obj2 = 0 ;
25128 char * kwnames[] = {
25129 (char *) "self",(char *) "x",(char *) "y", NULL
25130 };
25131
25132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25134 if (!SWIG_IsOK(res1)) {
25135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25136 }
25137 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25138 ecode2 = SWIG_AsVal_int(obj1, &val2);
25139 if (!SWIG_IsOK(ecode2)) {
25140 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "2"" of type '" "int""'");
25141 }
25142 arg2 = static_cast< int >(val2);
25143 ecode3 = SWIG_AsVal_int(obj2, &val3);
25144 if (!SWIG_IsOK(ecode3)) {
25145 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "3"" of type '" "int""'");
25146 }
25147 arg3 = static_cast< int >(val3);
25148 {
25149 PyThreadState* __tstate = wxPyBeginAllowThreads();
25150 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
25151 wxPyEndAllowThreads(__tstate);
25152 if (PyErr_Occurred()) SWIG_fail;
25153 }
25154 {
25155 resultobj = wxPyMake_wxObject(result, (bool)0);
25156 }
25157 return resultobj;
25158 fail:
25159 return NULL;
25160 }
25161
25162
25163 SWIGINTERN PyObject *_wrap_ToolBarBase_FindById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25164 PyObject *resultobj = 0;
25165 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25166 int arg2 ;
25167 wxToolBarToolBase *result = 0 ;
25168 void *argp1 = 0 ;
25169 int res1 = 0 ;
25170 int val2 ;
25171 int ecode2 = 0 ;
25172 PyObject * obj0 = 0 ;
25173 PyObject * obj1 = 0 ;
25174 char * kwnames[] = {
25175 (char *) "self",(char *) "toolid", NULL
25176 };
25177
25178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) SWIG_fail;
25179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25180 if (!SWIG_IsOK(res1)) {
25181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindById" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25182 }
25183 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25184 ecode2 = SWIG_AsVal_int(obj1, &val2);
25185 if (!SWIG_IsOK(ecode2)) {
25186 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindById" "', expected argument " "2"" of type '" "int""'");
25187 }
25188 arg2 = static_cast< int >(val2);
25189 {
25190 PyThreadState* __tstate = wxPyBeginAllowThreads();
25191 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
25192 wxPyEndAllowThreads(__tstate);
25193 if (PyErr_Occurred()) SWIG_fail;
25194 }
25195 {
25196 resultobj = wxPyMake_wxObject(result, (bool)0);
25197 }
25198 return resultobj;
25199 fail:
25200 return NULL;
25201 }
25202
25203
25204 SWIGINTERN PyObject *_wrap_ToolBarBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25205 PyObject *resultobj = 0;
25206 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25207 bool result;
25208 void *argp1 = 0 ;
25209 int res1 = 0 ;
25210 PyObject *swig_obj[1] ;
25211
25212 if (!args) SWIG_fail;
25213 swig_obj[0] = args;
25214 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25215 if (!SWIG_IsOK(res1)) {
25216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_IsVertical" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25217 }
25218 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25219 {
25220 PyThreadState* __tstate = wxPyBeginAllowThreads();
25221 result = (bool)(arg1)->IsVertical();
25222 wxPyEndAllowThreads(__tstate);
25223 if (PyErr_Occurred()) SWIG_fail;
25224 }
25225 {
25226 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25227 }
25228 return resultobj;
25229 fail:
25230 return NULL;
25231 }
25232
25233
25234 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25235 PyObject *resultobj = 0;
25236 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25237 size_t result;
25238 void *argp1 = 0 ;
25239 int res1 = 0 ;
25240 PyObject *swig_obj[1] ;
25241
25242 if (!args) SWIG_fail;
25243 swig_obj[0] = args;
25244 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25245 if (!SWIG_IsOK(res1)) {
25246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolsCount" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25247 }
25248 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25249 {
25250 PyThreadState* __tstate = wxPyBeginAllowThreads();
25251 result = (size_t)((wxToolBarBase const *)arg1)->GetToolsCount();
25252 wxPyEndAllowThreads(__tstate);
25253 if (PyErr_Occurred()) SWIG_fail;
25254 }
25255 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
25256 return resultobj;
25257 fail:
25258 return NULL;
25259 }
25260
25261
25262 SWIGINTERN PyObject *ToolBarBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25263 PyObject *obj;
25264 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25265 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarBase, SWIG_NewClientData(obj));
25266 return SWIG_Py_Void();
25267 }
25268
25269 SWIGINTERN PyObject *_wrap_new_ToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25270 PyObject *resultobj = 0;
25271 wxWindow *arg1 = (wxWindow *) 0 ;
25272 int arg2 = (int) -1 ;
25273 wxPoint const &arg3_defvalue = wxDefaultPosition ;
25274 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
25275 wxSize const &arg4_defvalue = wxDefaultSize ;
25276 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
25277 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25278 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
25279 wxString *arg6 = (wxString *) &arg6_defvalue ;
25280 wxToolBar *result = 0 ;
25281 void *argp1 = 0 ;
25282 int res1 = 0 ;
25283 int val2 ;
25284 int ecode2 = 0 ;
25285 wxPoint temp3 ;
25286 wxSize temp4 ;
25287 long val5 ;
25288 int ecode5 = 0 ;
25289 bool temp6 = false ;
25290 PyObject * obj0 = 0 ;
25291 PyObject * obj1 = 0 ;
25292 PyObject * obj2 = 0 ;
25293 PyObject * obj3 = 0 ;
25294 PyObject * obj4 = 0 ;
25295 PyObject * obj5 = 0 ;
25296 char * kwnames[] = {
25297 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25298 };
25299
25300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25302 if (!SWIG_IsOK(res1)) {
25303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToolBar" "', expected argument " "1"" of type '" "wxWindow *""'");
25304 }
25305 arg1 = reinterpret_cast< wxWindow * >(argp1);
25306 if (obj1) {
25307 ecode2 = SWIG_AsVal_int(obj1, &val2);
25308 if (!SWIG_IsOK(ecode2)) {
25309 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolBar" "', expected argument " "2"" of type '" "int""'");
25310 }
25311 arg2 = static_cast< int >(val2);
25312 }
25313 if (obj2) {
25314 {
25315 arg3 = &temp3;
25316 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
25317 }
25318 }
25319 if (obj3) {
25320 {
25321 arg4 = &temp4;
25322 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
25323 }
25324 }
25325 if (obj4) {
25326 ecode5 = SWIG_AsVal_long(obj4, &val5);
25327 if (!SWIG_IsOK(ecode5)) {
25328 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ToolBar" "', expected argument " "5"" of type '" "long""'");
25329 }
25330 arg5 = static_cast< long >(val5);
25331 }
25332 if (obj5) {
25333 {
25334 arg6 = wxString_in_helper(obj5);
25335 if (arg6 == NULL) SWIG_fail;
25336 temp6 = true;
25337 }
25338 }
25339 {
25340 if (!wxPyCheckForApp()) SWIG_fail;
25341 PyThreadState* __tstate = wxPyBeginAllowThreads();
25342 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
25343 wxPyEndAllowThreads(__tstate);
25344 if (PyErr_Occurred()) SWIG_fail;
25345 }
25346 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_NEW | 0 );
25347 {
25348 if (temp6)
25349 delete arg6;
25350 }
25351 return resultobj;
25352 fail:
25353 {
25354 if (temp6)
25355 delete arg6;
25356 }
25357 return NULL;
25358 }
25359
25360
25361 SWIGINTERN PyObject *_wrap_new_PreToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25362 PyObject *resultobj = 0;
25363 wxToolBar *result = 0 ;
25364
25365 if (!SWIG_Python_UnpackTuple(args,"new_PreToolBar",0,0,0)) SWIG_fail;
25366 {
25367 if (!wxPyCheckForApp()) SWIG_fail;
25368 PyThreadState* __tstate = wxPyBeginAllowThreads();
25369 result = (wxToolBar *)new wxToolBar();
25370 wxPyEndAllowThreads(__tstate);
25371 if (PyErr_Occurred()) SWIG_fail;
25372 }
25373 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_OWN | 0 );
25374 return resultobj;
25375 fail:
25376 return NULL;
25377 }
25378
25379
25380 SWIGINTERN PyObject *_wrap_ToolBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25381 PyObject *resultobj = 0;
25382 wxToolBar *arg1 = (wxToolBar *) 0 ;
25383 wxWindow *arg2 = (wxWindow *) 0 ;
25384 int arg3 = (int) -1 ;
25385 wxPoint const &arg4_defvalue = wxDefaultPosition ;
25386 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
25387 wxSize const &arg5_defvalue = wxDefaultSize ;
25388 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
25389 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25390 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
25391 wxString *arg7 = (wxString *) &arg7_defvalue ;
25392 bool result;
25393 void *argp1 = 0 ;
25394 int res1 = 0 ;
25395 void *argp2 = 0 ;
25396 int res2 = 0 ;
25397 int val3 ;
25398 int ecode3 = 0 ;
25399 wxPoint temp4 ;
25400 wxSize temp5 ;
25401 long val6 ;
25402 int ecode6 = 0 ;
25403 bool temp7 = false ;
25404 PyObject * obj0 = 0 ;
25405 PyObject * obj1 = 0 ;
25406 PyObject * obj2 = 0 ;
25407 PyObject * obj3 = 0 ;
25408 PyObject * obj4 = 0 ;
25409 PyObject * obj5 = 0 ;
25410 PyObject * obj6 = 0 ;
25411 char * kwnames[] = {
25412 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25413 };
25414
25415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
25417 if (!SWIG_IsOK(res1)) {
25418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_Create" "', expected argument " "1"" of type '" "wxToolBar *""'");
25419 }
25420 arg1 = reinterpret_cast< wxToolBar * >(argp1);
25421 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25422 if (!SWIG_IsOK(res2)) {
25423 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
25424 }
25425 arg2 = reinterpret_cast< wxWindow * >(argp2);
25426 if (obj2) {
25427 ecode3 = SWIG_AsVal_int(obj2, &val3);
25428 if (!SWIG_IsOK(ecode3)) {
25429 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_Create" "', expected argument " "3"" of type '" "int""'");
25430 }
25431 arg3 = static_cast< int >(val3);
25432 }
25433 if (obj3) {
25434 {
25435 arg4 = &temp4;
25436 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
25437 }
25438 }
25439 if (obj4) {
25440 {
25441 arg5 = &temp5;
25442 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
25443 }
25444 }
25445 if (obj5) {
25446 ecode6 = SWIG_AsVal_long(obj5, &val6);
25447 if (!SWIG_IsOK(ecode6)) {
25448 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBar_Create" "', expected argument " "6"" of type '" "long""'");
25449 }
25450 arg6 = static_cast< long >(val6);
25451 }
25452 if (obj6) {
25453 {
25454 arg7 = wxString_in_helper(obj6);
25455 if (arg7 == NULL) SWIG_fail;
25456 temp7 = true;
25457 }
25458 }
25459 {
25460 PyThreadState* __tstate = wxPyBeginAllowThreads();
25461 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
25462 wxPyEndAllowThreads(__tstate);
25463 if (PyErr_Occurred()) SWIG_fail;
25464 }
25465 {
25466 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25467 }
25468 {
25469 if (temp7)
25470 delete arg7;
25471 }
25472 return resultobj;
25473 fail:
25474 {
25475 if (temp7)
25476 delete arg7;
25477 }
25478 return NULL;
25479 }
25480
25481
25482 SWIGINTERN PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25483 PyObject *resultobj = 0;
25484 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
25485 SwigValueWrapper<wxVisualAttributes > result;
25486 int val1 ;
25487 int ecode1 = 0 ;
25488 PyObject * obj0 = 0 ;
25489 char * kwnames[] = {
25490 (char *) "variant", NULL
25491 };
25492
25493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
25494 if (obj0) {
25495 ecode1 = SWIG_AsVal_int(obj0, &val1);
25496 if (!SWIG_IsOK(ecode1)) {
25497 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToolBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
25498 }
25499 arg1 = static_cast< wxWindowVariant >(val1);
25500 }
25501 {
25502 if (!wxPyCheckForApp()) SWIG_fail;
25503 PyThreadState* __tstate = wxPyBeginAllowThreads();
25504 result = wxToolBar::GetClassDefaultAttributes(arg1);
25505 wxPyEndAllowThreads(__tstate);
25506 if (PyErr_Occurred()) SWIG_fail;
25507 }
25508 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
25509 return resultobj;
25510 fail:
25511 return NULL;
25512 }
25513
25514
25515 SWIGINTERN PyObject *ToolBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25516 PyObject *obj;
25517 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25518 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBar, SWIG_NewClientData(obj));
25519 return SWIG_Py_Void();
25520 }
25521
25522 SWIGINTERN PyObject *ToolBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25523 return SWIG_Python_InitShadowInstance(args);
25524 }
25525
25526 SWIGINTERN int ListCtrlNameStr_set(PyObject *) {
25527 SWIG_Error(SWIG_AttributeError,"Variable ListCtrlNameStr is read-only.");
25528 return 1;
25529 }
25530
25531
25532 SWIGINTERN PyObject *ListCtrlNameStr_get(void) {
25533 PyObject *pyobj = 0;
25534
25535 {
25536 #if wxUSE_UNICODE
25537 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
25538 #else
25539 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
25540 #endif
25541 }
25542 return pyobj;
25543 }
25544
25545
25546 SWIGINTERN PyObject *_wrap_new_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25547 PyObject *resultobj = 0;
25548 wxColour const &arg1_defvalue = wxNullColour ;
25549 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
25550 wxColour const &arg2_defvalue = wxNullColour ;
25551 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
25552 wxFont const &arg3_defvalue = wxNullFont ;
25553 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
25554 wxListItemAttr *result = 0 ;
25555 wxColour temp1 ;
25556 wxColour temp2 ;
25557 void *argp3 = 0 ;
25558 int res3 = 0 ;
25559 PyObject * obj0 = 0 ;
25560 PyObject * obj1 = 0 ;
25561 PyObject * obj2 = 0 ;
25562 char * kwnames[] = {
25563 (char *) "colText",(char *) "colBack",(char *) "font", NULL
25564 };
25565
25566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25567 if (obj0) {
25568 {
25569 arg1 = &temp1;
25570 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
25571 }
25572 }
25573 if (obj1) {
25574 {
25575 arg2 = &temp2;
25576 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25577 }
25578 }
25579 if (obj2) {
25580 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
25581 if (!SWIG_IsOK(res3)) {
25582 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
25583 }
25584 if (!argp3) {
25585 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
25586 }
25587 arg3 = reinterpret_cast< wxFont * >(argp3);
25588 }
25589 {
25590 PyThreadState* __tstate = wxPyBeginAllowThreads();
25591 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
25592 wxPyEndAllowThreads(__tstate);
25593 if (PyErr_Occurred()) SWIG_fail;
25594 }
25595 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_NEW | 0 );
25596 return resultobj;
25597 fail:
25598 return NULL;
25599 }
25600
25601
25602 SWIGINTERN PyObject *_wrap_delete_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25603 PyObject *resultobj = 0;
25604 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25605 void *argp1 = 0 ;
25606 int res1 = 0 ;
25607 PyObject *swig_obj[1] ;
25608
25609 if (!args) SWIG_fail;
25610 swig_obj[0] = args;
25611 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_DISOWN | 0 );
25612 if (!SWIG_IsOK(res1)) {
25613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItemAttr" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25614 }
25615 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25616 {
25617 PyThreadState* __tstate = wxPyBeginAllowThreads();
25618 delete arg1;
25619
25620 wxPyEndAllowThreads(__tstate);
25621 if (PyErr_Occurred()) SWIG_fail;
25622 }
25623 resultobj = SWIG_Py_Void();
25624 return resultobj;
25625 fail:
25626 return NULL;
25627 }
25628
25629
25630 SWIGINTERN PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25631 PyObject *resultobj = 0;
25632 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25633 wxColour *arg2 = 0 ;
25634 void *argp1 = 0 ;
25635 int res1 = 0 ;
25636 wxColour temp2 ;
25637 PyObject * obj0 = 0 ;
25638 PyObject * obj1 = 0 ;
25639 char * kwnames[] = {
25640 (char *) "self",(char *) "colText", NULL
25641 };
25642
25643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
25644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25645 if (!SWIG_IsOK(res1)) {
25646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25647 }
25648 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25649 {
25650 arg2 = &temp2;
25651 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25652 }
25653 {
25654 PyThreadState* __tstate = wxPyBeginAllowThreads();
25655 (arg1)->SetTextColour((wxColour const &)*arg2);
25656 wxPyEndAllowThreads(__tstate);
25657 if (PyErr_Occurred()) SWIG_fail;
25658 }
25659 resultobj = SWIG_Py_Void();
25660 return resultobj;
25661 fail:
25662 return NULL;
25663 }
25664
25665
25666 SWIGINTERN PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25667 PyObject *resultobj = 0;
25668 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25669 wxColour *arg2 = 0 ;
25670 void *argp1 = 0 ;
25671 int res1 = 0 ;
25672 wxColour temp2 ;
25673 PyObject * obj0 = 0 ;
25674 PyObject * obj1 = 0 ;
25675 char * kwnames[] = {
25676 (char *) "self",(char *) "colBack", NULL
25677 };
25678
25679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
25680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25681 if (!SWIG_IsOK(res1)) {
25682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25683 }
25684 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25685 {
25686 arg2 = &temp2;
25687 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25688 }
25689 {
25690 PyThreadState* __tstate = wxPyBeginAllowThreads();
25691 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
25692 wxPyEndAllowThreads(__tstate);
25693 if (PyErr_Occurred()) SWIG_fail;
25694 }
25695 resultobj = SWIG_Py_Void();
25696 return resultobj;
25697 fail:
25698 return NULL;
25699 }
25700
25701
25702 SWIGINTERN PyObject *_wrap_ListItemAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25703 PyObject *resultobj = 0;
25704 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25705 wxFont *arg2 = 0 ;
25706 void *argp1 = 0 ;
25707 int res1 = 0 ;
25708 void *argp2 = 0 ;
25709 int res2 = 0 ;
25710 PyObject * obj0 = 0 ;
25711 PyObject * obj1 = 0 ;
25712 char * kwnames[] = {
25713 (char *) "self",(char *) "font", NULL
25714 };
25715
25716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
25717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25718 if (!SWIG_IsOK(res1)) {
25719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25720 }
25721 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25722 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
25723 if (!SWIG_IsOK(res2)) {
25724 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25725 }
25726 if (!argp2) {
25727 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25728 }
25729 arg2 = reinterpret_cast< wxFont * >(argp2);
25730 {
25731 PyThreadState* __tstate = wxPyBeginAllowThreads();
25732 (arg1)->SetFont((wxFont const &)*arg2);
25733 wxPyEndAllowThreads(__tstate);
25734 if (PyErr_Occurred()) SWIG_fail;
25735 }
25736 resultobj = SWIG_Py_Void();
25737 return resultobj;
25738 fail:
25739 return NULL;
25740 }
25741
25742
25743 SWIGINTERN PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25744 PyObject *resultobj = 0;
25745 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25746 bool result;
25747 void *argp1 = 0 ;
25748 int res1 = 0 ;
25749 PyObject *swig_obj[1] ;
25750
25751 if (!args) SWIG_fail;
25752 swig_obj[0] = args;
25753 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25754 if (!SWIG_IsOK(res1)) {
25755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25756 }
25757 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25758 {
25759 PyThreadState* __tstate = wxPyBeginAllowThreads();
25760 result = (bool)(arg1)->HasTextColour();
25761 wxPyEndAllowThreads(__tstate);
25762 if (PyErr_Occurred()) SWIG_fail;
25763 }
25764 {
25765 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25766 }
25767 return resultobj;
25768 fail:
25769 return NULL;
25770 }
25771
25772
25773 SWIGINTERN PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25774 PyObject *resultobj = 0;
25775 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25776 bool result;
25777 void *argp1 = 0 ;
25778 int res1 = 0 ;
25779 PyObject *swig_obj[1] ;
25780
25781 if (!args) SWIG_fail;
25782 swig_obj[0] = args;
25783 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25784 if (!SWIG_IsOK(res1)) {
25785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25786 }
25787 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25788 {
25789 PyThreadState* __tstate = wxPyBeginAllowThreads();
25790 result = (bool)(arg1)->HasBackgroundColour();
25791 wxPyEndAllowThreads(__tstate);
25792 if (PyErr_Occurred()) SWIG_fail;
25793 }
25794 {
25795 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25796 }
25797 return resultobj;
25798 fail:
25799 return NULL;
25800 }
25801
25802
25803 SWIGINTERN PyObject *_wrap_ListItemAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25804 PyObject *resultobj = 0;
25805 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25806 bool result;
25807 void *argp1 = 0 ;
25808 int res1 = 0 ;
25809 PyObject *swig_obj[1] ;
25810
25811 if (!args) SWIG_fail;
25812 swig_obj[0] = args;
25813 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25814 if (!SWIG_IsOK(res1)) {
25815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25816 }
25817 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25818 {
25819 PyThreadState* __tstate = wxPyBeginAllowThreads();
25820 result = (bool)(arg1)->HasFont();
25821 wxPyEndAllowThreads(__tstate);
25822 if (PyErr_Occurred()) SWIG_fail;
25823 }
25824 {
25825 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25826 }
25827 return resultobj;
25828 fail:
25829 return NULL;
25830 }
25831
25832
25833 SWIGINTERN PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25834 PyObject *resultobj = 0;
25835 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25836 wxColour result;
25837 void *argp1 = 0 ;
25838 int res1 = 0 ;
25839 PyObject *swig_obj[1] ;
25840
25841 if (!args) SWIG_fail;
25842 swig_obj[0] = args;
25843 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25844 if (!SWIG_IsOK(res1)) {
25845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25846 }
25847 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25848 {
25849 PyThreadState* __tstate = wxPyBeginAllowThreads();
25850 result = (arg1)->GetTextColour();
25851 wxPyEndAllowThreads(__tstate);
25852 if (PyErr_Occurred()) SWIG_fail;
25853 }
25854 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
25855 return resultobj;
25856 fail:
25857 return NULL;
25858 }
25859
25860
25861 SWIGINTERN PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25862 PyObject *resultobj = 0;
25863 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25864 wxColour result;
25865 void *argp1 = 0 ;
25866 int res1 = 0 ;
25867 PyObject *swig_obj[1] ;
25868
25869 if (!args) SWIG_fail;
25870 swig_obj[0] = args;
25871 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25872 if (!SWIG_IsOK(res1)) {
25873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25874 }
25875 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25876 {
25877 PyThreadState* __tstate = wxPyBeginAllowThreads();
25878 result = (arg1)->GetBackgroundColour();
25879 wxPyEndAllowThreads(__tstate);
25880 if (PyErr_Occurred()) SWIG_fail;
25881 }
25882 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
25883 return resultobj;
25884 fail:
25885 return NULL;
25886 }
25887
25888
25889 SWIGINTERN PyObject *_wrap_ListItemAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25890 PyObject *resultobj = 0;
25891 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25892 wxFont result;
25893 void *argp1 = 0 ;
25894 int res1 = 0 ;
25895 PyObject *swig_obj[1] ;
25896
25897 if (!args) SWIG_fail;
25898 swig_obj[0] = args;
25899 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25900 if (!SWIG_IsOK(res1)) {
25901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25902 }
25903 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25904 {
25905 PyThreadState* __tstate = wxPyBeginAllowThreads();
25906 result = (arg1)->GetFont();
25907 wxPyEndAllowThreads(__tstate);
25908 if (PyErr_Occurred()) SWIG_fail;
25909 }
25910 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
25911 return resultobj;
25912 fail:
25913 return NULL;
25914 }
25915
25916
25917 SWIGINTERN PyObject *_wrap_ListItemAttr_AssignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25918 PyObject *resultobj = 0;
25919 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25920 wxListItemAttr *arg2 = 0 ;
25921 void *argp1 = 0 ;
25922 int res1 = 0 ;
25923 void *argp2 = 0 ;
25924 int res2 = 0 ;
25925 PyObject * obj0 = 0 ;
25926 PyObject * obj1 = 0 ;
25927 char * kwnames[] = {
25928 (char *) "self",(char *) "source", NULL
25929 };
25930
25931 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_AssignFrom",kwnames,&obj0,&obj1)) SWIG_fail;
25932 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25933 if (!SWIG_IsOK(res1)) {
25934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25935 }
25936 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25937 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItemAttr, 0 | 0);
25938 if (!SWIG_IsOK(res2)) {
25939 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
25940 }
25941 if (!argp2) {
25942 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
25943 }
25944 arg2 = reinterpret_cast< wxListItemAttr * >(argp2);
25945 {
25946 PyThreadState* __tstate = wxPyBeginAllowThreads();
25947 (arg1)->AssignFrom((wxListItemAttr const &)*arg2);
25948 wxPyEndAllowThreads(__tstate);
25949 if (PyErr_Occurred()) SWIG_fail;
25950 }
25951 resultobj = SWIG_Py_Void();
25952 return resultobj;
25953 fail:
25954 return NULL;
25955 }
25956
25957
25958 SWIGINTERN PyObject *_wrap_ListItemAttr_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25959 PyObject *resultobj = 0;
25960 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25961 void *argp1 = 0 ;
25962 int res1 = 0 ;
25963 PyObject *swig_obj[1] ;
25964
25965 if (!args) SWIG_fail;
25966 swig_obj[0] = args;
25967 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25968 if (!SWIG_IsOK(res1)) {
25969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_Destroy" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25970 }
25971 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25972 {
25973 PyThreadState* __tstate = wxPyBeginAllowThreads();
25974 wxListItemAttr_Destroy(arg1);
25975 wxPyEndAllowThreads(__tstate);
25976 if (PyErr_Occurred()) SWIG_fail;
25977 }
25978 resultobj = SWIG_Py_Void();
25979 return resultobj;
25980 fail:
25981 return NULL;
25982 }
25983
25984
25985 SWIGINTERN PyObject *ListItemAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25986 PyObject *obj;
25987 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25988 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItemAttr, SWIG_NewClientData(obj));
25989 return SWIG_Py_Void();
25990 }
25991
25992 SWIGINTERN PyObject *ListItemAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25993 return SWIG_Python_InitShadowInstance(args);
25994 }
25995
25996 SWIGINTERN PyObject *_wrap_new_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25997 PyObject *resultobj = 0;
25998 wxListItem *result = 0 ;
25999
26000 if (!SWIG_Python_UnpackTuple(args,"new_ListItem",0,0,0)) SWIG_fail;
26001 {
26002 PyThreadState* __tstate = wxPyBeginAllowThreads();
26003 result = (wxListItem *)new wxListItem();
26004 wxPyEndAllowThreads(__tstate);
26005 if (PyErr_Occurred()) SWIG_fail;
26006 }
26007 {
26008 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
26009 }
26010 return resultobj;
26011 fail:
26012 return NULL;
26013 }
26014
26015
26016 SWIGINTERN PyObject *_wrap_delete_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26017 PyObject *resultobj = 0;
26018 wxListItem *arg1 = (wxListItem *) 0 ;
26019 void *argp1 = 0 ;
26020 int res1 = 0 ;
26021 PyObject *swig_obj[1] ;
26022
26023 if (!args) SWIG_fail;
26024 swig_obj[0] = args;
26025 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, SWIG_POINTER_DISOWN | 0 );
26026 if (!SWIG_IsOK(res1)) {
26027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItem" "', expected argument " "1"" of type '" "wxListItem *""'");
26028 }
26029 arg1 = reinterpret_cast< wxListItem * >(argp1);
26030 {
26031 PyThreadState* __tstate = wxPyBeginAllowThreads();
26032 delete arg1;
26033
26034 wxPyEndAllowThreads(__tstate);
26035 if (PyErr_Occurred()) SWIG_fail;
26036 }
26037 resultobj = SWIG_Py_Void();
26038 return resultobj;
26039 fail:
26040 return NULL;
26041 }
26042
26043
26044 SWIGINTERN PyObject *_wrap_ListItem_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26045 PyObject *resultobj = 0;
26046 wxListItem *arg1 = (wxListItem *) 0 ;
26047 void *argp1 = 0 ;
26048 int res1 = 0 ;
26049 PyObject *swig_obj[1] ;
26050
26051 if (!args) SWIG_fail;
26052 swig_obj[0] = args;
26053 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26054 if (!SWIG_IsOK(res1)) {
26055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_Clear" "', expected argument " "1"" of type '" "wxListItem *""'");
26056 }
26057 arg1 = reinterpret_cast< wxListItem * >(argp1);
26058 {
26059 PyThreadState* __tstate = wxPyBeginAllowThreads();
26060 (arg1)->Clear();
26061 wxPyEndAllowThreads(__tstate);
26062 if (PyErr_Occurred()) SWIG_fail;
26063 }
26064 resultobj = SWIG_Py_Void();
26065 return resultobj;
26066 fail:
26067 return NULL;
26068 }
26069
26070
26071 SWIGINTERN PyObject *_wrap_ListItem_ClearAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26072 PyObject *resultobj = 0;
26073 wxListItem *arg1 = (wxListItem *) 0 ;
26074 void *argp1 = 0 ;
26075 int res1 = 0 ;
26076 PyObject *swig_obj[1] ;
26077
26078 if (!args) SWIG_fail;
26079 swig_obj[0] = args;
26080 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26081 if (!SWIG_IsOK(res1)) {
26082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_ClearAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26083 }
26084 arg1 = reinterpret_cast< wxListItem * >(argp1);
26085 {
26086 PyThreadState* __tstate = wxPyBeginAllowThreads();
26087 (arg1)->ClearAttributes();
26088 wxPyEndAllowThreads(__tstate);
26089 if (PyErr_Occurred()) SWIG_fail;
26090 }
26091 resultobj = SWIG_Py_Void();
26092 return resultobj;
26093 fail:
26094 return NULL;
26095 }
26096
26097
26098 SWIGINTERN PyObject *_wrap_ListItem_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26099 PyObject *resultobj = 0;
26100 wxListItem *arg1 = (wxListItem *) 0 ;
26101 long arg2 ;
26102 void *argp1 = 0 ;
26103 int res1 = 0 ;
26104 long val2 ;
26105 int ecode2 = 0 ;
26106 PyObject * obj0 = 0 ;
26107 PyObject * obj1 = 0 ;
26108 char * kwnames[] = {
26109 (char *) "self",(char *) "mask", NULL
26110 };
26111
26112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
26113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26114 if (!SWIG_IsOK(res1)) {
26115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26116 }
26117 arg1 = reinterpret_cast< wxListItem * >(argp1);
26118 ecode2 = SWIG_AsVal_long(obj1, &val2);
26119 if (!SWIG_IsOK(ecode2)) {
26120 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetMask" "', expected argument " "2"" of type '" "long""'");
26121 }
26122 arg2 = static_cast< long >(val2);
26123 {
26124 PyThreadState* __tstate = wxPyBeginAllowThreads();
26125 (arg1)->SetMask(arg2);
26126 wxPyEndAllowThreads(__tstate);
26127 if (PyErr_Occurred()) SWIG_fail;
26128 }
26129 resultobj = SWIG_Py_Void();
26130 return resultobj;
26131 fail:
26132 return NULL;
26133 }
26134
26135
26136 SWIGINTERN PyObject *_wrap_ListItem_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26137 PyObject *resultobj = 0;
26138 wxListItem *arg1 = (wxListItem *) 0 ;
26139 long arg2 ;
26140 void *argp1 = 0 ;
26141 int res1 = 0 ;
26142 long val2 ;
26143 int ecode2 = 0 ;
26144 PyObject * obj0 = 0 ;
26145 PyObject * obj1 = 0 ;
26146 char * kwnames[] = {
26147 (char *) "self",(char *) "id", NULL
26148 };
26149
26150 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
26151 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26152 if (!SWIG_IsOK(res1)) {
26153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26154 }
26155 arg1 = reinterpret_cast< wxListItem * >(argp1);
26156 ecode2 = SWIG_AsVal_long(obj1, &val2);
26157 if (!SWIG_IsOK(ecode2)) {
26158 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetId" "', expected argument " "2"" of type '" "long""'");
26159 }
26160 arg2 = static_cast< long >(val2);
26161 {
26162 PyThreadState* __tstate = wxPyBeginAllowThreads();
26163 (arg1)->SetId(arg2);
26164 wxPyEndAllowThreads(__tstate);
26165 if (PyErr_Occurred()) SWIG_fail;
26166 }
26167 resultobj = SWIG_Py_Void();
26168 return resultobj;
26169 fail:
26170 return NULL;
26171 }
26172
26173
26174 SWIGINTERN PyObject *_wrap_ListItem_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26175 PyObject *resultobj = 0;
26176 wxListItem *arg1 = (wxListItem *) 0 ;
26177 int arg2 ;
26178 void *argp1 = 0 ;
26179 int res1 = 0 ;
26180 int val2 ;
26181 int ecode2 = 0 ;
26182 PyObject * obj0 = 0 ;
26183 PyObject * obj1 = 0 ;
26184 char * kwnames[] = {
26185 (char *) "self",(char *) "col", NULL
26186 };
26187
26188 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
26189 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26190 if (!SWIG_IsOK(res1)) {
26191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26192 }
26193 arg1 = reinterpret_cast< wxListItem * >(argp1);
26194 ecode2 = SWIG_AsVal_int(obj1, &val2);
26195 if (!SWIG_IsOK(ecode2)) {
26196 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetColumn" "', expected argument " "2"" of type '" "int""'");
26197 }
26198 arg2 = static_cast< int >(val2);
26199 {
26200 PyThreadState* __tstate = wxPyBeginAllowThreads();
26201 (arg1)->SetColumn(arg2);
26202 wxPyEndAllowThreads(__tstate);
26203 if (PyErr_Occurred()) SWIG_fail;
26204 }
26205 resultobj = SWIG_Py_Void();
26206 return resultobj;
26207 fail:
26208 return NULL;
26209 }
26210
26211
26212 SWIGINTERN PyObject *_wrap_ListItem_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26213 PyObject *resultobj = 0;
26214 wxListItem *arg1 = (wxListItem *) 0 ;
26215 long arg2 ;
26216 void *argp1 = 0 ;
26217 int res1 = 0 ;
26218 long val2 ;
26219 int ecode2 = 0 ;
26220 PyObject * obj0 = 0 ;
26221 PyObject * obj1 = 0 ;
26222 char * kwnames[] = {
26223 (char *) "self",(char *) "state", NULL
26224 };
26225
26226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) SWIG_fail;
26227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26228 if (!SWIG_IsOK(res1)) {
26229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26230 }
26231 arg1 = reinterpret_cast< wxListItem * >(argp1);
26232 ecode2 = SWIG_AsVal_long(obj1, &val2);
26233 if (!SWIG_IsOK(ecode2)) {
26234 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetState" "', expected argument " "2"" of type '" "long""'");
26235 }
26236 arg2 = static_cast< long >(val2);
26237 {
26238 PyThreadState* __tstate = wxPyBeginAllowThreads();
26239 (arg1)->SetState(arg2);
26240 wxPyEndAllowThreads(__tstate);
26241 if (PyErr_Occurred()) SWIG_fail;
26242 }
26243 resultobj = SWIG_Py_Void();
26244 return resultobj;
26245 fail:
26246 return NULL;
26247 }
26248
26249
26250 SWIGINTERN PyObject *_wrap_ListItem_SetStateMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26251 PyObject *resultobj = 0;
26252 wxListItem *arg1 = (wxListItem *) 0 ;
26253 long arg2 ;
26254 void *argp1 = 0 ;
26255 int res1 = 0 ;
26256 long val2 ;
26257 int ecode2 = 0 ;
26258 PyObject * obj0 = 0 ;
26259 PyObject * obj1 = 0 ;
26260 char * kwnames[] = {
26261 (char *) "self",(char *) "stateMask", NULL
26262 };
26263
26264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) SWIG_fail;
26265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26266 if (!SWIG_IsOK(res1)) {
26267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetStateMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26268 }
26269 arg1 = reinterpret_cast< wxListItem * >(argp1);
26270 ecode2 = SWIG_AsVal_long(obj1, &val2);
26271 if (!SWIG_IsOK(ecode2)) {
26272 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetStateMask" "', expected argument " "2"" of type '" "long""'");
26273 }
26274 arg2 = static_cast< long >(val2);
26275 {
26276 PyThreadState* __tstate = wxPyBeginAllowThreads();
26277 (arg1)->SetStateMask(arg2);
26278 wxPyEndAllowThreads(__tstate);
26279 if (PyErr_Occurred()) SWIG_fail;
26280 }
26281 resultobj = SWIG_Py_Void();
26282 return resultobj;
26283 fail:
26284 return NULL;
26285 }
26286
26287
26288 SWIGINTERN PyObject *_wrap_ListItem_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26289 PyObject *resultobj = 0;
26290 wxListItem *arg1 = (wxListItem *) 0 ;
26291 wxString *arg2 = 0 ;
26292 void *argp1 = 0 ;
26293 int res1 = 0 ;
26294 bool temp2 = false ;
26295 PyObject * obj0 = 0 ;
26296 PyObject * obj1 = 0 ;
26297 char * kwnames[] = {
26298 (char *) "self",(char *) "text", NULL
26299 };
26300
26301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) SWIG_fail;
26302 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26303 if (!SWIG_IsOK(res1)) {
26304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26305 }
26306 arg1 = reinterpret_cast< wxListItem * >(argp1);
26307 {
26308 arg2 = wxString_in_helper(obj1);
26309 if (arg2 == NULL) SWIG_fail;
26310 temp2 = true;
26311 }
26312 {
26313 PyThreadState* __tstate = wxPyBeginAllowThreads();
26314 (arg1)->SetText((wxString const &)*arg2);
26315 wxPyEndAllowThreads(__tstate);
26316 if (PyErr_Occurred()) SWIG_fail;
26317 }
26318 resultobj = SWIG_Py_Void();
26319 {
26320 if (temp2)
26321 delete arg2;
26322 }
26323 return resultobj;
26324 fail:
26325 {
26326 if (temp2)
26327 delete arg2;
26328 }
26329 return NULL;
26330 }
26331
26332
26333 SWIGINTERN PyObject *_wrap_ListItem_SetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26334 PyObject *resultobj = 0;
26335 wxListItem *arg1 = (wxListItem *) 0 ;
26336 int arg2 ;
26337 void *argp1 = 0 ;
26338 int res1 = 0 ;
26339 int val2 ;
26340 int ecode2 = 0 ;
26341 PyObject * obj0 = 0 ;
26342 PyObject * obj1 = 0 ;
26343 char * kwnames[] = {
26344 (char *) "self",(char *) "image", NULL
26345 };
26346
26347 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) SWIG_fail;
26348 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26349 if (!SWIG_IsOK(res1)) {
26350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26351 }
26352 arg1 = reinterpret_cast< wxListItem * >(argp1);
26353 ecode2 = SWIG_AsVal_int(obj1, &val2);
26354 if (!SWIG_IsOK(ecode2)) {
26355 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetImage" "', expected argument " "2"" of type '" "int""'");
26356 }
26357 arg2 = static_cast< int >(val2);
26358 {
26359 PyThreadState* __tstate = wxPyBeginAllowThreads();
26360 (arg1)->SetImage(arg2);
26361 wxPyEndAllowThreads(__tstate);
26362 if (PyErr_Occurred()) SWIG_fail;
26363 }
26364 resultobj = SWIG_Py_Void();
26365 return resultobj;
26366 fail:
26367 return NULL;
26368 }
26369
26370
26371 SWIGINTERN PyObject *_wrap_ListItem_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26372 PyObject *resultobj = 0;
26373 wxListItem *arg1 = (wxListItem *) 0 ;
26374 long arg2 ;
26375 void *argp1 = 0 ;
26376 int res1 = 0 ;
26377 long val2 ;
26378 int ecode2 = 0 ;
26379 PyObject * obj0 = 0 ;
26380 PyObject * obj1 = 0 ;
26381 char * kwnames[] = {
26382 (char *) "self",(char *) "data", NULL
26383 };
26384
26385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
26386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26387 if (!SWIG_IsOK(res1)) {
26388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26389 }
26390 arg1 = reinterpret_cast< wxListItem * >(argp1);
26391 ecode2 = SWIG_AsVal_long(obj1, &val2);
26392 if (!SWIG_IsOK(ecode2)) {
26393 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetData" "', expected argument " "2"" of type '" "long""'");
26394 }
26395 arg2 = static_cast< long >(val2);
26396 {
26397 PyThreadState* __tstate = wxPyBeginAllowThreads();
26398 (arg1)->SetData(arg2);
26399 wxPyEndAllowThreads(__tstate);
26400 if (PyErr_Occurred()) SWIG_fail;
26401 }
26402 resultobj = SWIG_Py_Void();
26403 return resultobj;
26404 fail:
26405 return NULL;
26406 }
26407
26408
26409 SWIGINTERN PyObject *_wrap_ListItem_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26410 PyObject *resultobj = 0;
26411 wxListItem *arg1 = (wxListItem *) 0 ;
26412 int arg2 ;
26413 void *argp1 = 0 ;
26414 int res1 = 0 ;
26415 int val2 ;
26416 int ecode2 = 0 ;
26417 PyObject * obj0 = 0 ;
26418 PyObject * obj1 = 0 ;
26419 char * kwnames[] = {
26420 (char *) "self",(char *) "width", NULL
26421 };
26422
26423 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
26424 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26425 if (!SWIG_IsOK(res1)) {
26426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
26427 }
26428 arg1 = reinterpret_cast< wxListItem * >(argp1);
26429 ecode2 = SWIG_AsVal_int(obj1, &val2);
26430 if (!SWIG_IsOK(ecode2)) {
26431 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetWidth" "', expected argument " "2"" of type '" "int""'");
26432 }
26433 arg2 = static_cast< int >(val2);
26434 {
26435 PyThreadState* __tstate = wxPyBeginAllowThreads();
26436 (arg1)->SetWidth(arg2);
26437 wxPyEndAllowThreads(__tstate);
26438 if (PyErr_Occurred()) SWIG_fail;
26439 }
26440 resultobj = SWIG_Py_Void();
26441 return resultobj;
26442 fail:
26443 return NULL;
26444 }
26445
26446
26447 SWIGINTERN PyObject *_wrap_ListItem_SetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26448 PyObject *resultobj = 0;
26449 wxListItem *arg1 = (wxListItem *) 0 ;
26450 wxListColumnFormat arg2 ;
26451 void *argp1 = 0 ;
26452 int res1 = 0 ;
26453 int val2 ;
26454 int ecode2 = 0 ;
26455 PyObject * obj0 = 0 ;
26456 PyObject * obj1 = 0 ;
26457 char * kwnames[] = {
26458 (char *) "self",(char *) "align", NULL
26459 };
26460
26461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) SWIG_fail;
26462 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26463 if (!SWIG_IsOK(res1)) {
26464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
26465 }
26466 arg1 = reinterpret_cast< wxListItem * >(argp1);
26467 ecode2 = SWIG_AsVal_int(obj1, &val2);
26468 if (!SWIG_IsOK(ecode2)) {
26469 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetAlign" "', expected argument " "2"" of type '" "wxListColumnFormat""'");
26470 }
26471 arg2 = static_cast< wxListColumnFormat >(val2);
26472 {
26473 PyThreadState* __tstate = wxPyBeginAllowThreads();
26474 (arg1)->SetAlign(arg2);
26475 wxPyEndAllowThreads(__tstate);
26476 if (PyErr_Occurred()) SWIG_fail;
26477 }
26478 resultobj = SWIG_Py_Void();
26479 return resultobj;
26480 fail:
26481 return NULL;
26482 }
26483
26484
26485 SWIGINTERN PyObject *_wrap_ListItem_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26486 PyObject *resultobj = 0;
26487 wxListItem *arg1 = (wxListItem *) 0 ;
26488 wxColour *arg2 = 0 ;
26489 void *argp1 = 0 ;
26490 int res1 = 0 ;
26491 wxColour temp2 ;
26492 PyObject * obj0 = 0 ;
26493 PyObject * obj1 = 0 ;
26494 char * kwnames[] = {
26495 (char *) "self",(char *) "colText", NULL
26496 };
26497
26498 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
26499 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26500 if (!SWIG_IsOK(res1)) {
26501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetTextColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26502 }
26503 arg1 = reinterpret_cast< wxListItem * >(argp1);
26504 {
26505 arg2 = &temp2;
26506 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26507 }
26508 {
26509 PyThreadState* __tstate = wxPyBeginAllowThreads();
26510 (arg1)->SetTextColour((wxColour const &)*arg2);
26511 wxPyEndAllowThreads(__tstate);
26512 if (PyErr_Occurred()) SWIG_fail;
26513 }
26514 resultobj = SWIG_Py_Void();
26515 return resultobj;
26516 fail:
26517 return NULL;
26518 }
26519
26520
26521 SWIGINTERN PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26522 PyObject *resultobj = 0;
26523 wxListItem *arg1 = (wxListItem *) 0 ;
26524 wxColour *arg2 = 0 ;
26525 void *argp1 = 0 ;
26526 int res1 = 0 ;
26527 wxColour temp2 ;
26528 PyObject * obj0 = 0 ;
26529 PyObject * obj1 = 0 ;
26530 char * kwnames[] = {
26531 (char *) "self",(char *) "colBack", NULL
26532 };
26533
26534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
26535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26536 if (!SWIG_IsOK(res1)) {
26537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26538 }
26539 arg1 = reinterpret_cast< wxListItem * >(argp1);
26540 {
26541 arg2 = &temp2;
26542 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26543 }
26544 {
26545 PyThreadState* __tstate = wxPyBeginAllowThreads();
26546 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
26547 wxPyEndAllowThreads(__tstate);
26548 if (PyErr_Occurred()) SWIG_fail;
26549 }
26550 resultobj = SWIG_Py_Void();
26551 return resultobj;
26552 fail:
26553 return NULL;
26554 }
26555
26556
26557 SWIGINTERN PyObject *_wrap_ListItem_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26558 PyObject *resultobj = 0;
26559 wxListItem *arg1 = (wxListItem *) 0 ;
26560 wxFont *arg2 = 0 ;
26561 void *argp1 = 0 ;
26562 int res1 = 0 ;
26563 void *argp2 = 0 ;
26564 int res2 = 0 ;
26565 PyObject * obj0 = 0 ;
26566 PyObject * obj1 = 0 ;
26567 char * kwnames[] = {
26568 (char *) "self",(char *) "font", NULL
26569 };
26570
26571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26573 if (!SWIG_IsOK(res1)) {
26574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetFont" "', expected argument " "1"" of type '" "wxListItem *""'");
26575 }
26576 arg1 = reinterpret_cast< wxListItem * >(argp1);
26577 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26578 if (!SWIG_IsOK(res2)) {
26579 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26580 }
26581 if (!argp2) {
26582 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26583 }
26584 arg2 = reinterpret_cast< wxFont * >(argp2);
26585 {
26586 PyThreadState* __tstate = wxPyBeginAllowThreads();
26587 (arg1)->SetFont((wxFont const &)*arg2);
26588 wxPyEndAllowThreads(__tstate);
26589 if (PyErr_Occurred()) SWIG_fail;
26590 }
26591 resultobj = SWIG_Py_Void();
26592 return resultobj;
26593 fail:
26594 return NULL;
26595 }
26596
26597
26598 SWIGINTERN PyObject *_wrap_ListItem_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26599 PyObject *resultobj = 0;
26600 wxListItem *arg1 = (wxListItem *) 0 ;
26601 long result;
26602 void *argp1 = 0 ;
26603 int res1 = 0 ;
26604 PyObject *swig_obj[1] ;
26605
26606 if (!args) SWIG_fail;
26607 swig_obj[0] = args;
26608 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26609 if (!SWIG_IsOK(res1)) {
26610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26611 }
26612 arg1 = reinterpret_cast< wxListItem * >(argp1);
26613 {
26614 PyThreadState* __tstate = wxPyBeginAllowThreads();
26615 result = (long)(arg1)->GetMask();
26616 wxPyEndAllowThreads(__tstate);
26617 if (PyErr_Occurred()) SWIG_fail;
26618 }
26619 resultobj = SWIG_From_long(static_cast< long >(result));
26620 return resultobj;
26621 fail:
26622 return NULL;
26623 }
26624
26625
26626 SWIGINTERN PyObject *_wrap_ListItem_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26627 PyObject *resultobj = 0;
26628 wxListItem *arg1 = (wxListItem *) 0 ;
26629 long result;
26630 void *argp1 = 0 ;
26631 int res1 = 0 ;
26632 PyObject *swig_obj[1] ;
26633
26634 if (!args) SWIG_fail;
26635 swig_obj[0] = args;
26636 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26637 if (!SWIG_IsOK(res1)) {
26638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26639 }
26640 arg1 = reinterpret_cast< wxListItem * >(argp1);
26641 {
26642 PyThreadState* __tstate = wxPyBeginAllowThreads();
26643 result = (long)(arg1)->GetId();
26644 wxPyEndAllowThreads(__tstate);
26645 if (PyErr_Occurred()) SWIG_fail;
26646 }
26647 resultobj = SWIG_From_long(static_cast< long >(result));
26648 return resultobj;
26649 fail:
26650 return NULL;
26651 }
26652
26653
26654 SWIGINTERN PyObject *_wrap_ListItem_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26655 PyObject *resultobj = 0;
26656 wxListItem *arg1 = (wxListItem *) 0 ;
26657 int result;
26658 void *argp1 = 0 ;
26659 int res1 = 0 ;
26660 PyObject *swig_obj[1] ;
26661
26662 if (!args) SWIG_fail;
26663 swig_obj[0] = args;
26664 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26665 if (!SWIG_IsOK(res1)) {
26666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26667 }
26668 arg1 = reinterpret_cast< wxListItem * >(argp1);
26669 {
26670 PyThreadState* __tstate = wxPyBeginAllowThreads();
26671 result = (int)(arg1)->GetColumn();
26672 wxPyEndAllowThreads(__tstate);
26673 if (PyErr_Occurred()) SWIG_fail;
26674 }
26675 resultobj = SWIG_From_int(static_cast< int >(result));
26676 return resultobj;
26677 fail:
26678 return NULL;
26679 }
26680
26681
26682 SWIGINTERN PyObject *_wrap_ListItem_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26683 PyObject *resultobj = 0;
26684 wxListItem *arg1 = (wxListItem *) 0 ;
26685 long result;
26686 void *argp1 = 0 ;
26687 int res1 = 0 ;
26688 PyObject *swig_obj[1] ;
26689
26690 if (!args) SWIG_fail;
26691 swig_obj[0] = args;
26692 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26693 if (!SWIG_IsOK(res1)) {
26694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26695 }
26696 arg1 = reinterpret_cast< wxListItem * >(argp1);
26697 {
26698 PyThreadState* __tstate = wxPyBeginAllowThreads();
26699 result = (long)(arg1)->GetState();
26700 wxPyEndAllowThreads(__tstate);
26701 if (PyErr_Occurred()) SWIG_fail;
26702 }
26703 resultobj = SWIG_From_long(static_cast< long >(result));
26704 return resultobj;
26705 fail:
26706 return NULL;
26707 }
26708
26709
26710 SWIGINTERN PyObject *_wrap_ListItem_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26711 PyObject *resultobj = 0;
26712 wxListItem *arg1 = (wxListItem *) 0 ;
26713 wxString *result = 0 ;
26714 void *argp1 = 0 ;
26715 int res1 = 0 ;
26716 PyObject *swig_obj[1] ;
26717
26718 if (!args) SWIG_fail;
26719 swig_obj[0] = args;
26720 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26721 if (!SWIG_IsOK(res1)) {
26722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26723 }
26724 arg1 = reinterpret_cast< wxListItem * >(argp1);
26725 {
26726 PyThreadState* __tstate = wxPyBeginAllowThreads();
26727 {
26728 wxString const &_result_ref = (arg1)->GetText();
26729 result = (wxString *) &_result_ref;
26730 }
26731 wxPyEndAllowThreads(__tstate);
26732 if (PyErr_Occurred()) SWIG_fail;
26733 }
26734 {
26735 #if wxUSE_UNICODE
26736 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
26737 #else
26738 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
26739 #endif
26740 }
26741 return resultobj;
26742 fail:
26743 return NULL;
26744 }
26745
26746
26747 SWIGINTERN PyObject *_wrap_ListItem_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26748 PyObject *resultobj = 0;
26749 wxListItem *arg1 = (wxListItem *) 0 ;
26750 int result;
26751 void *argp1 = 0 ;
26752 int res1 = 0 ;
26753 PyObject *swig_obj[1] ;
26754
26755 if (!args) SWIG_fail;
26756 swig_obj[0] = args;
26757 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26758 if (!SWIG_IsOK(res1)) {
26759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26760 }
26761 arg1 = reinterpret_cast< wxListItem * >(argp1);
26762 {
26763 PyThreadState* __tstate = wxPyBeginAllowThreads();
26764 result = (int)(arg1)->GetImage();
26765 wxPyEndAllowThreads(__tstate);
26766 if (PyErr_Occurred()) SWIG_fail;
26767 }
26768 resultobj = SWIG_From_int(static_cast< int >(result));
26769 return resultobj;
26770 fail:
26771 return NULL;
26772 }
26773
26774
26775 SWIGINTERN PyObject *_wrap_ListItem_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26776 PyObject *resultobj = 0;
26777 wxListItem *arg1 = (wxListItem *) 0 ;
26778 long result;
26779 void *argp1 = 0 ;
26780 int res1 = 0 ;
26781 PyObject *swig_obj[1] ;
26782
26783 if (!args) SWIG_fail;
26784 swig_obj[0] = args;
26785 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26786 if (!SWIG_IsOK(res1)) {
26787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26788 }
26789 arg1 = reinterpret_cast< wxListItem * >(argp1);
26790 {
26791 PyThreadState* __tstate = wxPyBeginAllowThreads();
26792 result = (long)(arg1)->GetData();
26793 wxPyEndAllowThreads(__tstate);
26794 if (PyErr_Occurred()) SWIG_fail;
26795 }
26796 resultobj = SWIG_From_long(static_cast< long >(result));
26797 return resultobj;
26798 fail:
26799 return NULL;
26800 }
26801
26802
26803 SWIGINTERN PyObject *_wrap_ListItem_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26804 PyObject *resultobj = 0;
26805 wxListItem *arg1 = (wxListItem *) 0 ;
26806 int result;
26807 void *argp1 = 0 ;
26808 int res1 = 0 ;
26809 PyObject *swig_obj[1] ;
26810
26811 if (!args) SWIG_fail;
26812 swig_obj[0] = args;
26813 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26814 if (!SWIG_IsOK(res1)) {
26815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
26816 }
26817 arg1 = reinterpret_cast< wxListItem * >(argp1);
26818 {
26819 PyThreadState* __tstate = wxPyBeginAllowThreads();
26820 result = (int)(arg1)->GetWidth();
26821 wxPyEndAllowThreads(__tstate);
26822 if (PyErr_Occurred()) SWIG_fail;
26823 }
26824 resultobj = SWIG_From_int(static_cast< int >(result));
26825 return resultobj;
26826 fail:
26827 return NULL;
26828 }
26829
26830
26831 SWIGINTERN PyObject *_wrap_ListItem_GetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26832 PyObject *resultobj = 0;
26833 wxListItem *arg1 = (wxListItem *) 0 ;
26834 wxListColumnFormat result;
26835 void *argp1 = 0 ;
26836 int res1 = 0 ;
26837 PyObject *swig_obj[1] ;
26838
26839 if (!args) SWIG_fail;
26840 swig_obj[0] = args;
26841 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26842 if (!SWIG_IsOK(res1)) {
26843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
26844 }
26845 arg1 = reinterpret_cast< wxListItem * >(argp1);
26846 {
26847 PyThreadState* __tstate = wxPyBeginAllowThreads();
26848 result = (wxListColumnFormat)(arg1)->GetAlign();
26849 wxPyEndAllowThreads(__tstate);
26850 if (PyErr_Occurred()) SWIG_fail;
26851 }
26852 resultobj = SWIG_From_int(static_cast< int >(result));
26853 return resultobj;
26854 fail:
26855 return NULL;
26856 }
26857
26858
26859 SWIGINTERN PyObject *_wrap_ListItem_GetAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26860 PyObject *resultobj = 0;
26861 wxListItem *arg1 = (wxListItem *) 0 ;
26862 wxListItemAttr *result = 0 ;
26863 void *argp1 = 0 ;
26864 int res1 = 0 ;
26865 PyObject *swig_obj[1] ;
26866
26867 if (!args) SWIG_fail;
26868 swig_obj[0] = args;
26869 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26870 if (!SWIG_IsOK(res1)) {
26871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26872 }
26873 arg1 = reinterpret_cast< wxListItem * >(argp1);
26874 {
26875 PyThreadState* __tstate = wxPyBeginAllowThreads();
26876 result = (wxListItemAttr *)(arg1)->GetAttributes();
26877 wxPyEndAllowThreads(__tstate);
26878 if (PyErr_Occurred()) SWIG_fail;
26879 }
26880 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26881 return resultobj;
26882 fail:
26883 return NULL;
26884 }
26885
26886
26887 SWIGINTERN PyObject *_wrap_ListItem_HasAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26888 PyObject *resultobj = 0;
26889 wxListItem *arg1 = (wxListItem *) 0 ;
26890 bool result;
26891 void *argp1 = 0 ;
26892 int res1 = 0 ;
26893 PyObject *swig_obj[1] ;
26894
26895 if (!args) SWIG_fail;
26896 swig_obj[0] = args;
26897 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26898 if (!SWIG_IsOK(res1)) {
26899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_HasAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26900 }
26901 arg1 = reinterpret_cast< wxListItem * >(argp1);
26902 {
26903 PyThreadState* __tstate = wxPyBeginAllowThreads();
26904 result = (bool)(arg1)->HasAttributes();
26905 wxPyEndAllowThreads(__tstate);
26906 if (PyErr_Occurred()) SWIG_fail;
26907 }
26908 {
26909 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26910 }
26911 return resultobj;
26912 fail:
26913 return NULL;
26914 }
26915
26916
26917 SWIGINTERN PyObject *_wrap_ListItem_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26918 PyObject *resultobj = 0;
26919 wxListItem *arg1 = (wxListItem *) 0 ;
26920 wxColour result;
26921 void *argp1 = 0 ;
26922 int res1 = 0 ;
26923 PyObject *swig_obj[1] ;
26924
26925 if (!args) SWIG_fail;
26926 swig_obj[0] = args;
26927 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26928 if (!SWIG_IsOK(res1)) {
26929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetTextColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
26930 }
26931 arg1 = reinterpret_cast< wxListItem * >(argp1);
26932 {
26933 PyThreadState* __tstate = wxPyBeginAllowThreads();
26934 result = ((wxListItem const *)arg1)->GetTextColour();
26935 wxPyEndAllowThreads(__tstate);
26936 if (PyErr_Occurred()) SWIG_fail;
26937 }
26938 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26939 return resultobj;
26940 fail:
26941 return NULL;
26942 }
26943
26944
26945 SWIGINTERN PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26946 PyObject *resultobj = 0;
26947 wxListItem *arg1 = (wxListItem *) 0 ;
26948 wxColour result;
26949 void *argp1 = 0 ;
26950 int res1 = 0 ;
26951 PyObject *swig_obj[1] ;
26952
26953 if (!args) SWIG_fail;
26954 swig_obj[0] = args;
26955 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26956 if (!SWIG_IsOK(res1)) {
26957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
26958 }
26959 arg1 = reinterpret_cast< wxListItem * >(argp1);
26960 {
26961 PyThreadState* __tstate = wxPyBeginAllowThreads();
26962 result = ((wxListItem const *)arg1)->GetBackgroundColour();
26963 wxPyEndAllowThreads(__tstate);
26964 if (PyErr_Occurred()) SWIG_fail;
26965 }
26966 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26967 return resultobj;
26968 fail:
26969 return NULL;
26970 }
26971
26972
26973 SWIGINTERN PyObject *_wrap_ListItem_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26974 PyObject *resultobj = 0;
26975 wxListItem *arg1 = (wxListItem *) 0 ;
26976 wxFont result;
26977 void *argp1 = 0 ;
26978 int res1 = 0 ;
26979 PyObject *swig_obj[1] ;
26980
26981 if (!args) SWIG_fail;
26982 swig_obj[0] = args;
26983 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26984 if (!SWIG_IsOK(res1)) {
26985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetFont" "', expected argument " "1"" of type '" "wxListItem const *""'");
26986 }
26987 arg1 = reinterpret_cast< wxListItem * >(argp1);
26988 {
26989 PyThreadState* __tstate = wxPyBeginAllowThreads();
26990 result = ((wxListItem const *)arg1)->GetFont();
26991 wxPyEndAllowThreads(__tstate);
26992 if (PyErr_Occurred()) SWIG_fail;
26993 }
26994 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
26995 return resultobj;
26996 fail:
26997 return NULL;
26998 }
26999
27000
27001 SWIGINTERN PyObject *_wrap_ListItem_m_mask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27002 PyObject *resultobj = 0;
27003 wxListItem *arg1 = (wxListItem *) 0 ;
27004 long arg2 ;
27005 void *argp1 = 0 ;
27006 int res1 = 0 ;
27007 long val2 ;
27008 int ecode2 = 0 ;
27009 PyObject *swig_obj[2] ;
27010
27011 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_mask_set",2,2,swig_obj)) SWIG_fail;
27012 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27013 if (!SWIG_IsOK(res1)) {
27014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27015 }
27016 arg1 = reinterpret_cast< wxListItem * >(argp1);
27017 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27018 if (!SWIG_IsOK(ecode2)) {
27019 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_mask_set" "', expected argument " "2"" of type '" "long""'");
27020 }
27021 arg2 = static_cast< long >(val2);
27022 if (arg1) (arg1)->m_mask = arg2;
27023
27024 resultobj = SWIG_Py_Void();
27025 return resultobj;
27026 fail:
27027 return NULL;
27028 }
27029
27030
27031 SWIGINTERN PyObject *_wrap_ListItem_m_mask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27032 PyObject *resultobj = 0;
27033 wxListItem *arg1 = (wxListItem *) 0 ;
27034 long result;
27035 void *argp1 = 0 ;
27036 int res1 = 0 ;
27037 PyObject *swig_obj[1] ;
27038
27039 if (!args) SWIG_fail;
27040 swig_obj[0] = args;
27041 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27042 if (!SWIG_IsOK(res1)) {
27043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27044 }
27045 arg1 = reinterpret_cast< wxListItem * >(argp1);
27046 result = (long) ((arg1)->m_mask);
27047 resultobj = SWIG_From_long(static_cast< long >(result));
27048 return resultobj;
27049 fail:
27050 return NULL;
27051 }
27052
27053
27054 SWIGINTERN PyObject *_wrap_ListItem_m_itemId_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27055 PyObject *resultobj = 0;
27056 wxListItem *arg1 = (wxListItem *) 0 ;
27057 long arg2 ;
27058 void *argp1 = 0 ;
27059 int res1 = 0 ;
27060 long val2 ;
27061 int ecode2 = 0 ;
27062 PyObject *swig_obj[2] ;
27063
27064 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_itemId_set",2,2,swig_obj)) SWIG_fail;
27065 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27066 if (!SWIG_IsOK(res1)) {
27067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27068 }
27069 arg1 = reinterpret_cast< wxListItem * >(argp1);
27070 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27071 if (!SWIG_IsOK(ecode2)) {
27072 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_itemId_set" "', expected argument " "2"" of type '" "long""'");
27073 }
27074 arg2 = static_cast< long >(val2);
27075 if (arg1) (arg1)->m_itemId = arg2;
27076
27077 resultobj = SWIG_Py_Void();
27078 return resultobj;
27079 fail:
27080 return NULL;
27081 }
27082
27083
27084 SWIGINTERN PyObject *_wrap_ListItem_m_itemId_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27085 PyObject *resultobj = 0;
27086 wxListItem *arg1 = (wxListItem *) 0 ;
27087 long result;
27088 void *argp1 = 0 ;
27089 int res1 = 0 ;
27090 PyObject *swig_obj[1] ;
27091
27092 if (!args) SWIG_fail;
27093 swig_obj[0] = args;
27094 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27095 if (!SWIG_IsOK(res1)) {
27096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27097 }
27098 arg1 = reinterpret_cast< wxListItem * >(argp1);
27099 result = (long) ((arg1)->m_itemId);
27100 resultobj = SWIG_From_long(static_cast< long >(result));
27101 return resultobj;
27102 fail:
27103 return NULL;
27104 }
27105
27106
27107 SWIGINTERN PyObject *_wrap_ListItem_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27108 PyObject *resultobj = 0;
27109 wxListItem *arg1 = (wxListItem *) 0 ;
27110 int arg2 ;
27111 void *argp1 = 0 ;
27112 int res1 = 0 ;
27113 int val2 ;
27114 int ecode2 = 0 ;
27115 PyObject *swig_obj[2] ;
27116
27117 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_col_set",2,2,swig_obj)) SWIG_fail;
27118 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27119 if (!SWIG_IsOK(res1)) {
27120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27121 }
27122 arg1 = reinterpret_cast< wxListItem * >(argp1);
27123 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27124 if (!SWIG_IsOK(ecode2)) {
27125 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_col_set" "', expected argument " "2"" of type '" "int""'");
27126 }
27127 arg2 = static_cast< int >(val2);
27128 if (arg1) (arg1)->m_col = arg2;
27129
27130 resultobj = SWIG_Py_Void();
27131 return resultobj;
27132 fail:
27133 return NULL;
27134 }
27135
27136
27137 SWIGINTERN PyObject *_wrap_ListItem_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27138 PyObject *resultobj = 0;
27139 wxListItem *arg1 = (wxListItem *) 0 ;
27140 int result;
27141 void *argp1 = 0 ;
27142 int res1 = 0 ;
27143 PyObject *swig_obj[1] ;
27144
27145 if (!args) SWIG_fail;
27146 swig_obj[0] = args;
27147 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27148 if (!SWIG_IsOK(res1)) {
27149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27150 }
27151 arg1 = reinterpret_cast< wxListItem * >(argp1);
27152 result = (int) ((arg1)->m_col);
27153 resultobj = SWIG_From_int(static_cast< int >(result));
27154 return resultobj;
27155 fail:
27156 return NULL;
27157 }
27158
27159
27160 SWIGINTERN PyObject *_wrap_ListItem_m_state_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27161 PyObject *resultobj = 0;
27162 wxListItem *arg1 = (wxListItem *) 0 ;
27163 long arg2 ;
27164 void *argp1 = 0 ;
27165 int res1 = 0 ;
27166 long val2 ;
27167 int ecode2 = 0 ;
27168 PyObject *swig_obj[2] ;
27169
27170 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_state_set",2,2,swig_obj)) SWIG_fail;
27171 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27172 if (!SWIG_IsOK(res1)) {
27173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27174 }
27175 arg1 = reinterpret_cast< wxListItem * >(argp1);
27176 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27177 if (!SWIG_IsOK(ecode2)) {
27178 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_state_set" "', expected argument " "2"" of type '" "long""'");
27179 }
27180 arg2 = static_cast< long >(val2);
27181 if (arg1) (arg1)->m_state = arg2;
27182
27183 resultobj = SWIG_Py_Void();
27184 return resultobj;
27185 fail:
27186 return NULL;
27187 }
27188
27189
27190 SWIGINTERN PyObject *_wrap_ListItem_m_state_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27191 PyObject *resultobj = 0;
27192 wxListItem *arg1 = (wxListItem *) 0 ;
27193 long result;
27194 void *argp1 = 0 ;
27195 int res1 = 0 ;
27196 PyObject *swig_obj[1] ;
27197
27198 if (!args) SWIG_fail;
27199 swig_obj[0] = args;
27200 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27201 if (!SWIG_IsOK(res1)) {
27202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27203 }
27204 arg1 = reinterpret_cast< wxListItem * >(argp1);
27205 result = (long) ((arg1)->m_state);
27206 resultobj = SWIG_From_long(static_cast< long >(result));
27207 return resultobj;
27208 fail:
27209 return NULL;
27210 }
27211
27212
27213 SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27214 PyObject *resultobj = 0;
27215 wxListItem *arg1 = (wxListItem *) 0 ;
27216 long arg2 ;
27217 void *argp1 = 0 ;
27218 int res1 = 0 ;
27219 long val2 ;
27220 int ecode2 = 0 ;
27221 PyObject *swig_obj[2] ;
27222
27223 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_stateMask_set",2,2,swig_obj)) SWIG_fail;
27224 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27225 if (!SWIG_IsOK(res1)) {
27226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27227 }
27228 arg1 = reinterpret_cast< wxListItem * >(argp1);
27229 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27230 if (!SWIG_IsOK(ecode2)) {
27231 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_stateMask_set" "', expected argument " "2"" of type '" "long""'");
27232 }
27233 arg2 = static_cast< long >(val2);
27234 if (arg1) (arg1)->m_stateMask = arg2;
27235
27236 resultobj = SWIG_Py_Void();
27237 return resultobj;
27238 fail:
27239 return NULL;
27240 }
27241
27242
27243 SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27244 PyObject *resultobj = 0;
27245 wxListItem *arg1 = (wxListItem *) 0 ;
27246 long result;
27247 void *argp1 = 0 ;
27248 int res1 = 0 ;
27249 PyObject *swig_obj[1] ;
27250
27251 if (!args) SWIG_fail;
27252 swig_obj[0] = args;
27253 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27254 if (!SWIG_IsOK(res1)) {
27255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27256 }
27257 arg1 = reinterpret_cast< wxListItem * >(argp1);
27258 result = (long) ((arg1)->m_stateMask);
27259 resultobj = SWIG_From_long(static_cast< long >(result));
27260 return resultobj;
27261 fail:
27262 return NULL;
27263 }
27264
27265
27266 SWIGINTERN PyObject *_wrap_ListItem_m_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27267 PyObject *resultobj = 0;
27268 wxListItem *arg1 = (wxListItem *) 0 ;
27269 wxString *arg2 = (wxString *) 0 ;
27270 void *argp1 = 0 ;
27271 int res1 = 0 ;
27272 bool temp2 = false ;
27273 PyObject *swig_obj[2] ;
27274
27275 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_text_set",2,2,swig_obj)) SWIG_fail;
27276 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27277 if (!SWIG_IsOK(res1)) {
27278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27279 }
27280 arg1 = reinterpret_cast< wxListItem * >(argp1);
27281 {
27282 arg2 = wxString_in_helper(swig_obj[1]);
27283 if (arg2 == NULL) SWIG_fail;
27284 temp2 = true;
27285 }
27286 if (arg1) (arg1)->m_text = *arg2;
27287
27288 resultobj = SWIG_Py_Void();
27289 {
27290 if (temp2)
27291 delete arg2;
27292 }
27293 return resultobj;
27294 fail:
27295 {
27296 if (temp2)
27297 delete arg2;
27298 }
27299 return NULL;
27300 }
27301
27302
27303 SWIGINTERN PyObject *_wrap_ListItem_m_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27304 PyObject *resultobj = 0;
27305 wxListItem *arg1 = (wxListItem *) 0 ;
27306 wxString *result = 0 ;
27307 void *argp1 = 0 ;
27308 int res1 = 0 ;
27309 PyObject *swig_obj[1] ;
27310
27311 if (!args) SWIG_fail;
27312 swig_obj[0] = args;
27313 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27314 if (!SWIG_IsOK(res1)) {
27315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27316 }
27317 arg1 = reinterpret_cast< wxListItem * >(argp1);
27318 result = (wxString *)& ((arg1)->m_text);
27319 {
27320 #if wxUSE_UNICODE
27321 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27322 #else
27323 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27324 #endif
27325 }
27326 return resultobj;
27327 fail:
27328 return NULL;
27329 }
27330
27331
27332 SWIGINTERN PyObject *_wrap_ListItem_m_image_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27333 PyObject *resultobj = 0;
27334 wxListItem *arg1 = (wxListItem *) 0 ;
27335 int arg2 ;
27336 void *argp1 = 0 ;
27337 int res1 = 0 ;
27338 int val2 ;
27339 int ecode2 = 0 ;
27340 PyObject *swig_obj[2] ;
27341
27342 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_image_set",2,2,swig_obj)) SWIG_fail;
27343 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27344 if (!SWIG_IsOK(res1)) {
27345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27346 }
27347 arg1 = reinterpret_cast< wxListItem * >(argp1);
27348 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27349 if (!SWIG_IsOK(ecode2)) {
27350 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_image_set" "', expected argument " "2"" of type '" "int""'");
27351 }
27352 arg2 = static_cast< int >(val2);
27353 if (arg1) (arg1)->m_image = arg2;
27354
27355 resultobj = SWIG_Py_Void();
27356 return resultobj;
27357 fail:
27358 return NULL;
27359 }
27360
27361
27362 SWIGINTERN PyObject *_wrap_ListItem_m_image_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27363 PyObject *resultobj = 0;
27364 wxListItem *arg1 = (wxListItem *) 0 ;
27365 int result;
27366 void *argp1 = 0 ;
27367 int res1 = 0 ;
27368 PyObject *swig_obj[1] ;
27369
27370 if (!args) SWIG_fail;
27371 swig_obj[0] = args;
27372 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27373 if (!SWIG_IsOK(res1)) {
27374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27375 }
27376 arg1 = reinterpret_cast< wxListItem * >(argp1);
27377 result = (int) ((arg1)->m_image);
27378 resultobj = SWIG_From_int(static_cast< int >(result));
27379 return resultobj;
27380 fail:
27381 return NULL;
27382 }
27383
27384
27385 SWIGINTERN PyObject *_wrap_ListItem_m_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27386 PyObject *resultobj = 0;
27387 wxListItem *arg1 = (wxListItem *) 0 ;
27388 long arg2 ;
27389 void *argp1 = 0 ;
27390 int res1 = 0 ;
27391 long val2 ;
27392 int ecode2 = 0 ;
27393 PyObject *swig_obj[2] ;
27394
27395 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_data_set",2,2,swig_obj)) SWIG_fail;
27396 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27397 if (!SWIG_IsOK(res1)) {
27398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27399 }
27400 arg1 = reinterpret_cast< wxListItem * >(argp1);
27401 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27402 if (!SWIG_IsOK(ecode2)) {
27403 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_data_set" "', expected argument " "2"" of type '" "long""'");
27404 }
27405 arg2 = static_cast< long >(val2);
27406 if (arg1) (arg1)->m_data = arg2;
27407
27408 resultobj = SWIG_Py_Void();
27409 return resultobj;
27410 fail:
27411 return NULL;
27412 }
27413
27414
27415 SWIGINTERN PyObject *_wrap_ListItem_m_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27416 PyObject *resultobj = 0;
27417 wxListItem *arg1 = (wxListItem *) 0 ;
27418 long result;
27419 void *argp1 = 0 ;
27420 int res1 = 0 ;
27421 PyObject *swig_obj[1] ;
27422
27423 if (!args) SWIG_fail;
27424 swig_obj[0] = args;
27425 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27426 if (!SWIG_IsOK(res1)) {
27427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27428 }
27429 arg1 = reinterpret_cast< wxListItem * >(argp1);
27430 result = (long) ((arg1)->m_data);
27431 resultobj = SWIG_From_long(static_cast< long >(result));
27432 return resultobj;
27433 fail:
27434 return NULL;
27435 }
27436
27437
27438 SWIGINTERN PyObject *_wrap_ListItem_m_format_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27439 PyObject *resultobj = 0;
27440 wxListItem *arg1 = (wxListItem *) 0 ;
27441 int arg2 ;
27442 void *argp1 = 0 ;
27443 int res1 = 0 ;
27444 int val2 ;
27445 int ecode2 = 0 ;
27446 PyObject *swig_obj[2] ;
27447
27448 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_format_set",2,2,swig_obj)) SWIG_fail;
27449 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27450 if (!SWIG_IsOK(res1)) {
27451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27452 }
27453 arg1 = reinterpret_cast< wxListItem * >(argp1);
27454 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27455 if (!SWIG_IsOK(ecode2)) {
27456 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_format_set" "', expected argument " "2"" of type '" "int""'");
27457 }
27458 arg2 = static_cast< int >(val2);
27459 if (arg1) (arg1)->m_format = arg2;
27460
27461 resultobj = SWIG_Py_Void();
27462 return resultobj;
27463 fail:
27464 return NULL;
27465 }
27466
27467
27468 SWIGINTERN PyObject *_wrap_ListItem_m_format_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27469 PyObject *resultobj = 0;
27470 wxListItem *arg1 = (wxListItem *) 0 ;
27471 int result;
27472 void *argp1 = 0 ;
27473 int res1 = 0 ;
27474 PyObject *swig_obj[1] ;
27475
27476 if (!args) SWIG_fail;
27477 swig_obj[0] = args;
27478 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27479 if (!SWIG_IsOK(res1)) {
27480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27481 }
27482 arg1 = reinterpret_cast< wxListItem * >(argp1);
27483 result = (int) ((arg1)->m_format);
27484 resultobj = SWIG_From_int(static_cast< int >(result));
27485 return resultobj;
27486 fail:
27487 return NULL;
27488 }
27489
27490
27491 SWIGINTERN PyObject *_wrap_ListItem_m_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27492 PyObject *resultobj = 0;
27493 wxListItem *arg1 = (wxListItem *) 0 ;
27494 int arg2 ;
27495 void *argp1 = 0 ;
27496 int res1 = 0 ;
27497 int val2 ;
27498 int ecode2 = 0 ;
27499 PyObject *swig_obj[2] ;
27500
27501 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_width_set",2,2,swig_obj)) SWIG_fail;
27502 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27503 if (!SWIG_IsOK(res1)) {
27504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27505 }
27506 arg1 = reinterpret_cast< wxListItem * >(argp1);
27507 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27508 if (!SWIG_IsOK(ecode2)) {
27509 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_width_set" "', expected argument " "2"" of type '" "int""'");
27510 }
27511 arg2 = static_cast< int >(val2);
27512 if (arg1) (arg1)->m_width = arg2;
27513
27514 resultobj = SWIG_Py_Void();
27515 return resultobj;
27516 fail:
27517 return NULL;
27518 }
27519
27520
27521 SWIGINTERN PyObject *_wrap_ListItem_m_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27522 PyObject *resultobj = 0;
27523 wxListItem *arg1 = (wxListItem *) 0 ;
27524 int result;
27525 void *argp1 = 0 ;
27526 int res1 = 0 ;
27527 PyObject *swig_obj[1] ;
27528
27529 if (!args) SWIG_fail;
27530 swig_obj[0] = args;
27531 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27532 if (!SWIG_IsOK(res1)) {
27533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27534 }
27535 arg1 = reinterpret_cast< wxListItem * >(argp1);
27536 result = (int) ((arg1)->m_width);
27537 resultobj = SWIG_From_int(static_cast< int >(result));
27538 return resultobj;
27539 fail:
27540 return NULL;
27541 }
27542
27543
27544 SWIGINTERN PyObject *ListItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27545 PyObject *obj;
27546 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27547 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItem, SWIG_NewClientData(obj));
27548 return SWIG_Py_Void();
27549 }
27550
27551 SWIGINTERN PyObject *ListItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27552 return SWIG_Python_InitShadowInstance(args);
27553 }
27554
27555 SWIGINTERN PyObject *_wrap_new_ListEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27556 PyObject *resultobj = 0;
27557 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
27558 int arg2 = (int) 0 ;
27559 wxListEvent *result = 0 ;
27560 int val1 ;
27561 int ecode1 = 0 ;
27562 int val2 ;
27563 int ecode2 = 0 ;
27564 PyObject * obj0 = 0 ;
27565 PyObject * obj1 = 0 ;
27566 char * kwnames[] = {
27567 (char *) "commandType",(char *) "id", NULL
27568 };
27569
27570 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) SWIG_fail;
27571 if (obj0) {
27572 ecode1 = SWIG_AsVal_int(obj0, &val1);
27573 if (!SWIG_IsOK(ecode1)) {
27574 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListEvent" "', expected argument " "1"" of type '" "wxEventType""'");
27575 }
27576 arg1 = static_cast< wxEventType >(val1);
27577 }
27578 if (obj1) {
27579 ecode2 = SWIG_AsVal_int(obj1, &val2);
27580 if (!SWIG_IsOK(ecode2)) {
27581 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListEvent" "', expected argument " "2"" of type '" "int""'");
27582 }
27583 arg2 = static_cast< int >(val2);
27584 }
27585 {
27586 PyThreadState* __tstate = wxPyBeginAllowThreads();
27587 result = (wxListEvent *)new wxListEvent(arg1,arg2);
27588 wxPyEndAllowThreads(__tstate);
27589 if (PyErr_Occurred()) SWIG_fail;
27590 }
27591 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListEvent, SWIG_POINTER_NEW | 0 );
27592 return resultobj;
27593 fail:
27594 return NULL;
27595 }
27596
27597
27598 SWIGINTERN PyObject *_wrap_ListEvent_m_code_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27599 PyObject *resultobj = 0;
27600 wxListEvent *arg1 = (wxListEvent *) 0 ;
27601 int arg2 ;
27602 void *argp1 = 0 ;
27603 int res1 = 0 ;
27604 int val2 ;
27605 int ecode2 = 0 ;
27606 PyObject *swig_obj[2] ;
27607
27608 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_code_set",2,2,swig_obj)) SWIG_fail;
27609 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27610 if (!SWIG_IsOK(res1)) {
27611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27612 }
27613 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27614 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27615 if (!SWIG_IsOK(ecode2)) {
27616 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_code_set" "', expected argument " "2"" of type '" "int""'");
27617 }
27618 arg2 = static_cast< int >(val2);
27619 if (arg1) (arg1)->m_code = arg2;
27620
27621 resultobj = SWIG_Py_Void();
27622 return resultobj;
27623 fail:
27624 return NULL;
27625 }
27626
27627
27628 SWIGINTERN PyObject *_wrap_ListEvent_m_code_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27629 PyObject *resultobj = 0;
27630 wxListEvent *arg1 = (wxListEvent *) 0 ;
27631 int result;
27632 void *argp1 = 0 ;
27633 int res1 = 0 ;
27634 PyObject *swig_obj[1] ;
27635
27636 if (!args) SWIG_fail;
27637 swig_obj[0] = args;
27638 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27639 if (!SWIG_IsOK(res1)) {
27640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27641 }
27642 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27643 result = (int) ((arg1)->m_code);
27644 resultobj = SWIG_From_int(static_cast< int >(result));
27645 return resultobj;
27646 fail:
27647 return NULL;
27648 }
27649
27650
27651 SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27652 PyObject *resultobj = 0;
27653 wxListEvent *arg1 = (wxListEvent *) 0 ;
27654 long arg2 ;
27655 void *argp1 = 0 ;
27656 int res1 = 0 ;
27657 long val2 ;
27658 int ecode2 = 0 ;
27659 PyObject *swig_obj[2] ;
27660
27661 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_oldItemIndex_set",2,2,swig_obj)) SWIG_fail;
27662 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27663 if (!SWIG_IsOK(res1)) {
27664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27665 }
27666 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27667 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27668 if (!SWIG_IsOK(ecode2)) {
27669 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "2"" of type '" "long""'");
27670 }
27671 arg2 = static_cast< long >(val2);
27672 if (arg1) (arg1)->m_oldItemIndex = arg2;
27673
27674 resultobj = SWIG_Py_Void();
27675 return resultobj;
27676 fail:
27677 return NULL;
27678 }
27679
27680
27681 SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27682 PyObject *resultobj = 0;
27683 wxListEvent *arg1 = (wxListEvent *) 0 ;
27684 long result;
27685 void *argp1 = 0 ;
27686 int res1 = 0 ;
27687 PyObject *swig_obj[1] ;
27688
27689 if (!args) SWIG_fail;
27690 swig_obj[0] = args;
27691 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27692 if (!SWIG_IsOK(res1)) {
27693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27694 }
27695 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27696 result = (long) ((arg1)->m_oldItemIndex);
27697 resultobj = SWIG_From_long(static_cast< long >(result));
27698 return resultobj;
27699 fail:
27700 return NULL;
27701 }
27702
27703
27704 SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27705 PyObject *resultobj = 0;
27706 wxListEvent *arg1 = (wxListEvent *) 0 ;
27707 long arg2 ;
27708 void *argp1 = 0 ;
27709 int res1 = 0 ;
27710 long val2 ;
27711 int ecode2 = 0 ;
27712 PyObject *swig_obj[2] ;
27713
27714 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_itemIndex_set",2,2,swig_obj)) SWIG_fail;
27715 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27716 if (!SWIG_IsOK(res1)) {
27717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27718 }
27719 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27720 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27721 if (!SWIG_IsOK(ecode2)) {
27722 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "2"" of type '" "long""'");
27723 }
27724 arg2 = static_cast< long >(val2);
27725 if (arg1) (arg1)->m_itemIndex = arg2;
27726
27727 resultobj = SWIG_Py_Void();
27728 return resultobj;
27729 fail:
27730 return NULL;
27731 }
27732
27733
27734 SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27735 PyObject *resultobj = 0;
27736 wxListEvent *arg1 = (wxListEvent *) 0 ;
27737 long result;
27738 void *argp1 = 0 ;
27739 int res1 = 0 ;
27740 PyObject *swig_obj[1] ;
27741
27742 if (!args) SWIG_fail;
27743 swig_obj[0] = args;
27744 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27745 if (!SWIG_IsOK(res1)) {
27746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27747 }
27748 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27749 result = (long) ((arg1)->m_itemIndex);
27750 resultobj = SWIG_From_long(static_cast< long >(result));
27751 return resultobj;
27752 fail:
27753 return NULL;
27754 }
27755
27756
27757 SWIGINTERN PyObject *_wrap_ListEvent_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27758 PyObject *resultobj = 0;
27759 wxListEvent *arg1 = (wxListEvent *) 0 ;
27760 int arg2 ;
27761 void *argp1 = 0 ;
27762 int res1 = 0 ;
27763 int val2 ;
27764 int ecode2 = 0 ;
27765 PyObject *swig_obj[2] ;
27766
27767 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_col_set",2,2,swig_obj)) SWIG_fail;
27768 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27769 if (!SWIG_IsOK(res1)) {
27770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27771 }
27772 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27773 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27774 if (!SWIG_IsOK(ecode2)) {
27775 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_col_set" "', expected argument " "2"" of type '" "int""'");
27776 }
27777 arg2 = static_cast< int >(val2);
27778 if (arg1) (arg1)->m_col = arg2;
27779
27780 resultobj = SWIG_Py_Void();
27781 return resultobj;
27782 fail:
27783 return NULL;
27784 }
27785
27786
27787 SWIGINTERN PyObject *_wrap_ListEvent_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27788 PyObject *resultobj = 0;
27789 wxListEvent *arg1 = (wxListEvent *) 0 ;
27790 int result;
27791 void *argp1 = 0 ;
27792 int res1 = 0 ;
27793 PyObject *swig_obj[1] ;
27794
27795 if (!args) SWIG_fail;
27796 swig_obj[0] = args;
27797 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27798 if (!SWIG_IsOK(res1)) {
27799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27800 }
27801 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27802 result = (int) ((arg1)->m_col);
27803 resultobj = SWIG_From_int(static_cast< int >(result));
27804 return resultobj;
27805 fail:
27806 return NULL;
27807 }
27808
27809
27810 SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27811 PyObject *resultobj = 0;
27812 wxListEvent *arg1 = (wxListEvent *) 0 ;
27813 wxPoint *arg2 = (wxPoint *) 0 ;
27814 void *argp1 = 0 ;
27815 int res1 = 0 ;
27816 void *argp2 = 0 ;
27817 int res2 = 0 ;
27818 PyObject *swig_obj[2] ;
27819
27820 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_pointDrag_set",2,2,swig_obj)) SWIG_fail;
27821 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27822 if (!SWIG_IsOK(res1)) {
27823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27824 }
27825 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27826 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPoint, 0 | 0 );
27827 if (!SWIG_IsOK(res2)) {
27828 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "2"" of type '" "wxPoint *""'");
27829 }
27830 arg2 = reinterpret_cast< wxPoint * >(argp2);
27831 if (arg1) (arg1)->m_pointDrag = *arg2;
27832
27833 resultobj = SWIG_Py_Void();
27834 return resultobj;
27835 fail:
27836 return NULL;
27837 }
27838
27839
27840 SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27841 PyObject *resultobj = 0;
27842 wxListEvent *arg1 = (wxListEvent *) 0 ;
27843 wxPoint *result = 0 ;
27844 void *argp1 = 0 ;
27845 int res1 = 0 ;
27846 PyObject *swig_obj[1] ;
27847
27848 if (!args) SWIG_fail;
27849 swig_obj[0] = args;
27850 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27851 if (!SWIG_IsOK(res1)) {
27852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27853 }
27854 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27855 result = (wxPoint *)& ((arg1)->m_pointDrag);
27856 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, 0 | 0 );
27857 return resultobj;
27858 fail:
27859 return NULL;
27860 }
27861
27862
27863 SWIGINTERN PyObject *_wrap_ListEvent_m_item_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27864 PyObject *resultobj = 0;
27865 wxListEvent *arg1 = (wxListEvent *) 0 ;
27866 wxListItem *result = 0 ;
27867 void *argp1 = 0 ;
27868 int res1 = 0 ;
27869 PyObject *swig_obj[1] ;
27870
27871 if (!args) SWIG_fail;
27872 swig_obj[0] = args;
27873 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27874 if (!SWIG_IsOK(res1)) {
27875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_item_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27876 }
27877 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27878 result = (wxListItem *)& ((arg1)->m_item);
27879 {
27880 resultobj = wxPyMake_wxObject(result, (bool)0);
27881 }
27882 return resultobj;
27883 fail:
27884 return NULL;
27885 }
27886
27887
27888 SWIGINTERN PyObject *_wrap_ListEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27889 PyObject *resultobj = 0;
27890 wxListEvent *arg1 = (wxListEvent *) 0 ;
27891 int result;
27892 void *argp1 = 0 ;
27893 int res1 = 0 ;
27894 PyObject *swig_obj[1] ;
27895
27896 if (!args) SWIG_fail;
27897 swig_obj[0] = args;
27898 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27899 if (!SWIG_IsOK(res1)) {
27900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxListEvent *""'");
27901 }
27902 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27903 {
27904 PyThreadState* __tstate = wxPyBeginAllowThreads();
27905 result = (int)(arg1)->GetKeyCode();
27906 wxPyEndAllowThreads(__tstate);
27907 if (PyErr_Occurred()) SWIG_fail;
27908 }
27909 resultobj = SWIG_From_int(static_cast< int >(result));
27910 return resultobj;
27911 fail:
27912 return NULL;
27913 }
27914
27915
27916 SWIGINTERN PyObject *_wrap_ListEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27917 PyObject *resultobj = 0;
27918 wxListEvent *arg1 = (wxListEvent *) 0 ;
27919 long result;
27920 void *argp1 = 0 ;
27921 int res1 = 0 ;
27922 PyObject *swig_obj[1] ;
27923
27924 if (!args) SWIG_fail;
27925 swig_obj[0] = args;
27926 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27927 if (!SWIG_IsOK(res1)) {
27928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetIndex" "', expected argument " "1"" of type '" "wxListEvent *""'");
27929 }
27930 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27931 {
27932 PyThreadState* __tstate = wxPyBeginAllowThreads();
27933 result = (long)(arg1)->GetIndex();
27934 wxPyEndAllowThreads(__tstate);
27935 if (PyErr_Occurred()) SWIG_fail;
27936 }
27937 resultobj = SWIG_From_long(static_cast< long >(result));
27938 return resultobj;
27939 fail:
27940 return NULL;
27941 }
27942
27943
27944 SWIGINTERN PyObject *_wrap_ListEvent_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27945 PyObject *resultobj = 0;
27946 wxListEvent *arg1 = (wxListEvent *) 0 ;
27947 int result;
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_GetColumn" "', expected argument " "1"" of type '" "wxListEvent *""'");
27957 }
27958 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27959 {
27960 PyThreadState* __tstate = wxPyBeginAllowThreads();
27961 result = (int)(arg1)->GetColumn();
27962 wxPyEndAllowThreads(__tstate);
27963 if (PyErr_Occurred()) SWIG_fail;
27964 }
27965 resultobj = SWIG_From_int(static_cast< int >(result));
27966 return resultobj;
27967 fail:
27968 return NULL;
27969 }
27970
27971
27972 SWIGINTERN PyObject *_wrap_ListEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27973 PyObject *resultobj = 0;
27974 wxListEvent *arg1 = (wxListEvent *) 0 ;
27975 wxPoint result;
27976 void *argp1 = 0 ;
27977 int res1 = 0 ;
27978 PyObject *swig_obj[1] ;
27979
27980 if (!args) SWIG_fail;
27981 swig_obj[0] = args;
27982 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27983 if (!SWIG_IsOK(res1)) {
27984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetPoint" "', expected argument " "1"" of type '" "wxListEvent *""'");
27985 }
27986 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27987 {
27988 PyThreadState* __tstate = wxPyBeginAllowThreads();
27989 result = (arg1)->GetPoint();
27990 wxPyEndAllowThreads(__tstate);
27991 if (PyErr_Occurred()) SWIG_fail;
27992 }
27993 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
27994 return resultobj;
27995 fail:
27996 return NULL;
27997 }
27998
27999
28000 SWIGINTERN PyObject *_wrap_ListEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28001 PyObject *resultobj = 0;
28002 wxListEvent *arg1 = (wxListEvent *) 0 ;
28003 wxString *result = 0 ;
28004 void *argp1 = 0 ;
28005 int res1 = 0 ;
28006 PyObject *swig_obj[1] ;
28007
28008 if (!args) SWIG_fail;
28009 swig_obj[0] = args;
28010 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28011 if (!SWIG_IsOK(res1)) {
28012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetLabel" "', expected argument " "1"" of type '" "wxListEvent *""'");
28013 }
28014 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28015 {
28016 PyThreadState* __tstate = wxPyBeginAllowThreads();
28017 {
28018 wxString const &_result_ref = (arg1)->GetLabel();
28019 result = (wxString *) &_result_ref;
28020 }
28021 wxPyEndAllowThreads(__tstate);
28022 if (PyErr_Occurred()) SWIG_fail;
28023 }
28024 {
28025 #if wxUSE_UNICODE
28026 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28027 #else
28028 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28029 #endif
28030 }
28031 return resultobj;
28032 fail:
28033 return NULL;
28034 }
28035
28036
28037 SWIGINTERN PyObject *_wrap_ListEvent_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28038 PyObject *resultobj = 0;
28039 wxListEvent *arg1 = (wxListEvent *) 0 ;
28040 wxString *result = 0 ;
28041 void *argp1 = 0 ;
28042 int res1 = 0 ;
28043 PyObject *swig_obj[1] ;
28044
28045 if (!args) SWIG_fail;
28046 swig_obj[0] = args;
28047 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28048 if (!SWIG_IsOK(res1)) {
28049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetText" "', expected argument " "1"" of type '" "wxListEvent *""'");
28050 }
28051 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28052 {
28053 PyThreadState* __tstate = wxPyBeginAllowThreads();
28054 {
28055 wxString const &_result_ref = (arg1)->GetText();
28056 result = (wxString *) &_result_ref;
28057 }
28058 wxPyEndAllowThreads(__tstate);
28059 if (PyErr_Occurred()) SWIG_fail;
28060 }
28061 {
28062 #if wxUSE_UNICODE
28063 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28064 #else
28065 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28066 #endif
28067 }
28068 return resultobj;
28069 fail:
28070 return NULL;
28071 }
28072
28073
28074 SWIGINTERN PyObject *_wrap_ListEvent_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28075 PyObject *resultobj = 0;
28076 wxListEvent *arg1 = (wxListEvent *) 0 ;
28077 int result;
28078 void *argp1 = 0 ;
28079 int res1 = 0 ;
28080 PyObject *swig_obj[1] ;
28081
28082 if (!args) SWIG_fail;
28083 swig_obj[0] = args;
28084 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28085 if (!SWIG_IsOK(res1)) {
28086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetImage" "', expected argument " "1"" of type '" "wxListEvent *""'");
28087 }
28088 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28089 {
28090 PyThreadState* __tstate = wxPyBeginAllowThreads();
28091 result = (int)(arg1)->GetImage();
28092 wxPyEndAllowThreads(__tstate);
28093 if (PyErr_Occurred()) SWIG_fail;
28094 }
28095 resultobj = SWIG_From_int(static_cast< int >(result));
28096 return resultobj;
28097 fail:
28098 return NULL;
28099 }
28100
28101
28102 SWIGINTERN PyObject *_wrap_ListEvent_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28103 PyObject *resultobj = 0;
28104 wxListEvent *arg1 = (wxListEvent *) 0 ;
28105 long result;
28106 void *argp1 = 0 ;
28107 int res1 = 0 ;
28108 PyObject *swig_obj[1] ;
28109
28110 if (!args) SWIG_fail;
28111 swig_obj[0] = args;
28112 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28113 if (!SWIG_IsOK(res1)) {
28114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetData" "', expected argument " "1"" of type '" "wxListEvent *""'");
28115 }
28116 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28117 {
28118 PyThreadState* __tstate = wxPyBeginAllowThreads();
28119 result = (long)(arg1)->GetData();
28120 wxPyEndAllowThreads(__tstate);
28121 if (PyErr_Occurred()) SWIG_fail;
28122 }
28123 resultobj = SWIG_From_long(static_cast< long >(result));
28124 return resultobj;
28125 fail:
28126 return NULL;
28127 }
28128
28129
28130 SWIGINTERN PyObject *_wrap_ListEvent_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28131 PyObject *resultobj = 0;
28132 wxListEvent *arg1 = (wxListEvent *) 0 ;
28133 long result;
28134 void *argp1 = 0 ;
28135 int res1 = 0 ;
28136 PyObject *swig_obj[1] ;
28137
28138 if (!args) SWIG_fail;
28139 swig_obj[0] = args;
28140 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28141 if (!SWIG_IsOK(res1)) {
28142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetMask" "', expected argument " "1"" of type '" "wxListEvent *""'");
28143 }
28144 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28145 {
28146 PyThreadState* __tstate = wxPyBeginAllowThreads();
28147 result = (long)(arg1)->GetMask();
28148 wxPyEndAllowThreads(__tstate);
28149 if (PyErr_Occurred()) SWIG_fail;
28150 }
28151 resultobj = SWIG_From_long(static_cast< long >(result));
28152 return resultobj;
28153 fail:
28154 return NULL;
28155 }
28156
28157
28158 SWIGINTERN PyObject *_wrap_ListEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28159 PyObject *resultobj = 0;
28160 wxListEvent *arg1 = (wxListEvent *) 0 ;
28161 wxListItem *result = 0 ;
28162 void *argp1 = 0 ;
28163 int res1 = 0 ;
28164 PyObject *swig_obj[1] ;
28165
28166 if (!args) SWIG_fail;
28167 swig_obj[0] = args;
28168 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28169 if (!SWIG_IsOK(res1)) {
28170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetItem" "', expected argument " "1"" of type '" "wxListEvent *""'");
28171 }
28172 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28173 {
28174 PyThreadState* __tstate = wxPyBeginAllowThreads();
28175 {
28176 wxListItem const &_result_ref = (arg1)->GetItem();
28177 result = (wxListItem *) &_result_ref;
28178 }
28179 wxPyEndAllowThreads(__tstate);
28180 if (PyErr_Occurred()) SWIG_fail;
28181 }
28182 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, 0 | 0 );
28183 return resultobj;
28184 fail:
28185 return NULL;
28186 }
28187
28188
28189 SWIGINTERN PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28190 PyObject *resultobj = 0;
28191 wxListEvent *arg1 = (wxListEvent *) 0 ;
28192 long result;
28193 void *argp1 = 0 ;
28194 int res1 = 0 ;
28195 PyObject *swig_obj[1] ;
28196
28197 if (!args) SWIG_fail;
28198 swig_obj[0] = args;
28199 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28200 if (!SWIG_IsOK(res1)) {
28201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheFrom" "', expected argument " "1"" of type '" "wxListEvent *""'");
28202 }
28203 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28204 {
28205 PyThreadState* __tstate = wxPyBeginAllowThreads();
28206 result = (long)(arg1)->GetCacheFrom();
28207 wxPyEndAllowThreads(__tstate);
28208 if (PyErr_Occurred()) SWIG_fail;
28209 }
28210 resultobj = SWIG_From_long(static_cast< long >(result));
28211 return resultobj;
28212 fail:
28213 return NULL;
28214 }
28215
28216
28217 SWIGINTERN PyObject *_wrap_ListEvent_GetCacheTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28218 PyObject *resultobj = 0;
28219 wxListEvent *arg1 = (wxListEvent *) 0 ;
28220 long result;
28221 void *argp1 = 0 ;
28222 int res1 = 0 ;
28223 PyObject *swig_obj[1] ;
28224
28225 if (!args) SWIG_fail;
28226 swig_obj[0] = args;
28227 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28228 if (!SWIG_IsOK(res1)) {
28229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheTo" "', expected argument " "1"" of type '" "wxListEvent *""'");
28230 }
28231 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28232 {
28233 PyThreadState* __tstate = wxPyBeginAllowThreads();
28234 result = (long)(arg1)->GetCacheTo();
28235 wxPyEndAllowThreads(__tstate);
28236 if (PyErr_Occurred()) SWIG_fail;
28237 }
28238 resultobj = SWIG_From_long(static_cast< long >(result));
28239 return resultobj;
28240 fail:
28241 return NULL;
28242 }
28243
28244
28245 SWIGINTERN PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28246 PyObject *resultobj = 0;
28247 wxListEvent *arg1 = (wxListEvent *) 0 ;
28248 bool result;
28249 void *argp1 = 0 ;
28250 int res1 = 0 ;
28251 PyObject *swig_obj[1] ;
28252
28253 if (!args) SWIG_fail;
28254 swig_obj[0] = args;
28255 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28256 if (!SWIG_IsOK(res1)) {
28257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxListEvent const *""'");
28258 }
28259 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28260 {
28261 PyThreadState* __tstate = wxPyBeginAllowThreads();
28262 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
28263 wxPyEndAllowThreads(__tstate);
28264 if (PyErr_Occurred()) SWIG_fail;
28265 }
28266 {
28267 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28268 }
28269 return resultobj;
28270 fail:
28271 return NULL;
28272 }
28273
28274
28275 SWIGINTERN PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28276 PyObject *resultobj = 0;
28277 wxListEvent *arg1 = (wxListEvent *) 0 ;
28278 bool arg2 ;
28279 void *argp1 = 0 ;
28280 int res1 = 0 ;
28281 bool val2 ;
28282 int ecode2 = 0 ;
28283 PyObject * obj0 = 0 ;
28284 PyObject * obj1 = 0 ;
28285 char * kwnames[] = {
28286 (char *) "self",(char *) "editCancelled", NULL
28287 };
28288
28289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
28290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28291 if (!SWIG_IsOK(res1)) {
28292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxListEvent *""'");
28293 }
28294 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28295 ecode2 = SWIG_AsVal_bool(obj1, &val2);
28296 if (!SWIG_IsOK(ecode2)) {
28297 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
28298 }
28299 arg2 = static_cast< bool >(val2);
28300 {
28301 PyThreadState* __tstate = wxPyBeginAllowThreads();
28302 (arg1)->SetEditCanceled(arg2);
28303 wxPyEndAllowThreads(__tstate);
28304 if (PyErr_Occurred()) SWIG_fail;
28305 }
28306 resultobj = SWIG_Py_Void();
28307 return resultobj;
28308 fail:
28309 return NULL;
28310 }
28311
28312
28313 SWIGINTERN PyObject *ListEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28314 PyObject *obj;
28315 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28316 SWIG_TypeNewClientData(SWIGTYPE_p_wxListEvent, SWIG_NewClientData(obj));
28317 return SWIG_Py_Void();
28318 }
28319
28320 SWIGINTERN PyObject *ListEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28321 return SWIG_Python_InitShadowInstance(args);
28322 }
28323
28324 SWIGINTERN PyObject *_wrap_new_ListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28325 PyObject *resultobj = 0;
28326 wxWindow *arg1 = (wxWindow *) 0 ;
28327 int arg2 = (int) -1 ;
28328 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28329 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28330 wxSize const &arg4_defvalue = wxDefaultSize ;
28331 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28332 long arg5 = (long) wxLC_ICON ;
28333 wxValidator const &arg6_defvalue = wxDefaultValidator ;
28334 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
28335 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
28336 wxString *arg7 = (wxString *) &arg7_defvalue ;
28337 wxPyListCtrl *result = 0 ;
28338 void *argp1 = 0 ;
28339 int res1 = 0 ;
28340 int val2 ;
28341 int ecode2 = 0 ;
28342 wxPoint temp3 ;
28343 wxSize temp4 ;
28344 long val5 ;
28345 int ecode5 = 0 ;
28346 void *argp6 = 0 ;
28347 int res6 = 0 ;
28348 bool temp7 = false ;
28349 PyObject * obj0 = 0 ;
28350 PyObject * obj1 = 0 ;
28351 PyObject * obj2 = 0 ;
28352 PyObject * obj3 = 0 ;
28353 PyObject * obj4 = 0 ;
28354 PyObject * obj5 = 0 ;
28355 PyObject * obj6 = 0 ;
28356 char * kwnames[] = {
28357 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28358 };
28359
28360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28361 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28362 if (!SWIG_IsOK(res1)) {
28363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
28364 }
28365 arg1 = reinterpret_cast< wxWindow * >(argp1);
28366 if (obj1) {
28367 ecode2 = SWIG_AsVal_int(obj1, &val2);
28368 if (!SWIG_IsOK(ecode2)) {
28369 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListCtrl" "', expected argument " "2"" of type '" "int""'");
28370 }
28371 arg2 = static_cast< int >(val2);
28372 }
28373 if (obj2) {
28374 {
28375 arg3 = &temp3;
28376 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28377 }
28378 }
28379 if (obj3) {
28380 {
28381 arg4 = &temp4;
28382 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
28383 }
28384 }
28385 if (obj4) {
28386 ecode5 = SWIG_AsVal_long(obj4, &val5);
28387 if (!SWIG_IsOK(ecode5)) {
28388 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListCtrl" "', expected argument " "5"" of type '" "long""'");
28389 }
28390 arg5 = static_cast< long >(val5);
28391 }
28392 if (obj5) {
28393 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
28394 if (!SWIG_IsOK(res6)) {
28395 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
28396 }
28397 if (!argp6) {
28398 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
28399 }
28400 arg6 = reinterpret_cast< wxValidator * >(argp6);
28401 }
28402 if (obj6) {
28403 {
28404 arg7 = wxString_in_helper(obj6);
28405 if (arg7 == NULL) SWIG_fail;
28406 temp7 = true;
28407 }
28408 }
28409 {
28410 if (!wxPyCheckForApp()) SWIG_fail;
28411 PyThreadState* __tstate = wxPyBeginAllowThreads();
28412 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
28413 wxPyEndAllowThreads(__tstate);
28414 if (PyErr_Occurred()) SWIG_fail;
28415 }
28416 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_NEW | 0 );
28417 {
28418 if (temp7)
28419 delete arg7;
28420 }
28421 return resultobj;
28422 fail:
28423 {
28424 if (temp7)
28425 delete arg7;
28426 }
28427 return NULL;
28428 }
28429
28430
28431 SWIGINTERN PyObject *_wrap_new_PreListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28432 PyObject *resultobj = 0;
28433 wxPyListCtrl *result = 0 ;
28434
28435 if (!SWIG_Python_UnpackTuple(args,"new_PreListCtrl",0,0,0)) SWIG_fail;
28436 {
28437 if (!wxPyCheckForApp()) SWIG_fail;
28438 PyThreadState* __tstate = wxPyBeginAllowThreads();
28439 result = (wxPyListCtrl *)new wxPyListCtrl();
28440 wxPyEndAllowThreads(__tstate);
28441 if (PyErr_Occurred()) SWIG_fail;
28442 }
28443 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_OWN | 0 );
28444 return resultobj;
28445 fail:
28446 return NULL;
28447 }
28448
28449
28450 SWIGINTERN PyObject *_wrap_ListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28451 PyObject *resultobj = 0;
28452 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28453 wxWindow *arg2 = (wxWindow *) 0 ;
28454 int arg3 = (int) -1 ;
28455 wxPoint const &arg4_defvalue = wxDefaultPosition ;
28456 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
28457 wxSize const &arg5_defvalue = wxDefaultSize ;
28458 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
28459 long arg6 = (long) wxLC_ICON ;
28460 wxValidator const &arg7_defvalue = wxDefaultValidator ;
28461 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
28462 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
28463 wxString *arg8 = (wxString *) &arg8_defvalue ;
28464 bool result;
28465 void *argp1 = 0 ;
28466 int res1 = 0 ;
28467 void *argp2 = 0 ;
28468 int res2 = 0 ;
28469 int val3 ;
28470 int ecode3 = 0 ;
28471 wxPoint temp4 ;
28472 wxSize temp5 ;
28473 long val6 ;
28474 int ecode6 = 0 ;
28475 void *argp7 = 0 ;
28476 int res7 = 0 ;
28477 bool temp8 = false ;
28478 PyObject * obj0 = 0 ;
28479 PyObject * obj1 = 0 ;
28480 PyObject * obj2 = 0 ;
28481 PyObject * obj3 = 0 ;
28482 PyObject * obj4 = 0 ;
28483 PyObject * obj5 = 0 ;
28484 PyObject * obj6 = 0 ;
28485 PyObject * obj7 = 0 ;
28486 char * kwnames[] = {
28487 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28488 };
28489
28490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28492 if (!SWIG_IsOK(res1)) {
28493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Create" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28494 }
28495 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28496 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28497 if (!SWIG_IsOK(res2)) {
28498 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
28499 }
28500 arg2 = reinterpret_cast< wxWindow * >(argp2);
28501 if (obj2) {
28502 ecode3 = SWIG_AsVal_int(obj2, &val3);
28503 if (!SWIG_IsOK(ecode3)) {
28504 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
28505 }
28506 arg3 = static_cast< int >(val3);
28507 }
28508 if (obj3) {
28509 {
28510 arg4 = &temp4;
28511 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
28512 }
28513 }
28514 if (obj4) {
28515 {
28516 arg5 = &temp5;
28517 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
28518 }
28519 }
28520 if (obj5) {
28521 ecode6 = SWIG_AsVal_long(obj5, &val6);
28522 if (!SWIG_IsOK(ecode6)) {
28523 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
28524 }
28525 arg6 = static_cast< long >(val6);
28526 }
28527 if (obj6) {
28528 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
28529 if (!SWIG_IsOK(res7)) {
28530 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
28531 }
28532 if (!argp7) {
28533 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
28534 }
28535 arg7 = reinterpret_cast< wxValidator * >(argp7);
28536 }
28537 if (obj7) {
28538 {
28539 arg8 = wxString_in_helper(obj7);
28540 if (arg8 == NULL) SWIG_fail;
28541 temp8 = true;
28542 }
28543 }
28544 {
28545 PyThreadState* __tstate = wxPyBeginAllowThreads();
28546 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
28547 wxPyEndAllowThreads(__tstate);
28548 if (PyErr_Occurred()) SWIG_fail;
28549 }
28550 {
28551 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28552 }
28553 {
28554 if (temp8)
28555 delete arg8;
28556 }
28557 return resultobj;
28558 fail:
28559 {
28560 if (temp8)
28561 delete arg8;
28562 }
28563 return NULL;
28564 }
28565
28566
28567 SWIGINTERN PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28568 PyObject *resultobj = 0;
28569 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28570 PyObject *arg2 = (PyObject *) 0 ;
28571 PyObject *arg3 = (PyObject *) 0 ;
28572 void *argp1 = 0 ;
28573 int res1 = 0 ;
28574 PyObject * obj0 = 0 ;
28575 PyObject * obj1 = 0 ;
28576 PyObject * obj2 = 0 ;
28577 char * kwnames[] = {
28578 (char *) "self",(char *) "self",(char *) "_class", NULL
28579 };
28580
28581 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28582 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28583 if (!SWIG_IsOK(res1)) {
28584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28585 }
28586 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28587 arg2 = obj1;
28588 arg3 = obj2;
28589 {
28590 PyThreadState* __tstate = wxPyBeginAllowThreads();
28591 (arg1)->_setCallbackInfo(arg2,arg3);
28592 wxPyEndAllowThreads(__tstate);
28593 if (PyErr_Occurred()) SWIG_fail;
28594 }
28595 resultobj = SWIG_Py_Void();
28596 return resultobj;
28597 fail:
28598 return NULL;
28599 }
28600
28601
28602 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28603 PyObject *resultobj = 0;
28604 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28605 int arg2 ;
28606 wxListItem *result = 0 ;
28607 void *argp1 = 0 ;
28608 int res1 = 0 ;
28609 int val2 ;
28610 int ecode2 = 0 ;
28611 PyObject * obj0 = 0 ;
28612 PyObject * obj1 = 0 ;
28613 char * kwnames[] = {
28614 (char *) "self",(char *) "col", NULL
28615 };
28616
28617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
28618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28619 if (!SWIG_IsOK(res1)) {
28620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28621 }
28622 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28623 ecode2 = SWIG_AsVal_int(obj1, &val2);
28624 if (!SWIG_IsOK(ecode2)) {
28625 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumn" "', expected argument " "2"" of type '" "int""'");
28626 }
28627 arg2 = static_cast< int >(val2);
28628 {
28629 PyThreadState* __tstate = wxPyBeginAllowThreads();
28630 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
28631 wxPyEndAllowThreads(__tstate);
28632 if (PyErr_Occurred()) SWIG_fail;
28633 }
28634 {
28635 resultobj = wxPyMake_wxObject(result, (bool)0);
28636 }
28637 return resultobj;
28638 fail:
28639 return NULL;
28640 }
28641
28642
28643 SWIGINTERN PyObject *_wrap_ListCtrl_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28644 PyObject *resultobj = 0;
28645 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28646 int arg2 ;
28647 wxListItem *arg3 = 0 ;
28648 bool result;
28649 void *argp1 = 0 ;
28650 int res1 = 0 ;
28651 int val2 ;
28652 int ecode2 = 0 ;
28653 void *argp3 = 0 ;
28654 int res3 = 0 ;
28655 PyObject * obj0 = 0 ;
28656 PyObject * obj1 = 0 ;
28657 PyObject * obj2 = 0 ;
28658 char * kwnames[] = {
28659 (char *) "self",(char *) "col",(char *) "item", NULL
28660 };
28661
28662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",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_SetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28666 }
28667 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28668 ecode2 = SWIG_AsVal_int(obj1, &val2);
28669 if (!SWIG_IsOK(ecode2)) {
28670 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumn" "', expected argument " "2"" of type '" "int""'");
28671 }
28672 arg2 = static_cast< int >(val2);
28673 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
28674 if (!SWIG_IsOK(res3)) {
28675 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
28676 }
28677 if (!argp3) {
28678 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
28679 }
28680 arg3 = reinterpret_cast< wxListItem * >(argp3);
28681 {
28682 PyThreadState* __tstate = wxPyBeginAllowThreads();
28683 result = (bool)(arg1)->SetColumn(arg2,*arg3);
28684 wxPyEndAllowThreads(__tstate);
28685 if (PyErr_Occurred()) SWIG_fail;
28686 }
28687 {
28688 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28689 }
28690 return resultobj;
28691 fail:
28692 return NULL;
28693 }
28694
28695
28696 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28697 PyObject *resultobj = 0;
28698 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28699 int arg2 ;
28700 int result;
28701 void *argp1 = 0 ;
28702 int res1 = 0 ;
28703 int val2 ;
28704 int ecode2 = 0 ;
28705 PyObject * obj0 = 0 ;
28706 PyObject * obj1 = 0 ;
28707 char * kwnames[] = {
28708 (char *) "self",(char *) "col", NULL
28709 };
28710
28711 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) SWIG_fail;
28712 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28713 if (!SWIG_IsOK(res1)) {
28714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28715 }
28716 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28717 ecode2 = SWIG_AsVal_int(obj1, &val2);
28718 if (!SWIG_IsOK(ecode2)) {
28719 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "2"" of type '" "int""'");
28720 }
28721 arg2 = static_cast< int >(val2);
28722 {
28723 PyThreadState* __tstate = wxPyBeginAllowThreads();
28724 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
28725 wxPyEndAllowThreads(__tstate);
28726 if (PyErr_Occurred()) SWIG_fail;
28727 }
28728 resultobj = SWIG_From_int(static_cast< int >(result));
28729 return resultobj;
28730 fail:
28731 return NULL;
28732 }
28733
28734
28735 SWIGINTERN PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28736 PyObject *resultobj = 0;
28737 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28738 int arg2 ;
28739 int arg3 ;
28740 bool result;
28741 void *argp1 = 0 ;
28742 int res1 = 0 ;
28743 int val2 ;
28744 int ecode2 = 0 ;
28745 int val3 ;
28746 int ecode3 = 0 ;
28747 PyObject * obj0 = 0 ;
28748 PyObject * obj1 = 0 ;
28749 PyObject * obj2 = 0 ;
28750 char * kwnames[] = {
28751 (char *) "self",(char *) "col",(char *) "width", NULL
28752 };
28753
28754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28756 if (!SWIG_IsOK(res1)) {
28757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28758 }
28759 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28760 ecode2 = SWIG_AsVal_int(obj1, &val2);
28761 if (!SWIG_IsOK(ecode2)) {
28762 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "2"" of type '" "int""'");
28763 }
28764 arg2 = static_cast< int >(val2);
28765 ecode3 = SWIG_AsVal_int(obj2, &val3);
28766 if (!SWIG_IsOK(ecode3)) {
28767 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "3"" of type '" "int""'");
28768 }
28769 arg3 = static_cast< int >(val3);
28770 {
28771 PyThreadState* __tstate = wxPyBeginAllowThreads();
28772 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
28773 wxPyEndAllowThreads(__tstate);
28774 if (PyErr_Occurred()) SWIG_fail;
28775 }
28776 {
28777 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28778 }
28779 return resultobj;
28780 fail:
28781 return NULL;
28782 }
28783
28784
28785 SWIGINTERN PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28786 PyObject *resultobj = 0;
28787 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28788 int result;
28789 void *argp1 = 0 ;
28790 int res1 = 0 ;
28791 PyObject *swig_obj[1] ;
28792
28793 if (!args) SWIG_fail;
28794 swig_obj[0] = args;
28795 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28796 if (!SWIG_IsOK(res1)) {
28797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetCountPerPage" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28798 }
28799 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28800 {
28801 PyThreadState* __tstate = wxPyBeginAllowThreads();
28802 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
28803 wxPyEndAllowThreads(__tstate);
28804 if (PyErr_Occurred()) SWIG_fail;
28805 }
28806 resultobj = SWIG_From_int(static_cast< int >(result));
28807 return resultobj;
28808 fail:
28809 return NULL;
28810 }
28811
28812
28813 SWIGINTERN PyObject *_wrap_ListCtrl_GetViewRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28814 PyObject *resultobj = 0;
28815 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28816 wxRect result;
28817 void *argp1 = 0 ;
28818 int res1 = 0 ;
28819 PyObject *swig_obj[1] ;
28820
28821 if (!args) SWIG_fail;
28822 swig_obj[0] = args;
28823 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28824 if (!SWIG_IsOK(res1)) {
28825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetViewRect" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28826 }
28827 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28828 {
28829 PyThreadState* __tstate = wxPyBeginAllowThreads();
28830 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
28831 wxPyEndAllowThreads(__tstate);
28832 if (PyErr_Occurred()) SWIG_fail;
28833 }
28834 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
28835 return resultobj;
28836 fail:
28837 return NULL;
28838 }
28839
28840
28841 SWIGINTERN PyObject *_wrap_ListCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28842 PyObject *resultobj = 0;
28843 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28844 wxTextCtrl *result = 0 ;
28845 void *argp1 = 0 ;
28846 int res1 = 0 ;
28847 PyObject *swig_obj[1] ;
28848
28849 if (!args) SWIG_fail;
28850 swig_obj[0] = args;
28851 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28852 if (!SWIG_IsOK(res1)) {
28853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28854 }
28855 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28856 {
28857 PyThreadState* __tstate = wxPyBeginAllowThreads();
28858 result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl();
28859 wxPyEndAllowThreads(__tstate);
28860 if (PyErr_Occurred()) SWIG_fail;
28861 }
28862 {
28863 resultobj = wxPyMake_wxObject(result, 0);
28864 }
28865 return resultobj;
28866 fail:
28867 return NULL;
28868 }
28869
28870
28871 SWIGINTERN PyObject *_wrap_ListCtrl_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28872 PyObject *resultobj = 0;
28873 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28874 long arg2 ;
28875 int arg3 = (int) 0 ;
28876 wxListItem *result = 0 ;
28877 void *argp1 = 0 ;
28878 int res1 = 0 ;
28879 long val2 ;
28880 int ecode2 = 0 ;
28881 int val3 ;
28882 int ecode3 = 0 ;
28883 PyObject * obj0 = 0 ;
28884 PyObject * obj1 = 0 ;
28885 PyObject * obj2 = 0 ;
28886 char * kwnames[] = {
28887 (char *) "self",(char *) "itemId",(char *) "col", NULL
28888 };
28889
28890 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28891 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28892 if (!SWIG_IsOK(res1)) {
28893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28894 }
28895 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28896 ecode2 = SWIG_AsVal_long(obj1, &val2);
28897 if (!SWIG_IsOK(ecode2)) {
28898 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItem" "', expected argument " "2"" of type '" "long""'");
28899 }
28900 arg2 = static_cast< long >(val2);
28901 if (obj2) {
28902 ecode3 = SWIG_AsVal_int(obj2, &val3);
28903 if (!SWIG_IsOK(ecode3)) {
28904 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItem" "', expected argument " "3"" of type '" "int""'");
28905 }
28906 arg3 = static_cast< int >(val3);
28907 }
28908 {
28909 PyThreadState* __tstate = wxPyBeginAllowThreads();
28910 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
28911 wxPyEndAllowThreads(__tstate);
28912 if (PyErr_Occurred()) SWIG_fail;
28913 }
28914 {
28915 resultobj = wxPyMake_wxObject(result, (bool)0);
28916 }
28917 return resultobj;
28918 fail:
28919 return NULL;
28920 }
28921
28922
28923 SWIGINTERN PyObject *_wrap_ListCtrl_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28924 PyObject *resultobj = 0;
28925 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28926 wxListItem *arg2 = 0 ;
28927 bool result;
28928 void *argp1 = 0 ;
28929 int res1 = 0 ;
28930 void *argp2 = 0 ;
28931 int res2 = 0 ;
28932 PyObject * obj0 = 0 ;
28933 PyObject * obj1 = 0 ;
28934 char * kwnames[] = {
28935 (char *) "self",(char *) "info", NULL
28936 };
28937
28938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
28939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28940 if (!SWIG_IsOK(res1)) {
28941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28942 }
28943 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28944 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
28945 if (!SWIG_IsOK(res2)) {
28946 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
28947 }
28948 if (!argp2) {
28949 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
28950 }
28951 arg2 = reinterpret_cast< wxListItem * >(argp2);
28952 {
28953 PyThreadState* __tstate = wxPyBeginAllowThreads();
28954 result = (bool)(arg1)->SetItem(*arg2);
28955 wxPyEndAllowThreads(__tstate);
28956 if (PyErr_Occurred()) SWIG_fail;
28957 }
28958 {
28959 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28960 }
28961 return resultobj;
28962 fail:
28963 return NULL;
28964 }
28965
28966
28967 SWIGINTERN PyObject *_wrap_ListCtrl_SetStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28968 PyObject *resultobj = 0;
28969 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28970 long arg2 ;
28971 int arg3 ;
28972 wxString *arg4 = 0 ;
28973 int arg5 = (int) -1 ;
28974 long result;
28975 void *argp1 = 0 ;
28976 int res1 = 0 ;
28977 long val2 ;
28978 int ecode2 = 0 ;
28979 int val3 ;
28980 int ecode3 = 0 ;
28981 bool temp4 = false ;
28982 int val5 ;
28983 int ecode5 = 0 ;
28984 PyObject * obj0 = 0 ;
28985 PyObject * obj1 = 0 ;
28986 PyObject * obj2 = 0 ;
28987 PyObject * obj3 = 0 ;
28988 PyObject * obj4 = 0 ;
28989 char * kwnames[] = {
28990 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
28991 };
28992
28993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28995 if (!SWIG_IsOK(res1)) {
28996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28997 }
28998 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28999 ecode2 = SWIG_AsVal_long(obj1, &val2);
29000 if (!SWIG_IsOK(ecode2)) {
29001 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetStringItem" "', expected argument " "2"" of type '" "long""'");
29002 }
29003 arg2 = static_cast< long >(val2);
29004 ecode3 = SWIG_AsVal_int(obj2, &val3);
29005 if (!SWIG_IsOK(ecode3)) {
29006 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetStringItem" "', expected argument " "3"" of type '" "int""'");
29007 }
29008 arg3 = static_cast< int >(val3);
29009 {
29010 arg4 = wxString_in_helper(obj3);
29011 if (arg4 == NULL) SWIG_fail;
29012 temp4 = true;
29013 }
29014 if (obj4) {
29015 ecode5 = SWIG_AsVal_int(obj4, &val5);
29016 if (!SWIG_IsOK(ecode5)) {
29017 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_SetStringItem" "', expected argument " "5"" of type '" "int""'");
29018 }
29019 arg5 = static_cast< int >(val5);
29020 }
29021 {
29022 PyThreadState* __tstate = wxPyBeginAllowThreads();
29023 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
29024 wxPyEndAllowThreads(__tstate);
29025 if (PyErr_Occurred()) SWIG_fail;
29026 }
29027 resultobj = SWIG_From_long(static_cast< long >(result));
29028 {
29029 if (temp4)
29030 delete arg4;
29031 }
29032 return resultobj;
29033 fail:
29034 {
29035 if (temp4)
29036 delete arg4;
29037 }
29038 return NULL;
29039 }
29040
29041
29042 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29043 PyObject *resultobj = 0;
29044 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29045 long arg2 ;
29046 long arg3 ;
29047 int result;
29048 void *argp1 = 0 ;
29049 int res1 = 0 ;
29050 long val2 ;
29051 int ecode2 = 0 ;
29052 long val3 ;
29053 int ecode3 = 0 ;
29054 PyObject * obj0 = 0 ;
29055 PyObject * obj1 = 0 ;
29056 PyObject * obj2 = 0 ;
29057 char * kwnames[] = {
29058 (char *) "self",(char *) "item",(char *) "stateMask", NULL
29059 };
29060
29061 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29062 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29063 if (!SWIG_IsOK(res1)) {
29064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29065 }
29066 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29067 ecode2 = SWIG_AsVal_long(obj1, &val2);
29068 if (!SWIG_IsOK(ecode2)) {
29069 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemState" "', expected argument " "2"" of type '" "long""'");
29070 }
29071 arg2 = static_cast< long >(val2);
29072 ecode3 = SWIG_AsVal_long(obj2, &val3);
29073 if (!SWIG_IsOK(ecode3)) {
29074 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemState" "', expected argument " "3"" of type '" "long""'");
29075 }
29076 arg3 = static_cast< long >(val3);
29077 {
29078 PyThreadState* __tstate = wxPyBeginAllowThreads();
29079 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
29080 wxPyEndAllowThreads(__tstate);
29081 if (PyErr_Occurred()) SWIG_fail;
29082 }
29083 resultobj = SWIG_From_int(static_cast< int >(result));
29084 return resultobj;
29085 fail:
29086 return NULL;
29087 }
29088
29089
29090 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29091 PyObject *resultobj = 0;
29092 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29093 long arg2 ;
29094 long arg3 ;
29095 long arg4 ;
29096 bool result;
29097 void *argp1 = 0 ;
29098 int res1 = 0 ;
29099 long val2 ;
29100 int ecode2 = 0 ;
29101 long val3 ;
29102 int ecode3 = 0 ;
29103 long val4 ;
29104 int ecode4 = 0 ;
29105 PyObject * obj0 = 0 ;
29106 PyObject * obj1 = 0 ;
29107 PyObject * obj2 = 0 ;
29108 PyObject * obj3 = 0 ;
29109 char * kwnames[] = {
29110 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
29111 };
29112
29113 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29114 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29115 if (!SWIG_IsOK(res1)) {
29116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29117 }
29118 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29119 ecode2 = SWIG_AsVal_long(obj1, &val2);
29120 if (!SWIG_IsOK(ecode2)) {
29121 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemState" "', expected argument " "2"" of type '" "long""'");
29122 }
29123 arg2 = static_cast< long >(val2);
29124 ecode3 = SWIG_AsVal_long(obj2, &val3);
29125 if (!SWIG_IsOK(ecode3)) {
29126 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemState" "', expected argument " "3"" of type '" "long""'");
29127 }
29128 arg3 = static_cast< long >(val3);
29129 ecode4 = SWIG_AsVal_long(obj3, &val4);
29130 if (!SWIG_IsOK(ecode4)) {
29131 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemState" "', expected argument " "4"" of type '" "long""'");
29132 }
29133 arg4 = static_cast< long >(val4);
29134 {
29135 PyThreadState* __tstate = wxPyBeginAllowThreads();
29136 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
29137 wxPyEndAllowThreads(__tstate);
29138 if (PyErr_Occurred()) SWIG_fail;
29139 }
29140 {
29141 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29142 }
29143 return resultobj;
29144 fail:
29145 return NULL;
29146 }
29147
29148
29149 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29150 PyObject *resultobj = 0;
29151 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29152 long arg2 ;
29153 int arg3 ;
29154 int arg4 = (int) -1 ;
29155 bool result;
29156 void *argp1 = 0 ;
29157 int res1 = 0 ;
29158 long val2 ;
29159 int ecode2 = 0 ;
29160 int val3 ;
29161 int ecode3 = 0 ;
29162 int val4 ;
29163 int ecode4 = 0 ;
29164 PyObject * obj0 = 0 ;
29165 PyObject * obj1 = 0 ;
29166 PyObject * obj2 = 0 ;
29167 PyObject * obj3 = 0 ;
29168 char * kwnames[] = {
29169 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
29170 };
29171
29172 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29173 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29174 if (!SWIG_IsOK(res1)) {
29175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29176 }
29177 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29178 ecode2 = SWIG_AsVal_long(obj1, &val2);
29179 if (!SWIG_IsOK(ecode2)) {
29180 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemImage" "', expected argument " "2"" of type '" "long""'");
29181 }
29182 arg2 = static_cast< long >(val2);
29183 ecode3 = SWIG_AsVal_int(obj2, &val3);
29184 if (!SWIG_IsOK(ecode3)) {
29185 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
29186 }
29187 arg3 = static_cast< int >(val3);
29188 if (obj3) {
29189 ecode4 = SWIG_AsVal_int(obj3, &val4);
29190 if (!SWIG_IsOK(ecode4)) {
29191 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemImage" "', expected argument " "4"" of type '" "int""'");
29192 }
29193 arg4 = static_cast< int >(val4);
29194 }
29195 {
29196 PyThreadState* __tstate = wxPyBeginAllowThreads();
29197 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
29198 wxPyEndAllowThreads(__tstate);
29199 if (PyErr_Occurred()) SWIG_fail;
29200 }
29201 {
29202 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29203 }
29204 return resultobj;
29205 fail:
29206 return NULL;
29207 }
29208
29209
29210 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29211 PyObject *resultobj = 0;
29212 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29213 long arg2 ;
29214 long arg3 ;
29215 int arg4 ;
29216 bool result;
29217 void *argp1 = 0 ;
29218 int res1 = 0 ;
29219 long val2 ;
29220 int ecode2 = 0 ;
29221 long val3 ;
29222 int ecode3 = 0 ;
29223 int val4 ;
29224 int ecode4 = 0 ;
29225 PyObject * obj0 = 0 ;
29226 PyObject * obj1 = 0 ;
29227 PyObject * obj2 = 0 ;
29228 PyObject * obj3 = 0 ;
29229 char * kwnames[] = {
29230 (char *) "self",(char *) "item",(char *) "column",(char *) "image", NULL
29231 };
29232
29233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemColumnImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29235 if (!SWIG_IsOK(res1)) {
29236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29237 }
29238 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29239 ecode2 = SWIG_AsVal_long(obj1, &val2);
29240 if (!SWIG_IsOK(ecode2)) {
29241 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "2"" of type '" "long""'");
29242 }
29243 arg2 = static_cast< long >(val2);
29244 ecode3 = SWIG_AsVal_long(obj2, &val3);
29245 if (!SWIG_IsOK(ecode3)) {
29246 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "3"" of type '" "long""'");
29247 }
29248 arg3 = static_cast< long >(val3);
29249 ecode4 = SWIG_AsVal_int(obj3, &val4);
29250 if (!SWIG_IsOK(ecode4)) {
29251 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "4"" of type '" "int""'");
29252 }
29253 arg4 = static_cast< int >(val4);
29254 {
29255 PyThreadState* __tstate = wxPyBeginAllowThreads();
29256 result = (bool)(arg1)->SetItemColumnImage(arg2,arg3,arg4);
29257 wxPyEndAllowThreads(__tstate);
29258 if (PyErr_Occurred()) SWIG_fail;
29259 }
29260 {
29261 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29262 }
29263 return resultobj;
29264 fail:
29265 return NULL;
29266 }
29267
29268
29269 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29270 PyObject *resultobj = 0;
29271 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29272 long arg2 ;
29273 wxString result;
29274 void *argp1 = 0 ;
29275 int res1 = 0 ;
29276 long val2 ;
29277 int ecode2 = 0 ;
29278 PyObject * obj0 = 0 ;
29279 PyObject * obj1 = 0 ;
29280 char * kwnames[] = {
29281 (char *) "self",(char *) "item", NULL
29282 };
29283
29284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
29285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29286 if (!SWIG_IsOK(res1)) {
29287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29288 }
29289 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29290 ecode2 = SWIG_AsVal_long(obj1, &val2);
29291 if (!SWIG_IsOK(ecode2)) {
29292 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemText" "', expected argument " "2"" of type '" "long""'");
29293 }
29294 arg2 = static_cast< long >(val2);
29295 {
29296 PyThreadState* __tstate = wxPyBeginAllowThreads();
29297 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
29298 wxPyEndAllowThreads(__tstate);
29299 if (PyErr_Occurred()) SWIG_fail;
29300 }
29301 {
29302 #if wxUSE_UNICODE
29303 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29304 #else
29305 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29306 #endif
29307 }
29308 return resultobj;
29309 fail:
29310 return NULL;
29311 }
29312
29313
29314 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29315 PyObject *resultobj = 0;
29316 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29317 long arg2 ;
29318 wxString *arg3 = 0 ;
29319 void *argp1 = 0 ;
29320 int res1 = 0 ;
29321 long val2 ;
29322 int ecode2 = 0 ;
29323 bool temp3 = false ;
29324 PyObject * obj0 = 0 ;
29325 PyObject * obj1 = 0 ;
29326 PyObject * obj2 = 0 ;
29327 char * kwnames[] = {
29328 (char *) "self",(char *) "item",(char *) "str", NULL
29329 };
29330
29331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29333 if (!SWIG_IsOK(res1)) {
29334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29335 }
29336 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29337 ecode2 = SWIG_AsVal_long(obj1, &val2);
29338 if (!SWIG_IsOK(ecode2)) {
29339 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemText" "', expected argument " "2"" of type '" "long""'");
29340 }
29341 arg2 = static_cast< long >(val2);
29342 {
29343 arg3 = wxString_in_helper(obj2);
29344 if (arg3 == NULL) SWIG_fail;
29345 temp3 = true;
29346 }
29347 {
29348 PyThreadState* __tstate = wxPyBeginAllowThreads();
29349 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
29350 wxPyEndAllowThreads(__tstate);
29351 if (PyErr_Occurred()) SWIG_fail;
29352 }
29353 resultobj = SWIG_Py_Void();
29354 {
29355 if (temp3)
29356 delete arg3;
29357 }
29358 return resultobj;
29359 fail:
29360 {
29361 if (temp3)
29362 delete arg3;
29363 }
29364 return NULL;
29365 }
29366
29367
29368 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29369 PyObject *resultobj = 0;
29370 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29371 long arg2 ;
29372 long result;
29373 void *argp1 = 0 ;
29374 int res1 = 0 ;
29375 long val2 ;
29376 int ecode2 = 0 ;
29377 PyObject * obj0 = 0 ;
29378 PyObject * obj1 = 0 ;
29379 char * kwnames[] = {
29380 (char *) "self",(char *) "item", NULL
29381 };
29382
29383 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
29384 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29385 if (!SWIG_IsOK(res1)) {
29386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29387 }
29388 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29389 ecode2 = SWIG_AsVal_long(obj1, &val2);
29390 if (!SWIG_IsOK(ecode2)) {
29391 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemData" "', expected argument " "2"" of type '" "long""'");
29392 }
29393 arg2 = static_cast< long >(val2);
29394 {
29395 PyThreadState* __tstate = wxPyBeginAllowThreads();
29396 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
29397 wxPyEndAllowThreads(__tstate);
29398 if (PyErr_Occurred()) SWIG_fail;
29399 }
29400 resultobj = SWIG_From_long(static_cast< long >(result));
29401 return resultobj;
29402 fail:
29403 return NULL;
29404 }
29405
29406
29407 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29408 PyObject *resultobj = 0;
29409 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29410 long arg2 ;
29411 long arg3 ;
29412 bool result;
29413 void *argp1 = 0 ;
29414 int res1 = 0 ;
29415 long val2 ;
29416 int ecode2 = 0 ;
29417 long val3 ;
29418 int ecode3 = 0 ;
29419 PyObject * obj0 = 0 ;
29420 PyObject * obj1 = 0 ;
29421 PyObject * obj2 = 0 ;
29422 char * kwnames[] = {
29423 (char *) "self",(char *) "item",(char *) "data", NULL
29424 };
29425
29426 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29427 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29428 if (!SWIG_IsOK(res1)) {
29429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29430 }
29431 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29432 ecode2 = SWIG_AsVal_long(obj1, &val2);
29433 if (!SWIG_IsOK(ecode2)) {
29434 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemData" "', expected argument " "2"" of type '" "long""'");
29435 }
29436 arg2 = static_cast< long >(val2);
29437 ecode3 = SWIG_AsVal_long(obj2, &val3);
29438 if (!SWIG_IsOK(ecode3)) {
29439 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemData" "', expected argument " "3"" of type '" "long""'");
29440 }
29441 arg3 = static_cast< long >(val3);
29442 {
29443 PyThreadState* __tstate = wxPyBeginAllowThreads();
29444 result = (bool)(arg1)->SetItemData(arg2,arg3);
29445 wxPyEndAllowThreads(__tstate);
29446 if (PyErr_Occurred()) SWIG_fail;
29447 }
29448 {
29449 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29450 }
29451 return resultobj;
29452 fail:
29453 return NULL;
29454 }
29455
29456
29457 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29458 PyObject *resultobj = 0;
29459 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29460 long arg2 ;
29461 wxPoint result;
29462 void *argp1 = 0 ;
29463 int res1 = 0 ;
29464 long val2 ;
29465 int ecode2 = 0 ;
29466 PyObject * obj0 = 0 ;
29467 PyObject * obj1 = 0 ;
29468 char * kwnames[] = {
29469 (char *) "self",(char *) "item", NULL
29470 };
29471
29472 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) SWIG_fail;
29473 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29474 if (!SWIG_IsOK(res1)) {
29475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29476 }
29477 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29478 ecode2 = SWIG_AsVal_long(obj1, &val2);
29479 if (!SWIG_IsOK(ecode2)) {
29480 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "2"" of type '" "long""'");
29481 }
29482 arg2 = static_cast< long >(val2);
29483 {
29484 PyThreadState* __tstate = wxPyBeginAllowThreads();
29485 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
29486 wxPyEndAllowThreads(__tstate);
29487 if (PyErr_Occurred()) SWIG_fail;
29488 }
29489 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
29490 return resultobj;
29491 fail:
29492 return NULL;
29493 }
29494
29495
29496 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29497 PyObject *resultobj = 0;
29498 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29499 long arg2 ;
29500 int arg3 = (int) wxLIST_RECT_BOUNDS ;
29501 wxRect result;
29502 void *argp1 = 0 ;
29503 int res1 = 0 ;
29504 long val2 ;
29505 int ecode2 = 0 ;
29506 int val3 ;
29507 int ecode3 = 0 ;
29508 PyObject * obj0 = 0 ;
29509 PyObject * obj1 = 0 ;
29510 PyObject * obj2 = 0 ;
29511 char * kwnames[] = {
29512 (char *) "self",(char *) "item",(char *) "code", NULL
29513 };
29514
29515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29516 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29517 if (!SWIG_IsOK(res1)) {
29518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemRect" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29519 }
29520 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29521 ecode2 = SWIG_AsVal_long(obj1, &val2);
29522 if (!SWIG_IsOK(ecode2)) {
29523 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemRect" "', expected argument " "2"" of type '" "long""'");
29524 }
29525 arg2 = static_cast< long >(val2);
29526 if (obj2) {
29527 ecode3 = SWIG_AsVal_int(obj2, &val3);
29528 if (!SWIG_IsOK(ecode3)) {
29529 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemRect" "', expected argument " "3"" of type '" "int""'");
29530 }
29531 arg3 = static_cast< int >(val3);
29532 }
29533 {
29534 PyThreadState* __tstate = wxPyBeginAllowThreads();
29535 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
29536 wxPyEndAllowThreads(__tstate);
29537 if (PyErr_Occurred()) SWIG_fail;
29538 }
29539 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29540 return resultobj;
29541 fail:
29542 return NULL;
29543 }
29544
29545
29546 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29547 PyObject *resultobj = 0;
29548 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29549 long arg2 ;
29550 wxPoint *arg3 = 0 ;
29551 bool result;
29552 void *argp1 = 0 ;
29553 int res1 = 0 ;
29554 long val2 ;
29555 int ecode2 = 0 ;
29556 wxPoint temp3 ;
29557 PyObject * obj0 = 0 ;
29558 PyObject * obj1 = 0 ;
29559 PyObject * obj2 = 0 ;
29560 char * kwnames[] = {
29561 (char *) "self",(char *) "item",(char *) "pos", NULL
29562 };
29563
29564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29565 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29566 if (!SWIG_IsOK(res1)) {
29567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29568 }
29569 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29570 ecode2 = SWIG_AsVal_long(obj1, &val2);
29571 if (!SWIG_IsOK(ecode2)) {
29572 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "2"" of type '" "long""'");
29573 }
29574 arg2 = static_cast< long >(val2);
29575 {
29576 arg3 = &temp3;
29577 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29578 }
29579 {
29580 PyThreadState* __tstate = wxPyBeginAllowThreads();
29581 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
29582 wxPyEndAllowThreads(__tstate);
29583 if (PyErr_Occurred()) SWIG_fail;
29584 }
29585 {
29586 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29587 }
29588 return resultobj;
29589 fail:
29590 return NULL;
29591 }
29592
29593
29594 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29595 PyObject *resultobj = 0;
29596 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29597 int result;
29598 void *argp1 = 0 ;
29599 int res1 = 0 ;
29600 PyObject *swig_obj[1] ;
29601
29602 if (!args) SWIG_fail;
29603 swig_obj[0] = args;
29604 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29605 if (!SWIG_IsOK(res1)) {
29606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29607 }
29608 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29609 {
29610 PyThreadState* __tstate = wxPyBeginAllowThreads();
29611 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
29612 wxPyEndAllowThreads(__tstate);
29613 if (PyErr_Occurred()) SWIG_fail;
29614 }
29615 resultobj = SWIG_From_int(static_cast< int >(result));
29616 return resultobj;
29617 fail:
29618 return NULL;
29619 }
29620
29621
29622 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29623 PyObject *resultobj = 0;
29624 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29625 int result;
29626 void *argp1 = 0 ;
29627 int res1 = 0 ;
29628 PyObject *swig_obj[1] ;
29629
29630 if (!args) SWIG_fail;
29631 swig_obj[0] = args;
29632 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29633 if (!SWIG_IsOK(res1)) {
29634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29635 }
29636 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29637 {
29638 PyThreadState* __tstate = wxPyBeginAllowThreads();
29639 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
29640 wxPyEndAllowThreads(__tstate);
29641 if (PyErr_Occurred()) SWIG_fail;
29642 }
29643 resultobj = SWIG_From_int(static_cast< int >(result));
29644 return resultobj;
29645 fail:
29646 return NULL;
29647 }
29648
29649
29650 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29651 PyObject *resultobj = 0;
29652 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29653 wxSize result;
29654 void *argp1 = 0 ;
29655 int res1 = 0 ;
29656 PyObject *swig_obj[1] ;
29657
29658 if (!args) SWIG_fail;
29659 swig_obj[0] = args;
29660 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29661 if (!SWIG_IsOK(res1)) {
29662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29663 }
29664 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29665 {
29666 PyThreadState* __tstate = wxPyBeginAllowThreads();
29667 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
29668 wxPyEndAllowThreads(__tstate);
29669 if (PyErr_Occurred()) SWIG_fail;
29670 }
29671 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
29672 return resultobj;
29673 fail:
29674 return NULL;
29675 }
29676
29677
29678 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29679 PyObject *resultobj = 0;
29680 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29681 int arg2 ;
29682 bool arg3 = (bool) false ;
29683 void *argp1 = 0 ;
29684 int res1 = 0 ;
29685 int val2 ;
29686 int ecode2 = 0 ;
29687 bool val3 ;
29688 int ecode3 = 0 ;
29689 PyObject * obj0 = 0 ;
29690 PyObject * obj1 = 0 ;
29691 PyObject * obj2 = 0 ;
29692 char * kwnames[] = {
29693 (char *) "self",(char *) "spacing",(char *) "isSmall", NULL
29694 };
29695
29696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29697 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29698 if (!SWIG_IsOK(res1)) {
29699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29700 }
29701 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29702 ecode2 = SWIG_AsVal_int(obj1, &val2);
29703 if (!SWIG_IsOK(ecode2)) {
29704 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "2"" of type '" "int""'");
29705 }
29706 arg2 = static_cast< int >(val2);
29707 if (obj2) {
29708 ecode3 = SWIG_AsVal_bool(obj2, &val3);
29709 if (!SWIG_IsOK(ecode3)) {
29710 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "3"" of type '" "bool""'");
29711 }
29712 arg3 = static_cast< bool >(val3);
29713 }
29714 {
29715 PyThreadState* __tstate = wxPyBeginAllowThreads();
29716 (arg1)->SetItemSpacing(arg2,arg3);
29717 wxPyEndAllowThreads(__tstate);
29718 if (PyErr_Occurred()) SWIG_fail;
29719 }
29720 resultobj = SWIG_Py_Void();
29721 return resultobj;
29722 fail:
29723 return NULL;
29724 }
29725
29726
29727 SWIGINTERN PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29728 PyObject *resultobj = 0;
29729 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29730 int result;
29731 void *argp1 = 0 ;
29732 int res1 = 0 ;
29733 PyObject *swig_obj[1] ;
29734
29735 if (!args) SWIG_fail;
29736 swig_obj[0] = args;
29737 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29738 if (!SWIG_IsOK(res1)) {
29739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetSelectedItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29740 }
29741 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29742 {
29743 PyThreadState* __tstate = wxPyBeginAllowThreads();
29744 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
29745 wxPyEndAllowThreads(__tstate);
29746 if (PyErr_Occurred()) SWIG_fail;
29747 }
29748 resultobj = SWIG_From_int(static_cast< int >(result));
29749 return resultobj;
29750 fail:
29751 return NULL;
29752 }
29753
29754
29755 SWIGINTERN PyObject *_wrap_ListCtrl_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29756 PyObject *resultobj = 0;
29757 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29758 wxColour result;
29759 void *argp1 = 0 ;
29760 int res1 = 0 ;
29761 PyObject *swig_obj[1] ;
29762
29763 if (!args) SWIG_fail;
29764 swig_obj[0] = args;
29765 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29766 if (!SWIG_IsOK(res1)) {
29767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29768 }
29769 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29770 {
29771 PyThreadState* __tstate = wxPyBeginAllowThreads();
29772 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
29773 wxPyEndAllowThreads(__tstate);
29774 if (PyErr_Occurred()) SWIG_fail;
29775 }
29776 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29777 return resultobj;
29778 fail:
29779 return NULL;
29780 }
29781
29782
29783 SWIGINTERN PyObject *_wrap_ListCtrl_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29784 PyObject *resultobj = 0;
29785 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29786 wxColour *arg2 = 0 ;
29787 void *argp1 = 0 ;
29788 int res1 = 0 ;
29789 wxColour temp2 ;
29790 PyObject * obj0 = 0 ;
29791 PyObject * obj1 = 0 ;
29792 char * kwnames[] = {
29793 (char *) "self",(char *) "col", NULL
29794 };
29795
29796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
29797 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29798 if (!SWIG_IsOK(res1)) {
29799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29800 }
29801 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29802 {
29803 arg2 = &temp2;
29804 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29805 }
29806 {
29807 PyThreadState* __tstate = wxPyBeginAllowThreads();
29808 (arg1)->SetTextColour((wxColour const &)*arg2);
29809 wxPyEndAllowThreads(__tstate);
29810 if (PyErr_Occurred()) SWIG_fail;
29811 }
29812 resultobj = SWIG_Py_Void();
29813 return resultobj;
29814 fail:
29815 return NULL;
29816 }
29817
29818
29819 SWIGINTERN PyObject *_wrap_ListCtrl_GetTopItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29820 PyObject *resultobj = 0;
29821 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29822 long result;
29823 void *argp1 = 0 ;
29824 int res1 = 0 ;
29825 PyObject *swig_obj[1] ;
29826
29827 if (!args) SWIG_fail;
29828 swig_obj[0] = args;
29829 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29830 if (!SWIG_IsOK(res1)) {
29831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTopItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29832 }
29833 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29834 {
29835 PyThreadState* __tstate = wxPyBeginAllowThreads();
29836 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
29837 wxPyEndAllowThreads(__tstate);
29838 if (PyErr_Occurred()) SWIG_fail;
29839 }
29840 resultobj = SWIG_From_long(static_cast< long >(result));
29841 return resultobj;
29842 fail:
29843 return NULL;
29844 }
29845
29846
29847 SWIGINTERN PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29848 PyObject *resultobj = 0;
29849 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29850 long arg2 ;
29851 bool arg3 = (bool) true ;
29852 void *argp1 = 0 ;
29853 int res1 = 0 ;
29854 long val2 ;
29855 int ecode2 = 0 ;
29856 bool val3 ;
29857 int ecode3 = 0 ;
29858 PyObject * obj0 = 0 ;
29859 PyObject * obj1 = 0 ;
29860 PyObject * obj2 = 0 ;
29861 char * kwnames[] = {
29862 (char *) "self",(char *) "style",(char *) "add", NULL
29863 };
29864
29865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29866 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29867 if (!SWIG_IsOK(res1)) {
29868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29869 }
29870 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29871 ecode2 = SWIG_AsVal_long(obj1, &val2);
29872 if (!SWIG_IsOK(ecode2)) {
29873 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "2"" of type '" "long""'");
29874 }
29875 arg2 = static_cast< long >(val2);
29876 if (obj2) {
29877 ecode3 = SWIG_AsVal_bool(obj2, &val3);
29878 if (!SWIG_IsOK(ecode3)) {
29879 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "3"" of type '" "bool""'");
29880 }
29881 arg3 = static_cast< bool >(val3);
29882 }
29883 {
29884 PyThreadState* __tstate = wxPyBeginAllowThreads();
29885 (arg1)->SetSingleStyle(arg2,arg3);
29886 wxPyEndAllowThreads(__tstate);
29887 if (PyErr_Occurred()) SWIG_fail;
29888 }
29889 resultobj = SWIG_Py_Void();
29890 return resultobj;
29891 fail:
29892 return NULL;
29893 }
29894
29895
29896 SWIGINTERN PyObject *_wrap_ListCtrl_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29897 PyObject *resultobj = 0;
29898 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29899 long arg2 ;
29900 int arg3 = (int) wxLIST_NEXT_ALL ;
29901 int arg4 = (int) wxLIST_STATE_DONTCARE ;
29902 long result;
29903 void *argp1 = 0 ;
29904 int res1 = 0 ;
29905 long val2 ;
29906 int ecode2 = 0 ;
29907 int val3 ;
29908 int ecode3 = 0 ;
29909 int val4 ;
29910 int ecode4 = 0 ;
29911 PyObject * obj0 = 0 ;
29912 PyObject * obj1 = 0 ;
29913 PyObject * obj2 = 0 ;
29914 PyObject * obj3 = 0 ;
29915 char * kwnames[] = {
29916 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
29917 };
29918
29919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29921 if (!SWIG_IsOK(res1)) {
29922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetNextItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29923 }
29924 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29925 ecode2 = SWIG_AsVal_long(obj1, &val2);
29926 if (!SWIG_IsOK(ecode2)) {
29927 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetNextItem" "', expected argument " "2"" of type '" "long""'");
29928 }
29929 arg2 = static_cast< long >(val2);
29930 if (obj2) {
29931 ecode3 = SWIG_AsVal_int(obj2, &val3);
29932 if (!SWIG_IsOK(ecode3)) {
29933 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetNextItem" "', expected argument " "3"" of type '" "int""'");
29934 }
29935 arg3 = static_cast< int >(val3);
29936 }
29937 if (obj3) {
29938 ecode4 = SWIG_AsVal_int(obj3, &val4);
29939 if (!SWIG_IsOK(ecode4)) {
29940 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_GetNextItem" "', expected argument " "4"" of type '" "int""'");
29941 }
29942 arg4 = static_cast< int >(val4);
29943 }
29944 {
29945 PyThreadState* __tstate = wxPyBeginAllowThreads();
29946 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
29947 wxPyEndAllowThreads(__tstate);
29948 if (PyErr_Occurred()) SWIG_fail;
29949 }
29950 resultobj = SWIG_From_long(static_cast< long >(result));
29951 return resultobj;
29952 fail:
29953 return NULL;
29954 }
29955
29956
29957 SWIGINTERN PyObject *_wrap_ListCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29958 PyObject *resultobj = 0;
29959 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29960 int arg2 ;
29961 wxImageList *result = 0 ;
29962 void *argp1 = 0 ;
29963 int res1 = 0 ;
29964 int val2 ;
29965 int ecode2 = 0 ;
29966 PyObject * obj0 = 0 ;
29967 PyObject * obj1 = 0 ;
29968 char * kwnames[] = {
29969 (char *) "self",(char *) "which", NULL
29970 };
29971
29972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
29973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29974 if (!SWIG_IsOK(res1)) {
29975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29976 }
29977 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29978 ecode2 = SWIG_AsVal_int(obj1, &val2);
29979 if (!SWIG_IsOK(ecode2)) {
29980 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetImageList" "', expected argument " "2"" of type '" "int""'");
29981 }
29982 arg2 = static_cast< int >(val2);
29983 {
29984 PyThreadState* __tstate = wxPyBeginAllowThreads();
29985 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
29986 wxPyEndAllowThreads(__tstate);
29987 if (PyErr_Occurred()) SWIG_fail;
29988 }
29989 {
29990 resultobj = wxPyMake_wxObject(result, (bool)0);
29991 }
29992 return resultobj;
29993 fail:
29994 return NULL;
29995 }
29996
29997
29998 SWIGINTERN PyObject *_wrap_ListCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29999 PyObject *resultobj = 0;
30000 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30001 wxImageList *arg2 = (wxImageList *) 0 ;
30002 int arg3 ;
30003 void *argp1 = 0 ;
30004 int res1 = 0 ;
30005 void *argp2 = 0 ;
30006 int res2 = 0 ;
30007 int val3 ;
30008 int ecode3 = 0 ;
30009 PyObject * obj0 = 0 ;
30010 PyObject * obj1 = 0 ;
30011 PyObject * obj2 = 0 ;
30012 char * kwnames[] = {
30013 (char *) "self",(char *) "imageList",(char *) "which", NULL
30014 };
30015
30016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30017 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30018 if (!SWIG_IsOK(res1)) {
30019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30020 }
30021 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30022 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
30023 if (!SWIG_IsOK(res2)) {
30024 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30025 }
30026 arg2 = reinterpret_cast< wxImageList * >(argp2);
30027 ecode3 = SWIG_AsVal_int(obj2, &val3);
30028 if (!SWIG_IsOK(ecode3)) {
30029 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetImageList" "', expected argument " "3"" of type '" "int""'");
30030 }
30031 arg3 = static_cast< int >(val3);
30032 {
30033 PyThreadState* __tstate = wxPyBeginAllowThreads();
30034 (arg1)->SetImageList(arg2,arg3);
30035 wxPyEndAllowThreads(__tstate);
30036 if (PyErr_Occurred()) SWIG_fail;
30037 }
30038 resultobj = SWIG_Py_Void();
30039 return resultobj;
30040 fail:
30041 return NULL;
30042 }
30043
30044
30045 SWIGINTERN PyObject *_wrap_ListCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30046 PyObject *resultobj = 0;
30047 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30048 wxImageList *arg2 = (wxImageList *) 0 ;
30049 int arg3 ;
30050 void *argp1 = 0 ;
30051 int res1 = 0 ;
30052 int res2 = 0 ;
30053 int val3 ;
30054 int ecode3 = 0 ;
30055 PyObject * obj0 = 0 ;
30056 PyObject * obj1 = 0 ;
30057 PyObject * obj2 = 0 ;
30058 char * kwnames[] = {
30059 (char *) "self",(char *) "imageList",(char *) "which", NULL
30060 };
30061
30062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30064 if (!SWIG_IsOK(res1)) {
30065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30066 }
30067 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30068 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
30069 if (!SWIG_IsOK(res2)) {
30070 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30071 }
30072 ecode3 = SWIG_AsVal_int(obj2, &val3);
30073 if (!SWIG_IsOK(ecode3)) {
30074 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_AssignImageList" "', expected argument " "3"" of type '" "int""'");
30075 }
30076 arg3 = static_cast< int >(val3);
30077 {
30078 PyThreadState* __tstate = wxPyBeginAllowThreads();
30079 (arg1)->AssignImageList(arg2,arg3);
30080 wxPyEndAllowThreads(__tstate);
30081 if (PyErr_Occurred()) SWIG_fail;
30082 }
30083 resultobj = SWIG_Py_Void();
30084 return resultobj;
30085 fail:
30086 return NULL;
30087 }
30088
30089
30090 SWIGINTERN PyObject *_wrap_ListCtrl_InReportView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30091 PyObject *resultobj = 0;
30092 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30093 bool result;
30094 void *argp1 = 0 ;
30095 int res1 = 0 ;
30096 PyObject *swig_obj[1] ;
30097
30098 if (!args) SWIG_fail;
30099 swig_obj[0] = args;
30100 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30101 if (!SWIG_IsOK(res1)) {
30102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InReportView" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30103 }
30104 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30105 {
30106 PyThreadState* __tstate = wxPyBeginAllowThreads();
30107 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
30108 wxPyEndAllowThreads(__tstate);
30109 if (PyErr_Occurred()) SWIG_fail;
30110 }
30111 {
30112 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30113 }
30114 return resultobj;
30115 fail:
30116 return NULL;
30117 }
30118
30119
30120 SWIGINTERN PyObject *_wrap_ListCtrl_IsVirtual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30121 PyObject *resultobj = 0;
30122 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30123 bool result;
30124 void *argp1 = 0 ;
30125 int res1 = 0 ;
30126 PyObject *swig_obj[1] ;
30127
30128 if (!args) SWIG_fail;
30129 swig_obj[0] = args;
30130 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30131 if (!SWIG_IsOK(res1)) {
30132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_IsVirtual" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30133 }
30134 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30135 {
30136 PyThreadState* __tstate = wxPyBeginAllowThreads();
30137 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
30138 wxPyEndAllowThreads(__tstate);
30139 if (PyErr_Occurred()) SWIG_fail;
30140 }
30141 {
30142 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30143 }
30144 return resultobj;
30145 fail:
30146 return NULL;
30147 }
30148
30149
30150 SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30151 PyObject *resultobj = 0;
30152 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30153 long arg2 ;
30154 void *argp1 = 0 ;
30155 int res1 = 0 ;
30156 long val2 ;
30157 int ecode2 = 0 ;
30158 PyObject * obj0 = 0 ;
30159 PyObject * obj1 = 0 ;
30160 char * kwnames[] = {
30161 (char *) "self",(char *) "item", NULL
30162 };
30163
30164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) SWIG_fail;
30165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30166 if (!SWIG_IsOK(res1)) {
30167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30168 }
30169 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30170 ecode2 = SWIG_AsVal_long(obj1, &val2);
30171 if (!SWIG_IsOK(ecode2)) {
30172 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItem" "', expected argument " "2"" of type '" "long""'");
30173 }
30174 arg2 = static_cast< long >(val2);
30175 {
30176 PyThreadState* __tstate = wxPyBeginAllowThreads();
30177 (arg1)->RefreshItem(arg2);
30178 wxPyEndAllowThreads(__tstate);
30179 if (PyErr_Occurred()) SWIG_fail;
30180 }
30181 resultobj = SWIG_Py_Void();
30182 return resultobj;
30183 fail:
30184 return NULL;
30185 }
30186
30187
30188 SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30189 PyObject *resultobj = 0;
30190 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30191 long arg2 ;
30192 long arg3 ;
30193 void *argp1 = 0 ;
30194 int res1 = 0 ;
30195 long val2 ;
30196 int ecode2 = 0 ;
30197 long val3 ;
30198 int ecode3 = 0 ;
30199 PyObject * obj0 = 0 ;
30200 PyObject * obj1 = 0 ;
30201 PyObject * obj2 = 0 ;
30202 char * kwnames[] = {
30203 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
30204 };
30205
30206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30207 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30208 if (!SWIG_IsOK(res1)) {
30209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30210 }
30211 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30212 ecode2 = SWIG_AsVal_long(obj1, &val2);
30213 if (!SWIG_IsOK(ecode2)) {
30214 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItems" "', expected argument " "2"" of type '" "long""'");
30215 }
30216 arg2 = static_cast< long >(val2);
30217 ecode3 = SWIG_AsVal_long(obj2, &val3);
30218 if (!SWIG_IsOK(ecode3)) {
30219 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_RefreshItems" "', expected argument " "3"" of type '" "long""'");
30220 }
30221 arg3 = static_cast< long >(val3);
30222 {
30223 PyThreadState* __tstate = wxPyBeginAllowThreads();
30224 (arg1)->RefreshItems(arg2,arg3);
30225 wxPyEndAllowThreads(__tstate);
30226 if (PyErr_Occurred()) SWIG_fail;
30227 }
30228 resultobj = SWIG_Py_Void();
30229 return resultobj;
30230 fail:
30231 return NULL;
30232 }
30233
30234
30235 SWIGINTERN PyObject *_wrap_ListCtrl_Arrange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30236 PyObject *resultobj = 0;
30237 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30238 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
30239 bool result;
30240 void *argp1 = 0 ;
30241 int res1 = 0 ;
30242 int val2 ;
30243 int ecode2 = 0 ;
30244 PyObject * obj0 = 0 ;
30245 PyObject * obj1 = 0 ;
30246 char * kwnames[] = {
30247 (char *) "self",(char *) "flag", NULL
30248 };
30249
30250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) SWIG_fail;
30251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30252 if (!SWIG_IsOK(res1)) {
30253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Arrange" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30254 }
30255 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30256 if (obj1) {
30257 ecode2 = SWIG_AsVal_int(obj1, &val2);
30258 if (!SWIG_IsOK(ecode2)) {
30259 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_Arrange" "', expected argument " "2"" of type '" "int""'");
30260 }
30261 arg2 = static_cast< int >(val2);
30262 }
30263 {
30264 PyThreadState* __tstate = wxPyBeginAllowThreads();
30265 result = (bool)(arg1)->Arrange(arg2);
30266 wxPyEndAllowThreads(__tstate);
30267 if (PyErr_Occurred()) SWIG_fail;
30268 }
30269 {
30270 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30271 }
30272 return resultobj;
30273 fail:
30274 return NULL;
30275 }
30276
30277
30278 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30279 PyObject *resultobj = 0;
30280 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30281 long arg2 ;
30282 bool result;
30283 void *argp1 = 0 ;
30284 int res1 = 0 ;
30285 long val2 ;
30286 int ecode2 = 0 ;
30287 PyObject * obj0 = 0 ;
30288 PyObject * obj1 = 0 ;
30289 char * kwnames[] = {
30290 (char *) "self",(char *) "item", NULL
30291 };
30292
30293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) SWIG_fail;
30294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30295 if (!SWIG_IsOK(res1)) {
30296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30297 }
30298 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30299 ecode2 = SWIG_AsVal_long(obj1, &val2);
30300 if (!SWIG_IsOK(ecode2)) {
30301 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteItem" "', expected argument " "2"" of type '" "long""'");
30302 }
30303 arg2 = static_cast< long >(val2);
30304 {
30305 PyThreadState* __tstate = wxPyBeginAllowThreads();
30306 result = (bool)(arg1)->DeleteItem(arg2);
30307 wxPyEndAllowThreads(__tstate);
30308 if (PyErr_Occurred()) SWIG_fail;
30309 }
30310 {
30311 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30312 }
30313 return resultobj;
30314 fail:
30315 return NULL;
30316 }
30317
30318
30319 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30320 PyObject *resultobj = 0;
30321 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30322 bool result;
30323 void *argp1 = 0 ;
30324 int res1 = 0 ;
30325 PyObject *swig_obj[1] ;
30326
30327 if (!args) SWIG_fail;
30328 swig_obj[0] = args;
30329 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30330 if (!SWIG_IsOK(res1)) {
30331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30332 }
30333 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30334 {
30335 PyThreadState* __tstate = wxPyBeginAllowThreads();
30336 result = (bool)(arg1)->DeleteAllItems();
30337 wxPyEndAllowThreads(__tstate);
30338 if (PyErr_Occurred()) SWIG_fail;
30339 }
30340 {
30341 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30342 }
30343 return resultobj;
30344 fail:
30345 return NULL;
30346 }
30347
30348
30349 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30350 PyObject *resultobj = 0;
30351 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30352 int arg2 ;
30353 bool result;
30354 void *argp1 = 0 ;
30355 int res1 = 0 ;
30356 int val2 ;
30357 int ecode2 = 0 ;
30358 PyObject * obj0 = 0 ;
30359 PyObject * obj1 = 0 ;
30360 char * kwnames[] = {
30361 (char *) "self",(char *) "col", NULL
30362 };
30363
30364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) SWIG_fail;
30365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30366 if (!SWIG_IsOK(res1)) {
30367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30368 }
30369 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30370 ecode2 = SWIG_AsVal_int(obj1, &val2);
30371 if (!SWIG_IsOK(ecode2)) {
30372 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "2"" of type '" "int""'");
30373 }
30374 arg2 = static_cast< int >(val2);
30375 {
30376 PyThreadState* __tstate = wxPyBeginAllowThreads();
30377 result = (bool)(arg1)->DeleteColumn(arg2);
30378 wxPyEndAllowThreads(__tstate);
30379 if (PyErr_Occurred()) SWIG_fail;
30380 }
30381 {
30382 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30383 }
30384 return resultobj;
30385 fail:
30386 return NULL;
30387 }
30388
30389
30390 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30391 PyObject *resultobj = 0;
30392 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30393 bool result;
30394 void *argp1 = 0 ;
30395 int res1 = 0 ;
30396 PyObject *swig_obj[1] ;
30397
30398 if (!args) SWIG_fail;
30399 swig_obj[0] = args;
30400 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30401 if (!SWIG_IsOK(res1)) {
30402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllColumns" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30403 }
30404 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30405 {
30406 PyThreadState* __tstate = wxPyBeginAllowThreads();
30407 result = (bool)(arg1)->DeleteAllColumns();
30408 wxPyEndAllowThreads(__tstate);
30409 if (PyErr_Occurred()) SWIG_fail;
30410 }
30411 {
30412 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30413 }
30414 return resultobj;
30415 fail:
30416 return NULL;
30417 }
30418
30419
30420 SWIGINTERN PyObject *_wrap_ListCtrl_ClearAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30421 PyObject *resultobj = 0;
30422 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30423 void *argp1 = 0 ;
30424 int res1 = 0 ;
30425 PyObject *swig_obj[1] ;
30426
30427 if (!args) SWIG_fail;
30428 swig_obj[0] = args;
30429 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30430 if (!SWIG_IsOK(res1)) {
30431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ClearAll" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30432 }
30433 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30434 {
30435 PyThreadState* __tstate = wxPyBeginAllowThreads();
30436 (arg1)->ClearAll();
30437 wxPyEndAllowThreads(__tstate);
30438 if (PyErr_Occurred()) SWIG_fail;
30439 }
30440 resultobj = SWIG_Py_Void();
30441 return resultobj;
30442 fail:
30443 return NULL;
30444 }
30445
30446
30447 SWIGINTERN PyObject *_wrap_ListCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30448 PyObject *resultobj = 0;
30449 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30450 long arg2 ;
30451 void *argp1 = 0 ;
30452 int res1 = 0 ;
30453 long val2 ;
30454 int ecode2 = 0 ;
30455 PyObject * obj0 = 0 ;
30456 PyObject * obj1 = 0 ;
30457 char * kwnames[] = {
30458 (char *) "self",(char *) "item", NULL
30459 };
30460
30461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
30462 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30463 if (!SWIG_IsOK(res1)) {
30464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30465 }
30466 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30467 ecode2 = SWIG_AsVal_long(obj1, &val2);
30468 if (!SWIG_IsOK(ecode2)) {
30469 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EditLabel" "', expected argument " "2"" of type '" "long""'");
30470 }
30471 arg2 = static_cast< long >(val2);
30472 {
30473 PyThreadState* __tstate = wxPyBeginAllowThreads();
30474 (arg1)->EditLabel(arg2);
30475 wxPyEndAllowThreads(__tstate);
30476 if (PyErr_Occurred()) SWIG_fail;
30477 }
30478 resultobj = SWIG_Py_Void();
30479 return resultobj;
30480 fail:
30481 return NULL;
30482 }
30483
30484
30485 SWIGINTERN PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30486 PyObject *resultobj = 0;
30487 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30488 long arg2 ;
30489 bool result;
30490 void *argp1 = 0 ;
30491 int res1 = 0 ;
30492 long val2 ;
30493 int ecode2 = 0 ;
30494 PyObject * obj0 = 0 ;
30495 PyObject * obj1 = 0 ;
30496 char * kwnames[] = {
30497 (char *) "self",(char *) "item", NULL
30498 };
30499
30500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
30501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30502 if (!SWIG_IsOK(res1)) {
30503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30504 }
30505 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30506 ecode2 = SWIG_AsVal_long(obj1, &val2);
30507 if (!SWIG_IsOK(ecode2)) {
30508 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "2"" of type '" "long""'");
30509 }
30510 arg2 = static_cast< long >(val2);
30511 {
30512 PyThreadState* __tstate = wxPyBeginAllowThreads();
30513 result = (bool)(arg1)->EnsureVisible(arg2);
30514 wxPyEndAllowThreads(__tstate);
30515 if (PyErr_Occurred()) SWIG_fail;
30516 }
30517 {
30518 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30519 }
30520 return resultobj;
30521 fail:
30522 return NULL;
30523 }
30524
30525
30526 SWIGINTERN PyObject *_wrap_ListCtrl_FindItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30527 PyObject *resultobj = 0;
30528 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30529 long arg2 ;
30530 wxString *arg3 = 0 ;
30531 bool arg4 = (bool) false ;
30532 long result;
30533 void *argp1 = 0 ;
30534 int res1 = 0 ;
30535 long val2 ;
30536 int ecode2 = 0 ;
30537 bool temp3 = false ;
30538 bool val4 ;
30539 int ecode4 = 0 ;
30540 PyObject * obj0 = 0 ;
30541 PyObject * obj1 = 0 ;
30542 PyObject * obj2 = 0 ;
30543 PyObject * obj3 = 0 ;
30544 char * kwnames[] = {
30545 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
30546 };
30547
30548 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30549 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30550 if (!SWIG_IsOK(res1)) {
30551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30552 }
30553 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30554 ecode2 = SWIG_AsVal_long(obj1, &val2);
30555 if (!SWIG_IsOK(ecode2)) {
30556 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItem" "', expected argument " "2"" of type '" "long""'");
30557 }
30558 arg2 = static_cast< long >(val2);
30559 {
30560 arg3 = wxString_in_helper(obj2);
30561 if (arg3 == NULL) SWIG_fail;
30562 temp3 = true;
30563 }
30564 if (obj3) {
30565 ecode4 = SWIG_AsVal_bool(obj3, &val4);
30566 if (!SWIG_IsOK(ecode4)) {
30567 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItem" "', expected argument " "4"" of type '" "bool""'");
30568 }
30569 arg4 = static_cast< bool >(val4);
30570 }
30571 {
30572 PyThreadState* __tstate = wxPyBeginAllowThreads();
30573 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
30574 wxPyEndAllowThreads(__tstate);
30575 if (PyErr_Occurred()) SWIG_fail;
30576 }
30577 resultobj = SWIG_From_long(static_cast< long >(result));
30578 {
30579 if (temp3)
30580 delete arg3;
30581 }
30582 return resultobj;
30583 fail:
30584 {
30585 if (temp3)
30586 delete arg3;
30587 }
30588 return NULL;
30589 }
30590
30591
30592 SWIGINTERN PyObject *_wrap_ListCtrl_FindItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30593 PyObject *resultobj = 0;
30594 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30595 long arg2 ;
30596 long arg3 ;
30597 long result;
30598 void *argp1 = 0 ;
30599 int res1 = 0 ;
30600 long val2 ;
30601 int ecode2 = 0 ;
30602 long val3 ;
30603 int ecode3 = 0 ;
30604 PyObject * obj0 = 0 ;
30605 PyObject * obj1 = 0 ;
30606 PyObject * obj2 = 0 ;
30607 char * kwnames[] = {
30608 (char *) "self",(char *) "start",(char *) "data", NULL
30609 };
30610
30611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30613 if (!SWIG_IsOK(res1)) {
30614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30615 }
30616 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30617 ecode2 = SWIG_AsVal_long(obj1, &val2);
30618 if (!SWIG_IsOK(ecode2)) {
30619 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemData" "', expected argument " "2"" of type '" "long""'");
30620 }
30621 arg2 = static_cast< long >(val2);
30622 ecode3 = SWIG_AsVal_long(obj2, &val3);
30623 if (!SWIG_IsOK(ecode3)) {
30624 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_FindItemData" "', expected argument " "3"" of type '" "long""'");
30625 }
30626 arg3 = static_cast< long >(val3);
30627 {
30628 PyThreadState* __tstate = wxPyBeginAllowThreads();
30629 result = (long)(arg1)->FindItem(arg2,arg3);
30630 wxPyEndAllowThreads(__tstate);
30631 if (PyErr_Occurred()) SWIG_fail;
30632 }
30633 resultobj = SWIG_From_long(static_cast< long >(result));
30634 return resultobj;
30635 fail:
30636 return NULL;
30637 }
30638
30639
30640 SWIGINTERN PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30641 PyObject *resultobj = 0;
30642 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30643 long arg2 ;
30644 wxPoint *arg3 = 0 ;
30645 int arg4 ;
30646 long result;
30647 void *argp1 = 0 ;
30648 int res1 = 0 ;
30649 long val2 ;
30650 int ecode2 = 0 ;
30651 wxPoint temp3 ;
30652 int val4 ;
30653 int ecode4 = 0 ;
30654 PyObject * obj0 = 0 ;
30655 PyObject * obj1 = 0 ;
30656 PyObject * obj2 = 0 ;
30657 PyObject * obj3 = 0 ;
30658 char * kwnames[] = {
30659 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
30660 };
30661
30662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30664 if (!SWIG_IsOK(res1)) {
30665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30666 }
30667 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30668 ecode2 = SWIG_AsVal_long(obj1, &val2);
30669 if (!SWIG_IsOK(ecode2)) {
30670 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "2"" of type '" "long""'");
30671 }
30672 arg2 = static_cast< long >(val2);
30673 {
30674 arg3 = &temp3;
30675 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30676 }
30677 ecode4 = SWIG_AsVal_int(obj3, &val4);
30678 if (!SWIG_IsOK(ecode4)) {
30679 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "4"" of type '" "int""'");
30680 }
30681 arg4 = static_cast< int >(val4);
30682 {
30683 PyThreadState* __tstate = wxPyBeginAllowThreads();
30684 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
30685 wxPyEndAllowThreads(__tstate);
30686 if (PyErr_Occurred()) SWIG_fail;
30687 }
30688 resultobj = SWIG_From_long(static_cast< long >(result));
30689 return resultobj;
30690 fail:
30691 return NULL;
30692 }
30693
30694
30695 SWIGINTERN PyObject *_wrap_ListCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30696 PyObject *resultobj = 0;
30697 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30698 wxPoint *arg2 = 0 ;
30699 int *arg3 = 0 ;
30700 long result;
30701 void *argp1 = 0 ;
30702 int res1 = 0 ;
30703 wxPoint temp2 ;
30704 int temp3 ;
30705 int res3 = SWIG_TMPOBJ ;
30706 PyObject * obj0 = 0 ;
30707 PyObject * obj1 = 0 ;
30708 char * kwnames[] = {
30709 (char *) "self",(char *) "point", NULL
30710 };
30711
30712 arg3 = &temp3;
30713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
30714 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30715 if (!SWIG_IsOK(res1)) {
30716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30717 }
30718 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30719 {
30720 arg2 = &temp2;
30721 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30722 }
30723 {
30724 PyThreadState* __tstate = wxPyBeginAllowThreads();
30725 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
30726 wxPyEndAllowThreads(__tstate);
30727 if (PyErr_Occurred()) SWIG_fail;
30728 }
30729 resultobj = SWIG_From_long(static_cast< long >(result));
30730 if (SWIG_IsTmpObj(res3)) {
30731 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
30732 } else {
30733 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30734 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
30735 }
30736 return resultobj;
30737 fail:
30738 return NULL;
30739 }
30740
30741
30742 SWIGINTERN PyObject *_wrap_ListCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30743 PyObject *resultobj = 0;
30744 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30745 wxListItem *arg2 = 0 ;
30746 long result;
30747 void *argp1 = 0 ;
30748 int res1 = 0 ;
30749 void *argp2 = 0 ;
30750 int res2 = 0 ;
30751 PyObject * obj0 = 0 ;
30752 PyObject * obj1 = 0 ;
30753 char * kwnames[] = {
30754 (char *) "self",(char *) "info", NULL
30755 };
30756
30757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) SWIG_fail;
30758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30759 if (!SWIG_IsOK(res1)) {
30760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30761 }
30762 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30763 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
30764 if (!SWIG_IsOK(res2)) {
30765 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
30766 }
30767 if (!argp2) {
30768 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
30769 }
30770 arg2 = reinterpret_cast< wxListItem * >(argp2);
30771 {
30772 PyThreadState* __tstate = wxPyBeginAllowThreads();
30773 result = (long)(arg1)->InsertItem(*arg2);
30774 wxPyEndAllowThreads(__tstate);
30775 if (PyErr_Occurred()) SWIG_fail;
30776 }
30777 resultobj = SWIG_From_long(static_cast< long >(result));
30778 return resultobj;
30779 fail:
30780 return NULL;
30781 }
30782
30783
30784 SWIGINTERN PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30785 PyObject *resultobj = 0;
30786 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30787 long arg2 ;
30788 wxString *arg3 = 0 ;
30789 int arg4 = (int) -1 ;
30790 long result;
30791 void *argp1 = 0 ;
30792 int res1 = 0 ;
30793 long val2 ;
30794 int ecode2 = 0 ;
30795 bool temp3 = false ;
30796 int val4 ;
30797 int ecode4 = 0 ;
30798 PyObject * obj0 = 0 ;
30799 PyObject * obj1 = 0 ;
30800 PyObject * obj2 = 0 ;
30801 PyObject * obj3 = 0 ;
30802 char * kwnames[] = {
30803 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
30804 };
30805
30806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30807 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30808 if (!SWIG_IsOK(res1)) {
30809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30810 }
30811 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30812 ecode2 = SWIG_AsVal_long(obj1, &val2);
30813 if (!SWIG_IsOK(ecode2)) {
30814 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "2"" of type '" "long""'");
30815 }
30816 arg2 = static_cast< long >(val2);
30817 {
30818 arg3 = wxString_in_helper(obj2);
30819 if (arg3 == NULL) SWIG_fail;
30820 temp3 = true;
30821 }
30822 if (obj3) {
30823 ecode4 = SWIG_AsVal_int(obj3, &val4);
30824 if (!SWIG_IsOK(ecode4)) {
30825 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "4"" of type '" "int""'");
30826 }
30827 arg4 = static_cast< int >(val4);
30828 }
30829 {
30830 PyThreadState* __tstate = wxPyBeginAllowThreads();
30831 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
30832 wxPyEndAllowThreads(__tstate);
30833 if (PyErr_Occurred()) SWIG_fail;
30834 }
30835 resultobj = SWIG_From_long(static_cast< long >(result));
30836 {
30837 if (temp3)
30838 delete arg3;
30839 }
30840 return resultobj;
30841 fail:
30842 {
30843 if (temp3)
30844 delete arg3;
30845 }
30846 return NULL;
30847 }
30848
30849
30850 SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30851 PyObject *resultobj = 0;
30852 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30853 long arg2 ;
30854 int arg3 ;
30855 long result;
30856 void *argp1 = 0 ;
30857 int res1 = 0 ;
30858 long val2 ;
30859 int ecode2 = 0 ;
30860 int val3 ;
30861 int ecode3 = 0 ;
30862 PyObject * obj0 = 0 ;
30863 PyObject * obj1 = 0 ;
30864 PyObject * obj2 = 0 ;
30865 char * kwnames[] = {
30866 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
30867 };
30868
30869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30871 if (!SWIG_IsOK(res1)) {
30872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30873 }
30874 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30875 ecode2 = SWIG_AsVal_long(obj1, &val2);
30876 if (!SWIG_IsOK(ecode2)) {
30877 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "2"" of type '" "long""'");
30878 }
30879 arg2 = static_cast< long >(val2);
30880 ecode3 = SWIG_AsVal_int(obj2, &val3);
30881 if (!SWIG_IsOK(ecode3)) {
30882 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "3"" of type '" "int""'");
30883 }
30884 arg3 = static_cast< int >(val3);
30885 {
30886 PyThreadState* __tstate = wxPyBeginAllowThreads();
30887 result = (long)(arg1)->InsertItem(arg2,arg3);
30888 wxPyEndAllowThreads(__tstate);
30889 if (PyErr_Occurred()) SWIG_fail;
30890 }
30891 resultobj = SWIG_From_long(static_cast< long >(result));
30892 return resultobj;
30893 fail:
30894 return NULL;
30895 }
30896
30897
30898 SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30899 PyObject *resultobj = 0;
30900 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30901 long arg2 ;
30902 wxString *arg3 = 0 ;
30903 int arg4 ;
30904 long result;
30905 void *argp1 = 0 ;
30906 int res1 = 0 ;
30907 long val2 ;
30908 int ecode2 = 0 ;
30909 bool temp3 = false ;
30910 int val4 ;
30911 int ecode4 = 0 ;
30912 PyObject * obj0 = 0 ;
30913 PyObject * obj1 = 0 ;
30914 PyObject * obj2 = 0 ;
30915 PyObject * obj3 = 0 ;
30916 char * kwnames[] = {
30917 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
30918 };
30919
30920 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30921 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30922 if (!SWIG_IsOK(res1)) {
30923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30924 }
30925 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30926 ecode2 = SWIG_AsVal_long(obj1, &val2);
30927 if (!SWIG_IsOK(ecode2)) {
30928 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "2"" of type '" "long""'");
30929 }
30930 arg2 = static_cast< long >(val2);
30931 {
30932 arg3 = wxString_in_helper(obj2);
30933 if (arg3 == NULL) SWIG_fail;
30934 temp3 = true;
30935 }
30936 ecode4 = SWIG_AsVal_int(obj3, &val4);
30937 if (!SWIG_IsOK(ecode4)) {
30938 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "4"" of type '" "int""'");
30939 }
30940 arg4 = static_cast< int >(val4);
30941 {
30942 PyThreadState* __tstate = wxPyBeginAllowThreads();
30943 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
30944 wxPyEndAllowThreads(__tstate);
30945 if (PyErr_Occurred()) SWIG_fail;
30946 }
30947 resultobj = SWIG_From_long(static_cast< long >(result));
30948 {
30949 if (temp3)
30950 delete arg3;
30951 }
30952 return resultobj;
30953 fail:
30954 {
30955 if (temp3)
30956 delete arg3;
30957 }
30958 return NULL;
30959 }
30960
30961
30962 SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30963 PyObject *resultobj = 0;
30964 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30965 long arg2 ;
30966 wxListItem *arg3 = 0 ;
30967 long result;
30968 void *argp1 = 0 ;
30969 int res1 = 0 ;
30970 long val2 ;
30971 int ecode2 = 0 ;
30972 void *argp3 = 0 ;
30973 int res3 = 0 ;
30974 PyObject * obj0 = 0 ;
30975 PyObject * obj1 = 0 ;
30976 PyObject * obj2 = 0 ;
30977 char * kwnames[] = {
30978 (char *) "self",(char *) "col",(char *) "info", NULL
30979 };
30980
30981 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30982 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30983 if (!SWIG_IsOK(res1)) {
30984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30985 }
30986 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30987 ecode2 = SWIG_AsVal_long(obj1, &val2);
30988 if (!SWIG_IsOK(ecode2)) {
30989 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "2"" of type '" "long""'");
30990 }
30991 arg2 = static_cast< long >(val2);
30992 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
30993 if (!SWIG_IsOK(res3)) {
30994 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
30995 }
30996 if (!argp3) {
30997 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
30998 }
30999 arg3 = reinterpret_cast< wxListItem * >(argp3);
31000 {
31001 PyThreadState* __tstate = wxPyBeginAllowThreads();
31002 result = (long)(arg1)->InsertColumn(arg2,*arg3);
31003 wxPyEndAllowThreads(__tstate);
31004 if (PyErr_Occurred()) SWIG_fail;
31005 }
31006 resultobj = SWIG_From_long(static_cast< long >(result));
31007 return resultobj;
31008 fail:
31009 return NULL;
31010 }
31011
31012
31013 SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31014 PyObject *resultobj = 0;
31015 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31016 long arg2 ;
31017 wxString *arg3 = 0 ;
31018 int arg4 = (int) wxLIST_FORMAT_LEFT ;
31019 int arg5 = (int) -1 ;
31020 long result;
31021 void *argp1 = 0 ;
31022 int res1 = 0 ;
31023 long val2 ;
31024 int ecode2 = 0 ;
31025 bool temp3 = false ;
31026 int val4 ;
31027 int ecode4 = 0 ;
31028 int val5 ;
31029 int ecode5 = 0 ;
31030 PyObject * obj0 = 0 ;
31031 PyObject * obj1 = 0 ;
31032 PyObject * obj2 = 0 ;
31033 PyObject * obj3 = 0 ;
31034 PyObject * obj4 = 0 ;
31035 char * kwnames[] = {
31036 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
31037 };
31038
31039 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31040 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31041 if (!SWIG_IsOK(res1)) {
31042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31043 }
31044 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31045 ecode2 = SWIG_AsVal_long(obj1, &val2);
31046 if (!SWIG_IsOK(ecode2)) {
31047 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumn" "', expected argument " "2"" of type '" "long""'");
31048 }
31049 arg2 = static_cast< long >(val2);
31050 {
31051 arg3 = wxString_in_helper(obj2);
31052 if (arg3 == NULL) SWIG_fail;
31053 temp3 = true;
31054 }
31055 if (obj3) {
31056 ecode4 = SWIG_AsVal_int(obj3, &val4);
31057 if (!SWIG_IsOK(ecode4)) {
31058 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertColumn" "', expected argument " "4"" of type '" "int""'");
31059 }
31060 arg4 = static_cast< int >(val4);
31061 }
31062 if (obj4) {
31063 ecode5 = SWIG_AsVal_int(obj4, &val5);
31064 if (!SWIG_IsOK(ecode5)) {
31065 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_InsertColumn" "', expected argument " "5"" of type '" "int""'");
31066 }
31067 arg5 = static_cast< int >(val5);
31068 }
31069 {
31070 PyThreadState* __tstate = wxPyBeginAllowThreads();
31071 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
31072 wxPyEndAllowThreads(__tstate);
31073 if (PyErr_Occurred()) SWIG_fail;
31074 }
31075 resultobj = SWIG_From_long(static_cast< long >(result));
31076 {
31077 if (temp3)
31078 delete arg3;
31079 }
31080 return resultobj;
31081 fail:
31082 {
31083 if (temp3)
31084 delete arg3;
31085 }
31086 return NULL;
31087 }
31088
31089
31090 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31091 PyObject *resultobj = 0;
31092 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31093 long arg2 ;
31094 void *argp1 = 0 ;
31095 int res1 = 0 ;
31096 long val2 ;
31097 int ecode2 = 0 ;
31098 PyObject * obj0 = 0 ;
31099 PyObject * obj1 = 0 ;
31100 char * kwnames[] = {
31101 (char *) "self",(char *) "count", NULL
31102 };
31103
31104 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail;
31105 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31106 if (!SWIG_IsOK(res1)) {
31107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31108 }
31109 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31110 ecode2 = SWIG_AsVal_long(obj1, &val2);
31111 if (!SWIG_IsOK(ecode2)) {
31112 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemCount" "', expected argument " "2"" of type '" "long""'");
31113 }
31114 arg2 = static_cast< long >(val2);
31115 {
31116 PyThreadState* __tstate = wxPyBeginAllowThreads();
31117 (arg1)->SetItemCount(arg2);
31118 wxPyEndAllowThreads(__tstate);
31119 if (PyErr_Occurred()) SWIG_fail;
31120 }
31121 resultobj = SWIG_Py_Void();
31122 return resultobj;
31123 fail:
31124 return NULL;
31125 }
31126
31127
31128 SWIGINTERN PyObject *_wrap_ListCtrl_ScrollList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31129 PyObject *resultobj = 0;
31130 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31131 int arg2 ;
31132 int arg3 ;
31133 bool result;
31134 void *argp1 = 0 ;
31135 int res1 = 0 ;
31136 int val2 ;
31137 int ecode2 = 0 ;
31138 int val3 ;
31139 int ecode3 = 0 ;
31140 PyObject * obj0 = 0 ;
31141 PyObject * obj1 = 0 ;
31142 PyObject * obj2 = 0 ;
31143 char * kwnames[] = {
31144 (char *) "self",(char *) "dx",(char *) "dy", NULL
31145 };
31146
31147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31149 if (!SWIG_IsOK(res1)) {
31150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ScrollList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31151 }
31152 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31153 ecode2 = SWIG_AsVal_int(obj1, &val2);
31154 if (!SWIG_IsOK(ecode2)) {
31155 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_ScrollList" "', expected argument " "2"" of type '" "int""'");
31156 }
31157 arg2 = static_cast< int >(val2);
31158 ecode3 = SWIG_AsVal_int(obj2, &val3);
31159 if (!SWIG_IsOK(ecode3)) {
31160 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_ScrollList" "', expected argument " "3"" of type '" "int""'");
31161 }
31162 arg3 = static_cast< int >(val3);
31163 {
31164 PyThreadState* __tstate = wxPyBeginAllowThreads();
31165 result = (bool)(arg1)->ScrollList(arg2,arg3);
31166 wxPyEndAllowThreads(__tstate);
31167 if (PyErr_Occurred()) SWIG_fail;
31168 }
31169 {
31170 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31171 }
31172 return resultobj;
31173 fail:
31174 return NULL;
31175 }
31176
31177
31178 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31179 PyObject *resultobj = 0;
31180 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31181 long arg2 ;
31182 wxColour *arg3 = 0 ;
31183 void *argp1 = 0 ;
31184 int res1 = 0 ;
31185 long val2 ;
31186 int ecode2 = 0 ;
31187 wxColour temp3 ;
31188 PyObject * obj0 = 0 ;
31189 PyObject * obj1 = 0 ;
31190 PyObject * obj2 = 0 ;
31191 char * kwnames[] = {
31192 (char *) "self",(char *) "item",(char *) "col", NULL
31193 };
31194
31195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31197 if (!SWIG_IsOK(res1)) {
31198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31199 }
31200 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31201 ecode2 = SWIG_AsVal_long(obj1, &val2);
31202 if (!SWIG_IsOK(ecode2)) {
31203 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31204 }
31205 arg2 = static_cast< long >(val2);
31206 {
31207 arg3 = &temp3;
31208 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31209 }
31210 {
31211 PyThreadState* __tstate = wxPyBeginAllowThreads();
31212 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
31213 wxPyEndAllowThreads(__tstate);
31214 if (PyErr_Occurred()) SWIG_fail;
31215 }
31216 resultobj = SWIG_Py_Void();
31217 return resultobj;
31218 fail:
31219 return NULL;
31220 }
31221
31222
31223 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31224 PyObject *resultobj = 0;
31225 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31226 long arg2 ;
31227 wxColour result;
31228 void *argp1 = 0 ;
31229 int res1 = 0 ;
31230 long val2 ;
31231 int ecode2 = 0 ;
31232 PyObject * obj0 = 0 ;
31233 PyObject * obj1 = 0 ;
31234 char * kwnames[] = {
31235 (char *) "self",(char *) "item", NULL
31236 };
31237
31238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
31239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31240 if (!SWIG_IsOK(res1)) {
31241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31242 }
31243 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31244 ecode2 = SWIG_AsVal_long(obj1, &val2);
31245 if (!SWIG_IsOK(ecode2)) {
31246 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31247 }
31248 arg2 = static_cast< long >(val2);
31249 {
31250 PyThreadState* __tstate = wxPyBeginAllowThreads();
31251 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
31252 wxPyEndAllowThreads(__tstate);
31253 if (PyErr_Occurred()) SWIG_fail;
31254 }
31255 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31256 return resultobj;
31257 fail:
31258 return NULL;
31259 }
31260
31261
31262 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31263 PyObject *resultobj = 0;
31264 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31265 long arg2 ;
31266 wxColour *arg3 = 0 ;
31267 void *argp1 = 0 ;
31268 int res1 = 0 ;
31269 long val2 ;
31270 int ecode2 = 0 ;
31271 wxColour temp3 ;
31272 PyObject * obj0 = 0 ;
31273 PyObject * obj1 = 0 ;
31274 PyObject * obj2 = 0 ;
31275 char * kwnames[] = {
31276 (char *) "self",(char *) "item",(char *) "col", NULL
31277 };
31278
31279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31281 if (!SWIG_IsOK(res1)) {
31282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31283 }
31284 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31285 ecode2 = SWIG_AsVal_long(obj1, &val2);
31286 if (!SWIG_IsOK(ecode2)) {
31287 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31288 }
31289 arg2 = static_cast< long >(val2);
31290 {
31291 arg3 = &temp3;
31292 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31293 }
31294 {
31295 PyThreadState* __tstate = wxPyBeginAllowThreads();
31296 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
31297 wxPyEndAllowThreads(__tstate);
31298 if (PyErr_Occurred()) SWIG_fail;
31299 }
31300 resultobj = SWIG_Py_Void();
31301 return resultobj;
31302 fail:
31303 return NULL;
31304 }
31305
31306
31307 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31308 PyObject *resultobj = 0;
31309 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31310 long arg2 ;
31311 wxColour result;
31312 void *argp1 = 0 ;
31313 int res1 = 0 ;
31314 long val2 ;
31315 int ecode2 = 0 ;
31316 PyObject * obj0 = 0 ;
31317 PyObject * obj1 = 0 ;
31318 char * kwnames[] = {
31319 (char *) "self",(char *) "item", NULL
31320 };
31321
31322 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
31323 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31324 if (!SWIG_IsOK(res1)) {
31325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31326 }
31327 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31328 ecode2 = SWIG_AsVal_long(obj1, &val2);
31329 if (!SWIG_IsOK(ecode2)) {
31330 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31331 }
31332 arg2 = static_cast< long >(val2);
31333 {
31334 PyThreadState* __tstate = wxPyBeginAllowThreads();
31335 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
31336 wxPyEndAllowThreads(__tstate);
31337 if (PyErr_Occurred()) SWIG_fail;
31338 }
31339 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31340 return resultobj;
31341 fail:
31342 return NULL;
31343 }
31344
31345
31346 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31347 PyObject *resultobj = 0;
31348 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31349 long arg2 ;
31350 wxFont *arg3 = 0 ;
31351 void *argp1 = 0 ;
31352 int res1 = 0 ;
31353 long val2 ;
31354 int ecode2 = 0 ;
31355 void *argp3 = 0 ;
31356 int res3 = 0 ;
31357 PyObject * obj0 = 0 ;
31358 PyObject * obj1 = 0 ;
31359 PyObject * obj2 = 0 ;
31360 char * kwnames[] = {
31361 (char *) "self",(char *) "item",(char *) "f", NULL
31362 };
31363
31364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31366 if (!SWIG_IsOK(res1)) {
31367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31368 }
31369 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31370 ecode2 = SWIG_AsVal_long(obj1, &val2);
31371 if (!SWIG_IsOK(ecode2)) {
31372 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemFont" "', expected argument " "2"" of type '" "long""'");
31373 }
31374 arg2 = static_cast< long >(val2);
31375 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
31376 if (!SWIG_IsOK(res3)) {
31377 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31378 }
31379 if (!argp3) {
31380 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31381 }
31382 arg3 = reinterpret_cast< wxFont * >(argp3);
31383 {
31384 PyThreadState* __tstate = wxPyBeginAllowThreads();
31385 (arg1)->SetItemFont(arg2,(wxFont const &)*arg3);
31386 wxPyEndAllowThreads(__tstate);
31387 if (PyErr_Occurred()) SWIG_fail;
31388 }
31389 resultobj = SWIG_Py_Void();
31390 return resultobj;
31391 fail:
31392 return NULL;
31393 }
31394
31395
31396 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31397 PyObject *resultobj = 0;
31398 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31399 long arg2 ;
31400 wxFont result;
31401 void *argp1 = 0 ;
31402 int res1 = 0 ;
31403 long val2 ;
31404 int ecode2 = 0 ;
31405 PyObject * obj0 = 0 ;
31406 PyObject * obj1 = 0 ;
31407 char * kwnames[] = {
31408 (char *) "self",(char *) "item", NULL
31409 };
31410
31411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
31412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31413 if (!SWIG_IsOK(res1)) {
31414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31415 }
31416 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31417 ecode2 = SWIG_AsVal_long(obj1, &val2);
31418 if (!SWIG_IsOK(ecode2)) {
31419 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemFont" "', expected argument " "2"" of type '" "long""'");
31420 }
31421 arg2 = static_cast< long >(val2);
31422 {
31423 PyThreadState* __tstate = wxPyBeginAllowThreads();
31424 result = ((wxPyListCtrl const *)arg1)->GetItemFont(arg2);
31425 wxPyEndAllowThreads(__tstate);
31426 if (PyErr_Occurred()) SWIG_fail;
31427 }
31428 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
31429 return resultobj;
31430 fail:
31431 return NULL;
31432 }
31433
31434
31435 SWIGINTERN PyObject *_wrap_ListCtrl_SortItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31436 PyObject *resultobj = 0;
31437 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31438 PyObject *arg2 = (PyObject *) 0 ;
31439 bool result;
31440 void *argp1 = 0 ;
31441 int res1 = 0 ;
31442 PyObject * obj0 = 0 ;
31443 PyObject * obj1 = 0 ;
31444 char * kwnames[] = {
31445 (char *) "self",(char *) "func", NULL
31446 };
31447
31448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) SWIG_fail;
31449 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31450 if (!SWIG_IsOK(res1)) {
31451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SortItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31452 }
31453 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31454 arg2 = obj1;
31455 {
31456 PyThreadState* __tstate = wxPyBeginAllowThreads();
31457 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
31458 wxPyEndAllowThreads(__tstate);
31459 if (PyErr_Occurred()) SWIG_fail;
31460 }
31461 {
31462 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31463 }
31464 return resultobj;
31465 fail:
31466 return NULL;
31467 }
31468
31469
31470 SWIGINTERN PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31471 PyObject *resultobj = 0;
31472 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31473 wxWindow *result = 0 ;
31474 void *argp1 = 0 ;
31475 int res1 = 0 ;
31476 PyObject *swig_obj[1] ;
31477
31478 if (!args) SWIG_fail;
31479 swig_obj[0] = args;
31480 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31481 if (!SWIG_IsOK(res1)) {
31482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetMainWindow" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31483 }
31484 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31485 {
31486 PyThreadState* __tstate = wxPyBeginAllowThreads();
31487 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
31488 wxPyEndAllowThreads(__tstate);
31489 if (PyErr_Occurred()) SWIG_fail;
31490 }
31491 {
31492 resultobj = wxPyMake_wxObject(result, 0);
31493 }
31494 return resultobj;
31495 fail:
31496 return NULL;
31497 }
31498
31499
31500 SWIGINTERN PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31501 PyObject *resultobj = 0;
31502 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
31503 SwigValueWrapper<wxVisualAttributes > result;
31504 int val1 ;
31505 int ecode1 = 0 ;
31506 PyObject * obj0 = 0 ;
31507 char * kwnames[] = {
31508 (char *) "variant", NULL
31509 };
31510
31511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
31512 if (obj0) {
31513 ecode1 = SWIG_AsVal_int(obj0, &val1);
31514 if (!SWIG_IsOK(ecode1)) {
31515 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
31516 }
31517 arg1 = static_cast< wxWindowVariant >(val1);
31518 }
31519 {
31520 if (!wxPyCheckForApp()) SWIG_fail;
31521 PyThreadState* __tstate = wxPyBeginAllowThreads();
31522 result = wxPyListCtrl::GetClassDefaultAttributes(arg1);
31523 wxPyEndAllowThreads(__tstate);
31524 if (PyErr_Occurred()) SWIG_fail;
31525 }
31526 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
31527 return resultobj;
31528 fail:
31529 return NULL;
31530 }
31531
31532
31533 SWIGINTERN PyObject *ListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31534 PyObject *obj;
31535 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31536 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyListCtrl, SWIG_NewClientData(obj));
31537 return SWIG_Py_Void();
31538 }
31539
31540 SWIGINTERN PyObject *ListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31541 return SWIG_Python_InitShadowInstance(args);
31542 }
31543
31544 SWIGINTERN PyObject *_wrap_new_ListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31545 PyObject *resultobj = 0;
31546 wxWindow *arg1 = (wxWindow *) 0 ;
31547 int arg2 = (int) -1 ;
31548 wxPoint const &arg3_defvalue = wxDefaultPosition ;
31549 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
31550 wxSize const &arg4_defvalue = wxDefaultSize ;
31551 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
31552 long arg5 = (long) wxLC_REPORT ;
31553 wxValidator const &arg6_defvalue = wxDefaultValidator ;
31554 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
31555 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
31556 wxString *arg7 = (wxString *) &arg7_defvalue ;
31557 wxListView *result = 0 ;
31558 void *argp1 = 0 ;
31559 int res1 = 0 ;
31560 int val2 ;
31561 int ecode2 = 0 ;
31562 wxPoint temp3 ;
31563 wxSize temp4 ;
31564 long val5 ;
31565 int ecode5 = 0 ;
31566 void *argp6 = 0 ;
31567 int res6 = 0 ;
31568 bool temp7 = false ;
31569 PyObject * obj0 = 0 ;
31570 PyObject * obj1 = 0 ;
31571 PyObject * obj2 = 0 ;
31572 PyObject * obj3 = 0 ;
31573 PyObject * obj4 = 0 ;
31574 PyObject * obj5 = 0 ;
31575 PyObject * obj6 = 0 ;
31576 char * kwnames[] = {
31577 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
31578 };
31579
31580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
31582 if (!SWIG_IsOK(res1)) {
31583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListView" "', expected argument " "1"" of type '" "wxWindow *""'");
31584 }
31585 arg1 = reinterpret_cast< wxWindow * >(argp1);
31586 if (obj1) {
31587 ecode2 = SWIG_AsVal_int(obj1, &val2);
31588 if (!SWIG_IsOK(ecode2)) {
31589 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListView" "', expected argument " "2"" of type '" "int""'");
31590 }
31591 arg2 = static_cast< int >(val2);
31592 }
31593 if (obj2) {
31594 {
31595 arg3 = &temp3;
31596 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31597 }
31598 }
31599 if (obj3) {
31600 {
31601 arg4 = &temp4;
31602 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
31603 }
31604 }
31605 if (obj4) {
31606 ecode5 = SWIG_AsVal_long(obj4, &val5);
31607 if (!SWIG_IsOK(ecode5)) {
31608 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListView" "', expected argument " "5"" of type '" "long""'");
31609 }
31610 arg5 = static_cast< long >(val5);
31611 }
31612 if (obj5) {
31613 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
31614 if (!SWIG_IsOK(res6)) {
31615 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
31616 }
31617 if (!argp6) {
31618 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
31619 }
31620 arg6 = reinterpret_cast< wxValidator * >(argp6);
31621 }
31622 if (obj6) {
31623 {
31624 arg7 = wxString_in_helper(obj6);
31625 if (arg7 == NULL) SWIG_fail;
31626 temp7 = true;
31627 }
31628 }
31629 {
31630 if (!wxPyCheckForApp()) SWIG_fail;
31631 PyThreadState* __tstate = wxPyBeginAllowThreads();
31632 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
31633 wxPyEndAllowThreads(__tstate);
31634 if (PyErr_Occurred()) SWIG_fail;
31635 }
31636 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_NEW | 0 );
31637 {
31638 if (temp7)
31639 delete arg7;
31640 }
31641 return resultobj;
31642 fail:
31643 {
31644 if (temp7)
31645 delete arg7;
31646 }
31647 return NULL;
31648 }
31649
31650
31651 SWIGINTERN PyObject *_wrap_new_PreListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31652 PyObject *resultobj = 0;
31653 wxListView *result = 0 ;
31654
31655 if (!SWIG_Python_UnpackTuple(args,"new_PreListView",0,0,0)) SWIG_fail;
31656 {
31657 if (!wxPyCheckForApp()) SWIG_fail;
31658 PyThreadState* __tstate = wxPyBeginAllowThreads();
31659 result = (wxListView *)new wxListView();
31660 wxPyEndAllowThreads(__tstate);
31661 if (PyErr_Occurred()) SWIG_fail;
31662 }
31663 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_OWN | 0 );
31664 return resultobj;
31665 fail:
31666 return NULL;
31667 }
31668
31669
31670 SWIGINTERN PyObject *_wrap_ListView_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31671 PyObject *resultobj = 0;
31672 wxListView *arg1 = (wxListView *) 0 ;
31673 wxWindow *arg2 = (wxWindow *) 0 ;
31674 int arg3 = (int) -1 ;
31675 wxPoint const &arg4_defvalue = wxDefaultPosition ;
31676 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
31677 wxSize const &arg5_defvalue = wxDefaultSize ;
31678 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
31679 long arg6 = (long) wxLC_REPORT ;
31680 wxValidator const &arg7_defvalue = wxDefaultValidator ;
31681 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
31682 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
31683 wxString *arg8 = (wxString *) &arg8_defvalue ;
31684 bool result;
31685 void *argp1 = 0 ;
31686 int res1 = 0 ;
31687 void *argp2 = 0 ;
31688 int res2 = 0 ;
31689 int val3 ;
31690 int ecode3 = 0 ;
31691 wxPoint temp4 ;
31692 wxSize temp5 ;
31693 long val6 ;
31694 int ecode6 = 0 ;
31695 void *argp7 = 0 ;
31696 int res7 = 0 ;
31697 bool temp8 = false ;
31698 PyObject * obj0 = 0 ;
31699 PyObject * obj1 = 0 ;
31700 PyObject * obj2 = 0 ;
31701 PyObject * obj3 = 0 ;
31702 PyObject * obj4 = 0 ;
31703 PyObject * obj5 = 0 ;
31704 PyObject * obj6 = 0 ;
31705 PyObject * obj7 = 0 ;
31706 char * kwnames[] = {
31707 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
31708 };
31709
31710 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
31711 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31712 if (!SWIG_IsOK(res1)) {
31713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Create" "', expected argument " "1"" of type '" "wxListView *""'");
31714 }
31715 arg1 = reinterpret_cast< wxListView * >(argp1);
31716 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31717 if (!SWIG_IsOK(res2)) {
31718 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListView_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
31719 }
31720 arg2 = reinterpret_cast< wxWindow * >(argp2);
31721 if (obj2) {
31722 ecode3 = SWIG_AsVal_int(obj2, &val3);
31723 if (!SWIG_IsOK(ecode3)) {
31724 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Create" "', expected argument " "3"" of type '" "int""'");
31725 }
31726 arg3 = static_cast< int >(val3);
31727 }
31728 if (obj3) {
31729 {
31730 arg4 = &temp4;
31731 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
31732 }
31733 }
31734 if (obj4) {
31735 {
31736 arg5 = &temp5;
31737 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
31738 }
31739 }
31740 if (obj5) {
31741 ecode6 = SWIG_AsVal_long(obj5, &val6);
31742 if (!SWIG_IsOK(ecode6)) {
31743 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListView_Create" "', expected argument " "6"" of type '" "long""'");
31744 }
31745 arg6 = static_cast< long >(val6);
31746 }
31747 if (obj6) {
31748 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
31749 if (!SWIG_IsOK(res7)) {
31750 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
31751 }
31752 if (!argp7) {
31753 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
31754 }
31755 arg7 = reinterpret_cast< wxValidator * >(argp7);
31756 }
31757 if (obj7) {
31758 {
31759 arg8 = wxString_in_helper(obj7);
31760 if (arg8 == NULL) SWIG_fail;
31761 temp8 = true;
31762 }
31763 }
31764 {
31765 PyThreadState* __tstate = wxPyBeginAllowThreads();
31766 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
31767 wxPyEndAllowThreads(__tstate);
31768 if (PyErr_Occurred()) SWIG_fail;
31769 }
31770 {
31771 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31772 }
31773 {
31774 if (temp8)
31775 delete arg8;
31776 }
31777 return resultobj;
31778 fail:
31779 {
31780 if (temp8)
31781 delete arg8;
31782 }
31783 return NULL;
31784 }
31785
31786
31787 SWIGINTERN PyObject *_wrap_ListView_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31788 PyObject *resultobj = 0;
31789 wxListView *arg1 = (wxListView *) 0 ;
31790 long arg2 ;
31791 bool arg3 = (bool) true ;
31792 void *argp1 = 0 ;
31793 int res1 = 0 ;
31794 long val2 ;
31795 int ecode2 = 0 ;
31796 bool val3 ;
31797 int ecode3 = 0 ;
31798 PyObject * obj0 = 0 ;
31799 PyObject * obj1 = 0 ;
31800 PyObject * obj2 = 0 ;
31801 char * kwnames[] = {
31802 (char *) "self",(char *) "n",(char *) "on", NULL
31803 };
31804
31805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31807 if (!SWIG_IsOK(res1)) {
31808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Select" "', expected argument " "1"" of type '" "wxListView *""'");
31809 }
31810 arg1 = reinterpret_cast< wxListView * >(argp1);
31811 ecode2 = SWIG_AsVal_long(obj1, &val2);
31812 if (!SWIG_IsOK(ecode2)) {
31813 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Select" "', expected argument " "2"" of type '" "long""'");
31814 }
31815 arg2 = static_cast< long >(val2);
31816 if (obj2) {
31817 ecode3 = SWIG_AsVal_bool(obj2, &val3);
31818 if (!SWIG_IsOK(ecode3)) {
31819 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Select" "', expected argument " "3"" of type '" "bool""'");
31820 }
31821 arg3 = static_cast< bool >(val3);
31822 }
31823 {
31824 PyThreadState* __tstate = wxPyBeginAllowThreads();
31825 (arg1)->Select(arg2,arg3);
31826 wxPyEndAllowThreads(__tstate);
31827 if (PyErr_Occurred()) SWIG_fail;
31828 }
31829 resultobj = SWIG_Py_Void();
31830 return resultobj;
31831 fail:
31832 return NULL;
31833 }
31834
31835
31836 SWIGINTERN PyObject *_wrap_ListView_Focus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31837 PyObject *resultobj = 0;
31838 wxListView *arg1 = (wxListView *) 0 ;
31839 long arg2 ;
31840 void *argp1 = 0 ;
31841 int res1 = 0 ;
31842 long val2 ;
31843 int ecode2 = 0 ;
31844 PyObject * obj0 = 0 ;
31845 PyObject * obj1 = 0 ;
31846 char * kwnames[] = {
31847 (char *) "self",(char *) "index", NULL
31848 };
31849
31850 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) SWIG_fail;
31851 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31852 if (!SWIG_IsOK(res1)) {
31853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Focus" "', expected argument " "1"" of type '" "wxListView *""'");
31854 }
31855 arg1 = reinterpret_cast< wxListView * >(argp1);
31856 ecode2 = SWIG_AsVal_long(obj1, &val2);
31857 if (!SWIG_IsOK(ecode2)) {
31858 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Focus" "', expected argument " "2"" of type '" "long""'");
31859 }
31860 arg2 = static_cast< long >(val2);
31861 {
31862 PyThreadState* __tstate = wxPyBeginAllowThreads();
31863 (arg1)->Focus(arg2);
31864 wxPyEndAllowThreads(__tstate);
31865 if (PyErr_Occurred()) SWIG_fail;
31866 }
31867 resultobj = SWIG_Py_Void();
31868 return resultobj;
31869 fail:
31870 return NULL;
31871 }
31872
31873
31874 SWIGINTERN PyObject *_wrap_ListView_GetFocusedItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31875 PyObject *resultobj = 0;
31876 wxListView *arg1 = (wxListView *) 0 ;
31877 long result;
31878 void *argp1 = 0 ;
31879 int res1 = 0 ;
31880 PyObject *swig_obj[1] ;
31881
31882 if (!args) SWIG_fail;
31883 swig_obj[0] = args;
31884 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31885 if (!SWIG_IsOK(res1)) {
31886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFocusedItem" "', expected argument " "1"" of type '" "wxListView const *""'");
31887 }
31888 arg1 = reinterpret_cast< wxListView * >(argp1);
31889 {
31890 PyThreadState* __tstate = wxPyBeginAllowThreads();
31891 result = (long)((wxListView const *)arg1)->GetFocusedItem();
31892 wxPyEndAllowThreads(__tstate);
31893 if (PyErr_Occurred()) SWIG_fail;
31894 }
31895 resultobj = SWIG_From_long(static_cast< long >(result));
31896 return resultobj;
31897 fail:
31898 return NULL;
31899 }
31900
31901
31902 SWIGINTERN PyObject *_wrap_ListView_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31903 PyObject *resultobj = 0;
31904 wxListView *arg1 = (wxListView *) 0 ;
31905 long arg2 ;
31906 long result;
31907 void *argp1 = 0 ;
31908 int res1 = 0 ;
31909 long val2 ;
31910 int ecode2 = 0 ;
31911 PyObject * obj0 = 0 ;
31912 PyObject * obj1 = 0 ;
31913 char * kwnames[] = {
31914 (char *) "self",(char *) "item", NULL
31915 };
31916
31917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail;
31918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31919 if (!SWIG_IsOK(res1)) {
31920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetNextSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
31921 }
31922 arg1 = reinterpret_cast< wxListView * >(argp1);
31923 ecode2 = SWIG_AsVal_long(obj1, &val2);
31924 if (!SWIG_IsOK(ecode2)) {
31925 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_GetNextSelected" "', expected argument " "2"" of type '" "long""'");
31926 }
31927 arg2 = static_cast< long >(val2);
31928 {
31929 PyThreadState* __tstate = wxPyBeginAllowThreads();
31930 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
31931 wxPyEndAllowThreads(__tstate);
31932 if (PyErr_Occurred()) SWIG_fail;
31933 }
31934 resultobj = SWIG_From_long(static_cast< long >(result));
31935 return resultobj;
31936 fail:
31937 return NULL;
31938 }
31939
31940
31941 SWIGINTERN PyObject *_wrap_ListView_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31942 PyObject *resultobj = 0;
31943 wxListView *arg1 = (wxListView *) 0 ;
31944 long result;
31945 void *argp1 = 0 ;
31946 int res1 = 0 ;
31947 PyObject *swig_obj[1] ;
31948
31949 if (!args) SWIG_fail;
31950 swig_obj[0] = args;
31951 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31952 if (!SWIG_IsOK(res1)) {
31953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFirstSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
31954 }
31955 arg1 = reinterpret_cast< wxListView * >(argp1);
31956 {
31957 PyThreadState* __tstate = wxPyBeginAllowThreads();
31958 result = (long)((wxListView const *)arg1)->GetFirstSelected();
31959 wxPyEndAllowThreads(__tstate);
31960 if (PyErr_Occurred()) SWIG_fail;
31961 }
31962 resultobj = SWIG_From_long(static_cast< long >(result));
31963 return resultobj;
31964 fail:
31965 return NULL;
31966 }
31967
31968
31969 SWIGINTERN PyObject *_wrap_ListView_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31970 PyObject *resultobj = 0;
31971 wxListView *arg1 = (wxListView *) 0 ;
31972 long arg2 ;
31973 bool result;
31974 void *argp1 = 0 ;
31975 int res1 = 0 ;
31976 long val2 ;
31977 int ecode2 = 0 ;
31978 PyObject * obj0 = 0 ;
31979 PyObject * obj1 = 0 ;
31980 char * kwnames[] = {
31981 (char *) "self",(char *) "index", NULL
31982 };
31983
31984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
31985 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31986 if (!SWIG_IsOK(res1)) {
31987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_IsSelected" "', expected argument " "1"" of type '" "wxListView *""'");
31988 }
31989 arg1 = reinterpret_cast< wxListView * >(argp1);
31990 ecode2 = SWIG_AsVal_long(obj1, &val2);
31991 if (!SWIG_IsOK(ecode2)) {
31992 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_IsSelected" "', expected argument " "2"" of type '" "long""'");
31993 }
31994 arg2 = static_cast< long >(val2);
31995 {
31996 PyThreadState* __tstate = wxPyBeginAllowThreads();
31997 result = (bool)(arg1)->IsSelected(arg2);
31998 wxPyEndAllowThreads(__tstate);
31999 if (PyErr_Occurred()) SWIG_fail;
32000 }
32001 {
32002 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32003 }
32004 return resultobj;
32005 fail:
32006 return NULL;
32007 }
32008
32009
32010 SWIGINTERN PyObject *_wrap_ListView_SetColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32011 PyObject *resultobj = 0;
32012 wxListView *arg1 = (wxListView *) 0 ;
32013 int arg2 ;
32014 int arg3 ;
32015 void *argp1 = 0 ;
32016 int res1 = 0 ;
32017 int val2 ;
32018 int ecode2 = 0 ;
32019 int val3 ;
32020 int ecode3 = 0 ;
32021 PyObject * obj0 = 0 ;
32022 PyObject * obj1 = 0 ;
32023 PyObject * obj2 = 0 ;
32024 char * kwnames[] = {
32025 (char *) "self",(char *) "col",(char *) "image", NULL
32026 };
32027
32028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32030 if (!SWIG_IsOK(res1)) {
32031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_SetColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32032 }
32033 arg1 = reinterpret_cast< wxListView * >(argp1);
32034 ecode2 = SWIG_AsVal_int(obj1, &val2);
32035 if (!SWIG_IsOK(ecode2)) {
32036 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_SetColumnImage" "', expected argument " "2"" of type '" "int""'");
32037 }
32038 arg2 = static_cast< int >(val2);
32039 ecode3 = SWIG_AsVal_int(obj2, &val3);
32040 if (!SWIG_IsOK(ecode3)) {
32041 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_SetColumnImage" "', expected argument " "3"" of type '" "int""'");
32042 }
32043 arg3 = static_cast< int >(val3);
32044 {
32045 PyThreadState* __tstate = wxPyBeginAllowThreads();
32046 (arg1)->SetColumnImage(arg2,arg3);
32047 wxPyEndAllowThreads(__tstate);
32048 if (PyErr_Occurred()) SWIG_fail;
32049 }
32050 resultobj = SWIG_Py_Void();
32051 return resultobj;
32052 fail:
32053 return NULL;
32054 }
32055
32056
32057 SWIGINTERN PyObject *_wrap_ListView_ClearColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32058 PyObject *resultobj = 0;
32059 wxListView *arg1 = (wxListView *) 0 ;
32060 int arg2 ;
32061 void *argp1 = 0 ;
32062 int res1 = 0 ;
32063 int val2 ;
32064 int ecode2 = 0 ;
32065 PyObject * obj0 = 0 ;
32066 PyObject * obj1 = 0 ;
32067 char * kwnames[] = {
32068 (char *) "self",(char *) "col", NULL
32069 };
32070
32071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) SWIG_fail;
32072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32073 if (!SWIG_IsOK(res1)) {
32074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_ClearColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32075 }
32076 arg1 = reinterpret_cast< wxListView * >(argp1);
32077 ecode2 = SWIG_AsVal_int(obj1, &val2);
32078 if (!SWIG_IsOK(ecode2)) {
32079 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_ClearColumnImage" "', expected argument " "2"" of type '" "int""'");
32080 }
32081 arg2 = static_cast< int >(val2);
32082 {
32083 PyThreadState* __tstate = wxPyBeginAllowThreads();
32084 (arg1)->ClearColumnImage(arg2);
32085 wxPyEndAllowThreads(__tstate);
32086 if (PyErr_Occurred()) SWIG_fail;
32087 }
32088 resultobj = SWIG_Py_Void();
32089 return resultobj;
32090 fail:
32091 return NULL;
32092 }
32093
32094
32095 SWIGINTERN PyObject *ListView_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32096 PyObject *obj;
32097 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32098 SWIG_TypeNewClientData(SWIGTYPE_p_wxListView, SWIG_NewClientData(obj));
32099 return SWIG_Py_Void();
32100 }
32101
32102 SWIGINTERN PyObject *ListView_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32103 return SWIG_Python_InitShadowInstance(args);
32104 }
32105
32106 SWIGINTERN int TreeCtrlNameStr_set(PyObject *) {
32107 SWIG_Error(SWIG_AttributeError,"Variable TreeCtrlNameStr is read-only.");
32108 return 1;
32109 }
32110
32111
32112 SWIGINTERN PyObject *TreeCtrlNameStr_get(void) {
32113 PyObject *pyobj = 0;
32114
32115 {
32116 #if wxUSE_UNICODE
32117 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32118 #else
32119 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32120 #endif
32121 }
32122 return pyobj;
32123 }
32124
32125
32126 SWIGINTERN PyObject *_wrap_new_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32127 PyObject *resultobj = 0;
32128 wxTreeItemId *result = 0 ;
32129
32130 if (!SWIG_Python_UnpackTuple(args,"new_TreeItemId",0,0,0)) SWIG_fail;
32131 {
32132 PyThreadState* __tstate = wxPyBeginAllowThreads();
32133 result = (wxTreeItemId *)new wxTreeItemId();
32134 wxPyEndAllowThreads(__tstate);
32135 if (PyErr_Occurred()) SWIG_fail;
32136 }
32137 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_NEW | 0 );
32138 return resultobj;
32139 fail:
32140 return NULL;
32141 }
32142
32143
32144 SWIGINTERN PyObject *_wrap_delete_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32145 PyObject *resultobj = 0;
32146 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32147 void *argp1 = 0 ;
32148 int res1 = 0 ;
32149 PyObject *swig_obj[1] ;
32150
32151 if (!args) SWIG_fail;
32152 swig_obj[0] = args;
32153 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_DISOWN | 0 );
32154 if (!SWIG_IsOK(res1)) {
32155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemId" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32156 }
32157 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32158 {
32159 PyThreadState* __tstate = wxPyBeginAllowThreads();
32160 delete arg1;
32161
32162 wxPyEndAllowThreads(__tstate);
32163 if (PyErr_Occurred()) SWIG_fail;
32164 }
32165 resultobj = SWIG_Py_Void();
32166 return resultobj;
32167 fail:
32168 return NULL;
32169 }
32170
32171
32172 SWIGINTERN PyObject *_wrap_TreeItemId_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32173 PyObject *resultobj = 0;
32174 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32175 bool result;
32176 void *argp1 = 0 ;
32177 int res1 = 0 ;
32178 PyObject *swig_obj[1] ;
32179
32180 if (!args) SWIG_fail;
32181 swig_obj[0] = args;
32182 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32183 if (!SWIG_IsOK(res1)) {
32184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_IsOk" "', expected argument " "1"" of type '" "wxTreeItemId const *""'");
32185 }
32186 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32187 {
32188 PyThreadState* __tstate = wxPyBeginAllowThreads();
32189 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
32190 wxPyEndAllowThreads(__tstate);
32191 if (PyErr_Occurred()) SWIG_fail;
32192 }
32193 {
32194 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32195 }
32196 return resultobj;
32197 fail:
32198 return NULL;
32199 }
32200
32201
32202 SWIGINTERN PyObject *_wrap_TreeItemId___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32203 PyObject *resultobj = 0;
32204 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32205 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32206 bool result;
32207 void *argp1 = 0 ;
32208 int res1 = 0 ;
32209 void *argp2 = 0 ;
32210 int res2 = 0 ;
32211 PyObject * obj0 = 0 ;
32212 PyObject * obj1 = 0 ;
32213 char * kwnames[] = {
32214 (char *) "self",(char *) "other", NULL
32215 };
32216
32217 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
32218 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32219 if (!SWIG_IsOK(res1)) {
32220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___eq__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32221 }
32222 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32223 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32224 if (!SWIG_IsOK(res2)) {
32225 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___eq__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32226 }
32227 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32228 {
32229 PyThreadState* __tstate = wxPyBeginAllowThreads();
32230 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
32231 wxPyEndAllowThreads(__tstate);
32232 if (PyErr_Occurred()) SWIG_fail;
32233 }
32234 {
32235 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32236 }
32237 return resultobj;
32238 fail:
32239 return NULL;
32240 }
32241
32242
32243 SWIGINTERN PyObject *_wrap_TreeItemId___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32244 PyObject *resultobj = 0;
32245 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32246 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32247 bool result;
32248 void *argp1 = 0 ;
32249 int res1 = 0 ;
32250 void *argp2 = 0 ;
32251 int res2 = 0 ;
32252 PyObject * obj0 = 0 ;
32253 PyObject * obj1 = 0 ;
32254 char * kwnames[] = {
32255 (char *) "self",(char *) "other", NULL
32256 };
32257
32258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
32259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32260 if (!SWIG_IsOK(res1)) {
32261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___ne__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32262 }
32263 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32264 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32265 if (!SWIG_IsOK(res2)) {
32266 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___ne__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32267 }
32268 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32269 {
32270 PyThreadState* __tstate = wxPyBeginAllowThreads();
32271 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
32272 wxPyEndAllowThreads(__tstate);
32273 if (PyErr_Occurred()) SWIG_fail;
32274 }
32275 {
32276 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32277 }
32278 return resultobj;
32279 fail:
32280 return NULL;
32281 }
32282
32283
32284 SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32285 PyObject *resultobj = 0;
32286 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32287 void *arg2 = (void *) 0 ;
32288 void *argp1 = 0 ;
32289 int res1 = 0 ;
32290 int res2 ;
32291 PyObject *swig_obj[2] ;
32292
32293 if (!SWIG_Python_UnpackTuple(args,"TreeItemId_m_pItem_set",2,2,swig_obj)) SWIG_fail;
32294 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32295 if (!SWIG_IsOK(res1)) {
32296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32297 }
32298 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32299 res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
32300 if (!SWIG_IsOK(res2)) {
32301 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "2"" of type '" "void *""'");
32302 }
32303 if (arg1) (arg1)->m_pItem = arg2;
32304
32305 resultobj = SWIG_Py_Void();
32306 return resultobj;
32307 fail:
32308 return NULL;
32309 }
32310
32311
32312 SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32313 PyObject *resultobj = 0;
32314 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32315 void *result = 0 ;
32316 void *argp1 = 0 ;
32317 int res1 = 0 ;
32318 PyObject *swig_obj[1] ;
32319
32320 if (!args) SWIG_fail;
32321 swig_obj[0] = args;
32322 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32323 if (!SWIG_IsOK(res1)) {
32324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_get" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32325 }
32326 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32327 result = (void *) ((arg1)->m_pItem);
32328 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
32329 return resultobj;
32330 fail:
32331 return NULL;
32332 }
32333
32334
32335 SWIGINTERN PyObject *TreeItemId_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32336 PyObject *obj;
32337 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32338 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeItemId, SWIG_NewClientData(obj));
32339 return SWIG_Py_Void();
32340 }
32341
32342 SWIGINTERN PyObject *TreeItemId_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32343 return SWIG_Python_InitShadowInstance(args);
32344 }
32345
32346 SWIGINTERN PyObject *_wrap_new_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32347 PyObject *resultobj = 0;
32348 PyObject *arg1 = (PyObject *) NULL ;
32349 wxPyTreeItemData *result = 0 ;
32350 PyObject * obj0 = 0 ;
32351 char * kwnames[] = {
32352 (char *) "obj", NULL
32353 };
32354
32355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) SWIG_fail;
32356 if (obj0) {
32357 arg1 = obj0;
32358 }
32359 {
32360 PyThreadState* __tstate = wxPyBeginAllowThreads();
32361 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
32362 wxPyEndAllowThreads(__tstate);
32363 if (PyErr_Occurred()) SWIG_fail;
32364 }
32365 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_NEW | 0 );
32366 return resultobj;
32367 fail:
32368 return NULL;
32369 }
32370
32371
32372 SWIGINTERN PyObject *_wrap_delete_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32373 PyObject *resultobj = 0;
32374 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32375 void *argp1 = 0 ;
32376 int res1 = 0 ;
32377 PyObject *swig_obj[1] ;
32378
32379 if (!args) SWIG_fail;
32380 swig_obj[0] = args;
32381 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
32382 if (!SWIG_IsOK(res1)) {
32383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32384 }
32385 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32386 {
32387 PyThreadState* __tstate = wxPyBeginAllowThreads();
32388 delete arg1;
32389
32390 wxPyEndAllowThreads(__tstate);
32391 if (PyErr_Occurred()) SWIG_fail;
32392 }
32393 resultobj = SWIG_Py_Void();
32394 return resultobj;
32395 fail:
32396 return NULL;
32397 }
32398
32399
32400 SWIGINTERN PyObject *_wrap_TreeItemData_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32401 PyObject *resultobj = 0;
32402 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32403 PyObject *result = 0 ;
32404 void *argp1 = 0 ;
32405 int res1 = 0 ;
32406 PyObject *swig_obj[1] ;
32407
32408 if (!args) SWIG_fail;
32409 swig_obj[0] = args;
32410 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32411 if (!SWIG_IsOK(res1)) {
32412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32413 }
32414 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32415 {
32416 PyThreadState* __tstate = wxPyBeginAllowThreads();
32417 result = (PyObject *)(arg1)->GetData();
32418 wxPyEndAllowThreads(__tstate);
32419 if (PyErr_Occurred()) SWIG_fail;
32420 }
32421 resultobj = result;
32422 return resultobj;
32423 fail:
32424 return NULL;
32425 }
32426
32427
32428 SWIGINTERN PyObject *_wrap_TreeItemData_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32429 PyObject *resultobj = 0;
32430 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32431 PyObject *arg2 = (PyObject *) 0 ;
32432 void *argp1 = 0 ;
32433 int res1 = 0 ;
32434 PyObject * obj0 = 0 ;
32435 PyObject * obj1 = 0 ;
32436 char * kwnames[] = {
32437 (char *) "self",(char *) "obj", NULL
32438 };
32439
32440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
32441 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32442 if (!SWIG_IsOK(res1)) {
32443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32444 }
32445 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32446 arg2 = obj1;
32447 {
32448 PyThreadState* __tstate = wxPyBeginAllowThreads();
32449 (arg1)->SetData(arg2);
32450 wxPyEndAllowThreads(__tstate);
32451 if (PyErr_Occurred()) SWIG_fail;
32452 }
32453 resultobj = SWIG_Py_Void();
32454 return resultobj;
32455 fail:
32456 return NULL;
32457 }
32458
32459
32460 SWIGINTERN PyObject *_wrap_TreeItemData_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32461 PyObject *resultobj = 0;
32462 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32463 wxTreeItemId *result = 0 ;
32464 void *argp1 = 0 ;
32465 int res1 = 0 ;
32466 PyObject *swig_obj[1] ;
32467
32468 if (!args) SWIG_fail;
32469 swig_obj[0] = args;
32470 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32471 if (!SWIG_IsOK(res1)) {
32472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32473 }
32474 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32475 {
32476 PyThreadState* __tstate = wxPyBeginAllowThreads();
32477 {
32478 wxTreeItemId const &_result_ref = (arg1)->GetId();
32479 result = (wxTreeItemId *) &_result_ref;
32480 }
32481 wxPyEndAllowThreads(__tstate);
32482 if (PyErr_Occurred()) SWIG_fail;
32483 }
32484 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32485 return resultobj;
32486 fail:
32487 return NULL;
32488 }
32489
32490
32491 SWIGINTERN PyObject *_wrap_TreeItemData_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32492 PyObject *resultobj = 0;
32493 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32494 wxTreeItemId *arg2 = 0 ;
32495 void *argp1 = 0 ;
32496 int res1 = 0 ;
32497 void *argp2 = 0 ;
32498 int res2 = 0 ;
32499 PyObject * obj0 = 0 ;
32500 PyObject * obj1 = 0 ;
32501 char * kwnames[] = {
32502 (char *) "self",(char *) "id", NULL
32503 };
32504
32505 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
32506 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32507 if (!SWIG_IsOK(res1)) {
32508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32509 }
32510 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32511 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32512 if (!SWIG_IsOK(res2)) {
32513 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32514 }
32515 if (!argp2) {
32516 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32517 }
32518 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32519 {
32520 PyThreadState* __tstate = wxPyBeginAllowThreads();
32521 (arg1)->SetId((wxTreeItemId const &)*arg2);
32522 wxPyEndAllowThreads(__tstate);
32523 if (PyErr_Occurred()) SWIG_fail;
32524 }
32525 resultobj = SWIG_Py_Void();
32526 return resultobj;
32527 fail:
32528 return NULL;
32529 }
32530
32531
32532 SWIGINTERN PyObject *_wrap_TreeItemData_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32533 PyObject *resultobj = 0;
32534 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32535 void *argp1 = 0 ;
32536 int res1 = 0 ;
32537 PyObject *swig_obj[1] ;
32538
32539 if (!args) SWIG_fail;
32540 swig_obj[0] = args;
32541 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32542 if (!SWIG_IsOK(res1)) {
32543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_Destroy" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32544 }
32545 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32546 {
32547 PyThreadState* __tstate = wxPyBeginAllowThreads();
32548 wxPyTreeItemData_Destroy(arg1);
32549 wxPyEndAllowThreads(__tstate);
32550 if (PyErr_Occurred()) SWIG_fail;
32551 }
32552 resultobj = SWIG_Py_Void();
32553 return resultobj;
32554 fail:
32555 return NULL;
32556 }
32557
32558
32559 SWIGINTERN PyObject *TreeItemData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32560 PyObject *obj;
32561 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32562 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeItemData, SWIG_NewClientData(obj));
32563 return SWIG_Py_Void();
32564 }
32565
32566 SWIGINTERN PyObject *TreeItemData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32567 return SWIG_Python_InitShadowInstance(args);
32568 }
32569
32570 SWIGINTERN PyObject *_wrap_new_TreeEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32571 PyObject *resultobj = 0;
32572 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
32573 int arg2 = (int) 0 ;
32574 wxTreeEvent *result = 0 ;
32575 int val1 ;
32576 int ecode1 = 0 ;
32577 int val2 ;
32578 int ecode2 = 0 ;
32579 PyObject * obj0 = 0 ;
32580 PyObject * obj1 = 0 ;
32581 char * kwnames[] = {
32582 (char *) "commandType",(char *) "id", NULL
32583 };
32584
32585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) SWIG_fail;
32586 if (obj0) {
32587 ecode1 = SWIG_AsVal_int(obj0, &val1);
32588 if (!SWIG_IsOK(ecode1)) {
32589 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
32590 }
32591 arg1 = static_cast< wxEventType >(val1);
32592 }
32593 if (obj1) {
32594 ecode2 = SWIG_AsVal_int(obj1, &val2);
32595 if (!SWIG_IsOK(ecode2)) {
32596 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "int""'");
32597 }
32598 arg2 = static_cast< int >(val2);
32599 }
32600 {
32601 PyThreadState* __tstate = wxPyBeginAllowThreads();
32602 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
32603 wxPyEndAllowThreads(__tstate);
32604 if (PyErr_Occurred()) SWIG_fail;
32605 }
32606 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
32607 return resultobj;
32608 fail:
32609 return NULL;
32610 }
32611
32612
32613 SWIGINTERN PyObject *_wrap_TreeEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32614 PyObject *resultobj = 0;
32615 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32616 wxTreeItemId result;
32617 void *argp1 = 0 ;
32618 int res1 = 0 ;
32619 PyObject *swig_obj[1] ;
32620
32621 if (!args) SWIG_fail;
32622 swig_obj[0] = args;
32623 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32624 if (!SWIG_IsOK(res1)) {
32625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32626 }
32627 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32628 {
32629 PyThreadState* __tstate = wxPyBeginAllowThreads();
32630 result = ((wxTreeEvent const *)arg1)->GetItem();
32631 wxPyEndAllowThreads(__tstate);
32632 if (PyErr_Occurred()) SWIG_fail;
32633 }
32634 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
32635 return resultobj;
32636 fail:
32637 return NULL;
32638 }
32639
32640
32641 SWIGINTERN PyObject *_wrap_TreeEvent_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32642 PyObject *resultobj = 0;
32643 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32644 wxTreeItemId *arg2 = 0 ;
32645 void *argp1 = 0 ;
32646 int res1 = 0 ;
32647 void *argp2 = 0 ;
32648 int res2 = 0 ;
32649 PyObject * obj0 = 0 ;
32650 PyObject * obj1 = 0 ;
32651 char * kwnames[] = {
32652 (char *) "self",(char *) "item", NULL
32653 };
32654
32655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
32656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32657 if (!SWIG_IsOK(res1)) {
32658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32659 }
32660 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32661 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32662 if (!SWIG_IsOK(res2)) {
32663 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32664 }
32665 if (!argp2) {
32666 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32667 }
32668 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32669 {
32670 PyThreadState* __tstate = wxPyBeginAllowThreads();
32671 (arg1)->SetItem((wxTreeItemId const &)*arg2);
32672 wxPyEndAllowThreads(__tstate);
32673 if (PyErr_Occurred()) SWIG_fail;
32674 }
32675 resultobj = SWIG_Py_Void();
32676 return resultobj;
32677 fail:
32678 return NULL;
32679 }
32680
32681
32682 SWIGINTERN PyObject *_wrap_TreeEvent_GetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32683 PyObject *resultobj = 0;
32684 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32685 wxTreeItemId result;
32686 void *argp1 = 0 ;
32687 int res1 = 0 ;
32688 PyObject *swig_obj[1] ;
32689
32690 if (!args) SWIG_fail;
32691 swig_obj[0] = args;
32692 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32693 if (!SWIG_IsOK(res1)) {
32694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32695 }
32696 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32697 {
32698 PyThreadState* __tstate = wxPyBeginAllowThreads();
32699 result = ((wxTreeEvent const *)arg1)->GetOldItem();
32700 wxPyEndAllowThreads(__tstate);
32701 if (PyErr_Occurred()) SWIG_fail;
32702 }
32703 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
32704 return resultobj;
32705 fail:
32706 return NULL;
32707 }
32708
32709
32710 SWIGINTERN PyObject *_wrap_TreeEvent_SetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32711 PyObject *resultobj = 0;
32712 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32713 wxTreeItemId *arg2 = 0 ;
32714 void *argp1 = 0 ;
32715 int res1 = 0 ;
32716 void *argp2 = 0 ;
32717 int res2 = 0 ;
32718 PyObject * obj0 = 0 ;
32719 PyObject * obj1 = 0 ;
32720 char * kwnames[] = {
32721 (char *) "self",(char *) "item", NULL
32722 };
32723
32724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) SWIG_fail;
32725 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32726 if (!SWIG_IsOK(res1)) {
32727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32728 }
32729 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32730 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32731 if (!SWIG_IsOK(res2)) {
32732 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32733 }
32734 if (!argp2) {
32735 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32736 }
32737 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32738 {
32739 PyThreadState* __tstate = wxPyBeginAllowThreads();
32740 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
32741 wxPyEndAllowThreads(__tstate);
32742 if (PyErr_Occurred()) SWIG_fail;
32743 }
32744 resultobj = SWIG_Py_Void();
32745 return resultobj;
32746 fail:
32747 return NULL;
32748 }
32749
32750
32751 SWIGINTERN PyObject *_wrap_TreeEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32752 PyObject *resultobj = 0;
32753 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32754 wxPoint 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_GetPoint" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32764 }
32765 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32766 {
32767 PyThreadState* __tstate = wxPyBeginAllowThreads();
32768 result = ((wxTreeEvent const *)arg1)->GetPoint();
32769 wxPyEndAllowThreads(__tstate);
32770 if (PyErr_Occurred()) SWIG_fail;
32771 }
32772 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
32773 return resultobj;
32774 fail:
32775 return NULL;
32776 }
32777
32778
32779 SWIGINTERN PyObject *_wrap_TreeEvent_SetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32780 PyObject *resultobj = 0;
32781 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32782 wxPoint *arg2 = 0 ;
32783 void *argp1 = 0 ;
32784 int res1 = 0 ;
32785 wxPoint temp2 ;
32786 PyObject * obj0 = 0 ;
32787 PyObject * obj1 = 0 ;
32788 char * kwnames[] = {
32789 (char *) "self",(char *) "pt", NULL
32790 };
32791
32792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) SWIG_fail;
32793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32794 if (!SWIG_IsOK(res1)) {
32795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetPoint" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32796 }
32797 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32798 {
32799 arg2 = &temp2;
32800 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32801 }
32802 {
32803 PyThreadState* __tstate = wxPyBeginAllowThreads();
32804 (arg1)->SetPoint((wxPoint const &)*arg2);
32805 wxPyEndAllowThreads(__tstate);
32806 if (PyErr_Occurred()) SWIG_fail;
32807 }
32808 resultobj = SWIG_Py_Void();
32809 return resultobj;
32810 fail:
32811 return NULL;
32812 }
32813
32814
32815 SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32816 PyObject *resultobj = 0;
32817 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32818 wxKeyEvent *result = 0 ;
32819 void *argp1 = 0 ;
32820 int res1 = 0 ;
32821 PyObject *swig_obj[1] ;
32822
32823 if (!args) SWIG_fail;
32824 swig_obj[0] = args;
32825 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32826 if (!SWIG_IsOK(res1)) {
32827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32828 }
32829 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32830 {
32831 PyThreadState* __tstate = wxPyBeginAllowThreads();
32832 {
32833 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
32834 result = (wxKeyEvent *) &_result_ref;
32835 }
32836 wxPyEndAllowThreads(__tstate);
32837 if (PyErr_Occurred()) SWIG_fail;
32838 }
32839 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxKeyEvent, 0 | 0 );
32840 return resultobj;
32841 fail:
32842 return NULL;
32843 }
32844
32845
32846 SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32847 PyObject *resultobj = 0;
32848 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32849 int result;
32850 void *argp1 = 0 ;
32851 int res1 = 0 ;
32852 PyObject *swig_obj[1] ;
32853
32854 if (!args) SWIG_fail;
32855 swig_obj[0] = args;
32856 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32857 if (!SWIG_IsOK(res1)) {
32858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32859 }
32860 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32861 {
32862 PyThreadState* __tstate = wxPyBeginAllowThreads();
32863 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
32864 wxPyEndAllowThreads(__tstate);
32865 if (PyErr_Occurred()) SWIG_fail;
32866 }
32867 resultobj = SWIG_From_int(static_cast< int >(result));
32868 return resultobj;
32869 fail:
32870 return NULL;
32871 }
32872
32873
32874 SWIGINTERN PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32875 PyObject *resultobj = 0;
32876 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32877 wxKeyEvent *arg2 = 0 ;
32878 void *argp1 = 0 ;
32879 int res1 = 0 ;
32880 void *argp2 = 0 ;
32881 int res2 = 0 ;
32882 PyObject * obj0 = 0 ;
32883 PyObject * obj1 = 0 ;
32884 char * kwnames[] = {
32885 (char *) "self",(char *) "evt", NULL
32886 };
32887
32888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) SWIG_fail;
32889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32890 if (!SWIG_IsOK(res1)) {
32891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32892 }
32893 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32894 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
32895 if (!SWIG_IsOK(res2)) {
32896 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
32897 }
32898 if (!argp2) {
32899 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
32900 }
32901 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
32902 {
32903 PyThreadState* __tstate = wxPyBeginAllowThreads();
32904 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
32905 wxPyEndAllowThreads(__tstate);
32906 if (PyErr_Occurred()) SWIG_fail;
32907 }
32908 resultobj = SWIG_Py_Void();
32909 return resultobj;
32910 fail:
32911 return NULL;
32912 }
32913
32914
32915 SWIGINTERN PyObject *_wrap_TreeEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32916 PyObject *resultobj = 0;
32917 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32918 wxString *result = 0 ;
32919 void *argp1 = 0 ;
32920 int res1 = 0 ;
32921 PyObject *swig_obj[1] ;
32922
32923 if (!args) SWIG_fail;
32924 swig_obj[0] = args;
32925 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32926 if (!SWIG_IsOK(res1)) {
32927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetLabel" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32928 }
32929 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32930 {
32931 PyThreadState* __tstate = wxPyBeginAllowThreads();
32932 {
32933 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
32934 result = (wxString *) &_result_ref;
32935 }
32936 wxPyEndAllowThreads(__tstate);
32937 if (PyErr_Occurred()) SWIG_fail;
32938 }
32939 {
32940 #if wxUSE_UNICODE
32941 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
32942 #else
32943 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
32944 #endif
32945 }
32946 return resultobj;
32947 fail:
32948 return NULL;
32949 }
32950
32951
32952 SWIGINTERN PyObject *_wrap_TreeEvent_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32953 PyObject *resultobj = 0;
32954 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32955 wxString *arg2 = 0 ;
32956 void *argp1 = 0 ;
32957 int res1 = 0 ;
32958 bool temp2 = false ;
32959 PyObject * obj0 = 0 ;
32960 PyObject * obj1 = 0 ;
32961 char * kwnames[] = {
32962 (char *) "self",(char *) "label", NULL
32963 };
32964
32965 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
32966 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32967 if (!SWIG_IsOK(res1)) {
32968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetLabel" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32969 }
32970 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32971 {
32972 arg2 = wxString_in_helper(obj1);
32973 if (arg2 == NULL) SWIG_fail;
32974 temp2 = true;
32975 }
32976 {
32977 PyThreadState* __tstate = wxPyBeginAllowThreads();
32978 (arg1)->SetLabel((wxString const &)*arg2);
32979 wxPyEndAllowThreads(__tstate);
32980 if (PyErr_Occurred()) SWIG_fail;
32981 }
32982 resultobj = SWIG_Py_Void();
32983 {
32984 if (temp2)
32985 delete arg2;
32986 }
32987 return resultobj;
32988 fail:
32989 {
32990 if (temp2)
32991 delete arg2;
32992 }
32993 return NULL;
32994 }
32995
32996
32997 SWIGINTERN PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32998 PyObject *resultobj = 0;
32999 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33000 bool result;
33001 void *argp1 = 0 ;
33002 int res1 = 0 ;
33003 PyObject *swig_obj[1] ;
33004
33005 if (!args) SWIG_fail;
33006 swig_obj[0] = args;
33007 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33008 if (!SWIG_IsOK(res1)) {
33009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33010 }
33011 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33012 {
33013 PyThreadState* __tstate = wxPyBeginAllowThreads();
33014 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
33015 wxPyEndAllowThreads(__tstate);
33016 if (PyErr_Occurred()) SWIG_fail;
33017 }
33018 {
33019 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33020 }
33021 return resultobj;
33022 fail:
33023 return NULL;
33024 }
33025
33026
33027 SWIGINTERN PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33028 PyObject *resultobj = 0;
33029 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33030 bool arg2 ;
33031 void *argp1 = 0 ;
33032 int res1 = 0 ;
33033 bool val2 ;
33034 int ecode2 = 0 ;
33035 PyObject * obj0 = 0 ;
33036 PyObject * obj1 = 0 ;
33037 char * kwnames[] = {
33038 (char *) "self",(char *) "editCancelled", NULL
33039 };
33040
33041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
33042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33043 if (!SWIG_IsOK(res1)) {
33044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33045 }
33046 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33047 ecode2 = SWIG_AsVal_bool(obj1, &val2);
33048 if (!SWIG_IsOK(ecode2)) {
33049 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
33050 }
33051 arg2 = static_cast< bool >(val2);
33052 {
33053 PyThreadState* __tstate = wxPyBeginAllowThreads();
33054 (arg1)->SetEditCanceled(arg2);
33055 wxPyEndAllowThreads(__tstate);
33056 if (PyErr_Occurred()) SWIG_fail;
33057 }
33058 resultobj = SWIG_Py_Void();
33059 return resultobj;
33060 fail:
33061 return NULL;
33062 }
33063
33064
33065 SWIGINTERN PyObject *_wrap_TreeEvent_SetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33066 PyObject *resultobj = 0;
33067 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33068 wxString *arg2 = 0 ;
33069 void *argp1 = 0 ;
33070 int res1 = 0 ;
33071 bool temp2 = false ;
33072 PyObject * obj0 = 0 ;
33073 PyObject * obj1 = 0 ;
33074 char * kwnames[] = {
33075 (char *) "self",(char *) "toolTip", NULL
33076 };
33077
33078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
33079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33080 if (!SWIG_IsOK(res1)) {
33081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33082 }
33083 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33084 {
33085 arg2 = wxString_in_helper(obj1);
33086 if (arg2 == NULL) SWIG_fail;
33087 temp2 = true;
33088 }
33089 {
33090 PyThreadState* __tstate = wxPyBeginAllowThreads();
33091 (arg1)->SetToolTip((wxString const &)*arg2);
33092 wxPyEndAllowThreads(__tstate);
33093 if (PyErr_Occurred()) SWIG_fail;
33094 }
33095 resultobj = SWIG_Py_Void();
33096 {
33097 if (temp2)
33098 delete arg2;
33099 }
33100 return resultobj;
33101 fail:
33102 {
33103 if (temp2)
33104 delete arg2;
33105 }
33106 return NULL;
33107 }
33108
33109
33110 SWIGINTERN PyObject *_wrap_TreeEvent_GetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33111 PyObject *resultobj = 0;
33112 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33113 wxString result;
33114 void *argp1 = 0 ;
33115 int res1 = 0 ;
33116 PyObject *swig_obj[1] ;
33117
33118 if (!args) SWIG_fail;
33119 swig_obj[0] = args;
33120 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33121 if (!SWIG_IsOK(res1)) {
33122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33123 }
33124 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33125 {
33126 PyThreadState* __tstate = wxPyBeginAllowThreads();
33127 result = (arg1)->GetToolTip();
33128 wxPyEndAllowThreads(__tstate);
33129 if (PyErr_Occurred()) SWIG_fail;
33130 }
33131 {
33132 #if wxUSE_UNICODE
33133 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33134 #else
33135 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33136 #endif
33137 }
33138 return resultobj;
33139 fail:
33140 return NULL;
33141 }
33142
33143
33144 SWIGINTERN PyObject *TreeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33145 PyObject *obj;
33146 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33147 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeEvent, SWIG_NewClientData(obj));
33148 return SWIG_Py_Void();
33149 }
33150
33151 SWIGINTERN PyObject *TreeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33152 return SWIG_Python_InitShadowInstance(args);
33153 }
33154
33155 SWIGINTERN PyObject *_wrap_new_TreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33156 PyObject *resultobj = 0;
33157 wxWindow *arg1 = (wxWindow *) 0 ;
33158 int arg2 = (int) -1 ;
33159 wxPoint const &arg3_defvalue = wxDefaultPosition ;
33160 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
33161 wxSize const &arg4_defvalue = wxDefaultSize ;
33162 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
33163 long arg5 = (long) wxTR_DEFAULT_STYLE ;
33164 wxValidator const &arg6_defvalue = wxDefaultValidator ;
33165 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
33166 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
33167 wxString *arg7 = (wxString *) &arg7_defvalue ;
33168 wxPyTreeCtrl *result = 0 ;
33169 void *argp1 = 0 ;
33170 int res1 = 0 ;
33171 int val2 ;
33172 int ecode2 = 0 ;
33173 wxPoint temp3 ;
33174 wxSize temp4 ;
33175 long val5 ;
33176 int ecode5 = 0 ;
33177 void *argp6 = 0 ;
33178 int res6 = 0 ;
33179 bool temp7 = false ;
33180 PyObject * obj0 = 0 ;
33181 PyObject * obj1 = 0 ;
33182 PyObject * obj2 = 0 ;
33183 PyObject * obj3 = 0 ;
33184 PyObject * obj4 = 0 ;
33185 PyObject * obj5 = 0 ;
33186 PyObject * obj6 = 0 ;
33187 char * kwnames[] = {
33188 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33189 };
33190
33191 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33192 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33193 if (!SWIG_IsOK(res1)) {
33194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
33195 }
33196 arg1 = reinterpret_cast< wxWindow * >(argp1);
33197 if (obj1) {
33198 ecode2 = SWIG_AsVal_int(obj1, &val2);
33199 if (!SWIG_IsOK(ecode2)) {
33200 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeCtrl" "', expected argument " "2"" of type '" "int""'");
33201 }
33202 arg2 = static_cast< int >(val2);
33203 }
33204 if (obj2) {
33205 {
33206 arg3 = &temp3;
33207 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33208 }
33209 }
33210 if (obj3) {
33211 {
33212 arg4 = &temp4;
33213 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
33214 }
33215 }
33216 if (obj4) {
33217 ecode5 = SWIG_AsVal_long(obj4, &val5);
33218 if (!SWIG_IsOK(ecode5)) {
33219 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TreeCtrl" "', expected argument " "5"" of type '" "long""'");
33220 }
33221 arg5 = static_cast< long >(val5);
33222 }
33223 if (obj5) {
33224 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
33225 if (!SWIG_IsOK(res6)) {
33226 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
33227 }
33228 if (!argp6) {
33229 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
33230 }
33231 arg6 = reinterpret_cast< wxValidator * >(argp6);
33232 }
33233 if (obj6) {
33234 {
33235 arg7 = wxString_in_helper(obj6);
33236 if (arg7 == NULL) SWIG_fail;
33237 temp7 = true;
33238 }
33239 }
33240 {
33241 if (!wxPyCheckForApp()) SWIG_fail;
33242 PyThreadState* __tstate = wxPyBeginAllowThreads();
33243 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
33244 wxPyEndAllowThreads(__tstate);
33245 if (PyErr_Occurred()) SWIG_fail;
33246 }
33247 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_NEW | 0 );
33248 {
33249 if (temp7)
33250 delete arg7;
33251 }
33252 return resultobj;
33253 fail:
33254 {
33255 if (temp7)
33256 delete arg7;
33257 }
33258 return NULL;
33259 }
33260
33261
33262 SWIGINTERN PyObject *_wrap_new_PreTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33263 PyObject *resultobj = 0;
33264 wxPyTreeCtrl *result = 0 ;
33265
33266 if (!SWIG_Python_UnpackTuple(args,"new_PreTreeCtrl",0,0,0)) SWIG_fail;
33267 {
33268 if (!wxPyCheckForApp()) SWIG_fail;
33269 PyThreadState* __tstate = wxPyBeginAllowThreads();
33270 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
33271 wxPyEndAllowThreads(__tstate);
33272 if (PyErr_Occurred()) SWIG_fail;
33273 }
33274 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_OWN | 0 );
33275 return resultobj;
33276 fail:
33277 return NULL;
33278 }
33279
33280
33281 SWIGINTERN PyObject *_wrap_TreeCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33282 PyObject *resultobj = 0;
33283 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33284 wxWindow *arg2 = (wxWindow *) 0 ;
33285 int arg3 = (int) -1 ;
33286 wxPoint const &arg4_defvalue = wxDefaultPosition ;
33287 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
33288 wxSize const &arg5_defvalue = wxDefaultSize ;
33289 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
33290 long arg6 = (long) wxTR_DEFAULT_STYLE ;
33291 wxValidator const &arg7_defvalue = wxDefaultValidator ;
33292 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
33293 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
33294 wxString *arg8 = (wxString *) &arg8_defvalue ;
33295 bool result;
33296 void *argp1 = 0 ;
33297 int res1 = 0 ;
33298 void *argp2 = 0 ;
33299 int res2 = 0 ;
33300 int val3 ;
33301 int ecode3 = 0 ;
33302 wxPoint temp4 ;
33303 wxSize temp5 ;
33304 long val6 ;
33305 int ecode6 = 0 ;
33306 void *argp7 = 0 ;
33307 int res7 = 0 ;
33308 bool temp8 = false ;
33309 PyObject * obj0 = 0 ;
33310 PyObject * obj1 = 0 ;
33311 PyObject * obj2 = 0 ;
33312 PyObject * obj3 = 0 ;
33313 PyObject * obj4 = 0 ;
33314 PyObject * obj5 = 0 ;
33315 PyObject * obj6 = 0 ;
33316 PyObject * obj7 = 0 ;
33317 char * kwnames[] = {
33318 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33319 };
33320
33321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
33322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33323 if (!SWIG_IsOK(res1)) {
33324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Create" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33325 }
33326 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33327 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33328 if (!SWIG_IsOK(res2)) {
33329 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
33330 }
33331 arg2 = reinterpret_cast< wxWindow * >(argp2);
33332 if (obj2) {
33333 ecode3 = SWIG_AsVal_int(obj2, &val3);
33334 if (!SWIG_IsOK(ecode3)) {
33335 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_Create" "', expected argument " "3"" of type '" "int""'");
33336 }
33337 arg3 = static_cast< int >(val3);
33338 }
33339 if (obj3) {
33340 {
33341 arg4 = &temp4;
33342 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
33343 }
33344 }
33345 if (obj4) {
33346 {
33347 arg5 = &temp5;
33348 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
33349 }
33350 }
33351 if (obj5) {
33352 ecode6 = SWIG_AsVal_long(obj5, &val6);
33353 if (!SWIG_IsOK(ecode6)) {
33354 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_Create" "', expected argument " "6"" of type '" "long""'");
33355 }
33356 arg6 = static_cast< long >(val6);
33357 }
33358 if (obj6) {
33359 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
33360 if (!SWIG_IsOK(res7)) {
33361 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
33362 }
33363 if (!argp7) {
33364 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
33365 }
33366 arg7 = reinterpret_cast< wxValidator * >(argp7);
33367 }
33368 if (obj7) {
33369 {
33370 arg8 = wxString_in_helper(obj7);
33371 if (arg8 == NULL) SWIG_fail;
33372 temp8 = true;
33373 }
33374 }
33375 {
33376 PyThreadState* __tstate = wxPyBeginAllowThreads();
33377 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
33378 wxPyEndAllowThreads(__tstate);
33379 if (PyErr_Occurred()) SWIG_fail;
33380 }
33381 {
33382 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33383 }
33384 {
33385 if (temp8)
33386 delete arg8;
33387 }
33388 return resultobj;
33389 fail:
33390 {
33391 if (temp8)
33392 delete arg8;
33393 }
33394 return NULL;
33395 }
33396
33397
33398 SWIGINTERN PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33399 PyObject *resultobj = 0;
33400 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33401 PyObject *arg2 = (PyObject *) 0 ;
33402 PyObject *arg3 = (PyObject *) 0 ;
33403 void *argp1 = 0 ;
33404 int res1 = 0 ;
33405 PyObject * obj0 = 0 ;
33406 PyObject * obj1 = 0 ;
33407 PyObject * obj2 = 0 ;
33408 char * kwnames[] = {
33409 (char *) "self",(char *) "self",(char *) "_class", NULL
33410 };
33411
33412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33414 if (!SWIG_IsOK(res1)) {
33415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33416 }
33417 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33418 arg2 = obj1;
33419 arg3 = obj2;
33420 {
33421 PyThreadState* __tstate = wxPyBeginAllowThreads();
33422 (arg1)->_setCallbackInfo(arg2,arg3);
33423 wxPyEndAllowThreads(__tstate);
33424 if (PyErr_Occurred()) SWIG_fail;
33425 }
33426 resultobj = SWIG_Py_Void();
33427 return resultobj;
33428 fail:
33429 return NULL;
33430 }
33431
33432
33433 SWIGINTERN PyObject *_wrap_TreeCtrl_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33434 PyObject *resultobj = 0;
33435 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33436 unsigned int result;
33437 void *argp1 = 0 ;
33438 int res1 = 0 ;
33439 PyObject *swig_obj[1] ;
33440
33441 if (!args) SWIG_fail;
33442 swig_obj[0] = args;
33443 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33444 if (!SWIG_IsOK(res1)) {
33445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33446 }
33447 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33448 {
33449 PyThreadState* __tstate = wxPyBeginAllowThreads();
33450 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetCount();
33451 wxPyEndAllowThreads(__tstate);
33452 if (PyErr_Occurred()) SWIG_fail;
33453 }
33454 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33455 return resultobj;
33456 fail:
33457 return NULL;
33458 }
33459
33460
33461 SWIGINTERN PyObject *_wrap_TreeCtrl_GetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33462 PyObject *resultobj = 0;
33463 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33464 unsigned int result;
33465 void *argp1 = 0 ;
33466 int res1 = 0 ;
33467 PyObject *swig_obj[1] ;
33468
33469 if (!args) SWIG_fail;
33470 swig_obj[0] = args;
33471 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33472 if (!SWIG_IsOK(res1)) {
33473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33474 }
33475 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33476 {
33477 PyThreadState* __tstate = wxPyBeginAllowThreads();
33478 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
33479 wxPyEndAllowThreads(__tstate);
33480 if (PyErr_Occurred()) SWIG_fail;
33481 }
33482 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33483 return resultobj;
33484 fail:
33485 return NULL;
33486 }
33487
33488
33489 SWIGINTERN PyObject *_wrap_TreeCtrl_SetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33490 PyObject *resultobj = 0;
33491 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33492 unsigned int arg2 ;
33493 void *argp1 = 0 ;
33494 int res1 = 0 ;
33495 unsigned int val2 ;
33496 int ecode2 = 0 ;
33497 PyObject * obj0 = 0 ;
33498 PyObject * obj1 = 0 ;
33499 char * kwnames[] = {
33500 (char *) "self",(char *) "indent", NULL
33501 };
33502
33503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) SWIG_fail;
33504 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33505 if (!SWIG_IsOK(res1)) {
33506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33507 }
33508 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33509 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
33510 if (!SWIG_IsOK(ecode2)) {
33511 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetIndent" "', expected argument " "2"" of type '" "unsigned int""'");
33512 }
33513 arg2 = static_cast< unsigned int >(val2);
33514 {
33515 PyThreadState* __tstate = wxPyBeginAllowThreads();
33516 (arg1)->SetIndent(arg2);
33517 wxPyEndAllowThreads(__tstate);
33518 if (PyErr_Occurred()) SWIG_fail;
33519 }
33520 resultobj = SWIG_Py_Void();
33521 return resultobj;
33522 fail:
33523 return NULL;
33524 }
33525
33526
33527 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33528 PyObject *resultobj = 0;
33529 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33530 unsigned int result;
33531 void *argp1 = 0 ;
33532 int res1 = 0 ;
33533 PyObject *swig_obj[1] ;
33534
33535 if (!args) SWIG_fail;
33536 swig_obj[0] = args;
33537 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33538 if (!SWIG_IsOK(res1)) {
33539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33540 }
33541 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33542 {
33543 PyThreadState* __tstate = wxPyBeginAllowThreads();
33544 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
33545 wxPyEndAllowThreads(__tstate);
33546 if (PyErr_Occurred()) SWIG_fail;
33547 }
33548 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33549 return resultobj;
33550 fail:
33551 return NULL;
33552 }
33553
33554
33555 SWIGINTERN PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33556 PyObject *resultobj = 0;
33557 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33558 unsigned int arg2 ;
33559 void *argp1 = 0 ;
33560 int res1 = 0 ;
33561 unsigned int val2 ;
33562 int ecode2 = 0 ;
33563 PyObject * obj0 = 0 ;
33564 PyObject * obj1 = 0 ;
33565 char * kwnames[] = {
33566 (char *) "self",(char *) "spacing", NULL
33567 };
33568
33569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) SWIG_fail;
33570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33571 if (!SWIG_IsOK(res1)) {
33572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33573 }
33574 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33575 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
33576 if (!SWIG_IsOK(ecode2)) {
33577 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "2"" of type '" "unsigned int""'");
33578 }
33579 arg2 = static_cast< unsigned int >(val2);
33580 {
33581 PyThreadState* __tstate = wxPyBeginAllowThreads();
33582 (arg1)->SetSpacing(arg2);
33583 wxPyEndAllowThreads(__tstate);
33584 if (PyErr_Occurred()) SWIG_fail;
33585 }
33586 resultobj = SWIG_Py_Void();
33587 return resultobj;
33588 fail:
33589 return NULL;
33590 }
33591
33592
33593 SWIGINTERN PyObject *_wrap_TreeCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33594 PyObject *resultobj = 0;
33595 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33596 wxImageList *result = 0 ;
33597 void *argp1 = 0 ;
33598 int res1 = 0 ;
33599 PyObject *swig_obj[1] ;
33600
33601 if (!args) SWIG_fail;
33602 swig_obj[0] = args;
33603 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33604 if (!SWIG_IsOK(res1)) {
33605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33606 }
33607 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33608 {
33609 PyThreadState* __tstate = wxPyBeginAllowThreads();
33610 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
33611 wxPyEndAllowThreads(__tstate);
33612 if (PyErr_Occurred()) SWIG_fail;
33613 }
33614 {
33615 resultobj = wxPyMake_wxObject(result, (bool)0);
33616 }
33617 return resultobj;
33618 fail:
33619 return NULL;
33620 }
33621
33622
33623 SWIGINTERN PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33624 PyObject *resultobj = 0;
33625 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33626 wxImageList *result = 0 ;
33627 void *argp1 = 0 ;
33628 int res1 = 0 ;
33629 PyObject *swig_obj[1] ;
33630
33631 if (!args) SWIG_fail;
33632 swig_obj[0] = args;
33633 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33634 if (!SWIG_IsOK(res1)) {
33635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33636 }
33637 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33638 {
33639 PyThreadState* __tstate = wxPyBeginAllowThreads();
33640 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
33641 wxPyEndAllowThreads(__tstate);
33642 if (PyErr_Occurred()) SWIG_fail;
33643 }
33644 {
33645 resultobj = wxPyMake_wxObject(result, (bool)0);
33646 }
33647 return resultobj;
33648 fail:
33649 return NULL;
33650 }
33651
33652
33653 SWIGINTERN PyObject *_wrap_TreeCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33654 PyObject *resultobj = 0;
33655 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33656 wxImageList *arg2 = (wxImageList *) 0 ;
33657 void *argp1 = 0 ;
33658 int res1 = 0 ;
33659 void *argp2 = 0 ;
33660 int res2 = 0 ;
33661 PyObject * obj0 = 0 ;
33662 PyObject * obj1 = 0 ;
33663 char * kwnames[] = {
33664 (char *) "self",(char *) "imageList", NULL
33665 };
33666
33667 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33668 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33669 if (!SWIG_IsOK(res1)) {
33670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33671 }
33672 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33673 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
33674 if (!SWIG_IsOK(res2)) {
33675 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33676 }
33677 arg2 = reinterpret_cast< wxImageList * >(argp2);
33678 {
33679 PyThreadState* __tstate = wxPyBeginAllowThreads();
33680 (arg1)->SetImageList(arg2);
33681 wxPyEndAllowThreads(__tstate);
33682 if (PyErr_Occurred()) SWIG_fail;
33683 }
33684 resultobj = SWIG_Py_Void();
33685 return resultobj;
33686 fail:
33687 return NULL;
33688 }
33689
33690
33691 SWIGINTERN PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33692 PyObject *resultobj = 0;
33693 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33694 wxImageList *arg2 = (wxImageList *) 0 ;
33695 void *argp1 = 0 ;
33696 int res1 = 0 ;
33697 void *argp2 = 0 ;
33698 int res2 = 0 ;
33699 PyObject * obj0 = 0 ;
33700 PyObject * obj1 = 0 ;
33701 char * kwnames[] = {
33702 (char *) "self",(char *) "imageList", NULL
33703 };
33704
33705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33706 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33707 if (!SWIG_IsOK(res1)) {
33708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33709 }
33710 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33711 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
33712 if (!SWIG_IsOK(res2)) {
33713 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33714 }
33715 arg2 = reinterpret_cast< wxImageList * >(argp2);
33716 {
33717 PyThreadState* __tstate = wxPyBeginAllowThreads();
33718 (arg1)->SetStateImageList(arg2);
33719 wxPyEndAllowThreads(__tstate);
33720 if (PyErr_Occurred()) SWIG_fail;
33721 }
33722 resultobj = SWIG_Py_Void();
33723 return resultobj;
33724 fail:
33725 return NULL;
33726 }
33727
33728
33729 SWIGINTERN PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33730 PyObject *resultobj = 0;
33731 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33732 wxImageList *arg2 = (wxImageList *) 0 ;
33733 void *argp1 = 0 ;
33734 int res1 = 0 ;
33735 int res2 = 0 ;
33736 PyObject * obj0 = 0 ;
33737 PyObject * obj1 = 0 ;
33738 char * kwnames[] = {
33739 (char *) "self",(char *) "imageList", NULL
33740 };
33741
33742 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33743 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33744 if (!SWIG_IsOK(res1)) {
33745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33746 }
33747 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33748 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
33749 if (!SWIG_IsOK(res2)) {
33750 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33751 }
33752 {
33753 PyThreadState* __tstate = wxPyBeginAllowThreads();
33754 (arg1)->AssignImageList(arg2);
33755 wxPyEndAllowThreads(__tstate);
33756 if (PyErr_Occurred()) SWIG_fail;
33757 }
33758 resultobj = SWIG_Py_Void();
33759 return resultobj;
33760 fail:
33761 return NULL;
33762 }
33763
33764
33765 SWIGINTERN PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33766 PyObject *resultobj = 0;
33767 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33768 wxImageList *arg2 = (wxImageList *) 0 ;
33769 void *argp1 = 0 ;
33770 int res1 = 0 ;
33771 int res2 = 0 ;
33772 PyObject * obj0 = 0 ;
33773 PyObject * obj1 = 0 ;
33774 char * kwnames[] = {
33775 (char *) "self",(char *) "imageList", NULL
33776 };
33777
33778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33780 if (!SWIG_IsOK(res1)) {
33781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33782 }
33783 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33784 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
33785 if (!SWIG_IsOK(res2)) {
33786 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33787 }
33788 {
33789 PyThreadState* __tstate = wxPyBeginAllowThreads();
33790 (arg1)->AssignStateImageList(arg2);
33791 wxPyEndAllowThreads(__tstate);
33792 if (PyErr_Occurred()) SWIG_fail;
33793 }
33794 resultobj = SWIG_Py_Void();
33795 return resultobj;
33796 fail:
33797 return NULL;
33798 }
33799
33800
33801 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33802 PyObject *resultobj = 0;
33803 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33804 wxTreeItemId *arg2 = 0 ;
33805 wxString result;
33806 void *argp1 = 0 ;
33807 int res1 = 0 ;
33808 void *argp2 = 0 ;
33809 int res2 = 0 ;
33810 PyObject * obj0 = 0 ;
33811 PyObject * obj1 = 0 ;
33812 char * kwnames[] = {
33813 (char *) "self",(char *) "item", NULL
33814 };
33815
33816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
33817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33818 if (!SWIG_IsOK(res1)) {
33819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33820 }
33821 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33822 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33823 if (!SWIG_IsOK(res2)) {
33824 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33825 }
33826 if (!argp2) {
33827 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33828 }
33829 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33830 {
33831 PyThreadState* __tstate = wxPyBeginAllowThreads();
33832 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
33833 wxPyEndAllowThreads(__tstate);
33834 if (PyErr_Occurred()) SWIG_fail;
33835 }
33836 {
33837 #if wxUSE_UNICODE
33838 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33839 #else
33840 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33841 #endif
33842 }
33843 return resultobj;
33844 fail:
33845 return NULL;
33846 }
33847
33848
33849 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33850 PyObject *resultobj = 0;
33851 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33852 wxTreeItemId *arg2 = 0 ;
33853 wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
33854 int result;
33855 void *argp1 = 0 ;
33856 int res1 = 0 ;
33857 void *argp2 = 0 ;
33858 int res2 = 0 ;
33859 int val3 ;
33860 int ecode3 = 0 ;
33861 PyObject * obj0 = 0 ;
33862 PyObject * obj1 = 0 ;
33863 PyObject * obj2 = 0 ;
33864 char * kwnames[] = {
33865 (char *) "self",(char *) "item",(char *) "which", NULL
33866 };
33867
33868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33870 if (!SWIG_IsOK(res1)) {
33871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33872 }
33873 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33874 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33875 if (!SWIG_IsOK(res2)) {
33876 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33877 }
33878 if (!argp2) {
33879 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33880 }
33881 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33882 if (obj2) {
33883 ecode3 = SWIG_AsVal_int(obj2, &val3);
33884 if (!SWIG_IsOK(ecode3)) {
33885 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "3"" of type '" "wxTreeItemIcon""'");
33886 }
33887 arg3 = static_cast< wxTreeItemIcon >(val3);
33888 }
33889 {
33890 PyThreadState* __tstate = wxPyBeginAllowThreads();
33891 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,arg3);
33892 wxPyEndAllowThreads(__tstate);
33893 if (PyErr_Occurred()) SWIG_fail;
33894 }
33895 resultobj = SWIG_From_int(static_cast< int >(result));
33896 return resultobj;
33897 fail:
33898 return NULL;
33899 }
33900
33901
33902 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33903 PyObject *resultobj = 0;
33904 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33905 wxTreeItemId *arg2 = 0 ;
33906 wxPyTreeItemData *result = 0 ;
33907 void *argp1 = 0 ;
33908 int res1 = 0 ;
33909 void *argp2 = 0 ;
33910 int res2 = 0 ;
33911 PyObject * obj0 = 0 ;
33912 PyObject * obj1 = 0 ;
33913 char * kwnames[] = {
33914 (char *) "self",(char *) "item", NULL
33915 };
33916
33917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
33918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33919 if (!SWIG_IsOK(res1)) {
33920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33921 }
33922 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33923 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33924 if (!SWIG_IsOK(res2)) {
33925 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33926 }
33927 if (!argp2) {
33928 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33929 }
33930 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33931 {
33932 PyThreadState* __tstate = wxPyBeginAllowThreads();
33933 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
33934 wxPyEndAllowThreads(__tstate);
33935 if (PyErr_Occurred()) SWIG_fail;
33936 }
33937 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33938 return resultobj;
33939 fail:
33940 return NULL;
33941 }
33942
33943
33944 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33945 PyObject *resultobj = 0;
33946 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33947 wxTreeItemId *arg2 = 0 ;
33948 PyObject *result = 0 ;
33949 void *argp1 = 0 ;
33950 int res1 = 0 ;
33951 void *argp2 = 0 ;
33952 int res2 = 0 ;
33953 PyObject * obj0 = 0 ;
33954 PyObject * obj1 = 0 ;
33955 char * kwnames[] = {
33956 (char *) "self",(char *) "item", NULL
33957 };
33958
33959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) SWIG_fail;
33960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33961 if (!SWIG_IsOK(res1)) {
33962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33963 }
33964 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33965 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33966 if (!SWIG_IsOK(res2)) {
33967 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33968 }
33969 if (!argp2) {
33970 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33971 }
33972 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33973 {
33974 PyThreadState* __tstate = wxPyBeginAllowThreads();
33975 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
33976 wxPyEndAllowThreads(__tstate);
33977 if (PyErr_Occurred()) SWIG_fail;
33978 }
33979 resultobj = result;
33980 return resultobj;
33981 fail:
33982 return NULL;
33983 }
33984
33985
33986 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33987 PyObject *resultobj = 0;
33988 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33989 wxTreeItemId *arg2 = 0 ;
33990 wxColour result;
33991 void *argp1 = 0 ;
33992 int res1 = 0 ;
33993 void *argp2 = 0 ;
33994 int res2 = 0 ;
33995 PyObject * obj0 = 0 ;
33996 PyObject * obj1 = 0 ;
33997 char * kwnames[] = {
33998 (char *) "self",(char *) "item", NULL
33999 };
34000
34001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
34002 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34003 if (!SWIG_IsOK(res1)) {
34004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34005 }
34006 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34007 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34008 if (!SWIG_IsOK(res2)) {
34009 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34010 }
34011 if (!argp2) {
34012 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34013 }
34014 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34015 {
34016 PyThreadState* __tstate = wxPyBeginAllowThreads();
34017 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
34018 wxPyEndAllowThreads(__tstate);
34019 if (PyErr_Occurred()) SWIG_fail;
34020 }
34021 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34022 return resultobj;
34023 fail:
34024 return NULL;
34025 }
34026
34027
34028 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34029 PyObject *resultobj = 0;
34030 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34031 wxTreeItemId *arg2 = 0 ;
34032 wxColour result;
34033 void *argp1 = 0 ;
34034 int res1 = 0 ;
34035 void *argp2 = 0 ;
34036 int res2 = 0 ;
34037 PyObject * obj0 = 0 ;
34038 PyObject * obj1 = 0 ;
34039 char * kwnames[] = {
34040 (char *) "self",(char *) "item", NULL
34041 };
34042
34043 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
34044 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34045 if (!SWIG_IsOK(res1)) {
34046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34047 }
34048 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34049 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34050 if (!SWIG_IsOK(res2)) {
34051 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34052 }
34053 if (!argp2) {
34054 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34055 }
34056 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34057 {
34058 PyThreadState* __tstate = wxPyBeginAllowThreads();
34059 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
34060 wxPyEndAllowThreads(__tstate);
34061 if (PyErr_Occurred()) SWIG_fail;
34062 }
34063 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34064 return resultobj;
34065 fail:
34066 return NULL;
34067 }
34068
34069
34070 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34071 PyObject *resultobj = 0;
34072 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34073 wxTreeItemId *arg2 = 0 ;
34074 wxFont result;
34075 void *argp1 = 0 ;
34076 int res1 = 0 ;
34077 void *argp2 = 0 ;
34078 int res2 = 0 ;
34079 PyObject * obj0 = 0 ;
34080 PyObject * obj1 = 0 ;
34081 char * kwnames[] = {
34082 (char *) "self",(char *) "item", NULL
34083 };
34084
34085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
34086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34087 if (!SWIG_IsOK(res1)) {
34088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34089 }
34090 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34091 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34092 if (!SWIG_IsOK(res2)) {
34093 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34094 }
34095 if (!argp2) {
34096 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34097 }
34098 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34099 {
34100 PyThreadState* __tstate = wxPyBeginAllowThreads();
34101 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
34102 wxPyEndAllowThreads(__tstate);
34103 if (PyErr_Occurred()) SWIG_fail;
34104 }
34105 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
34106 return resultobj;
34107 fail:
34108 return NULL;
34109 }
34110
34111
34112 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34113 PyObject *resultobj = 0;
34114 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34115 wxTreeItemId *arg2 = 0 ;
34116 wxString *arg3 = 0 ;
34117 void *argp1 = 0 ;
34118 int res1 = 0 ;
34119 void *argp2 = 0 ;
34120 int res2 = 0 ;
34121 bool temp3 = false ;
34122 PyObject * obj0 = 0 ;
34123 PyObject * obj1 = 0 ;
34124 PyObject * obj2 = 0 ;
34125 char * kwnames[] = {
34126 (char *) "self",(char *) "item",(char *) "text", NULL
34127 };
34128
34129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34131 if (!SWIG_IsOK(res1)) {
34132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34133 }
34134 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34135 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34136 if (!SWIG_IsOK(res2)) {
34137 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34138 }
34139 if (!argp2) {
34140 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34141 }
34142 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34143 {
34144 arg3 = wxString_in_helper(obj2);
34145 if (arg3 == NULL) SWIG_fail;
34146 temp3 = true;
34147 }
34148 {
34149 PyThreadState* __tstate = wxPyBeginAllowThreads();
34150 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
34151 wxPyEndAllowThreads(__tstate);
34152 if (PyErr_Occurred()) SWIG_fail;
34153 }
34154 resultobj = SWIG_Py_Void();
34155 {
34156 if (temp3)
34157 delete arg3;
34158 }
34159 return resultobj;
34160 fail:
34161 {
34162 if (temp3)
34163 delete arg3;
34164 }
34165 return NULL;
34166 }
34167
34168
34169 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34170 PyObject *resultobj = 0;
34171 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34172 wxTreeItemId *arg2 = 0 ;
34173 int arg3 ;
34174 wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34175 void *argp1 = 0 ;
34176 int res1 = 0 ;
34177 void *argp2 = 0 ;
34178 int res2 = 0 ;
34179 int val3 ;
34180 int ecode3 = 0 ;
34181 int val4 ;
34182 int ecode4 = 0 ;
34183 PyObject * obj0 = 0 ;
34184 PyObject * obj1 = 0 ;
34185 PyObject * obj2 = 0 ;
34186 PyObject * obj3 = 0 ;
34187 char * kwnames[] = {
34188 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
34189 };
34190
34191 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34192 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34193 if (!SWIG_IsOK(res1)) {
34194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34195 }
34196 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34197 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34198 if (!SWIG_IsOK(res2)) {
34199 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34200 }
34201 if (!argp2) {
34202 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34203 }
34204 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34205 ecode3 = SWIG_AsVal_int(obj2, &val3);
34206 if (!SWIG_IsOK(ecode3)) {
34207 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
34208 }
34209 arg3 = static_cast< int >(val3);
34210 if (obj3) {
34211 ecode4 = SWIG_AsVal_int(obj3, &val4);
34212 if (!SWIG_IsOK(ecode4)) {
34213 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "4"" of type '" "wxTreeItemIcon""'");
34214 }
34215 arg4 = static_cast< wxTreeItemIcon >(val4);
34216 }
34217 {
34218 PyThreadState* __tstate = wxPyBeginAllowThreads();
34219 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,arg4);
34220 wxPyEndAllowThreads(__tstate);
34221 if (PyErr_Occurred()) SWIG_fail;
34222 }
34223 resultobj = SWIG_Py_Void();
34224 return resultobj;
34225 fail:
34226 return NULL;
34227 }
34228
34229
34230 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34231 PyObject *resultobj = 0;
34232 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34233 wxTreeItemId *arg2 = 0 ;
34234 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
34235 void *argp1 = 0 ;
34236 int res1 = 0 ;
34237 void *argp2 = 0 ;
34238 int res2 = 0 ;
34239 int res3 = 0 ;
34240 PyObject * obj0 = 0 ;
34241 PyObject * obj1 = 0 ;
34242 PyObject * obj2 = 0 ;
34243 char * kwnames[] = {
34244 (char *) "self",(char *) "item",(char *) "data", NULL
34245 };
34246
34247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34249 if (!SWIG_IsOK(res1)) {
34250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34251 }
34252 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34253 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34254 if (!SWIG_IsOK(res2)) {
34255 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34256 }
34257 if (!argp2) {
34258 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34259 }
34260 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34261 res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
34262 if (!SWIG_IsOK(res3)) {
34263 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemData" "', expected argument " "3"" of type '" "wxPyTreeItemData *""'");
34264 }
34265 {
34266 PyThreadState* __tstate = wxPyBeginAllowThreads();
34267 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
34268 wxPyEndAllowThreads(__tstate);
34269 if (PyErr_Occurred()) SWIG_fail;
34270 }
34271 resultobj = SWIG_Py_Void();
34272 return resultobj;
34273 fail:
34274 return NULL;
34275 }
34276
34277
34278 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34279 PyObject *resultobj = 0;
34280 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34281 wxTreeItemId *arg2 = 0 ;
34282 PyObject *arg3 = (PyObject *) 0 ;
34283 void *argp1 = 0 ;
34284 int res1 = 0 ;
34285 void *argp2 = 0 ;
34286 int res2 = 0 ;
34287 PyObject * obj0 = 0 ;
34288 PyObject * obj1 = 0 ;
34289 PyObject * obj2 = 0 ;
34290 char * kwnames[] = {
34291 (char *) "self",(char *) "item",(char *) "obj", NULL
34292 };
34293
34294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34295 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34296 if (!SWIG_IsOK(res1)) {
34297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34298 }
34299 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34300 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34301 if (!SWIG_IsOK(res2)) {
34302 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34303 }
34304 if (!argp2) {
34305 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34306 }
34307 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34308 arg3 = obj2;
34309 {
34310 PyThreadState* __tstate = wxPyBeginAllowThreads();
34311 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
34312 wxPyEndAllowThreads(__tstate);
34313 if (PyErr_Occurred()) SWIG_fail;
34314 }
34315 resultobj = SWIG_Py_Void();
34316 return resultobj;
34317 fail:
34318 return NULL;
34319 }
34320
34321
34322 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34323 PyObject *resultobj = 0;
34324 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34325 wxTreeItemId *arg2 = 0 ;
34326 bool arg3 = (bool) true ;
34327 void *argp1 = 0 ;
34328 int res1 = 0 ;
34329 void *argp2 = 0 ;
34330 int res2 = 0 ;
34331 bool val3 ;
34332 int ecode3 = 0 ;
34333 PyObject * obj0 = 0 ;
34334 PyObject * obj1 = 0 ;
34335 PyObject * obj2 = 0 ;
34336 char * kwnames[] = {
34337 (char *) "self",(char *) "item",(char *) "has", NULL
34338 };
34339
34340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34342 if (!SWIG_IsOK(res1)) {
34343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34344 }
34345 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34346 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34347 if (!SWIG_IsOK(res2)) {
34348 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34349 }
34350 if (!argp2) {
34351 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34352 }
34353 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34354 if (obj2) {
34355 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34356 if (!SWIG_IsOK(ecode3)) {
34357 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "3"" of type '" "bool""'");
34358 }
34359 arg3 = static_cast< bool >(val3);
34360 }
34361 {
34362 PyThreadState* __tstate = wxPyBeginAllowThreads();
34363 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
34364 wxPyEndAllowThreads(__tstate);
34365 if (PyErr_Occurred()) SWIG_fail;
34366 }
34367 resultobj = SWIG_Py_Void();
34368 return resultobj;
34369 fail:
34370 return NULL;
34371 }
34372
34373
34374 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34375 PyObject *resultobj = 0;
34376 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34377 wxTreeItemId *arg2 = 0 ;
34378 bool arg3 = (bool) true ;
34379 void *argp1 = 0 ;
34380 int res1 = 0 ;
34381 void *argp2 = 0 ;
34382 int res2 = 0 ;
34383 bool val3 ;
34384 int ecode3 = 0 ;
34385 PyObject * obj0 = 0 ;
34386 PyObject * obj1 = 0 ;
34387 PyObject * obj2 = 0 ;
34388 char * kwnames[] = {
34389 (char *) "self",(char *) "item",(char *) "bold", NULL
34390 };
34391
34392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34394 if (!SWIG_IsOK(res1)) {
34395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34396 }
34397 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34398 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34399 if (!SWIG_IsOK(res2)) {
34400 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34401 }
34402 if (!argp2) {
34403 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34404 }
34405 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34406 if (obj2) {
34407 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34408 if (!SWIG_IsOK(ecode3)) {
34409 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "3"" of type '" "bool""'");
34410 }
34411 arg3 = static_cast< bool >(val3);
34412 }
34413 {
34414 PyThreadState* __tstate = wxPyBeginAllowThreads();
34415 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
34416 wxPyEndAllowThreads(__tstate);
34417 if (PyErr_Occurred()) SWIG_fail;
34418 }
34419 resultobj = SWIG_Py_Void();
34420 return resultobj;
34421 fail:
34422 return NULL;
34423 }
34424
34425
34426 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34427 PyObject *resultobj = 0;
34428 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34429 wxTreeItemId *arg2 = 0 ;
34430 bool arg3 = (bool) true ;
34431 void *argp1 = 0 ;
34432 int res1 = 0 ;
34433 void *argp2 = 0 ;
34434 int res2 = 0 ;
34435 bool val3 ;
34436 int ecode3 = 0 ;
34437 PyObject * obj0 = 0 ;
34438 PyObject * obj1 = 0 ;
34439 PyObject * obj2 = 0 ;
34440 char * kwnames[] = {
34441 (char *) "self",(char *) "item",(char *) "highlight", NULL
34442 };
34443
34444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34446 if (!SWIG_IsOK(res1)) {
34447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34448 }
34449 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34450 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34451 if (!SWIG_IsOK(res2)) {
34452 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34453 }
34454 if (!argp2) {
34455 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34456 }
34457 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34458 if (obj2) {
34459 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34460 if (!SWIG_IsOK(ecode3)) {
34461 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "3"" of type '" "bool""'");
34462 }
34463 arg3 = static_cast< bool >(val3);
34464 }
34465 {
34466 PyThreadState* __tstate = wxPyBeginAllowThreads();
34467 (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3);
34468 wxPyEndAllowThreads(__tstate);
34469 if (PyErr_Occurred()) SWIG_fail;
34470 }
34471 resultobj = SWIG_Py_Void();
34472 return resultobj;
34473 fail:
34474 return NULL;
34475 }
34476
34477
34478 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34479 PyObject *resultobj = 0;
34480 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34481 wxTreeItemId *arg2 = 0 ;
34482 wxColour *arg3 = 0 ;
34483 void *argp1 = 0 ;
34484 int res1 = 0 ;
34485 void *argp2 = 0 ;
34486 int res2 = 0 ;
34487 wxColour temp3 ;
34488 PyObject * obj0 = 0 ;
34489 PyObject * obj1 = 0 ;
34490 PyObject * obj2 = 0 ;
34491 char * kwnames[] = {
34492 (char *) "self",(char *) "item",(char *) "col", NULL
34493 };
34494
34495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34497 if (!SWIG_IsOK(res1)) {
34498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34499 }
34500 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34501 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34502 if (!SWIG_IsOK(res2)) {
34503 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34504 }
34505 if (!argp2) {
34506 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34507 }
34508 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34509 {
34510 arg3 = &temp3;
34511 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
34512 }
34513 {
34514 PyThreadState* __tstate = wxPyBeginAllowThreads();
34515 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
34516 wxPyEndAllowThreads(__tstate);
34517 if (PyErr_Occurred()) SWIG_fail;
34518 }
34519 resultobj = SWIG_Py_Void();
34520 return resultobj;
34521 fail:
34522 return NULL;
34523 }
34524
34525
34526 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34527 PyObject *resultobj = 0;
34528 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34529 wxTreeItemId *arg2 = 0 ;
34530 wxColour *arg3 = 0 ;
34531 void *argp1 = 0 ;
34532 int res1 = 0 ;
34533 void *argp2 = 0 ;
34534 int res2 = 0 ;
34535 wxColour temp3 ;
34536 PyObject * obj0 = 0 ;
34537 PyObject * obj1 = 0 ;
34538 PyObject * obj2 = 0 ;
34539 char * kwnames[] = {
34540 (char *) "self",(char *) "item",(char *) "col", NULL
34541 };
34542
34543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34545 if (!SWIG_IsOK(res1)) {
34546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34547 }
34548 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34549 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34550 if (!SWIG_IsOK(res2)) {
34551 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34552 }
34553 if (!argp2) {
34554 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34555 }
34556 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34557 {
34558 arg3 = &temp3;
34559 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
34560 }
34561 {
34562 PyThreadState* __tstate = wxPyBeginAllowThreads();
34563 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
34564 wxPyEndAllowThreads(__tstate);
34565 if (PyErr_Occurred()) SWIG_fail;
34566 }
34567 resultobj = SWIG_Py_Void();
34568 return resultobj;
34569 fail:
34570 return NULL;
34571 }
34572
34573
34574 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34575 PyObject *resultobj = 0;
34576 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34577 wxTreeItemId *arg2 = 0 ;
34578 wxFont *arg3 = 0 ;
34579 void *argp1 = 0 ;
34580 int res1 = 0 ;
34581 void *argp2 = 0 ;
34582 int res2 = 0 ;
34583 void *argp3 = 0 ;
34584 int res3 = 0 ;
34585 PyObject * obj0 = 0 ;
34586 PyObject * obj1 = 0 ;
34587 PyObject * obj2 = 0 ;
34588 char * kwnames[] = {
34589 (char *) "self",(char *) "item",(char *) "font", NULL
34590 };
34591
34592 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34593 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34594 if (!SWIG_IsOK(res1)) {
34595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34596 }
34597 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34598 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34599 if (!SWIG_IsOK(res2)) {
34600 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34601 }
34602 if (!argp2) {
34603 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34604 }
34605 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34606 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
34607 if (!SWIG_IsOK(res3)) {
34608 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
34609 }
34610 if (!argp3) {
34611 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
34612 }
34613 arg3 = reinterpret_cast< wxFont * >(argp3);
34614 {
34615 PyThreadState* __tstate = wxPyBeginAllowThreads();
34616 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
34617 wxPyEndAllowThreads(__tstate);
34618 if (PyErr_Occurred()) SWIG_fail;
34619 }
34620 resultobj = SWIG_Py_Void();
34621 return resultobj;
34622 fail:
34623 return NULL;
34624 }
34625
34626
34627 SWIGINTERN PyObject *_wrap_TreeCtrl_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34628 PyObject *resultobj = 0;
34629 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34630 wxTreeItemId *arg2 = 0 ;
34631 bool result;
34632 void *argp1 = 0 ;
34633 int res1 = 0 ;
34634 void *argp2 = 0 ;
34635 int res2 = 0 ;
34636 PyObject * obj0 = 0 ;
34637 PyObject * obj1 = 0 ;
34638 char * kwnames[] = {
34639 (char *) "self",(char *) "item", NULL
34640 };
34641
34642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail;
34643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34644 if (!SWIG_IsOK(res1)) {
34645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34646 }
34647 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34648 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34649 if (!SWIG_IsOK(res2)) {
34650 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34651 }
34652 if (!argp2) {
34653 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34654 }
34655 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34656 {
34657 PyThreadState* __tstate = wxPyBeginAllowThreads();
34658 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
34659 wxPyEndAllowThreads(__tstate);
34660 if (PyErr_Occurred()) SWIG_fail;
34661 }
34662 {
34663 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34664 }
34665 return resultobj;
34666 fail:
34667 return NULL;
34668 }
34669
34670
34671 SWIGINTERN PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34672 PyObject *resultobj = 0;
34673 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34674 wxTreeItemId *arg2 = 0 ;
34675 bool result;
34676 void *argp1 = 0 ;
34677 int res1 = 0 ;
34678 void *argp2 = 0 ;
34679 int res2 = 0 ;
34680 PyObject * obj0 = 0 ;
34681 PyObject * obj1 = 0 ;
34682 char * kwnames[] = {
34683 (char *) "self",(char *) "item", NULL
34684 };
34685
34686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) SWIG_fail;
34687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34688 if (!SWIG_IsOK(res1)) {
34689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34690 }
34691 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34692 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34693 if (!SWIG_IsOK(res2)) {
34694 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34695 }
34696 if (!argp2) {
34697 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34698 }
34699 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34700 {
34701 PyThreadState* __tstate = wxPyBeginAllowThreads();
34702 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
34703 wxPyEndAllowThreads(__tstate);
34704 if (PyErr_Occurred()) SWIG_fail;
34705 }
34706 {
34707 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34708 }
34709 return resultobj;
34710 fail:
34711 return NULL;
34712 }
34713
34714
34715 SWIGINTERN PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34716 PyObject *resultobj = 0;
34717 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34718 wxTreeItemId *arg2 = 0 ;
34719 bool result;
34720 void *argp1 = 0 ;
34721 int res1 = 0 ;
34722 void *argp2 = 0 ;
34723 int res2 = 0 ;
34724 PyObject * obj0 = 0 ;
34725 PyObject * obj1 = 0 ;
34726 char * kwnames[] = {
34727 (char *) "self",(char *) "item", NULL
34728 };
34729
34730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) 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_IsExpanded" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
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_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34739 }
34740 if (!argp2) {
34741 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34742 }
34743 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34744 {
34745 PyThreadState* __tstate = wxPyBeginAllowThreads();
34746 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
34747 wxPyEndAllowThreads(__tstate);
34748 if (PyErr_Occurred()) SWIG_fail;
34749 }
34750 {
34751 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34752 }
34753 return resultobj;
34754 fail:
34755 return NULL;
34756 }
34757
34758
34759 SWIGINTERN PyObject *_wrap_TreeCtrl_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34760 PyObject *resultobj = 0;
34761 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34762 wxTreeItemId *arg2 = 0 ;
34763 bool result;
34764 void *argp1 = 0 ;
34765 int res1 = 0 ;
34766 void *argp2 = 0 ;
34767 int res2 = 0 ;
34768 PyObject * obj0 = 0 ;
34769 PyObject * obj1 = 0 ;
34770 char * kwnames[] = {
34771 (char *) "self",(char *) "item", NULL
34772 };
34773
34774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
34775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34776 if (!SWIG_IsOK(res1)) {
34777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsSelected" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34778 }
34779 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34780 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34781 if (!SWIG_IsOK(res2)) {
34782 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34783 }
34784 if (!argp2) {
34785 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34786 }
34787 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34788 {
34789 PyThreadState* __tstate = wxPyBeginAllowThreads();
34790 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
34791 wxPyEndAllowThreads(__tstate);
34792 if (PyErr_Occurred()) SWIG_fail;
34793 }
34794 {
34795 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34796 }
34797 return resultobj;
34798 fail:
34799 return NULL;
34800 }
34801
34802
34803 SWIGINTERN PyObject *_wrap_TreeCtrl_IsBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34804 PyObject *resultobj = 0;
34805 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34806 wxTreeItemId *arg2 = 0 ;
34807 bool result;
34808 void *argp1 = 0 ;
34809 int res1 = 0 ;
34810 void *argp2 = 0 ;
34811 int res2 = 0 ;
34812 PyObject * obj0 = 0 ;
34813 PyObject * obj1 = 0 ;
34814 char * kwnames[] = {
34815 (char *) "self",(char *) "item", NULL
34816 };
34817
34818 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) SWIG_fail;
34819 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34820 if (!SWIG_IsOK(res1)) {
34821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34822 }
34823 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34824 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34825 if (!SWIG_IsOK(res2)) {
34826 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34827 }
34828 if (!argp2) {
34829 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34830 }
34831 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34832 {
34833 PyThreadState* __tstate = wxPyBeginAllowThreads();
34834 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
34835 wxPyEndAllowThreads(__tstate);
34836 if (PyErr_Occurred()) SWIG_fail;
34837 }
34838 {
34839 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34840 }
34841 return resultobj;
34842 fail:
34843 return NULL;
34844 }
34845
34846
34847 SWIGINTERN PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34848 PyObject *resultobj = 0;
34849 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34850 wxTreeItemId *arg2 = 0 ;
34851 bool arg3 = (bool) true ;
34852 size_t result;
34853 void *argp1 = 0 ;
34854 int res1 = 0 ;
34855 void *argp2 = 0 ;
34856 int res2 = 0 ;
34857 bool val3 ;
34858 int ecode3 = 0 ;
34859 PyObject * obj0 = 0 ;
34860 PyObject * obj1 = 0 ;
34861 PyObject * obj2 = 0 ;
34862 char * kwnames[] = {
34863 (char *) "self",(char *) "item",(char *) "recursively", NULL
34864 };
34865
34866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34867 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34868 if (!SWIG_IsOK(res1)) {
34869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34870 }
34871 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34872 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34873 if (!SWIG_IsOK(res2)) {
34874 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34875 }
34876 if (!argp2) {
34877 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34878 }
34879 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34880 if (obj2) {
34881 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34882 if (!SWIG_IsOK(ecode3)) {
34883 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "3"" of type '" "bool""'");
34884 }
34885 arg3 = static_cast< bool >(val3);
34886 }
34887 {
34888 PyThreadState* __tstate = wxPyBeginAllowThreads();
34889 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
34890 wxPyEndAllowThreads(__tstate);
34891 if (PyErr_Occurred()) SWIG_fail;
34892 }
34893 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
34894 return resultobj;
34895 fail:
34896 return NULL;
34897 }
34898
34899
34900 SWIGINTERN PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34901 PyObject *resultobj = 0;
34902 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34903 wxTreeItemId result;
34904 void *argp1 = 0 ;
34905 int res1 = 0 ;
34906 PyObject *swig_obj[1] ;
34907
34908 if (!args) SWIG_fail;
34909 swig_obj[0] = args;
34910 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34911 if (!SWIG_IsOK(res1)) {
34912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetRootItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34913 }
34914 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34915 {
34916 PyThreadState* __tstate = wxPyBeginAllowThreads();
34917 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
34918 wxPyEndAllowThreads(__tstate);
34919 if (PyErr_Occurred()) SWIG_fail;
34920 }
34921 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
34922 return resultobj;
34923 fail:
34924 return NULL;
34925 }
34926
34927
34928 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34929 PyObject *resultobj = 0;
34930 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34931 wxTreeItemId result;
34932 void *argp1 = 0 ;
34933 int res1 = 0 ;
34934 PyObject *swig_obj[1] ;
34935
34936 if (!args) SWIG_fail;
34937 swig_obj[0] = args;
34938 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34939 if (!SWIG_IsOK(res1)) {
34940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34941 }
34942 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34943 {
34944 PyThreadState* __tstate = wxPyBeginAllowThreads();
34945 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
34946 wxPyEndAllowThreads(__tstate);
34947 if (PyErr_Occurred()) SWIG_fail;
34948 }
34949 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
34950 return resultobj;
34951 fail:
34952 return NULL;
34953 }
34954
34955
34956 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34957 PyObject *resultobj = 0;
34958 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34959 PyObject *result = 0 ;
34960 void *argp1 = 0 ;
34961 int res1 = 0 ;
34962 PyObject *swig_obj[1] ;
34963
34964 if (!args) SWIG_fail;
34965 swig_obj[0] = args;
34966 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34967 if (!SWIG_IsOK(res1)) {
34968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelections" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34969 }
34970 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34971 {
34972 PyThreadState* __tstate = wxPyBeginAllowThreads();
34973 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
34974 wxPyEndAllowThreads(__tstate);
34975 if (PyErr_Occurred()) SWIG_fail;
34976 }
34977 resultobj = result;
34978 return resultobj;
34979 fail:
34980 return NULL;
34981 }
34982
34983
34984 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34985 PyObject *resultobj = 0;
34986 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34987 wxTreeItemId *arg2 = 0 ;
34988 wxTreeItemId result;
34989 void *argp1 = 0 ;
34990 int res1 = 0 ;
34991 void *argp2 = 0 ;
34992 int res2 = 0 ;
34993 PyObject * obj0 = 0 ;
34994 PyObject * obj1 = 0 ;
34995 char * kwnames[] = {
34996 (char *) "self",(char *) "item", NULL
34997 };
34998
34999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) SWIG_fail;
35000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35001 if (!SWIG_IsOK(res1)) {
35002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35003 }
35004 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35005 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35006 if (!SWIG_IsOK(res2)) {
35007 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35008 }
35009 if (!argp2) {
35010 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35011 }
35012 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35013 {
35014 PyThreadState* __tstate = wxPyBeginAllowThreads();
35015 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
35016 wxPyEndAllowThreads(__tstate);
35017 if (PyErr_Occurred()) SWIG_fail;
35018 }
35019 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35020 return resultobj;
35021 fail:
35022 return NULL;
35023 }
35024
35025
35026 SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35027 PyObject *resultobj = 0;
35028 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35029 wxTreeItemId *arg2 = 0 ;
35030 PyObject *result = 0 ;
35031 void *argp1 = 0 ;
35032 int res1 = 0 ;
35033 void *argp2 = 0 ;
35034 int res2 = 0 ;
35035 PyObject * obj0 = 0 ;
35036 PyObject * obj1 = 0 ;
35037 char * kwnames[] = {
35038 (char *) "self",(char *) "item", NULL
35039 };
35040
35041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) SWIG_fail;
35042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35043 if (!SWIG_IsOK(res1)) {
35044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35045 }
35046 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35047 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35048 if (!SWIG_IsOK(res2)) {
35049 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35050 }
35051 if (!argp2) {
35052 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35053 }
35054 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35055 {
35056 PyThreadState* __tstate = wxPyBeginAllowThreads();
35057 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
35058 wxPyEndAllowThreads(__tstate);
35059 if (PyErr_Occurred()) SWIG_fail;
35060 }
35061 resultobj = result;
35062 return resultobj;
35063 fail:
35064 return NULL;
35065 }
35066
35067
35068 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35069 PyObject *resultobj = 0;
35070 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35071 wxTreeItemId *arg2 = 0 ;
35072 void *arg3 = (void *) 0 ;
35073 PyObject *result = 0 ;
35074 void *argp1 = 0 ;
35075 int res1 = 0 ;
35076 void *argp2 = 0 ;
35077 int res2 = 0 ;
35078 int res3 ;
35079 PyObject * obj0 = 0 ;
35080 PyObject * obj1 = 0 ;
35081 PyObject * obj2 = 0 ;
35082 char * kwnames[] = {
35083 (char *) "self",(char *) "item",(char *) "cookie", NULL
35084 };
35085
35086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35088 if (!SWIG_IsOK(res1)) {
35089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35090 }
35091 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35092 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35093 if (!SWIG_IsOK(res2)) {
35094 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35095 }
35096 if (!argp2) {
35097 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35098 }
35099 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35100 res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0);
35101 if (!SWIG_IsOK(res3)) {
35102 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "3"" of type '" "void *""'");
35103 }
35104 {
35105 PyThreadState* __tstate = wxPyBeginAllowThreads();
35106 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
35107 wxPyEndAllowThreads(__tstate);
35108 if (PyErr_Occurred()) SWIG_fail;
35109 }
35110 resultobj = result;
35111 return resultobj;
35112 fail:
35113 return NULL;
35114 }
35115
35116
35117 SWIGINTERN PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35118 PyObject *resultobj = 0;
35119 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35120 wxTreeItemId *arg2 = 0 ;
35121 wxTreeItemId result;
35122 void *argp1 = 0 ;
35123 int res1 = 0 ;
35124 void *argp2 = 0 ;
35125 int res2 = 0 ;
35126 PyObject * obj0 = 0 ;
35127 PyObject * obj1 = 0 ;
35128 char * kwnames[] = {
35129 (char *) "self",(char *) "item", NULL
35130 };
35131
35132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) SWIG_fail;
35133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35134 if (!SWIG_IsOK(res1)) {
35135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35136 }
35137 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35138 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35139 if (!SWIG_IsOK(res2)) {
35140 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35141 }
35142 if (!argp2) {
35143 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35144 }
35145 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35146 {
35147 PyThreadState* __tstate = wxPyBeginAllowThreads();
35148 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
35149 wxPyEndAllowThreads(__tstate);
35150 if (PyErr_Occurred()) SWIG_fail;
35151 }
35152 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35153 return resultobj;
35154 fail:
35155 return NULL;
35156 }
35157
35158
35159 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35160 PyObject *resultobj = 0;
35161 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35162 wxTreeItemId *arg2 = 0 ;
35163 wxTreeItemId result;
35164 void *argp1 = 0 ;
35165 int res1 = 0 ;
35166 void *argp2 = 0 ;
35167 int res2 = 0 ;
35168 PyObject * obj0 = 0 ;
35169 PyObject * obj1 = 0 ;
35170 char * kwnames[] = {
35171 (char *) "self",(char *) "item", NULL
35172 };
35173
35174 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35175 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35176 if (!SWIG_IsOK(res1)) {
35177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35178 }
35179 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35180 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35181 if (!SWIG_IsOK(res2)) {
35182 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35183 }
35184 if (!argp2) {
35185 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35186 }
35187 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35188 {
35189 PyThreadState* __tstate = wxPyBeginAllowThreads();
35190 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
35191 wxPyEndAllowThreads(__tstate);
35192 if (PyErr_Occurred()) SWIG_fail;
35193 }
35194 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35195 return resultobj;
35196 fail:
35197 return NULL;
35198 }
35199
35200
35201 SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35202 PyObject *resultobj = 0;
35203 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35204 wxTreeItemId *arg2 = 0 ;
35205 wxTreeItemId result;
35206 void *argp1 = 0 ;
35207 int res1 = 0 ;
35208 void *argp2 = 0 ;
35209 int res2 = 0 ;
35210 PyObject * obj0 = 0 ;
35211 PyObject * obj1 = 0 ;
35212 char * kwnames[] = {
35213 (char *) "self",(char *) "item", NULL
35214 };
35215
35216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35218 if (!SWIG_IsOK(res1)) {
35219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35220 }
35221 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35222 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35223 if (!SWIG_IsOK(res2)) {
35224 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35225 }
35226 if (!argp2) {
35227 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35228 }
35229 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35230 {
35231 PyThreadState* __tstate = wxPyBeginAllowThreads();
35232 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
35233 wxPyEndAllowThreads(__tstate);
35234 if (PyErr_Occurred()) SWIG_fail;
35235 }
35236 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35237 return resultobj;
35238 fail:
35239 return NULL;
35240 }
35241
35242
35243 SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35244 PyObject *resultobj = 0;
35245 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35246 wxTreeItemId result;
35247 void *argp1 = 0 ;
35248 int res1 = 0 ;
35249 PyObject *swig_obj[1] ;
35250
35251 if (!args) SWIG_fail;
35252 swig_obj[0] = args;
35253 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35254 if (!SWIG_IsOK(res1)) {
35255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstVisibleItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35256 }
35257 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35258 {
35259 PyThreadState* __tstate = wxPyBeginAllowThreads();
35260 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
35261 wxPyEndAllowThreads(__tstate);
35262 if (PyErr_Occurred()) SWIG_fail;
35263 }
35264 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35265 return resultobj;
35266 fail:
35267 return NULL;
35268 }
35269
35270
35271 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35272 PyObject *resultobj = 0;
35273 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35274 wxTreeItemId *arg2 = 0 ;
35275 wxTreeItemId result;
35276 void *argp1 = 0 ;
35277 int res1 = 0 ;
35278 void *argp2 = 0 ;
35279 int res2 = 0 ;
35280 PyObject * obj0 = 0 ;
35281 PyObject * obj1 = 0 ;
35282 char * kwnames[] = {
35283 (char *) "self",(char *) "item", NULL
35284 };
35285
35286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35288 if (!SWIG_IsOK(res1)) {
35289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35290 }
35291 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35292 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35293 if (!SWIG_IsOK(res2)) {
35294 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35295 }
35296 if (!argp2) {
35297 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35298 }
35299 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35300 {
35301 PyThreadState* __tstate = wxPyBeginAllowThreads();
35302 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
35303 wxPyEndAllowThreads(__tstate);
35304 if (PyErr_Occurred()) SWIG_fail;
35305 }
35306 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35307 return resultobj;
35308 fail:
35309 return NULL;
35310 }
35311
35312
35313 SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35314 PyObject *resultobj = 0;
35315 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35316 wxTreeItemId *arg2 = 0 ;
35317 wxTreeItemId result;
35318 void *argp1 = 0 ;
35319 int res1 = 0 ;
35320 void *argp2 = 0 ;
35321 int res2 = 0 ;
35322 PyObject * obj0 = 0 ;
35323 PyObject * obj1 = 0 ;
35324 char * kwnames[] = {
35325 (char *) "self",(char *) "item", NULL
35326 };
35327
35328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35330 if (!SWIG_IsOK(res1)) {
35331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35332 }
35333 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35334 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35335 if (!SWIG_IsOK(res2)) {
35336 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35337 }
35338 if (!argp2) {
35339 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35340 }
35341 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35342 {
35343 PyThreadState* __tstate = wxPyBeginAllowThreads();
35344 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
35345 wxPyEndAllowThreads(__tstate);
35346 if (PyErr_Occurred()) SWIG_fail;
35347 }
35348 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35349 return resultobj;
35350 fail:
35351 return NULL;
35352 }
35353
35354
35355 SWIGINTERN PyObject *_wrap_TreeCtrl_AddRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35356 PyObject *resultobj = 0;
35357 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35358 wxString *arg2 = 0 ;
35359 int arg3 = (int) -1 ;
35360 int arg4 = (int) -1 ;
35361 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
35362 wxTreeItemId result;
35363 void *argp1 = 0 ;
35364 int res1 = 0 ;
35365 bool temp2 = false ;
35366 int val3 ;
35367 int ecode3 = 0 ;
35368 int val4 ;
35369 int ecode4 = 0 ;
35370 int res5 = 0 ;
35371 PyObject * obj0 = 0 ;
35372 PyObject * obj1 = 0 ;
35373 PyObject * obj2 = 0 ;
35374 PyObject * obj3 = 0 ;
35375 PyObject * obj4 = 0 ;
35376 char * kwnames[] = {
35377 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35378 };
35379
35380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35382 if (!SWIG_IsOK(res1)) {
35383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AddRoot" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35384 }
35385 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35386 {
35387 arg2 = wxString_in_helper(obj1);
35388 if (arg2 == NULL) SWIG_fail;
35389 temp2 = true;
35390 }
35391 if (obj2) {
35392 ecode3 = SWIG_AsVal_int(obj2, &val3);
35393 if (!SWIG_IsOK(ecode3)) {
35394 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_AddRoot" "', expected argument " "3"" of type '" "int""'");
35395 }
35396 arg3 = static_cast< int >(val3);
35397 }
35398 if (obj3) {
35399 ecode4 = SWIG_AsVal_int(obj3, &val4);
35400 if (!SWIG_IsOK(ecode4)) {
35401 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AddRoot" "', expected argument " "4"" of type '" "int""'");
35402 }
35403 arg4 = static_cast< int >(val4);
35404 }
35405 if (obj4) {
35406 res5 = SWIG_ConvertPtr(obj4, SWIG_as_voidptrptr(&arg5), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35407 if (!SWIG_IsOK(res5)) {
35408 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "TreeCtrl_AddRoot" "', expected argument " "5"" of type '" "wxPyTreeItemData *""'");
35409 }
35410 }
35411 {
35412 PyThreadState* __tstate = wxPyBeginAllowThreads();
35413 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
35414 wxPyEndAllowThreads(__tstate);
35415 if (PyErr_Occurred()) SWIG_fail;
35416 }
35417 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35418 {
35419 if (temp2)
35420 delete arg2;
35421 }
35422 return resultobj;
35423 fail:
35424 {
35425 if (temp2)
35426 delete arg2;
35427 }
35428 return NULL;
35429 }
35430
35431
35432 SWIGINTERN PyObject *_wrap_TreeCtrl_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35433 PyObject *resultobj = 0;
35434 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35435 wxTreeItemId *arg2 = 0 ;
35436 wxString *arg3 = 0 ;
35437 int arg4 = (int) -1 ;
35438 int arg5 = (int) -1 ;
35439 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
35440 wxTreeItemId result;
35441 void *argp1 = 0 ;
35442 int res1 = 0 ;
35443 void *argp2 = 0 ;
35444 int res2 = 0 ;
35445 bool temp3 = false ;
35446 int val4 ;
35447 int ecode4 = 0 ;
35448 int val5 ;
35449 int ecode5 = 0 ;
35450 int res6 = 0 ;
35451 PyObject * obj0 = 0 ;
35452 PyObject * obj1 = 0 ;
35453 PyObject * obj2 = 0 ;
35454 PyObject * obj3 = 0 ;
35455 PyObject * obj4 = 0 ;
35456 PyObject * obj5 = 0 ;
35457 char * kwnames[] = {
35458 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35459 };
35460
35461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
35462 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35463 if (!SWIG_IsOK(res1)) {
35464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_PrependItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35465 }
35466 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35467 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35468 if (!SWIG_IsOK(res2)) {
35469 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35470 }
35471 if (!argp2) {
35472 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35473 }
35474 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35475 {
35476 arg3 = wxString_in_helper(obj2);
35477 if (arg3 == NULL) SWIG_fail;
35478 temp3 = true;
35479 }
35480 if (obj3) {
35481 ecode4 = SWIG_AsVal_int(obj3, &val4);
35482 if (!SWIG_IsOK(ecode4)) {
35483 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_PrependItem" "', expected argument " "4"" of type '" "int""'");
35484 }
35485 arg4 = static_cast< int >(val4);
35486 }
35487 if (obj4) {
35488 ecode5 = SWIG_AsVal_int(obj4, &val5);
35489 if (!SWIG_IsOK(ecode5)) {
35490 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_PrependItem" "', expected argument " "5"" of type '" "int""'");
35491 }
35492 arg5 = static_cast< int >(val5);
35493 }
35494 if (obj5) {
35495 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35496 if (!SWIG_IsOK(res6)) {
35497 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_PrependItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
35498 }
35499 }
35500 {
35501 PyThreadState* __tstate = wxPyBeginAllowThreads();
35502 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
35503 wxPyEndAllowThreads(__tstate);
35504 if (PyErr_Occurred()) SWIG_fail;
35505 }
35506 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35507 {
35508 if (temp3)
35509 delete arg3;
35510 }
35511 return resultobj;
35512 fail:
35513 {
35514 if (temp3)
35515 delete arg3;
35516 }
35517 return NULL;
35518 }
35519
35520
35521 SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35522 PyObject *resultobj = 0;
35523 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35524 wxTreeItemId *arg2 = 0 ;
35525 wxTreeItemId *arg3 = 0 ;
35526 wxString *arg4 = 0 ;
35527 int arg5 = (int) -1 ;
35528 int arg6 = (int) -1 ;
35529 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
35530 wxTreeItemId result;
35531 void *argp1 = 0 ;
35532 int res1 = 0 ;
35533 void *argp2 = 0 ;
35534 int res2 = 0 ;
35535 void *argp3 = 0 ;
35536 int res3 = 0 ;
35537 bool temp4 = false ;
35538 int val5 ;
35539 int ecode5 = 0 ;
35540 int val6 ;
35541 int ecode6 = 0 ;
35542 int res7 = 0 ;
35543 PyObject * obj0 = 0 ;
35544 PyObject * obj1 = 0 ;
35545 PyObject * obj2 = 0 ;
35546 PyObject * obj3 = 0 ;
35547 PyObject * obj4 = 0 ;
35548 PyObject * obj5 = 0 ;
35549 PyObject * obj6 = 0 ;
35550 char * kwnames[] = {
35551 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35552 };
35553
35554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35556 if (!SWIG_IsOK(res1)) {
35557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35558 }
35559 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35560 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35561 if (!SWIG_IsOK(res2)) {
35562 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35563 }
35564 if (!argp2) {
35565 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35566 }
35567 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35568 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35569 if (!SWIG_IsOK(res3)) {
35570 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
35571 }
35572 if (!argp3) {
35573 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
35574 }
35575 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
35576 {
35577 arg4 = wxString_in_helper(obj3);
35578 if (arg4 == NULL) SWIG_fail;
35579 temp4 = true;
35580 }
35581 if (obj4) {
35582 ecode5 = SWIG_AsVal_int(obj4, &val5);
35583 if (!SWIG_IsOK(ecode5)) {
35584 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItem" "', expected argument " "5"" of type '" "int""'");
35585 }
35586 arg5 = static_cast< int >(val5);
35587 }
35588 if (obj5) {
35589 ecode6 = SWIG_AsVal_int(obj5, &val6);
35590 if (!SWIG_IsOK(ecode6)) {
35591 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItem" "', expected argument " "6"" of type '" "int""'");
35592 }
35593 arg6 = static_cast< int >(val6);
35594 }
35595 if (obj6) {
35596 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35597 if (!SWIG_IsOK(res7)) {
35598 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItem" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
35599 }
35600 }
35601 {
35602 PyThreadState* __tstate = wxPyBeginAllowThreads();
35603 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
35604 wxPyEndAllowThreads(__tstate);
35605 if (PyErr_Occurred()) SWIG_fail;
35606 }
35607 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35608 {
35609 if (temp4)
35610 delete arg4;
35611 }
35612 return resultobj;
35613 fail:
35614 {
35615 if (temp4)
35616 delete arg4;
35617 }
35618 return NULL;
35619 }
35620
35621
35622 SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35623 PyObject *resultobj = 0;
35624 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35625 wxTreeItemId *arg2 = 0 ;
35626 size_t arg3 ;
35627 wxString *arg4 = 0 ;
35628 int arg5 = (int) -1 ;
35629 int arg6 = (int) -1 ;
35630 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
35631 wxTreeItemId result;
35632 void *argp1 = 0 ;
35633 int res1 = 0 ;
35634 void *argp2 = 0 ;
35635 int res2 = 0 ;
35636 size_t val3 ;
35637 int ecode3 = 0 ;
35638 bool temp4 = false ;
35639 int val5 ;
35640 int ecode5 = 0 ;
35641 int val6 ;
35642 int ecode6 = 0 ;
35643 int res7 = 0 ;
35644 PyObject * obj0 = 0 ;
35645 PyObject * obj1 = 0 ;
35646 PyObject * obj2 = 0 ;
35647 PyObject * obj3 = 0 ;
35648 PyObject * obj4 = 0 ;
35649 PyObject * obj5 = 0 ;
35650 PyObject * obj6 = 0 ;
35651 char * kwnames[] = {
35652 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35653 };
35654
35655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35657 if (!SWIG_IsOK(res1)) {
35658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35659 }
35660 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35661 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35662 if (!SWIG_IsOK(res2)) {
35663 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35664 }
35665 if (!argp2) {
35666 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35667 }
35668 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35669 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
35670 if (!SWIG_IsOK(ecode3)) {
35671 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "3"" of type '" "size_t""'");
35672 }
35673 arg3 = static_cast< size_t >(val3);
35674 {
35675 arg4 = wxString_in_helper(obj3);
35676 if (arg4 == NULL) SWIG_fail;
35677 temp4 = true;
35678 }
35679 if (obj4) {
35680 ecode5 = SWIG_AsVal_int(obj4, &val5);
35681 if (!SWIG_IsOK(ecode5)) {
35682 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "5"" of type '" "int""'");
35683 }
35684 arg5 = static_cast< int >(val5);
35685 }
35686 if (obj5) {
35687 ecode6 = SWIG_AsVal_int(obj5, &val6);
35688 if (!SWIG_IsOK(ecode6)) {
35689 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "6"" of type '" "int""'");
35690 }
35691 arg6 = static_cast< int >(val6);
35692 }
35693 if (obj6) {
35694 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35695 if (!SWIG_IsOK(res7)) {
35696 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
35697 }
35698 }
35699 {
35700 PyThreadState* __tstate = wxPyBeginAllowThreads();
35701 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
35702 wxPyEndAllowThreads(__tstate);
35703 if (PyErr_Occurred()) SWIG_fail;
35704 }
35705 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35706 {
35707 if (temp4)
35708 delete arg4;
35709 }
35710 return resultobj;
35711 fail:
35712 {
35713 if (temp4)
35714 delete arg4;
35715 }
35716 return NULL;
35717 }
35718
35719
35720 SWIGINTERN PyObject *_wrap_TreeCtrl_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35721 PyObject *resultobj = 0;
35722 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35723 wxTreeItemId *arg2 = 0 ;
35724 wxString *arg3 = 0 ;
35725 int arg4 = (int) -1 ;
35726 int arg5 = (int) -1 ;
35727 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
35728 wxTreeItemId result;
35729 void *argp1 = 0 ;
35730 int res1 = 0 ;
35731 void *argp2 = 0 ;
35732 int res2 = 0 ;
35733 bool temp3 = false ;
35734 int val4 ;
35735 int ecode4 = 0 ;
35736 int val5 ;
35737 int ecode5 = 0 ;
35738 int res6 = 0 ;
35739 PyObject * obj0 = 0 ;
35740 PyObject * obj1 = 0 ;
35741 PyObject * obj2 = 0 ;
35742 PyObject * obj3 = 0 ;
35743 PyObject * obj4 = 0 ;
35744 PyObject * obj5 = 0 ;
35745 char * kwnames[] = {
35746 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35747 };
35748
35749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
35750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35751 if (!SWIG_IsOK(res1)) {
35752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AppendItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35753 }
35754 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35755 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35756 if (!SWIG_IsOK(res2)) {
35757 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35758 }
35759 if (!argp2) {
35760 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35761 }
35762 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35763 {
35764 arg3 = wxString_in_helper(obj2);
35765 if (arg3 == NULL) SWIG_fail;
35766 temp3 = true;
35767 }
35768 if (obj3) {
35769 ecode4 = SWIG_AsVal_int(obj3, &val4);
35770 if (!SWIG_IsOK(ecode4)) {
35771 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AppendItem" "', expected argument " "4"" of type '" "int""'");
35772 }
35773 arg4 = static_cast< int >(val4);
35774 }
35775 if (obj4) {
35776 ecode5 = SWIG_AsVal_int(obj4, &val5);
35777 if (!SWIG_IsOK(ecode5)) {
35778 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_AppendItem" "', expected argument " "5"" of type '" "int""'");
35779 }
35780 arg5 = static_cast< int >(val5);
35781 }
35782 if (obj5) {
35783 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35784 if (!SWIG_IsOK(res6)) {
35785 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_AppendItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
35786 }
35787 }
35788 {
35789 PyThreadState* __tstate = wxPyBeginAllowThreads();
35790 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
35791 wxPyEndAllowThreads(__tstate);
35792 if (PyErr_Occurred()) SWIG_fail;
35793 }
35794 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35795 {
35796 if (temp3)
35797 delete arg3;
35798 }
35799 return resultobj;
35800 fail:
35801 {
35802 if (temp3)
35803 delete arg3;
35804 }
35805 return NULL;
35806 }
35807
35808
35809 SWIGINTERN PyObject *_wrap_TreeCtrl_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35810 PyObject *resultobj = 0;
35811 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35812 wxTreeItemId *arg2 = 0 ;
35813 void *argp1 = 0 ;
35814 int res1 = 0 ;
35815 void *argp2 = 0 ;
35816 int res2 = 0 ;
35817 PyObject * obj0 = 0 ;
35818 PyObject * obj1 = 0 ;
35819 char * kwnames[] = {
35820 (char *) "self",(char *) "item", NULL
35821 };
35822
35823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) SWIG_fail;
35824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35825 if (!SWIG_IsOK(res1)) {
35826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Delete" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35827 }
35828 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35829 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35830 if (!SWIG_IsOK(res2)) {
35831 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35832 }
35833 if (!argp2) {
35834 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35835 }
35836 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35837 {
35838 PyThreadState* __tstate = wxPyBeginAllowThreads();
35839 (arg1)->Delete((wxTreeItemId const &)*arg2);
35840 wxPyEndAllowThreads(__tstate);
35841 if (PyErr_Occurred()) SWIG_fail;
35842 }
35843 resultobj = SWIG_Py_Void();
35844 return resultobj;
35845 fail:
35846 return NULL;
35847 }
35848
35849
35850 SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35851 PyObject *resultobj = 0;
35852 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35853 wxTreeItemId *arg2 = 0 ;
35854 void *argp1 = 0 ;
35855 int res1 = 0 ;
35856 void *argp2 = 0 ;
35857 int res2 = 0 ;
35858 PyObject * obj0 = 0 ;
35859 PyObject * obj1 = 0 ;
35860 char * kwnames[] = {
35861 (char *) "self",(char *) "item", NULL
35862 };
35863
35864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) SWIG_fail;
35865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35866 if (!SWIG_IsOK(res1)) {
35867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35868 }
35869 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35870 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35871 if (!SWIG_IsOK(res2)) {
35872 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35873 }
35874 if (!argp2) {
35875 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35876 }
35877 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35878 {
35879 PyThreadState* __tstate = wxPyBeginAllowThreads();
35880 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
35881 wxPyEndAllowThreads(__tstate);
35882 if (PyErr_Occurred()) SWIG_fail;
35883 }
35884 resultobj = SWIG_Py_Void();
35885 return resultobj;
35886 fail:
35887 return NULL;
35888 }
35889
35890
35891 SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35892 PyObject *resultobj = 0;
35893 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35894 void *argp1 = 0 ;
35895 int res1 = 0 ;
35896 PyObject *swig_obj[1] ;
35897
35898 if (!args) SWIG_fail;
35899 swig_obj[0] = args;
35900 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35901 if (!SWIG_IsOK(res1)) {
35902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35903 }
35904 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35905 {
35906 PyThreadState* __tstate = wxPyBeginAllowThreads();
35907 (arg1)->DeleteAllItems();
35908 wxPyEndAllowThreads(__tstate);
35909 if (PyErr_Occurred()) SWIG_fail;
35910 }
35911 resultobj = SWIG_Py_Void();
35912 return resultobj;
35913 fail:
35914 return NULL;
35915 }
35916
35917
35918 SWIGINTERN PyObject *_wrap_TreeCtrl_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35919 PyObject *resultobj = 0;
35920 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35921 wxTreeItemId *arg2 = 0 ;
35922 void *argp1 = 0 ;
35923 int res1 = 0 ;
35924 void *argp2 = 0 ;
35925 int res2 = 0 ;
35926 PyObject * obj0 = 0 ;
35927 PyObject * obj1 = 0 ;
35928 char * kwnames[] = {
35929 (char *) "self",(char *) "item", NULL
35930 };
35931
35932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) SWIG_fail;
35933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35934 if (!SWIG_IsOK(res1)) {
35935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Expand" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35936 }
35937 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35938 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35939 if (!SWIG_IsOK(res2)) {
35940 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35941 }
35942 if (!argp2) {
35943 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35944 }
35945 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35946 {
35947 PyThreadState* __tstate = wxPyBeginAllowThreads();
35948 (arg1)->Expand((wxTreeItemId const &)*arg2);
35949 wxPyEndAllowThreads(__tstate);
35950 if (PyErr_Occurred()) SWIG_fail;
35951 }
35952 resultobj = SWIG_Py_Void();
35953 return resultobj;
35954 fail:
35955 return NULL;
35956 }
35957
35958
35959 SWIGINTERN PyObject *_wrap_TreeCtrl_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35960 PyObject *resultobj = 0;
35961 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35962 wxTreeItemId *arg2 = 0 ;
35963 void *argp1 = 0 ;
35964 int res1 = 0 ;
35965 void *argp2 = 0 ;
35966 int res2 = 0 ;
35967 PyObject * obj0 = 0 ;
35968 PyObject * obj1 = 0 ;
35969 char * kwnames[] = {
35970 (char *) "self",(char *) "item", NULL
35971 };
35972
35973 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
35974 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35975 if (!SWIG_IsOK(res1)) {
35976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Collapse" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35977 }
35978 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35979 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35980 if (!SWIG_IsOK(res2)) {
35981 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35982 }
35983 if (!argp2) {
35984 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35985 }
35986 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35987 {
35988 PyThreadState* __tstate = wxPyBeginAllowThreads();
35989 (arg1)->Collapse((wxTreeItemId const &)*arg2);
35990 wxPyEndAllowThreads(__tstate);
35991 if (PyErr_Occurred()) SWIG_fail;
35992 }
35993 resultobj = SWIG_Py_Void();
35994 return resultobj;
35995 fail:
35996 return NULL;
35997 }
35998
35999
36000 SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36001 PyObject *resultobj = 0;
36002 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36003 wxTreeItemId *arg2 = 0 ;
36004 void *argp1 = 0 ;
36005 int res1 = 0 ;
36006 void *argp2 = 0 ;
36007 int res2 = 0 ;
36008 PyObject * obj0 = 0 ;
36009 PyObject * obj1 = 0 ;
36010 char * kwnames[] = {
36011 (char *) "self",(char *) "item", NULL
36012 };
36013
36014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) SWIG_fail;
36015 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36016 if (!SWIG_IsOK(res1)) {
36017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36018 }
36019 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36020 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36021 if (!SWIG_IsOK(res2)) {
36022 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36023 }
36024 if (!argp2) {
36025 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36026 }
36027 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36028 {
36029 PyThreadState* __tstate = wxPyBeginAllowThreads();
36030 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
36031 wxPyEndAllowThreads(__tstate);
36032 if (PyErr_Occurred()) SWIG_fail;
36033 }
36034 resultobj = SWIG_Py_Void();
36035 return resultobj;
36036 fail:
36037 return NULL;
36038 }
36039
36040
36041 SWIGINTERN PyObject *_wrap_TreeCtrl_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36042 PyObject *resultobj = 0;
36043 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36044 wxTreeItemId *arg2 = 0 ;
36045 void *argp1 = 0 ;
36046 int res1 = 0 ;
36047 void *argp2 = 0 ;
36048 int res2 = 0 ;
36049 PyObject * obj0 = 0 ;
36050 PyObject * obj1 = 0 ;
36051 char * kwnames[] = {
36052 (char *) "self",(char *) "item", NULL
36053 };
36054
36055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) SWIG_fail;
36056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36057 if (!SWIG_IsOK(res1)) {
36058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Toggle" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36059 }
36060 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36061 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36062 if (!SWIG_IsOK(res2)) {
36063 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36064 }
36065 if (!argp2) {
36066 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36067 }
36068 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36069 {
36070 PyThreadState* __tstate = wxPyBeginAllowThreads();
36071 (arg1)->Toggle((wxTreeItemId const &)*arg2);
36072 wxPyEndAllowThreads(__tstate);
36073 if (PyErr_Occurred()) SWIG_fail;
36074 }
36075 resultobj = SWIG_Py_Void();
36076 return resultobj;
36077 fail:
36078 return NULL;
36079 }
36080
36081
36082 SWIGINTERN PyObject *_wrap_TreeCtrl_Unselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36083 PyObject *resultobj = 0;
36084 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36085 void *argp1 = 0 ;
36086 int res1 = 0 ;
36087 PyObject *swig_obj[1] ;
36088
36089 if (!args) SWIG_fail;
36090 swig_obj[0] = args;
36091 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36092 if (!SWIG_IsOK(res1)) {
36093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Unselect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36094 }
36095 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36096 {
36097 PyThreadState* __tstate = wxPyBeginAllowThreads();
36098 (arg1)->Unselect();
36099 wxPyEndAllowThreads(__tstate);
36100 if (PyErr_Occurred()) SWIG_fail;
36101 }
36102 resultobj = SWIG_Py_Void();
36103 return resultobj;
36104 fail:
36105 return NULL;
36106 }
36107
36108
36109 SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36110 PyObject *resultobj = 0;
36111 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36112 wxTreeItemId *arg2 = 0 ;
36113 void *argp1 = 0 ;
36114 int res1 = 0 ;
36115 void *argp2 = 0 ;
36116 int res2 = 0 ;
36117 PyObject * obj0 = 0 ;
36118 PyObject * obj1 = 0 ;
36119 char * kwnames[] = {
36120 (char *) "self",(char *) "item", NULL
36121 };
36122
36123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) SWIG_fail;
36124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36125 if (!SWIG_IsOK(res1)) {
36126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36127 }
36128 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36129 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36130 if (!SWIG_IsOK(res2)) {
36131 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36132 }
36133 if (!argp2) {
36134 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36135 }
36136 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36137 {
36138 PyThreadState* __tstate = wxPyBeginAllowThreads();
36139 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
36140 wxPyEndAllowThreads(__tstate);
36141 if (PyErr_Occurred()) SWIG_fail;
36142 }
36143 resultobj = SWIG_Py_Void();
36144 return resultobj;
36145 fail:
36146 return NULL;
36147 }
36148
36149
36150 SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36151 PyObject *resultobj = 0;
36152 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36153 void *argp1 = 0 ;
36154 int res1 = 0 ;
36155 PyObject *swig_obj[1] ;
36156
36157 if (!args) SWIG_fail;
36158 swig_obj[0] = args;
36159 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36160 if (!SWIG_IsOK(res1)) {
36161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36162 }
36163 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36164 {
36165 PyThreadState* __tstate = wxPyBeginAllowThreads();
36166 (arg1)->UnselectAll();
36167 wxPyEndAllowThreads(__tstate);
36168 if (PyErr_Occurred()) SWIG_fail;
36169 }
36170 resultobj = SWIG_Py_Void();
36171 return resultobj;
36172 fail:
36173 return NULL;
36174 }
36175
36176
36177 SWIGINTERN PyObject *_wrap_TreeCtrl_SelectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36178 PyObject *resultobj = 0;
36179 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36180 wxTreeItemId *arg2 = 0 ;
36181 bool arg3 = (bool) true ;
36182 void *argp1 = 0 ;
36183 int res1 = 0 ;
36184 void *argp2 = 0 ;
36185 int res2 = 0 ;
36186 bool val3 ;
36187 int ecode3 = 0 ;
36188 PyObject * obj0 = 0 ;
36189 PyObject * obj1 = 0 ;
36190 PyObject * obj2 = 0 ;
36191 char * kwnames[] = {
36192 (char *) "self",(char *) "item",(char *) "select", NULL
36193 };
36194
36195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36197 if (!SWIG_IsOK(res1)) {
36198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SelectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36199 }
36200 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36201 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36202 if (!SWIG_IsOK(res2)) {
36203 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36204 }
36205 if (!argp2) {
36206 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36207 }
36208 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36209 if (obj2) {
36210 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36211 if (!SWIG_IsOK(ecode3)) {
36212 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SelectItem" "', expected argument " "3"" of type '" "bool""'");
36213 }
36214 arg3 = static_cast< bool >(val3);
36215 }
36216 {
36217 PyThreadState* __tstate = wxPyBeginAllowThreads();
36218 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
36219 wxPyEndAllowThreads(__tstate);
36220 if (PyErr_Occurred()) SWIG_fail;
36221 }
36222 resultobj = SWIG_Py_Void();
36223 return resultobj;
36224 fail:
36225 return NULL;
36226 }
36227
36228
36229 SWIGINTERN PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36230 PyObject *resultobj = 0;
36231 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36232 wxTreeItemId *arg2 = 0 ;
36233 void *argp1 = 0 ;
36234 int res1 = 0 ;
36235 void *argp2 = 0 ;
36236 int res2 = 0 ;
36237 PyObject * obj0 = 0 ;
36238 PyObject * obj1 = 0 ;
36239 char * kwnames[] = {
36240 (char *) "self",(char *) "item", NULL
36241 };
36242
36243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) SWIG_fail;
36244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36245 if (!SWIG_IsOK(res1)) {
36246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36247 }
36248 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36249 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36250 if (!SWIG_IsOK(res2)) {
36251 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36252 }
36253 if (!argp2) {
36254 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36255 }
36256 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36257 {
36258 PyThreadState* __tstate = wxPyBeginAllowThreads();
36259 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
36260 wxPyEndAllowThreads(__tstate);
36261 if (PyErr_Occurred()) SWIG_fail;
36262 }
36263 resultobj = SWIG_Py_Void();
36264 return resultobj;
36265 fail:
36266 return NULL;
36267 }
36268
36269
36270 SWIGINTERN PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36271 PyObject *resultobj = 0;
36272 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36273 wxTreeItemId *arg2 = 0 ;
36274 void *argp1 = 0 ;
36275 int res1 = 0 ;
36276 void *argp2 = 0 ;
36277 int res2 = 0 ;
36278 PyObject * obj0 = 0 ;
36279 PyObject * obj1 = 0 ;
36280 char * kwnames[] = {
36281 (char *) "self",(char *) "item", NULL
36282 };
36283
36284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
36285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36286 if (!SWIG_IsOK(res1)) {
36287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36288 }
36289 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36290 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36291 if (!SWIG_IsOK(res2)) {
36292 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36293 }
36294 if (!argp2) {
36295 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36296 }
36297 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36298 {
36299 PyThreadState* __tstate = wxPyBeginAllowThreads();
36300 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
36301 wxPyEndAllowThreads(__tstate);
36302 if (PyErr_Occurred()) SWIG_fail;
36303 }
36304 resultobj = SWIG_Py_Void();
36305 return resultobj;
36306 fail:
36307 return NULL;
36308 }
36309
36310
36311 SWIGINTERN PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36312 PyObject *resultobj = 0;
36313 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36314 wxTreeItemId *arg2 = 0 ;
36315 void *argp1 = 0 ;
36316 int res1 = 0 ;
36317 void *argp2 = 0 ;
36318 int res2 = 0 ;
36319 PyObject * obj0 = 0 ;
36320 PyObject * obj1 = 0 ;
36321 char * kwnames[] = {
36322 (char *) "self",(char *) "item", NULL
36323 };
36324
36325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) SWIG_fail;
36326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36327 if (!SWIG_IsOK(res1)) {
36328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36329 }
36330 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36331 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36332 if (!SWIG_IsOK(res2)) {
36333 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36334 }
36335 if (!argp2) {
36336 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36337 }
36338 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36339 {
36340 PyThreadState* __tstate = wxPyBeginAllowThreads();
36341 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
36342 wxPyEndAllowThreads(__tstate);
36343 if (PyErr_Occurred()) SWIG_fail;
36344 }
36345 resultobj = SWIG_Py_Void();
36346 return resultobj;
36347 fail:
36348 return NULL;
36349 }
36350
36351
36352 SWIGINTERN PyObject *_wrap_TreeCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36353 PyObject *resultobj = 0;
36354 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36355 wxTreeItemId *arg2 = 0 ;
36356 void *argp1 = 0 ;
36357 int res1 = 0 ;
36358 void *argp2 = 0 ;
36359 int res2 = 0 ;
36360 PyObject * obj0 = 0 ;
36361 PyObject * obj1 = 0 ;
36362 char * kwnames[] = {
36363 (char *) "self",(char *) "item", NULL
36364 };
36365
36366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
36367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36368 if (!SWIG_IsOK(res1)) {
36369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36370 }
36371 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36372 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36373 if (!SWIG_IsOK(res2)) {
36374 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36375 }
36376 if (!argp2) {
36377 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36378 }
36379 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36380 {
36381 PyThreadState* __tstate = wxPyBeginAllowThreads();
36382 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
36383 wxPyEndAllowThreads(__tstate);
36384 if (PyErr_Occurred()) SWIG_fail;
36385 }
36386 resultobj = SWIG_Py_Void();
36387 return resultobj;
36388 fail:
36389 return NULL;
36390 }
36391
36392
36393 SWIGINTERN PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36394 PyObject *resultobj = 0;
36395 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36396 wxTextCtrl *result = 0 ;
36397 void *argp1 = 0 ;
36398 int res1 = 0 ;
36399 PyObject *swig_obj[1] ;
36400
36401 if (!args) SWIG_fail;
36402 swig_obj[0] = args;
36403 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36404 if (!SWIG_IsOK(res1)) {
36405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36406 }
36407 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36408 {
36409 PyThreadState* __tstate = wxPyBeginAllowThreads();
36410 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
36411 wxPyEndAllowThreads(__tstate);
36412 if (PyErr_Occurred()) SWIG_fail;
36413 }
36414 {
36415 resultobj = wxPyMake_wxObject(result, 0);
36416 }
36417 return resultobj;
36418 fail:
36419 return NULL;
36420 }
36421
36422
36423 SWIGINTERN PyObject *_wrap_TreeCtrl_SortChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36424 PyObject *resultobj = 0;
36425 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36426 wxTreeItemId *arg2 = 0 ;
36427 void *argp1 = 0 ;
36428 int res1 = 0 ;
36429 void *argp2 = 0 ;
36430 int res2 = 0 ;
36431 PyObject * obj0 = 0 ;
36432 PyObject * obj1 = 0 ;
36433 char * kwnames[] = {
36434 (char *) "self",(char *) "item", NULL
36435 };
36436
36437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36439 if (!SWIG_IsOK(res1)) {
36440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SortChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36441 }
36442 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36443 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36444 if (!SWIG_IsOK(res2)) {
36445 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36446 }
36447 if (!argp2) {
36448 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36449 }
36450 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36451 {
36452 PyThreadState* __tstate = wxPyBeginAllowThreads();
36453 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
36454 wxPyEndAllowThreads(__tstate);
36455 if (PyErr_Occurred()) SWIG_fail;
36456 }
36457 resultobj = SWIG_Py_Void();
36458 return resultobj;
36459 fail:
36460 return NULL;
36461 }
36462
36463
36464 SWIGINTERN PyObject *_wrap_TreeCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36465 PyObject *resultobj = 0;
36466 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36467 wxPoint *arg2 = 0 ;
36468 int *arg3 = 0 ;
36469 wxTreeItemId result;
36470 void *argp1 = 0 ;
36471 int res1 = 0 ;
36472 wxPoint temp2 ;
36473 int temp3 ;
36474 int res3 = SWIG_TMPOBJ ;
36475 PyObject * obj0 = 0 ;
36476 PyObject * obj1 = 0 ;
36477 char * kwnames[] = {
36478 (char *) "self",(char *) "point", NULL
36479 };
36480
36481 arg3 = &temp3;
36482 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
36483 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36484 if (!SWIG_IsOK(res1)) {
36485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36486 }
36487 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36488 {
36489 arg2 = &temp2;
36490 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36491 }
36492 {
36493 PyThreadState* __tstate = wxPyBeginAllowThreads();
36494 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
36495 wxPyEndAllowThreads(__tstate);
36496 if (PyErr_Occurred()) SWIG_fail;
36497 }
36498 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36499 if (SWIG_IsTmpObj(res3)) {
36500 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
36501 } else {
36502 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
36503 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
36504 }
36505 return resultobj;
36506 fail:
36507 return NULL;
36508 }
36509
36510
36511 SWIGINTERN PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36512 PyObject *resultobj = 0;
36513 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36514 wxTreeItemId *arg2 = 0 ;
36515 bool arg3 = (bool) false ;
36516 PyObject *result = 0 ;
36517 void *argp1 = 0 ;
36518 int res1 = 0 ;
36519 void *argp2 = 0 ;
36520 int res2 = 0 ;
36521 bool val3 ;
36522 int ecode3 = 0 ;
36523 PyObject * obj0 = 0 ;
36524 PyObject * obj1 = 0 ;
36525 PyObject * obj2 = 0 ;
36526 char * kwnames[] = {
36527 (char *) "self",(char *) "item",(char *) "textOnly", NULL
36528 };
36529
36530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36532 if (!SWIG_IsOK(res1)) {
36533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36534 }
36535 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36536 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36537 if (!SWIG_IsOK(res2)) {
36538 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36539 }
36540 if (!argp2) {
36541 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36542 }
36543 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36544 if (obj2) {
36545 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36546 if (!SWIG_IsOK(ecode3)) {
36547 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "3"" of type '" "bool""'");
36548 }
36549 arg3 = static_cast< bool >(val3);
36550 }
36551 {
36552 PyThreadState* __tstate = wxPyBeginAllowThreads();
36553 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
36554 wxPyEndAllowThreads(__tstate);
36555 if (PyErr_Occurred()) SWIG_fail;
36556 }
36557 resultobj = result;
36558 return resultobj;
36559 fail:
36560 return NULL;
36561 }
36562
36563
36564 SWIGINTERN PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36565 PyObject *resultobj = 0;
36566 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
36567 SwigValueWrapper<wxVisualAttributes > result;
36568 int val1 ;
36569 int ecode1 = 0 ;
36570 PyObject * obj0 = 0 ;
36571 char * kwnames[] = {
36572 (char *) "variant", NULL
36573 };
36574
36575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
36576 if (obj0) {
36577 ecode1 = SWIG_AsVal_int(obj0, &val1);
36578 if (!SWIG_IsOK(ecode1)) {
36579 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TreeCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
36580 }
36581 arg1 = static_cast< wxWindowVariant >(val1);
36582 }
36583 {
36584 if (!wxPyCheckForApp()) SWIG_fail;
36585 PyThreadState* __tstate = wxPyBeginAllowThreads();
36586 result = wxPyTreeCtrl::GetClassDefaultAttributes(arg1);
36587 wxPyEndAllowThreads(__tstate);
36588 if (PyErr_Occurred()) SWIG_fail;
36589 }
36590 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
36591 return resultobj;
36592 fail:
36593 return NULL;
36594 }
36595
36596
36597 SWIGINTERN PyObject *_wrap_TreeCtrl_SetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36598 PyObject *resultobj = 0;
36599 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36600 bool arg2 ;
36601 void *argp1 = 0 ;
36602 int res1 = 0 ;
36603 bool val2 ;
36604 int ecode2 = 0 ;
36605 PyObject * obj0 = 0 ;
36606 PyObject * obj1 = 0 ;
36607 char * kwnames[] = {
36608 (char *) "self",(char *) "q", NULL
36609 };
36610
36611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetQuickBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
36612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36613 if (!SWIG_IsOK(res1)) {
36614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36615 }
36616 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36617 ecode2 = SWIG_AsVal_bool(obj1, &val2);
36618 if (!SWIG_IsOK(ecode2)) {
36619 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "2"" of type '" "bool""'");
36620 }
36621 arg2 = static_cast< bool >(val2);
36622 {
36623 PyThreadState* __tstate = wxPyBeginAllowThreads();
36624 (arg1)->SetQuickBestSize(arg2);
36625 wxPyEndAllowThreads(__tstate);
36626 if (PyErr_Occurred()) SWIG_fail;
36627 }
36628 resultobj = SWIG_Py_Void();
36629 return resultobj;
36630 fail:
36631 return NULL;
36632 }
36633
36634
36635 SWIGINTERN PyObject *_wrap_TreeCtrl_GetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36636 PyObject *resultobj = 0;
36637 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36638 bool result;
36639 void *argp1 = 0 ;
36640 int res1 = 0 ;
36641 PyObject *swig_obj[1] ;
36642
36643 if (!args) SWIG_fail;
36644 swig_obj[0] = args;
36645 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36646 if (!SWIG_IsOK(res1)) {
36647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36648 }
36649 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36650 {
36651 PyThreadState* __tstate = wxPyBeginAllowThreads();
36652 result = (bool)((wxPyTreeCtrl const *)arg1)->GetQuickBestSize();
36653 wxPyEndAllowThreads(__tstate);
36654 if (PyErr_Occurred()) SWIG_fail;
36655 }
36656 {
36657 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36658 }
36659 return resultobj;
36660 fail:
36661 return NULL;
36662 }
36663
36664
36665 SWIGINTERN PyObject *TreeCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36666 PyObject *obj;
36667 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
36668 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeCtrl, SWIG_NewClientData(obj));
36669 return SWIG_Py_Void();
36670 }
36671
36672 SWIGINTERN PyObject *TreeCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36673 return SWIG_Python_InitShadowInstance(args);
36674 }
36675
36676 SWIGINTERN int DirDialogDefaultFolderStr_set(PyObject *) {
36677 SWIG_Error(SWIG_AttributeError,"Variable DirDialogDefaultFolderStr is read-only.");
36678 return 1;
36679 }
36680
36681
36682 SWIGINTERN PyObject *DirDialogDefaultFolderStr_get(void) {
36683 PyObject *pyobj = 0;
36684
36685 {
36686 #if wxUSE_UNICODE
36687 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
36688 #else
36689 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
36690 #endif
36691 }
36692 return pyobj;
36693 }
36694
36695
36696 SWIGINTERN PyObject *_wrap_new_GenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36697 PyObject *resultobj = 0;
36698 wxWindow *arg1 = (wxWindow *) 0 ;
36699 int arg2 = (int) (int)-1 ;
36700 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
36701 wxString *arg3 = (wxString *) &arg3_defvalue ;
36702 wxPoint const &arg4_defvalue = wxDefaultPosition ;
36703 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
36704 wxSize const &arg5_defvalue = wxDefaultSize ;
36705 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
36706 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
36707 wxString const &arg7_defvalue = wxPyEmptyString ;
36708 wxString *arg7 = (wxString *) &arg7_defvalue ;
36709 int arg8 = (int) 0 ;
36710 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
36711 wxString *arg9 = (wxString *) &arg9_defvalue ;
36712 wxGenericDirCtrl *result = 0 ;
36713 void *argp1 = 0 ;
36714 int res1 = 0 ;
36715 int val2 ;
36716 int ecode2 = 0 ;
36717 bool temp3 = false ;
36718 wxPoint temp4 ;
36719 wxSize temp5 ;
36720 long val6 ;
36721 int ecode6 = 0 ;
36722 bool temp7 = false ;
36723 int val8 ;
36724 int ecode8 = 0 ;
36725 bool temp9 = false ;
36726 PyObject * obj0 = 0 ;
36727 PyObject * obj1 = 0 ;
36728 PyObject * obj2 = 0 ;
36729 PyObject * obj3 = 0 ;
36730 PyObject * obj4 = 0 ;
36731 PyObject * obj5 = 0 ;
36732 PyObject * obj6 = 0 ;
36733 PyObject * obj7 = 0 ;
36734 PyObject * obj8 = 0 ;
36735 char * kwnames[] = {
36736 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
36737 };
36738
36739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
36740 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36741 if (!SWIG_IsOK(res1)) {
36742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GenericDirCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
36743 }
36744 arg1 = reinterpret_cast< wxWindow * >(argp1);
36745 if (obj1) {
36746 ecode2 = SWIG_AsVal_int(obj1, &val2);
36747 if (!SWIG_IsOK(ecode2)) {
36748 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GenericDirCtrl" "', expected argument " "2"" of type '" "int""'");
36749 }
36750 arg2 = static_cast< int >(val2);
36751 }
36752 if (obj2) {
36753 {
36754 arg3 = wxString_in_helper(obj2);
36755 if (arg3 == NULL) SWIG_fail;
36756 temp3 = true;
36757 }
36758 }
36759 if (obj3) {
36760 {
36761 arg4 = &temp4;
36762 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36763 }
36764 }
36765 if (obj4) {
36766 {
36767 arg5 = &temp5;
36768 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
36769 }
36770 }
36771 if (obj5) {
36772 ecode6 = SWIG_AsVal_long(obj5, &val6);
36773 if (!SWIG_IsOK(ecode6)) {
36774 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GenericDirCtrl" "', expected argument " "6"" of type '" "long""'");
36775 }
36776 arg6 = static_cast< long >(val6);
36777 }
36778 if (obj6) {
36779 {
36780 arg7 = wxString_in_helper(obj6);
36781 if (arg7 == NULL) SWIG_fail;
36782 temp7 = true;
36783 }
36784 }
36785 if (obj7) {
36786 ecode8 = SWIG_AsVal_int(obj7, &val8);
36787 if (!SWIG_IsOK(ecode8)) {
36788 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_GenericDirCtrl" "', expected argument " "8"" of type '" "int""'");
36789 }
36790 arg8 = static_cast< int >(val8);
36791 }
36792 if (obj8) {
36793 {
36794 arg9 = wxString_in_helper(obj8);
36795 if (arg9 == NULL) SWIG_fail;
36796 temp9 = true;
36797 }
36798 }
36799 {
36800 if (!wxPyCheckForApp()) SWIG_fail;
36801 PyThreadState* __tstate = wxPyBeginAllowThreads();
36802 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
36803 wxPyEndAllowThreads(__tstate);
36804 if (PyErr_Occurred()) SWIG_fail;
36805 }
36806 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_NEW | 0 );
36807 {
36808 if (temp3)
36809 delete arg3;
36810 }
36811 {
36812 if (temp7)
36813 delete arg7;
36814 }
36815 {
36816 if (temp9)
36817 delete arg9;
36818 }
36819 return resultobj;
36820 fail:
36821 {
36822 if (temp3)
36823 delete arg3;
36824 }
36825 {
36826 if (temp7)
36827 delete arg7;
36828 }
36829 {
36830 if (temp9)
36831 delete arg9;
36832 }
36833 return NULL;
36834 }
36835
36836
36837 SWIGINTERN PyObject *_wrap_new_PreGenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36838 PyObject *resultobj = 0;
36839 wxGenericDirCtrl *result = 0 ;
36840
36841 if (!SWIG_Python_UnpackTuple(args,"new_PreGenericDirCtrl",0,0,0)) SWIG_fail;
36842 {
36843 if (!wxPyCheckForApp()) SWIG_fail;
36844 PyThreadState* __tstate = wxPyBeginAllowThreads();
36845 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
36846 wxPyEndAllowThreads(__tstate);
36847 if (PyErr_Occurred()) SWIG_fail;
36848 }
36849 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_OWN | 0 );
36850 return resultobj;
36851 fail:
36852 return NULL;
36853 }
36854
36855
36856 SWIGINTERN PyObject *_wrap_GenericDirCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36857 PyObject *resultobj = 0;
36858 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
36859 wxWindow *arg2 = (wxWindow *) 0 ;
36860 int arg3 = (int) (int)-1 ;
36861 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
36862 wxString *arg4 = (wxString *) &arg4_defvalue ;
36863 wxPoint const &arg5_defvalue = wxDefaultPosition ;
36864 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
36865 wxSize const &arg6_defvalue = wxDefaultSize ;
36866 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
36867 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
36868 wxString const &arg8_defvalue = wxPyEmptyString ;
36869 wxString *arg8 = (wxString *) &arg8_defvalue ;
36870 int arg9 = (int) 0 ;
36871 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
36872 wxString *arg10 = (wxString *) &arg10_defvalue ;
36873 bool result;
36874 void *argp1 = 0 ;
36875 int res1 = 0 ;
36876 void *argp2 = 0 ;
36877 int res2 = 0 ;
36878 int val3 ;
36879 int ecode3 = 0 ;
36880 bool temp4 = false ;
36881 wxPoint temp5 ;
36882 wxSize temp6 ;
36883 long val7 ;
36884 int ecode7 = 0 ;
36885 bool temp8 = false ;
36886 int val9 ;
36887 int ecode9 = 0 ;
36888 bool temp10 = false ;
36889 PyObject * obj0 = 0 ;
36890 PyObject * obj1 = 0 ;
36891 PyObject * obj2 = 0 ;
36892 PyObject * obj3 = 0 ;
36893 PyObject * obj4 = 0 ;
36894 PyObject * obj5 = 0 ;
36895 PyObject * obj6 = 0 ;
36896 PyObject * obj7 = 0 ;
36897 PyObject * obj8 = 0 ;
36898 PyObject * obj9 = 0 ;
36899 char * kwnames[] = {
36900 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
36901 };
36902
36903 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
36904 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
36905 if (!SWIG_IsOK(res1)) {
36906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_Create" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
36907 }
36908 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
36909 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
36910 if (!SWIG_IsOK(res2)) {
36911 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
36912 }
36913 arg2 = reinterpret_cast< wxWindow * >(argp2);
36914 if (obj2) {
36915 ecode3 = SWIG_AsVal_int(obj2, &val3);
36916 if (!SWIG_IsOK(ecode3)) {
36917 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GenericDirCtrl_Create" "', expected argument " "3"" of type '" "int""'");
36918 }
36919 arg3 = static_cast< int >(val3);
36920 }
36921 if (obj3) {
36922 {
36923 arg4 = wxString_in_helper(obj3);
36924 if (arg4 == NULL) SWIG_fail;
36925 temp4 = true;
36926 }
36927 }
36928 if (obj4) {
36929 {
36930 arg5 = &temp5;
36931 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
36932 }
36933 }
36934 if (obj5) {
36935 {
36936 arg6 = &temp6;
36937 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
36938 }
36939 }
36940 if (obj6) {
36941 ecode7 = SWIG_AsVal_long(obj6, &val7);
36942 if (!SWIG_IsOK(ecode7)) {
36943 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GenericDirCtrl_Create" "', expected argument " "7"" of type '" "long""'");
36944 }
36945 arg7 = static_cast< long >(val7);
36946 }
36947 if (obj7) {
36948 {
36949 arg8 = wxString_in_helper(obj7);
36950 if (arg8 == NULL) SWIG_fail;
36951 temp8 = true;
36952 }
36953 }
36954 if (obj8) {
36955 ecode9 = SWIG_AsVal_int(obj8, &val9);
36956 if (!SWIG_IsOK(ecode9)) {
36957 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "GenericDirCtrl_Create" "', expected argument " "9"" of type '" "int""'");
36958 }
36959 arg9 = static_cast< int >(val9);
36960 }
36961 if (obj9) {
36962 {
36963 arg10 = wxString_in_helper(obj9);
36964 if (arg10 == NULL) SWIG_fail;
36965 temp10 = true;
36966 }
36967 }
36968 {
36969 PyThreadState* __tstate = wxPyBeginAllowThreads();
36970 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
36971 wxPyEndAllowThreads(__tstate);
36972 if (PyErr_Occurred()) SWIG_fail;
36973 }
36974 {
36975 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36976 }
36977 {
36978 if (temp4)
36979 delete arg4;
36980 }
36981 {
36982 if (temp8)
36983 delete arg8;
36984 }
36985 {
36986 if (temp10)
36987 delete arg10;
36988 }
36989 return resultobj;
36990 fail:
36991 {
36992 if (temp4)
36993 delete arg4;
36994 }
36995 {
36996 if (temp8)
36997 delete arg8;
36998 }
36999 {
37000 if (temp10)
37001 delete arg10;
37002 }
37003 return NULL;
37004 }
37005
37006
37007 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37008 PyObject *resultobj = 0;
37009 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37010 wxString *arg2 = 0 ;
37011 bool result;
37012 void *argp1 = 0 ;
37013 int res1 = 0 ;
37014 bool temp2 = false ;
37015 PyObject * obj0 = 0 ;
37016 PyObject * obj1 = 0 ;
37017 char * kwnames[] = {
37018 (char *) "self",(char *) "path", NULL
37019 };
37020
37021 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) SWIG_fail;
37022 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37023 if (!SWIG_IsOK(res1)) {
37024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ExpandPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37025 }
37026 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37027 {
37028 arg2 = wxString_in_helper(obj1);
37029 if (arg2 == NULL) SWIG_fail;
37030 temp2 = true;
37031 }
37032 {
37033 PyThreadState* __tstate = wxPyBeginAllowThreads();
37034 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
37035 wxPyEndAllowThreads(__tstate);
37036 if (PyErr_Occurred()) SWIG_fail;
37037 }
37038 {
37039 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37040 }
37041 {
37042 if (temp2)
37043 delete arg2;
37044 }
37045 return resultobj;
37046 fail:
37047 {
37048 if (temp2)
37049 delete arg2;
37050 }
37051 return NULL;
37052 }
37053
37054
37055 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37056 PyObject *resultobj = 0;
37057 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37058 wxString result;
37059 void *argp1 = 0 ;
37060 int res1 = 0 ;
37061 PyObject *swig_obj[1] ;
37062
37063 if (!args) SWIG_fail;
37064 swig_obj[0] = args;
37065 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37066 if (!SWIG_IsOK(res1)) {
37067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37068 }
37069 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37070 {
37071 PyThreadState* __tstate = wxPyBeginAllowThreads();
37072 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
37073 wxPyEndAllowThreads(__tstate);
37074 if (PyErr_Occurred()) SWIG_fail;
37075 }
37076 {
37077 #if wxUSE_UNICODE
37078 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37079 #else
37080 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37081 #endif
37082 }
37083 return resultobj;
37084 fail:
37085 return NULL;
37086 }
37087
37088
37089 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37090 PyObject *resultobj = 0;
37091 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37092 wxString *arg2 = 0 ;
37093 void *argp1 = 0 ;
37094 int res1 = 0 ;
37095 bool temp2 = false ;
37096 PyObject * obj0 = 0 ;
37097 PyObject * obj1 = 0 ;
37098 char * kwnames[] = {
37099 (char *) "self",(char *) "path", NULL
37100 };
37101
37102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) SWIG_fail;
37103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37104 if (!SWIG_IsOK(res1)) {
37105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37106 }
37107 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37108 {
37109 arg2 = wxString_in_helper(obj1);
37110 if (arg2 == NULL) SWIG_fail;
37111 temp2 = true;
37112 }
37113 {
37114 PyThreadState* __tstate = wxPyBeginAllowThreads();
37115 (arg1)->SetDefaultPath((wxString const &)*arg2);
37116 wxPyEndAllowThreads(__tstate);
37117 if (PyErr_Occurred()) SWIG_fail;
37118 }
37119 resultobj = SWIG_Py_Void();
37120 {
37121 if (temp2)
37122 delete arg2;
37123 }
37124 return resultobj;
37125 fail:
37126 {
37127 if (temp2)
37128 delete arg2;
37129 }
37130 return NULL;
37131 }
37132
37133
37134 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37135 PyObject *resultobj = 0;
37136 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37137 wxString result;
37138 void *argp1 = 0 ;
37139 int res1 = 0 ;
37140 PyObject *swig_obj[1] ;
37141
37142 if (!args) SWIG_fail;
37143 swig_obj[0] = args;
37144 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37145 if (!SWIG_IsOK(res1)) {
37146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37147 }
37148 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37149 {
37150 PyThreadState* __tstate = wxPyBeginAllowThreads();
37151 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
37152 wxPyEndAllowThreads(__tstate);
37153 if (PyErr_Occurred()) SWIG_fail;
37154 }
37155 {
37156 #if wxUSE_UNICODE
37157 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37158 #else
37159 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37160 #endif
37161 }
37162 return resultobj;
37163 fail:
37164 return NULL;
37165 }
37166
37167
37168 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37169 PyObject *resultobj = 0;
37170 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37171 wxString result;
37172 void *argp1 = 0 ;
37173 int res1 = 0 ;
37174 PyObject *swig_obj[1] ;
37175
37176 if (!args) SWIG_fail;
37177 swig_obj[0] = args;
37178 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37179 if (!SWIG_IsOK(res1)) {
37180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37181 }
37182 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37183 {
37184 PyThreadState* __tstate = wxPyBeginAllowThreads();
37185 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
37186 wxPyEndAllowThreads(__tstate);
37187 if (PyErr_Occurred()) SWIG_fail;
37188 }
37189 {
37190 #if wxUSE_UNICODE
37191 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37192 #else
37193 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37194 #endif
37195 }
37196 return resultobj;
37197 fail:
37198 return NULL;
37199 }
37200
37201
37202 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37203 PyObject *resultobj = 0;
37204 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37205 wxString *arg2 = 0 ;
37206 void *argp1 = 0 ;
37207 int res1 = 0 ;
37208 bool temp2 = false ;
37209 PyObject * obj0 = 0 ;
37210 PyObject * obj1 = 0 ;
37211 char * kwnames[] = {
37212 (char *) "self",(char *) "path", NULL
37213 };
37214
37215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
37216 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37217 if (!SWIG_IsOK(res1)) {
37218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37219 }
37220 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37221 {
37222 arg2 = wxString_in_helper(obj1);
37223 if (arg2 == NULL) SWIG_fail;
37224 temp2 = true;
37225 }
37226 {
37227 PyThreadState* __tstate = wxPyBeginAllowThreads();
37228 (arg1)->SetPath((wxString const &)*arg2);
37229 wxPyEndAllowThreads(__tstate);
37230 if (PyErr_Occurred()) SWIG_fail;
37231 }
37232 resultobj = SWIG_Py_Void();
37233 {
37234 if (temp2)
37235 delete arg2;
37236 }
37237 return resultobj;
37238 fail:
37239 {
37240 if (temp2)
37241 delete arg2;
37242 }
37243 return NULL;
37244 }
37245
37246
37247 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37248 PyObject *resultobj = 0;
37249 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37250 bool arg2 ;
37251 void *argp1 = 0 ;
37252 int res1 = 0 ;
37253 bool val2 ;
37254 int ecode2 = 0 ;
37255 PyObject * obj0 = 0 ;
37256 PyObject * obj1 = 0 ;
37257 char * kwnames[] = {
37258 (char *) "self",(char *) "show", NULL
37259 };
37260
37261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) SWIG_fail;
37262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37263 if (!SWIG_IsOK(res1)) {
37264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37265 }
37266 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37267 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37268 if (!SWIG_IsOK(ecode2)) {
37269 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "2"" of type '" "bool""'");
37270 }
37271 arg2 = static_cast< bool >(val2);
37272 {
37273 PyThreadState* __tstate = wxPyBeginAllowThreads();
37274 (arg1)->ShowHidden(arg2);
37275 wxPyEndAllowThreads(__tstate);
37276 if (PyErr_Occurred()) SWIG_fail;
37277 }
37278 resultobj = SWIG_Py_Void();
37279 return resultobj;
37280 fail:
37281 return NULL;
37282 }
37283
37284
37285 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37286 PyObject *resultobj = 0;
37287 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37288 bool result;
37289 void *argp1 = 0 ;
37290 int res1 = 0 ;
37291 PyObject *swig_obj[1] ;
37292
37293 if (!args) SWIG_fail;
37294 swig_obj[0] = args;
37295 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37296 if (!SWIG_IsOK(res1)) {
37297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37298 }
37299 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37300 {
37301 PyThreadState* __tstate = wxPyBeginAllowThreads();
37302 result = (bool)(arg1)->GetShowHidden();
37303 wxPyEndAllowThreads(__tstate);
37304 if (PyErr_Occurred()) SWIG_fail;
37305 }
37306 {
37307 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37308 }
37309 return resultobj;
37310 fail:
37311 return NULL;
37312 }
37313
37314
37315 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37316 PyObject *resultobj = 0;
37317 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37318 wxString result;
37319 void *argp1 = 0 ;
37320 int res1 = 0 ;
37321 PyObject *swig_obj[1] ;
37322
37323 if (!args) SWIG_fail;
37324 swig_obj[0] = args;
37325 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37326 if (!SWIG_IsOK(res1)) {
37327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37328 }
37329 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37330 {
37331 PyThreadState* __tstate = wxPyBeginAllowThreads();
37332 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
37333 wxPyEndAllowThreads(__tstate);
37334 if (PyErr_Occurred()) SWIG_fail;
37335 }
37336 {
37337 #if wxUSE_UNICODE
37338 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37339 #else
37340 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37341 #endif
37342 }
37343 return resultobj;
37344 fail:
37345 return NULL;
37346 }
37347
37348
37349 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37350 PyObject *resultobj = 0;
37351 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37352 wxString *arg2 = 0 ;
37353 void *argp1 = 0 ;
37354 int res1 = 0 ;
37355 bool temp2 = false ;
37356 PyObject * obj0 = 0 ;
37357 PyObject * obj1 = 0 ;
37358 char * kwnames[] = {
37359 (char *) "self",(char *) "filter", NULL
37360 };
37361
37362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) SWIG_fail;
37363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37364 if (!SWIG_IsOK(res1)) {
37365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37366 }
37367 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37368 {
37369 arg2 = wxString_in_helper(obj1);
37370 if (arg2 == NULL) SWIG_fail;
37371 temp2 = true;
37372 }
37373 {
37374 PyThreadState* __tstate = wxPyBeginAllowThreads();
37375 (arg1)->SetFilter((wxString const &)*arg2);
37376 wxPyEndAllowThreads(__tstate);
37377 if (PyErr_Occurred()) SWIG_fail;
37378 }
37379 resultobj = SWIG_Py_Void();
37380 {
37381 if (temp2)
37382 delete arg2;
37383 }
37384 return resultobj;
37385 fail:
37386 {
37387 if (temp2)
37388 delete arg2;
37389 }
37390 return NULL;
37391 }
37392
37393
37394 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37395 PyObject *resultobj = 0;
37396 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37397 int result;
37398 void *argp1 = 0 ;
37399 int res1 = 0 ;
37400 PyObject *swig_obj[1] ;
37401
37402 if (!args) SWIG_fail;
37403 swig_obj[0] = args;
37404 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37405 if (!SWIG_IsOK(res1)) {
37406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37407 }
37408 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37409 {
37410 PyThreadState* __tstate = wxPyBeginAllowThreads();
37411 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
37412 wxPyEndAllowThreads(__tstate);
37413 if (PyErr_Occurred()) SWIG_fail;
37414 }
37415 resultobj = SWIG_From_int(static_cast< int >(result));
37416 return resultobj;
37417 fail:
37418 return NULL;
37419 }
37420
37421
37422 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37423 PyObject *resultobj = 0;
37424 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37425 int arg2 ;
37426 void *argp1 = 0 ;
37427 int res1 = 0 ;
37428 int val2 ;
37429 int ecode2 = 0 ;
37430 PyObject * obj0 = 0 ;
37431 PyObject * obj1 = 0 ;
37432 char * kwnames[] = {
37433 (char *) "self",(char *) "n", NULL
37434 };
37435
37436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail;
37437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37438 if (!SWIG_IsOK(res1)) {
37439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37440 }
37441 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37442 ecode2 = SWIG_AsVal_int(obj1, &val2);
37443 if (!SWIG_IsOK(ecode2)) {
37444 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "2"" of type '" "int""'");
37445 }
37446 arg2 = static_cast< int >(val2);
37447 {
37448 PyThreadState* __tstate = wxPyBeginAllowThreads();
37449 (arg1)->SetFilterIndex(arg2);
37450 wxPyEndAllowThreads(__tstate);
37451 if (PyErr_Occurred()) SWIG_fail;
37452 }
37453 resultobj = SWIG_Py_Void();
37454 return resultobj;
37455 fail:
37456 return NULL;
37457 }
37458
37459
37460 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37461 PyObject *resultobj = 0;
37462 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37463 wxTreeItemId result;
37464 void *argp1 = 0 ;
37465 int res1 = 0 ;
37466 PyObject *swig_obj[1] ;
37467
37468 if (!args) SWIG_fail;
37469 swig_obj[0] = args;
37470 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37471 if (!SWIG_IsOK(res1)) {
37472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetRootId" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37473 }
37474 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37475 {
37476 PyThreadState* __tstate = wxPyBeginAllowThreads();
37477 result = (arg1)->GetRootId();
37478 wxPyEndAllowThreads(__tstate);
37479 if (PyErr_Occurred()) SWIG_fail;
37480 }
37481 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37482 return resultobj;
37483 fail:
37484 return NULL;
37485 }
37486
37487
37488 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37489 PyObject *resultobj = 0;
37490 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37491 wxPyTreeCtrl *result = 0 ;
37492 void *argp1 = 0 ;
37493 int res1 = 0 ;
37494 PyObject *swig_obj[1] ;
37495
37496 if (!args) SWIG_fail;
37497 swig_obj[0] = args;
37498 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37499 if (!SWIG_IsOK(res1)) {
37500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetTreeCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37501 }
37502 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37503 {
37504 PyThreadState* __tstate = wxPyBeginAllowThreads();
37505 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
37506 wxPyEndAllowThreads(__tstate);
37507 if (PyErr_Occurred()) SWIG_fail;
37508 }
37509 {
37510 resultobj = wxPyMake_wxObject(result, 0);
37511 }
37512 return resultobj;
37513 fail:
37514 return NULL;
37515 }
37516
37517
37518 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37519 PyObject *resultobj = 0;
37520 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37521 wxDirFilterListCtrl *result = 0 ;
37522 void *argp1 = 0 ;
37523 int res1 = 0 ;
37524 PyObject *swig_obj[1] ;
37525
37526 if (!args) SWIG_fail;
37527 swig_obj[0] = args;
37528 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37529 if (!SWIG_IsOK(res1)) {
37530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37531 }
37532 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37533 {
37534 PyThreadState* __tstate = wxPyBeginAllowThreads();
37535 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
37536 wxPyEndAllowThreads(__tstate);
37537 if (PyErr_Occurred()) SWIG_fail;
37538 }
37539 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
37540 return resultobj;
37541 fail:
37542 return NULL;
37543 }
37544
37545
37546 SWIGINTERN PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37547 PyObject *resultobj = 0;
37548 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37549 wxTreeItemId arg2 ;
37550 wxString *arg3 = 0 ;
37551 bool *arg4 = 0 ;
37552 wxTreeItemId result;
37553 void *argp1 = 0 ;
37554 int res1 = 0 ;
37555 void *argp2 ;
37556 int res2 = 0 ;
37557 bool temp3 = false ;
37558 bool temp4 ;
37559 int res4 = SWIG_TMPOBJ ;
37560 PyObject * obj0 = 0 ;
37561 PyObject * obj1 = 0 ;
37562 PyObject * obj2 = 0 ;
37563 char * kwnames[] = {
37564 (char *) "self",(char *) "parentId",(char *) "path", NULL
37565 };
37566
37567 arg4 = &temp4;
37568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37569 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37570 if (!SWIG_IsOK(res1)) {
37571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37572 }
37573 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37574 {
37575 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37576 if (!SWIG_IsOK(res2)) {
37577 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
37578 }
37579 if (!argp2) {
37580 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
37581 } else {
37582 wxTreeItemId * temp = reinterpret_cast< wxTreeItemId * >(argp2);
37583 arg2 = *temp;
37584 if (SWIG_IsNewObj(res2)) delete temp;
37585 }
37586 }
37587 {
37588 arg3 = wxString_in_helper(obj2);
37589 if (arg3 == NULL) SWIG_fail;
37590 temp3 = true;
37591 }
37592 {
37593 PyThreadState* __tstate = wxPyBeginAllowThreads();
37594 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
37595 wxPyEndAllowThreads(__tstate);
37596 if (PyErr_Occurred()) SWIG_fail;
37597 }
37598 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37599 if (SWIG_IsTmpObj(res4)) {
37600 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4)));
37601 } else {
37602 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
37603 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags));
37604 }
37605 {
37606 if (temp3)
37607 delete arg3;
37608 }
37609 return resultobj;
37610 fail:
37611 {
37612 if (temp3)
37613 delete arg3;
37614 }
37615 return NULL;
37616 }
37617
37618
37619 SWIGINTERN PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37620 PyObject *resultobj = 0;
37621 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37622 void *argp1 = 0 ;
37623 int res1 = 0 ;
37624 PyObject *swig_obj[1] ;
37625
37626 if (!args) SWIG_fail;
37627 swig_obj[0] = args;
37628 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37629 if (!SWIG_IsOK(res1)) {
37630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_DoResize" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37631 }
37632 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37633 {
37634 PyThreadState* __tstate = wxPyBeginAllowThreads();
37635 (arg1)->DoResize();
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_ReCreateTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37647 PyObject *resultobj = 0;
37648 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37649 void *argp1 = 0 ;
37650 int res1 = 0 ;
37651 PyObject *swig_obj[1] ;
37652
37653 if (!args) SWIG_fail;
37654 swig_obj[0] = args;
37655 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37656 if (!SWIG_IsOK(res1)) {
37657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ReCreateTree" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37658 }
37659 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37660 {
37661 PyThreadState* __tstate = wxPyBeginAllowThreads();
37662 (arg1)->ReCreateTree();
37663 wxPyEndAllowThreads(__tstate);
37664 if (PyErr_Occurred()) SWIG_fail;
37665 }
37666 resultobj = SWIG_Py_Void();
37667 return resultobj;
37668 fail:
37669 return NULL;
37670 }
37671
37672
37673 SWIGINTERN PyObject *GenericDirCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37674 PyObject *obj;
37675 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37676 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDirCtrl, SWIG_NewClientData(obj));
37677 return SWIG_Py_Void();
37678 }
37679
37680 SWIGINTERN PyObject *GenericDirCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37681 return SWIG_Python_InitShadowInstance(args);
37682 }
37683
37684 SWIGINTERN PyObject *_wrap_new_DirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37685 PyObject *resultobj = 0;
37686 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37687 int arg2 = (int) (int)-1 ;
37688 wxPoint const &arg3_defvalue = wxDefaultPosition ;
37689 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
37690 wxSize const &arg4_defvalue = wxDefaultSize ;
37691 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
37692 long arg5 = (long) 0 ;
37693 wxDirFilterListCtrl *result = 0 ;
37694 void *argp1 = 0 ;
37695 int res1 = 0 ;
37696 int val2 ;
37697 int ecode2 = 0 ;
37698 wxPoint temp3 ;
37699 wxSize temp4 ;
37700 long val5 ;
37701 int ecode5 = 0 ;
37702 PyObject * obj0 = 0 ;
37703 PyObject * obj1 = 0 ;
37704 PyObject * obj2 = 0 ;
37705 PyObject * obj3 = 0 ;
37706 PyObject * obj4 = 0 ;
37707 char * kwnames[] = {
37708 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
37709 };
37710
37711 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37712 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37713 if (!SWIG_IsOK(res1)) {
37714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37715 }
37716 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37717 if (obj1) {
37718 ecode2 = SWIG_AsVal_int(obj1, &val2);
37719 if (!SWIG_IsOK(ecode2)) {
37720 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirFilterListCtrl" "', expected argument " "2"" of type '" "int""'");
37721 }
37722 arg2 = static_cast< int >(val2);
37723 }
37724 if (obj2) {
37725 {
37726 arg3 = &temp3;
37727 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37728 }
37729 }
37730 if (obj3) {
37731 {
37732 arg4 = &temp4;
37733 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
37734 }
37735 }
37736 if (obj4) {
37737 ecode5 = SWIG_AsVal_long(obj4, &val5);
37738 if (!SWIG_IsOK(ecode5)) {
37739 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DirFilterListCtrl" "', expected argument " "5"" of type '" "long""'");
37740 }
37741 arg5 = static_cast< long >(val5);
37742 }
37743 {
37744 if (!wxPyCheckForApp()) SWIG_fail;
37745 PyThreadState* __tstate = wxPyBeginAllowThreads();
37746 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
37747 wxPyEndAllowThreads(__tstate);
37748 if (PyErr_Occurred()) SWIG_fail;
37749 }
37750 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_NEW | 0 );
37751 return resultobj;
37752 fail:
37753 return NULL;
37754 }
37755
37756
37757 SWIGINTERN PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37758 PyObject *resultobj = 0;
37759 wxDirFilterListCtrl *result = 0 ;
37760
37761 if (!SWIG_Python_UnpackTuple(args,"new_PreDirFilterListCtrl",0,0,0)) SWIG_fail;
37762 {
37763 if (!wxPyCheckForApp()) SWIG_fail;
37764 PyThreadState* __tstate = wxPyBeginAllowThreads();
37765 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
37766 wxPyEndAllowThreads(__tstate);
37767 if (PyErr_Occurred()) SWIG_fail;
37768 }
37769 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_OWN | 0 );
37770 return resultobj;
37771 fail:
37772 return NULL;
37773 }
37774
37775
37776 SWIGINTERN PyObject *_wrap_DirFilterListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37777 PyObject *resultobj = 0;
37778 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
37779 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
37780 int arg3 = (int) (int)-1 ;
37781 wxPoint const &arg4_defvalue = wxDefaultPosition ;
37782 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
37783 wxSize const &arg5_defvalue = wxDefaultSize ;
37784 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
37785 long arg6 = (long) 0 ;
37786 bool result;
37787 void *argp1 = 0 ;
37788 int res1 = 0 ;
37789 void *argp2 = 0 ;
37790 int res2 = 0 ;
37791 int val3 ;
37792 int ecode3 = 0 ;
37793 wxPoint temp4 ;
37794 wxSize temp5 ;
37795 long val6 ;
37796 int ecode6 = 0 ;
37797 PyObject * obj0 = 0 ;
37798 PyObject * obj1 = 0 ;
37799 PyObject * obj2 = 0 ;
37800 PyObject * obj3 = 0 ;
37801 PyObject * obj4 = 0 ;
37802 PyObject * obj5 = 0 ;
37803 char * kwnames[] = {
37804 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
37805 };
37806
37807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
37808 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
37809 if (!SWIG_IsOK(res1)) {
37810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_Create" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
37811 }
37812 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
37813 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37814 if (!SWIG_IsOK(res2)) {
37815 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirFilterListCtrl_Create" "', expected argument " "2"" of type '" "wxGenericDirCtrl *""'");
37816 }
37817 arg2 = reinterpret_cast< wxGenericDirCtrl * >(argp2);
37818 if (obj2) {
37819 ecode3 = SWIG_AsVal_int(obj2, &val3);
37820 if (!SWIG_IsOK(ecode3)) {
37821 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
37822 }
37823 arg3 = static_cast< int >(val3);
37824 }
37825 if (obj3) {
37826 {
37827 arg4 = &temp4;
37828 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
37829 }
37830 }
37831 if (obj4) {
37832 {
37833 arg5 = &temp5;
37834 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
37835 }
37836 }
37837 if (obj5) {
37838 ecode6 = SWIG_AsVal_long(obj5, &val6);
37839 if (!SWIG_IsOK(ecode6)) {
37840 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DirFilterListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
37841 }
37842 arg6 = static_cast< long >(val6);
37843 }
37844 {
37845 PyThreadState* __tstate = wxPyBeginAllowThreads();
37846 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
37847 wxPyEndAllowThreads(__tstate);
37848 if (PyErr_Occurred()) SWIG_fail;
37849 }
37850 {
37851 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37852 }
37853 return resultobj;
37854 fail:
37855 return NULL;
37856 }
37857
37858
37859 SWIGINTERN PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37860 PyObject *resultobj = 0;
37861 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
37862 wxString *arg2 = 0 ;
37863 int arg3 ;
37864 void *argp1 = 0 ;
37865 int res1 = 0 ;
37866 bool temp2 = false ;
37867 int val3 ;
37868 int ecode3 = 0 ;
37869 PyObject * obj0 = 0 ;
37870 PyObject * obj1 = 0 ;
37871 PyObject * obj2 = 0 ;
37872 char * kwnames[] = {
37873 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
37874 };
37875
37876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
37878 if (!SWIG_IsOK(res1)) {
37879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
37880 }
37881 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
37882 {
37883 arg2 = wxString_in_helper(obj1);
37884 if (arg2 == NULL) SWIG_fail;
37885 temp2 = true;
37886 }
37887 ecode3 = SWIG_AsVal_int(obj2, &val3);
37888 if (!SWIG_IsOK(ecode3)) {
37889 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "3"" of type '" "int""'");
37890 }
37891 arg3 = static_cast< int >(val3);
37892 {
37893 PyThreadState* __tstate = wxPyBeginAllowThreads();
37894 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
37895 wxPyEndAllowThreads(__tstate);
37896 if (PyErr_Occurred()) SWIG_fail;
37897 }
37898 resultobj = SWIG_Py_Void();
37899 {
37900 if (temp2)
37901 delete arg2;
37902 }
37903 return resultobj;
37904 fail:
37905 {
37906 if (temp2)
37907 delete arg2;
37908 }
37909 return NULL;
37910 }
37911
37912
37913 SWIGINTERN PyObject *DirFilterListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37914 PyObject *obj;
37915 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37916 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirFilterListCtrl, SWIG_NewClientData(obj));
37917 return SWIG_Py_Void();
37918 }
37919
37920 SWIGINTERN PyObject *DirFilterListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37921 return SWIG_Python_InitShadowInstance(args);
37922 }
37923
37924 SWIGINTERN PyObject *_wrap_new_PyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37925 PyObject *resultobj = 0;
37926 wxWindow *arg1 = (wxWindow *) 0 ;
37927 int arg2 = (int) (int)-1 ;
37928 wxPoint const &arg3_defvalue = wxDefaultPosition ;
37929 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
37930 wxSize const &arg4_defvalue = wxDefaultSize ;
37931 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
37932 long arg5 = (long) 0 ;
37933 wxValidator const &arg6_defvalue = wxDefaultValidator ;
37934 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
37935 wxString const &arg7_defvalue = wxPyControlNameStr ;
37936 wxString *arg7 = (wxString *) &arg7_defvalue ;
37937 wxPyControl *result = 0 ;
37938 void *argp1 = 0 ;
37939 int res1 = 0 ;
37940 int val2 ;
37941 int ecode2 = 0 ;
37942 wxPoint temp3 ;
37943 wxSize temp4 ;
37944 long val5 ;
37945 int ecode5 = 0 ;
37946 void *argp6 = 0 ;
37947 int res6 = 0 ;
37948 bool temp7 = false ;
37949 PyObject * obj0 = 0 ;
37950 PyObject * obj1 = 0 ;
37951 PyObject * obj2 = 0 ;
37952 PyObject * obj3 = 0 ;
37953 PyObject * obj4 = 0 ;
37954 PyObject * obj5 = 0 ;
37955 PyObject * obj6 = 0 ;
37956 char * kwnames[] = {
37957 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
37958 };
37959
37960 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
37961 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37962 if (!SWIG_IsOK(res1)) {
37963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyControl" "', expected argument " "1"" of type '" "wxWindow *""'");
37964 }
37965 arg1 = reinterpret_cast< wxWindow * >(argp1);
37966 if (obj1) {
37967 ecode2 = SWIG_AsVal_int(obj1, &val2);
37968 if (!SWIG_IsOK(ecode2)) {
37969 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyControl" "', expected argument " "2"" of type '" "int""'");
37970 }
37971 arg2 = static_cast< int >(val2);
37972 }
37973 if (obj2) {
37974 {
37975 arg3 = &temp3;
37976 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37977 }
37978 }
37979 if (obj3) {
37980 {
37981 arg4 = &temp4;
37982 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
37983 }
37984 }
37985 if (obj4) {
37986 ecode5 = SWIG_AsVal_long(obj4, &val5);
37987 if (!SWIG_IsOK(ecode5)) {
37988 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyControl" "', expected argument " "5"" of type '" "long""'");
37989 }
37990 arg5 = static_cast< long >(val5);
37991 }
37992 if (obj5) {
37993 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
37994 if (!SWIG_IsOK(res6)) {
37995 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
37996 }
37997 if (!argp6) {
37998 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
37999 }
38000 arg6 = reinterpret_cast< wxValidator * >(argp6);
38001 }
38002 if (obj6) {
38003 {
38004 arg7 = wxString_in_helper(obj6);
38005 if (arg7 == NULL) SWIG_fail;
38006 temp7 = true;
38007 }
38008 }
38009 {
38010 if (!wxPyCheckForApp()) SWIG_fail;
38011 PyThreadState* __tstate = wxPyBeginAllowThreads();
38012 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
38013 wxPyEndAllowThreads(__tstate);
38014 if (PyErr_Occurred()) SWIG_fail;
38015 }
38016 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_NEW | 0 );
38017 {
38018 if (temp7)
38019 delete arg7;
38020 }
38021 return resultobj;
38022 fail:
38023 {
38024 if (temp7)
38025 delete arg7;
38026 }
38027 return NULL;
38028 }
38029
38030
38031 SWIGINTERN PyObject *_wrap_new_PrePyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38032 PyObject *resultobj = 0;
38033 wxPyControl *result = 0 ;
38034
38035 if (!SWIG_Python_UnpackTuple(args,"new_PrePyControl",0,0,0)) SWIG_fail;
38036 {
38037 if (!wxPyCheckForApp()) SWIG_fail;
38038 PyThreadState* __tstate = wxPyBeginAllowThreads();
38039 result = (wxPyControl *)new wxPyControl();
38040 wxPyEndAllowThreads(__tstate);
38041 if (PyErr_Occurred()) SWIG_fail;
38042 }
38043 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_OWN | 0 );
38044 return resultobj;
38045 fail:
38046 return NULL;
38047 }
38048
38049
38050 SWIGINTERN PyObject *_wrap_PyControl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38051 PyObject *resultobj = 0;
38052 wxPyControl *arg1 = (wxPyControl *) 0 ;
38053 PyObject *arg2 = (PyObject *) 0 ;
38054 PyObject *arg3 = (PyObject *) 0 ;
38055 void *argp1 = 0 ;
38056 int res1 = 0 ;
38057 PyObject * obj0 = 0 ;
38058 PyObject * obj1 = 0 ;
38059 PyObject * obj2 = 0 ;
38060 char * kwnames[] = {
38061 (char *) "self",(char *) "self",(char *) "_class", NULL
38062 };
38063
38064 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38065 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38066 if (!SWIG_IsOK(res1)) {
38067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyControl *""'");
38068 }
38069 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38070 arg2 = obj1;
38071 arg3 = obj2;
38072 {
38073 PyThreadState* __tstate = wxPyBeginAllowThreads();
38074 (arg1)->_setCallbackInfo(arg2,arg3);
38075 wxPyEndAllowThreads(__tstate);
38076 if (PyErr_Occurred()) SWIG_fail;
38077 }
38078 resultobj = SWIG_Py_Void();
38079 return resultobj;
38080 fail:
38081 return NULL;
38082 }
38083
38084
38085 SWIGINTERN PyObject *_wrap_PyControl_SetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38086 PyObject *resultobj = 0;
38087 wxPyControl *arg1 = (wxPyControl *) 0 ;
38088 wxSize *arg2 = 0 ;
38089 void *argp1 = 0 ;
38090 int res1 = 0 ;
38091 wxSize temp2 ;
38092 PyObject * obj0 = 0 ;
38093 PyObject * obj1 = 0 ;
38094 char * kwnames[] = {
38095 (char *) "self",(char *) "size", NULL
38096 };
38097
38098 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
38099 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38100 if (!SWIG_IsOK(res1)) {
38101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_SetBestSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38102 }
38103 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38104 {
38105 arg2 = &temp2;
38106 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
38107 }
38108 {
38109 PyThreadState* __tstate = wxPyBeginAllowThreads();
38110 (arg1)->SetBestSize((wxSize const &)*arg2);
38111 wxPyEndAllowThreads(__tstate);
38112 if (PyErr_Occurred()) SWIG_fail;
38113 }
38114 resultobj = SWIG_Py_Void();
38115 return resultobj;
38116 fail:
38117 return NULL;
38118 }
38119
38120
38121 SWIGINTERN PyObject *_wrap_PyControl_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38122 PyObject *resultobj = 0;
38123 wxPyControl *arg1 = (wxPyControl *) 0 ;
38124 wxDC *arg2 = (wxDC *) 0 ;
38125 bool result;
38126 void *argp1 = 0 ;
38127 int res1 = 0 ;
38128 void *argp2 = 0 ;
38129 int res2 = 0 ;
38130 PyObject * obj0 = 0 ;
38131 PyObject * obj1 = 0 ;
38132 char * kwnames[] = {
38133 (char *) "self",(char *) "dc", NULL
38134 };
38135
38136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38138 if (!SWIG_IsOK(res1)) {
38139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyControl *""'");
38140 }
38141 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38142 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
38143 if (!SWIG_IsOK(res2)) {
38144 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyControl_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'");
38145 }
38146 arg2 = reinterpret_cast< wxDC * >(argp2);
38147 {
38148 PyThreadState* __tstate = wxPyBeginAllowThreads();
38149 result = (bool)(arg1)->DoEraseBackground(arg2);
38150 wxPyEndAllowThreads(__tstate);
38151 if (PyErr_Occurred()) SWIG_fail;
38152 }
38153 {
38154 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38155 }
38156 return resultobj;
38157 fail:
38158 return NULL;
38159 }
38160
38161
38162 SWIGINTERN PyObject *_wrap_PyControl_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38163 PyObject *resultobj = 0;
38164 wxPyControl *arg1 = (wxPyControl *) 0 ;
38165 int arg2 ;
38166 int arg3 ;
38167 int arg4 ;
38168 int arg5 ;
38169 void *argp1 = 0 ;
38170 int res1 = 0 ;
38171 int val2 ;
38172 int ecode2 = 0 ;
38173 int val3 ;
38174 int ecode3 = 0 ;
38175 int val4 ;
38176 int ecode4 = 0 ;
38177 int val5 ;
38178 int ecode5 = 0 ;
38179 PyObject * obj0 = 0 ;
38180 PyObject * obj1 = 0 ;
38181 PyObject * obj2 = 0 ;
38182 PyObject * obj3 = 0 ;
38183 PyObject * obj4 = 0 ;
38184 char * kwnames[] = {
38185 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
38186 };
38187
38188 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38189 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38190 if (!SWIG_IsOK(res1)) {
38191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyControl *""'");
38192 }
38193 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38194 ecode2 = SWIG_AsVal_int(obj1, &val2);
38195 if (!SWIG_IsOK(ecode2)) {
38196 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoMoveWindow" "', expected argument " "2"" of type '" "int""'");
38197 }
38198 arg2 = static_cast< int >(val2);
38199 ecode3 = SWIG_AsVal_int(obj2, &val3);
38200 if (!SWIG_IsOK(ecode3)) {
38201 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoMoveWindow" "', expected argument " "3"" of type '" "int""'");
38202 }
38203 arg3 = static_cast< int >(val3);
38204 ecode4 = SWIG_AsVal_int(obj3, &val4);
38205 if (!SWIG_IsOK(ecode4)) {
38206 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoMoveWindow" "', expected argument " "4"" of type '" "int""'");
38207 }
38208 arg4 = static_cast< int >(val4);
38209 ecode5 = SWIG_AsVal_int(obj4, &val5);
38210 if (!SWIG_IsOK(ecode5)) {
38211 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoMoveWindow" "', expected argument " "5"" of type '" "int""'");
38212 }
38213 arg5 = static_cast< int >(val5);
38214 {
38215 PyThreadState* __tstate = wxPyBeginAllowThreads();
38216 (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5);
38217 wxPyEndAllowThreads(__tstate);
38218 if (PyErr_Occurred()) SWIG_fail;
38219 }
38220 resultobj = SWIG_Py_Void();
38221 return resultobj;
38222 fail:
38223 return NULL;
38224 }
38225
38226
38227 SWIGINTERN PyObject *_wrap_PyControl_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38228 PyObject *resultobj = 0;
38229 wxPyControl *arg1 = (wxPyControl *) 0 ;
38230 int arg2 ;
38231 int arg3 ;
38232 int arg4 ;
38233 int arg5 ;
38234 int arg6 = (int) wxSIZE_AUTO ;
38235 void *argp1 = 0 ;
38236 int res1 = 0 ;
38237 int val2 ;
38238 int ecode2 = 0 ;
38239 int val3 ;
38240 int ecode3 = 0 ;
38241 int val4 ;
38242 int ecode4 = 0 ;
38243 int val5 ;
38244 int ecode5 = 0 ;
38245 int val6 ;
38246 int ecode6 = 0 ;
38247 PyObject * obj0 = 0 ;
38248 PyObject * obj1 = 0 ;
38249 PyObject * obj2 = 0 ;
38250 PyObject * obj3 = 0 ;
38251 PyObject * obj4 = 0 ;
38252 PyObject * obj5 = 0 ;
38253 char * kwnames[] = {
38254 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
38255 };
38256
38257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38259 if (!SWIG_IsOK(res1)) {
38260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38261 }
38262 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38263 ecode2 = SWIG_AsVal_int(obj1, &val2);
38264 if (!SWIG_IsOK(ecode2)) {
38265 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetSize" "', expected argument " "2"" of type '" "int""'");
38266 }
38267 arg2 = static_cast< int >(val2);
38268 ecode3 = SWIG_AsVal_int(obj2, &val3);
38269 if (!SWIG_IsOK(ecode3)) {
38270 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetSize" "', expected argument " "3"" of type '" "int""'");
38271 }
38272 arg3 = static_cast< int >(val3);
38273 ecode4 = SWIG_AsVal_int(obj3, &val4);
38274 if (!SWIG_IsOK(ecode4)) {
38275 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoSetSize" "', expected argument " "4"" of type '" "int""'");
38276 }
38277 arg4 = static_cast< int >(val4);
38278 ecode5 = SWIG_AsVal_int(obj4, &val5);
38279 if (!SWIG_IsOK(ecode5)) {
38280 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoSetSize" "', expected argument " "5"" of type '" "int""'");
38281 }
38282 arg5 = static_cast< int >(val5);
38283 if (obj5) {
38284 ecode6 = SWIG_AsVal_int(obj5, &val6);
38285 if (!SWIG_IsOK(ecode6)) {
38286 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyControl_DoSetSize" "', expected argument " "6"" of type '" "int""'");
38287 }
38288 arg6 = static_cast< int >(val6);
38289 }
38290 {
38291 PyThreadState* __tstate = wxPyBeginAllowThreads();
38292 (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6);
38293 wxPyEndAllowThreads(__tstate);
38294 if (PyErr_Occurred()) SWIG_fail;
38295 }
38296 resultobj = SWIG_Py_Void();
38297 return resultobj;
38298 fail:
38299 return NULL;
38300 }
38301
38302
38303 SWIGINTERN PyObject *_wrap_PyControl_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38304 PyObject *resultobj = 0;
38305 wxPyControl *arg1 = (wxPyControl *) 0 ;
38306 int arg2 ;
38307 int arg3 ;
38308 void *argp1 = 0 ;
38309 int res1 = 0 ;
38310 int val2 ;
38311 int ecode2 = 0 ;
38312 int val3 ;
38313 int ecode3 = 0 ;
38314 PyObject * obj0 = 0 ;
38315 PyObject * obj1 = 0 ;
38316 PyObject * obj2 = 0 ;
38317 char * kwnames[] = {
38318 (char *) "self",(char *) "width",(char *) "height", NULL
38319 };
38320
38321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38323 if (!SWIG_IsOK(res1)) {
38324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38325 }
38326 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38327 ecode2 = SWIG_AsVal_int(obj1, &val2);
38328 if (!SWIG_IsOK(ecode2)) {
38329 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetClientSize" "', expected argument " "2"" of type '" "int""'");
38330 }
38331 arg2 = static_cast< int >(val2);
38332 ecode3 = SWIG_AsVal_int(obj2, &val3);
38333 if (!SWIG_IsOK(ecode3)) {
38334 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetClientSize" "', expected argument " "3"" of type '" "int""'");
38335 }
38336 arg3 = static_cast< int >(val3);
38337 {
38338 PyThreadState* __tstate = wxPyBeginAllowThreads();
38339 (arg1)->DoSetClientSize(arg2,arg3);
38340 wxPyEndAllowThreads(__tstate);
38341 if (PyErr_Occurred()) SWIG_fail;
38342 }
38343 resultobj = SWIG_Py_Void();
38344 return resultobj;
38345 fail:
38346 return NULL;
38347 }
38348
38349
38350 SWIGINTERN PyObject *_wrap_PyControl_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38351 PyObject *resultobj = 0;
38352 wxPyControl *arg1 = (wxPyControl *) 0 ;
38353 int arg2 ;
38354 int arg3 ;
38355 void *argp1 = 0 ;
38356 int res1 = 0 ;
38357 int val2 ;
38358 int ecode2 = 0 ;
38359 int val3 ;
38360 int ecode3 = 0 ;
38361 PyObject * obj0 = 0 ;
38362 PyObject * obj1 = 0 ;
38363 PyObject * obj2 = 0 ;
38364 char * kwnames[] = {
38365 (char *) "self",(char *) "x",(char *) "y", NULL
38366 };
38367
38368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38370 if (!SWIG_IsOK(res1)) {
38371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38372 }
38373 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38374 ecode2 = SWIG_AsVal_int(obj1, &val2);
38375 if (!SWIG_IsOK(ecode2)) {
38376 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'");
38377 }
38378 arg2 = static_cast< int >(val2);
38379 ecode3 = SWIG_AsVal_int(obj2, &val3);
38380 if (!SWIG_IsOK(ecode3)) {
38381 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'");
38382 }
38383 arg3 = static_cast< int >(val3);
38384 {
38385 PyThreadState* __tstate = wxPyBeginAllowThreads();
38386 (arg1)->DoSetVirtualSize(arg2,arg3);
38387 wxPyEndAllowThreads(__tstate);
38388 if (PyErr_Occurred()) SWIG_fail;
38389 }
38390 resultobj = SWIG_Py_Void();
38391 return resultobj;
38392 fail:
38393 return NULL;
38394 }
38395
38396
38397 SWIGINTERN PyObject *_wrap_PyControl_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38398 PyObject *resultobj = 0;
38399 wxPyControl *arg1 = (wxPyControl *) 0 ;
38400 int *arg2 = (int *) 0 ;
38401 int *arg3 = (int *) 0 ;
38402 void *argp1 = 0 ;
38403 int res1 = 0 ;
38404 int temp2 ;
38405 int res2 = SWIG_TMPOBJ ;
38406 int temp3 ;
38407 int res3 = SWIG_TMPOBJ ;
38408 PyObject *swig_obj[1] ;
38409
38410 arg2 = &temp2;
38411 arg3 = &temp3;
38412 if (!args) SWIG_fail;
38413 swig_obj[0] = args;
38414 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38415 if (!SWIG_IsOK(res1)) {
38416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38417 }
38418 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38419 {
38420 PyThreadState* __tstate = wxPyBeginAllowThreads();
38421 ((wxPyControl const *)arg1)->DoGetSize(arg2,arg3);
38422 wxPyEndAllowThreads(__tstate);
38423 if (PyErr_Occurred()) SWIG_fail;
38424 }
38425 resultobj = SWIG_Py_Void();
38426 if (SWIG_IsTmpObj(res2)) {
38427 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38428 } else {
38429 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38430 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38431 }
38432 if (SWIG_IsTmpObj(res3)) {
38433 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38434 } else {
38435 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38436 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38437 }
38438 return resultobj;
38439 fail:
38440 return NULL;
38441 }
38442
38443
38444 SWIGINTERN PyObject *_wrap_PyControl_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38445 PyObject *resultobj = 0;
38446 wxPyControl *arg1 = (wxPyControl *) 0 ;
38447 int *arg2 = (int *) 0 ;
38448 int *arg3 = (int *) 0 ;
38449 void *argp1 = 0 ;
38450 int res1 = 0 ;
38451 int temp2 ;
38452 int res2 = SWIG_TMPOBJ ;
38453 int temp3 ;
38454 int res3 = SWIG_TMPOBJ ;
38455 PyObject *swig_obj[1] ;
38456
38457 arg2 = &temp2;
38458 arg3 = &temp3;
38459 if (!args) SWIG_fail;
38460 swig_obj[0] = args;
38461 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38462 if (!SWIG_IsOK(res1)) {
38463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38464 }
38465 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38466 {
38467 PyThreadState* __tstate = wxPyBeginAllowThreads();
38468 ((wxPyControl const *)arg1)->DoGetClientSize(arg2,arg3);
38469 wxPyEndAllowThreads(__tstate);
38470 if (PyErr_Occurred()) SWIG_fail;
38471 }
38472 resultobj = SWIG_Py_Void();
38473 if (SWIG_IsTmpObj(res2)) {
38474 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38475 } else {
38476 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38477 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38478 }
38479 if (SWIG_IsTmpObj(res3)) {
38480 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38481 } else {
38482 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38483 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38484 }
38485 return resultobj;
38486 fail:
38487 return NULL;
38488 }
38489
38490
38491 SWIGINTERN PyObject *_wrap_PyControl_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38492 PyObject *resultobj = 0;
38493 wxPyControl *arg1 = (wxPyControl *) 0 ;
38494 int *arg2 = (int *) 0 ;
38495 int *arg3 = (int *) 0 ;
38496 void *argp1 = 0 ;
38497 int res1 = 0 ;
38498 int temp2 ;
38499 int res2 = SWIG_TMPOBJ ;
38500 int temp3 ;
38501 int res3 = SWIG_TMPOBJ ;
38502 PyObject *swig_obj[1] ;
38503
38504 arg2 = &temp2;
38505 arg3 = &temp3;
38506 if (!args) SWIG_fail;
38507 swig_obj[0] = args;
38508 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38509 if (!SWIG_IsOK(res1)) {
38510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetPosition" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38511 }
38512 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38513 {
38514 PyThreadState* __tstate = wxPyBeginAllowThreads();
38515 ((wxPyControl const *)arg1)->DoGetPosition(arg2,arg3);
38516 wxPyEndAllowThreads(__tstate);
38517 if (PyErr_Occurred()) SWIG_fail;
38518 }
38519 resultobj = SWIG_Py_Void();
38520 if (SWIG_IsTmpObj(res2)) {
38521 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38522 } else {
38523 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38524 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38525 }
38526 if (SWIG_IsTmpObj(res3)) {
38527 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38528 } else {
38529 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38530 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38531 }
38532 return resultobj;
38533 fail:
38534 return NULL;
38535 }
38536
38537
38538 SWIGINTERN PyObject *_wrap_PyControl_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38539 PyObject *resultobj = 0;
38540 wxPyControl *arg1 = (wxPyControl *) 0 ;
38541 wxSize result;
38542 void *argp1 = 0 ;
38543 int res1 = 0 ;
38544 PyObject *swig_obj[1] ;
38545
38546 if (!args) SWIG_fail;
38547 swig_obj[0] = args;
38548 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38549 if (!SWIG_IsOK(res1)) {
38550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38551 }
38552 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38553 {
38554 PyThreadState* __tstate = wxPyBeginAllowThreads();
38555 result = ((wxPyControl const *)arg1)->DoGetVirtualSize();
38556 wxPyEndAllowThreads(__tstate);
38557 if (PyErr_Occurred()) SWIG_fail;
38558 }
38559 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
38560 return resultobj;
38561 fail:
38562 return NULL;
38563 }
38564
38565
38566 SWIGINTERN PyObject *_wrap_PyControl_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38567 PyObject *resultobj = 0;
38568 wxPyControl *arg1 = (wxPyControl *) 0 ;
38569 wxSize result;
38570 void *argp1 = 0 ;
38571 int res1 = 0 ;
38572 PyObject *swig_obj[1] ;
38573
38574 if (!args) SWIG_fail;
38575 swig_obj[0] = args;
38576 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38577 if (!SWIG_IsOK(res1)) {
38578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38579 }
38580 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38581 {
38582 PyThreadState* __tstate = wxPyBeginAllowThreads();
38583 result = ((wxPyControl const *)arg1)->DoGetBestSize();
38584 wxPyEndAllowThreads(__tstate);
38585 if (PyErr_Occurred()) SWIG_fail;
38586 }
38587 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
38588 return resultobj;
38589 fail:
38590 return NULL;
38591 }
38592
38593
38594 SWIGINTERN PyObject *_wrap_PyControl_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38595 PyObject *resultobj = 0;
38596 wxPyControl *arg1 = (wxPyControl *) 0 ;
38597 SwigValueWrapper<wxVisualAttributes > result;
38598 void *argp1 = 0 ;
38599 int res1 = 0 ;
38600 PyObject *swig_obj[1] ;
38601
38602 if (!args) SWIG_fail;
38603 swig_obj[0] = args;
38604 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38605 if (!SWIG_IsOK(res1)) {
38606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyControl *""'");
38607 }
38608 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38609 {
38610 PyThreadState* __tstate = wxPyBeginAllowThreads();
38611 result = (arg1)->GetDefaultAttributes();
38612 wxPyEndAllowThreads(__tstate);
38613 if (PyErr_Occurred()) SWIG_fail;
38614 }
38615 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
38616 return resultobj;
38617 fail:
38618 return NULL;
38619 }
38620
38621
38622 SWIGINTERN PyObject *_wrap_PyControl_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38623 PyObject *resultobj = 0;
38624 wxPyControl *arg1 = (wxPyControl *) 0 ;
38625 void *argp1 = 0 ;
38626 int res1 = 0 ;
38627 PyObject *swig_obj[1] ;
38628
38629 if (!args) SWIG_fail;
38630 swig_obj[0] = args;
38631 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38632 if (!SWIG_IsOK(res1)) {
38633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyControl *""'");
38634 }
38635 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38636 {
38637 PyThreadState* __tstate = wxPyBeginAllowThreads();
38638 (arg1)->OnInternalIdle();
38639 wxPyEndAllowThreads(__tstate);
38640 if (PyErr_Occurred()) SWIG_fail;
38641 }
38642 resultobj = SWIG_Py_Void();
38643 return resultobj;
38644 fail:
38645 return NULL;
38646 }
38647
38648
38649 SWIGINTERN PyObject *PyControl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38650 PyObject *obj;
38651 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38652 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyControl, SWIG_NewClientData(obj));
38653 return SWIG_Py_Void();
38654 }
38655
38656 SWIGINTERN PyObject *PyControl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38657 return SWIG_Python_InitShadowInstance(args);
38658 }
38659
38660 SWIGINTERN PyObject *_wrap_new_HelpEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38661 PyObject *resultobj = 0;
38662 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
38663 int arg2 = (int) 0 ;
38664 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38665 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38666 wxHelpEvent *result = 0 ;
38667 int val1 ;
38668 int ecode1 = 0 ;
38669 int val2 ;
38670 int ecode2 = 0 ;
38671 wxPoint temp3 ;
38672 PyObject * obj0 = 0 ;
38673 PyObject * obj1 = 0 ;
38674 PyObject * obj2 = 0 ;
38675 char * kwnames[] = {
38676 (char *) "type",(char *) "winid",(char *) "pt", NULL
38677 };
38678
38679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38680 if (obj0) {
38681 ecode1 = SWIG_AsVal_int(obj0, &val1);
38682 if (!SWIG_IsOK(ecode1)) {
38683 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HelpEvent" "', expected argument " "1"" of type '" "wxEventType""'");
38684 }
38685 arg1 = static_cast< wxEventType >(val1);
38686 }
38687 if (obj1) {
38688 ecode2 = SWIG_AsVal_int(obj1, &val2);
38689 if (!SWIG_IsOK(ecode2)) {
38690 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HelpEvent" "', expected argument " "2"" of type '" "int""'");
38691 }
38692 arg2 = static_cast< int >(val2);
38693 }
38694 if (obj2) {
38695 {
38696 arg3 = &temp3;
38697 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38698 }
38699 }
38700 {
38701 PyThreadState* __tstate = wxPyBeginAllowThreads();
38702 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3);
38703 wxPyEndAllowThreads(__tstate);
38704 if (PyErr_Occurred()) SWIG_fail;
38705 }
38706 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_NEW | 0 );
38707 return resultobj;
38708 fail:
38709 return NULL;
38710 }
38711
38712
38713 SWIGINTERN PyObject *_wrap_HelpEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38714 PyObject *resultobj = 0;
38715 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38716 wxPoint result;
38717 void *argp1 = 0 ;
38718 int res1 = 0 ;
38719 PyObject *swig_obj[1] ;
38720
38721 if (!args) SWIG_fail;
38722 swig_obj[0] = args;
38723 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38724 if (!SWIG_IsOK(res1)) {
38725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetPosition" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
38726 }
38727 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38728 {
38729 PyThreadState* __tstate = wxPyBeginAllowThreads();
38730 result = ((wxHelpEvent const *)arg1)->GetPosition();
38731 wxPyEndAllowThreads(__tstate);
38732 if (PyErr_Occurred()) SWIG_fail;
38733 }
38734 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
38735 return resultobj;
38736 fail:
38737 return NULL;
38738 }
38739
38740
38741 SWIGINTERN PyObject *_wrap_HelpEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38742 PyObject *resultobj = 0;
38743 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38744 wxPoint *arg2 = 0 ;
38745 void *argp1 = 0 ;
38746 int res1 = 0 ;
38747 wxPoint temp2 ;
38748 PyObject * obj0 = 0 ;
38749 PyObject * obj1 = 0 ;
38750 char * kwnames[] = {
38751 (char *) "self",(char *) "pos", NULL
38752 };
38753
38754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
38755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38756 if (!SWIG_IsOK(res1)) {
38757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetPosition" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
38758 }
38759 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38760 {
38761 arg2 = &temp2;
38762 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
38763 }
38764 {
38765 PyThreadState* __tstate = wxPyBeginAllowThreads();
38766 (arg1)->SetPosition((wxPoint const &)*arg2);
38767 wxPyEndAllowThreads(__tstate);
38768 if (PyErr_Occurred()) SWIG_fail;
38769 }
38770 resultobj = SWIG_Py_Void();
38771 return resultobj;
38772 fail:
38773 return NULL;
38774 }
38775
38776
38777 SWIGINTERN PyObject *_wrap_HelpEvent_GetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38778 PyObject *resultobj = 0;
38779 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38780 wxString *result = 0 ;
38781 void *argp1 = 0 ;
38782 int res1 = 0 ;
38783 PyObject *swig_obj[1] ;
38784
38785 if (!args) SWIG_fail;
38786 swig_obj[0] = args;
38787 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38788 if (!SWIG_IsOK(res1)) {
38789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetLink" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
38790 }
38791 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38792 {
38793 PyThreadState* __tstate = wxPyBeginAllowThreads();
38794 {
38795 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
38796 result = (wxString *) &_result_ref;
38797 }
38798 wxPyEndAllowThreads(__tstate);
38799 if (PyErr_Occurred()) SWIG_fail;
38800 }
38801 {
38802 #if wxUSE_UNICODE
38803 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
38804 #else
38805 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
38806 #endif
38807 }
38808 return resultobj;
38809 fail:
38810 return NULL;
38811 }
38812
38813
38814 SWIGINTERN PyObject *_wrap_HelpEvent_SetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38815 PyObject *resultobj = 0;
38816 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38817 wxString *arg2 = 0 ;
38818 void *argp1 = 0 ;
38819 int res1 = 0 ;
38820 bool temp2 = false ;
38821 PyObject * obj0 = 0 ;
38822 PyObject * obj1 = 0 ;
38823 char * kwnames[] = {
38824 (char *) "self",(char *) "link", NULL
38825 };
38826
38827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) SWIG_fail;
38828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38829 if (!SWIG_IsOK(res1)) {
38830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetLink" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
38831 }
38832 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38833 {
38834 arg2 = wxString_in_helper(obj1);
38835 if (arg2 == NULL) SWIG_fail;
38836 temp2 = true;
38837 }
38838 {
38839 PyThreadState* __tstate = wxPyBeginAllowThreads();
38840 (arg1)->SetLink((wxString const &)*arg2);
38841 wxPyEndAllowThreads(__tstate);
38842 if (PyErr_Occurred()) SWIG_fail;
38843 }
38844 resultobj = SWIG_Py_Void();
38845 {
38846 if (temp2)
38847 delete arg2;
38848 }
38849 return resultobj;
38850 fail:
38851 {
38852 if (temp2)
38853 delete arg2;
38854 }
38855 return NULL;
38856 }
38857
38858
38859 SWIGINTERN PyObject *_wrap_HelpEvent_GetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38860 PyObject *resultobj = 0;
38861 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38862 wxString *result = 0 ;
38863 void *argp1 = 0 ;
38864 int res1 = 0 ;
38865 PyObject *swig_obj[1] ;
38866
38867 if (!args) SWIG_fail;
38868 swig_obj[0] = args;
38869 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38870 if (!SWIG_IsOK(res1)) {
38871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetTarget" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
38872 }
38873 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38874 {
38875 PyThreadState* __tstate = wxPyBeginAllowThreads();
38876 {
38877 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
38878 result = (wxString *) &_result_ref;
38879 }
38880 wxPyEndAllowThreads(__tstate);
38881 if (PyErr_Occurred()) SWIG_fail;
38882 }
38883 {
38884 #if wxUSE_UNICODE
38885 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
38886 #else
38887 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
38888 #endif
38889 }
38890 return resultobj;
38891 fail:
38892 return NULL;
38893 }
38894
38895
38896 SWIGINTERN PyObject *_wrap_HelpEvent_SetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38897 PyObject *resultobj = 0;
38898 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38899 wxString *arg2 = 0 ;
38900 void *argp1 = 0 ;
38901 int res1 = 0 ;
38902 bool temp2 = false ;
38903 PyObject * obj0 = 0 ;
38904 PyObject * obj1 = 0 ;
38905 char * kwnames[] = {
38906 (char *) "self",(char *) "target", NULL
38907 };
38908
38909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) SWIG_fail;
38910 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38911 if (!SWIG_IsOK(res1)) {
38912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetTarget" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
38913 }
38914 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38915 {
38916 arg2 = wxString_in_helper(obj1);
38917 if (arg2 == NULL) SWIG_fail;
38918 temp2 = true;
38919 }
38920 {
38921 PyThreadState* __tstate = wxPyBeginAllowThreads();
38922 (arg1)->SetTarget((wxString const &)*arg2);
38923 wxPyEndAllowThreads(__tstate);
38924 if (PyErr_Occurred()) SWIG_fail;
38925 }
38926 resultobj = SWIG_Py_Void();
38927 {
38928 if (temp2)
38929 delete arg2;
38930 }
38931 return resultobj;
38932 fail:
38933 {
38934 if (temp2)
38935 delete arg2;
38936 }
38937 return NULL;
38938 }
38939
38940
38941 SWIGINTERN PyObject *HelpEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38942 PyObject *obj;
38943 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38944 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpEvent, SWIG_NewClientData(obj));
38945 return SWIG_Py_Void();
38946 }
38947
38948 SWIGINTERN PyObject *HelpEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38949 return SWIG_Python_InitShadowInstance(args);
38950 }
38951
38952 SWIGINTERN PyObject *_wrap_new_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38953 PyObject *resultobj = 0;
38954 wxWindow *arg1 = (wxWindow *) NULL ;
38955 bool arg2 = (bool) true ;
38956 wxContextHelp *result = 0 ;
38957 void *argp1 = 0 ;
38958 int res1 = 0 ;
38959 bool val2 ;
38960 int ecode2 = 0 ;
38961 PyObject * obj0 = 0 ;
38962 PyObject * obj1 = 0 ;
38963 char * kwnames[] = {
38964 (char *) "window",(char *) "doNow", NULL
38965 };
38966
38967 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
38968 if (obj0) {
38969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38970 if (!SWIG_IsOK(res1)) {
38971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelp" "', expected argument " "1"" of type '" "wxWindow *""'");
38972 }
38973 arg1 = reinterpret_cast< wxWindow * >(argp1);
38974 }
38975 if (obj1) {
38976 ecode2 = SWIG_AsVal_bool(obj1, &val2);
38977 if (!SWIG_IsOK(ecode2)) {
38978 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelp" "', expected argument " "2"" of type '" "bool""'");
38979 }
38980 arg2 = static_cast< bool >(val2);
38981 }
38982 {
38983 if (!wxPyCheckForApp()) SWIG_fail;
38984 PyThreadState* __tstate = wxPyBeginAllowThreads();
38985 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
38986 wxPyEndAllowThreads(__tstate);
38987 if (PyErr_Occurred()) SWIG_fail;
38988 }
38989 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelp, SWIG_POINTER_NEW | 0 );
38990 return resultobj;
38991 fail:
38992 return NULL;
38993 }
38994
38995
38996 SWIGINTERN PyObject *_wrap_delete_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38997 PyObject *resultobj = 0;
38998 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
38999 void *argp1 = 0 ;
39000 int res1 = 0 ;
39001 PyObject *swig_obj[1] ;
39002
39003 if (!args) SWIG_fail;
39004 swig_obj[0] = args;
39005 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, SWIG_POINTER_DISOWN | 0 );
39006 if (!SWIG_IsOK(res1)) {
39007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39008 }
39009 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39010 {
39011 PyThreadState* __tstate = wxPyBeginAllowThreads();
39012 delete arg1;
39013
39014 wxPyEndAllowThreads(__tstate);
39015 if (PyErr_Occurred()) SWIG_fail;
39016 }
39017 resultobj = SWIG_Py_Void();
39018 return resultobj;
39019 fail:
39020 return NULL;
39021 }
39022
39023
39024 SWIGINTERN PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39025 PyObject *resultobj = 0;
39026 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39027 wxWindow *arg2 = (wxWindow *) NULL ;
39028 bool result;
39029 void *argp1 = 0 ;
39030 int res1 = 0 ;
39031 void *argp2 = 0 ;
39032 int res2 = 0 ;
39033 PyObject * obj0 = 0 ;
39034 PyObject * obj1 = 0 ;
39035 char * kwnames[] = {
39036 (char *) "self",(char *) "window", NULL
39037 };
39038
39039 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39040 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39041 if (!SWIG_IsOK(res1)) {
39042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39043 }
39044 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39045 if (obj1) {
39046 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39047 if (!SWIG_IsOK(res2)) {
39048 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39049 }
39050 arg2 = reinterpret_cast< wxWindow * >(argp2);
39051 }
39052 {
39053 PyThreadState* __tstate = wxPyBeginAllowThreads();
39054 result = (bool)(arg1)->BeginContextHelp(arg2);
39055 wxPyEndAllowThreads(__tstate);
39056 if (PyErr_Occurred()) SWIG_fail;
39057 }
39058 {
39059 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39060 }
39061 return resultobj;
39062 fail:
39063 return NULL;
39064 }
39065
39066
39067 SWIGINTERN PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39068 PyObject *resultobj = 0;
39069 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39070 bool result;
39071 void *argp1 = 0 ;
39072 int res1 = 0 ;
39073 PyObject *swig_obj[1] ;
39074
39075 if (!args) SWIG_fail;
39076 swig_obj[0] = args;
39077 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39078 if (!SWIG_IsOK(res1)) {
39079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_EndContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39080 }
39081 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39082 {
39083 PyThreadState* __tstate = wxPyBeginAllowThreads();
39084 result = (bool)(arg1)->EndContextHelp();
39085 wxPyEndAllowThreads(__tstate);
39086 if (PyErr_Occurred()) SWIG_fail;
39087 }
39088 {
39089 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39090 }
39091 return resultobj;
39092 fail:
39093 return NULL;
39094 }
39095
39096
39097 SWIGINTERN PyObject *ContextHelp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39098 PyObject *obj;
39099 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39100 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelp, SWIG_NewClientData(obj));
39101 return SWIG_Py_Void();
39102 }
39103
39104 SWIGINTERN PyObject *ContextHelp_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39105 return SWIG_Python_InitShadowInstance(args);
39106 }
39107
39108 SWIGINTERN PyObject *_wrap_new_ContextHelpButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39109 PyObject *resultobj = 0;
39110 wxWindow *arg1 = (wxWindow *) 0 ;
39111 int arg2 = (int) wxID_CONTEXT_HELP ;
39112 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39113 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39114 wxSize const &arg4_defvalue = wxDefaultSize ;
39115 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
39116 long arg5 = (long) wxBU_AUTODRAW ;
39117 wxContextHelpButton *result = 0 ;
39118 void *argp1 = 0 ;
39119 int res1 = 0 ;
39120 int val2 ;
39121 int ecode2 = 0 ;
39122 wxPoint temp3 ;
39123 wxSize temp4 ;
39124 long val5 ;
39125 int ecode5 = 0 ;
39126 PyObject * obj0 = 0 ;
39127 PyObject * obj1 = 0 ;
39128 PyObject * obj2 = 0 ;
39129 PyObject * obj3 = 0 ;
39130 PyObject * obj4 = 0 ;
39131 char * kwnames[] = {
39132 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
39133 };
39134
39135 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39136 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39137 if (!SWIG_IsOK(res1)) {
39138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelpButton" "', expected argument " "1"" of type '" "wxWindow *""'");
39139 }
39140 arg1 = reinterpret_cast< wxWindow * >(argp1);
39141 if (obj1) {
39142 ecode2 = SWIG_AsVal_int(obj1, &val2);
39143 if (!SWIG_IsOK(ecode2)) {
39144 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelpButton" "', expected argument " "2"" of type '" "int""'");
39145 }
39146 arg2 = static_cast< int >(val2);
39147 }
39148 if (obj2) {
39149 {
39150 arg3 = &temp3;
39151 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
39152 }
39153 }
39154 if (obj3) {
39155 {
39156 arg4 = &temp4;
39157 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
39158 }
39159 }
39160 if (obj4) {
39161 ecode5 = SWIG_AsVal_long(obj4, &val5);
39162 if (!SWIG_IsOK(ecode5)) {
39163 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ContextHelpButton" "', expected argument " "5"" of type '" "long""'");
39164 }
39165 arg5 = static_cast< long >(val5);
39166 }
39167 {
39168 if (!wxPyCheckForApp()) SWIG_fail;
39169 PyThreadState* __tstate = wxPyBeginAllowThreads();
39170 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
39171 wxPyEndAllowThreads(__tstate);
39172 if (PyErr_Occurred()) SWIG_fail;
39173 }
39174 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelpButton, SWIG_POINTER_NEW | 0 );
39175 return resultobj;
39176 fail:
39177 return NULL;
39178 }
39179
39180
39181 SWIGINTERN PyObject *ContextHelpButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39182 PyObject *obj;
39183 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39184 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelpButton, SWIG_NewClientData(obj));
39185 return SWIG_Py_Void();
39186 }
39187
39188 SWIGINTERN PyObject *ContextHelpButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39189 return SWIG_Python_InitShadowInstance(args);
39190 }
39191
39192 SWIGINTERN PyObject *_wrap_delete_HelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39193 PyObject *resultobj = 0;
39194 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39195 void *argp1 = 0 ;
39196 int res1 = 0 ;
39197 PyObject *swig_obj[1] ;
39198
39199 if (!args) SWIG_fail;
39200 swig_obj[0] = args;
39201 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
39202 if (!SWIG_IsOK(res1)) {
39203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HelpProvider" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39204 }
39205 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39206 {
39207 PyThreadState* __tstate = wxPyBeginAllowThreads();
39208 delete arg1;
39209
39210 wxPyEndAllowThreads(__tstate);
39211 if (PyErr_Occurred()) SWIG_fail;
39212 }
39213 resultobj = SWIG_Py_Void();
39214 return resultobj;
39215 fail:
39216 return NULL;
39217 }
39218
39219
39220 SWIGINTERN PyObject *_wrap_HelpProvider_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39221 PyObject *resultobj = 0;
39222 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39223 wxHelpProvider *result = 0 ;
39224 int res1 = 0 ;
39225 PyObject * obj0 = 0 ;
39226 char * kwnames[] = {
39227 (char *) "helpProvider", NULL
39228 };
39229
39230 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) SWIG_fail;
39231 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
39232 if (!SWIG_IsOK(res1)) {
39233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Set" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39234 }
39235 {
39236 PyThreadState* __tstate = wxPyBeginAllowThreads();
39237 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
39238 wxPyEndAllowThreads(__tstate);
39239 if (PyErr_Occurred()) SWIG_fail;
39240 }
39241 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_OWN | 0 );
39242 return resultobj;
39243 fail:
39244 return NULL;
39245 }
39246
39247
39248 SWIGINTERN PyObject *_wrap_HelpProvider_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39249 PyObject *resultobj = 0;
39250 wxHelpProvider *result = 0 ;
39251
39252 if (!SWIG_Python_UnpackTuple(args,"HelpProvider_Get",0,0,0)) SWIG_fail;
39253 {
39254 PyThreadState* __tstate = wxPyBeginAllowThreads();
39255 result = (wxHelpProvider *)wxHelpProvider::Get();
39256 wxPyEndAllowThreads(__tstate);
39257 if (PyErr_Occurred()) SWIG_fail;
39258 }
39259 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39260 return resultobj;
39261 fail:
39262 return NULL;
39263 }
39264
39265
39266 SWIGINTERN PyObject *_wrap_HelpProvider_GetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39267 PyObject *resultobj = 0;
39268 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39269 wxWindow *arg2 = (wxWindow *) 0 ;
39270 wxString result;
39271 void *argp1 = 0 ;
39272 int res1 = 0 ;
39273 void *argp2 = 0 ;
39274 int res2 = 0 ;
39275 PyObject * obj0 = 0 ;
39276 PyObject * obj1 = 0 ;
39277 char * kwnames[] = {
39278 (char *) "self",(char *) "window", NULL
39279 };
39280
39281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39283 if (!SWIG_IsOK(res1)) {
39284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_GetHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39285 }
39286 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39287 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39288 if (!SWIG_IsOK(res2)) {
39289 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_GetHelp" "', expected argument " "2"" of type '" "wxWindow const *""'");
39290 }
39291 arg2 = reinterpret_cast< wxWindow * >(argp2);
39292 {
39293 PyThreadState* __tstate = wxPyBeginAllowThreads();
39294 result = (arg1)->GetHelp((wxWindow const *)arg2);
39295 wxPyEndAllowThreads(__tstate);
39296 if (PyErr_Occurred()) SWIG_fail;
39297 }
39298 {
39299 #if wxUSE_UNICODE
39300 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
39301 #else
39302 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
39303 #endif
39304 }
39305 return resultobj;
39306 fail:
39307 return NULL;
39308 }
39309
39310
39311 SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39312 PyObject *resultobj = 0;
39313 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39314 wxWindow *arg2 = (wxWindow *) 0 ;
39315 bool result;
39316 void *argp1 = 0 ;
39317 int res1 = 0 ;
39318 void *argp2 = 0 ;
39319 int res2 = 0 ;
39320 PyObject * obj0 = 0 ;
39321 PyObject * obj1 = 0 ;
39322 char * kwnames[] = {
39323 (char *) "self",(char *) "window", NULL
39324 };
39325
39326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39328 if (!SWIG_IsOK(res1)) {
39329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39330 }
39331 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39332 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39333 if (!SWIG_IsOK(res2)) {
39334 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39335 }
39336 arg2 = reinterpret_cast< wxWindow * >(argp2);
39337 {
39338 PyThreadState* __tstate = wxPyBeginAllowThreads();
39339 result = (bool)(arg1)->ShowHelp(arg2);
39340 wxPyEndAllowThreads(__tstate);
39341 if (PyErr_Occurred()) SWIG_fail;
39342 }
39343 {
39344 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39345 }
39346 return resultobj;
39347 fail:
39348 return NULL;
39349 }
39350
39351
39352 SWIGINTERN PyObject *_wrap_HelpProvider_AddHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39353 PyObject *resultobj = 0;
39354 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39355 wxWindow *arg2 = (wxWindow *) 0 ;
39356 wxString *arg3 = 0 ;
39357 void *argp1 = 0 ;
39358 int res1 = 0 ;
39359 void *argp2 = 0 ;
39360 int res2 = 0 ;
39361 bool temp3 = false ;
39362 PyObject * obj0 = 0 ;
39363 PyObject * obj1 = 0 ;
39364 PyObject * obj2 = 0 ;
39365 char * kwnames[] = {
39366 (char *) "self",(char *) "window",(char *) "text", NULL
39367 };
39368
39369 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39370 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39371 if (!SWIG_IsOK(res1)) {
39372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39373 }
39374 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39375 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39376 if (!SWIG_IsOK(res2)) {
39377 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_AddHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39378 }
39379 arg2 = reinterpret_cast< wxWindow * >(argp2);
39380 {
39381 arg3 = wxString_in_helper(obj2);
39382 if (arg3 == NULL) SWIG_fail;
39383 temp3 = true;
39384 }
39385 {
39386 PyThreadState* __tstate = wxPyBeginAllowThreads();
39387 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
39388 wxPyEndAllowThreads(__tstate);
39389 if (PyErr_Occurred()) SWIG_fail;
39390 }
39391 resultobj = SWIG_Py_Void();
39392 {
39393 if (temp3)
39394 delete arg3;
39395 }
39396 return resultobj;
39397 fail:
39398 {
39399 if (temp3)
39400 delete arg3;
39401 }
39402 return NULL;
39403 }
39404
39405
39406 SWIGINTERN PyObject *_wrap_HelpProvider_AddHelpById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39407 PyObject *resultobj = 0;
39408 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39409 int arg2 ;
39410 wxString *arg3 = 0 ;
39411 void *argp1 = 0 ;
39412 int res1 = 0 ;
39413 int val2 ;
39414 int ecode2 = 0 ;
39415 bool temp3 = false ;
39416 PyObject * obj0 = 0 ;
39417 PyObject * obj1 = 0 ;
39418 PyObject * obj2 = 0 ;
39419 char * kwnames[] = {
39420 (char *) "self",(char *) "id",(char *) "text", NULL
39421 };
39422
39423 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39424 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39425 if (!SWIG_IsOK(res1)) {
39426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelpById" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39427 }
39428 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39429 ecode2 = SWIG_AsVal_int(obj1, &val2);
39430 if (!SWIG_IsOK(ecode2)) {
39431 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpProvider_AddHelpById" "', expected argument " "2"" of type '" "int""'");
39432 }
39433 arg2 = static_cast< int >(val2);
39434 {
39435 arg3 = wxString_in_helper(obj2);
39436 if (arg3 == NULL) SWIG_fail;
39437 temp3 = true;
39438 }
39439 {
39440 PyThreadState* __tstate = wxPyBeginAllowThreads();
39441 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
39442 wxPyEndAllowThreads(__tstate);
39443 if (PyErr_Occurred()) SWIG_fail;
39444 }
39445 resultobj = SWIG_Py_Void();
39446 {
39447 if (temp3)
39448 delete arg3;
39449 }
39450 return resultobj;
39451 fail:
39452 {
39453 if (temp3)
39454 delete arg3;
39455 }
39456 return NULL;
39457 }
39458
39459
39460 SWIGINTERN PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39461 PyObject *resultobj = 0;
39462 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39463 wxWindow *arg2 = (wxWindow *) 0 ;
39464 void *argp1 = 0 ;
39465 int res1 = 0 ;
39466 void *argp2 = 0 ;
39467 int res2 = 0 ;
39468 PyObject * obj0 = 0 ;
39469 PyObject * obj1 = 0 ;
39470 char * kwnames[] = {
39471 (char *) "self",(char *) "window", NULL
39472 };
39473
39474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39475 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39476 if (!SWIG_IsOK(res1)) {
39477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39478 }
39479 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39480 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39481 if (!SWIG_IsOK(res2)) {
39482 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39483 }
39484 arg2 = reinterpret_cast< wxWindow * >(argp2);
39485 {
39486 PyThreadState* __tstate = wxPyBeginAllowThreads();
39487 (arg1)->RemoveHelp(arg2);
39488 wxPyEndAllowThreads(__tstate);
39489 if (PyErr_Occurred()) SWIG_fail;
39490 }
39491 resultobj = SWIG_Py_Void();
39492 return resultobj;
39493 fail:
39494 return NULL;
39495 }
39496
39497
39498 SWIGINTERN PyObject *_wrap_HelpProvider_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39499 PyObject *resultobj = 0;
39500 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39501 void *argp1 = 0 ;
39502 int res1 = 0 ;
39503 PyObject *swig_obj[1] ;
39504
39505 if (!args) SWIG_fail;
39506 swig_obj[0] = args;
39507 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39508 if (!SWIG_IsOK(res1)) {
39509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Destroy" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39510 }
39511 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39512 {
39513 PyThreadState* __tstate = wxPyBeginAllowThreads();
39514 wxHelpProvider_Destroy(arg1);
39515 wxPyEndAllowThreads(__tstate);
39516 if (PyErr_Occurred()) SWIG_fail;
39517 }
39518 resultobj = SWIG_Py_Void();
39519 return resultobj;
39520 fail:
39521 return NULL;
39522 }
39523
39524
39525 SWIGINTERN PyObject *HelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39526 PyObject *obj;
39527 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39528 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpProvider, SWIG_NewClientData(obj));
39529 return SWIG_Py_Void();
39530 }
39531
39532 SWIGINTERN PyObject *_wrap_new_SimpleHelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39533 PyObject *resultobj = 0;
39534 wxSimpleHelpProvider *result = 0 ;
39535
39536 if (!SWIG_Python_UnpackTuple(args,"new_SimpleHelpProvider",0,0,0)) SWIG_fail;
39537 {
39538 PyThreadState* __tstate = wxPyBeginAllowThreads();
39539 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
39540 wxPyEndAllowThreads(__tstate);
39541 if (PyErr_Occurred()) SWIG_fail;
39542 }
39543 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSimpleHelpProvider, SWIG_POINTER_NEW | 0 );
39544 return resultobj;
39545 fail:
39546 return NULL;
39547 }
39548
39549
39550 SWIGINTERN PyObject *SimpleHelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39551 PyObject *obj;
39552 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39553 SWIG_TypeNewClientData(SWIGTYPE_p_wxSimpleHelpProvider, SWIG_NewClientData(obj));
39554 return SWIG_Py_Void();
39555 }
39556
39557 SWIGINTERN PyObject *SimpleHelpProvider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39558 return SWIG_Python_InitShadowInstance(args);
39559 }
39560
39561 SWIGINTERN PyObject *_wrap_new_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39562 PyObject *resultobj = 0;
39563 wxBitmap *arg1 = 0 ;
39564 wxCursor const &arg2_defvalue = wxNullCursor ;
39565 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
39566 wxGenericDragImage *result = 0 ;
39567 void *argp1 = 0 ;
39568 int res1 = 0 ;
39569 void *argp2 = 0 ;
39570 int res2 = 0 ;
39571 PyObject * obj0 = 0 ;
39572 PyObject * obj1 = 0 ;
39573 char * kwnames[] = {
39574 (char *) "image",(char *) "cursor", NULL
39575 };
39576
39577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) SWIG_fail;
39578 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
39579 if (!SWIG_IsOK(res1)) {
39580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
39581 }
39582 if (!argp1) {
39583 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
39584 }
39585 arg1 = reinterpret_cast< wxBitmap * >(argp1);
39586 if (obj1) {
39587 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
39588 if (!SWIG_IsOK(res2)) {
39589 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
39590 }
39591 if (!argp2) {
39592 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
39593 }
39594 arg2 = reinterpret_cast< wxCursor * >(argp2);
39595 }
39596 {
39597 if (!wxPyCheckForApp()) SWIG_fail;
39598 PyThreadState* __tstate = wxPyBeginAllowThreads();
39599 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
39600 wxPyEndAllowThreads(__tstate);
39601 if (PyErr_Occurred()) SWIG_fail;
39602 }
39603 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_NEW | 0 );
39604 return resultobj;
39605 fail:
39606 return NULL;
39607 }
39608
39609
39610 SWIGINTERN PyObject *_wrap_new_DragIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39611 PyObject *resultobj = 0;
39612 wxIcon *arg1 = 0 ;
39613 wxCursor const &arg2_defvalue = wxNullCursor ;
39614 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
39615 wxGenericDragImage *result = 0 ;
39616 void *argp1 = 0 ;
39617 int res1 = 0 ;
39618 void *argp2 = 0 ;
39619 int res2 = 0 ;
39620 PyObject * obj0 = 0 ;
39621 PyObject * obj1 = 0 ;
39622 char * kwnames[] = {
39623 (char *) "image",(char *) "cursor", NULL
39624 };
39625
39626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) SWIG_fail;
39627 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
39628 if (!SWIG_IsOK(res1)) {
39629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
39630 }
39631 if (!argp1) {
39632 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
39633 }
39634 arg1 = reinterpret_cast< wxIcon * >(argp1);
39635 if (obj1) {
39636 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
39637 if (!SWIG_IsOK(res2)) {
39638 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
39639 }
39640 if (!argp2) {
39641 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
39642 }
39643 arg2 = reinterpret_cast< wxCursor * >(argp2);
39644 }
39645 {
39646 if (!wxPyCheckForApp()) SWIG_fail;
39647 PyThreadState* __tstate = wxPyBeginAllowThreads();
39648 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
39649 wxPyEndAllowThreads(__tstate);
39650 if (PyErr_Occurred()) SWIG_fail;
39651 }
39652 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
39653 return resultobj;
39654 fail:
39655 return NULL;
39656 }
39657
39658
39659 SWIGINTERN PyObject *_wrap_new_DragString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39660 PyObject *resultobj = 0;
39661 wxString *arg1 = 0 ;
39662 wxCursor const &arg2_defvalue = wxNullCursor ;
39663 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
39664 wxGenericDragImage *result = 0 ;
39665 bool temp1 = false ;
39666 void *argp2 = 0 ;
39667 int res2 = 0 ;
39668 PyObject * obj0 = 0 ;
39669 PyObject * obj1 = 0 ;
39670 char * kwnames[] = {
39671 (char *) "str",(char *) "cursor", NULL
39672 };
39673
39674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) SWIG_fail;
39675 {
39676 arg1 = wxString_in_helper(obj0);
39677 if (arg1 == NULL) SWIG_fail;
39678 temp1 = true;
39679 }
39680 if (obj1) {
39681 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
39682 if (!SWIG_IsOK(res2)) {
39683 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
39684 }
39685 if (!argp2) {
39686 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
39687 }
39688 arg2 = reinterpret_cast< wxCursor * >(argp2);
39689 }
39690 {
39691 if (!wxPyCheckForApp()) SWIG_fail;
39692 PyThreadState* __tstate = wxPyBeginAllowThreads();
39693 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
39694 wxPyEndAllowThreads(__tstate);
39695 if (PyErr_Occurred()) SWIG_fail;
39696 }
39697 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
39698 {
39699 if (temp1)
39700 delete arg1;
39701 }
39702 return resultobj;
39703 fail:
39704 {
39705 if (temp1)
39706 delete arg1;
39707 }
39708 return NULL;
39709 }
39710
39711
39712 SWIGINTERN PyObject *_wrap_new_DragTreeItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39713 PyObject *resultobj = 0;
39714 wxPyTreeCtrl *arg1 = 0 ;
39715 wxTreeItemId *arg2 = 0 ;
39716 wxGenericDragImage *result = 0 ;
39717 void *argp1 = 0 ;
39718 int res1 = 0 ;
39719 void *argp2 = 0 ;
39720 int res2 = 0 ;
39721 PyObject * obj0 = 0 ;
39722 PyObject * obj1 = 0 ;
39723 char * kwnames[] = {
39724 (char *) "treeCtrl",(char *) "id", NULL
39725 };
39726
39727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) SWIG_fail;
39728 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyTreeCtrl, 0 | 0);
39729 if (!SWIG_IsOK(res1)) {
39730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
39731 }
39732 if (!argp1) {
39733 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
39734 }
39735 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
39736 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 );
39737 if (!SWIG_IsOK(res2)) {
39738 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
39739 }
39740 if (!argp2) {
39741 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
39742 }
39743 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
39744 {
39745 if (!wxPyCheckForApp()) SWIG_fail;
39746 PyThreadState* __tstate = wxPyBeginAllowThreads();
39747 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
39748 wxPyEndAllowThreads(__tstate);
39749 if (PyErr_Occurred()) SWIG_fail;
39750 }
39751 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
39752 return resultobj;
39753 fail:
39754 return NULL;
39755 }
39756
39757
39758 SWIGINTERN PyObject *_wrap_new_DragListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39759 PyObject *resultobj = 0;
39760 wxPyListCtrl *arg1 = 0 ;
39761 long arg2 ;
39762 wxGenericDragImage *result = 0 ;
39763 void *argp1 = 0 ;
39764 int res1 = 0 ;
39765 long val2 ;
39766 int ecode2 = 0 ;
39767 PyObject * obj0 = 0 ;
39768 PyObject * obj1 = 0 ;
39769 char * kwnames[] = {
39770 (char *) "listCtrl",(char *) "id", NULL
39771 };
39772
39773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) SWIG_fail;
39774 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyListCtrl, 0 | 0);
39775 if (!SWIG_IsOK(res1)) {
39776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
39777 }
39778 if (!argp1) {
39779 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
39780 }
39781 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
39782 ecode2 = SWIG_AsVal_long(obj1, &val2);
39783 if (!SWIG_IsOK(ecode2)) {
39784 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DragListItem" "', expected argument " "2"" of type '" "long""'");
39785 }
39786 arg2 = static_cast< long >(val2);
39787 {
39788 if (!wxPyCheckForApp()) SWIG_fail;
39789 PyThreadState* __tstate = wxPyBeginAllowThreads();
39790 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
39791 wxPyEndAllowThreads(__tstate);
39792 if (PyErr_Occurred()) SWIG_fail;
39793 }
39794 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
39795 return resultobj;
39796 fail:
39797 return NULL;
39798 }
39799
39800
39801 SWIGINTERN PyObject *_wrap_delete_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39802 PyObject *resultobj = 0;
39803 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
39804 void *argp1 = 0 ;
39805 int res1 = 0 ;
39806 PyObject *swig_obj[1] ;
39807
39808 if (!args) SWIG_fail;
39809 swig_obj[0] = args;
39810 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_DISOWN | 0 );
39811 if (!SWIG_IsOK(res1)) {
39812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DragImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
39813 }
39814 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
39815 {
39816 PyThreadState* __tstate = wxPyBeginAllowThreads();
39817 delete arg1;
39818
39819 wxPyEndAllowThreads(__tstate);
39820 if (PyErr_Occurred()) SWIG_fail;
39821 }
39822 resultobj = SWIG_Py_Void();
39823 return resultobj;
39824 fail:
39825 return NULL;
39826 }
39827
39828
39829 SWIGINTERN PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39830 PyObject *resultobj = 0;
39831 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
39832 wxBitmap *arg2 = (wxBitmap *) 0 ;
39833 void *argp1 = 0 ;
39834 int res1 = 0 ;
39835 void *argp2 = 0 ;
39836 int res2 = 0 ;
39837 PyObject * obj0 = 0 ;
39838 PyObject * obj1 = 0 ;
39839 char * kwnames[] = {
39840 (char *) "self",(char *) "bitmap", NULL
39841 };
39842
39843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
39844 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
39845 if (!SWIG_IsOK(res1)) {
39846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
39847 }
39848 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
39849 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
39850 if (!SWIG_IsOK(res2)) {
39851 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "2"" of type '" "wxBitmap *""'");
39852 }
39853 arg2 = reinterpret_cast< wxBitmap * >(argp2);
39854 {
39855 PyThreadState* __tstate = wxPyBeginAllowThreads();
39856 (arg1)->SetBackingBitmap(arg2);
39857 wxPyEndAllowThreads(__tstate);
39858 if (PyErr_Occurred()) SWIG_fail;
39859 }
39860 resultobj = SWIG_Py_Void();
39861 return resultobj;
39862 fail:
39863 return NULL;
39864 }
39865
39866
39867 SWIGINTERN PyObject *_wrap_DragImage_BeginDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39868 PyObject *resultobj = 0;
39869 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
39870 wxPoint *arg2 = 0 ;
39871 wxWindow *arg3 = (wxWindow *) 0 ;
39872 bool arg4 = (bool) false ;
39873 wxRect *arg5 = (wxRect *) NULL ;
39874 bool result;
39875 void *argp1 = 0 ;
39876 int res1 = 0 ;
39877 wxPoint temp2 ;
39878 void *argp3 = 0 ;
39879 int res3 = 0 ;
39880 bool val4 ;
39881 int ecode4 = 0 ;
39882 void *argp5 = 0 ;
39883 int res5 = 0 ;
39884 PyObject * obj0 = 0 ;
39885 PyObject * obj1 = 0 ;
39886 PyObject * obj2 = 0 ;
39887 PyObject * obj3 = 0 ;
39888 PyObject * obj4 = 0 ;
39889 char * kwnames[] = {
39890 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
39891 };
39892
39893 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39894 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
39895 if (!SWIG_IsOK(res1)) {
39896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
39897 }
39898 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
39899 {
39900 arg2 = &temp2;
39901 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39902 }
39903 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
39904 if (!SWIG_IsOK(res3)) {
39905 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDrag" "', expected argument " "3"" of type '" "wxWindow *""'");
39906 }
39907 arg3 = reinterpret_cast< wxWindow * >(argp3);
39908 if (obj3) {
39909 ecode4 = SWIG_AsVal_bool(obj3, &val4);
39910 if (!SWIG_IsOK(ecode4)) {
39911 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_BeginDrag" "', expected argument " "4"" of type '" "bool""'");
39912 }
39913 arg4 = static_cast< bool >(val4);
39914 }
39915 if (obj4) {
39916 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxRect, 0 | 0 );
39917 if (!SWIG_IsOK(res5)) {
39918 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DragImage_BeginDrag" "', expected argument " "5"" of type '" "wxRect *""'");
39919 }
39920 arg5 = reinterpret_cast< wxRect * >(argp5);
39921 }
39922 {
39923 PyThreadState* __tstate = wxPyBeginAllowThreads();
39924 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
39925 wxPyEndAllowThreads(__tstate);
39926 if (PyErr_Occurred()) SWIG_fail;
39927 }
39928 {
39929 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39930 }
39931 return resultobj;
39932 fail:
39933 return NULL;
39934 }
39935
39936
39937 SWIGINTERN PyObject *_wrap_DragImage_BeginDragBounded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39938 PyObject *resultobj = 0;
39939 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
39940 wxPoint *arg2 = 0 ;
39941 wxWindow *arg3 = (wxWindow *) 0 ;
39942 wxWindow *arg4 = (wxWindow *) 0 ;
39943 bool result;
39944 void *argp1 = 0 ;
39945 int res1 = 0 ;
39946 wxPoint temp2 ;
39947 void *argp3 = 0 ;
39948 int res3 = 0 ;
39949 void *argp4 = 0 ;
39950 int res4 = 0 ;
39951 PyObject * obj0 = 0 ;
39952 PyObject * obj1 = 0 ;
39953 PyObject * obj2 = 0 ;
39954 PyObject * obj3 = 0 ;
39955 char * kwnames[] = {
39956 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
39957 };
39958
39959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
39960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
39961 if (!SWIG_IsOK(res1)) {
39962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDragBounded" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
39963 }
39964 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
39965 {
39966 arg2 = &temp2;
39967 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39968 }
39969 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
39970 if (!SWIG_IsOK(res3)) {
39971 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDragBounded" "', expected argument " "3"" of type '" "wxWindow *""'");
39972 }
39973 arg3 = reinterpret_cast< wxWindow * >(argp3);
39974 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
39975 if (!SWIG_IsOK(res4)) {
39976 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DragImage_BeginDragBounded" "', expected argument " "4"" of type '" "wxWindow *""'");
39977 }
39978 arg4 = reinterpret_cast< wxWindow * >(argp4);
39979 {
39980 PyThreadState* __tstate = wxPyBeginAllowThreads();
39981 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
39982 wxPyEndAllowThreads(__tstate);
39983 if (PyErr_Occurred()) SWIG_fail;
39984 }
39985 {
39986 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39987 }
39988 return resultobj;
39989 fail:
39990 return NULL;
39991 }
39992
39993
39994 SWIGINTERN PyObject *_wrap_DragImage_EndDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39995 PyObject *resultobj = 0;
39996 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
39997 bool result;
39998 void *argp1 = 0 ;
39999 int res1 = 0 ;
40000 PyObject *swig_obj[1] ;
40001
40002 if (!args) SWIG_fail;
40003 swig_obj[0] = args;
40004 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40005 if (!SWIG_IsOK(res1)) {
40006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_EndDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40007 }
40008 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40009 {
40010 PyThreadState* __tstate = wxPyBeginAllowThreads();
40011 result = (bool)(arg1)->EndDrag();
40012 wxPyEndAllowThreads(__tstate);
40013 if (PyErr_Occurred()) SWIG_fail;
40014 }
40015 {
40016 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40017 }
40018 return resultobj;
40019 fail:
40020 return NULL;
40021 }
40022
40023
40024 SWIGINTERN PyObject *_wrap_DragImage_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40025 PyObject *resultobj = 0;
40026 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40027 wxPoint *arg2 = 0 ;
40028 bool result;
40029 void *argp1 = 0 ;
40030 int res1 = 0 ;
40031 wxPoint temp2 ;
40032 PyObject * obj0 = 0 ;
40033 PyObject * obj1 = 0 ;
40034 char * kwnames[] = {
40035 (char *) "self",(char *) "pt", NULL
40036 };
40037
40038 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) SWIG_fail;
40039 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40040 if (!SWIG_IsOK(res1)) {
40041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Move" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40042 }
40043 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40044 {
40045 arg2 = &temp2;
40046 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40047 }
40048 {
40049 PyThreadState* __tstate = wxPyBeginAllowThreads();
40050 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
40051 wxPyEndAllowThreads(__tstate);
40052 if (PyErr_Occurred()) SWIG_fail;
40053 }
40054 {
40055 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40056 }
40057 return resultobj;
40058 fail:
40059 return NULL;
40060 }
40061
40062
40063 SWIGINTERN PyObject *_wrap_DragImage_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40064 PyObject *resultobj = 0;
40065 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40066 bool result;
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, 0 | 0 );
40074 if (!SWIG_IsOK(res1)) {
40075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Show" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40076 }
40077 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40078 {
40079 PyThreadState* __tstate = wxPyBeginAllowThreads();
40080 result = (bool)(arg1)->Show();
40081 wxPyEndAllowThreads(__tstate);
40082 if (PyErr_Occurred()) SWIG_fail;
40083 }
40084 {
40085 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40086 }
40087 return resultobj;
40088 fail:
40089 return NULL;
40090 }
40091
40092
40093 SWIGINTERN PyObject *_wrap_DragImage_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40094 PyObject *resultobj = 0;
40095 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40096 bool result;
40097 void *argp1 = 0 ;
40098 int res1 = 0 ;
40099 PyObject *swig_obj[1] ;
40100
40101 if (!args) SWIG_fail;
40102 swig_obj[0] = args;
40103 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40104 if (!SWIG_IsOK(res1)) {
40105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Hide" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40106 }
40107 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40108 {
40109 PyThreadState* __tstate = wxPyBeginAllowThreads();
40110 result = (bool)(arg1)->Hide();
40111 wxPyEndAllowThreads(__tstate);
40112 if (PyErr_Occurred()) SWIG_fail;
40113 }
40114 {
40115 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40116 }
40117 return resultobj;
40118 fail:
40119 return NULL;
40120 }
40121
40122
40123 SWIGINTERN PyObject *_wrap_DragImage_GetImageRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40124 PyObject *resultobj = 0;
40125 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40126 wxPoint *arg2 = 0 ;
40127 wxRect result;
40128 void *argp1 = 0 ;
40129 int res1 = 0 ;
40130 wxPoint temp2 ;
40131 PyObject * obj0 = 0 ;
40132 PyObject * obj1 = 0 ;
40133 char * kwnames[] = {
40134 (char *) "self",(char *) "pos", NULL
40135 };
40136
40137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) SWIG_fail;
40138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40139 if (!SWIG_IsOK(res1)) {
40140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_GetImageRect" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40141 }
40142 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40143 {
40144 arg2 = &temp2;
40145 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40146 }
40147 {
40148 PyThreadState* __tstate = wxPyBeginAllowThreads();
40149 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
40150 wxPyEndAllowThreads(__tstate);
40151 if (PyErr_Occurred()) SWIG_fail;
40152 }
40153 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
40154 return resultobj;
40155 fail:
40156 return NULL;
40157 }
40158
40159
40160 SWIGINTERN PyObject *_wrap_DragImage_DoDrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40161 PyObject *resultobj = 0;
40162 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40163 wxDC *arg2 = 0 ;
40164 wxPoint *arg3 = 0 ;
40165 bool result;
40166 void *argp1 = 0 ;
40167 int res1 = 0 ;
40168 void *argp2 = 0 ;
40169 int res2 = 0 ;
40170 wxPoint temp3 ;
40171 PyObject * obj0 = 0 ;
40172 PyObject * obj1 = 0 ;
40173 PyObject * obj2 = 0 ;
40174 char * kwnames[] = {
40175 (char *) "self",(char *) "dc",(char *) "pos", NULL
40176 };
40177
40178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40180 if (!SWIG_IsOK(res1)) {
40181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_DoDrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40182 }
40183 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40184 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
40185 if (!SWIG_IsOK(res2)) {
40186 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
40187 }
40188 if (!argp2) {
40189 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
40190 }
40191 arg2 = reinterpret_cast< wxDC * >(argp2);
40192 {
40193 arg3 = &temp3;
40194 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40195 }
40196 {
40197 PyThreadState* __tstate = wxPyBeginAllowThreads();
40198 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
40199 wxPyEndAllowThreads(__tstate);
40200 if (PyErr_Occurred()) SWIG_fail;
40201 }
40202 {
40203 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40204 }
40205 return resultobj;
40206 fail:
40207 return NULL;
40208 }
40209
40210
40211 SWIGINTERN PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40212 PyObject *resultobj = 0;
40213 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40214 wxDC *arg2 = 0 ;
40215 wxMemoryDC *arg3 = 0 ;
40216 wxRect *arg4 = 0 ;
40217 wxRect *arg5 = 0 ;
40218 bool result;
40219 void *argp1 = 0 ;
40220 int res1 = 0 ;
40221 void *argp2 = 0 ;
40222 int res2 = 0 ;
40223 void *argp3 = 0 ;
40224 int res3 = 0 ;
40225 wxRect temp4 ;
40226 wxRect temp5 ;
40227 PyObject * obj0 = 0 ;
40228 PyObject * obj1 = 0 ;
40229 PyObject * obj2 = 0 ;
40230 PyObject * obj3 = 0 ;
40231 PyObject * obj4 = 0 ;
40232 char * kwnames[] = {
40233 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
40234 };
40235
40236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40238 if (!SWIG_IsOK(res1)) {
40239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40240 }
40241 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40242 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
40243 if (!SWIG_IsOK(res2)) {
40244 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
40245 }
40246 if (!argp2) {
40247 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
40248 }
40249 arg2 = reinterpret_cast< wxDC * >(argp2);
40250 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxMemoryDC, 0 );
40251 if (!SWIG_IsOK(res3)) {
40252 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
40253 }
40254 if (!argp3) {
40255 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
40256 }
40257 arg3 = reinterpret_cast< wxMemoryDC * >(argp3);
40258 {
40259 arg4 = &temp4;
40260 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
40261 }
40262 {
40263 arg5 = &temp5;
40264 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
40265 }
40266 {
40267 PyThreadState* __tstate = wxPyBeginAllowThreads();
40268 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
40269 wxPyEndAllowThreads(__tstate);
40270 if (PyErr_Occurred()) SWIG_fail;
40271 }
40272 {
40273 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40274 }
40275 return resultobj;
40276 fail:
40277 return NULL;
40278 }
40279
40280
40281 SWIGINTERN PyObject *_wrap_DragImage_RedrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40282 PyObject *resultobj = 0;
40283 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40284 wxPoint *arg2 = 0 ;
40285 wxPoint *arg3 = 0 ;
40286 bool arg4 ;
40287 bool arg5 ;
40288 bool result;
40289 void *argp1 = 0 ;
40290 int res1 = 0 ;
40291 wxPoint temp2 ;
40292 wxPoint temp3 ;
40293 bool val4 ;
40294 int ecode4 = 0 ;
40295 bool val5 ;
40296 int ecode5 = 0 ;
40297 PyObject * obj0 = 0 ;
40298 PyObject * obj1 = 0 ;
40299 PyObject * obj2 = 0 ;
40300 PyObject * obj3 = 0 ;
40301 PyObject * obj4 = 0 ;
40302 char * kwnames[] = {
40303 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
40304 };
40305
40306 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40307 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40308 if (!SWIG_IsOK(res1)) {
40309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_RedrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40310 }
40311 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40312 {
40313 arg2 = &temp2;
40314 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40315 }
40316 {
40317 arg3 = &temp3;
40318 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40319 }
40320 ecode4 = SWIG_AsVal_bool(obj3, &val4);
40321 if (!SWIG_IsOK(ecode4)) {
40322 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_RedrawImage" "', expected argument " "4"" of type '" "bool""'");
40323 }
40324 arg4 = static_cast< bool >(val4);
40325 ecode5 = SWIG_AsVal_bool(obj4, &val5);
40326 if (!SWIG_IsOK(ecode5)) {
40327 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DragImage_RedrawImage" "', expected argument " "5"" of type '" "bool""'");
40328 }
40329 arg5 = static_cast< bool >(val5);
40330 {
40331 PyThreadState* __tstate = wxPyBeginAllowThreads();
40332 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
40333 wxPyEndAllowThreads(__tstate);
40334 if (PyErr_Occurred()) SWIG_fail;
40335 }
40336 {
40337 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40338 }
40339 return resultobj;
40340 fail:
40341 return NULL;
40342 }
40343
40344
40345 SWIGINTERN PyObject *DragImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40346 PyObject *obj;
40347 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40348 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDragImage, SWIG_NewClientData(obj));
40349 return SWIG_Py_Void();
40350 }
40351
40352 SWIGINTERN PyObject *DragImage_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40353 return SWIG_Python_InitShadowInstance(args);
40354 }
40355
40356 SWIGINTERN int DatePickerCtrlNameStr_set(PyObject *) {
40357 SWIG_Error(SWIG_AttributeError,"Variable DatePickerCtrlNameStr is read-only.");
40358 return 1;
40359 }
40360
40361
40362 SWIGINTERN PyObject *DatePickerCtrlNameStr_get(void) {
40363 PyObject *pyobj = 0;
40364
40365 {
40366 #if wxUSE_UNICODE
40367 pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
40368 #else
40369 pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
40370 #endif
40371 }
40372 return pyobj;
40373 }
40374
40375
40376 SWIGINTERN PyObject *_wrap_new_DatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40377 PyObject *resultobj = 0;
40378 wxWindow *arg1 = (wxWindow *) 0 ;
40379 int arg2 = (int) -1 ;
40380 wxDateTime const &arg3_defvalue = wxDefaultDateTime ;
40381 wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ;
40382 wxPoint const &arg4_defvalue = wxDefaultPosition ;
40383 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
40384 wxSize const &arg5_defvalue = wxDefaultSize ;
40385 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
40386 long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
40387 wxValidator const &arg7_defvalue = wxDefaultValidator ;
40388 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
40389 wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ;
40390 wxString *arg8 = (wxString *) &arg8_defvalue ;
40391 wxDatePickerCtrl *result = 0 ;
40392 void *argp1 = 0 ;
40393 int res1 = 0 ;
40394 int val2 ;
40395 int ecode2 = 0 ;
40396 void *argp3 = 0 ;
40397 int res3 = 0 ;
40398 wxPoint temp4 ;
40399 wxSize temp5 ;
40400 long val6 ;
40401 int ecode6 = 0 ;
40402 void *argp7 = 0 ;
40403 int res7 = 0 ;
40404 bool temp8 = false ;
40405 PyObject * obj0 = 0 ;
40406 PyObject * obj1 = 0 ;
40407 PyObject * obj2 = 0 ;
40408 PyObject * obj3 = 0 ;
40409 PyObject * obj4 = 0 ;
40410 PyObject * obj5 = 0 ;
40411 PyObject * obj6 = 0 ;
40412 PyObject * obj7 = 0 ;
40413 char * kwnames[] = {
40414 (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
40415 };
40416
40417 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
40418 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40419 if (!SWIG_IsOK(res1)) {
40420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
40421 }
40422 arg1 = reinterpret_cast< wxWindow * >(argp1);
40423 if (obj1) {
40424 ecode2 = SWIG_AsVal_int(obj1, &val2);
40425 if (!SWIG_IsOK(ecode2)) {
40426 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatePickerCtrl" "', expected argument " "2"" of type '" "int""'");
40427 }
40428 arg2 = static_cast< int >(val2);
40429 }
40430 if (obj2) {
40431 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
40432 if (!SWIG_IsOK(res3)) {
40433 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
40434 }
40435 if (!argp3) {
40436 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
40437 }
40438 arg3 = reinterpret_cast< wxDateTime * >(argp3);
40439 }
40440 if (obj3) {
40441 {
40442 arg4 = &temp4;
40443 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
40444 }
40445 }
40446 if (obj4) {
40447 {
40448 arg5 = &temp5;
40449 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
40450 }
40451 }
40452 if (obj5) {
40453 ecode6 = SWIG_AsVal_long(obj5, &val6);
40454 if (!SWIG_IsOK(ecode6)) {
40455 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DatePickerCtrl" "', expected argument " "6"" of type '" "long""'");
40456 }
40457 arg6 = static_cast< long >(val6);
40458 }
40459 if (obj6) {
40460 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
40461 if (!SWIG_IsOK(res7)) {
40462 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
40463 }
40464 if (!argp7) {
40465 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
40466 }
40467 arg7 = reinterpret_cast< wxValidator * >(argp7);
40468 }
40469 if (obj7) {
40470 {
40471 arg8 = wxString_in_helper(obj7);
40472 if (arg8 == NULL) SWIG_fail;
40473 temp8 = true;
40474 }
40475 }
40476 {
40477 if (!wxPyCheckForApp()) SWIG_fail;
40478 PyThreadState* __tstate = wxPyBeginAllowThreads();
40479 result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
40480 wxPyEndAllowThreads(__tstate);
40481 if (PyErr_Occurred()) SWIG_fail;
40482 }
40483 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_NEW | 0 );
40484 {
40485 if (temp8)
40486 delete arg8;
40487 }
40488 return resultobj;
40489 fail:
40490 {
40491 if (temp8)
40492 delete arg8;
40493 }
40494 return NULL;
40495 }
40496
40497
40498 SWIGINTERN PyObject *_wrap_new_PreDatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40499 PyObject *resultobj = 0;
40500 wxDatePickerCtrl *result = 0 ;
40501
40502 if (!SWIG_Python_UnpackTuple(args,"new_PreDatePickerCtrl",0,0,0)) SWIG_fail;
40503 {
40504 if (!wxPyCheckForApp()) SWIG_fail;
40505 PyThreadState* __tstate = wxPyBeginAllowThreads();
40506 result = (wxDatePickerCtrl *)new wxDatePickerCtrl();
40507 wxPyEndAllowThreads(__tstate);
40508 if (PyErr_Occurred()) SWIG_fail;
40509 }
40510 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_OWN | 0 );
40511 return resultobj;
40512 fail:
40513 return NULL;
40514 }
40515
40516
40517 SWIGINTERN PyObject *_wrap_DatePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40518 PyObject *resultobj = 0;
40519 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40520 wxWindow *arg2 = (wxWindow *) 0 ;
40521 int arg3 = (int) -1 ;
40522 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
40523 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
40524 wxPoint const &arg5_defvalue = wxDefaultPosition ;
40525 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
40526 wxSize const &arg6_defvalue = wxDefaultSize ;
40527 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
40528 long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
40529 wxValidator const &arg8_defvalue = wxDefaultValidator ;
40530 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
40531 wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ;
40532 wxString *arg9 = (wxString *) &arg9_defvalue ;
40533 bool result;
40534 void *argp1 = 0 ;
40535 int res1 = 0 ;
40536 void *argp2 = 0 ;
40537 int res2 = 0 ;
40538 int val3 ;
40539 int ecode3 = 0 ;
40540 void *argp4 = 0 ;
40541 int res4 = 0 ;
40542 wxPoint temp5 ;
40543 wxSize temp6 ;
40544 long val7 ;
40545 int ecode7 = 0 ;
40546 void *argp8 = 0 ;
40547 int res8 = 0 ;
40548 bool temp9 = false ;
40549 PyObject * obj0 = 0 ;
40550 PyObject * obj1 = 0 ;
40551 PyObject * obj2 = 0 ;
40552 PyObject * obj3 = 0 ;
40553 PyObject * obj4 = 0 ;
40554 PyObject * obj5 = 0 ;
40555 PyObject * obj6 = 0 ;
40556 PyObject * obj7 = 0 ;
40557 PyObject * obj8 = 0 ;
40558 char * kwnames[] = {
40559 (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
40560 };
40561
40562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
40563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40564 if (!SWIG_IsOK(res1)) {
40565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_Create" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
40566 }
40567 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40568 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40569 if (!SWIG_IsOK(res2)) {
40570 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
40571 }
40572 arg2 = reinterpret_cast< wxWindow * >(argp2);
40573 if (obj2) {
40574 ecode3 = SWIG_AsVal_int(obj2, &val3);
40575 if (!SWIG_IsOK(ecode3)) {
40576 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DatePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
40577 }
40578 arg3 = static_cast< int >(val3);
40579 }
40580 if (obj3) {
40581 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDateTime, 0 | 0);
40582 if (!SWIG_IsOK(res4)) {
40583 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
40584 }
40585 if (!argp4) {
40586 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
40587 }
40588 arg4 = reinterpret_cast< wxDateTime * >(argp4);
40589 }
40590 if (obj4) {
40591 {
40592 arg5 = &temp5;
40593 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
40594 }
40595 }
40596 if (obj5) {
40597 {
40598 arg6 = &temp6;
40599 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
40600 }
40601 }
40602 if (obj6) {
40603 ecode7 = SWIG_AsVal_long(obj6, &val7);
40604 if (!SWIG_IsOK(ecode7)) {
40605 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DatePickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
40606 }
40607 arg7 = static_cast< long >(val7);
40608 }
40609 if (obj7) {
40610 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
40611 if (!SWIG_IsOK(res8)) {
40612 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
40613 }
40614 if (!argp8) {
40615 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
40616 }
40617 arg8 = reinterpret_cast< wxValidator * >(argp8);
40618 }
40619 if (obj8) {
40620 {
40621 arg9 = wxString_in_helper(obj8);
40622 if (arg9 == NULL) SWIG_fail;
40623 temp9 = true;
40624 }
40625 }
40626 {
40627 PyThreadState* __tstate = wxPyBeginAllowThreads();
40628 result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
40629 wxPyEndAllowThreads(__tstate);
40630 if (PyErr_Occurred()) SWIG_fail;
40631 }
40632 {
40633 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40634 }
40635 {
40636 if (temp9)
40637 delete arg9;
40638 }
40639 return resultobj;
40640 fail:
40641 {
40642 if (temp9)
40643 delete arg9;
40644 }
40645 return NULL;
40646 }
40647
40648
40649 SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40650 PyObject *resultobj = 0;
40651 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40652 wxDateTime *arg2 = 0 ;
40653 void *argp1 = 0 ;
40654 int res1 = 0 ;
40655 void *argp2 = 0 ;
40656 int res2 = 0 ;
40657 PyObject * obj0 = 0 ;
40658 PyObject * obj1 = 0 ;
40659 char * kwnames[] = {
40660 (char *) "self",(char *) "dt", NULL
40661 };
40662
40663 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
40664 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40665 if (!SWIG_IsOK(res1)) {
40666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
40667 }
40668 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40669 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
40670 if (!SWIG_IsOK(res2)) {
40671 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
40672 }
40673 if (!argp2) {
40674 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
40675 }
40676 arg2 = reinterpret_cast< wxDateTime * >(argp2);
40677 {
40678 PyThreadState* __tstate = wxPyBeginAllowThreads();
40679 (arg1)->SetValue((wxDateTime const &)*arg2);
40680 wxPyEndAllowThreads(__tstate);
40681 if (PyErr_Occurred()) SWIG_fail;
40682 }
40683 resultobj = SWIG_Py_Void();
40684 return resultobj;
40685 fail:
40686 return NULL;
40687 }
40688
40689
40690 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40691 PyObject *resultobj = 0;
40692 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40693 wxDateTime result;
40694 void *argp1 = 0 ;
40695 int res1 = 0 ;
40696 PyObject *swig_obj[1] ;
40697
40698 if (!args) SWIG_fail;
40699 swig_obj[0] = args;
40700 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40701 if (!SWIG_IsOK(res1)) {
40702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl const *""'");
40703 }
40704 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40705 {
40706 PyThreadState* __tstate = wxPyBeginAllowThreads();
40707 result = ((wxDatePickerCtrl const *)arg1)->GetValue();
40708 wxPyEndAllowThreads(__tstate);
40709 if (PyErr_Occurred()) SWIG_fail;
40710 }
40711 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
40712 return resultobj;
40713 fail:
40714 return NULL;
40715 }
40716
40717
40718 SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40719 PyObject *resultobj = 0;
40720 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40721 wxDateTime *arg2 = 0 ;
40722 wxDateTime *arg3 = 0 ;
40723 void *argp1 = 0 ;
40724 int res1 = 0 ;
40725 void *argp2 = 0 ;
40726 int res2 = 0 ;
40727 void *argp3 = 0 ;
40728 int res3 = 0 ;
40729 PyObject * obj0 = 0 ;
40730 PyObject * obj1 = 0 ;
40731 PyObject * obj2 = 0 ;
40732 char * kwnames[] = {
40733 (char *) "self",(char *) "dt1",(char *) "dt2", NULL
40734 };
40735
40736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40738 if (!SWIG_IsOK(res1)) {
40739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
40740 }
40741 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40742 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
40743 if (!SWIG_IsOK(res2)) {
40744 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
40745 }
40746 if (!argp2) {
40747 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
40748 }
40749 arg2 = reinterpret_cast< wxDateTime * >(argp2);
40750 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
40751 if (!SWIG_IsOK(res3)) {
40752 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
40753 }
40754 if (!argp3) {
40755 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
40756 }
40757 arg3 = reinterpret_cast< wxDateTime * >(argp3);
40758 {
40759 PyThreadState* __tstate = wxPyBeginAllowThreads();
40760 (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
40761 wxPyEndAllowThreads(__tstate);
40762 if (PyErr_Occurred()) SWIG_fail;
40763 }
40764 resultobj = SWIG_Py_Void();
40765 return resultobj;
40766 fail:
40767 return NULL;
40768 }
40769
40770
40771 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40772 PyObject *resultobj = 0;
40773 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40774 wxDateTime result;
40775 void *argp1 = 0 ;
40776 int res1 = 0 ;
40777 PyObject *swig_obj[1] ;
40778
40779 if (!args) SWIG_fail;
40780 swig_obj[0] = args;
40781 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40782 if (!SWIG_IsOK(res1)) {
40783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetLowerLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
40784 }
40785 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40786 {
40787 PyThreadState* __tstate = wxPyBeginAllowThreads();
40788 result = wxDatePickerCtrl_GetLowerLimit(arg1);
40789 wxPyEndAllowThreads(__tstate);
40790 if (PyErr_Occurred()) SWIG_fail;
40791 }
40792 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
40793 return resultobj;
40794 fail:
40795 return NULL;
40796 }
40797
40798
40799 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40800 PyObject *resultobj = 0;
40801 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40802 wxDateTime result;
40803 void *argp1 = 0 ;
40804 int res1 = 0 ;
40805 PyObject *swig_obj[1] ;
40806
40807 if (!args) SWIG_fail;
40808 swig_obj[0] = args;
40809 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40810 if (!SWIG_IsOK(res1)) {
40811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetUpperLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
40812 }
40813 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40814 {
40815 PyThreadState* __tstate = wxPyBeginAllowThreads();
40816 result = wxDatePickerCtrl_GetUpperLimit(arg1);
40817 wxPyEndAllowThreads(__tstate);
40818 if (PyErr_Occurred()) SWIG_fail;
40819 }
40820 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
40821 return resultobj;
40822 fail:
40823 return NULL;
40824 }
40825
40826
40827 SWIGINTERN PyObject *DatePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40828 PyObject *obj;
40829 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40830 SWIG_TypeNewClientData(SWIGTYPE_p_wxDatePickerCtrl, SWIG_NewClientData(obj));
40831 return SWIG_Py_Void();
40832 }
40833
40834 SWIGINTERN PyObject *DatePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40835 return SWIG_Python_InitShadowInstance(args);
40836 }
40837
40838 static PyMethodDef SwigMethods[] = {
40839 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL},
40840 { (char *)"new_PreButton", (PyCFunction)_wrap_new_PreButton, METH_NOARGS, NULL},
40841 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40842 { (char *)"Button_SetDefault", (PyCFunction)_wrap_Button_SetDefault, METH_O, NULL},
40843 { (char *)"Button_GetDefaultSize", (PyCFunction)_wrap_Button_GetDefaultSize, METH_NOARGS, NULL},
40844 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40845 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL},
40846 { (char *)"Button_swiginit", Button_swiginit, METH_VARARGS, NULL},
40847 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL},
40848 { (char *)"new_PreBitmapButton", (PyCFunction)_wrap_new_PreBitmapButton, METH_NOARGS, NULL},
40849 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40850 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction)_wrap_BitmapButton_GetBitmapLabel, METH_O, NULL},
40851 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction)_wrap_BitmapButton_GetBitmapDisabled, METH_O, NULL},
40852 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction)_wrap_BitmapButton_GetBitmapFocus, METH_O, NULL},
40853 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction)_wrap_BitmapButton_GetBitmapSelected, METH_O, NULL},
40854 { (char *)"BitmapButton_GetBitmapHover", (PyCFunction)_wrap_BitmapButton_GetBitmapHover, METH_O, NULL},
40855 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL},
40856 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL},
40857 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL},
40858 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL},
40859 { (char *)"BitmapButton_SetBitmapHover", (PyCFunction) _wrap_BitmapButton_SetBitmapHover, METH_VARARGS | METH_KEYWORDS, NULL},
40860 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
40861 { (char *)"BitmapButton_GetMarginX", (PyCFunction)_wrap_BitmapButton_GetMarginX, METH_O, NULL},
40862 { (char *)"BitmapButton_GetMarginY", (PyCFunction)_wrap_BitmapButton_GetMarginY, METH_O, NULL},
40863 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL},
40864 { (char *)"BitmapButton_swiginit", BitmapButton_swiginit, METH_VARARGS, NULL},
40865 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
40866 { (char *)"new_PreCheckBox", (PyCFunction)_wrap_new_PreCheckBox, METH_NOARGS, NULL},
40867 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40868 { (char *)"CheckBox_GetValue", (PyCFunction)_wrap_CheckBox_GetValue, METH_O, NULL},
40869 { (char *)"CheckBox_IsChecked", (PyCFunction)_wrap_CheckBox_IsChecked, METH_O, NULL},
40870 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
40871 { (char *)"CheckBox_Get3StateValue", (PyCFunction)_wrap_CheckBox_Get3StateValue, METH_O, NULL},
40872 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL},
40873 { (char *)"CheckBox_Is3State", (PyCFunction)_wrap_CheckBox_Is3State, METH_O, NULL},
40874 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction)_wrap_CheckBox_Is3rdStateAllowedForUser, METH_O, NULL},
40875 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40876 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL},
40877 { (char *)"CheckBox_swiginit", CheckBox_swiginit, METH_VARARGS, NULL},
40878 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL},
40879 { (char *)"new_PreChoice", (PyCFunction)_wrap_new_PreChoice, METH_NOARGS, NULL},
40880 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40881 { (char *)"Choice_GetCurrentSelection", (PyCFunction)_wrap_Choice_GetCurrentSelection, METH_O, NULL},
40882 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40883 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL},
40884 { (char *)"Choice_swiginit", Choice_swiginit, METH_VARARGS, NULL},
40885 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL},
40886 { (char *)"new_PreComboBox", (PyCFunction)_wrap_new_PreComboBox, METH_NOARGS, NULL},
40887 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40888 { (char *)"ComboBox_GetValue", (PyCFunction)_wrap_ComboBox_GetValue, METH_O, NULL},
40889 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
40890 { (char *)"ComboBox_Copy", (PyCFunction)_wrap_ComboBox_Copy, METH_O, NULL},
40891 { (char *)"ComboBox_Cut", (PyCFunction)_wrap_ComboBox_Cut, METH_O, NULL},
40892 { (char *)"ComboBox_Paste", (PyCFunction)_wrap_ComboBox_Paste, METH_O, NULL},
40893 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40894 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction)_wrap_ComboBox_GetInsertionPoint, METH_O, NULL},
40895 { (char *)"ComboBox_GetLastPosition", (PyCFunction)_wrap_ComboBox_GetLastPosition, METH_O, NULL},
40896 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
40897 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL},
40898 { (char *)"ComboBox_GetCurrentSelection", (PyCFunction)_wrap_ComboBox_GetCurrentSelection, METH_O, NULL},
40899 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
40900 { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
40901 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
40902 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction)_wrap_ComboBox_SetInsertionPointEnd, METH_O, NULL},
40903 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
40904 { (char *)"ComboBox_IsEditable", (PyCFunction)_wrap_ComboBox_IsEditable, METH_O, NULL},
40905 { (char *)"ComboBox_Undo", (PyCFunction)_wrap_ComboBox_Undo, METH_O, NULL},
40906 { (char *)"ComboBox_Redo", (PyCFunction)_wrap_ComboBox_Redo, METH_O, NULL},
40907 { (char *)"ComboBox_SelectAll", (PyCFunction)_wrap_ComboBox_SelectAll, METH_O, NULL},
40908 { (char *)"ComboBox_CanCopy", (PyCFunction)_wrap_ComboBox_CanCopy, METH_O, NULL},
40909 { (char *)"ComboBox_CanCut", (PyCFunction)_wrap_ComboBox_CanCut, METH_O, NULL},
40910 { (char *)"ComboBox_CanPaste", (PyCFunction)_wrap_ComboBox_CanPaste, METH_O, NULL},
40911 { (char *)"ComboBox_CanUndo", (PyCFunction)_wrap_ComboBox_CanUndo, METH_O, NULL},
40912 { (char *)"ComboBox_CanRedo", (PyCFunction)_wrap_ComboBox_CanRedo, METH_O, NULL},
40913 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40914 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL},
40915 { (char *)"ComboBox_swiginit", ComboBox_swiginit, METH_VARARGS, NULL},
40916 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL},
40917 { (char *)"new_PreGauge", (PyCFunction)_wrap_new_PreGauge, METH_NOARGS, NULL},
40918 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40919 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
40920 { (char *)"Gauge_GetRange", (PyCFunction)_wrap_Gauge_GetRange, METH_O, NULL},
40921 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
40922 { (char *)"Gauge_GetValue", (PyCFunction)_wrap_Gauge_GetValue, METH_O, NULL},
40923 { (char *)"Gauge_IsVertical", (PyCFunction)_wrap_Gauge_IsVertical, METH_O, NULL},
40924 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL},
40925 { (char *)"Gauge_GetShadowWidth", (PyCFunction)_wrap_Gauge_GetShadowWidth, METH_O, NULL},
40926 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL},
40927 { (char *)"Gauge_GetBezelFace", (PyCFunction)_wrap_Gauge_GetBezelFace, METH_O, NULL},
40928 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40929 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL},
40930 { (char *)"Gauge_swiginit", Gauge_swiginit, METH_VARARGS, NULL},
40931 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL},
40932 { (char *)"new_PreStaticBox", (PyCFunction)_wrap_new_PreStaticBox, METH_NOARGS, NULL},
40933 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40934 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40935 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL},
40936 { (char *)"StaticBox_swiginit", StaticBox_swiginit, METH_VARARGS, NULL},
40937 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL},
40938 { (char *)"new_PreStaticLine", (PyCFunction)_wrap_new_PreStaticLine, METH_NOARGS, NULL},
40939 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40940 { (char *)"StaticLine_IsVertical", (PyCFunction)_wrap_StaticLine_IsVertical, METH_O, NULL},
40941 { (char *)"StaticLine_GetDefaultSize", (PyCFunction)_wrap_StaticLine_GetDefaultSize, METH_NOARGS, NULL},
40942 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40943 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL},
40944 { (char *)"StaticLine_swiginit", StaticLine_swiginit, METH_VARARGS, NULL},
40945 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL},
40946 { (char *)"new_PreStaticText", (PyCFunction)_wrap_new_PreStaticText, METH_NOARGS, NULL},
40947 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40948 { (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL},
40949 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40950 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL},
40951 { (char *)"StaticText_swiginit", StaticText_swiginit, METH_VARARGS, NULL},
40952 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
40953 { (char *)"new_PreStaticBitmap", (PyCFunction)_wrap_new_PreStaticBitmap, METH_NOARGS, NULL},
40954 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40955 { (char *)"StaticBitmap_GetBitmap", (PyCFunction)_wrap_StaticBitmap_GetBitmap, METH_O, NULL},
40956 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
40957 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
40958 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40959 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL},
40960 { (char *)"StaticBitmap_swiginit", StaticBitmap_swiginit, METH_VARARGS, NULL},
40961 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL},
40962 { (char *)"new_PreListBox", (PyCFunction)_wrap_new_PreListBox, METH_NOARGS, NULL},
40963 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40964 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
40965 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL},
40966 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL},
40967 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
40968 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
40969 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL},
40970 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL},
40971 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL},
40972 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
40973 { (char *)"ListBox_GetSelections", (PyCFunction)_wrap_ListBox_GetSelections, METH_O, NULL},
40974 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL},
40975 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL},
40976 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
40977 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
40978 { (char *)"ListBox_IsSorted", (PyCFunction)_wrap_ListBox_IsSorted, METH_O, NULL},
40979 { (char *)"ListBox_HitTest", (PyCFunction) _wrap_ListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
40980 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
40981 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
40982 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
40983 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40984 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL},
40985 { (char *)"ListBox_swiginit", ListBox_swiginit, METH_VARARGS, NULL},
40986 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL},
40987 { (char *)"new_PreCheckListBox", (PyCFunction)_wrap_new_PreCheckListBox, METH_NOARGS, NULL},
40988 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40989 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL},
40990 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL},
40991 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL},
40992 { (char *)"CheckListBox_swiginit", CheckListBox_swiginit, METH_VARARGS, NULL},
40993 { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL},
40994 { (char *)"delete_TextAttr", (PyCFunction)_wrap_delete_TextAttr, METH_O, NULL},
40995 { (char *)"TextAttr_Init", (PyCFunction)_wrap_TextAttr_Init, METH_O, NULL},
40996 { (char *)"TextAttr_Merge", (PyCFunction) _wrap_TextAttr_Merge, METH_VARARGS | METH_KEYWORDS, NULL},
40997 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
40998 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
40999 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
41000 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL},
41001 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL},
41002 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL},
41003 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL},
41004 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
41005 { (char *)"TextAttr_HasTextColour", (PyCFunction)_wrap_TextAttr_HasTextColour, METH_O, NULL},
41006 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction)_wrap_TextAttr_HasBackgroundColour, METH_O, NULL},
41007 { (char *)"TextAttr_HasFont", (PyCFunction)_wrap_TextAttr_HasFont, METH_O, NULL},
41008 { (char *)"TextAttr_HasAlignment", (PyCFunction)_wrap_TextAttr_HasAlignment, METH_O, NULL},
41009 { (char *)"TextAttr_HasTabs", (PyCFunction)_wrap_TextAttr_HasTabs, METH_O, NULL},
41010 { (char *)"TextAttr_HasLeftIndent", (PyCFunction)_wrap_TextAttr_HasLeftIndent, METH_O, NULL},
41011 { (char *)"TextAttr_HasRightIndent", (PyCFunction)_wrap_TextAttr_HasRightIndent, METH_O, NULL},
41012 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL},
41013 { (char *)"TextAttr_GetTextColour", (PyCFunction)_wrap_TextAttr_GetTextColour, METH_O, NULL},
41014 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction)_wrap_TextAttr_GetBackgroundColour, METH_O, NULL},
41015 { (char *)"TextAttr_GetFont", (PyCFunction)_wrap_TextAttr_GetFont, METH_O, NULL},
41016 { (char *)"TextAttr_GetAlignment", (PyCFunction)_wrap_TextAttr_GetAlignment, METH_O, NULL},
41017 { (char *)"TextAttr_GetTabs", (PyCFunction)_wrap_TextAttr_GetTabs, METH_O, NULL},
41018 { (char *)"TextAttr_GetLeftIndent", (PyCFunction)_wrap_TextAttr_GetLeftIndent, METH_O, NULL},
41019 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction)_wrap_TextAttr_GetLeftSubIndent, METH_O, NULL},
41020 { (char *)"TextAttr_GetRightIndent", (PyCFunction)_wrap_TextAttr_GetRightIndent, METH_O, NULL},
41021 { (char *)"TextAttr_GetFlags", (PyCFunction)_wrap_TextAttr_GetFlags, METH_O, NULL},
41022 { (char *)"TextAttr_IsDefault", (PyCFunction)_wrap_TextAttr_IsDefault, METH_O, NULL},
41023 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL},
41024 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL},
41025 { (char *)"TextAttr_swiginit", TextAttr_swiginit, METH_VARARGS, NULL},
41026 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41027 { (char *)"new_PreTextCtrl", (PyCFunction)_wrap_new_PreTextCtrl, METH_NOARGS, NULL},
41028 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41029 { (char *)"TextCtrl_GetValue", (PyCFunction)_wrap_TextCtrl_GetValue, METH_O, NULL},
41030 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41031 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL},
41032 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL},
41033 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL},
41034 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction)_wrap_TextCtrl_GetNumberOfLines, METH_O, NULL},
41035 { (char *)"TextCtrl_IsModified", (PyCFunction)_wrap_TextCtrl_IsModified, METH_O, NULL},
41036 { (char *)"TextCtrl_IsEditable", (PyCFunction)_wrap_TextCtrl_IsEditable, METH_O, NULL},
41037 { (char *)"TextCtrl_IsSingleLine", (PyCFunction)_wrap_TextCtrl_IsSingleLine, METH_O, NULL},
41038 { (char *)"TextCtrl_IsMultiLine", (PyCFunction)_wrap_TextCtrl_IsMultiLine, METH_O, NULL},
41039 { (char *)"TextCtrl_GetSelection", (PyCFunction)_wrap_TextCtrl_GetSelection, METH_O, NULL},
41040 { (char *)"TextCtrl_GetStringSelection", (PyCFunction)_wrap_TextCtrl_GetStringSelection, METH_O, NULL},
41041 { (char *)"TextCtrl_Clear", (PyCFunction)_wrap_TextCtrl_Clear, METH_O, NULL},
41042 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
41043 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
41044 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
41045 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
41046 { (char *)"TextCtrl_MarkDirty", (PyCFunction)_wrap_TextCtrl_MarkDirty, METH_O, NULL},
41047 { (char *)"TextCtrl_DiscardEdits", (PyCFunction)_wrap_TextCtrl_DiscardEdits, METH_O, NULL},
41048 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL},
41049 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL},
41050 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL},
41051 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL},
41052 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
41053 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
41054 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL},
41055 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction)_wrap_TextCtrl_GetDefaultStyle, METH_O, NULL},
41056 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41057 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL},
41058 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41059 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
41060 { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL},
41061 { (char *)"TextCtrl_Copy", (PyCFunction)_wrap_TextCtrl_Copy, METH_O, NULL},
41062 { (char *)"TextCtrl_Cut", (PyCFunction)_wrap_TextCtrl_Cut, METH_O, NULL},
41063 { (char *)"TextCtrl_Paste", (PyCFunction)_wrap_TextCtrl_Paste, METH_O, NULL},
41064 { (char *)"TextCtrl_CanCopy", (PyCFunction)_wrap_TextCtrl_CanCopy, METH_O, NULL},
41065 { (char *)"TextCtrl_CanCut", (PyCFunction)_wrap_TextCtrl_CanCut, METH_O, NULL},
41066 { (char *)"TextCtrl_CanPaste", (PyCFunction)_wrap_TextCtrl_CanPaste, METH_O, NULL},
41067 { (char *)"TextCtrl_Undo", (PyCFunction)_wrap_TextCtrl_Undo, METH_O, NULL},
41068 { (char *)"TextCtrl_Redo", (PyCFunction)_wrap_TextCtrl_Redo, METH_O, NULL},
41069 { (char *)"TextCtrl_CanUndo", (PyCFunction)_wrap_TextCtrl_CanUndo, METH_O, NULL},
41070 { (char *)"TextCtrl_CanRedo", (PyCFunction)_wrap_TextCtrl_CanRedo, METH_O, NULL},
41071 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
41072 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_TextCtrl_SetInsertionPointEnd, METH_O, NULL},
41073 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction)_wrap_TextCtrl_GetInsertionPoint, METH_O, NULL},
41074 { (char *)"TextCtrl_GetLastPosition", (PyCFunction)_wrap_TextCtrl_GetLastPosition, METH_O, NULL},
41075 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41076 { (char *)"TextCtrl_SelectAll", (PyCFunction)_wrap_TextCtrl_SelectAll, METH_O, NULL},
41077 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
41078 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL},
41079 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
41080 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41081 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL},
41082 { (char *)"TextCtrl_swiginit", TextCtrl_swiginit, METH_VARARGS, NULL},
41083 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41084 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction)_wrap_TextUrlEvent_GetMouseEvent, METH_O, NULL},
41085 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction)_wrap_TextUrlEvent_GetURLStart, METH_O, NULL},
41086 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction)_wrap_TextUrlEvent_GetURLEnd, METH_O, NULL},
41087 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL},
41088 { (char *)"TextUrlEvent_swiginit", TextUrlEvent_swiginit, METH_VARARGS, NULL},
41089 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL},
41090 { (char *)"new_PreScrollBar", (PyCFunction)_wrap_new_PreScrollBar, METH_NOARGS, NULL},
41091 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41092 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction)_wrap_ScrollBar_GetThumbPosition, METH_O, NULL},
41093 { (char *)"ScrollBar_GetThumbSize", (PyCFunction)_wrap_ScrollBar_GetThumbSize, METH_O, NULL},
41094 { (char *)"ScrollBar_GetPageSize", (PyCFunction)_wrap_ScrollBar_GetPageSize, METH_O, NULL},
41095 { (char *)"ScrollBar_GetRange", (PyCFunction)_wrap_ScrollBar_GetRange, METH_O, NULL},
41096 { (char *)"ScrollBar_IsVertical", (PyCFunction)_wrap_ScrollBar_IsVertical, METH_O, NULL},
41097 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41098 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41099 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL},
41100 { (char *)"ScrollBar_swiginit", ScrollBar_swiginit, METH_VARARGS, NULL},
41101 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL},
41102 { (char *)"new_PreSpinButton", (PyCFunction)_wrap_new_PreSpinButton, METH_NOARGS, NULL},
41103 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41104 { (char *)"SpinButton_GetValue", (PyCFunction)_wrap_SpinButton_GetValue, METH_O, NULL},
41105 { (char *)"SpinButton_GetMin", (PyCFunction)_wrap_SpinButton_GetMin, METH_O, NULL},
41106 { (char *)"SpinButton_GetMax", (PyCFunction)_wrap_SpinButton_GetMax, METH_O, NULL},
41107 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41108 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
41109 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
41110 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
41111 { (char *)"SpinButton_IsVertical", (PyCFunction)_wrap_SpinButton_IsVertical, METH_O, NULL},
41112 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41113 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL},
41114 { (char *)"SpinButton_swiginit", SpinButton_swiginit, METH_VARARGS, NULL},
41115 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41116 { (char *)"new_PreSpinCtrl", (PyCFunction)_wrap_new_PreSpinCtrl, METH_NOARGS, NULL},
41117 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41118 { (char *)"SpinCtrl_GetValue", (PyCFunction)_wrap_SpinCtrl_GetValue, METH_O, NULL},
41119 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41120 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL},
41121 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
41122 { (char *)"SpinCtrl_GetMin", (PyCFunction)_wrap_SpinCtrl_GetMin, METH_O, NULL},
41123 { (char *)"SpinCtrl_GetMax", (PyCFunction)_wrap_SpinCtrl_GetMax, METH_O, NULL},
41124 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41125 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41126 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL},
41127 { (char *)"SpinCtrl_swiginit", SpinCtrl_swiginit, METH_VARARGS, NULL},
41128 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41129 { (char *)"SpinEvent_GetPosition", (PyCFunction)_wrap_SpinEvent_GetPosition, METH_O, NULL},
41130 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41131 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL},
41132 { (char *)"SpinEvent_swiginit", SpinEvent_swiginit, METH_VARARGS, NULL},
41133 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL},
41134 { (char *)"new_PreRadioBox", (PyCFunction)_wrap_new_PreRadioBox, METH_NOARGS, NULL},
41135 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41136 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41137 { (char *)"RadioBox_GetSelection", (PyCFunction)_wrap_RadioBox_GetSelection, METH_O, NULL},
41138 { (char *)"RadioBox_GetStringSelection", (PyCFunction)_wrap_RadioBox_GetStringSelection, METH_O, NULL},
41139 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41140 { (char *)"RadioBox_GetCount", (PyCFunction)_wrap_RadioBox_GetCount, METH_O, NULL},
41141 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL},
41142 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
41143 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
41144 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL},
41145 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL},
41146 { (char *)"RadioBox_IsItemEnabled", (PyCFunction) _wrap_RadioBox_IsItemEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
41147 { (char *)"RadioBox_IsItemShown", (PyCFunction) _wrap_RadioBox_IsItemShown, METH_VARARGS | METH_KEYWORDS, NULL},
41148 { (char *)"RadioBox_GetColumnCount", (PyCFunction)_wrap_RadioBox_GetColumnCount, METH_O, NULL},
41149 { (char *)"RadioBox_GetRowCount", (PyCFunction)_wrap_RadioBox_GetRowCount, METH_O, NULL},
41150 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
41151 { (char *)"RadioBox_SetItemToolTip", (PyCFunction) _wrap_RadioBox_SetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
41152 { (char *)"RadioBox_GetItemToolTip", (PyCFunction) _wrap_RadioBox_GetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
41153 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41154 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL},
41155 { (char *)"RadioBox_swiginit", RadioBox_swiginit, METH_VARARGS, NULL},
41156 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL},
41157 { (char *)"new_PreRadioButton", (PyCFunction)_wrap_new_PreRadioButton, METH_NOARGS, NULL},
41158 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41159 { (char *)"RadioButton_GetValue", (PyCFunction)_wrap_RadioButton_GetValue, METH_O, NULL},
41160 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41161 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41162 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL},
41163 { (char *)"RadioButton_swiginit", RadioButton_swiginit, METH_VARARGS, NULL},
41164 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL},
41165 { (char *)"new_PreSlider", (PyCFunction)_wrap_new_PreSlider, METH_NOARGS, NULL},
41166 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41167 { (char *)"Slider_GetValue", (PyCFunction)_wrap_Slider_GetValue, METH_O, NULL},
41168 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41169 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
41170 { (char *)"Slider_GetMin", (PyCFunction)_wrap_Slider_GetMin, METH_O, NULL},
41171 { (char *)"Slider_GetMax", (PyCFunction)_wrap_Slider_GetMax, METH_O, NULL},
41172 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
41173 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
41174 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL},
41175 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
41176 { (char *)"Slider_GetLineSize", (PyCFunction)_wrap_Slider_GetLineSize, METH_O, NULL},
41177 { (char *)"Slider_GetPageSize", (PyCFunction)_wrap_Slider_GetPageSize, METH_O, NULL},
41178 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL},
41179 { (char *)"Slider_GetThumbLength", (PyCFunction)_wrap_Slider_GetThumbLength, METH_O, NULL},
41180 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL},
41181 { (char *)"Slider_GetTickFreq", (PyCFunction)_wrap_Slider_GetTickFreq, METH_O, NULL},
41182 { (char *)"Slider_ClearTicks", (PyCFunction)_wrap_Slider_ClearTicks, METH_O, NULL},
41183 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL},
41184 { (char *)"Slider_ClearSel", (PyCFunction)_wrap_Slider_ClearSel, METH_O, NULL},
41185 { (char *)"Slider_GetSelEnd", (PyCFunction)_wrap_Slider_GetSelEnd, METH_O, NULL},
41186 { (char *)"Slider_GetSelStart", (PyCFunction)_wrap_Slider_GetSelStart, METH_O, NULL},
41187 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41188 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41189 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL},
41190 { (char *)"Slider_swiginit", Slider_swiginit, METH_VARARGS, NULL},
41191 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL},
41192 { (char *)"new_PreToggleButton", (PyCFunction)_wrap_new_PreToggleButton, METH_NOARGS, NULL},
41193 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41194 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41195 { (char *)"ToggleButton_GetValue", (PyCFunction)_wrap_ToggleButton_GetValue, METH_O, NULL},
41196 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41197 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL},
41198 { (char *)"ToggleButton_swiginit", ToggleButton_swiginit, METH_VARARGS, NULL},
41199 { (char *)"BookCtrlBase_GetPageCount", (PyCFunction)_wrap_BookCtrlBase_GetPageCount, METH_O, NULL},
41200 { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL},
41201 { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetCurrentPage, METH_O, NULL},
41202 { (char *)"BookCtrlBase_GetSelection", (PyCFunction)_wrap_BookCtrlBase_GetSelection, METH_O, NULL},
41203 { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
41204 { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
41205 { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41206 { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41207 { (char *)"BookCtrlBase_GetImageList", (PyCFunction)_wrap_BookCtrlBase_GetImageList, METH_O, NULL},
41208 { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
41209 { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
41210 { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
41211 { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL},
41212 { (char *)"BookCtrlBase_GetInternalBorder", (PyCFunction)_wrap_BookCtrlBase_GetInternalBorder, METH_O, NULL},
41213 { (char *)"BookCtrlBase_SetInternalBorder", (PyCFunction) _wrap_BookCtrlBase_SetInternalBorder, METH_VARARGS | METH_KEYWORDS, NULL},
41214 { (char *)"BookCtrlBase_IsVertical", (PyCFunction)_wrap_BookCtrlBase_IsVertical, METH_O, NULL},
41215 { (char *)"BookCtrlBase_SetControlMargin", (PyCFunction) _wrap_BookCtrlBase_SetControlMargin, METH_VARARGS | METH_KEYWORDS, NULL},
41216 { (char *)"BookCtrlBase_GetControlMargin", (PyCFunction)_wrap_BookCtrlBase_GetControlMargin, METH_O, NULL},
41217 { (char *)"BookCtrlBase_SetFitToCurrentPage", (PyCFunction) _wrap_BookCtrlBase_SetFitToCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL},
41218 { (char *)"BookCtrlBase_GetFitToCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetFitToCurrentPage, METH_O, NULL},
41219 { (char *)"BookCtrlBase_GetControlSizer", (PyCFunction)_wrap_BookCtrlBase_GetControlSizer, METH_O, NULL},
41220 { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL},
41221 { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL},
41222 { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction)_wrap_BookCtrlBase_DeleteAllPages, METH_O, NULL},
41223 { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL},
41224 { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL},
41225 { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41226 { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41227 { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41228 { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL},
41229 { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41230 { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetSelection, METH_O, NULL},
41231 { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41232 { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetOldSelection, METH_O, NULL},
41233 { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41234 { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL},
41235 { (char *)"BookCtrlBaseEvent_swiginit", BookCtrlBaseEvent_swiginit, METH_VARARGS, NULL},
41236 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL},
41237 { (char *)"new_PreNotebook", (PyCFunction)_wrap_new_PreNotebook, METH_NOARGS, NULL},
41238 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41239 { (char *)"Notebook_GetRowCount", (PyCFunction)_wrap_Notebook_GetRowCount, METH_O, NULL},
41240 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL},
41241 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL},
41242 { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
41243 { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction)_wrap_Notebook_GetThemeBackgroundColour, METH_O, NULL},
41244 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41245 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL},
41246 { (char *)"Notebook_swiginit", Notebook_swiginit, METH_VARARGS, NULL},
41247 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41248 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL},
41249 { (char *)"NotebookEvent_swiginit", NotebookEvent_swiginit, METH_VARARGS, NULL},
41250 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL},
41251 { (char *)"new_PreListbook", (PyCFunction)_wrap_new_PreListbook, METH_NOARGS, NULL},
41252 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41253 { (char *)"Listbook_GetListView", (PyCFunction)_wrap_Listbook_GetListView, METH_O, NULL},
41254 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL},
41255 { (char *)"Listbook_swiginit", Listbook_swiginit, METH_VARARGS, NULL},
41256 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41257 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL},
41258 { (char *)"ListbookEvent_swiginit", ListbookEvent_swiginit, METH_VARARGS, NULL},
41259 { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL},
41260 { (char *)"new_PreChoicebook", (PyCFunction)_wrap_new_PreChoicebook, METH_NOARGS, NULL},
41261 { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41262 { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction)_wrap_Choicebook_GetChoiceCtrl, METH_O, NULL},
41263 { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL},
41264 { (char *)"Choicebook_swiginit", Choicebook_swiginit, METH_VARARGS, NULL},
41265 { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41266 { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL},
41267 { (char *)"ChoicebookEvent_swiginit", ChoicebookEvent_swiginit, METH_VARARGS, NULL},
41268 { (char *)"new_Treebook", (PyCFunction) _wrap_new_Treebook, METH_VARARGS | METH_KEYWORDS, NULL},
41269 { (char *)"new_PreTreebook", (PyCFunction)_wrap_new_PreTreebook, METH_NOARGS, NULL},
41270 { (char *)"Treebook_Create", (PyCFunction) _wrap_Treebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41271 { (char *)"Treebook_InsertSubPage", (PyCFunction) _wrap_Treebook_InsertSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
41272 { (char *)"Treebook_AddSubPage", (PyCFunction) _wrap_Treebook_AddSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
41273 { (char *)"Treebook_IsNodeExpanded", (PyCFunction) _wrap_Treebook_IsNodeExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
41274 { (char *)"Treebook_ExpandNode", (PyCFunction) _wrap_Treebook_ExpandNode, METH_VARARGS | METH_KEYWORDS, NULL},
41275 { (char *)"Treebook_CollapseNode", (PyCFunction) _wrap_Treebook_CollapseNode, METH_VARARGS | METH_KEYWORDS, NULL},
41276 { (char *)"Treebook_GetPageParent", (PyCFunction) _wrap_Treebook_GetPageParent, METH_VARARGS | METH_KEYWORDS, NULL},
41277 { (char *)"Treebook_GetTreeCtrl", (PyCFunction)_wrap_Treebook_GetTreeCtrl, METH_O, NULL},
41278 { (char *)"Treebook_swigregister", Treebook_swigregister, METH_VARARGS, NULL},
41279 { (char *)"Treebook_swiginit", Treebook_swiginit, METH_VARARGS, NULL},
41280 { (char *)"new_TreebookEvent", (PyCFunction) _wrap_new_TreebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41281 { (char *)"TreebookEvent_swigregister", TreebookEvent_swigregister, METH_VARARGS, NULL},
41282 { (char *)"TreebookEvent_swiginit", TreebookEvent_swiginit, METH_VARARGS, NULL},
41283 { (char *)"new_Toolbook", (PyCFunction) _wrap_new_Toolbook, METH_VARARGS | METH_KEYWORDS, NULL},
41284 { (char *)"new_PreToolbook", (PyCFunction)_wrap_new_PreToolbook, METH_NOARGS, NULL},
41285 { (char *)"Toolbook_Create", (PyCFunction) _wrap_Toolbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41286 { (char *)"Toolbook_GetToolBar", (PyCFunction)_wrap_Toolbook_GetToolBar, METH_O, NULL},
41287 { (char *)"Toolbook_Realize", (PyCFunction)_wrap_Toolbook_Realize, METH_O, NULL},
41288 { (char *)"Toolbook_swigregister", Toolbook_swigregister, METH_VARARGS, NULL},
41289 { (char *)"Toolbook_swiginit", Toolbook_swiginit, METH_VARARGS, NULL},
41290 { (char *)"new_ToolbookEvent", (PyCFunction) _wrap_new_ToolbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41291 { (char *)"ToolbookEvent_swigregister", ToolbookEvent_swigregister, METH_VARARGS, NULL},
41292 { (char *)"ToolbookEvent_swiginit", ToolbookEvent_swiginit, METH_VARARGS, NULL},
41293 { (char *)"ToolBarToolBase_GetId", (PyCFunction)_wrap_ToolBarToolBase_GetId, METH_O, NULL},
41294 { (char *)"ToolBarToolBase_GetControl", (PyCFunction)_wrap_ToolBarToolBase_GetControl, METH_O, NULL},
41295 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction)_wrap_ToolBarToolBase_GetToolBar, METH_O, NULL},
41296 { (char *)"ToolBarToolBase_IsButton", (PyCFunction)_wrap_ToolBarToolBase_IsButton, METH_O, NULL},
41297 { (char *)"ToolBarToolBase_IsControl", (PyCFunction)_wrap_ToolBarToolBase_IsControl, METH_O, NULL},
41298 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction)_wrap_ToolBarToolBase_IsSeparator, METH_O, NULL},
41299 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction)_wrap_ToolBarToolBase_GetStyle, METH_O, NULL},
41300 { (char *)"ToolBarToolBase_GetKind", (PyCFunction)_wrap_ToolBarToolBase_GetKind, METH_O, NULL},
41301 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction)_wrap_ToolBarToolBase_IsEnabled, METH_O, NULL},
41302 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction)_wrap_ToolBarToolBase_IsToggled, METH_O, NULL},
41303 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction)_wrap_ToolBarToolBase_CanBeToggled, METH_O, NULL},
41304 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetNormalBitmap, METH_O, NULL},
41305 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetDisabledBitmap, METH_O, NULL},
41306 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetBitmap, METH_O, NULL},
41307 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction)_wrap_ToolBarToolBase_GetLabel, METH_O, NULL},
41308 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction)_wrap_ToolBarToolBase_GetShortHelp, METH_O, NULL},
41309 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction)_wrap_ToolBarToolBase_GetLongHelp, METH_O, NULL},
41310 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
41311 { (char *)"ToolBarToolBase_Toggle", (PyCFunction)_wrap_ToolBarToolBase_Toggle, METH_O, NULL},
41312 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
41313 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41314 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41315 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
41316 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
41317 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
41318 { (char *)"ToolBarToolBase_Detach", (PyCFunction)_wrap_ToolBarToolBase_Detach, METH_O, NULL},
41319 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL},
41320 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction)_wrap_ToolBarToolBase_GetClientData, METH_O, NULL},
41321 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
41322 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL},
41323 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL},
41324 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL},
41325 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
41326 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
41327 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL},
41328 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL},
41329 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL},
41330 { (char *)"ToolBarBase_AddSeparator", (PyCFunction)_wrap_ToolBarBase_AddSeparator, METH_O, NULL},
41331 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL},
41332 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL},
41333 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL},
41334 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL},
41335 { (char *)"ToolBarBase_ClearTools", (PyCFunction)_wrap_ToolBarBase_ClearTools, METH_O, NULL},
41336 { (char *)"ToolBarBase_Realize", (PyCFunction)_wrap_ToolBarBase_Realize, METH_O, NULL},
41337 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL},
41338 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL},
41339 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
41340 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
41341 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
41342 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL},
41343 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL},
41344 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
41345 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41346 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41347 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41348 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41349 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL},
41350 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
41351 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL},
41352 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL},
41353 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction)_wrap_ToolBarBase_GetToolMargins, METH_O, NULL},
41354 { (char *)"ToolBarBase_GetMargins", (PyCFunction)_wrap_ToolBarBase_GetMargins, METH_O, NULL},
41355 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction)_wrap_ToolBarBase_GetToolPacking, METH_O, NULL},
41356 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction)_wrap_ToolBarBase_GetToolSeparation, METH_O, NULL},
41357 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL},
41358 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL},
41359 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction)_wrap_ToolBarBase_GetMaxRows, METH_O, NULL},
41360 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction)_wrap_ToolBarBase_GetMaxCols, METH_O, NULL},
41361 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL},
41362 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction)_wrap_ToolBarBase_GetToolBitmapSize, METH_O, NULL},
41363 { (char *)"ToolBarBase_GetToolSize", (PyCFunction)_wrap_ToolBarBase_GetToolSize, METH_O, NULL},
41364 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41365 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL},
41366 { (char *)"ToolBarBase_IsVertical", (PyCFunction)_wrap_ToolBarBase_IsVertical, METH_O, NULL},
41367 { (char *)"ToolBarBase_GetToolsCount", (PyCFunction)_wrap_ToolBarBase_GetToolsCount, METH_O, NULL},
41368 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL},
41369 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL},
41370 { (char *)"new_PreToolBar", (PyCFunction)_wrap_new_PreToolBar, METH_NOARGS, NULL},
41371 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41372 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41373 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL},
41374 { (char *)"ToolBar_swiginit", ToolBar_swiginit, METH_VARARGS, NULL},
41375 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL},
41376 { (char *)"delete_ListItemAttr", (PyCFunction)_wrap_delete_ListItemAttr, METH_O, NULL},
41377 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41378 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41379 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
41380 { (char *)"ListItemAttr_HasTextColour", (PyCFunction)_wrap_ListItemAttr_HasTextColour, METH_O, NULL},
41381 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction)_wrap_ListItemAttr_HasBackgroundColour, METH_O, NULL},
41382 { (char *)"ListItemAttr_HasFont", (PyCFunction)_wrap_ListItemAttr_HasFont, METH_O, NULL},
41383 { (char *)"ListItemAttr_GetTextColour", (PyCFunction)_wrap_ListItemAttr_GetTextColour, METH_O, NULL},
41384 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction)_wrap_ListItemAttr_GetBackgroundColour, METH_O, NULL},
41385 { (char *)"ListItemAttr_GetFont", (PyCFunction)_wrap_ListItemAttr_GetFont, METH_O, NULL},
41386 { (char *)"ListItemAttr_AssignFrom", (PyCFunction) _wrap_ListItemAttr_AssignFrom, METH_VARARGS | METH_KEYWORDS, NULL},
41387 { (char *)"ListItemAttr_Destroy", (PyCFunction)_wrap_ListItemAttr_Destroy, METH_O, NULL},
41388 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL},
41389 { (char *)"ListItemAttr_swiginit", ListItemAttr_swiginit, METH_VARARGS, NULL},
41390 { (char *)"new_ListItem", (PyCFunction)_wrap_new_ListItem, METH_NOARGS, NULL},
41391 { (char *)"delete_ListItem", (PyCFunction)_wrap_delete_ListItem, METH_O, NULL},
41392 { (char *)"ListItem_Clear", (PyCFunction)_wrap_ListItem_Clear, METH_O, NULL},
41393 { (char *)"ListItem_ClearAttributes", (PyCFunction)_wrap_ListItem_ClearAttributes, METH_O, NULL},
41394 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
41395 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
41396 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
41397 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
41398 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL},
41399 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
41400 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL},
41401 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
41402 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
41403 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL},
41404 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41405 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41406 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
41407 { (char *)"ListItem_GetMask", (PyCFunction)_wrap_ListItem_GetMask, METH_O, NULL},
41408 { (char *)"ListItem_GetId", (PyCFunction)_wrap_ListItem_GetId, METH_O, NULL},
41409 { (char *)"ListItem_GetColumn", (PyCFunction)_wrap_ListItem_GetColumn, METH_O, NULL},
41410 { (char *)"ListItem_GetState", (PyCFunction)_wrap_ListItem_GetState, METH_O, NULL},
41411 { (char *)"ListItem_GetText", (PyCFunction)_wrap_ListItem_GetText, METH_O, NULL},
41412 { (char *)"ListItem_GetImage", (PyCFunction)_wrap_ListItem_GetImage, METH_O, NULL},
41413 { (char *)"ListItem_GetData", (PyCFunction)_wrap_ListItem_GetData, METH_O, NULL},
41414 { (char *)"ListItem_GetWidth", (PyCFunction)_wrap_ListItem_GetWidth, METH_O, NULL},
41415 { (char *)"ListItem_GetAlign", (PyCFunction)_wrap_ListItem_GetAlign, METH_O, NULL},
41416 { (char *)"ListItem_GetAttributes", (PyCFunction)_wrap_ListItem_GetAttributes, METH_O, NULL},
41417 { (char *)"ListItem_HasAttributes", (PyCFunction)_wrap_ListItem_HasAttributes, METH_O, NULL},
41418 { (char *)"ListItem_GetTextColour", (PyCFunction)_wrap_ListItem_GetTextColour, METH_O, NULL},
41419 { (char *)"ListItem_GetBackgroundColour", (PyCFunction)_wrap_ListItem_GetBackgroundColour, METH_O, NULL},
41420 { (char *)"ListItem_GetFont", (PyCFunction)_wrap_ListItem_GetFont, METH_O, NULL},
41421 { (char *)"ListItem_m_mask_set", _wrap_ListItem_m_mask_set, METH_VARARGS, NULL},
41422 { (char *)"ListItem_m_mask_get", (PyCFunction)_wrap_ListItem_m_mask_get, METH_O, NULL},
41423 { (char *)"ListItem_m_itemId_set", _wrap_ListItem_m_itemId_set, METH_VARARGS, NULL},
41424 { (char *)"ListItem_m_itemId_get", (PyCFunction)_wrap_ListItem_m_itemId_get, METH_O, NULL},
41425 { (char *)"ListItem_m_col_set", _wrap_ListItem_m_col_set, METH_VARARGS, NULL},
41426 { (char *)"ListItem_m_col_get", (PyCFunction)_wrap_ListItem_m_col_get, METH_O, NULL},
41427 { (char *)"ListItem_m_state_set", _wrap_ListItem_m_state_set, METH_VARARGS, NULL},
41428 { (char *)"ListItem_m_state_get", (PyCFunction)_wrap_ListItem_m_state_get, METH_O, NULL},
41429 { (char *)"ListItem_m_stateMask_set", _wrap_ListItem_m_stateMask_set, METH_VARARGS, NULL},
41430 { (char *)"ListItem_m_stateMask_get", (PyCFunction)_wrap_ListItem_m_stateMask_get, METH_O, NULL},
41431 { (char *)"ListItem_m_text_set", _wrap_ListItem_m_text_set, METH_VARARGS, NULL},
41432 { (char *)"ListItem_m_text_get", (PyCFunction)_wrap_ListItem_m_text_get, METH_O, NULL},
41433 { (char *)"ListItem_m_image_set", _wrap_ListItem_m_image_set, METH_VARARGS, NULL},
41434 { (char *)"ListItem_m_image_get", (PyCFunction)_wrap_ListItem_m_image_get, METH_O, NULL},
41435 { (char *)"ListItem_m_data_set", _wrap_ListItem_m_data_set, METH_VARARGS, NULL},
41436 { (char *)"ListItem_m_data_get", (PyCFunction)_wrap_ListItem_m_data_get, METH_O, NULL},
41437 { (char *)"ListItem_m_format_set", _wrap_ListItem_m_format_set, METH_VARARGS, NULL},
41438 { (char *)"ListItem_m_format_get", (PyCFunction)_wrap_ListItem_m_format_get, METH_O, NULL},
41439 { (char *)"ListItem_m_width_set", _wrap_ListItem_m_width_set, METH_VARARGS, NULL},
41440 { (char *)"ListItem_m_width_get", (PyCFunction)_wrap_ListItem_m_width_get, METH_O, NULL},
41441 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL},
41442 { (char *)"ListItem_swiginit", ListItem_swiginit, METH_VARARGS, NULL},
41443 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41444 { (char *)"ListEvent_m_code_set", _wrap_ListEvent_m_code_set, METH_VARARGS, NULL},
41445 { (char *)"ListEvent_m_code_get", (PyCFunction)_wrap_ListEvent_m_code_get, METH_O, NULL},
41446 { (char *)"ListEvent_m_oldItemIndex_set", _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS, NULL},
41447 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction)_wrap_ListEvent_m_oldItemIndex_get, METH_O, NULL},
41448 { (char *)"ListEvent_m_itemIndex_set", _wrap_ListEvent_m_itemIndex_set, METH_VARARGS, NULL},
41449 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction)_wrap_ListEvent_m_itemIndex_get, METH_O, NULL},
41450 { (char *)"ListEvent_m_col_set", _wrap_ListEvent_m_col_set, METH_VARARGS, NULL},
41451 { (char *)"ListEvent_m_col_get", (PyCFunction)_wrap_ListEvent_m_col_get, METH_O, NULL},
41452 { (char *)"ListEvent_m_pointDrag_set", _wrap_ListEvent_m_pointDrag_set, METH_VARARGS, NULL},
41453 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction)_wrap_ListEvent_m_pointDrag_get, METH_O, NULL},
41454 { (char *)"ListEvent_m_item_get", (PyCFunction)_wrap_ListEvent_m_item_get, METH_O, NULL},
41455 { (char *)"ListEvent_GetKeyCode", (PyCFunction)_wrap_ListEvent_GetKeyCode, METH_O, NULL},
41456 { (char *)"ListEvent_GetIndex", (PyCFunction)_wrap_ListEvent_GetIndex, METH_O, NULL},
41457 { (char *)"ListEvent_GetColumn", (PyCFunction)_wrap_ListEvent_GetColumn, METH_O, NULL},
41458 { (char *)"ListEvent_GetPoint", (PyCFunction)_wrap_ListEvent_GetPoint, METH_O, NULL},
41459 { (char *)"ListEvent_GetLabel", (PyCFunction)_wrap_ListEvent_GetLabel, METH_O, NULL},
41460 { (char *)"ListEvent_GetText", (PyCFunction)_wrap_ListEvent_GetText, METH_O, NULL},
41461 { (char *)"ListEvent_GetImage", (PyCFunction)_wrap_ListEvent_GetImage, METH_O, NULL},
41462 { (char *)"ListEvent_GetData", (PyCFunction)_wrap_ListEvent_GetData, METH_O, NULL},
41463 { (char *)"ListEvent_GetMask", (PyCFunction)_wrap_ListEvent_GetMask, METH_O, NULL},
41464 { (char *)"ListEvent_GetItem", (PyCFunction)_wrap_ListEvent_GetItem, METH_O, NULL},
41465 { (char *)"ListEvent_GetCacheFrom", (PyCFunction)_wrap_ListEvent_GetCacheFrom, METH_O, NULL},
41466 { (char *)"ListEvent_GetCacheTo", (PyCFunction)_wrap_ListEvent_GetCacheTo, METH_O, NULL},
41467 { (char *)"ListEvent_IsEditCancelled", (PyCFunction)_wrap_ListEvent_IsEditCancelled, METH_O, NULL},
41468 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
41469 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL},
41470 { (char *)"ListEvent_swiginit", ListEvent_swiginit, METH_VARARGS, NULL},
41471 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41472 { (char *)"new_PreListCtrl", (PyCFunction)_wrap_new_PreListCtrl, METH_NOARGS, NULL},
41473 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41474 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
41475 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
41476 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
41477 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
41478 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
41479 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction)_wrap_ListCtrl_GetCountPerPage, METH_O, NULL},
41480 { (char *)"ListCtrl_GetViewRect", (PyCFunction)_wrap_ListCtrl_GetViewRect, METH_O, NULL},
41481 { (char *)"ListCtrl_GetEditControl", (PyCFunction)_wrap_ListCtrl_GetEditControl, METH_O, NULL},
41482 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL},
41483 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
41484 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
41485 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
41486 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
41487 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
41488 { (char *)"ListCtrl_SetItemColumnImage", (PyCFunction) _wrap_ListCtrl_SetItemColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
41489 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
41490 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
41491 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41492 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41493 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41494 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL},
41495 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41496 { (char *)"ListCtrl_GetItemCount", (PyCFunction)_wrap_ListCtrl_GetItemCount, METH_O, NULL},
41497 { (char *)"ListCtrl_GetColumnCount", (PyCFunction)_wrap_ListCtrl_GetColumnCount, METH_O, NULL},
41498 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction)_wrap_ListCtrl_GetItemSpacing, METH_O, NULL},
41499 { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
41500 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction)_wrap_ListCtrl_GetSelectedItemCount, METH_O, NULL},
41501 { (char *)"ListCtrl_GetTextColour", (PyCFunction)_wrap_ListCtrl_GetTextColour, METH_O, NULL},
41502 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41503 { (char *)"ListCtrl_GetTopItem", (PyCFunction)_wrap_ListCtrl_GetTopItem, METH_O, NULL},
41504 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL},
41505 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
41506 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41507 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41508 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41509 { (char *)"ListCtrl_InReportView", (PyCFunction)_wrap_ListCtrl_InReportView, METH_O, NULL},
41510 { (char *)"ListCtrl_IsVirtual", (PyCFunction)_wrap_ListCtrl_IsVirtual, METH_O, NULL},
41511 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL},
41512 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL},
41513 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL},
41514 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL},
41515 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction)_wrap_ListCtrl_DeleteAllItems, METH_O, NULL},
41516 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL},
41517 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction)_wrap_ListCtrl_DeleteAllColumns, METH_O, NULL},
41518 { (char *)"ListCtrl_ClearAll", (PyCFunction)_wrap_ListCtrl_ClearAll, METH_O, NULL},
41519 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
41520 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41521 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL},
41522 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41523 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL},
41524 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
41525 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
41526 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
41527 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL},
41528 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
41529 { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL},
41530 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL},
41531 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL},
41532 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL},
41533 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41534 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41535 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41536 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41537 { (char *)"ListCtrl_SetItemFont", (PyCFunction) _wrap_ListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
41538 { (char *)"ListCtrl_GetItemFont", (PyCFunction) _wrap_ListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
41539 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL},
41540 { (char *)"ListCtrl_GetMainWindow", (PyCFunction)_wrap_ListCtrl_GetMainWindow, METH_O, NULL},
41541 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41542 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL},
41543 { (char *)"ListCtrl_swiginit", ListCtrl_swiginit, METH_VARARGS, NULL},
41544 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL},
41545 { (char *)"new_PreListView", (PyCFunction)_wrap_new_PreListView, METH_NOARGS, NULL},
41546 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41547 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL},
41548 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL},
41549 { (char *)"ListView_GetFocusedItem", (PyCFunction)_wrap_ListView_GetFocusedItem, METH_O, NULL},
41550 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL},
41551 { (char *)"ListView_GetFirstSelected", (PyCFunction)_wrap_ListView_GetFirstSelected, METH_O, NULL},
41552 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
41553 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
41554 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
41555 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL},
41556 { (char *)"ListView_swiginit", ListView_swiginit, METH_VARARGS, NULL},
41557 { (char *)"new_TreeItemId", (PyCFunction)_wrap_new_TreeItemId, METH_NOARGS, NULL},
41558 { (char *)"delete_TreeItemId", (PyCFunction)_wrap_delete_TreeItemId, METH_O, NULL},
41559 { (char *)"TreeItemId_IsOk", (PyCFunction)_wrap_TreeItemId_IsOk, METH_O, NULL},
41560 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
41561 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
41562 { (char *)"TreeItemId_m_pItem_set", _wrap_TreeItemId_m_pItem_set, METH_VARARGS, NULL},
41563 { (char *)"TreeItemId_m_pItem_get", (PyCFunction)_wrap_TreeItemId_m_pItem_get, METH_O, NULL},
41564 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL},
41565 { (char *)"TreeItemId_swiginit", TreeItemId_swiginit, METH_VARARGS, NULL},
41566 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41567 { (char *)"delete_TreeItemData", (PyCFunction)_wrap_delete_TreeItemData, METH_O, NULL},
41568 { (char *)"TreeItemData_GetData", (PyCFunction)_wrap_TreeItemData_GetData, METH_O, NULL},
41569 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
41570 { (char *)"TreeItemData_GetId", (PyCFunction)_wrap_TreeItemData_GetId, METH_O, NULL},
41571 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
41572 { (char *)"TreeItemData_Destroy", (PyCFunction)_wrap_TreeItemData_Destroy, METH_O, NULL},
41573 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL},
41574 { (char *)"TreeItemData_swiginit", TreeItemData_swiginit, METH_VARARGS, NULL},
41575 { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41576 { (char *)"TreeEvent_GetItem", (PyCFunction)_wrap_TreeEvent_GetItem, METH_O, NULL},
41577 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
41578 { (char *)"TreeEvent_GetOldItem", (PyCFunction)_wrap_TreeEvent_GetOldItem, METH_O, NULL},
41579 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL},
41580 { (char *)"TreeEvent_GetPoint", (PyCFunction)_wrap_TreeEvent_GetPoint, METH_O, NULL},
41581 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL},
41582 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction)_wrap_TreeEvent_GetKeyEvent, METH_O, NULL},
41583 { (char *)"TreeEvent_GetKeyCode", (PyCFunction)_wrap_TreeEvent_GetKeyCode, METH_O, NULL},
41584 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41585 { (char *)"TreeEvent_GetLabel", (PyCFunction)_wrap_TreeEvent_GetLabel, METH_O, NULL},
41586 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
41587 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction)_wrap_TreeEvent_IsEditCancelled, METH_O, NULL},
41588 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
41589 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
41590 { (char *)"TreeEvent_GetToolTip", (PyCFunction)_wrap_TreeEvent_GetToolTip, METH_O, NULL},
41591 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL},
41592 { (char *)"TreeEvent_swiginit", TreeEvent_swiginit, METH_VARARGS, NULL},
41593 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41594 { (char *)"new_PreTreeCtrl", (PyCFunction)_wrap_new_PreTreeCtrl, METH_NOARGS, NULL},
41595 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41596 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
41597 { (char *)"TreeCtrl_GetCount", (PyCFunction)_wrap_TreeCtrl_GetCount, METH_O, NULL},
41598 { (char *)"TreeCtrl_GetIndent", (PyCFunction)_wrap_TreeCtrl_GetIndent, METH_O, NULL},
41599 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL},
41600 { (char *)"TreeCtrl_GetSpacing", (PyCFunction)_wrap_TreeCtrl_GetSpacing, METH_O, NULL},
41601 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
41602 { (char *)"TreeCtrl_GetImageList", (PyCFunction)_wrap_TreeCtrl_GetImageList, METH_O, NULL},
41603 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction)_wrap_TreeCtrl_GetStateImageList, METH_O, NULL},
41604 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41605 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41606 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41607 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41608 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
41609 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
41610 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41611 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
41612 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41613 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41614 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
41615 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
41616 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
41617 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41618 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
41619 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
41620 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL},
41621 { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL},
41622 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41623 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41624 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
41625 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41626 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
41627 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
41628 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
41629 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL},
41630 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL},
41631 { (char *)"TreeCtrl_GetRootItem", (PyCFunction)_wrap_TreeCtrl_GetRootItem, METH_O, NULL},
41632 { (char *)"TreeCtrl_GetSelection", (PyCFunction)_wrap_TreeCtrl_GetSelection, METH_O, NULL},
41633 { (char *)"TreeCtrl_GetSelections", (PyCFunction)_wrap_TreeCtrl_GetSelections, METH_O, NULL},
41634 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL},
41635 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL},
41636 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL},
41637 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL},
41638 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL},
41639 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL},
41640 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction)_wrap_TreeCtrl_GetFirstVisibleItem, METH_O, NULL},
41641 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41642 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41643 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL},
41644 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL},
41645 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
41646 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL},
41647 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL},
41648 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
41649 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL},
41650 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction)_wrap_TreeCtrl_DeleteAllItems, METH_O, NULL},
41651 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL},
41652 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
41653 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL},
41654 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL},
41655 { (char *)"TreeCtrl_Unselect", (PyCFunction)_wrap_TreeCtrl_Unselect, METH_O, NULL},
41656 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL},
41657 { (char *)"TreeCtrl_UnselectAll", (PyCFunction)_wrap_TreeCtrl_UnselectAll, METH_O, NULL},
41658 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL},
41659 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41660 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41661 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL},
41662 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
41663 { (char *)"TreeCtrl_GetEditControl", (PyCFunction)_wrap_TreeCtrl_GetEditControl, METH_O, NULL},
41664 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL},
41665 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
41666 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL},
41667 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41668 { (char *)"TreeCtrl_SetQuickBestSize", (PyCFunction) _wrap_TreeCtrl_SetQuickBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
41669 { (char *)"TreeCtrl_GetQuickBestSize", (PyCFunction)_wrap_TreeCtrl_GetQuickBestSize, METH_O, NULL},
41670 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL},
41671 { (char *)"TreeCtrl_swiginit", TreeCtrl_swiginit, METH_VARARGS, NULL},
41672 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41673 { (char *)"new_PreGenericDirCtrl", (PyCFunction)_wrap_new_PreGenericDirCtrl, METH_NOARGS, NULL},
41674 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41675 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL},
41676 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction)_wrap_GenericDirCtrl_GetDefaultPath, METH_O, NULL},
41677 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL},
41678 { (char *)"GenericDirCtrl_GetPath", (PyCFunction)_wrap_GenericDirCtrl_GetPath, METH_O, NULL},
41679 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction)_wrap_GenericDirCtrl_GetFilePath, METH_O, NULL},
41680 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
41681 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL},
41682 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction)_wrap_GenericDirCtrl_GetShowHidden, METH_O, NULL},
41683 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction)_wrap_GenericDirCtrl_GetFilter, METH_O, NULL},
41684 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL},
41685 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction)_wrap_GenericDirCtrl_GetFilterIndex, METH_O, NULL},
41686 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL},
41687 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction)_wrap_GenericDirCtrl_GetRootId, METH_O, NULL},
41688 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetTreeCtrl, METH_O, NULL},
41689 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetFilterListCtrl, METH_O, NULL},
41690 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL},
41691 { (char *)"GenericDirCtrl_DoResize", (PyCFunction)_wrap_GenericDirCtrl_DoResize, METH_O, NULL},
41692 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction)_wrap_GenericDirCtrl_ReCreateTree, METH_O, NULL},
41693 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL},
41694 { (char *)"GenericDirCtrl_swiginit", GenericDirCtrl_swiginit, METH_VARARGS, NULL},
41695 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41696 { (char *)"new_PreDirFilterListCtrl", (PyCFunction)_wrap_new_PreDirFilterListCtrl, METH_NOARGS, NULL},
41697 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41698 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL},
41699 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL},
41700 { (char *)"DirFilterListCtrl_swiginit", DirFilterListCtrl_swiginit, METH_VARARGS, NULL},
41701 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL},
41702 { (char *)"new_PrePyControl", (PyCFunction)_wrap_new_PrePyControl, METH_NOARGS, NULL},
41703 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
41704 { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
41705 { (char *)"PyControl_DoEraseBackground", (PyCFunction) _wrap_PyControl_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL},
41706 { (char *)"PyControl_DoMoveWindow", (PyCFunction) _wrap_PyControl_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL},
41707 { (char *)"PyControl_DoSetSize", (PyCFunction) _wrap_PyControl_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL},
41708 { (char *)"PyControl_DoSetClientSize", (PyCFunction) _wrap_PyControl_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL},
41709 { (char *)"PyControl_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL},
41710 { (char *)"PyControl_DoGetSize", (PyCFunction)_wrap_PyControl_DoGetSize, METH_O, NULL},
41711 { (char *)"PyControl_DoGetClientSize", (PyCFunction)_wrap_PyControl_DoGetClientSize, METH_O, NULL},
41712 { (char *)"PyControl_DoGetPosition", (PyCFunction)_wrap_PyControl_DoGetPosition, METH_O, NULL},
41713 { (char *)"PyControl_DoGetVirtualSize", (PyCFunction)_wrap_PyControl_DoGetVirtualSize, METH_O, NULL},
41714 { (char *)"PyControl_DoGetBestSize", (PyCFunction)_wrap_PyControl_DoGetBestSize, METH_O, NULL},
41715 { (char *)"PyControl_GetDefaultAttributes", (PyCFunction)_wrap_PyControl_GetDefaultAttributes, METH_O, NULL},
41716 { (char *)"PyControl_OnInternalIdle", (PyCFunction)_wrap_PyControl_OnInternalIdle, METH_O, NULL},
41717 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL},
41718 { (char *)"PyControl_swiginit", PyControl_swiginit, METH_VARARGS, NULL},
41719 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41720 { (char *)"HelpEvent_GetPosition", (PyCFunction)_wrap_HelpEvent_GetPosition, METH_O, NULL},
41721 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41722 { (char *)"HelpEvent_GetLink", (PyCFunction)_wrap_HelpEvent_GetLink, METH_O, NULL},
41723 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL},
41724 { (char *)"HelpEvent_GetTarget", (PyCFunction)_wrap_HelpEvent_GetTarget, METH_O, NULL},
41725 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL},
41726 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL},
41727 { (char *)"HelpEvent_swiginit", HelpEvent_swiginit, METH_VARARGS, NULL},
41728 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41729 { (char *)"delete_ContextHelp", (PyCFunction)_wrap_delete_ContextHelp, METH_O, NULL},
41730 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41731 { (char *)"ContextHelp_EndContextHelp", (PyCFunction)_wrap_ContextHelp_EndContextHelp, METH_O, NULL},
41732 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL},
41733 { (char *)"ContextHelp_swiginit", ContextHelp_swiginit, METH_VARARGS, NULL},
41734 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL},
41735 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL},
41736 { (char *)"ContextHelpButton_swiginit", ContextHelpButton_swiginit, METH_VARARGS, NULL},
41737 { (char *)"delete_HelpProvider", (PyCFunction)_wrap_delete_HelpProvider, METH_O, NULL},
41738 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL},
41739 { (char *)"HelpProvider_Get", (PyCFunction)_wrap_HelpProvider_Get, METH_NOARGS, NULL},
41740 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41741 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41742 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41743 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL},
41744 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41745 { (char *)"HelpProvider_Destroy", (PyCFunction)_wrap_HelpProvider_Destroy, METH_O, NULL},
41746 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL},
41747 { (char *)"new_SimpleHelpProvider", (PyCFunction)_wrap_new_SimpleHelpProvider, METH_NOARGS, NULL},
41748 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL},
41749 { (char *)"SimpleHelpProvider_swiginit", SimpleHelpProvider_swiginit, METH_VARARGS, NULL},
41750 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL},
41751 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL},
41752 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL},
41753 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL},
41754 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL},
41755 { (char *)"delete_DragImage", (PyCFunction)_wrap_delete_DragImage, METH_O, NULL},
41756 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
41757 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL},
41758 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL},
41759 { (char *)"DragImage_EndDrag", (PyCFunction)_wrap_DragImage_EndDrag, METH_O, NULL},
41760 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL},
41761 { (char *)"DragImage_Show", (PyCFunction)_wrap_DragImage_Show, METH_O, NULL},
41762 { (char *)"DragImage_Hide", (PyCFunction)_wrap_DragImage_Hide, METH_O, NULL},
41763 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL},
41764 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
41765 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL},
41766 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
41767 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL},
41768 { (char *)"DragImage_swiginit", DragImage_swiginit, METH_VARARGS, NULL},
41769 { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41770 { (char *)"new_PreDatePickerCtrl", (PyCFunction)_wrap_new_PreDatePickerCtrl, METH_NOARGS, NULL},
41771 { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41772 { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41773 { (char *)"DatePickerCtrl_GetValue", (PyCFunction)_wrap_DatePickerCtrl_GetValue, METH_O, NULL},
41774 { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
41775 { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction)_wrap_DatePickerCtrl_GetLowerLimit, METH_O, NULL},
41776 { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction)_wrap_DatePickerCtrl_GetUpperLimit, METH_O, NULL},
41777 { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL},
41778 { (char *)"DatePickerCtrl_swiginit", DatePickerCtrl_swiginit, METH_VARARGS, NULL},
41779 { NULL, NULL, 0, NULL }
41780 };
41781
41782
41783 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
41784
41785 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
41786 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
41787 }
41788 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
41789 return (void *)((wxEvent *) ((wxMenuEvent *) x));
41790 }
41791 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
41792 return (void *)((wxEvent *) ((wxCloseEvent *) x));
41793 }
41794 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
41795 return (void *)((wxEvent *) ((wxMouseEvent *) x));
41796 }
41797 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
41798 return (void *)((wxEvent *) ((wxEraseEvent *) x));
41799 }
41800 static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) {
41801 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
41802 }
41803 static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
41804 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
41805 }
41806 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
41807 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
41808 }
41809 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
41810 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
41811 }
41812 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
41813 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
41814 }
41815 static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
41816 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
41817 }
41818 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
41819 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
41820 }
41821 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
41822 return (void *)((wxEvent *) ((wxPyEvent *) x));
41823 }
41824 static void *_p_wxListEventTo_p_wxEvent(void *x) {
41825 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
41826 }
41827 static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
41828 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
41829 }
41830 static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
41831 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
41832 }
41833 static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) {
41834 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
41835 }
41836 static void *_p_wxTreebookEventTo_p_wxEvent(void *x) {
41837 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
41838 }
41839 static void *_p_wxToolbookEventTo_p_wxEvent(void *x) {
41840 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
41841 }
41842 static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
41843 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
41844 }
41845 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
41846 return (void *)((wxEvent *) ((wxIdleEvent *) x));
41847 }
41848 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
41849 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
41850 }
41851 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
41852 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
41853 }
41854 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
41855 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
41856 }
41857 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
41858 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
41859 }
41860 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
41861 return (void *)((wxEvent *) ((wxActivateEvent *) x));
41862 }
41863 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
41864 return (void *)((wxEvent *) ((wxSizeEvent *) x));
41865 }
41866 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
41867 return (void *)((wxEvent *) ((wxMoveEvent *) x));
41868 }
41869 static void *_p_wxDateEventTo_p_wxEvent(void *x) {
41870 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
41871 }
41872 static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) {
41873 return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x));
41874 }
41875 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
41876 return (void *)((wxEvent *) ((wxPaintEvent *) x));
41877 }
41878 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
41879 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
41880 }
41881 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
41882 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
41883 }
41884 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
41885 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
41886 }
41887 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
41888 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
41889 }
41890 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
41891 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
41892 }
41893 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
41894 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
41895 }
41896 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
41897 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
41898 }
41899 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
41900 return (void *)((wxEvent *) ((wxFocusEvent *) x));
41901 }
41902 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
41903 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
41904 }
41905 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
41906 return (void *)((wxEvent *) ((wxShowEvent *) x));
41907 }
41908 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
41909 return (void *)((wxEvent *) ((wxCommandEvent *) x));
41910 }
41911 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
41912 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
41913 }
41914 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
41915 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
41916 }
41917 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
41918 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
41919 }
41920 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
41921 return (void *)((wxEvent *) ((wxKeyEvent *) x));
41922 }
41923 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
41924 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
41925 }
41926 static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
41927 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
41928 }
41929 static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
41930 return (void *)((wxItemContainer *) ((wxComboBox *) x));
41931 }
41932 static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
41933 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
41934 }
41935 static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
41936 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
41937 }
41938 static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
41939 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
41940 }
41941 static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
41942 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
41943 }
41944 static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
41945 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
41946 }
41947 static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
41948 return (void *)((wxPyListCtrl *) ((wxListView *) x));
41949 }
41950 static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) {
41951 return (void *)((wxControl *) ((wxBookCtrlBase *) x));
41952 }
41953 static void *_p_wxToolBarTo_p_wxControl(void *x) {
41954 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
41955 }
41956 static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
41957 return (void *)((wxControl *) ((wxToggleButton *) x));
41958 }
41959 static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
41960 return (void *)((wxControl *) ((wxRadioButton *) x));
41961 }
41962 static void *_p_wxToolbookTo_p_wxControl(void *x) {
41963 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxToolbook *) x));
41964 }
41965 static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
41966 return (void *)((wxControl *) ((wxToolBarBase *) x));
41967 }
41968 static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
41969 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
41970 }
41971 static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
41972 return (void *)((wxControl *) ((wxPyListCtrl *) x));
41973 }
41974 static void *_p_wxComboBoxTo_p_wxControl(void *x) {
41975 return (void *)((wxControl *) ((wxComboBox *) x));
41976 }
41977 static void *_p_wxPyControlTo_p_wxControl(void *x) {
41978 return (void *)((wxControl *) ((wxPyControl *) x));
41979 }
41980 static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
41981 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
41982 }
41983 static void *_p_wxScrollBarTo_p_wxControl(void *x) {
41984 return (void *)((wxControl *) ((wxScrollBar *) x));
41985 }
41986 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
41987 return (void *)((wxControl *) ((wxControlWithItems *) x));
41988 }
41989 static void *_p_wxGaugeTo_p_wxControl(void *x) {
41990 return (void *)((wxControl *) ((wxGauge *) x));
41991 }
41992 static void *_p_wxStaticLineTo_p_wxControl(void *x) {
41993 return (void *)((wxControl *) ((wxStaticLine *) x));
41994 }
41995 static void *_p_wxChoicebookTo_p_wxControl(void *x) {
41996 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x));
41997 }
41998 static void *_p_wxListbookTo_p_wxControl(void *x) {
41999 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x));
42000 }
42001 static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
42002 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
42003 }
42004 static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
42005 return (void *)((wxControl *) ((wxCheckBox *) x));
42006 }
42007 static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
42008 return (void *)((wxControl *) ((wxRadioBox *) x));
42009 }
42010 static void *_p_wxChoiceTo_p_wxControl(void *x) {
42011 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
42012 }
42013 static void *_p_wxListBoxTo_p_wxControl(void *x) {
42014 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
42015 }
42016 static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
42017 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
42018 }
42019 static void *_p_wxListViewTo_p_wxControl(void *x) {
42020 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
42021 }
42022 static void *_p_wxNotebookTo_p_wxControl(void *x) {
42023 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x));
42024 }
42025 static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
42026 return (void *)((wxControl *) ((wxStaticBitmap *) x));
42027 }
42028 static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
42029 return (void *)((wxControl *) ((wxSpinCtrl *) x));
42030 }
42031 static void *_p_wxStaticTextTo_p_wxControl(void *x) {
42032 return (void *)((wxControl *) ((wxStaticText *) x));
42033 }
42034 static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
42035 return (void *)((wxControl *) ((wxStaticBox *) x));
42036 }
42037 static void *_p_wxSliderTo_p_wxControl(void *x) {
42038 return (void *)((wxControl *) ((wxSlider *) x));
42039 }
42040 static void *_p_wxTreebookTo_p_wxControl(void *x) {
42041 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxTreebook *) x));
42042 }
42043 static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
42044 return (void *)((wxControl *) ((wxSpinButton *) x));
42045 }
42046 static void *_p_wxButtonTo_p_wxControl(void *x) {
42047 return (void *)((wxControl *) ((wxButton *) x));
42048 }
42049 static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
42050 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
42051 }
42052 static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
42053 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
42054 }
42055 static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) {
42056 return (void *)((wxControl *) ((wxDatePickerCtrl *) x));
42057 }
42058 static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
42059 return (void *)((wxControl *) ((wxTextCtrl *) x));
42060 }
42061 static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
42062 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
42063 }
42064 static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
42065 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
42066 }
42067 static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) {
42068 return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
42069 }
42070 static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
42071 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
42072 }
42073 static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
42074 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
42075 }
42076 static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
42077 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
42078 }
42079 static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
42080 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
42081 }
42082 static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
42083 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
42084 }
42085 static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) {
42086 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
42087 }
42088 static void *_p_wxTreebookEventTo_p_wxNotifyEvent(void *x) {
42089 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
42090 }
42091 static void *_p_wxToolbookEventTo_p_wxNotifyEvent(void *x) {
42092 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
42093 }
42094 static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) {
42095 return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x));
42096 }
42097 static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) {
42098 return (void *)((wxBookCtrlBase *) ((wxListbook *) x));
42099 }
42100 static void *_p_wxToolbookTo_p_wxBookCtrlBase(void *x) {
42101 return (void *)((wxBookCtrlBase *) ((wxToolbook *) x));
42102 }
42103 static void *_p_wxTreebookTo_p_wxBookCtrlBase(void *x) {
42104 return (void *)((wxBookCtrlBase *) ((wxTreebook *) x));
42105 }
42106 static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) {
42107 return (void *)((wxBookCtrlBase *) ((wxNotebook *) x));
42108 }
42109 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
42110 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
42111 }
42112 static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) {
42113 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
42114 }
42115 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
42116 return (void *)((wxEvtHandler *) ((wxValidator *) x));
42117 }
42118 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
42119 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
42120 }
42121 static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
42122 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
42123 }
42124 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
42125 return (void *)((wxEvtHandler *) ((wxMenu *) x));
42126 }
42127 static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
42128 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
42129 }
42130 static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
42131 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
42132 }
42133 static void *_p_wxToolbookTo_p_wxEvtHandler(void *x) {
42134 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
42135 }
42136 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
42137 return (void *)((wxEvtHandler *) ((wxWindow *) x));
42138 }
42139 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
42140 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
42141 }
42142 static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
42143 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x));
42144 }
42145 static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
42146 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
42147 }
42148 static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
42149 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
42150 }
42151 static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
42152 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
42153 }
42154 static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
42155 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
42156 }
42157 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
42158 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
42159 }
42160 static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
42161 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
42162 }
42163 static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
42164 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
42165 }
42166 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
42167 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
42168 }
42169 static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
42170 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
42171 }
42172 static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
42173 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
42174 }
42175 static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) {
42176 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
42177 }
42178 static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
42179 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
42180 }
42181 static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
42182 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
42183 }
42184 static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
42185 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
42186 }
42187 static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
42188 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
42189 }
42190 static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
42191 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
42192 }
42193 static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
42194 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
42195 }
42196 static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
42197 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
42198 }
42199 static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
42200 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
42201 }
42202 static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
42203 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
42204 }
42205 static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
42206 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
42207 }
42208 static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
42209 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
42210 }
42211 static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
42212 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
42213 }
42214 static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
42215 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
42216 }
42217 static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
42218 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
42219 }
42220 static void *_p_wxTreebookTo_p_wxEvtHandler(void *x) {
42221 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
42222 }
42223 static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
42224 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
42225 }
42226 static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
42227 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
42228 }
42229 static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
42230 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
42231 }
42232 static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
42233 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
42234 }
42235 static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) {
42236 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
42237 }
42238 static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
42239 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
42240 }
42241 static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
42242 return (void *)((wxListBox *) ((wxCheckListBox *) x));
42243 }
42244 static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
42245 return (void *)((wxButton *) ((wxBitmapButton *) x));
42246 }
42247 static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
42248 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
42249 }
42250 static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
42251 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
42252 }
42253 static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
42254 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
42255 }
42256 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
42257 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
42258 }
42259 static void *_p_wxToolbookTo_p_wxObject(void *x) {
42260 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
42261 }
42262 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
42263 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
42264 }
42265 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
42266 return (void *)((wxObject *) ((wxSizerItem *) x));
42267 }
42268 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
42269 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
42270 }
42271 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
42272 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
42273 }
42274 static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
42275 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
42276 }
42277 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
42278 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
42279 }
42280 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
42281 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
42282 }
42283 static void *_p_wxSizerTo_p_wxObject(void *x) {
42284 return (void *)((wxObject *) ((wxSizer *) x));
42285 }
42286 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
42287 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
42288 }
42289 static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
42290 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
42291 }
42292 static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
42293 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
42294 }
42295 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
42296 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
42297 }
42298 static void *_p_wxEventTo_p_wxObject(void *x) {
42299 return (void *)((wxObject *) ((wxEvent *) x));
42300 }
42301 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
42302 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
42303 }
42304 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
42305 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
42306 }
42307 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
42308 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
42309 }
42310 static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
42311 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
42312 }
42313 static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
42314 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
42315 }
42316 static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
42317 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
42318 }
42319 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
42320 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
42321 }
42322 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
42323 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
42324 }
42325 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
42326 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
42327 }
42328 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
42329 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
42330 }
42331 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
42332 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
42333 }
42334 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
42335 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
42336 }
42337 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
42338 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
42339 }
42340 static void *_p_wxStaticLineTo_p_wxObject(void *x) {
42341 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
42342 }
42343 static void *_p_wxControlTo_p_wxObject(void *x) {
42344 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
42345 }
42346 static void *_p_wxPyControlTo_p_wxObject(void *x) {
42347 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
42348 }
42349 static void *_p_wxGaugeTo_p_wxObject(void *x) {
42350 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
42351 }
42352 static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
42353 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
42354 }
42355 static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
42356 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
42357 }
42358 static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
42359 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
42360 }
42361 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
42362 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
42363 }
42364 static void *_p_wxChoiceTo_p_wxObject(void *x) {
42365 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
42366 }
42367 static void *_p_wxFSFileTo_p_wxObject(void *x) {
42368 return (void *)((wxObject *) ((wxFSFile *) x));
42369 }
42370 static void *_p_wxPySizerTo_p_wxObject(void *x) {
42371 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
42372 }
42373 static void *_p_wxTreebookTo_p_wxObject(void *x) {
42374 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
42375 }
42376 static void *_p_wxListViewTo_p_wxObject(void *x) {
42377 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
42378 }
42379 static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
42380 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
42381 }
42382 static void *_p_wxNotebookTo_p_wxObject(void *x) {
42383 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
42384 }
42385 static void *_p_wxPyEventTo_p_wxObject(void *x) {
42386 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
42387 }
42388 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
42389 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
42390 }
42391 static void *_p_wxChoicebookTo_p_wxObject(void *x) {
42392 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
42393 }
42394 static void *_p_wxListbookTo_p_wxObject(void *x) {
42395 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
42396 }
42397 static void *_p_wxShowEventTo_p_wxObject(void *x) {
42398 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
42399 }
42400 static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
42401 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
42402 }
42403 static void *_p_wxSliderTo_p_wxObject(void *x) {
42404 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
42405 }
42406 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
42407 return (void *)((wxObject *) ((wxMenuItem *) x));
42408 }
42409 static void *_p_wxDateEventTo_p_wxObject(void *x) {
42410 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
42411 }
42412 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
42413 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
42414 }
42415 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
42416 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
42417 }
42418 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
42419 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
42420 }
42421 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
42422 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
42423 }
42424 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
42425 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
42426 }
42427 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
42428 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
42429 }
42430 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
42431 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
42432 }
42433 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
42434 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
42435 }
42436 static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
42437 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
42438 }
42439 static void *_p_wxContextHelpTo_p_wxObject(void *x) {
42440 return (void *)((wxObject *) ((wxContextHelp *) x));
42441 }
42442 static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) {
42443 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
42444 }
42445 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
42446 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
42447 }
42448 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
42449 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
42450 }
42451 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
42452 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
42453 }
42454 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
42455 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
42456 }
42457 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
42458 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
42459 }
42460 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
42461 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
42462 }
42463 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
42464 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
42465 }
42466 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
42467 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
42468 }
42469 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
42470 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
42471 }
42472 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
42473 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
42474 }
42475 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
42476 return (void *)((wxObject *) ((wxImageHandler *) x));
42477 }
42478 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
42479 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
42480 }
42481 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
42482 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
42483 }
42484 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
42485 return (void *)((wxObject *) ((wxEvtHandler *) x));
42486 }
42487 static void *_p_wxListEventTo_p_wxObject(void *x) {
42488 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
42489 }
42490 static void *_p_wxListBoxTo_p_wxObject(void *x) {
42491 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
42492 }
42493 static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
42494 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
42495 }
42496 static void *_p_wxButtonTo_p_wxObject(void *x) {
42497 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
42498 }
42499 static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
42500 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
42501 }
42502 static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
42503 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
42504 }
42505 static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
42506 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
42507 }
42508 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
42509 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
42510 }
42511 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
42512 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
42513 }
42514 static void *_p_wxScrollBarTo_p_wxObject(void *x) {
42515 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
42516 }
42517 static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
42518 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
42519 }
42520 static void *_p_wxComboBoxTo_p_wxObject(void *x) {
42521 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x));
42522 }
42523 static void *_p_wxHelpEventTo_p_wxObject(void *x) {
42524 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
42525 }
42526 static void *_p_wxListItemTo_p_wxObject(void *x) {
42527 return (void *)((wxObject *) ((wxListItem *) x));
42528 }
42529 static void *_p_wxImageTo_p_wxObject(void *x) {
42530 return (void *)((wxObject *) ((wxImage *) x));
42531 }
42532 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
42533 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
42534 }
42535 static void *_p_wxSpinEventTo_p_wxObject(void *x) {
42536 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
42537 }
42538 static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
42539 return (void *)((wxObject *) ((wxGenericDragImage *) x));
42540 }
42541 static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
42542 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
42543 }
42544 static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
42545 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
42546 }
42547 static void *_p_wxListbookEventTo_p_wxObject(void *x) {
42548 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
42549 }
42550 static void *_p_wxChoicebookEventTo_p_wxObject(void *x) {
42551 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
42552 }
42553 static void *_p_wxTreebookEventTo_p_wxObject(void *x) {
42554 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
42555 }
42556 static void *_p_wxToolbookEventTo_p_wxObject(void *x) {
42557 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
42558 }
42559 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
42560 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
42561 }
42562 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
42563 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
42564 }
42565 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
42566 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
42567 }
42568 static void *_p_wxWindowTo_p_wxObject(void *x) {
42569 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
42570 }
42571 static void *_p_wxMenuTo_p_wxObject(void *x) {
42572 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
42573 }
42574 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
42575 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
42576 }
42577 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
42578 return (void *)((wxObject *) ((wxFileSystem *) x));
42579 }
42580 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
42581 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
42582 }
42583 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
42584 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
42585 }
42586 static void *_p_wxPyAppTo_p_wxObject(void *x) {
42587 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
42588 }
42589 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
42590 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
42591 }
42592 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
42593 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
42594 }
42595 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
42596 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
42597 }
42598 static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) {
42599 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
42600 }
42601 static void *_p_wxTreeEventTo_p_wxObject(void *x) {
42602 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
42603 }
42604 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
42605 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
42606 }
42607 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
42608 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
42609 }
42610 static void *_p_wxStaticTextTo_p_wxObject(void *x) {
42611 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
42612 }
42613 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
42614 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
42615 }
42616 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
42617 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
42618 }
42619 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
42620 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
42621 }
42622 static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) {
42623 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
42624 }
42625 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
42626 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
42627 }
42628 static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
42629 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
42630 }
42631 static void *_p_wxToolBarTo_p_wxObject(void *x) {
42632 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
42633 }
42634 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
42635 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
42636 }
42637 static void *_p_wxValidatorTo_p_wxObject(void *x) {
42638 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
42639 }
42640 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
42641 return (void *)((wxWindow *) ((wxMenuBar *) x));
42642 }
42643 static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) {
42644 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x));
42645 }
42646 static void *_p_wxToolBarTo_p_wxWindow(void *x) {
42647 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
42648 }
42649 static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
42650 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
42651 }
42652 static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
42653 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
42654 }
42655 static void *_p_wxToolbookTo_p_wxWindow(void *x) {
42656 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
42657 }
42658 static void *_p_wxControlTo_p_wxWindow(void *x) {
42659 return (void *)((wxWindow *) ((wxControl *) x));
42660 }
42661 static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
42662 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
42663 }
42664 static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
42665 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
42666 }
42667 static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
42668 return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x));
42669 }
42670 static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
42671 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
42672 }
42673 static void *_p_wxPyControlTo_p_wxWindow(void *x) {
42674 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
42675 }
42676 static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
42677 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
42678 }
42679 static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
42680 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
42681 }
42682 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
42683 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
42684 }
42685 static void *_p_wxGaugeTo_p_wxWindow(void *x) {
42686 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
42687 }
42688 static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
42689 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
42690 }
42691 static void *_p_wxChoicebookTo_p_wxWindow(void *x) {
42692 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
42693 }
42694 static void *_p_wxListbookTo_p_wxWindow(void *x) {
42695 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
42696 }
42697 static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
42698 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
42699 }
42700 static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
42701 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
42702 }
42703 static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
42704 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
42705 }
42706 static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
42707 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
42708 }
42709 static void *_p_wxChoiceTo_p_wxWindow(void *x) {
42710 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
42711 }
42712 static void *_p_wxListBoxTo_p_wxWindow(void *x) {
42713 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
42714 }
42715 static void *_p_wxListViewTo_p_wxWindow(void *x) {
42716 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
42717 }
42718 static void *_p_wxNotebookTo_p_wxWindow(void *x) {
42719 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
42720 }
42721 static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
42722 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
42723 }
42724 static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
42725 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
42726 }
42727 static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
42728 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
42729 }
42730 static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
42731 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
42732 }
42733 static void *_p_wxSliderTo_p_wxWindow(void *x) {
42734 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
42735 }
42736 static void *_p_wxTreebookTo_p_wxWindow(void *x) {
42737 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
42738 }
42739 static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
42740 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
42741 }
42742 static void *_p_wxButtonTo_p_wxWindow(void *x) {
42743 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
42744 }
42745 static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
42746 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
42747 }
42748 static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
42749 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
42750 }
42751 static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) {
42752 return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x));
42753 }
42754 static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
42755 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
42756 }
42757 static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
42758 return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
42759 }
42760 static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
42761 return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
42762 }
42763 static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
42764 return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
42765 }
42766 static void *_p_wxTreebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
42767 return (void *)((wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
42768 }
42769 static void *_p_wxToolbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
42770 return (void *)((wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
42771 }
42772 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
42773 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
42774 }
42775 static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) {
42776 return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x));
42777 }
42778 static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
42779 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
42780 }
42781 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
42782 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
42783 }
42784 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
42785 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
42786 }
42787 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
42788 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
42789 }
42790 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
42791 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
42792 }
42793 static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
42794 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
42795 }
42796 static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
42797 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
42798 }
42799 static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) {
42800 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
42801 }
42802 static void *_p_wxTreebookEventTo_p_wxCommandEvent(void *x) {
42803 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
42804 }
42805 static void *_p_wxToolbookEventTo_p_wxCommandEvent(void *x) {
42806 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
42807 }
42808 static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
42809 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
42810 }
42811 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
42812 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
42813 }
42814 static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
42815 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
42816 }
42817 static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) {
42818 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
42819 }
42820 static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
42821 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
42822 }
42823 static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
42824 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
42825 }
42826 static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
42827 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
42828 }
42829 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
42830 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
42831 }
42832 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
42833 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
42834 }
42835 static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
42836 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
42837 }
42838 static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
42839 return (void *)((wxControlWithItems *) ((wxChoice *) x));
42840 }
42841 static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
42842 return (void *)((wxControlWithItems *) ((wxListBox *) x));
42843 }
42844 static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
42845 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
42846 }
42847 static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
42848 return (void *)((wxValidator *) ((wxPyValidator *) x));
42849 }
42850 static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0};
42851 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
42852 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};
42853 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
42854 static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
42855 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
42856 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
42857 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
42858 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
42859 static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0};
42860 static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0};
42861 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
42862 static swig_type_info _swigt__p_wxBitmapButton = {"_p_wxBitmapButton", "wxBitmapButton *", 0, 0, (void*)0, 0};
42863 static swig_type_info _swigt__p_wxBookCtrlBase = {"_p_wxBookCtrlBase", "wxBookCtrlBase *", 0, 0, (void*)0, 0};
42864 static swig_type_info _swigt__p_wxBookCtrlBaseEvent = {"_p_wxBookCtrlBaseEvent", "wxBookCtrlBaseEvent *", 0, 0, (void*)0, 0};
42865 static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, (void*)0, 0};
42866 static swig_type_info _swigt__p_wxCheckBox = {"_p_wxCheckBox", "wxCheckBox *", 0, 0, (void*)0, 0};
42867 static swig_type_info _swigt__p_wxCheckListBox = {"_p_wxCheckListBox", "wxCheckListBox *", 0, 0, (void*)0, 0};
42868 static swig_type_info _swigt__p_wxChoice = {"_p_wxChoice", "wxChoice *", 0, 0, (void*)0, 0};
42869 static swig_type_info _swigt__p_wxChoicebook = {"_p_wxChoicebook", "wxChoicebook *", 0, 0, (void*)0, 0};
42870 static swig_type_info _swigt__p_wxChoicebookEvent = {"_p_wxChoicebookEvent", "wxChoicebookEvent *", 0, 0, (void*)0, 0};
42871 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
42872 static swig_type_info _swigt__p_wxComboBox = {"_p_wxComboBox", "wxComboBox *", 0, 0, (void*)0, 0};
42873 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0};
42874 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
42875 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
42876 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
42877 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
42878 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
42879 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
42880 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
42881 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
42882 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
42883 static swig_type_info _swigt__p_wxContextHelp = {"_p_wxContextHelp", "wxContextHelp *", 0, 0, (void*)0, 0};
42884 static swig_type_info _swigt__p_wxContextHelpButton = {"_p_wxContextHelpButton", "wxContextHelpButton *", 0, 0, (void*)0, 0};
42885 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, (void*)0, 0};
42886 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, (void*)0, 0};
42887 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
42888 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
42889 static swig_type_info _swigt__p_wxDatePickerCtrl = {"_p_wxDatePickerCtrl", "wxDatePickerCtrl *", 0, 0, (void*)0, 0};
42890 static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0};
42891 static swig_type_info _swigt__p_wxDirFilterListCtrl = {"_p_wxDirFilterListCtrl", "wxDirFilterListCtrl *", 0, 0, (void*)0, 0};
42892 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
42893 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0};
42894 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
42895 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
42896 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
42897 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
42898 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
42899 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
42900 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
42901 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
42902 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
42903 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
42904 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
42905 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
42906 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
42907 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
42908 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
42909 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
42910 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
42911 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
42912 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
42913 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
42914 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
42915 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
42916 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
42917 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
42918 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0};
42919 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
42920 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
42921 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
42922 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
42923 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
42924 static swig_type_info _swigt__p_wxGauge = {"_p_wxGauge", "wxGauge *", 0, 0, (void*)0, 0};
42925 static swig_type_info _swigt__p_wxGenericDirCtrl = {"_p_wxGenericDirCtrl", "wxGenericDirCtrl *", 0, 0, (void*)0, 0};
42926 static swig_type_info _swigt__p_wxGenericDragImage = {"_p_wxGenericDragImage", "wxGenericDragImage *", 0, 0, (void*)0, 0};
42927 static swig_type_info _swigt__p_wxHelpEvent = {"_p_wxHelpEvent", "wxHelpEvent *", 0, 0, (void*)0, 0};
42928 static swig_type_info _swigt__p_wxHelpProvider = {"_p_wxHelpProvider", "wxHelpProvider *", 0, 0, (void*)0, 0};
42929 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
42930 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
42931 static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, (void*)0, 0};
42932 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, (void*)0, 0};
42933 static swig_type_info _swigt__p_wxListBox = {"_p_wxListBox", "wxListBox *", 0, 0, (void*)0, 0};
42934 static swig_type_info _swigt__p_wxListEvent = {"_p_wxListEvent", "wxListEvent *", 0, 0, (void*)0, 0};
42935 static swig_type_info _swigt__p_wxListItem = {"_p_wxListItem", "wxListItem *", 0, 0, (void*)0, 0};
42936 static swig_type_info _swigt__p_wxListItemAttr = {"_p_wxListItemAttr", "wxListItemAttr *", 0, 0, (void*)0, 0};
42937 static swig_type_info _swigt__p_wxListView = {"_p_wxListView", "wxListView *", 0, 0, (void*)0, 0};
42938 static swig_type_info _swigt__p_wxListbook = {"_p_wxListbook", "wxListbook *", 0, 0, (void*)0, 0};
42939 static swig_type_info _swigt__p_wxListbookEvent = {"_p_wxListbookEvent", "wxListbookEvent *", 0, 0, (void*)0, 0};
42940 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
42941 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, (void*)0, 0};
42942 static swig_type_info _swigt__p_wxNotebook = {"_p_wxNotebook", "wxNotebook *", 0, 0, (void*)0, 0};
42943 static swig_type_info _swigt__p_wxNotebookEvent = {"_p_wxNotebookEvent", "wxNotebookEvent *", 0, 0, (void*)0, 0};
42944 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0};
42945 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
42946 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
42947 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
42948 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
42949 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
42950 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
42951 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
42952 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
42953 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
42954 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
42955 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
42956 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
42957 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
42958 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
42959 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
42960 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
42961 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
42962 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
42963 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
42964 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
42965 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
42966 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
42967 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
42968 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
42969 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
42970 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
42971 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
42972 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
42973 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
42974 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0};
42975 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
42976 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
42977 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
42978 static swig_type_info _swigt__p_wxPyControl = {"_p_wxPyControl", "wxPyControl *", 0, 0, (void*)0, 0};
42979 static swig_type_info _swigt__p_wxPyListCtrl = {"_p_wxPyListCtrl", "wxPyListCtrl *", 0, 0, (void*)0, 0};
42980 static swig_type_info _swigt__p_wxPyTreeCtrl = {"_p_wxPyTreeCtrl", "wxPyTreeCtrl *", 0, 0, (void*)0, 0};
42981 static swig_type_info _swigt__p_wxPyTreeItemData = {"_p_wxPyTreeItemData", "wxPyTreeItemData *", 0, 0, (void*)0, 0};
42982 static swig_type_info _swigt__p_wxRadioBox = {"_p_wxRadioBox", "wxRadioBox *", 0, 0, (void*)0, 0};
42983 static swig_type_info _swigt__p_wxRadioButton = {"_p_wxRadioButton", "wxRadioButton *", 0, 0, (void*)0, 0};
42984 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
42985 static swig_type_info _swigt__p_wxScrollBar = {"_p_wxScrollBar", "wxScrollBar *", 0, 0, (void*)0, 0};
42986 static swig_type_info _swigt__p_wxSimpleHelpProvider = {"_p_wxSimpleHelpProvider", "wxSimpleHelpProvider *", 0, 0, (void*)0, 0};
42987 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
42988 static swig_type_info _swigt__p_wxSlider = {"_p_wxSlider", "wxSlider *", 0, 0, (void*)0, 0};
42989 static swig_type_info _swigt__p_wxSpinButton = {"_p_wxSpinButton", "wxSpinButton *", 0, 0, (void*)0, 0};
42990 static swig_type_info _swigt__p_wxSpinCtrl = {"_p_wxSpinCtrl", "wxSpinCtrl *", 0, 0, (void*)0, 0};
42991 static swig_type_info _swigt__p_wxSpinEvent = {"_p_wxSpinEvent", "wxSpinEvent *", 0, 0, (void*)0, 0};
42992 static swig_type_info _swigt__p_wxStaticBitmap = {"_p_wxStaticBitmap", "wxStaticBitmap *", 0, 0, (void*)0, 0};
42993 static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, (void*)0, 0};
42994 static swig_type_info _swigt__p_wxStaticLine = {"_p_wxStaticLine", "wxStaticLine *", 0, 0, (void*)0, 0};
42995 static swig_type_info _swigt__p_wxStaticText = {"_p_wxStaticText", "wxStaticText *", 0, 0, (void*)0, 0};
42996 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
42997 static swig_type_info _swigt__p_wxTextAttr = {"_p_wxTextAttr", "wxTextAttr *", 0, 0, (void*)0, 0};
42998 static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, (void*)0, 0};
42999 static swig_type_info _swigt__p_wxTextUrlEvent = {"_p_wxTextUrlEvent", "wxTextUrlEvent *", 0, 0, (void*)0, 0};
43000 static swig_type_info _swigt__p_wxToggleButton = {"_p_wxToggleButton", "wxToggleButton *", 0, 0, (void*)0, 0};
43001 static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0};
43002 static swig_type_info _swigt__p_wxToolBarBase = {"_p_wxToolBarBase", "wxToolBarBase *", 0, 0, (void*)0, 0};
43003 static swig_type_info _swigt__p_wxToolBarToolBase = {"_p_wxToolBarToolBase", "wxToolBarToolBase *", 0, 0, (void*)0, 0};
43004 static swig_type_info _swigt__p_wxToolbook = {"_p_wxToolbook", "wxToolbook *", 0, 0, (void*)0, 0};
43005 static swig_type_info _swigt__p_wxToolbookEvent = {"_p_wxToolbookEvent", "wxToolbookEvent *", 0, 0, (void*)0, 0};
43006 static swig_type_info _swigt__p_wxTreeCtrl = {"_p_wxTreeCtrl", "wxTreeCtrl *", 0, 0, (void*)0, 0};
43007 static swig_type_info _swigt__p_wxTreeEvent = {"_p_wxTreeEvent", "wxTreeEvent *", 0, 0, (void*)0, 0};
43008 static swig_type_info _swigt__p_wxTreeItemId = {"_p_wxTreeItemId", "wxTreeItemId *", 0, 0, (void*)0, 0};
43009 static swig_type_info _swigt__p_wxTreebook = {"_p_wxTreebook", "wxTreebook *", 0, 0, (void*)0, 0};
43010 static swig_type_info _swigt__p_wxTreebookEvent = {"_p_wxTreebookEvent", "wxTreebookEvent *", 0, 0, (void*)0, 0};
43011 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, (void*)0, 0};
43012 static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0};
43013 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
43014
43015 static swig_type_info *swig_type_initial[] = {
43016 &_swigt__p_bool,
43017 &_swigt__p_char,
43018 &_swigt__p_form_ops_t,
43019 &_swigt__p_int,
43020 &_swigt__p_long,
43021 &_swigt__p_unsigned_char,
43022 &_swigt__p_unsigned_int,
43023 &_swigt__p_unsigned_long,
43024 &_swigt__p_void,
43025 &_swigt__p_wxANIHandler,
43026 &_swigt__p_wxAcceleratorTable,
43027 &_swigt__p_wxActivateEvent,
43028 &_swigt__p_wxArrayInt,
43029 &_swigt__p_wxArrayString,
43030 &_swigt__p_wxBMPHandler,
43031 &_swigt__p_wxBitmap,
43032 &_swigt__p_wxBitmapButton,
43033 &_swigt__p_wxBookCtrlBase,
43034 &_swigt__p_wxBookCtrlBaseEvent,
43035 &_swigt__p_wxBoxSizer,
43036 &_swigt__p_wxButton,
43037 &_swigt__p_wxCURHandler,
43038 &_swigt__p_wxCheckBox,
43039 &_swigt__p_wxCheckListBox,
43040 &_swigt__p_wxChildFocusEvent,
43041 &_swigt__p_wxChoice,
43042 &_swigt__p_wxChoicebook,
43043 &_swigt__p_wxChoicebookEvent,
43044 &_swigt__p_wxClipboardTextEvent,
43045 &_swigt__p_wxCloseEvent,
43046 &_swigt__p_wxColour,
43047 &_swigt__p_wxComboBox,
43048 &_swigt__p_wxCommandEvent,
43049 &_swigt__p_wxContextHelp,
43050 &_swigt__p_wxContextHelpButton,
43051 &_swigt__p_wxContextMenuEvent,
43052 &_swigt__p_wxControl,
43053 &_swigt__p_wxControlWithItems,
43054 &_swigt__p_wxCursor,
43055 &_swigt__p_wxDC,
43056 &_swigt__p_wxDateEvent,
43057 &_swigt__p_wxDatePickerCtrl,
43058 &_swigt__p_wxDateTime,
43059 &_swigt__p_wxDirFilterListCtrl,
43060 &_swigt__p_wxDisplayChangedEvent,
43061 &_swigt__p_wxDropFilesEvent,
43062 &_swigt__p_wxDuplexMode,
43063 &_swigt__p_wxEraseEvent,
43064 &_swigt__p_wxEvent,
43065 &_swigt__p_wxEvtHandler,
43066 &_swigt__p_wxFSFile,
43067 &_swigt__p_wxFileSystem,
43068 &_swigt__p_wxFlexGridSizer,
43069 &_swigt__p_wxFocusEvent,
43070 &_swigt__p_wxFont,
43071 &_swigt__p_wxGBSizerItem,
43072 &_swigt__p_wxGIFHandler,
43073 &_swigt__p_wxGauge,
43074 &_swigt__p_wxGenericDirCtrl,
43075 &_swigt__p_wxGenericDragImage,
43076 &_swigt__p_wxGridBagSizer,
43077 &_swigt__p_wxGridSizer,
43078 &_swigt__p_wxHelpEvent,
43079 &_swigt__p_wxHelpProvider,
43080 &_swigt__p_wxICOHandler,
43081 &_swigt__p_wxIcon,
43082 &_swigt__p_wxIconizeEvent,
43083 &_swigt__p_wxIdleEvent,
43084 &_swigt__p_wxImage,
43085 &_swigt__p_wxImageHandler,
43086 &_swigt__p_wxImageList,
43087 &_swigt__p_wxIndividualLayoutConstraint,
43088 &_swigt__p_wxInitDialogEvent,
43089 &_swigt__p_wxItemContainer,
43090 &_swigt__p_wxJPEGHandler,
43091 &_swigt__p_wxKeyEvent,
43092 &_swigt__p_wxLayoutConstraints,
43093 &_swigt__p_wxListBox,
43094 &_swigt__p_wxListEvent,
43095 &_swigt__p_wxListItem,
43096 &_swigt__p_wxListItemAttr,
43097 &_swigt__p_wxListView,
43098 &_swigt__p_wxListbook,
43099 &_swigt__p_wxListbookEvent,
43100 &_swigt__p_wxMaximizeEvent,
43101 &_swigt__p_wxMemoryDC,
43102 &_swigt__p_wxMenu,
43103 &_swigt__p_wxMenuBar,
43104 &_swigt__p_wxMenuEvent,
43105 &_swigt__p_wxMenuItem,
43106 &_swigt__p_wxMouseCaptureChangedEvent,
43107 &_swigt__p_wxMouseEvent,
43108 &_swigt__p_wxMoveEvent,
43109 &_swigt__p_wxNavigationKeyEvent,
43110 &_swigt__p_wxNcPaintEvent,
43111 &_swigt__p_wxNotebook,
43112 &_swigt__p_wxNotebookEvent,
43113 &_swigt__p_wxNotifyEvent,
43114 &_swigt__p_wxObject,
43115 &_swigt__p_wxPCXHandler,
43116 &_swigt__p_wxPNGHandler,
43117 &_swigt__p_wxPNMHandler,
43118 &_swigt__p_wxPaintEvent,
43119 &_swigt__p_wxPaletteChangedEvent,
43120 &_swigt__p_wxPaperSize,
43121 &_swigt__p_wxPoint,
43122 &_swigt__p_wxPyApp,
43123 &_swigt__p_wxPyCommandEvent,
43124 &_swigt__p_wxPyControl,
43125 &_swigt__p_wxPyEvent,
43126 &_swigt__p_wxPyImageHandler,
43127 &_swigt__p_wxPyListCtrl,
43128 &_swigt__p_wxPySizer,
43129 &_swigt__p_wxPyTreeCtrl,
43130 &_swigt__p_wxPyTreeItemData,
43131 &_swigt__p_wxPyValidator,
43132 &_swigt__p_wxQueryNewPaletteEvent,
43133 &_swigt__p_wxRadioBox,
43134 &_swigt__p_wxRadioButton,
43135 &_swigt__p_wxRect,
43136 &_swigt__p_wxScrollBar,
43137 &_swigt__p_wxScrollEvent,
43138 &_swigt__p_wxScrollWinEvent,
43139 &_swigt__p_wxSetCursorEvent,
43140 &_swigt__p_wxShowEvent,
43141 &_swigt__p_wxSimpleHelpProvider,
43142 &_swigt__p_wxSize,
43143 &_swigt__p_wxSizeEvent,
43144 &_swigt__p_wxSizer,
43145 &_swigt__p_wxSizerItem,
43146 &_swigt__p_wxSlider,
43147 &_swigt__p_wxSpinButton,
43148 &_swigt__p_wxSpinCtrl,
43149 &_swigt__p_wxSpinEvent,
43150 &_swigt__p_wxStaticBitmap,
43151 &_swigt__p_wxStaticBox,
43152 &_swigt__p_wxStaticBoxSizer,
43153 &_swigt__p_wxStaticLine,
43154 &_swigt__p_wxStaticText,
43155 &_swigt__p_wxStdDialogButtonSizer,
43156 &_swigt__p_wxString,
43157 &_swigt__p_wxSysColourChangedEvent,
43158 &_swigt__p_wxTIFFHandler,
43159 &_swigt__p_wxTextAttr,
43160 &_swigt__p_wxTextCtrl,
43161 &_swigt__p_wxTextUrlEvent,
43162 &_swigt__p_wxToggleButton,
43163 &_swigt__p_wxToolBar,
43164 &_swigt__p_wxToolBarBase,
43165 &_swigt__p_wxToolBarToolBase,
43166 &_swigt__p_wxToolbook,
43167 &_swigt__p_wxToolbookEvent,
43168 &_swigt__p_wxTreeCtrl,
43169 &_swigt__p_wxTreeEvent,
43170 &_swigt__p_wxTreeItemId,
43171 &_swigt__p_wxTreebook,
43172 &_swigt__p_wxTreebookEvent,
43173 &_swigt__p_wxUpdateUIEvent,
43174 &_swigt__p_wxValidator,
43175 &_swigt__p_wxVisualAttributes,
43176 &_swigt__p_wxWindow,
43177 &_swigt__p_wxWindowCreateEvent,
43178 &_swigt__p_wxWindowDestroyEvent,
43179 &_swigt__p_wxXPMHandler,
43180 };
43181
43182 static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}};
43183 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
43184 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
43185 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
43186 static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
43187 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
43188 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
43189 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
43190 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
43191 static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}};
43192 static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}};
43193 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
43194 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}};
43195 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}};
43196 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}};
43197 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}};
43198 static swig_cast_info _swigc__p_wxCheckBox[] = { {&_swigt__p_wxCheckBox, 0, 0, 0},{0, 0, 0, 0}};
43199 static swig_cast_info _swigc__p_wxCheckListBox[] = { {&_swigt__p_wxCheckListBox, 0, 0, 0},{0, 0, 0, 0}};
43200 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}};
43201 static swig_cast_info _swigc__p_wxChoicebook[] = { {&_swigt__p_wxChoicebook, 0, 0, 0},{0, 0, 0, 0}};
43202 static swig_cast_info _swigc__p_wxChoicebookEvent[] = { {&_swigt__p_wxChoicebookEvent, 0, 0, 0},{0, 0, 0, 0}};
43203 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
43204 static swig_cast_info _swigc__p_wxComboBox[] = { {&_swigt__p_wxComboBox, 0, 0, 0},{0, 0, 0, 0}};
43205 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
43206 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
43207 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
43208 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
43209 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
43210 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
43211 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
43212 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
43213 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
43214 static swig_cast_info _swigc__p_wxCommandEvent[] = { {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxCommandEvent, 0, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0},{0, 0, 0, 0}};
43215 static swig_cast_info _swigc__p_wxContextHelp[] = { {&_swigt__p_wxContextHelp, 0, 0, 0},{0, 0, 0, 0}};
43216 static swig_cast_info _swigc__p_wxContextHelpButton[] = { {&_swigt__p_wxContextHelpButton, 0, 0, 0},{0, 0, 0, 0}};
43217 static swig_cast_info _swigc__p_wxControl[] = { {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxControl, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxControl, 0, 0}, {&_swigt__p_wxControl, 0, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxControl, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxControl, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxControl, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxControl, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxControl, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxControl, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxControl, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxControl, 0, 0},{0, 0, 0, 0}};
43218 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}};
43219 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
43220 static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}};
43221 static swig_cast_info _swigc__p_wxDatePickerCtrl[] = { {&_swigt__p_wxDatePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
43222 static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}};
43223 static swig_cast_info _swigc__p_wxDirFilterListCtrl[] = { {&_swigt__p_wxDirFilterListCtrl, 0, 0, 0},{0, 0, 0, 0}};
43224 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
43225 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
43226 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
43227 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
43228 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
43229 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
43230 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
43231 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
43232 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
43233 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
43234 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
43235 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
43236 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
43237 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
43238 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
43239 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
43240 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
43241 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
43242 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
43243 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
43244 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
43245 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
43246 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
43247 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
43248 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
43249 static swig_cast_info _swigc__p_wxEvent[] = { {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEvent, 0, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxEvent, 0, 0},{0, 0, 0, 0}};
43250 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
43251 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
43252 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
43253 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
43254 static swig_cast_info _swigc__p_wxEvtHandler[] = { {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxEvtHandler, 0, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxEvtHandler, 0, 0},{0, 0, 0, 0}};
43255 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
43256 static swig_cast_info _swigc__p_wxGauge[] = { {&_swigt__p_wxGauge, 0, 0, 0},{0, 0, 0, 0}};
43257 static swig_cast_info _swigc__p_wxGenericDirCtrl[] = { {&_swigt__p_wxGenericDirCtrl, 0, 0, 0},{0, 0, 0, 0}};
43258 static swig_cast_info _swigc__p_wxGenericDragImage[] = { {&_swigt__p_wxGenericDragImage, 0, 0, 0},{0, 0, 0, 0}};
43259 static swig_cast_info _swigc__p_wxHelpEvent[] = { {&_swigt__p_wxHelpEvent, 0, 0, 0},{0, 0, 0, 0}};
43260 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}};
43261 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
43262 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
43263 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}};
43264 static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
43265 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}};
43266 static swig_cast_info _swigc__p_wxListEvent[] = { {&_swigt__p_wxListEvent, 0, 0, 0},{0, 0, 0, 0}};
43267 static swig_cast_info _swigc__p_wxListItem[] = { {&_swigt__p_wxListItem, 0, 0, 0},{0, 0, 0, 0}};
43268 static swig_cast_info _swigc__p_wxListItemAttr[] = { {&_swigt__p_wxListItemAttr, 0, 0, 0},{0, 0, 0, 0}};
43269 static swig_cast_info _swigc__p_wxListView[] = { {&_swigt__p_wxListView, 0, 0, 0},{0, 0, 0, 0}};
43270 static swig_cast_info _swigc__p_wxListbook[] = { {&_swigt__p_wxListbook, 0, 0, 0},{0, 0, 0, 0}};
43271 static swig_cast_info _swigc__p_wxListbookEvent[] = { {&_swigt__p_wxListbookEvent, 0, 0, 0},{0, 0, 0, 0}};
43272 static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}};
43273 static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
43274 static swig_cast_info _swigc__p_wxNotebook[] = { {&_swigt__p_wxNotebook, 0, 0, 0},{0, 0, 0, 0}};
43275 static swig_cast_info _swigc__p_wxNotebookEvent[] = { {&_swigt__p_wxNotebookEvent, 0, 0, 0},{0, 0, 0, 0}};
43276 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}};
43277 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
43278 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
43279 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
43280 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
43281 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
43282 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
43283 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
43284 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
43285 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
43286 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
43287 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
43288 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
43289 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
43290 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
43291 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
43292 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
43293 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
43294 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
43295 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
43296 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
43297 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
43298 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
43299 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
43300 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
43301 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
43302 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
43303 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
43304 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
43305 static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
43306 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
43307 static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxObject, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextHelp, _p_wxContextHelpTo_p_wxObject, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxListItem, _p_wxListItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGenericDragImage, _p_wxGenericDragImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBarToolBase, _p_wxToolBarToolBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
43308 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
43309 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
43310 static swig_cast_info _swigc__p_wxPyControl[] = { {&_swigt__p_wxPyControl, 0, 0, 0},{0, 0, 0, 0}};
43311 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}};
43312 static swig_cast_info _swigc__p_wxPyTreeCtrl[] = { {&_swigt__p_wxPyTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
43313 static swig_cast_info _swigc__p_wxPyTreeItemData[] = { {&_swigt__p_wxPyTreeItemData, 0, 0, 0},{0, 0, 0, 0}};
43314 static swig_cast_info _swigc__p_wxRadioBox[] = { {&_swigt__p_wxRadioBox, 0, 0, 0},{0, 0, 0, 0}};
43315 static swig_cast_info _swigc__p_wxRadioButton[] = { {&_swigt__p_wxRadioButton, 0, 0, 0},{0, 0, 0, 0}};
43316 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
43317 static swig_cast_info _swigc__p_wxScrollBar[] = { {&_swigt__p_wxScrollBar, 0, 0, 0},{0, 0, 0, 0}};
43318 static swig_cast_info _swigc__p_wxSimpleHelpProvider[] = { {&_swigt__p_wxSimpleHelpProvider, 0, 0, 0},{0, 0, 0, 0}};
43319 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
43320 static swig_cast_info _swigc__p_wxSlider[] = { {&_swigt__p_wxSlider, 0, 0, 0},{0, 0, 0, 0}};
43321 static swig_cast_info _swigc__p_wxSpinButton[] = { {&_swigt__p_wxSpinButton, 0, 0, 0},{0, 0, 0, 0}};
43322 static swig_cast_info _swigc__p_wxSpinCtrl[] = { {&_swigt__p_wxSpinCtrl, 0, 0, 0},{0, 0, 0, 0}};
43323 static swig_cast_info _swigc__p_wxSpinEvent[] = { {&_swigt__p_wxSpinEvent, 0, 0, 0},{0, 0, 0, 0}};
43324 static swig_cast_info _swigc__p_wxStaticBitmap[] = { {&_swigt__p_wxStaticBitmap, 0, 0, 0},{0, 0, 0, 0}};
43325 static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}};
43326 static swig_cast_info _swigc__p_wxStaticLine[] = { {&_swigt__p_wxStaticLine, 0, 0, 0},{0, 0, 0, 0}};
43327 static swig_cast_info _swigc__p_wxStaticText[] = { {&_swigt__p_wxStaticText, 0, 0, 0},{0, 0, 0, 0}};
43328 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
43329 static swig_cast_info _swigc__p_wxTextAttr[] = { {&_swigt__p_wxTextAttr, 0, 0, 0},{0, 0, 0, 0}};
43330 static swig_cast_info _swigc__p_wxTextCtrl[] = { {&_swigt__p_wxTextCtrl, 0, 0, 0},{0, 0, 0, 0}};
43331 static swig_cast_info _swigc__p_wxTextUrlEvent[] = { {&_swigt__p_wxTextUrlEvent, 0, 0, 0},{0, 0, 0, 0}};
43332 static swig_cast_info _swigc__p_wxToggleButton[] = { {&_swigt__p_wxToggleButton, 0, 0, 0},{0, 0, 0, 0}};
43333 static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}};
43334 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}};
43335 static swig_cast_info _swigc__p_wxToolBarToolBase[] = { {&_swigt__p_wxToolBarToolBase, 0, 0, 0},{0, 0, 0, 0}};
43336 static swig_cast_info _swigc__p_wxToolbook[] = { {&_swigt__p_wxToolbook, 0, 0, 0},{0, 0, 0, 0}};
43337 static swig_cast_info _swigc__p_wxToolbookEvent[] = { {&_swigt__p_wxToolbookEvent, 0, 0, 0},{0, 0, 0, 0}};
43338 static swig_cast_info _swigc__p_wxTreeCtrl[] = { {&_swigt__p_wxTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
43339 static swig_cast_info _swigc__p_wxTreeEvent[] = { {&_swigt__p_wxTreeEvent, 0, 0, 0},{0, 0, 0, 0}};
43340 static swig_cast_info _swigc__p_wxTreeItemId[] = { {&_swigt__p_wxTreeItemId, 0, 0, 0},{0, 0, 0, 0}};
43341 static swig_cast_info _swigc__p_wxTreebook[] = { {&_swigt__p_wxTreebook, 0, 0, 0},{0, 0, 0, 0}};
43342 static swig_cast_info _swigc__p_wxTreebookEvent[] = { {&_swigt__p_wxTreebookEvent, 0, 0, 0},{0, 0, 0, 0}};
43343 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}};
43344 static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}};
43345 static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWindow, 0, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxWindow, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxWindow, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxWindow, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxWindow, 0, 0},{0, 0, 0, 0}};
43346
43347 static swig_cast_info *swig_cast_initial[] = {
43348 _swigc__p_bool,
43349 _swigc__p_char,
43350 _swigc__p_form_ops_t,
43351 _swigc__p_int,
43352 _swigc__p_long,
43353 _swigc__p_unsigned_char,
43354 _swigc__p_unsigned_int,
43355 _swigc__p_unsigned_long,
43356 _swigc__p_void,
43357 _swigc__p_wxANIHandler,
43358 _swigc__p_wxAcceleratorTable,
43359 _swigc__p_wxActivateEvent,
43360 _swigc__p_wxArrayInt,
43361 _swigc__p_wxArrayString,
43362 _swigc__p_wxBMPHandler,
43363 _swigc__p_wxBitmap,
43364 _swigc__p_wxBitmapButton,
43365 _swigc__p_wxBookCtrlBase,
43366 _swigc__p_wxBookCtrlBaseEvent,
43367 _swigc__p_wxBoxSizer,
43368 _swigc__p_wxButton,
43369 _swigc__p_wxCURHandler,
43370 _swigc__p_wxCheckBox,
43371 _swigc__p_wxCheckListBox,
43372 _swigc__p_wxChildFocusEvent,
43373 _swigc__p_wxChoice,
43374 _swigc__p_wxChoicebook,
43375 _swigc__p_wxChoicebookEvent,
43376 _swigc__p_wxClipboardTextEvent,
43377 _swigc__p_wxCloseEvent,
43378 _swigc__p_wxColour,
43379 _swigc__p_wxComboBox,
43380 _swigc__p_wxCommandEvent,
43381 _swigc__p_wxContextHelp,
43382 _swigc__p_wxContextHelpButton,
43383 _swigc__p_wxContextMenuEvent,
43384 _swigc__p_wxControl,
43385 _swigc__p_wxControlWithItems,
43386 _swigc__p_wxCursor,
43387 _swigc__p_wxDC,
43388 _swigc__p_wxDateEvent,
43389 _swigc__p_wxDatePickerCtrl,
43390 _swigc__p_wxDateTime,
43391 _swigc__p_wxDirFilterListCtrl,
43392 _swigc__p_wxDisplayChangedEvent,
43393 _swigc__p_wxDropFilesEvent,
43394 _swigc__p_wxDuplexMode,
43395 _swigc__p_wxEraseEvent,
43396 _swigc__p_wxEvent,
43397 _swigc__p_wxEvtHandler,
43398 _swigc__p_wxFSFile,
43399 _swigc__p_wxFileSystem,
43400 _swigc__p_wxFlexGridSizer,
43401 _swigc__p_wxFocusEvent,
43402 _swigc__p_wxFont,
43403 _swigc__p_wxGBSizerItem,
43404 _swigc__p_wxGIFHandler,
43405 _swigc__p_wxGauge,
43406 _swigc__p_wxGenericDirCtrl,
43407 _swigc__p_wxGenericDragImage,
43408 _swigc__p_wxGridBagSizer,
43409 _swigc__p_wxGridSizer,
43410 _swigc__p_wxHelpEvent,
43411 _swigc__p_wxHelpProvider,
43412 _swigc__p_wxICOHandler,
43413 _swigc__p_wxIcon,
43414 _swigc__p_wxIconizeEvent,
43415 _swigc__p_wxIdleEvent,
43416 _swigc__p_wxImage,
43417 _swigc__p_wxImageHandler,
43418 _swigc__p_wxImageList,
43419 _swigc__p_wxIndividualLayoutConstraint,
43420 _swigc__p_wxInitDialogEvent,
43421 _swigc__p_wxItemContainer,
43422 _swigc__p_wxJPEGHandler,
43423 _swigc__p_wxKeyEvent,
43424 _swigc__p_wxLayoutConstraints,
43425 _swigc__p_wxListBox,
43426 _swigc__p_wxListEvent,
43427 _swigc__p_wxListItem,
43428 _swigc__p_wxListItemAttr,
43429 _swigc__p_wxListView,
43430 _swigc__p_wxListbook,
43431 _swigc__p_wxListbookEvent,
43432 _swigc__p_wxMaximizeEvent,
43433 _swigc__p_wxMemoryDC,
43434 _swigc__p_wxMenu,
43435 _swigc__p_wxMenuBar,
43436 _swigc__p_wxMenuEvent,
43437 _swigc__p_wxMenuItem,
43438 _swigc__p_wxMouseCaptureChangedEvent,
43439 _swigc__p_wxMouseEvent,
43440 _swigc__p_wxMoveEvent,
43441 _swigc__p_wxNavigationKeyEvent,
43442 _swigc__p_wxNcPaintEvent,
43443 _swigc__p_wxNotebook,
43444 _swigc__p_wxNotebookEvent,
43445 _swigc__p_wxNotifyEvent,
43446 _swigc__p_wxObject,
43447 _swigc__p_wxPCXHandler,
43448 _swigc__p_wxPNGHandler,
43449 _swigc__p_wxPNMHandler,
43450 _swigc__p_wxPaintEvent,
43451 _swigc__p_wxPaletteChangedEvent,
43452 _swigc__p_wxPaperSize,
43453 _swigc__p_wxPoint,
43454 _swigc__p_wxPyApp,
43455 _swigc__p_wxPyCommandEvent,
43456 _swigc__p_wxPyControl,
43457 _swigc__p_wxPyEvent,
43458 _swigc__p_wxPyImageHandler,
43459 _swigc__p_wxPyListCtrl,
43460 _swigc__p_wxPySizer,
43461 _swigc__p_wxPyTreeCtrl,
43462 _swigc__p_wxPyTreeItemData,
43463 _swigc__p_wxPyValidator,
43464 _swigc__p_wxQueryNewPaletteEvent,
43465 _swigc__p_wxRadioBox,
43466 _swigc__p_wxRadioButton,
43467 _swigc__p_wxRect,
43468 _swigc__p_wxScrollBar,
43469 _swigc__p_wxScrollEvent,
43470 _swigc__p_wxScrollWinEvent,
43471 _swigc__p_wxSetCursorEvent,
43472 _swigc__p_wxShowEvent,
43473 _swigc__p_wxSimpleHelpProvider,
43474 _swigc__p_wxSize,
43475 _swigc__p_wxSizeEvent,
43476 _swigc__p_wxSizer,
43477 _swigc__p_wxSizerItem,
43478 _swigc__p_wxSlider,
43479 _swigc__p_wxSpinButton,
43480 _swigc__p_wxSpinCtrl,
43481 _swigc__p_wxSpinEvent,
43482 _swigc__p_wxStaticBitmap,
43483 _swigc__p_wxStaticBox,
43484 _swigc__p_wxStaticBoxSizer,
43485 _swigc__p_wxStaticLine,
43486 _swigc__p_wxStaticText,
43487 _swigc__p_wxStdDialogButtonSizer,
43488 _swigc__p_wxString,
43489 _swigc__p_wxSysColourChangedEvent,
43490 _swigc__p_wxTIFFHandler,
43491 _swigc__p_wxTextAttr,
43492 _swigc__p_wxTextCtrl,
43493 _swigc__p_wxTextUrlEvent,
43494 _swigc__p_wxToggleButton,
43495 _swigc__p_wxToolBar,
43496 _swigc__p_wxToolBarBase,
43497 _swigc__p_wxToolBarToolBase,
43498 _swigc__p_wxToolbook,
43499 _swigc__p_wxToolbookEvent,
43500 _swigc__p_wxTreeCtrl,
43501 _swigc__p_wxTreeEvent,
43502 _swigc__p_wxTreeItemId,
43503 _swigc__p_wxTreebook,
43504 _swigc__p_wxTreebookEvent,
43505 _swigc__p_wxUpdateUIEvent,
43506 _swigc__p_wxValidator,
43507 _swigc__p_wxVisualAttributes,
43508 _swigc__p_wxWindow,
43509 _swigc__p_wxWindowCreateEvent,
43510 _swigc__p_wxWindowDestroyEvent,
43511 _swigc__p_wxXPMHandler,
43512 };
43513
43514
43515 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
43516
43517 static swig_const_info swig_const_table[] = {
43518 {0, 0, 0, 0.0, 0, 0}};
43519
43520 #ifdef __cplusplus
43521 }
43522 #endif
43523 /* -----------------------------------------------------------------------------
43524 * Type initialization:
43525 * This problem is tough by the requirement that no dynamic
43526 * memory is used. Also, since swig_type_info structures store pointers to
43527 * swig_cast_info structures and swig_cast_info structures store pointers back
43528 * to swig_type_info structures, we need some lookup code at initialization.
43529 * The idea is that swig generates all the structures that are needed.
43530 * The runtime then collects these partially filled structures.
43531 * The SWIG_InitializeModule function takes these initial arrays out of
43532 * swig_module, and does all the lookup, filling in the swig_module.types
43533 * array with the correct data and linking the correct swig_cast_info
43534 * structures together.
43535 *
43536 * The generated swig_type_info structures are assigned staticly to an initial
43537 * array. We just loop though that array, and handle each type individually.
43538 * First we lookup if this type has been already loaded, and if so, use the
43539 * loaded structure instead of the generated one. Then we have to fill in the
43540 * cast linked list. The cast data is initially stored in something like a
43541 * two-dimensional array. Each row corresponds to a type (there are the same
43542 * number of rows as there are in the swig_type_initial array). Each entry in
43543 * a column is one of the swig_cast_info structures for that type.
43544 * The cast_initial array is actually an array of arrays, because each row has
43545 * a variable number of columns. So to actually build the cast linked list,
43546 * we find the array of casts associated with the type, and loop through it
43547 * adding the casts to the list. The one last trick we need to do is making
43548 * sure the type pointer in the swig_cast_info struct is correct.
43549 *
43550 * First off, we lookup the cast->type name to see if it is already loaded.
43551 * There are three cases to handle:
43552 * 1) If the cast->type has already been loaded AND the type we are adding
43553 * casting info to has not been loaded (it is in this module), THEN we
43554 * replace the cast->type pointer with the type pointer that has already
43555 * been loaded.
43556 * 2) If BOTH types (the one we are adding casting info to, and the
43557 * cast->type) are loaded, THEN the cast info has already been loaded by
43558 * the previous module so we just ignore it.
43559 * 3) Finally, if cast->type has not already been loaded, then we add that
43560 * swig_cast_info to the linked list (because the cast->type) pointer will
43561 * be correct.
43562 * ----------------------------------------------------------------------------- */
43563
43564 #ifdef __cplusplus
43565 extern "C" {
43566 #if 0
43567 } /* c-mode */
43568 #endif
43569 #endif
43570
43571 #if 0
43572 #define SWIGRUNTIME_DEBUG
43573 #endif
43574
43575 SWIGRUNTIME void
43576 SWIG_InitializeModule(void *clientdata) {
43577 size_t i;
43578 swig_module_info *module_head;
43579 static int init_run = 0;
43580
43581 clientdata = clientdata;
43582
43583 if (init_run) return;
43584 init_run = 1;
43585
43586 /* Initialize the swig_module */
43587 swig_module.type_initial = swig_type_initial;
43588 swig_module.cast_initial = swig_cast_initial;
43589
43590 /* Try and load any already created modules */
43591 module_head = SWIG_GetModule(clientdata);
43592 if (module_head) {
43593 swig_module.next = module_head->next;
43594 module_head->next = &swig_module;
43595 } else {
43596 /* This is the first module loaded */
43597 swig_module.next = &swig_module;
43598 SWIG_SetModule(clientdata, &swig_module);
43599 }
43600
43601 /* Now work on filling in swig_module.types */
43602 #ifdef SWIGRUNTIME_DEBUG
43603 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
43604 #endif
43605 for (i = 0; i < swig_module.size; ++i) {
43606 swig_type_info *type = 0;
43607 swig_type_info *ret;
43608 swig_cast_info *cast;
43609
43610 #ifdef SWIGRUNTIME_DEBUG
43611 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
43612 #endif
43613
43614 /* if there is another module already loaded */
43615 if (swig_module.next != &swig_module) {
43616 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
43617 }
43618 if (type) {
43619 /* Overwrite clientdata field */
43620 #ifdef SWIGRUNTIME_DEBUG
43621 printf("SWIG_InitializeModule: found type %s\n", type->name);
43622 #endif
43623 if (swig_module.type_initial[i]->clientdata) {
43624 type->clientdata = swig_module.type_initial[i]->clientdata;
43625 #ifdef SWIGRUNTIME_DEBUG
43626 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
43627 #endif
43628 }
43629 } else {
43630 type = swig_module.type_initial[i];
43631 }
43632
43633 /* Insert casting types */
43634 cast = swig_module.cast_initial[i];
43635 while (cast->type) {
43636 /* Don't need to add information already in the list */
43637 ret = 0;
43638 #ifdef SWIGRUNTIME_DEBUG
43639 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
43640 #endif
43641 if (swig_module.next != &swig_module) {
43642 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
43643 #ifdef SWIGRUNTIME_DEBUG
43644 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
43645 #endif
43646 }
43647 if (ret) {
43648 if (type == swig_module.type_initial[i]) {
43649 #ifdef SWIGRUNTIME_DEBUG
43650 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
43651 #endif
43652 cast->type = ret;
43653 ret = 0;
43654 } else {
43655 /* Check for casting already in the list */
43656 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
43657 #ifdef SWIGRUNTIME_DEBUG
43658 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
43659 #endif
43660 if (!ocast) ret = 0;
43661 }
43662 }
43663
43664 if (!ret) {
43665 #ifdef SWIGRUNTIME_DEBUG
43666 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
43667 #endif
43668 if (type->cast) {
43669 type->cast->prev = cast;
43670 cast->next = type->cast;
43671 }
43672 type->cast = cast;
43673 }
43674 cast++;
43675 }
43676 /* Set entry in modules->types array equal to the type */
43677 swig_module.types[i] = type;
43678 }
43679 swig_module.types[i] = 0;
43680
43681 #ifdef SWIGRUNTIME_DEBUG
43682 printf("**** SWIG_InitializeModule: Cast List ******\n");
43683 for (i = 0; i < swig_module.size; ++i) {
43684 int j = 0;
43685 swig_cast_info *cast = swig_module.cast_initial[i];
43686 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
43687 while (cast->type) {
43688 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
43689 cast++;
43690 ++j;
43691 }
43692 printf("---- Total casts: %d\n",j);
43693 }
43694 printf("**** SWIG_InitializeModule: Cast List ******\n");
43695 #endif
43696 }
43697
43698 /* This function will propagate the clientdata field of type to
43699 * any new swig_type_info structures that have been added into the list
43700 * of equivalent types. It is like calling
43701 * SWIG_TypeClientData(type, clientdata) a second time.
43702 */
43703 SWIGRUNTIME void
43704 SWIG_PropagateClientData(void) {
43705 size_t i;
43706 swig_cast_info *equiv;
43707 static int init_run = 0;
43708
43709 if (init_run) return;
43710 init_run = 1;
43711
43712 for (i = 0; i < swig_module.size; i++) {
43713 if (swig_module.types[i]->clientdata) {
43714 equiv = swig_module.types[i]->cast;
43715 while (equiv) {
43716 if (!equiv->converter) {
43717 if (equiv->type && !equiv->type->clientdata)
43718 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
43719 }
43720 equiv = equiv->next;
43721 }
43722 }
43723 }
43724 }
43725
43726 #ifdef __cplusplus
43727 #if 0
43728 {
43729 /* c-mode */
43730 #endif
43731 }
43732 #endif
43733
43734
43735
43736 #ifdef __cplusplus
43737 extern "C" {
43738 #endif
43739
43740 /* Python-specific SWIG API */
43741 #define SWIG_newvarlink() SWIG_Python_newvarlink()
43742 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
43743 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
43744
43745 /* -----------------------------------------------------------------------------
43746 * global variable support code.
43747 * ----------------------------------------------------------------------------- */
43748
43749 typedef struct swig_globalvar {
43750 char *name; /* Name of global variable */
43751 PyObject *(*get_attr)(void); /* Return the current value */
43752 int (*set_attr)(PyObject *); /* Set the value */
43753 struct swig_globalvar *next;
43754 } swig_globalvar;
43755
43756 typedef struct swig_varlinkobject {
43757 PyObject_HEAD
43758 swig_globalvar *vars;
43759 } swig_varlinkobject;
43760
43761 SWIGINTERN PyObject *
43762 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
43763 return PyString_FromString("<Swig global variables>");
43764 }
43765
43766 SWIGINTERN PyObject *
43767 swig_varlink_str(swig_varlinkobject *v) {
43768 PyObject *str = PyString_FromString("(");
43769 swig_globalvar *var;
43770 for (var = v->vars; var; var=var->next) {
43771 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
43772 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
43773 }
43774 PyString_ConcatAndDel(&str,PyString_FromString(")"));
43775 return str;
43776 }
43777
43778 SWIGINTERN int
43779 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
43780 PyObject *str = swig_varlink_str(v);
43781 fprintf(fp,"Swig global variables ");
43782 fprintf(fp,"%s\n", PyString_AsString(str));
43783 Py_DECREF(str);
43784 return 0;
43785 }
43786
43787 SWIGINTERN void
43788 swig_varlink_dealloc(swig_varlinkobject *v) {
43789 swig_globalvar *var = v->vars;
43790 while (var) {
43791 swig_globalvar *n = var->next;
43792 free(var->name);
43793 free(var);
43794 var = n;
43795 }
43796 }
43797
43798 SWIGINTERN PyObject *
43799 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
43800 PyObject *res = NULL;
43801 swig_globalvar *var = v->vars;
43802 while (var) {
43803 if (strcmp(var->name,n) == 0) {
43804 res = (*var->get_attr)();
43805 break;
43806 }
43807 var = var->next;
43808 }
43809 if (res == NULL && !PyErr_Occurred()) {
43810 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
43811 }
43812 return res;
43813 }
43814
43815 SWIGINTERN int
43816 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
43817 int res = 1;
43818 swig_globalvar *var = v->vars;
43819 while (var) {
43820 if (strcmp(var->name,n) == 0) {
43821 res = (*var->set_attr)(p);
43822 break;
43823 }
43824 var = var->next;
43825 }
43826 if (res == 1 && !PyErr_Occurred()) {
43827 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
43828 }
43829 return res;
43830 }
43831
43832 SWIGINTERN PyTypeObject*
43833 swig_varlink_type(void) {
43834 static char varlink__doc__[] = "Swig var link object";
43835 static PyTypeObject varlink_type;
43836 static int type_init = 0;
43837 if (!type_init) {
43838 const PyTypeObject tmp
43839 = {
43840 PyObject_HEAD_INIT(NULL)
43841 0, /* Number of items in variable part (ob_size) */
43842 (char *)"swigvarlink", /* Type name (tp_name) */
43843 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
43844 0, /* Itemsize (tp_itemsize) */
43845 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
43846 (printfunc) swig_varlink_print, /* Print (tp_print) */
43847 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
43848 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
43849 0, /* tp_compare */
43850 (reprfunc) swig_varlink_repr, /* tp_repr */
43851 0, /* tp_as_number */
43852 0, /* tp_as_sequence */
43853 0, /* tp_as_mapping */
43854 0, /* tp_hash */
43855 0, /* tp_call */
43856 (reprfunc)swig_varlink_str, /* tp_str */
43857 0, /* tp_getattro */
43858 0, /* tp_setattro */
43859 0, /* tp_as_buffer */
43860 0, /* tp_flags */
43861 varlink__doc__, /* tp_doc */
43862 0, /* tp_traverse */
43863 0, /* tp_clear */
43864 0, /* tp_richcompare */
43865 0, /* tp_weaklistoffset */
43866 #if PY_VERSION_HEX >= 0x02020000
43867 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
43868 #endif
43869 #if PY_VERSION_HEX >= 0x02030000
43870 0, /* tp_del */
43871 #endif
43872 #ifdef COUNT_ALLOCS
43873 0,0,0,0 /* tp_alloc -> tp_next */
43874 #endif
43875 };
43876 varlink_type = tmp;
43877 varlink_type.ob_type = &PyType_Type;
43878 type_init = 1;
43879 }
43880 return &varlink_type;
43881 }
43882
43883 /* Create a variable linking object for use later */
43884 SWIGINTERN PyObject *
43885 SWIG_Python_newvarlink(void) {
43886 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
43887 if (result) {
43888 result->vars = 0;
43889 }
43890 return ((PyObject*) result);
43891 }
43892
43893 SWIGINTERN void
43894 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
43895 swig_varlinkobject *v = (swig_varlinkobject *) p;
43896 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
43897 if (gv) {
43898 size_t size = strlen(name)+1;
43899 gv->name = (char *)malloc(size);
43900 if (gv->name) {
43901 strncpy(gv->name,name,size);
43902 gv->get_attr = get_attr;
43903 gv->set_attr = set_attr;
43904 gv->next = v->vars;
43905 }
43906 }
43907 v->vars = gv;
43908 }
43909
43910 SWIGINTERN PyObject *
43911 SWIG_globals() {
43912 static PyObject *_SWIG_globals = 0;
43913 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
43914 return _SWIG_globals;
43915 }
43916
43917 /* -----------------------------------------------------------------------------
43918 * constants/methods manipulation
43919 * ----------------------------------------------------------------------------- */
43920
43921 /* Install Constants */
43922 SWIGINTERN void
43923 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
43924 PyObject *obj = 0;
43925 size_t i;
43926 for (i = 0; constants[i].type; ++i) {
43927 switch(constants[i].type) {
43928 case SWIG_PY_POINTER:
43929 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
43930 break;
43931 case SWIG_PY_BINARY:
43932 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
43933 break;
43934 default:
43935 obj = 0;
43936 break;
43937 }
43938 if (obj) {
43939 PyDict_SetItemString(d, constants[i].name, obj);
43940 Py_DECREF(obj);
43941 }
43942 }
43943 }
43944
43945 /* -----------------------------------------------------------------------------*/
43946 /* Fix SwigMethods to carry the callback ptrs when needed */
43947 /* -----------------------------------------------------------------------------*/
43948
43949 SWIGINTERN void
43950 SWIG_Python_FixMethods(PyMethodDef *methods,
43951 swig_const_info *const_table,
43952 swig_type_info **types,
43953 swig_type_info **types_initial) {
43954 size_t i;
43955 for (i = 0; methods[i].ml_name; ++i) {
43956 char *c = methods[i].ml_doc;
43957 if (c && (c = strstr(c, "swig_ptr: "))) {
43958 int j;
43959 swig_const_info *ci = 0;
43960 char *name = c + 10;
43961 for (j = 0; const_table[j].type; ++j) {
43962 if (strncmp(const_table[j].name, name,
43963 strlen(const_table[j].name)) == 0) {
43964 ci = &(const_table[j]);
43965 break;
43966 }
43967 }
43968 if (ci) {
43969 size_t shift = (ci->ptype) - types;
43970 swig_type_info *ty = types_initial[shift];
43971 size_t ldoc = (c - methods[i].ml_doc);
43972 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
43973 char *ndoc = (char*)malloc(ldoc + lptr + 10);
43974 if (ndoc) {
43975 char *buff = ndoc;
43976 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
43977 if (ptr) {
43978 strncpy(buff, methods[i].ml_doc, ldoc);
43979 buff += ldoc;
43980 strncpy(buff, "swig_ptr: ", 10);
43981 buff += 10;
43982 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
43983 methods[i].ml_doc = ndoc;
43984 }
43985 }
43986 }
43987 }
43988 }
43989 }
43990
43991 #ifdef __cplusplus
43992 }
43993 #endif
43994
43995 /* -----------------------------------------------------------------------------*
43996 * Partial Init method
43997 * -----------------------------------------------------------------------------*/
43998
43999 #ifdef __cplusplus
44000 extern "C"
44001 #endif
44002 SWIGEXPORT void SWIG_init(void) {
44003 PyObject *m, *d;
44004
44005 /* Fix SwigMethods to carry the callback ptrs when needed */
44006 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
44007
44008 m = Py_InitModule((char *) SWIG_name, SwigMethods);
44009 d = PyModule_GetDict(m);
44010
44011 SWIG_InitializeModule(0);
44012 SWIG_InstallConstants(d,swig_const_table);
44013
44014
44015 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
44016 SWIG_addvarlink(SWIG_globals(),(char*)"ButtonNameStr",ButtonNameStr_get, ButtonNameStr_set);
44017 SWIG_Python_SetConstant(d, "BU_LEFT",SWIG_From_int(static_cast< int >(wxBU_LEFT)));
44018 SWIG_Python_SetConstant(d, "BU_TOP",SWIG_From_int(static_cast< int >(wxBU_TOP)));
44019 SWIG_Python_SetConstant(d, "BU_RIGHT",SWIG_From_int(static_cast< int >(wxBU_RIGHT)));
44020 SWIG_Python_SetConstant(d, "BU_BOTTOM",SWIG_From_int(static_cast< int >(wxBU_BOTTOM)));
44021 SWIG_Python_SetConstant(d, "BU_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBU_ALIGN_MASK)));
44022 SWIG_Python_SetConstant(d, "BU_EXACTFIT",SWIG_From_int(static_cast< int >(wxBU_EXACTFIT)));
44023 SWIG_Python_SetConstant(d, "BU_AUTODRAW",SWIG_From_int(static_cast< int >(wxBU_AUTODRAW)));
44024 SWIG_addvarlink(SWIG_globals(),(char*)"CheckBoxNameStr",CheckBoxNameStr_get, CheckBoxNameStr_set);
44025 SWIG_Python_SetConstant(d, "CHK_2STATE",SWIG_From_int(static_cast< int >(wxCHK_2STATE)));
44026 SWIG_Python_SetConstant(d, "CHK_3STATE",SWIG_From_int(static_cast< int >(wxCHK_3STATE)));
44027 SWIG_Python_SetConstant(d, "CHK_ALLOW_3RD_STATE_FOR_USER",SWIG_From_int(static_cast< int >(wxCHK_ALLOW_3RD_STATE_FOR_USER)));
44028 SWIG_Python_SetConstant(d, "CHK_UNCHECKED",SWIG_From_int(static_cast< int >(wxCHK_UNCHECKED)));
44029 SWIG_Python_SetConstant(d, "CHK_CHECKED",SWIG_From_int(static_cast< int >(wxCHK_CHECKED)));
44030 SWIG_Python_SetConstant(d, "CHK_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCHK_UNDETERMINED)));
44031 SWIG_addvarlink(SWIG_globals(),(char*)"ChoiceNameStr",ChoiceNameStr_get, ChoiceNameStr_set);
44032 SWIG_addvarlink(SWIG_globals(),(char*)"ComboBoxNameStr",ComboBoxNameStr_get, ComboBoxNameStr_set);
44033 SWIG_addvarlink(SWIG_globals(),(char*)"GaugeNameStr",GaugeNameStr_get, GaugeNameStr_set);
44034 SWIG_Python_SetConstant(d, "GA_HORIZONTAL",SWIG_From_int(static_cast< int >(wxGA_HORIZONTAL)));
44035 SWIG_Python_SetConstant(d, "GA_VERTICAL",SWIG_From_int(static_cast< int >(wxGA_VERTICAL)));
44036 SWIG_Python_SetConstant(d, "GA_SMOOTH",SWIG_From_int(static_cast< int >(wxGA_SMOOTH)));
44037 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBitmapNameStr",StaticBitmapNameStr_get, StaticBitmapNameStr_set);
44038 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBoxNameStr",StaticBoxNameStr_get, StaticBoxNameStr_set);
44039 SWIG_addvarlink(SWIG_globals(),(char*)"StaticTextNameStr",StaticTextNameStr_get, StaticTextNameStr_set);
44040 SWIG_addvarlink(SWIG_globals(),(char*)"ListBoxNameStr",ListBoxNameStr_get, ListBoxNameStr_set);
44041 SWIG_addvarlink(SWIG_globals(),(char*)"TextCtrlNameStr",TextCtrlNameStr_get, TextCtrlNameStr_set);
44042 SWIG_Python_SetConstant(d, "TE_NO_VSCROLL",SWIG_From_int(static_cast< int >(wxTE_NO_VSCROLL)));
44043 SWIG_Python_SetConstant(d, "TE_AUTO_SCROLL",SWIG_From_int(static_cast< int >(wxTE_AUTO_SCROLL)));
44044 SWIG_Python_SetConstant(d, "TE_READONLY",SWIG_From_int(static_cast< int >(wxTE_READONLY)));
44045 SWIG_Python_SetConstant(d, "TE_MULTILINE",SWIG_From_int(static_cast< int >(wxTE_MULTILINE)));
44046 SWIG_Python_SetConstant(d, "TE_PROCESS_TAB",SWIG_From_int(static_cast< int >(wxTE_PROCESS_TAB)));
44047 SWIG_Python_SetConstant(d, "TE_LEFT",SWIG_From_int(static_cast< int >(wxTE_LEFT)));
44048 SWIG_Python_SetConstant(d, "TE_CENTER",SWIG_From_int(static_cast< int >(wxTE_CENTER)));
44049 SWIG_Python_SetConstant(d, "TE_RIGHT",SWIG_From_int(static_cast< int >(wxTE_RIGHT)));
44050 SWIG_Python_SetConstant(d, "TE_CENTRE",SWIG_From_int(static_cast< int >(wxTE_CENTRE)));
44051 SWIG_Python_SetConstant(d, "TE_RICH",SWIG_From_int(static_cast< int >(wxTE_RICH)));
44052 SWIG_Python_SetConstant(d, "TE_PROCESS_ENTER",SWIG_From_int(static_cast< int >(wxTE_PROCESS_ENTER)));
44053 SWIG_Python_SetConstant(d, "TE_PASSWORD",SWIG_From_int(static_cast< int >(wxTE_PASSWORD)));
44054 SWIG_Python_SetConstant(d, "TE_AUTO_URL",SWIG_From_int(static_cast< int >(wxTE_AUTO_URL)));
44055 SWIG_Python_SetConstant(d, "TE_NOHIDESEL",SWIG_From_int(static_cast< int >(wxTE_NOHIDESEL)));
44056 SWIG_Python_SetConstant(d, "TE_DONTWRAP",SWIG_From_int(static_cast< int >(wxTE_DONTWRAP)));
44057 SWIG_Python_SetConstant(d, "TE_CHARWRAP",SWIG_From_int(static_cast< int >(wxTE_CHARWRAP)));
44058 SWIG_Python_SetConstant(d, "TE_WORDWRAP",SWIG_From_int(static_cast< int >(wxTE_WORDWRAP)));
44059 SWIG_Python_SetConstant(d, "TE_BESTWRAP",SWIG_From_int(static_cast< int >(wxTE_BESTWRAP)));
44060 SWIG_Python_SetConstant(d, "TE_RICH2",SWIG_From_int(static_cast< int >(wxTE_RICH2)));
44061 SWIG_Python_SetConstant(d, "TE_CAPITALIZE",SWIG_From_int(static_cast< int >(wxTE_CAPITALIZE)));
44062 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT)));
44063 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT)));
44064 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE)));
44065 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER)));
44066 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT)));
44067 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED)));
44068 SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR)));
44069 SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR)));
44070 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE)));
44071 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE)));
44072 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT)));
44073 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC)));
44074 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE)));
44075 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT)));
44076 SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT)));
44077 SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT)));
44078 SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT)));
44079 SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS)));
44080 SWIG_Python_SetConstant(d, "TE_HT_UNKNOWN",SWIG_From_int(static_cast< int >(wxTE_HT_UNKNOWN)));
44081 SWIG_Python_SetConstant(d, "TE_HT_BEFORE",SWIG_From_int(static_cast< int >(wxTE_HT_BEFORE)));
44082 SWIG_Python_SetConstant(d, "TE_HT_ON_TEXT",SWIG_From_int(static_cast< int >(wxTE_HT_ON_TEXT)));
44083 SWIG_Python_SetConstant(d, "TE_HT_BELOW",SWIG_From_int(static_cast< int >(wxTE_HT_BELOW)));
44084 SWIG_Python_SetConstant(d, "TE_HT_BEYOND",SWIG_From_int(static_cast< int >(wxTE_HT_BEYOND)));
44085 SWIG_Python_SetConstant(d, "OutOfRangeTextCoord",SWIG_From_int(static_cast< int >(wxOutOfRangeTextCoord)));
44086 SWIG_Python_SetConstant(d, "InvalidTextCoord",SWIG_From_int(static_cast< int >(wxInvalidTextCoord)));
44087 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
44088 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
44089 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
44090 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
44091 SWIG_addvarlink(SWIG_globals(),(char*)"ScrollBarNameStr",ScrollBarNameStr_get, ScrollBarNameStr_set);
44092 SWIG_addvarlink(SWIG_globals(),(char*)"SPIN_BUTTON_NAME",SPIN_BUTTON_NAME_get, SPIN_BUTTON_NAME_set);
44093 SWIG_addvarlink(SWIG_globals(),(char*)"SpinCtrlNameStr",SpinCtrlNameStr_get, SpinCtrlNameStr_set);
44094 SWIG_Python_SetConstant(d, "SP_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSP_HORIZONTAL)));
44095 SWIG_Python_SetConstant(d, "SP_VERTICAL",SWIG_From_int(static_cast< int >(wxSP_VERTICAL)));
44096 SWIG_Python_SetConstant(d, "SP_ARROW_KEYS",SWIG_From_int(static_cast< int >(wxSP_ARROW_KEYS)));
44097 SWIG_Python_SetConstant(d, "SP_WRAP",SWIG_From_int(static_cast< int >(wxSP_WRAP)));
44098 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
44099 SWIG_addvarlink(SWIG_globals(),(char*)"RadioBoxNameStr",RadioBoxNameStr_get, RadioBoxNameStr_set);
44100 SWIG_addvarlink(SWIG_globals(),(char*)"RadioButtonNameStr",RadioButtonNameStr_get, RadioButtonNameStr_set);
44101 SWIG_addvarlink(SWIG_globals(),(char*)"SliderNameStr",SliderNameStr_get, SliderNameStr_set);
44102 SWIG_Python_SetConstant(d, "SL_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSL_HORIZONTAL)));
44103 SWIG_Python_SetConstant(d, "SL_VERTICAL",SWIG_From_int(static_cast< int >(wxSL_VERTICAL)));
44104 SWIG_Python_SetConstant(d, "SL_TICKS",SWIG_From_int(static_cast< int >(wxSL_TICKS)));
44105 SWIG_Python_SetConstant(d, "SL_AUTOTICKS",SWIG_From_int(static_cast< int >(wxSL_AUTOTICKS)));
44106 SWIG_Python_SetConstant(d, "SL_LABELS",SWIG_From_int(static_cast< int >(wxSL_LABELS)));
44107 SWIG_Python_SetConstant(d, "SL_LEFT",SWIG_From_int(static_cast< int >(wxSL_LEFT)));
44108 SWIG_Python_SetConstant(d, "SL_TOP",SWIG_From_int(static_cast< int >(wxSL_TOP)));
44109 SWIG_Python_SetConstant(d, "SL_RIGHT",SWIG_From_int(static_cast< int >(wxSL_RIGHT)));
44110 SWIG_Python_SetConstant(d, "SL_BOTTOM",SWIG_From_int(static_cast< int >(wxSL_BOTTOM)));
44111 SWIG_Python_SetConstant(d, "SL_BOTH",SWIG_From_int(static_cast< int >(wxSL_BOTH)));
44112 SWIG_Python_SetConstant(d, "SL_SELRANGE",SWIG_From_int(static_cast< int >(wxSL_SELRANGE)));
44113 SWIG_Python_SetConstant(d, "SL_INVERSE",SWIG_From_int(static_cast< int >(wxSL_INVERSE)));
44114 SWIG_addvarlink(SWIG_globals(),(char*)"ToggleButtonNameStr",ToggleButtonNameStr_get, ToggleButtonNameStr_set);
44115 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
44116 SWIG_addvarlink(SWIG_globals(),(char*)"NotebookNameStr",NotebookNameStr_get, NotebookNameStr_set);
44117 SWIG_Python_SetConstant(d, "BK_DEFAULT",SWIG_From_int(static_cast< int >(wxBK_DEFAULT)));
44118 SWIG_Python_SetConstant(d, "BK_TOP",SWIG_From_int(static_cast< int >(wxBK_TOP)));
44119 SWIG_Python_SetConstant(d, "BK_BOTTOM",SWIG_From_int(static_cast< int >(wxBK_BOTTOM)));
44120 SWIG_Python_SetConstant(d, "BK_LEFT",SWIG_From_int(static_cast< int >(wxBK_LEFT)));
44121 SWIG_Python_SetConstant(d, "BK_RIGHT",SWIG_From_int(static_cast< int >(wxBK_RIGHT)));
44122 SWIG_Python_SetConstant(d, "BK_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBK_ALIGN_MASK)));
44123 SWIG_Python_SetConstant(d, "BK_BUTTONBAR",SWIG_From_int(static_cast< int >(wxBK_BUTTONBAR)));
44124 SWIG_Python_SetConstant(d, "NB_FIXEDWIDTH",SWIG_From_int(static_cast< int >(wxNB_FIXEDWIDTH)));
44125 SWIG_Python_SetConstant(d, "NB_TOP",SWIG_From_int(static_cast< int >(wxNB_TOP)));
44126 SWIG_Python_SetConstant(d, "NB_LEFT",SWIG_From_int(static_cast< int >(wxNB_LEFT)));
44127 SWIG_Python_SetConstant(d, "NB_RIGHT",SWIG_From_int(static_cast< int >(wxNB_RIGHT)));
44128 SWIG_Python_SetConstant(d, "NB_BOTTOM",SWIG_From_int(static_cast< int >(wxNB_BOTTOM)));
44129 SWIG_Python_SetConstant(d, "NB_MULTILINE",SWIG_From_int(static_cast< int >(wxNB_MULTILINE)));
44130 SWIG_Python_SetConstant(d, "NB_NOPAGETHEME",SWIG_From_int(static_cast< int >(wxNB_NOPAGETHEME)));
44131 SWIG_Python_SetConstant(d, "NB_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_NOWHERE)));
44132 SWIG_Python_SetConstant(d, "NB_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONICON)));
44133 SWIG_Python_SetConstant(d, "NB_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONLABEL)));
44134 SWIG_Python_SetConstant(d, "NB_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONITEM)));
44135 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
44136 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
44137 SWIG_Python_SetConstant(d, "LB_DEFAULT",SWIG_From_int(static_cast< int >(wxLB_DEFAULT)));
44138 SWIG_Python_SetConstant(d, "LB_TOP",SWIG_From_int(static_cast< int >(wxLB_TOP)));
44139 SWIG_Python_SetConstant(d, "LB_BOTTOM",SWIG_From_int(static_cast< int >(wxLB_BOTTOM)));
44140 SWIG_Python_SetConstant(d, "LB_LEFT",SWIG_From_int(static_cast< int >(wxLB_LEFT)));
44141 SWIG_Python_SetConstant(d, "LB_RIGHT",SWIG_From_int(static_cast< int >(wxLB_RIGHT)));
44142 SWIG_Python_SetConstant(d, "LB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxLB_ALIGN_MASK)));
44143 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
44144 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
44145 SWIG_Python_SetConstant(d, "CHB_DEFAULT",SWIG_From_int(static_cast< int >(wxCHB_DEFAULT)));
44146 SWIG_Python_SetConstant(d, "CHB_TOP",SWIG_From_int(static_cast< int >(wxCHB_TOP)));
44147 SWIG_Python_SetConstant(d, "CHB_BOTTOM",SWIG_From_int(static_cast< int >(wxCHB_BOTTOM)));
44148 SWIG_Python_SetConstant(d, "CHB_LEFT",SWIG_From_int(static_cast< int >(wxCHB_LEFT)));
44149 SWIG_Python_SetConstant(d, "CHB_RIGHT",SWIG_From_int(static_cast< int >(wxCHB_RIGHT)));
44150 SWIG_Python_SetConstant(d, "CHB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxCHB_ALIGN_MASK)));
44151 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED));
44152 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING));
44153 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED));
44154 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING));
44155 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED));
44156 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED));
44157 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED));
44158 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING));
44159 SWIG_Python_SetConstant(d, "TOOL_STYLE_BUTTON",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_BUTTON)));
44160 SWIG_Python_SetConstant(d, "TOOL_STYLE_SEPARATOR",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_SEPARATOR)));
44161 SWIG_Python_SetConstant(d, "TOOL_STYLE_CONTROL",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_CONTROL)));
44162 SWIG_Python_SetConstant(d, "TB_HORIZONTAL",SWIG_From_int(static_cast< int >(wxTB_HORIZONTAL)));
44163 SWIG_Python_SetConstant(d, "TB_VERTICAL",SWIG_From_int(static_cast< int >(wxTB_VERTICAL)));
44164 SWIG_Python_SetConstant(d, "TB_3DBUTTONS",SWIG_From_int(static_cast< int >(wxTB_3DBUTTONS)));
44165 SWIG_Python_SetConstant(d, "TB_FLAT",SWIG_From_int(static_cast< int >(wxTB_FLAT)));
44166 SWIG_Python_SetConstant(d, "TB_DOCKABLE",SWIG_From_int(static_cast< int >(wxTB_DOCKABLE)));
44167 SWIG_Python_SetConstant(d, "TB_NOICONS",SWIG_From_int(static_cast< int >(wxTB_NOICONS)));
44168 SWIG_Python_SetConstant(d, "TB_TEXT",SWIG_From_int(static_cast< int >(wxTB_TEXT)));
44169 SWIG_Python_SetConstant(d, "TB_NODIVIDER",SWIG_From_int(static_cast< int >(wxTB_NODIVIDER)));
44170 SWIG_Python_SetConstant(d, "TB_NOALIGN",SWIG_From_int(static_cast< int >(wxTB_NOALIGN)));
44171 SWIG_Python_SetConstant(d, "TB_HORZ_LAYOUT",SWIG_From_int(static_cast< int >(wxTB_HORZ_LAYOUT)));
44172 SWIG_Python_SetConstant(d, "TB_HORZ_TEXT",SWIG_From_int(static_cast< int >(wxTB_HORZ_TEXT)));
44173 SWIG_addvarlink(SWIG_globals(),(char*)"ListCtrlNameStr",ListCtrlNameStr_get, ListCtrlNameStr_set);
44174 SWIG_Python_SetConstant(d, "LC_VRULES",SWIG_From_int(static_cast< int >(wxLC_VRULES)));
44175 SWIG_Python_SetConstant(d, "LC_HRULES",SWIG_From_int(static_cast< int >(wxLC_HRULES)));
44176 SWIG_Python_SetConstant(d, "LC_ICON",SWIG_From_int(static_cast< int >(wxLC_ICON)));
44177 SWIG_Python_SetConstant(d, "LC_SMALL_ICON",SWIG_From_int(static_cast< int >(wxLC_SMALL_ICON)));
44178 SWIG_Python_SetConstant(d, "LC_LIST",SWIG_From_int(static_cast< int >(wxLC_LIST)));
44179 SWIG_Python_SetConstant(d, "LC_REPORT",SWIG_From_int(static_cast< int >(wxLC_REPORT)));
44180 SWIG_Python_SetConstant(d, "LC_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLC_ALIGN_TOP)));
44181 SWIG_Python_SetConstant(d, "LC_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLC_ALIGN_LEFT)));
44182 SWIG_Python_SetConstant(d, "LC_AUTOARRANGE",SWIG_From_int(static_cast< int >(wxLC_AUTOARRANGE)));
44183 SWIG_Python_SetConstant(d, "LC_VIRTUAL",SWIG_From_int(static_cast< int >(wxLC_VIRTUAL)));
44184 SWIG_Python_SetConstant(d, "LC_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxLC_EDIT_LABELS)));
44185 SWIG_Python_SetConstant(d, "LC_NO_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_HEADER)));
44186 SWIG_Python_SetConstant(d, "LC_NO_SORT_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_SORT_HEADER)));
44187 SWIG_Python_SetConstant(d, "LC_SINGLE_SEL",SWIG_From_int(static_cast< int >(wxLC_SINGLE_SEL)));
44188 SWIG_Python_SetConstant(d, "LC_SORT_ASCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_ASCENDING)));
44189 SWIG_Python_SetConstant(d, "LC_SORT_DESCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_DESCENDING)));
44190 SWIG_Python_SetConstant(d, "LC_MASK_TYPE",SWIG_From_int(static_cast< int >(wxLC_MASK_TYPE)));
44191 SWIG_Python_SetConstant(d, "LC_MASK_ALIGN",SWIG_From_int(static_cast< int >(wxLC_MASK_ALIGN)));
44192 SWIG_Python_SetConstant(d, "LC_MASK_SORT",SWIG_From_int(static_cast< int >(wxLC_MASK_SORT)));
44193 SWIG_Python_SetConstant(d, "LIST_MASK_STATE",SWIG_From_int(static_cast< int >(wxLIST_MASK_STATE)));
44194 SWIG_Python_SetConstant(d, "LIST_MASK_TEXT",SWIG_From_int(static_cast< int >(wxLIST_MASK_TEXT)));
44195 SWIG_Python_SetConstant(d, "LIST_MASK_IMAGE",SWIG_From_int(static_cast< int >(wxLIST_MASK_IMAGE)));
44196 SWIG_Python_SetConstant(d, "LIST_MASK_DATA",SWIG_From_int(static_cast< int >(wxLIST_MASK_DATA)));
44197 SWIG_Python_SetConstant(d, "LIST_SET_ITEM",SWIG_From_int(static_cast< int >(wxLIST_SET_ITEM)));
44198 SWIG_Python_SetConstant(d, "LIST_MASK_WIDTH",SWIG_From_int(static_cast< int >(wxLIST_MASK_WIDTH)));
44199 SWIG_Python_SetConstant(d, "LIST_MASK_FORMAT",SWIG_From_int(static_cast< int >(wxLIST_MASK_FORMAT)));
44200 SWIG_Python_SetConstant(d, "LIST_STATE_DONTCARE",SWIG_From_int(static_cast< int >(wxLIST_STATE_DONTCARE)));
44201 SWIG_Python_SetConstant(d, "LIST_STATE_DROPHILITED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DROPHILITED)));
44202 SWIG_Python_SetConstant(d, "LIST_STATE_FOCUSED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FOCUSED)));
44203 SWIG_Python_SetConstant(d, "LIST_STATE_SELECTED",SWIG_From_int(static_cast< int >(wxLIST_STATE_SELECTED)));
44204 SWIG_Python_SetConstant(d, "LIST_STATE_CUT",SWIG_From_int(static_cast< int >(wxLIST_STATE_CUT)));
44205 SWIG_Python_SetConstant(d, "LIST_STATE_DISABLED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DISABLED)));
44206 SWIG_Python_SetConstant(d, "LIST_STATE_FILTERED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FILTERED)));
44207 SWIG_Python_SetConstant(d, "LIST_STATE_INUSE",SWIG_From_int(static_cast< int >(wxLIST_STATE_INUSE)));
44208 SWIG_Python_SetConstant(d, "LIST_STATE_PICKED",SWIG_From_int(static_cast< int >(wxLIST_STATE_PICKED)));
44209 SWIG_Python_SetConstant(d, "LIST_STATE_SOURCE",SWIG_From_int(static_cast< int >(wxLIST_STATE_SOURCE)));
44210 SWIG_Python_SetConstant(d, "LIST_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ABOVE)));
44211 SWIG_Python_SetConstant(d, "LIST_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_BELOW)));
44212 SWIG_Python_SetConstant(d, "LIST_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_NOWHERE)));
44213 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMICON)));
44214 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMLABEL)));
44215 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMRIGHT)));
44216 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMSTATEICON)));
44217 SWIG_Python_SetConstant(d, "LIST_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TOLEFT)));
44218 SWIG_Python_SetConstant(d, "LIST_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TORIGHT)));
44219 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEM)));
44220 SWIG_Python_SetConstant(d, "LIST_NEXT_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ABOVE)));
44221 SWIG_Python_SetConstant(d, "LIST_NEXT_ALL",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ALL)));
44222 SWIG_Python_SetConstant(d, "LIST_NEXT_BELOW",SWIG_From_int(static_cast< int >(wxLIST_NEXT_BELOW)));
44223 SWIG_Python_SetConstant(d, "LIST_NEXT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_LEFT)));
44224 SWIG_Python_SetConstant(d, "LIST_NEXT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_RIGHT)));
44225 SWIG_Python_SetConstant(d, "LIST_ALIGN_DEFAULT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_DEFAULT)));
44226 SWIG_Python_SetConstant(d, "LIST_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_LEFT)));
44227 SWIG_Python_SetConstant(d, "LIST_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_TOP)));
44228 SWIG_Python_SetConstant(d, "LIST_ALIGN_SNAP_TO_GRID",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_SNAP_TO_GRID)));
44229 SWIG_Python_SetConstant(d, "LIST_FORMAT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_LEFT)));
44230 SWIG_Python_SetConstant(d, "LIST_FORMAT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_RIGHT)));
44231 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTRE",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTRE)));
44232 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTER",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTER)));
44233 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE)));
44234 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE_USEHEADER",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE_USEHEADER)));
44235 SWIG_Python_SetConstant(d, "LIST_RECT_BOUNDS",SWIG_From_int(static_cast< int >(wxLIST_RECT_BOUNDS)));
44236 SWIG_Python_SetConstant(d, "LIST_RECT_ICON",SWIG_From_int(static_cast< int >(wxLIST_RECT_ICON)));
44237 SWIG_Python_SetConstant(d, "LIST_RECT_LABEL",SWIG_From_int(static_cast< int >(wxLIST_RECT_LABEL)));
44238 SWIG_Python_SetConstant(d, "LIST_FIND_UP",SWIG_From_int(static_cast< int >(wxLIST_FIND_UP)));
44239 SWIG_Python_SetConstant(d, "LIST_FIND_DOWN",SWIG_From_int(static_cast< int >(wxLIST_FIND_DOWN)));
44240 SWIG_Python_SetConstant(d, "LIST_FIND_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FIND_LEFT)));
44241 SWIG_Python_SetConstant(d, "LIST_FIND_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FIND_RIGHT)));
44242 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
44243 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
44244 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
44245 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
44246 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
44247 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
44248 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
44249 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
44250 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
44251 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
44252 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
44253 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
44254 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
44255 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
44256 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
44257 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
44258 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
44259 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
44260 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
44261 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
44262
44263 // Map renamed classes back to their common name for OOR
44264 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
44265
44266 SWIG_addvarlink(SWIG_globals(),(char*)"TreeCtrlNameStr",TreeCtrlNameStr_get, TreeCtrlNameStr_set);
44267 SWIG_Python_SetConstant(d, "TR_NO_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_NO_BUTTONS)));
44268 SWIG_Python_SetConstant(d, "TR_HAS_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_HAS_BUTTONS)));
44269 SWIG_Python_SetConstant(d, "TR_NO_LINES",SWIG_From_int(static_cast< int >(wxTR_NO_LINES)));
44270 SWIG_Python_SetConstant(d, "TR_LINES_AT_ROOT",SWIG_From_int(static_cast< int >(wxTR_LINES_AT_ROOT)));
44271 SWIG_Python_SetConstant(d, "TR_SINGLE",SWIG_From_int(static_cast< int >(wxTR_SINGLE)));
44272 SWIG_Python_SetConstant(d, "TR_MULTIPLE",SWIG_From_int(static_cast< int >(wxTR_MULTIPLE)));
44273 SWIG_Python_SetConstant(d, "TR_EXTENDED",SWIG_From_int(static_cast< int >(wxTR_EXTENDED)));
44274 SWIG_Python_SetConstant(d, "TR_HAS_VARIABLE_ROW_HEIGHT",SWIG_From_int(static_cast< int >(wxTR_HAS_VARIABLE_ROW_HEIGHT)));
44275 SWIG_Python_SetConstant(d, "TR_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxTR_EDIT_LABELS)));
44276 SWIG_Python_SetConstant(d, "TR_HIDE_ROOT",SWIG_From_int(static_cast< int >(wxTR_HIDE_ROOT)));
44277 SWIG_Python_SetConstant(d, "TR_ROW_LINES",SWIG_From_int(static_cast< int >(wxTR_ROW_LINES)));
44278 SWIG_Python_SetConstant(d, "TR_FULL_ROW_HIGHLIGHT",SWIG_From_int(static_cast< int >(wxTR_FULL_ROW_HIGHLIGHT)));
44279 SWIG_Python_SetConstant(d, "TR_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxTR_DEFAULT_STYLE)));
44280 SWIG_Python_SetConstant(d, "TR_TWIST_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_TWIST_BUTTONS)));
44281 SWIG_Python_SetConstant(d, "TreeItemIcon_Normal",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Normal)));
44282 SWIG_Python_SetConstant(d, "TreeItemIcon_Selected",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Selected)));
44283 SWIG_Python_SetConstant(d, "TreeItemIcon_Expanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Expanded)));
44284 SWIG_Python_SetConstant(d, "TreeItemIcon_SelectedExpanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_SelectedExpanded)));
44285 SWIG_Python_SetConstant(d, "TreeItemIcon_Max",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Max)));
44286 SWIG_Python_SetConstant(d, "TREE_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ABOVE)));
44287 SWIG_Python_SetConstant(d, "TREE_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_BELOW)));
44288 SWIG_Python_SetConstant(d, "TREE_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_NOWHERE)));
44289 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMBUTTON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMBUTTON)));
44290 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMICON)));
44291 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMINDENT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMINDENT)));
44292 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLABEL)));
44293 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMRIGHT)));
44294 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMSTATEICON)));
44295 SWIG_Python_SetConstant(d, "TREE_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TOLEFT)));
44296 SWIG_Python_SetConstant(d, "TREE_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TORIGHT)));
44297 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMUPPERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMUPPERPART)));
44298 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLOWERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLOWERPART)));
44299 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEM)));
44300 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
44301 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
44302 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
44303 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
44304 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
44305 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
44306 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
44307 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
44308 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
44309 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
44310 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
44311 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
44312 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
44313 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
44314 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
44315 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
44316 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
44317 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
44318 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
44319 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
44320 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU));
44321
44322 // Map renamed classes back to their common name for OOR
44323 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
44324 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
44325
44326 SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogDefaultFolderStr",DirDialogDefaultFolderStr_get, DirDialogDefaultFolderStr_set);
44327 SWIG_Python_SetConstant(d, "DIRCTRL_DIR_ONLY",SWIG_From_int(static_cast< int >(wxDIRCTRL_DIR_ONLY)));
44328 SWIG_Python_SetConstant(d, "DIRCTRL_SELECT_FIRST",SWIG_From_int(static_cast< int >(wxDIRCTRL_SELECT_FIRST)));
44329 SWIG_Python_SetConstant(d, "DIRCTRL_SHOW_FILTERS",SWIG_From_int(static_cast< int >(wxDIRCTRL_SHOW_FILTERS)));
44330 SWIG_Python_SetConstant(d, "DIRCTRL_3D_INTERNAL",SWIG_From_int(static_cast< int >(wxDIRCTRL_3D_INTERNAL)));
44331 SWIG_Python_SetConstant(d, "DIRCTRL_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxDIRCTRL_EDIT_LABELS)));
44332 SWIG_Python_SetConstant(d, "FRAME_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxFRAME_EX_CONTEXTHELP)));
44333 SWIG_Python_SetConstant(d, "DIALOG_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxDIALOG_EX_CONTEXTHELP)));
44334 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
44335 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
44336
44337 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
44338
44339 SWIG_addvarlink(SWIG_globals(),(char*)"DatePickerCtrlNameStr",DatePickerCtrlNameStr_get, DatePickerCtrlNameStr_set);
44340 SWIG_Python_SetConstant(d, "DP_DEFAULT",SWIG_From_int(static_cast< int >(wxDP_DEFAULT)));
44341 SWIG_Python_SetConstant(d, "DP_SPIN",SWIG_From_int(static_cast< int >(wxDP_SPIN)));
44342 SWIG_Python_SetConstant(d, "DP_DROPDOWN",SWIG_From_int(static_cast< int >(wxDP_DROPDOWN)));
44343 SWIG_Python_SetConstant(d, "DP_SHOWCENTURY",SWIG_From_int(static_cast< int >(wxDP_SHOWCENTURY)));
44344 SWIG_Python_SetConstant(d, "DP_ALLOWNONE",SWIG_From_int(static_cast< int >(wxDP_ALLOWNONE)));
44345 }
44346