]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/_controls_wrap.cpp
Added the PseudoDC class from Paul Lanier. It provides a way to
[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 #if PY_VERSION_HEX < 0x02050000
989 typedef int Py_ssize_t;
990 #endif
991
992 /* for raw pointers */
993 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999 #define swig_owntype int
1000
1001 /* for raw packed data */
1002 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1004
1005 /* for class or struct pointers */
1006 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1008
1009 /* for C or C++ function pointers */
1010 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
1012
1013 /* for C++ member pointers, ie, member methods */
1014 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1016
1017
1018 /* Runtime API */
1019
1020 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022 #define SWIG_NewClientData(obj) PySwigClientData_New(obj)
1023
1024 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028 #define SWIG_fail goto fail
1029
1030
1031 /* Runtime API implementation */
1032
1033 /* Error manipulation */
1034
1035 SWIGINTERN void
1036 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
1041 }
1042
1043 SWIGINTERN void
1044 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
1048 }
1049
1050 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1051
1052 /* Set a constant value */
1053
1054 SWIGINTERN void
1055 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
1058 }
1059
1060 /* Append a value to the result obj */
1061
1062 SWIGINTERN PyObject*
1063 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080 #else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
1088 } else {
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
1100 }
1101 return result;
1102 #endif
1103 }
1104
1105 /* Unpack the argument tuple */
1106
1107 SWIGINTERN int
1108 SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109 {
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143 }
1144
1145 /* A functor is a function object with one single object argument */
1146 #if PY_VERSION_HEX >= 0x02020000
1147 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148 #else
1149 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150 #endif
1151
1152 /*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155 */
1156 #ifdef __cplusplus
1157 #define SWIG_STATIC_POINTER(var) var
1158 #else
1159 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160 #endif
1161
1162 /* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166 /* Flags for new pointer objects */
1167 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172 #ifdef __cplusplus
1173 extern "C" {
1174 #if 0
1175 } /* cc-mode */
1176 #endif
1177 #endif
1178
1179 /* How to access Py_None */
1180 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1182 # ifndef SWIG_PYTHON_BUILD_NONE
1183 # define SWIG_PYTHON_BUILD_NONE
1184 # endif
1185 # endif
1186 #endif
1187
1188 #ifdef SWIG_PYTHON_BUILD_NONE
1189 # ifdef Py_None
1190 # undef Py_None
1191 # define Py_None SWIG_Py_None()
1192 # endif
1193 SWIGRUNTIMEINLINE PyObject *
1194 _SWIG_Py_None(void)
1195 {
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199 }
1200 SWIGRUNTIME PyObject *
1201 SWIG_Py_None(void)
1202 {
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205 }
1206 #endif
1207
1208 /* The python void return value */
1209
1210 SWIGRUNTIMEINLINE PyObject *
1211 SWIG_Py_Void(void)
1212 {
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216 }
1217
1218 /* PySwigClientData */
1219
1220 typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227 } PySwigClientData;
1228
1229 SWIGRUNTIMEINLINE int
1230 SWIG_Python_CheckImplicit(swig_type_info *ty)
1231 {
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234 }
1235
1236 SWIGRUNTIMEINLINE PyObject *
1237 SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241 }
1242
1243
1244 SWIGRUNTIME PySwigClientData *
1245 PySwigClientData_New(PyObject* obj)
1246 {
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260 #if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262 #else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264 #endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284 #ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286 #else
1287 data->delargs = 0;
1288 #endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295 }
1296
1297 SWIGRUNTIME void
1298 PySwigClientData_Del(PySwigClientData* data)
1299 {
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303 }
1304
1305 /* =============== PySwigObject =====================*/
1306
1307 typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313 } PySwigObject;
1314
1315 SWIGRUNTIME PyObject *
1316 PySwigObject_long(PySwigObject *v)
1317 {
1318 return PyLong_FromVoidPtr(v->ptr);
1319 }
1320
1321 SWIGRUNTIME PyObject *
1322 PySwigObject_format(const char* fmt, PySwigObject *v)
1323 {
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337 }
1338
1339 SWIGRUNTIME PyObject *
1340 PySwigObject_oct(PySwigObject *v)
1341 {
1342 return PySwigObject_format("%o",v);
1343 }
1344
1345 SWIGRUNTIME PyObject *
1346 PySwigObject_hex(PySwigObject *v)
1347 {
1348 return PySwigObject_format("%x",v);
1349 }
1350
1351 SWIGRUNTIME PyObject *
1352 #ifdef METH_NOARGS
1353 PySwigObject_repr(PySwigObject *v)
1354 #else
1355 PySwigObject_repr(PySwigObject *v, PyObject *args)
1356 #endif
1357 {
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363 #ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365 #else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367 #endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371 }
1372
1373 SWIGRUNTIME int
1374 PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375 {
1376 #ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378 #else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380 #endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388 }
1389
1390 SWIGRUNTIME PyObject *
1391 PySwigObject_str(PySwigObject *v)
1392 {
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396 }
1397
1398 SWIGRUNTIME int
1399 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400 {
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404 }
1405
1406 SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408 SWIGRUNTIME PyTypeObject*
1409 PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412 }
1413
1414 SWIGRUNTIMEINLINE int
1415 PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418 }
1419
1420 SWIGRUNTIME PyObject *
1421 PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423 SWIGRUNTIME void
1424 PySwigObject_dealloc(PyObject *v)
1425 {
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450 #endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455 }
1456
1457 SWIGRUNTIME PyObject*
1458 PySwigObject_append(PyObject* v, PyObject* next)
1459 {
1460 PySwigObject *sobj = (PySwigObject *) v;
1461 #ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465 #endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472 }
1473
1474 SWIGRUNTIME PyObject*
1475 #ifdef METH_NOARGS
1476 PySwigObject_next(PyObject* v)
1477 #else
1478 PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479 #endif
1480 {
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488 }
1489
1490 SWIGINTERN PyObject*
1491 #ifdef METH_NOARGS
1492 PySwigObject_disown(PyObject *v)
1493 #else
1494 PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495 #endif
1496 {
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500 }
1501
1502 SWIGINTERN PyObject*
1503 #ifdef METH_NOARGS
1504 PySwigObject_acquire(PyObject *v)
1505 #else
1506 PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507 #endif
1508 {
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512 }
1513
1514 SWIGINTERN PyObject*
1515 PySwigObject_own(PyObject *v, PyObject *args)
1516 {
1517 PyObject *val = 0;
1518 #if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520 #else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522 #endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531 #ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537 #else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543 #endif
1544 }
1545 return obj;
1546 }
1547 }
1548
1549 #ifdef METH_O
1550 static PyMethodDef
1551 swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559 };
1560 #else
1561 static PyMethodDef
1562 swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570 };
1571 #endif
1572
1573 #if PY_VERSION_HEX < 0x02020000
1574 SWIGINTERN PyObject *
1575 PySwigObject_getattr(PySwigObject *sobj,char *name)
1576 {
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578 }
1579 #endif
1580
1581 SWIGRUNTIME PyTypeObject*
1582 _PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
1609 #if PY_VERSION_HEX >= 0x02020000
1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1611 #elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1613 #endif
1614 };
1615
1616 static PyTypeObject pyswigobject_type;
1617 static int type_init = 0;
1618 if (!type_init) {
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628 #if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630 #else
1631 (getattrfunc)0, /* tp_getattr */
1632 #endif
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
1651 #if PY_VERSION_HEX >= 0x02020000
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
1672 #endif
1673 #if PY_VERSION_HEX >= 0x02030000
1674 0, /* tp_del */
1675 #endif
1676 #ifdef COUNT_ALLOCS
1677 0,0,0,0 /* tp_alloc -> tp_next */
1678 #endif
1679 };
1680 pyswigobject_type = tmp;
1681 pyswigobject_type.ob_type = &PyType_Type;
1682 type_init = 1;
1683 }
1684 return &pyswigobject_type;
1685 }
1686
1687 SWIGRUNTIME PyObject *
1688 PySwigObject_New(void *ptr, swig_type_info *ty, int own)
1689 {
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
1696 }
1697 return (PyObject *)sobj;
1698 }
1699
1700 /* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704 typedef struct {
1705 PyObject_HEAD
1706 void *pack;
1707 swig_type_info *ty;
1708 size_t size;
1709 } PySwigPacked;
1710
1711 SWIGRUNTIME int
1712 PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1713 {
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
1719 }
1720 fputs(v->ty->name,fp);
1721 fputs(">", fp);
1722 return 0;
1723 }
1724
1725 SWIGRUNTIME PyObject *
1726 PySwigPacked_repr(PySwigPacked *v)
1727 {
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1731 } else {
1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
1733 }
1734 }
1735
1736 SWIGRUNTIME PyObject *
1737 PySwigPacked_str(PySwigPacked *v)
1738 {
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1741 return PyString_FromFormat("%s%s", result, v->ty->name);
1742 } else {
1743 return PyString_FromString(v->ty->name);
1744 }
1745 }
1746
1747 SWIGRUNTIME int
1748 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1749 {
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
1754 }
1755
1756 SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
1757
1758 SWIGRUNTIME PyTypeObject*
1759 PySwigPacked_type(void) {
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762 }
1763
1764 SWIGRUNTIMEINLINE int
1765 PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768 }
1769
1770 SWIGRUNTIME void
1771 PySwigPacked_dealloc(PyObject *v)
1772 {
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778 }
1779
1780 SWIGRUNTIME PyTypeObject*
1781 _PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814 #if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
1835 #endif
1836 #if PY_VERSION_HEX >= 0x02030000
1837 0, /* tp_del */
1838 #endif
1839 #ifdef COUNT_ALLOCS
1840 0,0,0,0 /* tp_alloc -> tp_next */
1841 #endif
1842 };
1843 pyswigpacked_type = tmp;
1844 pyswigpacked_type.ob_type = &PyType_Type;
1845 type_init = 1;
1846 }
1847 return &pyswigpacked_type;
1848 }
1849
1850 SWIGRUNTIME PyObject *
1851 PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
1852 {
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
1855 void *pack = malloc(size);
1856 if (pack) {
1857 memcpy(pack, ptr, size);
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
1864 }
1865 }
1866 return (PyObject *) sobj;
1867 }
1868
1869 SWIGRUNTIME swig_type_info *
1870 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871 {
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
1880 }
1881
1882 /* -----------------------------------------------------------------------------
1883 * pointers/data manipulation
1884 * ----------------------------------------------------------------------------- */
1885
1886 SWIGRUNTIMEINLINE PyObject *
1887 _SWIG_This(void)
1888 {
1889 return PyString_FromString("this");
1890 }
1891
1892 SWIGRUNTIME PyObject *
1893 SWIG_This(void)
1894 {
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897 }
1898
1899 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1900
1901 SWIGRUNTIME PySwigObject *
1902 SWIG_Python_GetSwigThis(PyObject *pyobj)
1903 {
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917 #ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922 #endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
1926 } else {
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
1929 }
1930 }
1931 }
1932 #else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940 #endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
1947 }
1948 }
1949
1950 /* Acquire a pointer value */
1951
1952 SWIGRUNTIME int
1953 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
1961 }
1962 return 0;
1963 }
1964
1965 /* Convert a pointer value */
1966
1967 SWIGRUNTIME int
1968 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
1992 } else {
1993 if (ptr) *ptr = vptr;
1994 break;
1995 }
1996 }
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
2042 }
2043 }
2044
2045 /* Convert a function ptr value */
2046
2047 SWIGRUNTIME int
2048 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2051 } else {
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
2069 }
2070 }
2071
2072 /* Convert a packed value value */
2073
2074 SWIGRUNTIME int
2075 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
2084 }
2085 return SWIG_OK;
2086 }
2087
2088 /* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
2091
2092 /*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095 */
2096
2097 SWIGRUNTIME PyObject*
2098 SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099 {
2100 #if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
2115 }
2116 #else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119 #endif
2120 }
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
2126 }
2127 return inst;
2128 #else
2129 #if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136 #else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
2140 }
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
2147 }
2148 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150 #endif
2151 #ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153 #endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156 #endif
2157 #endif
2158 }
2159
2160 SWIGRUNTIME void
2161 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162 {
2163 PyObject *dict;
2164 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
2175 #endif
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179 }
2180
2181
2182 SWIGINTERN PyObject *
2183 SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
2191 } else {
2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2193 }
2194 return SWIG_Py_Void();
2195 }
2196 }
2197
2198 /* Create a new pointer object */
2199
2200 SWIGRUNTIME PyObject *
2201 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
2202 if (!ptr) {
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
2213 }
2214 }
2215 return robj;
2216 }
2217 }
2218
2219 /* Create a new packed object */
2220
2221 SWIGRUNTIMEINLINE PyObject *
2222 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2224 }
2225
2226 /* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230 #ifdef SWIG_LINK_RUNTIME
2231 void *SWIG_ReturnGlobalTypeList(void *);
2232 #endif
2233
2234 SWIGRUNTIME swig_module_info *
2235 SWIG_Python_GetModule(void) {
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239 #ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2241 #else
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
2248 #endif
2249 }
2250 return (swig_module_info *) type_pointer;
2251 }
2252
2253 #if PY_MAJOR_VERSION < 2
2254 /* PyModule_AddObject function was introduced in Python 2.0. The following function
2255 is copied out of Python/modsupport.c in python version 2.3.4 */
2256 SWIGINTERN int
2257 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258 {
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
2263 return SWIG_ERROR;
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
2268 return SWIG_ERROR;
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
2276 return SWIG_ERROR;
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
2279 return SWIG_ERROR;
2280 Py_DECREF(o);
2281 return SWIG_OK;
2282 }
2283 #endif
2284
2285 SWIGRUNTIME void
2286 SWIG_Python_DestroyModule(void *vptr)
2287 {
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299 }
2300
2301 SWIGRUNTIME void
2302 SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2310 } else {
2311 Py_XDECREF(pointer);
2312 }
2313 }
2314
2315 /* The python cached type query */
2316 SWIGRUNTIME PyObject *
2317 SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
2320 }
2321
2322 SWIGRUNTIME swig_type_info *
2323 SWIG_Python_TypeQuery(const char *type)
2324 {
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342 }
2343
2344 /*
2345 For backward compatibility only
2346 */
2347 #define SWIG_POINTER_EXCEPTION 0
2348 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351 SWIGRUNTIME int
2352 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353 {
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374 }
2375
2376 SWIGRUNTIME int
2377 SWIG_Python_ArgFail(int argnum)
2378 {
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387 }
2388
2389 SWIGRUNTIMEINLINE const char *
2390 PySwigObject_GetDesc(PyObject *self)
2391 {
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395 }
2396
2397 SWIGRUNTIME void
2398 SWIG_Python_TypeError(const char *type, PyObject *obj)
2399 {
2400 if (type) {
2401 #if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410 #endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431 }
2432
2433
2434 /* Convert a pointer value, signal an exception on a type mismatch */
2435 SWIGRUNTIME void *
2436 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446 }
2447
2448
2449 #ifdef __cplusplus
2450 #if 0
2451 { /* cc-mode */
2452 #endif
2453 }
2454 #endif
2455
2456
2457
2458 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464 /* -------- TYPES TABLE (BEGIN) -------- */
2465
2466 #define SWIGTYPE_p_bool swig_types[0]
2467 #define SWIGTYPE_p_char swig_types[1]
2468 #define SWIGTYPE_p_form_ops_t swig_types[2]
2469 #define SWIGTYPE_p_int swig_types[3]
2470 #define SWIGTYPE_p_long swig_types[4]
2471 #define SWIGTYPE_p_unsigned_char swig_types[5]
2472 #define SWIGTYPE_p_unsigned_int swig_types[6]
2473 #define SWIGTYPE_p_unsigned_long swig_types[7]
2474 #define SWIGTYPE_p_void swig_types[8]
2475 #define SWIGTYPE_p_wxANIHandler swig_types[9]
2476 #define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2477 #define SWIGTYPE_p_wxActivateEvent swig_types[11]
2478 #define SWIGTYPE_p_wxArrayInt swig_types[12]
2479 #define SWIGTYPE_p_wxArrayString swig_types[13]
2480 #define SWIGTYPE_p_wxBMPHandler swig_types[14]
2481 #define SWIGTYPE_p_wxBitmap swig_types[15]
2482 #define SWIGTYPE_p_wxBitmapButton swig_types[16]
2483 #define SWIGTYPE_p_wxBookCtrlBase swig_types[17]
2484 #define SWIGTYPE_p_wxBookCtrlBaseEvent swig_types[18]
2485 #define SWIGTYPE_p_wxBoxSizer swig_types[19]
2486 #define SWIGTYPE_p_wxButton swig_types[20]
2487 #define SWIGTYPE_p_wxCURHandler swig_types[21]
2488 #define SWIGTYPE_p_wxCheckBox swig_types[22]
2489 #define SWIGTYPE_p_wxCheckListBox swig_types[23]
2490 #define SWIGTYPE_p_wxChildFocusEvent swig_types[24]
2491 #define SWIGTYPE_p_wxChoice swig_types[25]
2492 #define SWIGTYPE_p_wxChoicebook swig_types[26]
2493 #define SWIGTYPE_p_wxChoicebookEvent swig_types[27]
2494 #define SWIGTYPE_p_wxClipboardTextEvent swig_types[28]
2495 #define SWIGTYPE_p_wxCloseEvent swig_types[29]
2496 #define SWIGTYPE_p_wxColour swig_types[30]
2497 #define SWIGTYPE_p_wxColourPickerCtrl swig_types[31]
2498 #define SWIGTYPE_p_wxColourPickerEvent swig_types[32]
2499 #define SWIGTYPE_p_wxComboBox swig_types[33]
2500 #define SWIGTYPE_p_wxCommandEvent swig_types[34]
2501 #define SWIGTYPE_p_wxContextHelp swig_types[35]
2502 #define SWIGTYPE_p_wxContextHelpButton swig_types[36]
2503 #define SWIGTYPE_p_wxContextMenuEvent swig_types[37]
2504 #define SWIGTYPE_p_wxControl swig_types[38]
2505 #define SWIGTYPE_p_wxControlWithItems swig_types[39]
2506 #define SWIGTYPE_p_wxCursor swig_types[40]
2507 #define SWIGTYPE_p_wxDC swig_types[41]
2508 #define SWIGTYPE_p_wxDateEvent swig_types[42]
2509 #define SWIGTYPE_p_wxDatePickerCtrl swig_types[43]
2510 #define SWIGTYPE_p_wxDateTime swig_types[44]
2511 #define SWIGTYPE_p_wxDirFilterListCtrl swig_types[45]
2512 #define SWIGTYPE_p_wxDirPickerCtrl swig_types[46]
2513 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[47]
2514 #define SWIGTYPE_p_wxDropFilesEvent swig_types[48]
2515 #define SWIGTYPE_p_wxDuplexMode swig_types[49]
2516 #define SWIGTYPE_p_wxEraseEvent swig_types[50]
2517 #define SWIGTYPE_p_wxEvent swig_types[51]
2518 #define SWIGTYPE_p_wxEvtHandler swig_types[52]
2519 #define SWIGTYPE_p_wxFSFile swig_types[53]
2520 #define SWIGTYPE_p_wxFileDirPickerEvent swig_types[54]
2521 #define SWIGTYPE_p_wxFilePickerCtrl swig_types[55]
2522 #define SWIGTYPE_p_wxFileSystem swig_types[56]
2523 #define SWIGTYPE_p_wxFlexGridSizer swig_types[57]
2524 #define SWIGTYPE_p_wxFocusEvent swig_types[58]
2525 #define SWIGTYPE_p_wxFont swig_types[59]
2526 #define SWIGTYPE_p_wxFontPickerCtrl swig_types[60]
2527 #define SWIGTYPE_p_wxFontPickerEvent swig_types[61]
2528 #define SWIGTYPE_p_wxGBSizerItem swig_types[62]
2529 #define SWIGTYPE_p_wxGIFHandler swig_types[63]
2530 #define SWIGTYPE_p_wxGauge swig_types[64]
2531 #define SWIGTYPE_p_wxGenericDirCtrl swig_types[65]
2532 #define SWIGTYPE_p_wxGenericDragImage swig_types[66]
2533 #define SWIGTYPE_p_wxGridBagSizer swig_types[67]
2534 #define SWIGTYPE_p_wxGridSizer swig_types[68]
2535 #define SWIGTYPE_p_wxHelpEvent swig_types[69]
2536 #define SWIGTYPE_p_wxHelpProvider swig_types[70]
2537 #define SWIGTYPE_p_wxHyperlinkCtrl swig_types[71]
2538 #define SWIGTYPE_p_wxHyperlinkEvent swig_types[72]
2539 #define SWIGTYPE_p_wxICOHandler swig_types[73]
2540 #define SWIGTYPE_p_wxIcon swig_types[74]
2541 #define SWIGTYPE_p_wxIconizeEvent swig_types[75]
2542 #define SWIGTYPE_p_wxIdleEvent swig_types[76]
2543 #define SWIGTYPE_p_wxImage swig_types[77]
2544 #define SWIGTYPE_p_wxImageHandler swig_types[78]
2545 #define SWIGTYPE_p_wxImageList swig_types[79]
2546 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[80]
2547 #define SWIGTYPE_p_wxInitDialogEvent swig_types[81]
2548 #define SWIGTYPE_p_wxItemContainer swig_types[82]
2549 #define SWIGTYPE_p_wxJPEGHandler swig_types[83]
2550 #define SWIGTYPE_p_wxKeyEvent swig_types[84]
2551 #define SWIGTYPE_p_wxLayoutConstraints swig_types[85]
2552 #define SWIGTYPE_p_wxListBox swig_types[86]
2553 #define SWIGTYPE_p_wxListEvent swig_types[87]
2554 #define SWIGTYPE_p_wxListItem swig_types[88]
2555 #define SWIGTYPE_p_wxListItemAttr swig_types[89]
2556 #define SWIGTYPE_p_wxListView swig_types[90]
2557 #define SWIGTYPE_p_wxListbook swig_types[91]
2558 #define SWIGTYPE_p_wxListbookEvent swig_types[92]
2559 #define SWIGTYPE_p_wxMaximizeEvent swig_types[93]
2560 #define SWIGTYPE_p_wxMemoryDC swig_types[94]
2561 #define SWIGTYPE_p_wxMenu swig_types[95]
2562 #define SWIGTYPE_p_wxMenuBar swig_types[96]
2563 #define SWIGTYPE_p_wxMenuEvent swig_types[97]
2564 #define SWIGTYPE_p_wxMenuItem swig_types[98]
2565 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[99]
2566 #define SWIGTYPE_p_wxMouseEvent swig_types[100]
2567 #define SWIGTYPE_p_wxMoveEvent swig_types[101]
2568 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[102]
2569 #define SWIGTYPE_p_wxNcPaintEvent swig_types[103]
2570 #define SWIGTYPE_p_wxNotebook swig_types[104]
2571 #define SWIGTYPE_p_wxNotebookEvent swig_types[105]
2572 #define SWIGTYPE_p_wxNotifyEvent swig_types[106]
2573 #define SWIGTYPE_p_wxObject swig_types[107]
2574 #define SWIGTYPE_p_wxPCXHandler swig_types[108]
2575 #define SWIGTYPE_p_wxPNGHandler swig_types[109]
2576 #define SWIGTYPE_p_wxPNMHandler swig_types[110]
2577 #define SWIGTYPE_p_wxPaintEvent swig_types[111]
2578 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[112]
2579 #define SWIGTYPE_p_wxPaperSize swig_types[113]
2580 #define SWIGTYPE_p_wxPickerBase swig_types[114]
2581 #define SWIGTYPE_p_wxPoint swig_types[115]
2582 #define SWIGTYPE_p_wxPyApp swig_types[116]
2583 #define SWIGTYPE_p_wxPyCommandEvent swig_types[117]
2584 #define SWIGTYPE_p_wxPyControl swig_types[118]
2585 #define SWIGTYPE_p_wxPyEvent swig_types[119]
2586 #define SWIGTYPE_p_wxPyImageHandler swig_types[120]
2587 #define SWIGTYPE_p_wxPyListCtrl swig_types[121]
2588 #define SWIGTYPE_p_wxPySizer swig_types[122]
2589 #define SWIGTYPE_p_wxPyTreeCtrl swig_types[123]
2590 #define SWIGTYPE_p_wxPyTreeItemData swig_types[124]
2591 #define SWIGTYPE_p_wxPyValidator swig_types[125]
2592 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[126]
2593 #define SWIGTYPE_p_wxRadioBox swig_types[127]
2594 #define SWIGTYPE_p_wxRadioButton swig_types[128]
2595 #define SWIGTYPE_p_wxRect swig_types[129]
2596 #define SWIGTYPE_p_wxScrollBar swig_types[130]
2597 #define SWIGTYPE_p_wxScrollEvent swig_types[131]
2598 #define SWIGTYPE_p_wxScrollWinEvent swig_types[132]
2599 #define SWIGTYPE_p_wxSetCursorEvent swig_types[133]
2600 #define SWIGTYPE_p_wxShowEvent swig_types[134]
2601 #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[135]
2602 #define SWIGTYPE_p_wxSize swig_types[136]
2603 #define SWIGTYPE_p_wxSizeEvent swig_types[137]
2604 #define SWIGTYPE_p_wxSizer swig_types[138]
2605 #define SWIGTYPE_p_wxSizerItem swig_types[139]
2606 #define SWIGTYPE_p_wxSlider swig_types[140]
2607 #define SWIGTYPE_p_wxSpinButton swig_types[141]
2608 #define SWIGTYPE_p_wxSpinCtrl swig_types[142]
2609 #define SWIGTYPE_p_wxSpinEvent swig_types[143]
2610 #define SWIGTYPE_p_wxStaticBitmap swig_types[144]
2611 #define SWIGTYPE_p_wxStaticBox swig_types[145]
2612 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[146]
2613 #define SWIGTYPE_p_wxStaticLine swig_types[147]
2614 #define SWIGTYPE_p_wxStaticText swig_types[148]
2615 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[149]
2616 #define SWIGTYPE_p_wxString swig_types[150]
2617 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[151]
2618 #define SWIGTYPE_p_wxTIFFHandler swig_types[152]
2619 #define SWIGTYPE_p_wxTextAttr swig_types[153]
2620 #define SWIGTYPE_p_wxTextCtrl swig_types[154]
2621 #define SWIGTYPE_p_wxTextUrlEvent swig_types[155]
2622 #define SWIGTYPE_p_wxToggleButton swig_types[156]
2623 #define SWIGTYPE_p_wxToolBar swig_types[157]
2624 #define SWIGTYPE_p_wxToolBarBase swig_types[158]
2625 #define SWIGTYPE_p_wxToolBarToolBase swig_types[159]
2626 #define SWIGTYPE_p_wxToolbook swig_types[160]
2627 #define SWIGTYPE_p_wxToolbookEvent swig_types[161]
2628 #define SWIGTYPE_p_wxTreeCtrl swig_types[162]
2629 #define SWIGTYPE_p_wxTreeEvent swig_types[163]
2630 #define SWIGTYPE_p_wxTreeItemId swig_types[164]
2631 #define SWIGTYPE_p_wxTreebook swig_types[165]
2632 #define SWIGTYPE_p_wxTreebookEvent swig_types[166]
2633 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[167]
2634 #define SWIGTYPE_p_wxValidator swig_types[168]
2635 #define SWIGTYPE_p_wxVisualAttributes swig_types[169]
2636 #define SWIGTYPE_p_wxWindow swig_types[170]
2637 #define SWIGTYPE_p_wxWindowBase swig_types[171]
2638 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[172]
2639 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[173]
2640 #define SWIGTYPE_p_wxXPMHandler swig_types[174]
2641 static swig_type_info *swig_types[176];
2642 static swig_module_info swig_module = {swig_types, 175, 0, 0, 0, 0};
2643 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2644 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2645
2646 /* -------- TYPES TABLE (END) -------- */
2647
2648 #if (PY_VERSION_HEX <= 0x02000000)
2649 # if !defined(SWIG_PYTHON_CLASSIC)
2650 # error "This python version requires to use swig with the '-classic' option"
2651 # endif
2652 #endif
2653 #if (PY_VERSION_HEX <= 0x02020000)
2654 # error "This python version requires to use swig with the '-nomodern' option"
2655 #endif
2656 #if (PY_VERSION_HEX <= 0x02020000)
2657 # error "This python version requires to use swig with the '-nomodernargs' option"
2658 #endif
2659 #ifndef METH_O
2660 # error "This python version requires to use swig with the '-nofastunpack' option"
2661 #endif
2662
2663 /*-----------------------------------------------
2664 @(target):= _controls_.so
2665 ------------------------------------------------*/
2666 #define SWIG_init init_controls_
2667
2668 #define SWIG_name "_controls_"
2669
2670 #define SWIGVERSION 0x010329
2671
2672
2673 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2674 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2675
2676
2677 #include <stdexcept>
2678
2679
2680 namespace swig {
2681 class PyObject_ptr {
2682 protected:
2683 PyObject *_obj;
2684
2685 public:
2686 PyObject_ptr() :_obj(0)
2687 {
2688 }
2689
2690 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2691 {
2692 Py_XINCREF(_obj);
2693 }
2694
2695 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2696 {
2697 if (initial_ref) Py_XINCREF(_obj);
2698 }
2699
2700 PyObject_ptr & operator=(const PyObject_ptr& item)
2701 {
2702 Py_XINCREF(item._obj);
2703 Py_XDECREF(_obj);
2704 _obj = item._obj;
2705 return *this;
2706 }
2707
2708 ~PyObject_ptr()
2709 {
2710 Py_XDECREF(_obj);
2711 }
2712
2713 operator PyObject *() const
2714 {
2715 return _obj;
2716 }
2717
2718 PyObject *operator->() const
2719 {
2720 return _obj;
2721 }
2722 };
2723 }
2724
2725
2726 namespace swig {
2727 struct PyObject_var : PyObject_ptr {
2728 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2729
2730 PyObject_var & operator = (PyObject* obj)
2731 {
2732 Py_XDECREF(_obj);
2733 _obj = obj;
2734 return *this;
2735 }
2736 };
2737 }
2738
2739
2740 #include "wx/wxPython/wxPython.h"
2741 #include "wx/wxPython/pyclasses.h"
2742
2743 static const wxString wxPyPanelNameStr(wxPanelNameStr);
2744 static const wxString wxPyEmptyString(wxEmptyString);
2745 static const wxString wxPyControlNameStr(wxControlNameStr);
2746
2747 const wxArrayString wxPyEmptyStringArray;
2748
2749 static const wxString wxPyButtonNameStr(wxButtonNameStr);
2750
2751 #define SWIG_From_long PyInt_FromLong
2752
2753
2754 SWIGINTERNINLINE PyObject *
2755 SWIG_From_int (int value)
2756 {
2757 return SWIG_From_long (value);
2758 }
2759
2760
2761 #include <limits.h>
2762 #ifndef LLONG_MIN
2763 # define LLONG_MIN LONG_LONG_MIN
2764 #endif
2765 #ifndef LLONG_MAX
2766 # define LLONG_MAX LONG_LONG_MAX
2767 #endif
2768 #ifndef ULLONG_MAX
2769 # define ULLONG_MAX ULONG_LONG_MAX
2770 #endif
2771
2772
2773 SWIGINTERN int
2774 SWIG_AsVal_long (PyObject* obj, long* val)
2775 {
2776 if (PyNumber_Check(obj)) {
2777 if (val) *val = PyInt_AsLong(obj);
2778 return SWIG_OK;
2779 }
2780 return SWIG_TypeError;
2781 }
2782
2783
2784 SWIGINTERN int
2785 SWIG_AsVal_int (PyObject * obj, int *val)
2786 {
2787 long v;
2788 int res = SWIG_AsVal_long (obj, &v);
2789 if (SWIG_IsOK(res)) {
2790 if ((v < INT_MIN || v > INT_MAX)) {
2791 return SWIG_OverflowError;
2792 } else {
2793 if (val) *val = static_cast< int >(v);
2794 }
2795 }
2796 return res;
2797 }
2798
2799 static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr);
2800
2801 SWIGINTERN int
2802 SWIG_AsVal_bool (PyObject *obj, bool *val)
2803 {
2804 if (obj == Py_True) {
2805 if (val) *val = true;
2806 return SWIG_OK;
2807 } else if (obj == Py_False) {
2808 if (val) *val = false;
2809 return SWIG_OK;
2810 } else {
2811 long v = 0;
2812 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2813 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2814 return res;
2815 }
2816 }
2817
2818 static const wxString wxPyChoiceNameStr(wxChoiceNameStr);
2819 static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr);
2820 static const wxString wxPyGaugeNameStr(wxGaugeNameStr);
2821 static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr);
2822 static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr);
2823 static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr);
2824
2825 #include <wx/checklst.h>
2826
2827 static const wxString wxPyListBoxNameStr(wxListBoxNameStr);
2828 SWIGINTERN void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData=NULL){
2829 if (clientData)
2830 {
2831 wxPyClientData* data = new wxPyClientData(clientData);
2832 self->Insert(item, pos, data);
2833 }
2834 else
2835 self->Insert(item, pos);
2836 }
2837
2838 SWIGINTERN int
2839 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2840 {
2841 long v = 0;
2842 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2843 return SWIG_TypeError;
2844 }
2845 else if (val)
2846 *val = (unsigned long)v;
2847 return SWIG_OK;
2848 }
2849
2850
2851 SWIGINTERN int
2852 SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
2853 {
2854 unsigned long v;
2855 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2856 if (SWIG_IsOK(res)) {
2857 if ((v > UINT_MAX)) {
2858 return SWIG_OverflowError;
2859 } else {
2860 if (val) *val = static_cast< unsigned int >(v);
2861 }
2862 }
2863 return res;
2864 }
2865
2866 SWIGINTERN PyObject *wxListBox_GetSelections(wxListBox *self){
2867 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2868 wxArrayInt lst;
2869 self->GetSelections(lst);
2870 PyObject *tup = PyTuple_New(lst.GetCount());
2871 for (size_t i=0; i<lst.GetCount(); i++)
2872 {
2873 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
2874 }
2875 wxPyEndBlockThreads(blocked);
2876 return tup;
2877 }
2878 SWIGINTERN void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){
2879 #ifdef __WXMSW__
2880 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2881 self->GetItem(item)->SetTextColour(c);
2882 #endif
2883 }
2884 SWIGINTERN void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){
2885 #ifdef __WXMSW__
2886 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2887 self->GetItem(item)->SetBackgroundColour(c);
2888 #endif
2889 }
2890 SWIGINTERN void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){
2891 #ifdef __WXMSW__
2892 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2893 self->GetItem(item)->SetFont(f);
2894 #endif
2895 }
2896 static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr);
2897 SWIGINTERN void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
2898 self->AppendText(text);
2899 }
2900 SWIGINTERN wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
2901 return self->GetValue().Mid(from, to - from);
2902 }
2903 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
2904 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
2905 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
2906 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
2907 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
2908
2909 SWIGINTERNINLINE PyObject*
2910 SWIG_From_unsigned_SS_long (unsigned long value)
2911 {
2912 return (value > LONG_MAX) ?
2913 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2914 }
2915
2916
2917 SWIGINTERNINLINE PyObject *
2918 SWIG_From_size_t (size_t value)
2919 {
2920 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
2921 }
2922
2923
2924 SWIGINTERNINLINE PyObject *
2925 SWIG_From_unsigned_SS_int (unsigned int value)
2926 {
2927 return SWIG_From_unsigned_SS_long (value);
2928 }
2929
2930
2931 #include <wx/slider.h>
2932
2933
2934 static const wxString wxPySliderNameStr(wxSliderNameStr);
2935 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
2936
2937 #if !wxUSE_TOGGLEBTN
2938 // implement dummy items for platforms that don't have this class
2939
2940 #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
2941
2942 class wxToggleButton : public wxControl
2943 {
2944 public:
2945 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
2946 const wxPoint&, const wxSize&, long,
2947 const wxValidator&, const wxString&)
2948 { wxPyRaiseNotImplemented(); }
2949
2950 wxToggleButton()
2951 { wxPyRaiseNotImplemented(); }
2952 };
2953 #endif
2954
2955 static const wxString wxPyNotebookNameStr(wxNotebookNameStr);
2956
2957 SWIGINTERNINLINE int
2958 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
2959 {
2960 unsigned long v;
2961 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
2962 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
2963 return res;
2964 }
2965
2966 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
2967 SWIGINTERN PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
2968 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
2969 if (udata) {
2970 Py_INCREF(udata->m_obj);
2971 return udata->m_obj;
2972 } else {
2973 Py_INCREF(Py_None);
2974 return Py_None;
2975 }
2976 }
2977 SWIGINTERN void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
2978 self->SetClientData(new wxPyUserData(clientData));
2979 }
2980 SWIGINTERN wxToolBarToolBase *wxToolBarBase_DoAddTool(wxToolBarBase *self,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled=wxNullBitmap,wxItemKind kind=wxITEM_NORMAL,wxString const &shortHelp=wxPyEmptyString,wxString const &longHelp=wxPyEmptyString,PyObject *clientData=NULL){
2981 wxPyUserData* udata = NULL;
2982 if (clientData && clientData != Py_None)
2983 udata = new wxPyUserData(clientData);
2984 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
2985 shortHelp, longHelp, udata);
2986 }
2987 SWIGINTERN wxToolBarToolBase *wxToolBarBase_DoInsertTool(wxToolBarBase *self,size_t pos,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled=wxNullBitmap,wxItemKind kind=wxITEM_NORMAL,wxString const &shortHelp=wxPyEmptyString,wxString const &longHelp=wxPyEmptyString,PyObject *clientData=NULL){
2988 wxPyUserData* udata = NULL;
2989 if (clientData && clientData != Py_None)
2990 udata = new wxPyUserData(clientData);
2991 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
2992 shortHelp, longHelp, udata);
2993 }
2994 SWIGINTERN PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
2995 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
2996 if (udata) {
2997 Py_INCREF(udata->m_obj);
2998 return udata->m_obj;
2999 } else {
3000 Py_INCREF(Py_None);
3001 return Py_None;
3002 }
3003 }
3004 SWIGINTERN void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
3005 self->SetToolClientData(id, new wxPyUserData(clientData));
3006 }
3007
3008 #include <wx/listctrl.h>
3009
3010 static const wxString wxPyListCtrlNameStr(wxListCtrlNameStr);
3011 SWIGINTERN void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
3012 // Python aware sorting function for wxPyListCtrl
3013 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
3014 int retval = 0;
3015 PyObject* func = (PyObject*)funcPtr;
3016 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3017
3018 PyObject* args = Py_BuildValue("(ii)", item1, item2);
3019 PyObject* result = PyEval_CallObject(func, args);
3020 Py_DECREF(args);
3021 if (result) {
3022 retval = PyInt_AsLong(result);
3023 Py_DECREF(result);
3024 }
3025
3026 wxPyEndBlockThreads(blocked);
3027 return retval;
3028 }
3029
3030 // C++ Version of a Python aware class
3031 class wxPyListCtrl : public wxListCtrl {
3032 DECLARE_ABSTRACT_CLASS(wxPyListCtrl)
3033 public:
3034 wxPyListCtrl() : wxListCtrl() {}
3035 wxPyListCtrl(wxWindow* parent, wxWindowID id,
3036 const wxPoint& pos,
3037 const wxSize& size,
3038 long style,
3039 const wxValidator& validator,
3040 const wxString& name) :
3041 wxListCtrl(parent, id, pos, size, style, validator, name) {}
3042
3043 bool Create(wxWindow* parent, wxWindowID id,
3044 const wxPoint& pos,
3045 const wxSize& size,
3046 long style,
3047 const wxValidator& validator,
3048 const wxString& name) {
3049 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
3050 }
3051
3052 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
3053 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
3054
3055 // use the virtual version to avoid a confusing assert in the base class
3056 DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage);
3057 DEC_PYCALLBACK_INT_LONGLONG(OnGetItemColumnImage);
3058
3059 PYPRIVATE;
3060 };
3061
3062 IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
3063
3064 IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
3065 IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
3066 IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage);
3067 IMP_PYCALLBACK_INT_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemColumnImage);
3068
3069
3070 SWIGINTERN wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
3071 wxListItem item;
3072 item.SetMask( wxLIST_MASK_STATE |
3073 wxLIST_MASK_TEXT |
3074 wxLIST_MASK_IMAGE |
3075 wxLIST_MASK_DATA |
3076 wxLIST_SET_ITEM |
3077 wxLIST_MASK_WIDTH |
3078 wxLIST_MASK_FORMAT
3079 );
3080 if (self->GetColumn(col, item))
3081 return new wxListItem(item);
3082 else
3083 return NULL;
3084 }
3085 SWIGINTERN wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col=0){
3086 wxListItem* info = new wxListItem;
3087 info->m_itemId = itemId;
3088 info->m_col = col;
3089 info->m_mask = 0xFFFF;
3090 self->GetItem(*info);
3091 return info;
3092 }
3093 SWIGINTERN wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
3094 wxPoint pos;
3095 self->GetItemPosition(item, pos);
3096 return pos;
3097 }
3098 SWIGINTERN wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code=wxLIST_RECT_BOUNDS){
3099 wxRect rect;
3100 self->GetItemRect(item, rect, code);
3101 return rect;
3102 }
3103 SWIGINTERN bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
3104 if (!PyCallable_Check(func))
3105 return false;
3106 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
3107 }
3108 SWIGINTERN wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
3109
3110
3111
3112 return (wxWindow*)self->m_mainWin;
3113
3114 }
3115
3116 #include <wx/treectrl.h>
3117 #include "wx/wxPython/pytree.h"
3118
3119 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
3120 SWIGINTERN bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; }
3121 SWIGINTERN bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; }
3122 SWIGINTERN void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
3123
3124 static wxTreeItemId wxNullTreeItemId;
3125
3126 // C++ version of Python aware wxTreeCtrl
3127 class wxPyTreeCtrl : public wxTreeCtrl {
3128 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl)
3129 public:
3130 wxPyTreeCtrl() : wxTreeCtrl() {}
3131 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
3132 const wxPoint& pos,
3133 const wxSize& size,
3134 long style,
3135 const wxValidator& validator,
3136 const wxString& name) :
3137 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
3138
3139 bool Create(wxWindow *parent, wxWindowID id,
3140 const wxPoint& pos,
3141 const wxSize& size,
3142 long style,
3143 const wxValidator& validator,
3144 const wxString& name) {
3145 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
3146 }
3147
3148
3149 int OnCompareItems(const wxTreeItemId& item1,
3150 const wxTreeItemId& item2) {
3151 int rval = 0;
3152 bool found;
3153 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3154 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
3155 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false);
3156 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false);
3157 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
3158 Py_DECREF(o1);
3159 Py_DECREF(o2);
3160 }
3161 wxPyEndBlockThreads(blocked);
3162 if (! found)
3163 rval = wxTreeCtrl::OnCompareItems(item1, item2);
3164 return rval;
3165 }
3166 PYPRIVATE;
3167 };
3168
3169 IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
3170
3171
3172 SWIGINTERN wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
3173 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3174 if (data == NULL) {
3175 data = new wxPyTreeItemData();
3176 data->SetId(item); // set the id
3177 self->SetItemData(item, data);
3178 }
3179 return data;
3180 }
3181 SWIGINTERN PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
3182 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3183 if (data == NULL) {
3184 data = new wxPyTreeItemData();
3185 data->SetId(item); // set the id
3186 self->SetItemData(item, data);
3187 }
3188 return data->GetData();
3189 }
3190 SWIGINTERN void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
3191 data->SetId(item); // set the id
3192 self->SetItemData(item, data);
3193 }
3194 SWIGINTERN void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
3195 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3196 if (data == NULL) {
3197 data = new wxPyTreeItemData(obj);
3198 data->SetId(item); // set the id
3199 self->SetItemData(item, data);
3200 } else
3201 data->SetData(obj);
3202 }
3203 SWIGINTERN PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
3204 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3205 PyObject* rval = PyList_New(0);
3206 wxArrayTreeItemIds array;
3207 size_t num, x;
3208 num = self->GetSelections(array);
3209 for (x=0; x < num; x++) {
3210 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
3211 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true);
3212 PyList_Append(rval, item);
3213 Py_DECREF(item);
3214 }
3215 wxPyEndBlockThreads(blocked);
3216 return rval;
3217 }
3218 SWIGINTERN PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
3219 void* cookie = 0;
3220 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
3221 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3222 PyObject* tup = PyTuple_New(2);
3223 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
3224 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3225 wxPyEndBlockThreads(blocked);
3226 return tup;
3227 }
3228 SWIGINTERN PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
3229 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
3230 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3231 PyObject* tup = PyTuple_New(2);
3232 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
3233 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3234 wxPyEndBlockThreads(blocked);
3235 return tup;
3236 }
3237 SWIGINTERN PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly=false){
3238 wxRect rect;
3239 if (self->GetBoundingRect(item, rect, textOnly)) {
3240 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3241 wxRect* r = new wxRect(rect);
3242 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true);
3243 wxPyEndBlockThreads(blocked);
3244 return val;
3245 }
3246 else
3247 RETURN_NONE();
3248 }
3249 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
3250
3251 SWIGINTERNINLINE PyObject*
3252 SWIG_From_bool (bool value)
3253 {
3254 return PyBool_FromLong(value ? 1 : 0);
3255 }
3256
3257 // C++ version of Python aware wxControl
3258 class wxPyControl : public wxControl
3259 {
3260 DECLARE_DYNAMIC_CLASS(wxPyControl)
3261 public:
3262 wxPyControl() : wxControl() {}
3263 wxPyControl(wxWindow* parent, const wxWindowID id,
3264 const wxPoint& pos = wxDefaultPosition,
3265 const wxSize& size = wxDefaultSize,
3266 long style = 0,
3267 const wxValidator& validator=wxDefaultValidator,
3268 const wxString& name = wxPyControlNameStr)
3269 : wxControl(parent, id, pos, size, style, validator, name) {}
3270
3271 void SetBestSize(const wxSize& size) { wxControl::SetBestSize(size); }
3272
3273 bool DoEraseBackground(wxDC* dc) {
3274 #ifdef __WXMSW__
3275 return wxWindow::DoEraseBackground(dc->GetHDC());
3276 #else
3277 dc->SetBackground(wxBrush(GetBackgroundColour()));
3278 dc->Clear();
3279 return true;
3280 #endif
3281 }
3282
3283 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
3284 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
3285 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
3286 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
3287
3288 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
3289 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
3290 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
3291
3292 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
3293 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
3294
3295 DEC_PYCALLBACK__(InitDialog);
3296 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
3297 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
3298 DEC_PYCALLBACK_BOOL_(Validate);
3299
3300 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
3301 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
3302 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
3303
3304 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
3305 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
3306
3307 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
3308 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
3309
3310 DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
3311
3312 DEC_PYCALLBACK_VOID_(OnInternalIdle);
3313
3314 PYPRIVATE;
3315 };
3316
3317 IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
3318
3319 IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
3320 IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
3321 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
3322 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
3323
3324 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
3325 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
3326 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
3327
3328 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
3329 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
3330
3331 IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
3332 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
3333 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
3334 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
3335
3336 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
3337 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
3338 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
3339
3340 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
3341 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
3342
3343 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours);
3344 IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
3345
3346 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground);
3347
3348 IMP_PYCALLBACK_VOID_(wxPyControl, wxControl, OnInternalIdle);
3349
3350
3351
3352 SWIGINTERN void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
3353
3354 #include <wx/generic/dragimgg.h>
3355
3356 static const wxString wxPyDatePickerCtrlNameStr(wxDatePickerCtrlNameStr);
3357 SWIGINTERN wxDateTime wxDatePickerCtrl_GetLowerLimit(wxDatePickerCtrl *self){
3358 wxDateTime rv;
3359 self->GetRange(&rv, NULL);
3360 return rv;
3361 }
3362 SWIGINTERN wxDateTime wxDatePickerCtrl_GetUpperLimit(wxDatePickerCtrl *self){
3363 wxDateTime rv;
3364 self->GetRange(NULL, &rv);
3365 return rv;
3366 }
3367 static const wxString wxPyHyperlinkCtrlNameStr(wxHyperlinkCtrlNameStr);
3368 static const wxString wxPyColourPickerCtrlNameStr(wxColourPickerCtrlNameStr);
3369 static const wxString wxPyFilePickerCtrlNameStr(wxFilePickerCtrlNameStr);
3370 static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
3371 static const wxString wxPyDirPickerCtrlNameStr(wxDirPickerCtrlNameStr);
3372 static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
3373 static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr);
3374 static const wxString wxPyFontPickerCtrlNameStr(wxFontPickerCtrlNameStr);
3375 #ifdef __cplusplus
3376 extern "C" {
3377 #endif
3378 SWIGINTERN int ButtonNameStr_set(PyObject *) {
3379 SWIG_Error(SWIG_AttributeError,"Variable ButtonNameStr is read-only.");
3380 return 1;
3381 }
3382
3383
3384 SWIGINTERN PyObject *ButtonNameStr_get(void) {
3385 PyObject *pyobj = 0;
3386
3387 {
3388 #if wxUSE_UNICODE
3389 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
3390 #else
3391 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
3392 #endif
3393 }
3394 return pyobj;
3395 }
3396
3397
3398 SWIGINTERN PyObject *_wrap_new_Button(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3399 PyObject *resultobj = 0;
3400 wxWindow *arg1 = (wxWindow *) 0 ;
3401 int arg2 = (int) -1 ;
3402 wxString const &arg3_defvalue = wxPyEmptyString ;
3403 wxString *arg3 = (wxString *) &arg3_defvalue ;
3404 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3405 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3406 wxSize const &arg5_defvalue = wxDefaultSize ;
3407 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3408 long arg6 = (long) 0 ;
3409 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3410 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3411 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3412 wxString *arg8 = (wxString *) &arg8_defvalue ;
3413 wxButton *result = 0 ;
3414 void *argp1 = 0 ;
3415 int res1 = 0 ;
3416 int val2 ;
3417 int ecode2 = 0 ;
3418 bool temp3 = false ;
3419 wxPoint temp4 ;
3420 wxSize temp5 ;
3421 long val6 ;
3422 int ecode6 = 0 ;
3423 void *argp7 = 0 ;
3424 int res7 = 0 ;
3425 bool temp8 = false ;
3426 PyObject * obj0 = 0 ;
3427 PyObject * obj1 = 0 ;
3428 PyObject * obj2 = 0 ;
3429 PyObject * obj3 = 0 ;
3430 PyObject * obj4 = 0 ;
3431 PyObject * obj5 = 0 ;
3432 PyObject * obj6 = 0 ;
3433 PyObject * obj7 = 0 ;
3434 char * kwnames[] = {
3435 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3436 };
3437
3438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3440 if (!SWIG_IsOK(res1)) {
3441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Button" "', expected argument " "1"" of type '" "wxWindow *""'");
3442 }
3443 arg1 = reinterpret_cast< wxWindow * >(argp1);
3444 if (obj1) {
3445 ecode2 = SWIG_AsVal_int(obj1, &val2);
3446 if (!SWIG_IsOK(ecode2)) {
3447 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Button" "', expected argument " "2"" of type '" "int""'");
3448 }
3449 arg2 = static_cast< int >(val2);
3450 }
3451 if (obj2) {
3452 {
3453 arg3 = wxString_in_helper(obj2);
3454 if (arg3 == NULL) SWIG_fail;
3455 temp3 = true;
3456 }
3457 }
3458 if (obj3) {
3459 {
3460 arg4 = &temp4;
3461 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3462 }
3463 }
3464 if (obj4) {
3465 {
3466 arg5 = &temp5;
3467 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3468 }
3469 }
3470 if (obj5) {
3471 ecode6 = SWIG_AsVal_long(obj5, &val6);
3472 if (!SWIG_IsOK(ecode6)) {
3473 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Button" "', expected argument " "6"" of type '" "long""'");
3474 }
3475 arg6 = static_cast< long >(val6);
3476 }
3477 if (obj6) {
3478 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3479 if (!SWIG_IsOK(res7)) {
3480 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
3481 }
3482 if (!argp7) {
3483 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
3484 }
3485 arg7 = reinterpret_cast< wxValidator * >(argp7);
3486 }
3487 if (obj7) {
3488 {
3489 arg8 = wxString_in_helper(obj7);
3490 if (arg8 == NULL) SWIG_fail;
3491 temp8 = true;
3492 }
3493 }
3494 {
3495 if (!wxPyCheckForApp()) SWIG_fail;
3496 PyThreadState* __tstate = wxPyBeginAllowThreads();
3497 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3498 wxPyEndAllowThreads(__tstate);
3499 if (PyErr_Occurred()) SWIG_fail;
3500 }
3501 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_NEW | 0 );
3502 {
3503 if (temp3)
3504 delete arg3;
3505 }
3506 {
3507 if (temp8)
3508 delete arg8;
3509 }
3510 return resultobj;
3511 fail:
3512 {
3513 if (temp3)
3514 delete arg3;
3515 }
3516 {
3517 if (temp8)
3518 delete arg8;
3519 }
3520 return NULL;
3521 }
3522
3523
3524 SWIGINTERN PyObject *_wrap_new_PreButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3525 PyObject *resultobj = 0;
3526 wxButton *result = 0 ;
3527
3528 if (!SWIG_Python_UnpackTuple(args,"new_PreButton",0,0,0)) SWIG_fail;
3529 {
3530 if (!wxPyCheckForApp()) SWIG_fail;
3531 PyThreadState* __tstate = wxPyBeginAllowThreads();
3532 result = (wxButton *)new wxButton();
3533 wxPyEndAllowThreads(__tstate);
3534 if (PyErr_Occurred()) SWIG_fail;
3535 }
3536 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_OWN | 0 );
3537 return resultobj;
3538 fail:
3539 return NULL;
3540 }
3541
3542
3543 SWIGINTERN PyObject *_wrap_Button_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3544 PyObject *resultobj = 0;
3545 wxButton *arg1 = (wxButton *) 0 ;
3546 wxWindow *arg2 = (wxWindow *) 0 ;
3547 int arg3 = (int) -1 ;
3548 wxString const &arg4_defvalue = wxPyEmptyString ;
3549 wxString *arg4 = (wxString *) &arg4_defvalue ;
3550 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3551 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3552 wxSize const &arg6_defvalue = wxDefaultSize ;
3553 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3554 long arg7 = (long) 0 ;
3555 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3556 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3557 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3558 wxString *arg9 = (wxString *) &arg9_defvalue ;
3559 bool result;
3560 void *argp1 = 0 ;
3561 int res1 = 0 ;
3562 void *argp2 = 0 ;
3563 int res2 = 0 ;
3564 int val3 ;
3565 int ecode3 = 0 ;
3566 bool temp4 = false ;
3567 wxPoint temp5 ;
3568 wxSize temp6 ;
3569 long val7 ;
3570 int ecode7 = 0 ;
3571 void *argp8 = 0 ;
3572 int res8 = 0 ;
3573 bool temp9 = false ;
3574 PyObject * obj0 = 0 ;
3575 PyObject * obj1 = 0 ;
3576 PyObject * obj2 = 0 ;
3577 PyObject * obj3 = 0 ;
3578 PyObject * obj4 = 0 ;
3579 PyObject * obj5 = 0 ;
3580 PyObject * obj6 = 0 ;
3581 PyObject * obj7 = 0 ;
3582 PyObject * obj8 = 0 ;
3583 char * kwnames[] = {
3584 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3585 };
3586
3587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3589 if (!SWIG_IsOK(res1)) {
3590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_Create" "', expected argument " "1"" of type '" "wxButton *""'");
3591 }
3592 arg1 = reinterpret_cast< wxButton * >(argp1);
3593 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3594 if (!SWIG_IsOK(res2)) {
3595 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Button_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3596 }
3597 arg2 = reinterpret_cast< wxWindow * >(argp2);
3598 if (obj2) {
3599 ecode3 = SWIG_AsVal_int(obj2, &val3);
3600 if (!SWIG_IsOK(ecode3)) {
3601 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Button_Create" "', expected argument " "3"" of type '" "int""'");
3602 }
3603 arg3 = static_cast< int >(val3);
3604 }
3605 if (obj3) {
3606 {
3607 arg4 = wxString_in_helper(obj3);
3608 if (arg4 == NULL) SWIG_fail;
3609 temp4 = true;
3610 }
3611 }
3612 if (obj4) {
3613 {
3614 arg5 = &temp5;
3615 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3616 }
3617 }
3618 if (obj5) {
3619 {
3620 arg6 = &temp6;
3621 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3622 }
3623 }
3624 if (obj6) {
3625 ecode7 = SWIG_AsVal_long(obj6, &val7);
3626 if (!SWIG_IsOK(ecode7)) {
3627 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Button_Create" "', expected argument " "7"" of type '" "long""'");
3628 }
3629 arg7 = static_cast< long >(val7);
3630 }
3631 if (obj7) {
3632 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3633 if (!SWIG_IsOK(res8)) {
3634 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3635 }
3636 if (!argp8) {
3637 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3638 }
3639 arg8 = reinterpret_cast< wxValidator * >(argp8);
3640 }
3641 if (obj8) {
3642 {
3643 arg9 = wxString_in_helper(obj8);
3644 if (arg9 == NULL) SWIG_fail;
3645 temp9 = true;
3646 }
3647 }
3648 {
3649 PyThreadState* __tstate = wxPyBeginAllowThreads();
3650 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3651 wxPyEndAllowThreads(__tstate);
3652 if (PyErr_Occurred()) SWIG_fail;
3653 }
3654 {
3655 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3656 }
3657 {
3658 if (temp4)
3659 delete arg4;
3660 }
3661 {
3662 if (temp9)
3663 delete arg9;
3664 }
3665 return resultobj;
3666 fail:
3667 {
3668 if (temp4)
3669 delete arg4;
3670 }
3671 {
3672 if (temp9)
3673 delete arg9;
3674 }
3675 return NULL;
3676 }
3677
3678
3679 SWIGINTERN PyObject *_wrap_Button_SetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3680 PyObject *resultobj = 0;
3681 wxButton *arg1 = (wxButton *) 0 ;
3682 void *argp1 = 0 ;
3683 int res1 = 0 ;
3684 PyObject *swig_obj[1] ;
3685
3686 if (!args) SWIG_fail;
3687 swig_obj[0] = args;
3688 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3689 if (!SWIG_IsOK(res1)) {
3690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_SetDefault" "', expected argument " "1"" of type '" "wxButton *""'");
3691 }
3692 arg1 = reinterpret_cast< wxButton * >(argp1);
3693 {
3694 PyThreadState* __tstate = wxPyBeginAllowThreads();
3695 (arg1)->SetDefault();
3696 wxPyEndAllowThreads(__tstate);
3697 if (PyErr_Occurred()) SWIG_fail;
3698 }
3699 resultobj = SWIG_Py_Void();
3700 return resultobj;
3701 fail:
3702 return NULL;
3703 }
3704
3705
3706 SWIGINTERN PyObject *_wrap_Button_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3707 PyObject *resultobj = 0;
3708 wxSize result;
3709
3710 if (!SWIG_Python_UnpackTuple(args,"Button_GetDefaultSize",0,0,0)) SWIG_fail;
3711 {
3712 PyThreadState* __tstate = wxPyBeginAllowThreads();
3713 result = wxButton::GetDefaultSize();
3714 wxPyEndAllowThreads(__tstate);
3715 if (PyErr_Occurred()) SWIG_fail;
3716 }
3717 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
3718 return resultobj;
3719 fail:
3720 return NULL;
3721 }
3722
3723
3724 SWIGINTERN PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3725 PyObject *resultobj = 0;
3726 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
3727 SwigValueWrapper<wxVisualAttributes > result;
3728 int val1 ;
3729 int ecode1 = 0 ;
3730 PyObject * obj0 = 0 ;
3731 char * kwnames[] = {
3732 (char *) "variant", NULL
3733 };
3734
3735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
3736 if (obj0) {
3737 ecode1 = SWIG_AsVal_int(obj0, &val1);
3738 if (!SWIG_IsOK(ecode1)) {
3739 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Button_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
3740 }
3741 arg1 = static_cast< wxWindowVariant >(val1);
3742 }
3743 {
3744 if (!wxPyCheckForApp()) SWIG_fail;
3745 PyThreadState* __tstate = wxPyBeginAllowThreads();
3746 result = wxButton::GetClassDefaultAttributes(arg1);
3747 wxPyEndAllowThreads(__tstate);
3748 if (PyErr_Occurred()) SWIG_fail;
3749 }
3750 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
3751 return resultobj;
3752 fail:
3753 return NULL;
3754 }
3755
3756
3757 SWIGINTERN PyObject *Button_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3758 PyObject *obj;
3759 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3760 SWIG_TypeNewClientData(SWIGTYPE_p_wxButton, SWIG_NewClientData(obj));
3761 return SWIG_Py_Void();
3762 }
3763
3764 SWIGINTERN PyObject *Button_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3765 return SWIG_Python_InitShadowInstance(args);
3766 }
3767
3768 SWIGINTERN PyObject *_wrap_new_BitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3769 PyObject *resultobj = 0;
3770 wxWindow *arg1 = (wxWindow *) 0 ;
3771 int arg2 = (int) -1 ;
3772 wxBitmap const &arg3_defvalue = wxNullBitmap ;
3773 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
3774 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3775 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3776 wxSize const &arg5_defvalue = wxDefaultSize ;
3777 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3778 long arg6 = (long) wxBU_AUTODRAW ;
3779 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3780 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3781 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3782 wxString *arg8 = (wxString *) &arg8_defvalue ;
3783 wxBitmapButton *result = 0 ;
3784 void *argp1 = 0 ;
3785 int res1 = 0 ;
3786 int val2 ;
3787 int ecode2 = 0 ;
3788 void *argp3 = 0 ;
3789 int res3 = 0 ;
3790 wxPoint temp4 ;
3791 wxSize temp5 ;
3792 long val6 ;
3793 int ecode6 = 0 ;
3794 void *argp7 = 0 ;
3795 int res7 = 0 ;
3796 bool temp8 = false ;
3797 PyObject * obj0 = 0 ;
3798 PyObject * obj1 = 0 ;
3799 PyObject * obj2 = 0 ;
3800 PyObject * obj3 = 0 ;
3801 PyObject * obj4 = 0 ;
3802 PyObject * obj5 = 0 ;
3803 PyObject * obj6 = 0 ;
3804 PyObject * obj7 = 0 ;
3805 char * kwnames[] = {
3806 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3807 };
3808
3809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3811 if (!SWIG_IsOK(res1)) {
3812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapButton" "', expected argument " "1"" of type '" "wxWindow *""'");
3813 }
3814 arg1 = reinterpret_cast< wxWindow * >(argp1);
3815 if (obj1) {
3816 ecode2 = SWIG_AsVal_int(obj1, &val2);
3817 if (!SWIG_IsOK(ecode2)) {
3818 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapButton" "', expected argument " "2"" of type '" "int""'");
3819 }
3820 arg2 = static_cast< int >(val2);
3821 }
3822 if (obj2) {
3823 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
3824 if (!SWIG_IsOK(res3)) {
3825 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3826 }
3827 if (!argp3) {
3828 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3829 }
3830 arg3 = reinterpret_cast< wxBitmap * >(argp3);
3831 }
3832 if (obj3) {
3833 {
3834 arg4 = &temp4;
3835 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3836 }
3837 }
3838 if (obj4) {
3839 {
3840 arg5 = &temp5;
3841 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3842 }
3843 }
3844 if (obj5) {
3845 ecode6 = SWIG_AsVal_long(obj5, &val6);
3846 if (!SWIG_IsOK(ecode6)) {
3847 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_BitmapButton" "', expected argument " "6"" of type '" "long""'");
3848 }
3849 arg6 = static_cast< long >(val6);
3850 }
3851 if (obj6) {
3852 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3853 if (!SWIG_IsOK(res7)) {
3854 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
3855 }
3856 if (!argp7) {
3857 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
3858 }
3859 arg7 = reinterpret_cast< wxValidator * >(argp7);
3860 }
3861 if (obj7) {
3862 {
3863 arg8 = wxString_in_helper(obj7);
3864 if (arg8 == NULL) SWIG_fail;
3865 temp8 = true;
3866 }
3867 }
3868 {
3869 if (!wxPyCheckForApp()) SWIG_fail;
3870 PyThreadState* __tstate = wxPyBeginAllowThreads();
3871 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3872 wxPyEndAllowThreads(__tstate);
3873 if (PyErr_Occurred()) SWIG_fail;
3874 }
3875 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_NEW | 0 );
3876 {
3877 if (temp8)
3878 delete arg8;
3879 }
3880 return resultobj;
3881 fail:
3882 {
3883 if (temp8)
3884 delete arg8;
3885 }
3886 return NULL;
3887 }
3888
3889
3890 SWIGINTERN PyObject *_wrap_new_PreBitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3891 PyObject *resultobj = 0;
3892 wxBitmapButton *result = 0 ;
3893
3894 if (!SWIG_Python_UnpackTuple(args,"new_PreBitmapButton",0,0,0)) SWIG_fail;
3895 {
3896 if (!wxPyCheckForApp()) SWIG_fail;
3897 PyThreadState* __tstate = wxPyBeginAllowThreads();
3898 result = (wxBitmapButton *)new wxBitmapButton();
3899 wxPyEndAllowThreads(__tstate);
3900 if (PyErr_Occurred()) SWIG_fail;
3901 }
3902 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_OWN | 0 );
3903 return resultobj;
3904 fail:
3905 return NULL;
3906 }
3907
3908
3909 SWIGINTERN PyObject *_wrap_BitmapButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3910 PyObject *resultobj = 0;
3911 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
3912 wxWindow *arg2 = (wxWindow *) 0 ;
3913 int arg3 = (int) -1 ;
3914 wxBitmap const &arg4_defvalue = wxNullBitmap ;
3915 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
3916 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3917 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3918 wxSize const &arg6_defvalue = wxDefaultSize ;
3919 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3920 long arg7 = (long) wxBU_AUTODRAW ;
3921 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3922 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3923 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3924 wxString *arg9 = (wxString *) &arg9_defvalue ;
3925 bool result;
3926 void *argp1 = 0 ;
3927 int res1 = 0 ;
3928 void *argp2 = 0 ;
3929 int res2 = 0 ;
3930 int val3 ;
3931 int ecode3 = 0 ;
3932 void *argp4 = 0 ;
3933 int res4 = 0 ;
3934 wxPoint temp5 ;
3935 wxSize temp6 ;
3936 long val7 ;
3937 int ecode7 = 0 ;
3938 void *argp8 = 0 ;
3939 int res8 = 0 ;
3940 bool temp9 = false ;
3941 PyObject * obj0 = 0 ;
3942 PyObject * obj1 = 0 ;
3943 PyObject * obj2 = 0 ;
3944 PyObject * obj3 = 0 ;
3945 PyObject * obj4 = 0 ;
3946 PyObject * obj5 = 0 ;
3947 PyObject * obj6 = 0 ;
3948 PyObject * obj7 = 0 ;
3949 PyObject * obj8 = 0 ;
3950 char * kwnames[] = {
3951 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3952 };
3953
3954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
3956 if (!SWIG_IsOK(res1)) {
3957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_Create" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
3958 }
3959 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
3960 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3961 if (!SWIG_IsOK(res2)) {
3962 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3963 }
3964 arg2 = reinterpret_cast< wxWindow * >(argp2);
3965 if (obj2) {
3966 ecode3 = SWIG_AsVal_int(obj2, &val3);
3967 if (!SWIG_IsOK(ecode3)) {
3968 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_Create" "', expected argument " "3"" of type '" "int""'");
3969 }
3970 arg3 = static_cast< int >(val3);
3971 }
3972 if (obj3) {
3973 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
3974 if (!SWIG_IsOK(res4)) {
3975 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
3976 }
3977 if (!argp4) {
3978 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
3979 }
3980 arg4 = reinterpret_cast< wxBitmap * >(argp4);
3981 }
3982 if (obj4) {
3983 {
3984 arg5 = &temp5;
3985 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3986 }
3987 }
3988 if (obj5) {
3989 {
3990 arg6 = &temp6;
3991 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3992 }
3993 }
3994 if (obj6) {
3995 ecode7 = SWIG_AsVal_long(obj6, &val7);
3996 if (!SWIG_IsOK(ecode7)) {
3997 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "BitmapButton_Create" "', expected argument " "7"" of type '" "long""'");
3998 }
3999 arg7 = static_cast< long >(val7);
4000 }
4001 if (obj7) {
4002 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4003 if (!SWIG_IsOK(res8)) {
4004 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4005 }
4006 if (!argp8) {
4007 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4008 }
4009 arg8 = reinterpret_cast< wxValidator * >(argp8);
4010 }
4011 if (obj8) {
4012 {
4013 arg9 = wxString_in_helper(obj8);
4014 if (arg9 == NULL) SWIG_fail;
4015 temp9 = true;
4016 }
4017 }
4018 {
4019 PyThreadState* __tstate = wxPyBeginAllowThreads();
4020 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4021 wxPyEndAllowThreads(__tstate);
4022 if (PyErr_Occurred()) SWIG_fail;
4023 }
4024 {
4025 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4026 }
4027 {
4028 if (temp9)
4029 delete arg9;
4030 }
4031 return resultobj;
4032 fail:
4033 {
4034 if (temp9)
4035 delete arg9;
4036 }
4037 return NULL;
4038 }
4039
4040
4041 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4042 PyObject *resultobj = 0;
4043 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4044 wxBitmap result;
4045 void *argp1 = 0 ;
4046 int res1 = 0 ;
4047 PyObject *swig_obj[1] ;
4048
4049 if (!args) SWIG_fail;
4050 swig_obj[0] = args;
4051 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4052 if (!SWIG_IsOK(res1)) {
4053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4054 }
4055 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4056 {
4057 PyThreadState* __tstate = wxPyBeginAllowThreads();
4058 result = (arg1)->GetBitmapLabel();
4059 wxPyEndAllowThreads(__tstate);
4060 if (PyErr_Occurred()) SWIG_fail;
4061 }
4062 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4063 return resultobj;
4064 fail:
4065 return NULL;
4066 }
4067
4068
4069 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4070 PyObject *resultobj = 0;
4071 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4072 wxBitmap result;
4073 void *argp1 = 0 ;
4074 int res1 = 0 ;
4075 PyObject *swig_obj[1] ;
4076
4077 if (!args) SWIG_fail;
4078 swig_obj[0] = args;
4079 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4080 if (!SWIG_IsOK(res1)) {
4081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4082 }
4083 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4084 {
4085 PyThreadState* __tstate = wxPyBeginAllowThreads();
4086 result = (arg1)->GetBitmapDisabled();
4087 wxPyEndAllowThreads(__tstate);
4088 if (PyErr_Occurred()) SWIG_fail;
4089 }
4090 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4091 return resultobj;
4092 fail:
4093 return NULL;
4094 }
4095
4096
4097 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4098 PyObject *resultobj = 0;
4099 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4100 wxBitmap result;
4101 void *argp1 = 0 ;
4102 int res1 = 0 ;
4103 PyObject *swig_obj[1] ;
4104
4105 if (!args) SWIG_fail;
4106 swig_obj[0] = args;
4107 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4108 if (!SWIG_IsOK(res1)) {
4109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4110 }
4111 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4112 {
4113 PyThreadState* __tstate = wxPyBeginAllowThreads();
4114 result = (arg1)->GetBitmapFocus();
4115 wxPyEndAllowThreads(__tstate);
4116 if (PyErr_Occurred()) SWIG_fail;
4117 }
4118 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4119 return resultobj;
4120 fail:
4121 return NULL;
4122 }
4123
4124
4125 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4126 PyObject *resultobj = 0;
4127 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4128 wxBitmap result;
4129 void *argp1 = 0 ;
4130 int res1 = 0 ;
4131 PyObject *swig_obj[1] ;
4132
4133 if (!args) SWIG_fail;
4134 swig_obj[0] = args;
4135 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4136 if (!SWIG_IsOK(res1)) {
4137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4138 }
4139 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4140 {
4141 PyThreadState* __tstate = wxPyBeginAllowThreads();
4142 result = (arg1)->GetBitmapSelected();
4143 wxPyEndAllowThreads(__tstate);
4144 if (PyErr_Occurred()) SWIG_fail;
4145 }
4146 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4147 return resultobj;
4148 fail:
4149 return NULL;
4150 }
4151
4152
4153 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4154 PyObject *resultobj = 0;
4155 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4156 wxBitmap result;
4157 void *argp1 = 0 ;
4158 int res1 = 0 ;
4159 PyObject *swig_obj[1] ;
4160
4161 if (!args) SWIG_fail;
4162 swig_obj[0] = args;
4163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4164 if (!SWIG_IsOK(res1)) {
4165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4166 }
4167 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4168 {
4169 PyThreadState* __tstate = wxPyBeginAllowThreads();
4170 result = (arg1)->GetBitmapHover();
4171 wxPyEndAllowThreads(__tstate);
4172 if (PyErr_Occurred()) SWIG_fail;
4173 }
4174 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4175 return resultobj;
4176 fail:
4177 return NULL;
4178 }
4179
4180
4181 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4182 PyObject *resultobj = 0;
4183 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4184 wxBitmap *arg2 = 0 ;
4185 void *argp1 = 0 ;
4186 int res1 = 0 ;
4187 void *argp2 = 0 ;
4188 int res2 = 0 ;
4189 PyObject * obj0 = 0 ;
4190 PyObject * obj1 = 0 ;
4191 char * kwnames[] = {
4192 (char *) "self",(char *) "bitmap", NULL
4193 };
4194
4195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) SWIG_fail;
4196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4197 if (!SWIG_IsOK(res1)) {
4198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4199 }
4200 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4201 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4202 if (!SWIG_IsOK(res2)) {
4203 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4204 }
4205 if (!argp2) {
4206 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4207 }
4208 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4209 {
4210 PyThreadState* __tstate = wxPyBeginAllowThreads();
4211 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
4212 wxPyEndAllowThreads(__tstate);
4213 if (PyErr_Occurred()) SWIG_fail;
4214 }
4215 resultobj = SWIG_Py_Void();
4216 return resultobj;
4217 fail:
4218 return NULL;
4219 }
4220
4221
4222 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4223 PyObject *resultobj = 0;
4224 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4225 wxBitmap *arg2 = 0 ;
4226 void *argp1 = 0 ;
4227 int res1 = 0 ;
4228 void *argp2 = 0 ;
4229 int res2 = 0 ;
4230 PyObject * obj0 = 0 ;
4231 PyObject * obj1 = 0 ;
4232 char * kwnames[] = {
4233 (char *) "self",(char *) "bitmap", NULL
4234 };
4235
4236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) SWIG_fail;
4237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4238 if (!SWIG_IsOK(res1)) {
4239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4240 }
4241 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4242 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4243 if (!SWIG_IsOK(res2)) {
4244 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4245 }
4246 if (!argp2) {
4247 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4248 }
4249 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4250 {
4251 PyThreadState* __tstate = wxPyBeginAllowThreads();
4252 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
4253 wxPyEndAllowThreads(__tstate);
4254 if (PyErr_Occurred()) SWIG_fail;
4255 }
4256 resultobj = SWIG_Py_Void();
4257 return resultobj;
4258 fail:
4259 return NULL;
4260 }
4261
4262
4263 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4264 PyObject *resultobj = 0;
4265 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4266 wxBitmap *arg2 = 0 ;
4267 void *argp1 = 0 ;
4268 int res1 = 0 ;
4269 void *argp2 = 0 ;
4270 int res2 = 0 ;
4271 PyObject * obj0 = 0 ;
4272 PyObject * obj1 = 0 ;
4273 char * kwnames[] = {
4274 (char *) "self",(char *) "bitmap", NULL
4275 };
4276
4277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) SWIG_fail;
4278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4279 if (!SWIG_IsOK(res1)) {
4280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4281 }
4282 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4283 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4284 if (!SWIG_IsOK(res2)) {
4285 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4286 }
4287 if (!argp2) {
4288 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4289 }
4290 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4291 {
4292 PyThreadState* __tstate = wxPyBeginAllowThreads();
4293 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
4294 wxPyEndAllowThreads(__tstate);
4295 if (PyErr_Occurred()) SWIG_fail;
4296 }
4297 resultobj = SWIG_Py_Void();
4298 return resultobj;
4299 fail:
4300 return NULL;
4301 }
4302
4303
4304 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4305 PyObject *resultobj = 0;
4306 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4307 wxBitmap *arg2 = 0 ;
4308 void *argp1 = 0 ;
4309 int res1 = 0 ;
4310 void *argp2 = 0 ;
4311 int res2 = 0 ;
4312 PyObject * obj0 = 0 ;
4313 PyObject * obj1 = 0 ;
4314 char * kwnames[] = {
4315 (char *) "self",(char *) "bitmap", NULL
4316 };
4317
4318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) SWIG_fail;
4319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4320 if (!SWIG_IsOK(res1)) {
4321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4322 }
4323 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4324 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4325 if (!SWIG_IsOK(res2)) {
4326 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4327 }
4328 if (!argp2) {
4329 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4330 }
4331 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4332 {
4333 PyThreadState* __tstate = wxPyBeginAllowThreads();
4334 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
4335 wxPyEndAllowThreads(__tstate);
4336 if (PyErr_Occurred()) SWIG_fail;
4337 }
4338 resultobj = SWIG_Py_Void();
4339 return resultobj;
4340 fail:
4341 return NULL;
4342 }
4343
4344
4345 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4346 PyObject *resultobj = 0;
4347 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4348 wxBitmap *arg2 = 0 ;
4349 void *argp1 = 0 ;
4350 int res1 = 0 ;
4351 void *argp2 = 0 ;
4352 int res2 = 0 ;
4353 PyObject * obj0 = 0 ;
4354 PyObject * obj1 = 0 ;
4355 char * kwnames[] = {
4356 (char *) "self",(char *) "hover", NULL
4357 };
4358
4359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapHover",kwnames,&obj0,&obj1)) SWIG_fail;
4360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4361 if (!SWIG_IsOK(res1)) {
4362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4363 }
4364 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4365 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4366 if (!SWIG_IsOK(res2)) {
4367 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4368 }
4369 if (!argp2) {
4370 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4371 }
4372 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4373 {
4374 PyThreadState* __tstate = wxPyBeginAllowThreads();
4375 (arg1)->SetBitmapHover((wxBitmap const &)*arg2);
4376 wxPyEndAllowThreads(__tstate);
4377 if (PyErr_Occurred()) SWIG_fail;
4378 }
4379 resultobj = SWIG_Py_Void();
4380 return resultobj;
4381 fail:
4382 return NULL;
4383 }
4384
4385
4386 SWIGINTERN PyObject *_wrap_BitmapButton_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4387 PyObject *resultobj = 0;
4388 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4389 int arg2 ;
4390 int arg3 ;
4391 void *argp1 = 0 ;
4392 int res1 = 0 ;
4393 int val2 ;
4394 int ecode2 = 0 ;
4395 int val3 ;
4396 int ecode3 = 0 ;
4397 PyObject * obj0 = 0 ;
4398 PyObject * obj1 = 0 ;
4399 PyObject * obj2 = 0 ;
4400 char * kwnames[] = {
4401 (char *) "self",(char *) "x",(char *) "y", NULL
4402 };
4403
4404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4406 if (!SWIG_IsOK(res1)) {
4407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetMargins" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4408 }
4409 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4410 ecode2 = SWIG_AsVal_int(obj1, &val2);
4411 if (!SWIG_IsOK(ecode2)) {
4412 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BitmapButton_SetMargins" "', expected argument " "2"" of type '" "int""'");
4413 }
4414 arg2 = static_cast< int >(val2);
4415 ecode3 = SWIG_AsVal_int(obj2, &val3);
4416 if (!SWIG_IsOK(ecode3)) {
4417 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_SetMargins" "', expected argument " "3"" of type '" "int""'");
4418 }
4419 arg3 = static_cast< int >(val3);
4420 {
4421 PyThreadState* __tstate = wxPyBeginAllowThreads();
4422 (arg1)->SetMargins(arg2,arg3);
4423 wxPyEndAllowThreads(__tstate);
4424 if (PyErr_Occurred()) SWIG_fail;
4425 }
4426 resultobj = SWIG_Py_Void();
4427 return resultobj;
4428 fail:
4429 return NULL;
4430 }
4431
4432
4433 SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4434 PyObject *resultobj = 0;
4435 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4436 int result;
4437 void *argp1 = 0 ;
4438 int res1 = 0 ;
4439 PyObject *swig_obj[1] ;
4440
4441 if (!args) SWIG_fail;
4442 swig_obj[0] = args;
4443 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4444 if (!SWIG_IsOK(res1)) {
4445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginX" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4446 }
4447 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4448 {
4449 PyThreadState* __tstate = wxPyBeginAllowThreads();
4450 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
4451 wxPyEndAllowThreads(__tstate);
4452 if (PyErr_Occurred()) SWIG_fail;
4453 }
4454 resultobj = SWIG_From_int(static_cast< int >(result));
4455 return resultobj;
4456 fail:
4457 return NULL;
4458 }
4459
4460
4461 SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4462 PyObject *resultobj = 0;
4463 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4464 int result;
4465 void *argp1 = 0 ;
4466 int res1 = 0 ;
4467 PyObject *swig_obj[1] ;
4468
4469 if (!args) SWIG_fail;
4470 swig_obj[0] = args;
4471 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4472 if (!SWIG_IsOK(res1)) {
4473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginY" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4474 }
4475 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4476 {
4477 PyThreadState* __tstate = wxPyBeginAllowThreads();
4478 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
4479 wxPyEndAllowThreads(__tstate);
4480 if (PyErr_Occurred()) SWIG_fail;
4481 }
4482 resultobj = SWIG_From_int(static_cast< int >(result));
4483 return resultobj;
4484 fail:
4485 return NULL;
4486 }
4487
4488
4489 SWIGINTERN PyObject *BitmapButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4490 PyObject *obj;
4491 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4492 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmapButton, SWIG_NewClientData(obj));
4493 return SWIG_Py_Void();
4494 }
4495
4496 SWIGINTERN PyObject *BitmapButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4497 return SWIG_Python_InitShadowInstance(args);
4498 }
4499
4500 SWIGINTERN int CheckBoxNameStr_set(PyObject *) {
4501 SWIG_Error(SWIG_AttributeError,"Variable CheckBoxNameStr is read-only.");
4502 return 1;
4503 }
4504
4505
4506 SWIGINTERN PyObject *CheckBoxNameStr_get(void) {
4507 PyObject *pyobj = 0;
4508
4509 {
4510 #if wxUSE_UNICODE
4511 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4512 #else
4513 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4514 #endif
4515 }
4516 return pyobj;
4517 }
4518
4519
4520 SWIGINTERN PyObject *_wrap_new_CheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4521 PyObject *resultobj = 0;
4522 wxWindow *arg1 = (wxWindow *) 0 ;
4523 int arg2 = (int) -1 ;
4524 wxString const &arg3_defvalue = wxPyEmptyString ;
4525 wxString *arg3 = (wxString *) &arg3_defvalue ;
4526 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4527 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4528 wxSize const &arg5_defvalue = wxDefaultSize ;
4529 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4530 long arg6 = (long) 0 ;
4531 wxValidator const &arg7_defvalue = wxDefaultValidator ;
4532 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
4533 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
4534 wxString *arg8 = (wxString *) &arg8_defvalue ;
4535 wxCheckBox *result = 0 ;
4536 void *argp1 = 0 ;
4537 int res1 = 0 ;
4538 int val2 ;
4539 int ecode2 = 0 ;
4540 bool temp3 = false ;
4541 wxPoint temp4 ;
4542 wxSize temp5 ;
4543 long val6 ;
4544 int ecode6 = 0 ;
4545 void *argp7 = 0 ;
4546 int res7 = 0 ;
4547 bool temp8 = false ;
4548 PyObject * obj0 = 0 ;
4549 PyObject * obj1 = 0 ;
4550 PyObject * obj2 = 0 ;
4551 PyObject * obj3 = 0 ;
4552 PyObject * obj4 = 0 ;
4553 PyObject * obj5 = 0 ;
4554 PyObject * obj6 = 0 ;
4555 PyObject * obj7 = 0 ;
4556 char * kwnames[] = {
4557 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4558 };
4559
4560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
4561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
4562 if (!SWIG_IsOK(res1)) {
4563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckBox" "', expected argument " "1"" of type '" "wxWindow *""'");
4564 }
4565 arg1 = reinterpret_cast< wxWindow * >(argp1);
4566 if (obj1) {
4567 ecode2 = SWIG_AsVal_int(obj1, &val2);
4568 if (!SWIG_IsOK(ecode2)) {
4569 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckBox" "', expected argument " "2"" of type '" "int""'");
4570 }
4571 arg2 = static_cast< int >(val2);
4572 }
4573 if (obj2) {
4574 {
4575 arg3 = wxString_in_helper(obj2);
4576 if (arg3 == NULL) SWIG_fail;
4577 temp3 = true;
4578 }
4579 }
4580 if (obj3) {
4581 {
4582 arg4 = &temp4;
4583 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4584 }
4585 }
4586 if (obj4) {
4587 {
4588 arg5 = &temp5;
4589 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4590 }
4591 }
4592 if (obj5) {
4593 ecode6 = SWIG_AsVal_long(obj5, &val6);
4594 if (!SWIG_IsOK(ecode6)) {
4595 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckBox" "', expected argument " "6"" of type '" "long""'");
4596 }
4597 arg6 = static_cast< long >(val6);
4598 }
4599 if (obj6) {
4600 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
4601 if (!SWIG_IsOK(res7)) {
4602 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4603 }
4604 if (!argp7) {
4605 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4606 }
4607 arg7 = reinterpret_cast< wxValidator * >(argp7);
4608 }
4609 if (obj7) {
4610 {
4611 arg8 = wxString_in_helper(obj7);
4612 if (arg8 == NULL) SWIG_fail;
4613 temp8 = true;
4614 }
4615 }
4616 {
4617 if (!wxPyCheckForApp()) SWIG_fail;
4618 PyThreadState* __tstate = wxPyBeginAllowThreads();
4619 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
4620 wxPyEndAllowThreads(__tstate);
4621 if (PyErr_Occurred()) SWIG_fail;
4622 }
4623 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_NEW | 0 );
4624 {
4625 if (temp3)
4626 delete arg3;
4627 }
4628 {
4629 if (temp8)
4630 delete arg8;
4631 }
4632 return resultobj;
4633 fail:
4634 {
4635 if (temp3)
4636 delete arg3;
4637 }
4638 {
4639 if (temp8)
4640 delete arg8;
4641 }
4642 return NULL;
4643 }
4644
4645
4646 SWIGINTERN PyObject *_wrap_new_PreCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4647 PyObject *resultobj = 0;
4648 wxCheckBox *result = 0 ;
4649
4650 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckBox",0,0,0)) SWIG_fail;
4651 {
4652 if (!wxPyCheckForApp()) SWIG_fail;
4653 PyThreadState* __tstate = wxPyBeginAllowThreads();
4654 result = (wxCheckBox *)new wxCheckBox();
4655 wxPyEndAllowThreads(__tstate);
4656 if (PyErr_Occurred()) SWIG_fail;
4657 }
4658 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_OWN | 0 );
4659 return resultobj;
4660 fail:
4661 return NULL;
4662 }
4663
4664
4665 SWIGINTERN PyObject *_wrap_CheckBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4666 PyObject *resultobj = 0;
4667 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4668 wxWindow *arg2 = (wxWindow *) 0 ;
4669 int arg3 = (int) -1 ;
4670 wxString const &arg4_defvalue = wxPyEmptyString ;
4671 wxString *arg4 = (wxString *) &arg4_defvalue ;
4672 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4673 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4674 wxSize const &arg6_defvalue = wxDefaultSize ;
4675 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4676 long arg7 = (long) 0 ;
4677 wxValidator const &arg8_defvalue = wxDefaultValidator ;
4678 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
4679 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
4680 wxString *arg9 = (wxString *) &arg9_defvalue ;
4681 bool result;
4682 void *argp1 = 0 ;
4683 int res1 = 0 ;
4684 void *argp2 = 0 ;
4685 int res2 = 0 ;
4686 int val3 ;
4687 int ecode3 = 0 ;
4688 bool temp4 = false ;
4689 wxPoint temp5 ;
4690 wxSize temp6 ;
4691 long val7 ;
4692 int ecode7 = 0 ;
4693 void *argp8 = 0 ;
4694 int res8 = 0 ;
4695 bool temp9 = false ;
4696 PyObject * obj0 = 0 ;
4697 PyObject * obj1 = 0 ;
4698 PyObject * obj2 = 0 ;
4699 PyObject * obj3 = 0 ;
4700 PyObject * obj4 = 0 ;
4701 PyObject * obj5 = 0 ;
4702 PyObject * obj6 = 0 ;
4703 PyObject * obj7 = 0 ;
4704 PyObject * obj8 = 0 ;
4705 char * kwnames[] = {
4706 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4707 };
4708
4709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
4710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4711 if (!SWIG_IsOK(res1)) {
4712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Create" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4713 }
4714 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4715 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
4716 if (!SWIG_IsOK(res2)) {
4717 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
4718 }
4719 arg2 = reinterpret_cast< wxWindow * >(argp2);
4720 if (obj2) {
4721 ecode3 = SWIG_AsVal_int(obj2, &val3);
4722 if (!SWIG_IsOK(ecode3)) {
4723 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckBox_Create" "', expected argument " "3"" of type '" "int""'");
4724 }
4725 arg3 = static_cast< int >(val3);
4726 }
4727 if (obj3) {
4728 {
4729 arg4 = wxString_in_helper(obj3);
4730 if (arg4 == NULL) SWIG_fail;
4731 temp4 = true;
4732 }
4733 }
4734 if (obj4) {
4735 {
4736 arg5 = &temp5;
4737 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4738 }
4739 }
4740 if (obj5) {
4741 {
4742 arg6 = &temp6;
4743 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4744 }
4745 }
4746 if (obj6) {
4747 ecode7 = SWIG_AsVal_long(obj6, &val7);
4748 if (!SWIG_IsOK(ecode7)) {
4749 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckBox_Create" "', expected argument " "7"" of type '" "long""'");
4750 }
4751 arg7 = static_cast< long >(val7);
4752 }
4753 if (obj7) {
4754 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4755 if (!SWIG_IsOK(res8)) {
4756 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4757 }
4758 if (!argp8) {
4759 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4760 }
4761 arg8 = reinterpret_cast< wxValidator * >(argp8);
4762 }
4763 if (obj8) {
4764 {
4765 arg9 = wxString_in_helper(obj8);
4766 if (arg9 == NULL) SWIG_fail;
4767 temp9 = true;
4768 }
4769 }
4770 {
4771 PyThreadState* __tstate = wxPyBeginAllowThreads();
4772 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4773 wxPyEndAllowThreads(__tstate);
4774 if (PyErr_Occurred()) SWIG_fail;
4775 }
4776 {
4777 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4778 }
4779 {
4780 if (temp4)
4781 delete arg4;
4782 }
4783 {
4784 if (temp9)
4785 delete arg9;
4786 }
4787 return resultobj;
4788 fail:
4789 {
4790 if (temp4)
4791 delete arg4;
4792 }
4793 {
4794 if (temp9)
4795 delete arg9;
4796 }
4797 return NULL;
4798 }
4799
4800
4801 SWIGINTERN PyObject *_wrap_CheckBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4802 PyObject *resultobj = 0;
4803 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4804 bool result;
4805 void *argp1 = 0 ;
4806 int res1 = 0 ;
4807 PyObject *swig_obj[1] ;
4808
4809 if (!args) SWIG_fail;
4810 swig_obj[0] = args;
4811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4812 if (!SWIG_IsOK(res1)) {
4813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_GetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4814 }
4815 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4816 {
4817 PyThreadState* __tstate = wxPyBeginAllowThreads();
4818 result = (bool)(arg1)->GetValue();
4819 wxPyEndAllowThreads(__tstate);
4820 if (PyErr_Occurred()) SWIG_fail;
4821 }
4822 {
4823 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4824 }
4825 return resultobj;
4826 fail:
4827 return NULL;
4828 }
4829
4830
4831 SWIGINTERN PyObject *_wrap_CheckBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4832 PyObject *resultobj = 0;
4833 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4834 bool result;
4835 void *argp1 = 0 ;
4836 int res1 = 0 ;
4837 PyObject *swig_obj[1] ;
4838
4839 if (!args) SWIG_fail;
4840 swig_obj[0] = args;
4841 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4842 if (!SWIG_IsOK(res1)) {
4843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4844 }
4845 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4846 {
4847 PyThreadState* __tstate = wxPyBeginAllowThreads();
4848 result = (bool)(arg1)->IsChecked();
4849 wxPyEndAllowThreads(__tstate);
4850 if (PyErr_Occurred()) SWIG_fail;
4851 }
4852 {
4853 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4854 }
4855 return resultobj;
4856 fail:
4857 return NULL;
4858 }
4859
4860
4861 SWIGINTERN PyObject *_wrap_CheckBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4862 PyObject *resultobj = 0;
4863 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4864 bool arg2 ;
4865 void *argp1 = 0 ;
4866 int res1 = 0 ;
4867 bool val2 ;
4868 int ecode2 = 0 ;
4869 PyObject * obj0 = 0 ;
4870 PyObject * obj1 = 0 ;
4871 char * kwnames[] = {
4872 (char *) "self",(char *) "state", NULL
4873 };
4874
4875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
4876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4877 if (!SWIG_IsOK(res1)) {
4878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_SetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4879 }
4880 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4881 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4882 if (!SWIG_IsOK(ecode2)) {
4883 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_SetValue" "', expected argument " "2"" of type '" "bool""'");
4884 }
4885 arg2 = static_cast< bool >(val2);
4886 {
4887 PyThreadState* __tstate = wxPyBeginAllowThreads();
4888 (arg1)->SetValue(arg2);
4889 wxPyEndAllowThreads(__tstate);
4890 if (PyErr_Occurred()) SWIG_fail;
4891 }
4892 resultobj = SWIG_Py_Void();
4893 return resultobj;
4894 fail:
4895 return NULL;
4896 }
4897
4898
4899 SWIGINTERN PyObject *_wrap_CheckBox_Get3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4900 PyObject *resultobj = 0;
4901 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4902 wxCheckBoxState result;
4903 void *argp1 = 0 ;
4904 int res1 = 0 ;
4905 PyObject *swig_obj[1] ;
4906
4907 if (!args) SWIG_fail;
4908 swig_obj[0] = args;
4909 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4910 if (!SWIG_IsOK(res1)) {
4911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Get3StateValue" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4912 }
4913 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4914 {
4915 PyThreadState* __tstate = wxPyBeginAllowThreads();
4916 result = (wxCheckBoxState)((wxCheckBox const *)arg1)->Get3StateValue();
4917 wxPyEndAllowThreads(__tstate);
4918 if (PyErr_Occurred()) SWIG_fail;
4919 }
4920 resultobj = SWIG_From_int(static_cast< int >(result));
4921 return resultobj;
4922 fail:
4923 return NULL;
4924 }
4925
4926
4927 SWIGINTERN PyObject *_wrap_CheckBox_Set3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4928 PyObject *resultobj = 0;
4929 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4930 wxCheckBoxState arg2 ;
4931 void *argp1 = 0 ;
4932 int res1 = 0 ;
4933 int val2 ;
4934 int ecode2 = 0 ;
4935 PyObject * obj0 = 0 ;
4936 PyObject * obj1 = 0 ;
4937 char * kwnames[] = {
4938 (char *) "self",(char *) "state", NULL
4939 };
4940
4941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) SWIG_fail;
4942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4943 if (!SWIG_IsOK(res1)) {
4944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Set3StateValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4945 }
4946 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4947 ecode2 = SWIG_AsVal_int(obj1, &val2);
4948 if (!SWIG_IsOK(ecode2)) {
4949 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_Set3StateValue" "', expected argument " "2"" of type '" "wxCheckBoxState""'");
4950 }
4951 arg2 = static_cast< wxCheckBoxState >(val2);
4952 {
4953 PyThreadState* __tstate = wxPyBeginAllowThreads();
4954 (arg1)->Set3StateValue(arg2);
4955 wxPyEndAllowThreads(__tstate);
4956 if (PyErr_Occurred()) SWIG_fail;
4957 }
4958 resultobj = SWIG_Py_Void();
4959 return resultobj;
4960 fail:
4961 return NULL;
4962 }
4963
4964
4965 SWIGINTERN PyObject *_wrap_CheckBox_Is3State(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4966 PyObject *resultobj = 0;
4967 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4968 bool result;
4969 void *argp1 = 0 ;
4970 int res1 = 0 ;
4971 PyObject *swig_obj[1] ;
4972
4973 if (!args) SWIG_fail;
4974 swig_obj[0] = args;
4975 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4976 if (!SWIG_IsOK(res1)) {
4977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3State" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4978 }
4979 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4980 {
4981 PyThreadState* __tstate = wxPyBeginAllowThreads();
4982 result = (bool)((wxCheckBox const *)arg1)->Is3State();
4983 wxPyEndAllowThreads(__tstate);
4984 if (PyErr_Occurred()) SWIG_fail;
4985 }
4986 {
4987 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4988 }
4989 return resultobj;
4990 fail:
4991 return NULL;
4992 }
4993
4994
4995 SWIGINTERN PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4996 PyObject *resultobj = 0;
4997 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4998 bool result;
4999 void *argp1 = 0 ;
5000 int res1 = 0 ;
5001 PyObject *swig_obj[1] ;
5002
5003 if (!args) SWIG_fail;
5004 swig_obj[0] = args;
5005 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
5006 if (!SWIG_IsOK(res1)) {
5007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3rdStateAllowedForUser" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
5008 }
5009 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
5010 {
5011 PyThreadState* __tstate = wxPyBeginAllowThreads();
5012 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
5013 wxPyEndAllowThreads(__tstate);
5014 if (PyErr_Occurred()) SWIG_fail;
5015 }
5016 {
5017 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5018 }
5019 return resultobj;
5020 fail:
5021 return NULL;
5022 }
5023
5024
5025 SWIGINTERN PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5026 PyObject *resultobj = 0;
5027 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5028 SwigValueWrapper<wxVisualAttributes > result;
5029 int val1 ;
5030 int ecode1 = 0 ;
5031 PyObject * obj0 = 0 ;
5032 char * kwnames[] = {
5033 (char *) "variant", NULL
5034 };
5035
5036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5037 if (obj0) {
5038 ecode1 = SWIG_AsVal_int(obj0, &val1);
5039 if (!SWIG_IsOK(ecode1)) {
5040 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CheckBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5041 }
5042 arg1 = static_cast< wxWindowVariant >(val1);
5043 }
5044 {
5045 if (!wxPyCheckForApp()) SWIG_fail;
5046 PyThreadState* __tstate = wxPyBeginAllowThreads();
5047 result = wxCheckBox::GetClassDefaultAttributes(arg1);
5048 wxPyEndAllowThreads(__tstate);
5049 if (PyErr_Occurred()) SWIG_fail;
5050 }
5051 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5052 return resultobj;
5053 fail:
5054 return NULL;
5055 }
5056
5057
5058 SWIGINTERN PyObject *CheckBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5059 PyObject *obj;
5060 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5061 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckBox, SWIG_NewClientData(obj));
5062 return SWIG_Py_Void();
5063 }
5064
5065 SWIGINTERN PyObject *CheckBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5066 return SWIG_Python_InitShadowInstance(args);
5067 }
5068
5069 SWIGINTERN int ChoiceNameStr_set(PyObject *) {
5070 SWIG_Error(SWIG_AttributeError,"Variable ChoiceNameStr is read-only.");
5071 return 1;
5072 }
5073
5074
5075 SWIGINTERN PyObject *ChoiceNameStr_get(void) {
5076 PyObject *pyobj = 0;
5077
5078 {
5079 #if wxUSE_UNICODE
5080 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5081 #else
5082 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5083 #endif
5084 }
5085 return pyobj;
5086 }
5087
5088
5089 SWIGINTERN PyObject *_wrap_new_Choice(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5090 PyObject *resultobj = 0;
5091 wxWindow *arg1 = (wxWindow *) 0 ;
5092 int arg2 = (int) -1 ;
5093 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5094 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5095 wxSize const &arg4_defvalue = wxDefaultSize ;
5096 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5097 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5098 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5099 long arg6 = (long) 0 ;
5100 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5101 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5102 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
5103 wxString *arg8 = (wxString *) &arg8_defvalue ;
5104 wxChoice *result = 0 ;
5105 void *argp1 = 0 ;
5106 int res1 = 0 ;
5107 int val2 ;
5108 int ecode2 = 0 ;
5109 wxPoint temp3 ;
5110 wxSize temp4 ;
5111 bool temp5 = false ;
5112 long val6 ;
5113 int ecode6 = 0 ;
5114 void *argp7 = 0 ;
5115 int res7 = 0 ;
5116 bool temp8 = false ;
5117 PyObject * obj0 = 0 ;
5118 PyObject * obj1 = 0 ;
5119 PyObject * obj2 = 0 ;
5120 PyObject * obj3 = 0 ;
5121 PyObject * obj4 = 0 ;
5122 PyObject * obj5 = 0 ;
5123 PyObject * obj6 = 0 ;
5124 PyObject * obj7 = 0 ;
5125 char * kwnames[] = {
5126 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5127 };
5128
5129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
5130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5131 if (!SWIG_IsOK(res1)) {
5132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choice" "', expected argument " "1"" of type '" "wxWindow *""'");
5133 }
5134 arg1 = reinterpret_cast< wxWindow * >(argp1);
5135 if (obj1) {
5136 ecode2 = SWIG_AsVal_int(obj1, &val2);
5137 if (!SWIG_IsOK(ecode2)) {
5138 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choice" "', expected argument " "2"" of type '" "int""'");
5139 }
5140 arg2 = static_cast< int >(val2);
5141 }
5142 if (obj2) {
5143 {
5144 arg3 = &temp3;
5145 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
5146 }
5147 }
5148 if (obj3) {
5149 {
5150 arg4 = &temp4;
5151 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
5152 }
5153 }
5154 if (obj4) {
5155 {
5156 if (! PySequence_Check(obj4)) {
5157 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5158 SWIG_fail;
5159 }
5160 arg5 = new wxArrayString;
5161 temp5 = true;
5162 int i, len=PySequence_Length(obj4);
5163 for (i=0; i<len; i++) {
5164 PyObject* item = PySequence_GetItem(obj4, i);
5165 wxString* s = wxString_in_helper(item);
5166 if (PyErr_Occurred()) SWIG_fail;
5167 arg5->Add(*s);
5168 delete s;
5169 Py_DECREF(item);
5170 }
5171 }
5172 }
5173 if (obj5) {
5174 ecode6 = SWIG_AsVal_long(obj5, &val6);
5175 if (!SWIG_IsOK(ecode6)) {
5176 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Choice" "', expected argument " "6"" of type '" "long""'");
5177 }
5178 arg6 = static_cast< long >(val6);
5179 }
5180 if (obj6) {
5181 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
5182 if (!SWIG_IsOK(res7)) {
5183 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5184 }
5185 if (!argp7) {
5186 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5187 }
5188 arg7 = reinterpret_cast< wxValidator * >(argp7);
5189 }
5190 if (obj7) {
5191 {
5192 arg8 = wxString_in_helper(obj7);
5193 if (arg8 == NULL) SWIG_fail;
5194 temp8 = true;
5195 }
5196 }
5197 {
5198 if (!wxPyCheckForApp()) SWIG_fail;
5199 PyThreadState* __tstate = wxPyBeginAllowThreads();
5200 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5201 wxPyEndAllowThreads(__tstate);
5202 if (PyErr_Occurred()) SWIG_fail;
5203 }
5204 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_NEW | 0 );
5205 {
5206 if (temp5) delete arg5;
5207 }
5208 {
5209 if (temp8)
5210 delete arg8;
5211 }
5212 return resultobj;
5213 fail:
5214 {
5215 if (temp5) delete arg5;
5216 }
5217 {
5218 if (temp8)
5219 delete arg8;
5220 }
5221 return NULL;
5222 }
5223
5224
5225 SWIGINTERN PyObject *_wrap_new_PreChoice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5226 PyObject *resultobj = 0;
5227 wxChoice *result = 0 ;
5228
5229 if (!SWIG_Python_UnpackTuple(args,"new_PreChoice",0,0,0)) SWIG_fail;
5230 {
5231 if (!wxPyCheckForApp()) SWIG_fail;
5232 PyThreadState* __tstate = wxPyBeginAllowThreads();
5233 result = (wxChoice *)new wxChoice();
5234 wxPyEndAllowThreads(__tstate);
5235 if (PyErr_Occurred()) SWIG_fail;
5236 }
5237 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_OWN | 0 );
5238 return resultobj;
5239 fail:
5240 return NULL;
5241 }
5242
5243
5244 SWIGINTERN PyObject *_wrap_Choice_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5245 PyObject *resultobj = 0;
5246 wxChoice *arg1 = (wxChoice *) 0 ;
5247 wxWindow *arg2 = (wxWindow *) 0 ;
5248 int arg3 = (int) -1 ;
5249 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5250 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5251 wxSize const &arg5_defvalue = wxDefaultSize ;
5252 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5253 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5254 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5255 long arg7 = (long) 0 ;
5256 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5257 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5258 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
5259 wxString *arg9 = (wxString *) &arg9_defvalue ;
5260 bool result;
5261 void *argp1 = 0 ;
5262 int res1 = 0 ;
5263 void *argp2 = 0 ;
5264 int res2 = 0 ;
5265 int val3 ;
5266 int ecode3 = 0 ;
5267 wxPoint temp4 ;
5268 wxSize temp5 ;
5269 bool temp6 = false ;
5270 long val7 ;
5271 int ecode7 = 0 ;
5272 void *argp8 = 0 ;
5273 int res8 = 0 ;
5274 bool temp9 = false ;
5275 PyObject * obj0 = 0 ;
5276 PyObject * obj1 = 0 ;
5277 PyObject * obj2 = 0 ;
5278 PyObject * obj3 = 0 ;
5279 PyObject * obj4 = 0 ;
5280 PyObject * obj5 = 0 ;
5281 PyObject * obj6 = 0 ;
5282 PyObject * obj7 = 0 ;
5283 PyObject * obj8 = 0 ;
5284 char * kwnames[] = {
5285 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5286 };
5287
5288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5290 if (!SWIG_IsOK(res1)) {
5291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_Create" "', expected argument " "1"" of type '" "wxChoice *""'");
5292 }
5293 arg1 = reinterpret_cast< wxChoice * >(argp1);
5294 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5295 if (!SWIG_IsOK(res2)) {
5296 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choice_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5297 }
5298 arg2 = reinterpret_cast< wxWindow * >(argp2);
5299 if (obj2) {
5300 ecode3 = SWIG_AsVal_int(obj2, &val3);
5301 if (!SWIG_IsOK(ecode3)) {
5302 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choice_Create" "', expected argument " "3"" of type '" "int""'");
5303 }
5304 arg3 = static_cast< int >(val3);
5305 }
5306 if (obj3) {
5307 {
5308 arg4 = &temp4;
5309 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5310 }
5311 }
5312 if (obj4) {
5313 {
5314 arg5 = &temp5;
5315 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5316 }
5317 }
5318 if (obj5) {
5319 {
5320 if (! PySequence_Check(obj5)) {
5321 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5322 SWIG_fail;
5323 }
5324 arg6 = new wxArrayString;
5325 temp6 = true;
5326 int i, len=PySequence_Length(obj5);
5327 for (i=0; i<len; i++) {
5328 PyObject* item = PySequence_GetItem(obj5, i);
5329 wxString* s = wxString_in_helper(item);
5330 if (PyErr_Occurred()) SWIG_fail;
5331 arg6->Add(*s);
5332 delete s;
5333 Py_DECREF(item);
5334 }
5335 }
5336 }
5337 if (obj6) {
5338 ecode7 = SWIG_AsVal_long(obj6, &val7);
5339 if (!SWIG_IsOK(ecode7)) {
5340 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Choice_Create" "', expected argument " "7"" of type '" "long""'");
5341 }
5342 arg7 = static_cast< long >(val7);
5343 }
5344 if (obj7) {
5345 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5346 if (!SWIG_IsOK(res8)) {
5347 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5348 }
5349 if (!argp8) {
5350 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5351 }
5352 arg8 = reinterpret_cast< wxValidator * >(argp8);
5353 }
5354 if (obj8) {
5355 {
5356 arg9 = wxString_in_helper(obj8);
5357 if (arg9 == NULL) SWIG_fail;
5358 temp9 = true;
5359 }
5360 }
5361 {
5362 PyThreadState* __tstate = wxPyBeginAllowThreads();
5363 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5364 wxPyEndAllowThreads(__tstate);
5365 if (PyErr_Occurred()) SWIG_fail;
5366 }
5367 {
5368 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5369 }
5370 {
5371 if (temp6) delete arg6;
5372 }
5373 {
5374 if (temp9)
5375 delete arg9;
5376 }
5377 return resultobj;
5378 fail:
5379 {
5380 if (temp6) delete arg6;
5381 }
5382 {
5383 if (temp9)
5384 delete arg9;
5385 }
5386 return NULL;
5387 }
5388
5389
5390 SWIGINTERN PyObject *_wrap_Choice_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5391 PyObject *resultobj = 0;
5392 wxChoice *arg1 = (wxChoice *) 0 ;
5393 int result;
5394 void *argp1 = 0 ;
5395 int res1 = 0 ;
5396 PyObject *swig_obj[1] ;
5397
5398 if (!args) SWIG_fail;
5399 swig_obj[0] = args;
5400 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5401 if (!SWIG_IsOK(res1)) {
5402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_GetCurrentSelection" "', expected argument " "1"" of type '" "wxChoice const *""'");
5403 }
5404 arg1 = reinterpret_cast< wxChoice * >(argp1);
5405 {
5406 PyThreadState* __tstate = wxPyBeginAllowThreads();
5407 result = (int)((wxChoice const *)arg1)->GetCurrentSelection();
5408 wxPyEndAllowThreads(__tstate);
5409 if (PyErr_Occurred()) SWIG_fail;
5410 }
5411 resultobj = SWIG_From_int(static_cast< int >(result));
5412 return resultobj;
5413 fail:
5414 return NULL;
5415 }
5416
5417
5418 SWIGINTERN PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5419 PyObject *resultobj = 0;
5420 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5421 SwigValueWrapper<wxVisualAttributes > result;
5422 int val1 ;
5423 int ecode1 = 0 ;
5424 PyObject * obj0 = 0 ;
5425 char * kwnames[] = {
5426 (char *) "variant", NULL
5427 };
5428
5429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5430 if (obj0) {
5431 ecode1 = SWIG_AsVal_int(obj0, &val1);
5432 if (!SWIG_IsOK(ecode1)) {
5433 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Choice_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5434 }
5435 arg1 = static_cast< wxWindowVariant >(val1);
5436 }
5437 {
5438 if (!wxPyCheckForApp()) SWIG_fail;
5439 PyThreadState* __tstate = wxPyBeginAllowThreads();
5440 result = wxChoice::GetClassDefaultAttributes(arg1);
5441 wxPyEndAllowThreads(__tstate);
5442 if (PyErr_Occurred()) SWIG_fail;
5443 }
5444 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5445 return resultobj;
5446 fail:
5447 return NULL;
5448 }
5449
5450
5451 SWIGINTERN PyObject *Choice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5452 PyObject *obj;
5453 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5454 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoice, SWIG_NewClientData(obj));
5455 return SWIG_Py_Void();
5456 }
5457
5458 SWIGINTERN PyObject *Choice_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5459 return SWIG_Python_InitShadowInstance(args);
5460 }
5461
5462 SWIGINTERN int ComboBoxNameStr_set(PyObject *) {
5463 SWIG_Error(SWIG_AttributeError,"Variable ComboBoxNameStr is read-only.");
5464 return 1;
5465 }
5466
5467
5468 SWIGINTERN PyObject *ComboBoxNameStr_get(void) {
5469 PyObject *pyobj = 0;
5470
5471 {
5472 #if wxUSE_UNICODE
5473 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
5474 #else
5475 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
5476 #endif
5477 }
5478 return pyobj;
5479 }
5480
5481
5482 SWIGINTERN PyObject *_wrap_new_ComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5483 PyObject *resultobj = 0;
5484 wxWindow *arg1 = (wxWindow *) 0 ;
5485 int arg2 = (int) -1 ;
5486 wxString const &arg3_defvalue = wxPyEmptyString ;
5487 wxString *arg3 = (wxString *) &arg3_defvalue ;
5488 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5489 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5490 wxSize const &arg5_defvalue = wxDefaultSize ;
5491 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5492 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5493 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5494 long arg7 = (long) 0 ;
5495 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5496 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5497 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
5498 wxString *arg9 = (wxString *) &arg9_defvalue ;
5499 wxComboBox *result = 0 ;
5500 void *argp1 = 0 ;
5501 int res1 = 0 ;
5502 int val2 ;
5503 int ecode2 = 0 ;
5504 bool temp3 = false ;
5505 wxPoint temp4 ;
5506 wxSize temp5 ;
5507 bool temp6 = false ;
5508 long val7 ;
5509 int ecode7 = 0 ;
5510 void *argp8 = 0 ;
5511 int res8 = 0 ;
5512 bool temp9 = false ;
5513 PyObject * obj0 = 0 ;
5514 PyObject * obj1 = 0 ;
5515 PyObject * obj2 = 0 ;
5516 PyObject * obj3 = 0 ;
5517 PyObject * obj4 = 0 ;
5518 PyObject * obj5 = 0 ;
5519 PyObject * obj6 = 0 ;
5520 PyObject * obj7 = 0 ;
5521 PyObject * obj8 = 0 ;
5522 char * kwnames[] = {
5523 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5524 };
5525
5526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5528 if (!SWIG_IsOK(res1)) {
5529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ComboBox" "', expected argument " "1"" of type '" "wxWindow *""'");
5530 }
5531 arg1 = reinterpret_cast< wxWindow * >(argp1);
5532 if (obj1) {
5533 ecode2 = SWIG_AsVal_int(obj1, &val2);
5534 if (!SWIG_IsOK(ecode2)) {
5535 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ComboBox" "', expected argument " "2"" of type '" "int""'");
5536 }
5537 arg2 = static_cast< int >(val2);
5538 }
5539 if (obj2) {
5540 {
5541 arg3 = wxString_in_helper(obj2);
5542 if (arg3 == NULL) SWIG_fail;
5543 temp3 = true;
5544 }
5545 }
5546 if (obj3) {
5547 {
5548 arg4 = &temp4;
5549 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5550 }
5551 }
5552 if (obj4) {
5553 {
5554 arg5 = &temp5;
5555 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5556 }
5557 }
5558 if (obj5) {
5559 {
5560 if (! PySequence_Check(obj5)) {
5561 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5562 SWIG_fail;
5563 }
5564 arg6 = new wxArrayString;
5565 temp6 = true;
5566 int i, len=PySequence_Length(obj5);
5567 for (i=0; i<len; i++) {
5568 PyObject* item = PySequence_GetItem(obj5, i);
5569 wxString* s = wxString_in_helper(item);
5570 if (PyErr_Occurred()) SWIG_fail;
5571 arg6->Add(*s);
5572 delete s;
5573 Py_DECREF(item);
5574 }
5575 }
5576 }
5577 if (obj6) {
5578 ecode7 = SWIG_AsVal_long(obj6, &val7);
5579 if (!SWIG_IsOK(ecode7)) {
5580 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ComboBox" "', expected argument " "7"" of type '" "long""'");
5581 }
5582 arg7 = static_cast< long >(val7);
5583 }
5584 if (obj7) {
5585 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5586 if (!SWIG_IsOK(res8)) {
5587 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5588 }
5589 if (!argp8) {
5590 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5591 }
5592 arg8 = reinterpret_cast< wxValidator * >(argp8);
5593 }
5594 if (obj8) {
5595 {
5596 arg9 = wxString_in_helper(obj8);
5597 if (arg9 == NULL) SWIG_fail;
5598 temp9 = true;
5599 }
5600 }
5601 {
5602 if (!wxPyCheckForApp()) SWIG_fail;
5603 PyThreadState* __tstate = wxPyBeginAllowThreads();
5604 result = (wxComboBox *)new wxComboBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5605 wxPyEndAllowThreads(__tstate);
5606 if (PyErr_Occurred()) SWIG_fail;
5607 }
5608 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_NEW | 0 );
5609 {
5610 if (temp3)
5611 delete arg3;
5612 }
5613 {
5614 if (temp6) delete arg6;
5615 }
5616 {
5617 if (temp9)
5618 delete arg9;
5619 }
5620 return resultobj;
5621 fail:
5622 {
5623 if (temp3)
5624 delete arg3;
5625 }
5626 {
5627 if (temp6) delete arg6;
5628 }
5629 {
5630 if (temp9)
5631 delete arg9;
5632 }
5633 return NULL;
5634 }
5635
5636
5637 SWIGINTERN PyObject *_wrap_new_PreComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5638 PyObject *resultobj = 0;
5639 wxComboBox *result = 0 ;
5640
5641 if (!SWIG_Python_UnpackTuple(args,"new_PreComboBox",0,0,0)) SWIG_fail;
5642 {
5643 if (!wxPyCheckForApp()) SWIG_fail;
5644 PyThreadState* __tstate = wxPyBeginAllowThreads();
5645 result = (wxComboBox *)new wxComboBox();
5646 wxPyEndAllowThreads(__tstate);
5647 if (PyErr_Occurred()) SWIG_fail;
5648 }
5649 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_OWN | 0 );
5650 return resultobj;
5651 fail:
5652 return NULL;
5653 }
5654
5655
5656 SWIGINTERN PyObject *_wrap_ComboBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5657 PyObject *resultobj = 0;
5658 wxComboBox *arg1 = (wxComboBox *) 0 ;
5659 wxWindow *arg2 = (wxWindow *) 0 ;
5660 int arg3 = (int) -1 ;
5661 wxString const &arg4_defvalue = wxPyEmptyString ;
5662 wxString *arg4 = (wxString *) &arg4_defvalue ;
5663 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5664 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5665 wxSize const &arg6_defvalue = wxDefaultSize ;
5666 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5667 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
5668 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
5669 long arg8 = (long) 0 ;
5670 wxValidator const &arg9_defvalue = wxDefaultValidator ;
5671 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
5672 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
5673 wxString *arg10 = (wxString *) &arg10_defvalue ;
5674 bool result;
5675 void *argp1 = 0 ;
5676 int res1 = 0 ;
5677 void *argp2 = 0 ;
5678 int res2 = 0 ;
5679 int val3 ;
5680 int ecode3 = 0 ;
5681 bool temp4 = false ;
5682 wxPoint temp5 ;
5683 wxSize temp6 ;
5684 bool temp7 = false ;
5685 long val8 ;
5686 int ecode8 = 0 ;
5687 void *argp9 = 0 ;
5688 int res9 = 0 ;
5689 bool temp10 = false ;
5690 PyObject * obj0 = 0 ;
5691 PyObject * obj1 = 0 ;
5692 PyObject * obj2 = 0 ;
5693 PyObject * obj3 = 0 ;
5694 PyObject * obj4 = 0 ;
5695 PyObject * obj5 = 0 ;
5696 PyObject * obj6 = 0 ;
5697 PyObject * obj7 = 0 ;
5698 PyObject * obj8 = 0 ;
5699 PyObject * obj9 = 0 ;
5700 char * kwnames[] = {
5701 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5702 };
5703
5704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
5705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5706 if (!SWIG_IsOK(res1)) {
5707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Create" "', expected argument " "1"" of type '" "wxComboBox *""'");
5708 }
5709 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5710 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5711 if (!SWIG_IsOK(res2)) {
5712 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ComboBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5713 }
5714 arg2 = reinterpret_cast< wxWindow * >(argp2);
5715 if (obj2) {
5716 ecode3 = SWIG_AsVal_int(obj2, &val3);
5717 if (!SWIG_IsOK(ecode3)) {
5718 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Create" "', expected argument " "3"" of type '" "int""'");
5719 }
5720 arg3 = static_cast< int >(val3);
5721 }
5722 if (obj3) {
5723 {
5724 arg4 = wxString_in_helper(obj3);
5725 if (arg4 == NULL) SWIG_fail;
5726 temp4 = true;
5727 }
5728 }
5729 if (obj4) {
5730 {
5731 arg5 = &temp5;
5732 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5733 }
5734 }
5735 if (obj5) {
5736 {
5737 arg6 = &temp6;
5738 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5739 }
5740 }
5741 if (obj6) {
5742 {
5743 if (! PySequence_Check(obj6)) {
5744 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5745 SWIG_fail;
5746 }
5747 arg7 = new wxArrayString;
5748 temp7 = true;
5749 int i, len=PySequence_Length(obj6);
5750 for (i=0; i<len; i++) {
5751 PyObject* item = PySequence_GetItem(obj6, i);
5752 wxString* s = wxString_in_helper(item);
5753 if (PyErr_Occurred()) SWIG_fail;
5754 arg7->Add(*s);
5755 delete s;
5756 Py_DECREF(item);
5757 }
5758 }
5759 }
5760 if (obj7) {
5761 ecode8 = SWIG_AsVal_long(obj7, &val8);
5762 if (!SWIG_IsOK(ecode8)) {
5763 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ComboBox_Create" "', expected argument " "8"" of type '" "long""'");
5764 }
5765 arg8 = static_cast< long >(val8);
5766 }
5767 if (obj8) {
5768 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
5769 if (!SWIG_IsOK(res9)) {
5770 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
5771 }
5772 if (!argp9) {
5773 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
5774 }
5775 arg9 = reinterpret_cast< wxValidator * >(argp9);
5776 }
5777 if (obj9) {
5778 {
5779 arg10 = wxString_in_helper(obj9);
5780 if (arg10 == NULL) SWIG_fail;
5781 temp10 = true;
5782 }
5783 }
5784 {
5785 PyThreadState* __tstate = wxPyBeginAllowThreads();
5786 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,(wxArrayString const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
5787 wxPyEndAllowThreads(__tstate);
5788 if (PyErr_Occurred()) SWIG_fail;
5789 }
5790 {
5791 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5792 }
5793 {
5794 if (temp4)
5795 delete arg4;
5796 }
5797 {
5798 if (temp7) delete arg7;
5799 }
5800 {
5801 if (temp10)
5802 delete arg10;
5803 }
5804 return resultobj;
5805 fail:
5806 {
5807 if (temp4)
5808 delete arg4;
5809 }
5810 {
5811 if (temp7) delete arg7;
5812 }
5813 {
5814 if (temp10)
5815 delete arg10;
5816 }
5817 return NULL;
5818 }
5819
5820
5821 SWIGINTERN PyObject *_wrap_ComboBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5822 PyObject *resultobj = 0;
5823 wxComboBox *arg1 = (wxComboBox *) 0 ;
5824 wxString result;
5825 void *argp1 = 0 ;
5826 int res1 = 0 ;
5827 PyObject *swig_obj[1] ;
5828
5829 if (!args) SWIG_fail;
5830 swig_obj[0] = args;
5831 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5832 if (!SWIG_IsOK(res1)) {
5833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetValue" "', expected argument " "1"" of type '" "wxComboBox const *""'");
5834 }
5835 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5836 {
5837 PyThreadState* __tstate = wxPyBeginAllowThreads();
5838 result = ((wxComboBox const *)arg1)->GetValue();
5839 wxPyEndAllowThreads(__tstate);
5840 if (PyErr_Occurred()) SWIG_fail;
5841 }
5842 {
5843 #if wxUSE_UNICODE
5844 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5845 #else
5846 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5847 #endif
5848 }
5849 return resultobj;
5850 fail:
5851 return NULL;
5852 }
5853
5854
5855 SWIGINTERN PyObject *_wrap_ComboBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5856 PyObject *resultobj = 0;
5857 wxComboBox *arg1 = (wxComboBox *) 0 ;
5858 wxString *arg2 = 0 ;
5859 void *argp1 = 0 ;
5860 int res1 = 0 ;
5861 bool temp2 = false ;
5862 PyObject * obj0 = 0 ;
5863 PyObject * obj1 = 0 ;
5864 char * kwnames[] = {
5865 (char *) "self",(char *) "value", NULL
5866 };
5867
5868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
5869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5870 if (!SWIG_IsOK(res1)) {
5871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetValue" "', expected argument " "1"" of type '" "wxComboBox *""'");
5872 }
5873 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5874 {
5875 arg2 = wxString_in_helper(obj1);
5876 if (arg2 == NULL) SWIG_fail;
5877 temp2 = true;
5878 }
5879 {
5880 PyThreadState* __tstate = wxPyBeginAllowThreads();
5881 (arg1)->SetValue((wxString const &)*arg2);
5882 wxPyEndAllowThreads(__tstate);
5883 if (PyErr_Occurred()) SWIG_fail;
5884 }
5885 resultobj = SWIG_Py_Void();
5886 {
5887 if (temp2)
5888 delete arg2;
5889 }
5890 return resultobj;
5891 fail:
5892 {
5893 if (temp2)
5894 delete arg2;
5895 }
5896 return NULL;
5897 }
5898
5899
5900 SWIGINTERN PyObject *_wrap_ComboBox_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5901 PyObject *resultobj = 0;
5902 wxComboBox *arg1 = (wxComboBox *) 0 ;
5903 void *argp1 = 0 ;
5904 int res1 = 0 ;
5905 PyObject *swig_obj[1] ;
5906
5907 if (!args) SWIG_fail;
5908 swig_obj[0] = args;
5909 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5910 if (!SWIG_IsOK(res1)) {
5911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Copy" "', expected argument " "1"" of type '" "wxComboBox *""'");
5912 }
5913 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5914 {
5915 PyThreadState* __tstate = wxPyBeginAllowThreads();
5916 (arg1)->Copy();
5917 wxPyEndAllowThreads(__tstate);
5918 if (PyErr_Occurred()) SWIG_fail;
5919 }
5920 resultobj = SWIG_Py_Void();
5921 return resultobj;
5922 fail:
5923 return NULL;
5924 }
5925
5926
5927 SWIGINTERN PyObject *_wrap_ComboBox_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5928 PyObject *resultobj = 0;
5929 wxComboBox *arg1 = (wxComboBox *) 0 ;
5930 void *argp1 = 0 ;
5931 int res1 = 0 ;
5932 PyObject *swig_obj[1] ;
5933
5934 if (!args) SWIG_fail;
5935 swig_obj[0] = args;
5936 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5937 if (!SWIG_IsOK(res1)) {
5938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Cut" "', expected argument " "1"" of type '" "wxComboBox *""'");
5939 }
5940 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5941 {
5942 PyThreadState* __tstate = wxPyBeginAllowThreads();
5943 (arg1)->Cut();
5944 wxPyEndAllowThreads(__tstate);
5945 if (PyErr_Occurred()) SWIG_fail;
5946 }
5947 resultobj = SWIG_Py_Void();
5948 return resultobj;
5949 fail:
5950 return NULL;
5951 }
5952
5953
5954 SWIGINTERN PyObject *_wrap_ComboBox_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5955 PyObject *resultobj = 0;
5956 wxComboBox *arg1 = (wxComboBox *) 0 ;
5957 void *argp1 = 0 ;
5958 int res1 = 0 ;
5959 PyObject *swig_obj[1] ;
5960
5961 if (!args) SWIG_fail;
5962 swig_obj[0] = args;
5963 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5964 if (!SWIG_IsOK(res1)) {
5965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Paste" "', expected argument " "1"" of type '" "wxComboBox *""'");
5966 }
5967 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5968 {
5969 PyThreadState* __tstate = wxPyBeginAllowThreads();
5970 (arg1)->Paste();
5971 wxPyEndAllowThreads(__tstate);
5972 if (PyErr_Occurred()) SWIG_fail;
5973 }
5974 resultobj = SWIG_Py_Void();
5975 return resultobj;
5976 fail:
5977 return NULL;
5978 }
5979
5980
5981 SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5982 PyObject *resultobj = 0;
5983 wxComboBox *arg1 = (wxComboBox *) 0 ;
5984 long arg2 ;
5985 void *argp1 = 0 ;
5986 int res1 = 0 ;
5987 long val2 ;
5988 int ecode2 = 0 ;
5989 PyObject * obj0 = 0 ;
5990 PyObject * obj1 = 0 ;
5991 char * kwnames[] = {
5992 (char *) "self",(char *) "pos", NULL
5993 };
5994
5995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
5996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5997 if (!SWIG_IsOK(res1)) {
5998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox *""'");
5999 }
6000 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6001 ecode2 = SWIG_AsVal_long(obj1, &val2);
6002 if (!SWIG_IsOK(ecode2)) {
6003 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
6004 }
6005 arg2 = static_cast< long >(val2);
6006 {
6007 PyThreadState* __tstate = wxPyBeginAllowThreads();
6008 (arg1)->SetInsertionPoint(arg2);
6009 wxPyEndAllowThreads(__tstate);
6010 if (PyErr_Occurred()) SWIG_fail;
6011 }
6012 resultobj = SWIG_Py_Void();
6013 return resultobj;
6014 fail:
6015 return NULL;
6016 }
6017
6018
6019 SWIGINTERN PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6020 PyObject *resultobj = 0;
6021 wxComboBox *arg1 = (wxComboBox *) 0 ;
6022 long result;
6023 void *argp1 = 0 ;
6024 int res1 = 0 ;
6025 PyObject *swig_obj[1] ;
6026
6027 if (!args) SWIG_fail;
6028 swig_obj[0] = args;
6029 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6030 if (!SWIG_IsOK(res1)) {
6031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6032 }
6033 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6034 {
6035 PyThreadState* __tstate = wxPyBeginAllowThreads();
6036 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
6037 wxPyEndAllowThreads(__tstate);
6038 if (PyErr_Occurred()) SWIG_fail;
6039 }
6040 resultobj = SWIG_From_long(static_cast< long >(result));
6041 return resultobj;
6042 fail:
6043 return NULL;
6044 }
6045
6046
6047 SWIGINTERN PyObject *_wrap_ComboBox_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6048 PyObject *resultobj = 0;
6049 wxComboBox *arg1 = (wxComboBox *) 0 ;
6050 long result;
6051 void *argp1 = 0 ;
6052 int res1 = 0 ;
6053 PyObject *swig_obj[1] ;
6054
6055 if (!args) SWIG_fail;
6056 swig_obj[0] = args;
6057 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6058 if (!SWIG_IsOK(res1)) {
6059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetLastPosition" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6060 }
6061 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6062 {
6063 PyThreadState* __tstate = wxPyBeginAllowThreads();
6064 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
6065 wxPyEndAllowThreads(__tstate);
6066 if (PyErr_Occurred()) SWIG_fail;
6067 }
6068 resultobj = SWIG_From_long(static_cast< long >(result));
6069 return resultobj;
6070 fail:
6071 return NULL;
6072 }
6073
6074
6075 SWIGINTERN PyObject *_wrap_ComboBox_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6076 PyObject *resultobj = 0;
6077 wxComboBox *arg1 = (wxComboBox *) 0 ;
6078 long arg2 ;
6079 long arg3 ;
6080 wxString *arg4 = 0 ;
6081 void *argp1 = 0 ;
6082 int res1 = 0 ;
6083 long val2 ;
6084 int ecode2 = 0 ;
6085 long val3 ;
6086 int ecode3 = 0 ;
6087 bool temp4 = false ;
6088 PyObject * obj0 = 0 ;
6089 PyObject * obj1 = 0 ;
6090 PyObject * obj2 = 0 ;
6091 PyObject * obj3 = 0 ;
6092 char * kwnames[] = {
6093 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
6094 };
6095
6096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6098 if (!SWIG_IsOK(res1)) {
6099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Replace" "', expected argument " "1"" of type '" "wxComboBox *""'");
6100 }
6101 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6102 ecode2 = SWIG_AsVal_long(obj1, &val2);
6103 if (!SWIG_IsOK(ecode2)) {
6104 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Replace" "', expected argument " "2"" of type '" "long""'");
6105 }
6106 arg2 = static_cast< long >(val2);
6107 ecode3 = SWIG_AsVal_long(obj2, &val3);
6108 if (!SWIG_IsOK(ecode3)) {
6109 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Replace" "', expected argument " "3"" of type '" "long""'");
6110 }
6111 arg3 = static_cast< long >(val3);
6112 {
6113 arg4 = wxString_in_helper(obj3);
6114 if (arg4 == NULL) SWIG_fail;
6115 temp4 = true;
6116 }
6117 {
6118 PyThreadState* __tstate = wxPyBeginAllowThreads();
6119 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
6120 wxPyEndAllowThreads(__tstate);
6121 if (PyErr_Occurred()) SWIG_fail;
6122 }
6123 resultobj = SWIG_Py_Void();
6124 {
6125 if (temp4)
6126 delete arg4;
6127 }
6128 return resultobj;
6129 fail:
6130 {
6131 if (temp4)
6132 delete arg4;
6133 }
6134 return NULL;
6135 }
6136
6137
6138 SWIGINTERN PyObject *_wrap_ComboBox_SetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6139 PyObject *resultobj = 0;
6140 wxComboBox *arg1 = (wxComboBox *) 0 ;
6141 long arg2 ;
6142 long arg3 ;
6143 void *argp1 = 0 ;
6144 int res1 = 0 ;
6145 long val2 ;
6146 int ecode2 = 0 ;
6147 long val3 ;
6148 int ecode3 = 0 ;
6149 PyObject * obj0 = 0 ;
6150 PyObject * obj1 = 0 ;
6151 PyObject * obj2 = 0 ;
6152 char * kwnames[] = {
6153 (char *) "self",(char *) "from",(char *) "to", NULL
6154 };
6155
6156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6157 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6158 if (!SWIG_IsOK(res1)) {
6159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6160 }
6161 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6162 ecode2 = SWIG_AsVal_long(obj1, &val2);
6163 if (!SWIG_IsOK(ecode2)) {
6164 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetMark" "', expected argument " "2"" of type '" "long""'");
6165 }
6166 arg2 = static_cast< long >(val2);
6167 ecode3 = SWIG_AsVal_long(obj2, &val3);
6168 if (!SWIG_IsOK(ecode3)) {
6169 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_SetMark" "', expected argument " "3"" of type '" "long""'");
6170 }
6171 arg3 = static_cast< long >(val3);
6172 {
6173 PyThreadState* __tstate = wxPyBeginAllowThreads();
6174 (arg1)->SetSelection(arg2,arg3);
6175 wxPyEndAllowThreads(__tstate);
6176 if (PyErr_Occurred()) SWIG_fail;
6177 }
6178 resultobj = SWIG_Py_Void();
6179 return resultobj;
6180 fail:
6181 return NULL;
6182 }
6183
6184
6185 SWIGINTERN PyObject *_wrap_ComboBox_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6186 PyObject *resultobj = 0;
6187 wxComboBox *arg1 = (wxComboBox *) 0 ;
6188 int result;
6189 void *argp1 = 0 ;
6190 int res1 = 0 ;
6191 PyObject *swig_obj[1] ;
6192
6193 if (!args) SWIG_fail;
6194 swig_obj[0] = args;
6195 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6196 if (!SWIG_IsOK(res1)) {
6197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetCurrentSelection" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6198 }
6199 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6200 {
6201 PyThreadState* __tstate = wxPyBeginAllowThreads();
6202 result = (int)((wxComboBox const *)arg1)->GetCurrentSelection();
6203 wxPyEndAllowThreads(__tstate);
6204 if (PyErr_Occurred()) SWIG_fail;
6205 }
6206 resultobj = SWIG_From_int(static_cast< int >(result));
6207 return resultobj;
6208 fail:
6209 return NULL;
6210 }
6211
6212
6213 SWIGINTERN PyObject *_wrap_ComboBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6214 PyObject *resultobj = 0;
6215 wxComboBox *arg1 = (wxComboBox *) 0 ;
6216 wxString *arg2 = 0 ;
6217 bool result;
6218 void *argp1 = 0 ;
6219 int res1 = 0 ;
6220 bool temp2 = false ;
6221 PyObject * obj0 = 0 ;
6222 PyObject * obj1 = 0 ;
6223 char * kwnames[] = {
6224 (char *) "self",(char *) "string", NULL
6225 };
6226
6227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
6228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6229 if (!SWIG_IsOK(res1)) {
6230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetStringSelection" "', expected argument " "1"" of type '" "wxComboBox *""'");
6231 }
6232 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6233 {
6234 arg2 = wxString_in_helper(obj1);
6235 if (arg2 == NULL) SWIG_fail;
6236 temp2 = true;
6237 }
6238 {
6239 PyThreadState* __tstate = wxPyBeginAllowThreads();
6240 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
6241 wxPyEndAllowThreads(__tstate);
6242 if (PyErr_Occurred()) SWIG_fail;
6243 }
6244 {
6245 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6246 }
6247 {
6248 if (temp2)
6249 delete arg2;
6250 }
6251 return resultobj;
6252 fail:
6253 {
6254 if (temp2)
6255 delete arg2;
6256 }
6257 return NULL;
6258 }
6259
6260
6261 SWIGINTERN PyObject *_wrap_ComboBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6262 PyObject *resultobj = 0;
6263 wxComboBox *arg1 = (wxComboBox *) 0 ;
6264 int arg2 ;
6265 wxString *arg3 = 0 ;
6266 void *argp1 = 0 ;
6267 int res1 = 0 ;
6268 int val2 ;
6269 int ecode2 = 0 ;
6270 bool temp3 = false ;
6271 PyObject * obj0 = 0 ;
6272 PyObject * obj1 = 0 ;
6273 PyObject * obj2 = 0 ;
6274 char * kwnames[] = {
6275 (char *) "self",(char *) "n",(char *) "string", NULL
6276 };
6277
6278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6280 if (!SWIG_IsOK(res1)) {
6281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetString" "', expected argument " "1"" of type '" "wxComboBox *""'");
6282 }
6283 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6284 ecode2 = SWIG_AsVal_int(obj1, &val2);
6285 if (!SWIG_IsOK(ecode2)) {
6286 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetString" "', expected argument " "2"" of type '" "int""'");
6287 }
6288 arg2 = static_cast< int >(val2);
6289 {
6290 arg3 = wxString_in_helper(obj2);
6291 if (arg3 == NULL) SWIG_fail;
6292 temp3 = true;
6293 }
6294 {
6295 PyThreadState* __tstate = wxPyBeginAllowThreads();
6296 (arg1)->SetString(arg2,(wxString const &)*arg3);
6297 wxPyEndAllowThreads(__tstate);
6298 if (PyErr_Occurred()) SWIG_fail;
6299 }
6300 resultobj = SWIG_Py_Void();
6301 {
6302 if (temp3)
6303 delete arg3;
6304 }
6305 return resultobj;
6306 fail:
6307 {
6308 if (temp3)
6309 delete arg3;
6310 }
6311 return NULL;
6312 }
6313
6314
6315 SWIGINTERN PyObject *_wrap_ComboBox_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6316 PyObject *resultobj = 0;
6317 wxComboBox *arg1 = (wxComboBox *) 0 ;
6318 bool arg2 ;
6319 void *argp1 = 0 ;
6320 int res1 = 0 ;
6321 bool val2 ;
6322 int ecode2 = 0 ;
6323 PyObject * obj0 = 0 ;
6324 PyObject * obj1 = 0 ;
6325 char * kwnames[] = {
6326 (char *) "self",(char *) "editable", NULL
6327 };
6328
6329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
6330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6331 if (!SWIG_IsOK(res1)) {
6332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetEditable" "', expected argument " "1"" of type '" "wxComboBox *""'");
6333 }
6334 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6335 ecode2 = SWIG_AsVal_bool(obj1, &val2);
6336 if (!SWIG_IsOK(ecode2)) {
6337 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetEditable" "', expected argument " "2"" of type '" "bool""'");
6338 }
6339 arg2 = static_cast< bool >(val2);
6340 {
6341 PyThreadState* __tstate = wxPyBeginAllowThreads();
6342 (arg1)->SetEditable(arg2);
6343 wxPyEndAllowThreads(__tstate);
6344 if (PyErr_Occurred()) SWIG_fail;
6345 }
6346 resultobj = SWIG_Py_Void();
6347 return resultobj;
6348 fail:
6349 return NULL;
6350 }
6351
6352
6353 SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6354 PyObject *resultobj = 0;
6355 wxComboBox *arg1 = (wxComboBox *) 0 ;
6356 void *argp1 = 0 ;
6357 int res1 = 0 ;
6358 PyObject *swig_obj[1] ;
6359
6360 if (!args) SWIG_fail;
6361 swig_obj[0] = args;
6362 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6363 if (!SWIG_IsOK(res1)) {
6364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxComboBox *""'");
6365 }
6366 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6367 {
6368 PyThreadState* __tstate = wxPyBeginAllowThreads();
6369 (arg1)->SetInsertionPointEnd();
6370 wxPyEndAllowThreads(__tstate);
6371 if (PyErr_Occurred()) SWIG_fail;
6372 }
6373 resultobj = SWIG_Py_Void();
6374 return resultobj;
6375 fail:
6376 return NULL;
6377 }
6378
6379
6380 SWIGINTERN PyObject *_wrap_ComboBox_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6381 PyObject *resultobj = 0;
6382 wxComboBox *arg1 = (wxComboBox *) 0 ;
6383 long arg2 ;
6384 long arg3 ;
6385 void *argp1 = 0 ;
6386 int res1 = 0 ;
6387 long val2 ;
6388 int ecode2 = 0 ;
6389 long val3 ;
6390 int ecode3 = 0 ;
6391 PyObject * obj0 = 0 ;
6392 PyObject * obj1 = 0 ;
6393 PyObject * obj2 = 0 ;
6394 char * kwnames[] = {
6395 (char *) "self",(char *) "from",(char *) "to", NULL
6396 };
6397
6398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6400 if (!SWIG_IsOK(res1)) {
6401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Remove" "', expected argument " "1"" of type '" "wxComboBox *""'");
6402 }
6403 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6404 ecode2 = SWIG_AsVal_long(obj1, &val2);
6405 if (!SWIG_IsOK(ecode2)) {
6406 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Remove" "', expected argument " "2"" of type '" "long""'");
6407 }
6408 arg2 = static_cast< long >(val2);
6409 ecode3 = SWIG_AsVal_long(obj2, &val3);
6410 if (!SWIG_IsOK(ecode3)) {
6411 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Remove" "', expected argument " "3"" of type '" "long""'");
6412 }
6413 arg3 = static_cast< long >(val3);
6414 {
6415 PyThreadState* __tstate = wxPyBeginAllowThreads();
6416 (arg1)->Remove(arg2,arg3);
6417 wxPyEndAllowThreads(__tstate);
6418 if (PyErr_Occurred()) SWIG_fail;
6419 }
6420 resultobj = SWIG_Py_Void();
6421 return resultobj;
6422 fail:
6423 return NULL;
6424 }
6425
6426
6427 SWIGINTERN PyObject *_wrap_ComboBox_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6428 PyObject *resultobj = 0;
6429 wxComboBox *arg1 = (wxComboBox *) 0 ;
6430 bool result;
6431 void *argp1 = 0 ;
6432 int res1 = 0 ;
6433 PyObject *swig_obj[1] ;
6434
6435 if (!args) SWIG_fail;
6436 swig_obj[0] = args;
6437 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6438 if (!SWIG_IsOK(res1)) {
6439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_IsEditable" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6440 }
6441 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6442 {
6443 PyThreadState* __tstate = wxPyBeginAllowThreads();
6444 result = (bool)((wxComboBox const *)arg1)->IsEditable();
6445 wxPyEndAllowThreads(__tstate);
6446 if (PyErr_Occurred()) SWIG_fail;
6447 }
6448 {
6449 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6450 }
6451 return resultobj;
6452 fail:
6453 return NULL;
6454 }
6455
6456
6457 SWIGINTERN PyObject *_wrap_ComboBox_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6458 PyObject *resultobj = 0;
6459 wxComboBox *arg1 = (wxComboBox *) 0 ;
6460 void *argp1 = 0 ;
6461 int res1 = 0 ;
6462 PyObject *swig_obj[1] ;
6463
6464 if (!args) SWIG_fail;
6465 swig_obj[0] = args;
6466 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6467 if (!SWIG_IsOK(res1)) {
6468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Undo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6469 }
6470 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6471 {
6472 PyThreadState* __tstate = wxPyBeginAllowThreads();
6473 (arg1)->Undo();
6474 wxPyEndAllowThreads(__tstate);
6475 if (PyErr_Occurred()) SWIG_fail;
6476 }
6477 resultobj = SWIG_Py_Void();
6478 return resultobj;
6479 fail:
6480 return NULL;
6481 }
6482
6483
6484 SWIGINTERN PyObject *_wrap_ComboBox_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6485 PyObject *resultobj = 0;
6486 wxComboBox *arg1 = (wxComboBox *) 0 ;
6487 void *argp1 = 0 ;
6488 int res1 = 0 ;
6489 PyObject *swig_obj[1] ;
6490
6491 if (!args) SWIG_fail;
6492 swig_obj[0] = args;
6493 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6494 if (!SWIG_IsOK(res1)) {
6495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Redo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6496 }
6497 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6498 {
6499 PyThreadState* __tstate = wxPyBeginAllowThreads();
6500 (arg1)->Redo();
6501 wxPyEndAllowThreads(__tstate);
6502 if (PyErr_Occurred()) SWIG_fail;
6503 }
6504 resultobj = SWIG_Py_Void();
6505 return resultobj;
6506 fail:
6507 return NULL;
6508 }
6509
6510
6511 SWIGINTERN PyObject *_wrap_ComboBox_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6512 PyObject *resultobj = 0;
6513 wxComboBox *arg1 = (wxComboBox *) 0 ;
6514 void *argp1 = 0 ;
6515 int res1 = 0 ;
6516 PyObject *swig_obj[1] ;
6517
6518 if (!args) SWIG_fail;
6519 swig_obj[0] = args;
6520 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6521 if (!SWIG_IsOK(res1)) {
6522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SelectAll" "', expected argument " "1"" of type '" "wxComboBox *""'");
6523 }
6524 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6525 {
6526 PyThreadState* __tstate = wxPyBeginAllowThreads();
6527 (arg1)->SelectAll();
6528 wxPyEndAllowThreads(__tstate);
6529 if (PyErr_Occurred()) SWIG_fail;
6530 }
6531 resultobj = SWIG_Py_Void();
6532 return resultobj;
6533 fail:
6534 return NULL;
6535 }
6536
6537
6538 SWIGINTERN PyObject *_wrap_ComboBox_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6539 PyObject *resultobj = 0;
6540 wxComboBox *arg1 = (wxComboBox *) 0 ;
6541 bool result;
6542 void *argp1 = 0 ;
6543 int res1 = 0 ;
6544 PyObject *swig_obj[1] ;
6545
6546 if (!args) SWIG_fail;
6547 swig_obj[0] = args;
6548 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6549 if (!SWIG_IsOK(res1)) {
6550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCopy" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6551 }
6552 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6553 {
6554 PyThreadState* __tstate = wxPyBeginAllowThreads();
6555 result = (bool)((wxComboBox const *)arg1)->CanCopy();
6556 wxPyEndAllowThreads(__tstate);
6557 if (PyErr_Occurred()) SWIG_fail;
6558 }
6559 {
6560 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6561 }
6562 return resultobj;
6563 fail:
6564 return NULL;
6565 }
6566
6567
6568 SWIGINTERN PyObject *_wrap_ComboBox_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6569 PyObject *resultobj = 0;
6570 wxComboBox *arg1 = (wxComboBox *) 0 ;
6571 bool result;
6572 void *argp1 = 0 ;
6573 int res1 = 0 ;
6574 PyObject *swig_obj[1] ;
6575
6576 if (!args) SWIG_fail;
6577 swig_obj[0] = args;
6578 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6579 if (!SWIG_IsOK(res1)) {
6580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCut" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6581 }
6582 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6583 {
6584 PyThreadState* __tstate = wxPyBeginAllowThreads();
6585 result = (bool)((wxComboBox const *)arg1)->CanCut();
6586 wxPyEndAllowThreads(__tstate);
6587 if (PyErr_Occurred()) SWIG_fail;
6588 }
6589 {
6590 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6591 }
6592 return resultobj;
6593 fail:
6594 return NULL;
6595 }
6596
6597
6598 SWIGINTERN PyObject *_wrap_ComboBox_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6599 PyObject *resultobj = 0;
6600 wxComboBox *arg1 = (wxComboBox *) 0 ;
6601 bool result;
6602 void *argp1 = 0 ;
6603 int res1 = 0 ;
6604 PyObject *swig_obj[1] ;
6605
6606 if (!args) SWIG_fail;
6607 swig_obj[0] = args;
6608 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6609 if (!SWIG_IsOK(res1)) {
6610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanPaste" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6611 }
6612 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6613 {
6614 PyThreadState* __tstate = wxPyBeginAllowThreads();
6615 result = (bool)((wxComboBox const *)arg1)->CanPaste();
6616 wxPyEndAllowThreads(__tstate);
6617 if (PyErr_Occurred()) SWIG_fail;
6618 }
6619 {
6620 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6621 }
6622 return resultobj;
6623 fail:
6624 return NULL;
6625 }
6626
6627
6628 SWIGINTERN PyObject *_wrap_ComboBox_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6629 PyObject *resultobj = 0;
6630 wxComboBox *arg1 = (wxComboBox *) 0 ;
6631 bool result;
6632 void *argp1 = 0 ;
6633 int res1 = 0 ;
6634 PyObject *swig_obj[1] ;
6635
6636 if (!args) SWIG_fail;
6637 swig_obj[0] = args;
6638 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6639 if (!SWIG_IsOK(res1)) {
6640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanUndo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6641 }
6642 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6643 {
6644 PyThreadState* __tstate = wxPyBeginAllowThreads();
6645 result = (bool)((wxComboBox const *)arg1)->CanUndo();
6646 wxPyEndAllowThreads(__tstate);
6647 if (PyErr_Occurred()) SWIG_fail;
6648 }
6649 {
6650 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6651 }
6652 return resultobj;
6653 fail:
6654 return NULL;
6655 }
6656
6657
6658 SWIGINTERN PyObject *_wrap_ComboBox_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6659 PyObject *resultobj = 0;
6660 wxComboBox *arg1 = (wxComboBox *) 0 ;
6661 bool result;
6662 void *argp1 = 0 ;
6663 int res1 = 0 ;
6664 PyObject *swig_obj[1] ;
6665
6666 if (!args) SWIG_fail;
6667 swig_obj[0] = args;
6668 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6669 if (!SWIG_IsOK(res1)) {
6670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanRedo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6671 }
6672 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6673 {
6674 PyThreadState* __tstate = wxPyBeginAllowThreads();
6675 result = (bool)((wxComboBox const *)arg1)->CanRedo();
6676 wxPyEndAllowThreads(__tstate);
6677 if (PyErr_Occurred()) SWIG_fail;
6678 }
6679 {
6680 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6681 }
6682 return resultobj;
6683 fail:
6684 return NULL;
6685 }
6686
6687
6688 SWIGINTERN PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6689 PyObject *resultobj = 0;
6690 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
6691 SwigValueWrapper<wxVisualAttributes > result;
6692 int val1 ;
6693 int ecode1 = 0 ;
6694 PyObject * obj0 = 0 ;
6695 char * kwnames[] = {
6696 (char *) "variant", NULL
6697 };
6698
6699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
6700 if (obj0) {
6701 ecode1 = SWIG_AsVal_int(obj0, &val1);
6702 if (!SWIG_IsOK(ecode1)) {
6703 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ComboBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
6704 }
6705 arg1 = static_cast< wxWindowVariant >(val1);
6706 }
6707 {
6708 if (!wxPyCheckForApp()) SWIG_fail;
6709 PyThreadState* __tstate = wxPyBeginAllowThreads();
6710 result = wxComboBox::GetClassDefaultAttributes(arg1);
6711 wxPyEndAllowThreads(__tstate);
6712 if (PyErr_Occurred()) SWIG_fail;
6713 }
6714 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
6715 return resultobj;
6716 fail:
6717 return NULL;
6718 }
6719
6720
6721 SWIGINTERN PyObject *ComboBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6722 PyObject *obj;
6723 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6724 SWIG_TypeNewClientData(SWIGTYPE_p_wxComboBox, SWIG_NewClientData(obj));
6725 return SWIG_Py_Void();
6726 }
6727
6728 SWIGINTERN PyObject *ComboBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6729 return SWIG_Python_InitShadowInstance(args);
6730 }
6731
6732 SWIGINTERN int GaugeNameStr_set(PyObject *) {
6733 SWIG_Error(SWIG_AttributeError,"Variable GaugeNameStr is read-only.");
6734 return 1;
6735 }
6736
6737
6738 SWIGINTERN PyObject *GaugeNameStr_get(void) {
6739 PyObject *pyobj = 0;
6740
6741 {
6742 #if wxUSE_UNICODE
6743 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6744 #else
6745 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6746 #endif
6747 }
6748 return pyobj;
6749 }
6750
6751
6752 SWIGINTERN PyObject *_wrap_new_Gauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6753 PyObject *resultobj = 0;
6754 wxWindow *arg1 = (wxWindow *) 0 ;
6755 int arg2 = (int) -1 ;
6756 int arg3 = (int) 100 ;
6757 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6758 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6759 wxSize const &arg5_defvalue = wxDefaultSize ;
6760 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6761 long arg6 = (long) wxGA_HORIZONTAL ;
6762 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6763 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6764 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
6765 wxString *arg8 = (wxString *) &arg8_defvalue ;
6766 wxGauge *result = 0 ;
6767 void *argp1 = 0 ;
6768 int res1 = 0 ;
6769 int val2 ;
6770 int ecode2 = 0 ;
6771 int val3 ;
6772 int ecode3 = 0 ;
6773 wxPoint temp4 ;
6774 wxSize temp5 ;
6775 long val6 ;
6776 int ecode6 = 0 ;
6777 void *argp7 = 0 ;
6778 int res7 = 0 ;
6779 bool temp8 = false ;
6780 PyObject * obj0 = 0 ;
6781 PyObject * obj1 = 0 ;
6782 PyObject * obj2 = 0 ;
6783 PyObject * obj3 = 0 ;
6784 PyObject * obj4 = 0 ;
6785 PyObject * obj5 = 0 ;
6786 PyObject * obj6 = 0 ;
6787 PyObject * obj7 = 0 ;
6788 char * kwnames[] = {
6789 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6790 };
6791
6792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
6793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
6794 if (!SWIG_IsOK(res1)) {
6795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gauge" "', expected argument " "1"" of type '" "wxWindow *""'");
6796 }
6797 arg1 = reinterpret_cast< wxWindow * >(argp1);
6798 if (obj1) {
6799 ecode2 = SWIG_AsVal_int(obj1, &val2);
6800 if (!SWIG_IsOK(ecode2)) {
6801 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gauge" "', expected argument " "2"" of type '" "int""'");
6802 }
6803 arg2 = static_cast< int >(val2);
6804 }
6805 if (obj2) {
6806 ecode3 = SWIG_AsVal_int(obj2, &val3);
6807 if (!SWIG_IsOK(ecode3)) {
6808 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gauge" "', expected argument " "3"" of type '" "int""'");
6809 }
6810 arg3 = static_cast< int >(val3);
6811 }
6812 if (obj3) {
6813 {
6814 arg4 = &temp4;
6815 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
6816 }
6817 }
6818 if (obj4) {
6819 {
6820 arg5 = &temp5;
6821 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
6822 }
6823 }
6824 if (obj5) {
6825 ecode6 = SWIG_AsVal_long(obj5, &val6);
6826 if (!SWIG_IsOK(ecode6)) {
6827 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Gauge" "', expected argument " "6"" of type '" "long""'");
6828 }
6829 arg6 = static_cast< long >(val6);
6830 }
6831 if (obj6) {
6832 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
6833 if (!SWIG_IsOK(res7)) {
6834 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6835 }
6836 if (!argp7) {
6837 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6838 }
6839 arg7 = reinterpret_cast< wxValidator * >(argp7);
6840 }
6841 if (obj7) {
6842 {
6843 arg8 = wxString_in_helper(obj7);
6844 if (arg8 == NULL) SWIG_fail;
6845 temp8 = true;
6846 }
6847 }
6848 {
6849 if (!wxPyCheckForApp()) SWIG_fail;
6850 PyThreadState* __tstate = wxPyBeginAllowThreads();
6851 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6852 wxPyEndAllowThreads(__tstate);
6853 if (PyErr_Occurred()) SWIG_fail;
6854 }
6855 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_NEW | 0 );
6856 {
6857 if (temp8)
6858 delete arg8;
6859 }
6860 return resultobj;
6861 fail:
6862 {
6863 if (temp8)
6864 delete arg8;
6865 }
6866 return NULL;
6867 }
6868
6869
6870 SWIGINTERN PyObject *_wrap_new_PreGauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6871 PyObject *resultobj = 0;
6872 wxGauge *result = 0 ;
6873
6874 if (!SWIG_Python_UnpackTuple(args,"new_PreGauge",0,0,0)) SWIG_fail;
6875 {
6876 if (!wxPyCheckForApp()) SWIG_fail;
6877 PyThreadState* __tstate = wxPyBeginAllowThreads();
6878 result = (wxGauge *)new wxGauge();
6879 wxPyEndAllowThreads(__tstate);
6880 if (PyErr_Occurred()) SWIG_fail;
6881 }
6882 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_OWN | 0 );
6883 return resultobj;
6884 fail:
6885 return NULL;
6886 }
6887
6888
6889 SWIGINTERN PyObject *_wrap_Gauge_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6890 PyObject *resultobj = 0;
6891 wxGauge *arg1 = (wxGauge *) 0 ;
6892 wxWindow *arg2 = (wxWindow *) 0 ;
6893 int arg3 = (int) -1 ;
6894 int arg4 = (int) 100 ;
6895 wxPoint const &arg5_defvalue = wxDefaultPosition ;
6896 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
6897 wxSize const &arg6_defvalue = wxDefaultSize ;
6898 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
6899 long arg7 = (long) wxGA_HORIZONTAL ;
6900 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6901 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6902 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
6903 wxString *arg9 = (wxString *) &arg9_defvalue ;
6904 bool result;
6905 void *argp1 = 0 ;
6906 int res1 = 0 ;
6907 void *argp2 = 0 ;
6908 int res2 = 0 ;
6909 int val3 ;
6910 int ecode3 = 0 ;
6911 int val4 ;
6912 int ecode4 = 0 ;
6913 wxPoint temp5 ;
6914 wxSize temp6 ;
6915 long val7 ;
6916 int ecode7 = 0 ;
6917 void *argp8 = 0 ;
6918 int res8 = 0 ;
6919 bool temp9 = false ;
6920 PyObject * obj0 = 0 ;
6921 PyObject * obj1 = 0 ;
6922 PyObject * obj2 = 0 ;
6923 PyObject * obj3 = 0 ;
6924 PyObject * obj4 = 0 ;
6925 PyObject * obj5 = 0 ;
6926 PyObject * obj6 = 0 ;
6927 PyObject * obj7 = 0 ;
6928 PyObject * obj8 = 0 ;
6929 char * kwnames[] = {
6930 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6931 };
6932
6933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
6934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
6935 if (!SWIG_IsOK(res1)) {
6936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Create" "', expected argument " "1"" of type '" "wxGauge *""'");
6937 }
6938 arg1 = reinterpret_cast< wxGauge * >(argp1);
6939 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
6940 if (!SWIG_IsOK(res2)) {
6941 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gauge_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
6942 }
6943 arg2 = reinterpret_cast< wxWindow * >(argp2);
6944 if (obj2) {
6945 ecode3 = SWIG_AsVal_int(obj2, &val3);
6946 if (!SWIG_IsOK(ecode3)) {
6947 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Gauge_Create" "', expected argument " "3"" of type '" "int""'");
6948 }
6949 arg3 = static_cast< int >(val3);
6950 }
6951 if (obj3) {
6952 ecode4 = SWIG_AsVal_int(obj3, &val4);
6953 if (!SWIG_IsOK(ecode4)) {
6954 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Gauge_Create" "', expected argument " "4"" of type '" "int""'");
6955 }
6956 arg4 = static_cast< int >(val4);
6957 }
6958 if (obj4) {
6959 {
6960 arg5 = &temp5;
6961 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
6962 }
6963 }
6964 if (obj5) {
6965 {
6966 arg6 = &temp6;
6967 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
6968 }
6969 }
6970 if (obj6) {
6971 ecode7 = SWIG_AsVal_long(obj6, &val7);
6972 if (!SWIG_IsOK(ecode7)) {
6973 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Gauge_Create" "', expected argument " "7"" of type '" "long""'");
6974 }
6975 arg7 = static_cast< long >(val7);
6976 }
6977 if (obj7) {
6978 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
6979 if (!SWIG_IsOK(res8)) {
6980 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
6981 }
6982 if (!argp8) {
6983 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
6984 }
6985 arg8 = reinterpret_cast< wxValidator * >(argp8);
6986 }
6987 if (obj8) {
6988 {
6989 arg9 = wxString_in_helper(obj8);
6990 if (arg9 == NULL) SWIG_fail;
6991 temp9 = true;
6992 }
6993 }
6994 {
6995 PyThreadState* __tstate = wxPyBeginAllowThreads();
6996 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
6997 wxPyEndAllowThreads(__tstate);
6998 if (PyErr_Occurred()) SWIG_fail;
6999 }
7000 {
7001 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7002 }
7003 {
7004 if (temp9)
7005 delete arg9;
7006 }
7007 return resultobj;
7008 fail:
7009 {
7010 if (temp9)
7011 delete arg9;
7012 }
7013 return NULL;
7014 }
7015
7016
7017 SWIGINTERN PyObject *_wrap_Gauge_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7018 PyObject *resultobj = 0;
7019 wxGauge *arg1 = (wxGauge *) 0 ;
7020 int arg2 ;
7021 void *argp1 = 0 ;
7022 int res1 = 0 ;
7023 int val2 ;
7024 int ecode2 = 0 ;
7025 PyObject * obj0 = 0 ;
7026 PyObject * obj1 = 0 ;
7027 char * kwnames[] = {
7028 (char *) "self",(char *) "range", NULL
7029 };
7030
7031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) SWIG_fail;
7032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7033 if (!SWIG_IsOK(res1)) {
7034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetRange" "', expected argument " "1"" of type '" "wxGauge *""'");
7035 }
7036 arg1 = reinterpret_cast< wxGauge * >(argp1);
7037 ecode2 = SWIG_AsVal_int(obj1, &val2);
7038 if (!SWIG_IsOK(ecode2)) {
7039 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetRange" "', expected argument " "2"" of type '" "int""'");
7040 }
7041 arg2 = static_cast< int >(val2);
7042 {
7043 PyThreadState* __tstate = wxPyBeginAllowThreads();
7044 (arg1)->SetRange(arg2);
7045 wxPyEndAllowThreads(__tstate);
7046 if (PyErr_Occurred()) SWIG_fail;
7047 }
7048 resultobj = SWIG_Py_Void();
7049 return resultobj;
7050 fail:
7051 return NULL;
7052 }
7053
7054
7055 SWIGINTERN PyObject *_wrap_Gauge_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7056 PyObject *resultobj = 0;
7057 wxGauge *arg1 = (wxGauge *) 0 ;
7058 int result;
7059 void *argp1 = 0 ;
7060 int res1 = 0 ;
7061 PyObject *swig_obj[1] ;
7062
7063 if (!args) SWIG_fail;
7064 swig_obj[0] = args;
7065 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7066 if (!SWIG_IsOK(res1)) {
7067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetRange" "', expected argument " "1"" of type '" "wxGauge const *""'");
7068 }
7069 arg1 = reinterpret_cast< wxGauge * >(argp1);
7070 {
7071 PyThreadState* __tstate = wxPyBeginAllowThreads();
7072 result = (int)((wxGauge const *)arg1)->GetRange();
7073 wxPyEndAllowThreads(__tstate);
7074 if (PyErr_Occurred()) SWIG_fail;
7075 }
7076 resultobj = SWIG_From_int(static_cast< int >(result));
7077 return resultobj;
7078 fail:
7079 return NULL;
7080 }
7081
7082
7083 SWIGINTERN PyObject *_wrap_Gauge_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7084 PyObject *resultobj = 0;
7085 wxGauge *arg1 = (wxGauge *) 0 ;
7086 int arg2 ;
7087 void *argp1 = 0 ;
7088 int res1 = 0 ;
7089 int val2 ;
7090 int ecode2 = 0 ;
7091 PyObject * obj0 = 0 ;
7092 PyObject * obj1 = 0 ;
7093 char * kwnames[] = {
7094 (char *) "self",(char *) "pos", NULL
7095 };
7096
7097 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
7098 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7099 if (!SWIG_IsOK(res1)) {
7100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetValue" "', expected argument " "1"" of type '" "wxGauge *""'");
7101 }
7102 arg1 = reinterpret_cast< wxGauge * >(argp1);
7103 ecode2 = SWIG_AsVal_int(obj1, &val2);
7104 if (!SWIG_IsOK(ecode2)) {
7105 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetValue" "', expected argument " "2"" of type '" "int""'");
7106 }
7107 arg2 = static_cast< int >(val2);
7108 {
7109 PyThreadState* __tstate = wxPyBeginAllowThreads();
7110 (arg1)->SetValue(arg2);
7111 wxPyEndAllowThreads(__tstate);
7112 if (PyErr_Occurred()) SWIG_fail;
7113 }
7114 resultobj = SWIG_Py_Void();
7115 return resultobj;
7116 fail:
7117 return NULL;
7118 }
7119
7120
7121 SWIGINTERN PyObject *_wrap_Gauge_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7122 PyObject *resultobj = 0;
7123 wxGauge *arg1 = (wxGauge *) 0 ;
7124 int result;
7125 void *argp1 = 0 ;
7126 int res1 = 0 ;
7127 PyObject *swig_obj[1] ;
7128
7129 if (!args) SWIG_fail;
7130 swig_obj[0] = args;
7131 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7132 if (!SWIG_IsOK(res1)) {
7133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetValue" "', expected argument " "1"" of type '" "wxGauge const *""'");
7134 }
7135 arg1 = reinterpret_cast< wxGauge * >(argp1);
7136 {
7137 PyThreadState* __tstate = wxPyBeginAllowThreads();
7138 result = (int)((wxGauge const *)arg1)->GetValue();
7139 wxPyEndAllowThreads(__tstate);
7140 if (PyErr_Occurred()) SWIG_fail;
7141 }
7142 resultobj = SWIG_From_int(static_cast< int >(result));
7143 return resultobj;
7144 fail:
7145 return NULL;
7146 }
7147
7148
7149 SWIGINTERN PyObject *_wrap_Gauge_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7150 PyObject *resultobj = 0;
7151 wxGauge *arg1 = (wxGauge *) 0 ;
7152 bool result;
7153 void *argp1 = 0 ;
7154 int res1 = 0 ;
7155 PyObject *swig_obj[1] ;
7156
7157 if (!args) SWIG_fail;
7158 swig_obj[0] = args;
7159 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7160 if (!SWIG_IsOK(res1)) {
7161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_IsVertical" "', expected argument " "1"" of type '" "wxGauge const *""'");
7162 }
7163 arg1 = reinterpret_cast< wxGauge * >(argp1);
7164 {
7165 PyThreadState* __tstate = wxPyBeginAllowThreads();
7166 result = (bool)((wxGauge const *)arg1)->IsVertical();
7167 wxPyEndAllowThreads(__tstate);
7168 if (PyErr_Occurred()) SWIG_fail;
7169 }
7170 {
7171 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7172 }
7173 return resultobj;
7174 fail:
7175 return NULL;
7176 }
7177
7178
7179 SWIGINTERN PyObject *_wrap_Gauge_SetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7180 PyObject *resultobj = 0;
7181 wxGauge *arg1 = (wxGauge *) 0 ;
7182 int arg2 ;
7183 void *argp1 = 0 ;
7184 int res1 = 0 ;
7185 int val2 ;
7186 int ecode2 = 0 ;
7187 PyObject * obj0 = 0 ;
7188 PyObject * obj1 = 0 ;
7189 char * kwnames[] = {
7190 (char *) "self",(char *) "w", NULL
7191 };
7192
7193 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7194 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7195 if (!SWIG_IsOK(res1)) {
7196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetShadowWidth" "', expected argument " "1"" of type '" "wxGauge *""'");
7197 }
7198 arg1 = reinterpret_cast< wxGauge * >(argp1);
7199 ecode2 = SWIG_AsVal_int(obj1, &val2);
7200 if (!SWIG_IsOK(ecode2)) {
7201 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetShadowWidth" "', expected argument " "2"" of type '" "int""'");
7202 }
7203 arg2 = static_cast< int >(val2);
7204 {
7205 PyThreadState* __tstate = wxPyBeginAllowThreads();
7206 (arg1)->SetShadowWidth(arg2);
7207 wxPyEndAllowThreads(__tstate);
7208 if (PyErr_Occurred()) SWIG_fail;
7209 }
7210 resultobj = SWIG_Py_Void();
7211 return resultobj;
7212 fail:
7213 return NULL;
7214 }
7215
7216
7217 SWIGINTERN PyObject *_wrap_Gauge_GetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7218 PyObject *resultobj = 0;
7219 wxGauge *arg1 = (wxGauge *) 0 ;
7220 int result;
7221 void *argp1 = 0 ;
7222 int res1 = 0 ;
7223 PyObject *swig_obj[1] ;
7224
7225 if (!args) SWIG_fail;
7226 swig_obj[0] = args;
7227 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7228 if (!SWIG_IsOK(res1)) {
7229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetShadowWidth" "', expected argument " "1"" of type '" "wxGauge const *""'");
7230 }
7231 arg1 = reinterpret_cast< wxGauge * >(argp1);
7232 {
7233 PyThreadState* __tstate = wxPyBeginAllowThreads();
7234 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
7235 wxPyEndAllowThreads(__tstate);
7236 if (PyErr_Occurred()) SWIG_fail;
7237 }
7238 resultobj = SWIG_From_int(static_cast< int >(result));
7239 return resultobj;
7240 fail:
7241 return NULL;
7242 }
7243
7244
7245 SWIGINTERN PyObject *_wrap_Gauge_SetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7246 PyObject *resultobj = 0;
7247 wxGauge *arg1 = (wxGauge *) 0 ;
7248 int arg2 ;
7249 void *argp1 = 0 ;
7250 int res1 = 0 ;
7251 int val2 ;
7252 int ecode2 = 0 ;
7253 PyObject * obj0 = 0 ;
7254 PyObject * obj1 = 0 ;
7255 char * kwnames[] = {
7256 (char *) "self",(char *) "w", NULL
7257 };
7258
7259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) SWIG_fail;
7260 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7261 if (!SWIG_IsOK(res1)) {
7262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetBezelFace" "', expected argument " "1"" of type '" "wxGauge *""'");
7263 }
7264 arg1 = reinterpret_cast< wxGauge * >(argp1);
7265 ecode2 = SWIG_AsVal_int(obj1, &val2);
7266 if (!SWIG_IsOK(ecode2)) {
7267 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetBezelFace" "', expected argument " "2"" of type '" "int""'");
7268 }
7269 arg2 = static_cast< int >(val2);
7270 {
7271 PyThreadState* __tstate = wxPyBeginAllowThreads();
7272 (arg1)->SetBezelFace(arg2);
7273 wxPyEndAllowThreads(__tstate);
7274 if (PyErr_Occurred()) SWIG_fail;
7275 }
7276 resultobj = SWIG_Py_Void();
7277 return resultobj;
7278 fail:
7279 return NULL;
7280 }
7281
7282
7283 SWIGINTERN PyObject *_wrap_Gauge_GetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7284 PyObject *resultobj = 0;
7285 wxGauge *arg1 = (wxGauge *) 0 ;
7286 int result;
7287 void *argp1 = 0 ;
7288 int res1 = 0 ;
7289 PyObject *swig_obj[1] ;
7290
7291 if (!args) SWIG_fail;
7292 swig_obj[0] = args;
7293 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7294 if (!SWIG_IsOK(res1)) {
7295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetBezelFace" "', expected argument " "1"" of type '" "wxGauge const *""'");
7296 }
7297 arg1 = reinterpret_cast< wxGauge * >(argp1);
7298 {
7299 PyThreadState* __tstate = wxPyBeginAllowThreads();
7300 result = (int)((wxGauge const *)arg1)->GetBezelFace();
7301 wxPyEndAllowThreads(__tstate);
7302 if (PyErr_Occurred()) SWIG_fail;
7303 }
7304 resultobj = SWIG_From_int(static_cast< int >(result));
7305 return resultobj;
7306 fail:
7307 return NULL;
7308 }
7309
7310
7311 SWIGINTERN PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7312 PyObject *resultobj = 0;
7313 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7314 SwigValueWrapper<wxVisualAttributes > result;
7315 int val1 ;
7316 int ecode1 = 0 ;
7317 PyObject * obj0 = 0 ;
7318 char * kwnames[] = {
7319 (char *) "variant", NULL
7320 };
7321
7322 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7323 if (obj0) {
7324 ecode1 = SWIG_AsVal_int(obj0, &val1);
7325 if (!SWIG_IsOK(ecode1)) {
7326 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Gauge_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7327 }
7328 arg1 = static_cast< wxWindowVariant >(val1);
7329 }
7330 {
7331 if (!wxPyCheckForApp()) SWIG_fail;
7332 PyThreadState* __tstate = wxPyBeginAllowThreads();
7333 result = wxGauge::GetClassDefaultAttributes(arg1);
7334 wxPyEndAllowThreads(__tstate);
7335 if (PyErr_Occurred()) SWIG_fail;
7336 }
7337 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7338 return resultobj;
7339 fail:
7340 return NULL;
7341 }
7342
7343
7344 SWIGINTERN PyObject *Gauge_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7345 PyObject *obj;
7346 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7347 SWIG_TypeNewClientData(SWIGTYPE_p_wxGauge, SWIG_NewClientData(obj));
7348 return SWIG_Py_Void();
7349 }
7350
7351 SWIGINTERN PyObject *Gauge_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7352 return SWIG_Python_InitShadowInstance(args);
7353 }
7354
7355 SWIGINTERN int StaticBitmapNameStr_set(PyObject *) {
7356 SWIG_Error(SWIG_AttributeError,"Variable StaticBitmapNameStr is read-only.");
7357 return 1;
7358 }
7359
7360
7361 SWIGINTERN PyObject *StaticBitmapNameStr_get(void) {
7362 PyObject *pyobj = 0;
7363
7364 {
7365 #if wxUSE_UNICODE
7366 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7367 #else
7368 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7369 #endif
7370 }
7371 return pyobj;
7372 }
7373
7374
7375 SWIGINTERN int StaticBoxNameStr_set(PyObject *) {
7376 SWIG_Error(SWIG_AttributeError,"Variable StaticBoxNameStr is read-only.");
7377 return 1;
7378 }
7379
7380
7381 SWIGINTERN PyObject *StaticBoxNameStr_get(void) {
7382 PyObject *pyobj = 0;
7383
7384 {
7385 #if wxUSE_UNICODE
7386 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7387 #else
7388 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7389 #endif
7390 }
7391 return pyobj;
7392 }
7393
7394
7395 SWIGINTERN int StaticTextNameStr_set(PyObject *) {
7396 SWIG_Error(SWIG_AttributeError,"Variable StaticTextNameStr is read-only.");
7397 return 1;
7398 }
7399
7400
7401 SWIGINTERN PyObject *StaticTextNameStr_get(void) {
7402 PyObject *pyobj = 0;
7403
7404 {
7405 #if wxUSE_UNICODE
7406 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7407 #else
7408 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7409 #endif
7410 }
7411 return pyobj;
7412 }
7413
7414
7415 SWIGINTERN PyObject *_wrap_new_StaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7416 PyObject *resultobj = 0;
7417 wxWindow *arg1 = (wxWindow *) 0 ;
7418 int arg2 = (int) -1 ;
7419 wxString const &arg3_defvalue = wxPyEmptyString ;
7420 wxString *arg3 = (wxString *) &arg3_defvalue ;
7421 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7422 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7423 wxSize const &arg5_defvalue = wxDefaultSize ;
7424 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7425 long arg6 = (long) 0 ;
7426 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
7427 wxString *arg7 = (wxString *) &arg7_defvalue ;
7428 wxStaticBox *result = 0 ;
7429 void *argp1 = 0 ;
7430 int res1 = 0 ;
7431 int val2 ;
7432 int ecode2 = 0 ;
7433 bool temp3 = false ;
7434 wxPoint temp4 ;
7435 wxSize temp5 ;
7436 long val6 ;
7437 int ecode6 = 0 ;
7438 bool temp7 = false ;
7439 PyObject * obj0 = 0 ;
7440 PyObject * obj1 = 0 ;
7441 PyObject * obj2 = 0 ;
7442 PyObject * obj3 = 0 ;
7443 PyObject * obj4 = 0 ;
7444 PyObject * obj5 = 0 ;
7445 PyObject * obj6 = 0 ;
7446 char * kwnames[] = {
7447 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7448 };
7449
7450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7452 if (!SWIG_IsOK(res1)) {
7453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBox" "', expected argument " "1"" of type '" "wxWindow *""'");
7454 }
7455 arg1 = reinterpret_cast< wxWindow * >(argp1);
7456 if (obj1) {
7457 ecode2 = SWIG_AsVal_int(obj1, &val2);
7458 if (!SWIG_IsOK(ecode2)) {
7459 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBox" "', expected argument " "2"" of type '" "int""'");
7460 }
7461 arg2 = static_cast< int >(val2);
7462 }
7463 if (obj2) {
7464 {
7465 arg3 = wxString_in_helper(obj2);
7466 if (arg3 == NULL) SWIG_fail;
7467 temp3 = true;
7468 }
7469 }
7470 if (obj3) {
7471 {
7472 arg4 = &temp4;
7473 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7474 }
7475 }
7476 if (obj4) {
7477 {
7478 arg5 = &temp5;
7479 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7480 }
7481 }
7482 if (obj5) {
7483 ecode6 = SWIG_AsVal_long(obj5, &val6);
7484 if (!SWIG_IsOK(ecode6)) {
7485 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBox" "', expected argument " "6"" of type '" "long""'");
7486 }
7487 arg6 = static_cast< long >(val6);
7488 }
7489 if (obj6) {
7490 {
7491 arg7 = wxString_in_helper(obj6);
7492 if (arg7 == NULL) SWIG_fail;
7493 temp7 = true;
7494 }
7495 }
7496 {
7497 if (!wxPyCheckForApp()) SWIG_fail;
7498 PyThreadState* __tstate = wxPyBeginAllowThreads();
7499 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7500 wxPyEndAllowThreads(__tstate);
7501 if (PyErr_Occurred()) SWIG_fail;
7502 }
7503 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_NEW | 0 );
7504 {
7505 if (temp3)
7506 delete arg3;
7507 }
7508 {
7509 if (temp7)
7510 delete arg7;
7511 }
7512 return resultobj;
7513 fail:
7514 {
7515 if (temp3)
7516 delete arg3;
7517 }
7518 {
7519 if (temp7)
7520 delete arg7;
7521 }
7522 return NULL;
7523 }
7524
7525
7526 SWIGINTERN PyObject *_wrap_new_PreStaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7527 PyObject *resultobj = 0;
7528 wxStaticBox *result = 0 ;
7529
7530 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBox",0,0,0)) SWIG_fail;
7531 {
7532 if (!wxPyCheckForApp()) SWIG_fail;
7533 PyThreadState* __tstate = wxPyBeginAllowThreads();
7534 result = (wxStaticBox *)new wxStaticBox();
7535 wxPyEndAllowThreads(__tstate);
7536 if (PyErr_Occurred()) SWIG_fail;
7537 }
7538 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_OWN | 0 );
7539 return resultobj;
7540 fail:
7541 return NULL;
7542 }
7543
7544
7545 SWIGINTERN PyObject *_wrap_StaticBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7546 PyObject *resultobj = 0;
7547 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
7548 wxWindow *arg2 = (wxWindow *) 0 ;
7549 int arg3 = (int) -1 ;
7550 wxString const &arg4_defvalue = wxPyEmptyString ;
7551 wxString *arg4 = (wxString *) &arg4_defvalue ;
7552 wxPoint const &arg5_defvalue = wxDefaultPosition ;
7553 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
7554 wxSize const &arg6_defvalue = wxDefaultSize ;
7555 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
7556 long arg7 = (long) 0 ;
7557 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
7558 wxString *arg8 = (wxString *) &arg8_defvalue ;
7559 bool result;
7560 void *argp1 = 0 ;
7561 int res1 = 0 ;
7562 void *argp2 = 0 ;
7563 int res2 = 0 ;
7564 int val3 ;
7565 int ecode3 = 0 ;
7566 bool temp4 = false ;
7567 wxPoint temp5 ;
7568 wxSize temp6 ;
7569 long val7 ;
7570 int ecode7 = 0 ;
7571 bool temp8 = false ;
7572 PyObject * obj0 = 0 ;
7573 PyObject * obj1 = 0 ;
7574 PyObject * obj2 = 0 ;
7575 PyObject * obj3 = 0 ;
7576 PyObject * obj4 = 0 ;
7577 PyObject * obj5 = 0 ;
7578 PyObject * obj6 = 0 ;
7579 PyObject * obj7 = 0 ;
7580 char * kwnames[] = {
7581 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7582 };
7583
7584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
7585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBox, 0 | 0 );
7586 if (!SWIG_IsOK(res1)) {
7587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBox_Create" "', expected argument " "1"" of type '" "wxStaticBox *""'");
7588 }
7589 arg1 = reinterpret_cast< wxStaticBox * >(argp1);
7590 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7591 if (!SWIG_IsOK(res2)) {
7592 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7593 }
7594 arg2 = reinterpret_cast< wxWindow * >(argp2);
7595 if (obj2) {
7596 ecode3 = SWIG_AsVal_int(obj2, &val3);
7597 if (!SWIG_IsOK(ecode3)) {
7598 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBox_Create" "', expected argument " "3"" of type '" "int""'");
7599 }
7600 arg3 = static_cast< int >(val3);
7601 }
7602 if (obj3) {
7603 {
7604 arg4 = wxString_in_helper(obj3);
7605 if (arg4 == NULL) SWIG_fail;
7606 temp4 = true;
7607 }
7608 }
7609 if (obj4) {
7610 {
7611 arg5 = &temp5;
7612 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
7613 }
7614 }
7615 if (obj5) {
7616 {
7617 arg6 = &temp6;
7618 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
7619 }
7620 }
7621 if (obj6) {
7622 ecode7 = SWIG_AsVal_long(obj6, &val7);
7623 if (!SWIG_IsOK(ecode7)) {
7624 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBox_Create" "', expected argument " "7"" of type '" "long""'");
7625 }
7626 arg7 = static_cast< long >(val7);
7627 }
7628 if (obj7) {
7629 {
7630 arg8 = wxString_in_helper(obj7);
7631 if (arg8 == NULL) SWIG_fail;
7632 temp8 = true;
7633 }
7634 }
7635 {
7636 PyThreadState* __tstate = wxPyBeginAllowThreads();
7637 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
7638 wxPyEndAllowThreads(__tstate);
7639 if (PyErr_Occurred()) SWIG_fail;
7640 }
7641 {
7642 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7643 }
7644 {
7645 if (temp4)
7646 delete arg4;
7647 }
7648 {
7649 if (temp8)
7650 delete arg8;
7651 }
7652 return resultobj;
7653 fail:
7654 {
7655 if (temp4)
7656 delete arg4;
7657 }
7658 {
7659 if (temp8)
7660 delete arg8;
7661 }
7662 return NULL;
7663 }
7664
7665
7666 SWIGINTERN PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7667 PyObject *resultobj = 0;
7668 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7669 SwigValueWrapper<wxVisualAttributes > result;
7670 int val1 ;
7671 int ecode1 = 0 ;
7672 PyObject * obj0 = 0 ;
7673 char * kwnames[] = {
7674 (char *) "variant", NULL
7675 };
7676
7677 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7678 if (obj0) {
7679 ecode1 = SWIG_AsVal_int(obj0, &val1);
7680 if (!SWIG_IsOK(ecode1)) {
7681 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7682 }
7683 arg1 = static_cast< wxWindowVariant >(val1);
7684 }
7685 {
7686 if (!wxPyCheckForApp()) SWIG_fail;
7687 PyThreadState* __tstate = wxPyBeginAllowThreads();
7688 result = wxStaticBox::GetClassDefaultAttributes(arg1);
7689 wxPyEndAllowThreads(__tstate);
7690 if (PyErr_Occurred()) SWIG_fail;
7691 }
7692 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7693 return resultobj;
7694 fail:
7695 return NULL;
7696 }
7697
7698
7699 SWIGINTERN PyObject *StaticBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7700 PyObject *obj;
7701 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7702 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBox, SWIG_NewClientData(obj));
7703 return SWIG_Py_Void();
7704 }
7705
7706 SWIGINTERN PyObject *StaticBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7707 return SWIG_Python_InitShadowInstance(args);
7708 }
7709
7710 SWIGINTERN PyObject *_wrap_new_StaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7711 PyObject *resultobj = 0;
7712 wxWindow *arg1 = (wxWindow *) 0 ;
7713 int arg2 = (int) -1 ;
7714 wxPoint const &arg3_defvalue = wxDefaultPosition ;
7715 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
7716 wxSize const &arg4_defvalue = wxDefaultSize ;
7717 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
7718 long arg5 = (long) wxLI_HORIZONTAL ;
7719 wxString const &arg6_defvalue = wxPyStaticTextNameStr ;
7720 wxString *arg6 = (wxString *) &arg6_defvalue ;
7721 wxStaticLine *result = 0 ;
7722 void *argp1 = 0 ;
7723 int res1 = 0 ;
7724 int val2 ;
7725 int ecode2 = 0 ;
7726 wxPoint temp3 ;
7727 wxSize temp4 ;
7728 long val5 ;
7729 int ecode5 = 0 ;
7730 bool temp6 = false ;
7731 PyObject * obj0 = 0 ;
7732 PyObject * obj1 = 0 ;
7733 PyObject * obj2 = 0 ;
7734 PyObject * obj3 = 0 ;
7735 PyObject * obj4 = 0 ;
7736 PyObject * obj5 = 0 ;
7737 char * kwnames[] = {
7738 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7739 };
7740
7741 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
7742 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7743 if (!SWIG_IsOK(res1)) {
7744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticLine" "', expected argument " "1"" of type '" "wxWindow *""'");
7745 }
7746 arg1 = reinterpret_cast< wxWindow * >(argp1);
7747 if (obj1) {
7748 ecode2 = SWIG_AsVal_int(obj1, &val2);
7749 if (!SWIG_IsOK(ecode2)) {
7750 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticLine" "', expected argument " "2"" of type '" "int""'");
7751 }
7752 arg2 = static_cast< int >(val2);
7753 }
7754 if (obj2) {
7755 {
7756 arg3 = &temp3;
7757 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
7758 }
7759 }
7760 if (obj3) {
7761 {
7762 arg4 = &temp4;
7763 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
7764 }
7765 }
7766 if (obj4) {
7767 ecode5 = SWIG_AsVal_long(obj4, &val5);
7768 if (!SWIG_IsOK(ecode5)) {
7769 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_StaticLine" "', expected argument " "5"" of type '" "long""'");
7770 }
7771 arg5 = static_cast< long >(val5);
7772 }
7773 if (obj5) {
7774 {
7775 arg6 = wxString_in_helper(obj5);
7776 if (arg6 == NULL) SWIG_fail;
7777 temp6 = true;
7778 }
7779 }
7780 {
7781 if (!wxPyCheckForApp()) SWIG_fail;
7782 PyThreadState* __tstate = wxPyBeginAllowThreads();
7783 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
7784 wxPyEndAllowThreads(__tstate);
7785 if (PyErr_Occurred()) SWIG_fail;
7786 }
7787 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_NEW | 0 );
7788 {
7789 if (temp6)
7790 delete arg6;
7791 }
7792 return resultobj;
7793 fail:
7794 {
7795 if (temp6)
7796 delete arg6;
7797 }
7798 return NULL;
7799 }
7800
7801
7802 SWIGINTERN PyObject *_wrap_new_PreStaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7803 PyObject *resultobj = 0;
7804 wxStaticLine *result = 0 ;
7805
7806 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticLine",0,0,0)) SWIG_fail;
7807 {
7808 if (!wxPyCheckForApp()) SWIG_fail;
7809 PyThreadState* __tstate = wxPyBeginAllowThreads();
7810 result = (wxStaticLine *)new wxStaticLine();
7811 wxPyEndAllowThreads(__tstate);
7812 if (PyErr_Occurred()) SWIG_fail;
7813 }
7814 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_OWN | 0 );
7815 return resultobj;
7816 fail:
7817 return NULL;
7818 }
7819
7820
7821 SWIGINTERN PyObject *_wrap_StaticLine_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7822 PyObject *resultobj = 0;
7823 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7824 wxWindow *arg2 = (wxWindow *) 0 ;
7825 int arg3 = (int) -1 ;
7826 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7827 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7828 wxSize const &arg5_defvalue = wxDefaultSize ;
7829 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7830 long arg6 = (long) wxLI_HORIZONTAL ;
7831 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
7832 wxString *arg7 = (wxString *) &arg7_defvalue ;
7833 bool result;
7834 void *argp1 = 0 ;
7835 int res1 = 0 ;
7836 void *argp2 = 0 ;
7837 int res2 = 0 ;
7838 int val3 ;
7839 int ecode3 = 0 ;
7840 wxPoint temp4 ;
7841 wxSize temp5 ;
7842 long val6 ;
7843 int ecode6 = 0 ;
7844 bool temp7 = false ;
7845 PyObject * obj0 = 0 ;
7846 PyObject * obj1 = 0 ;
7847 PyObject * obj2 = 0 ;
7848 PyObject * obj3 = 0 ;
7849 PyObject * obj4 = 0 ;
7850 PyObject * obj5 = 0 ;
7851 PyObject * obj6 = 0 ;
7852 char * kwnames[] = {
7853 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7854 };
7855
7856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7858 if (!SWIG_IsOK(res1)) {
7859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_Create" "', expected argument " "1"" of type '" "wxStaticLine *""'");
7860 }
7861 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7862 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7863 if (!SWIG_IsOK(res2)) {
7864 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticLine_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7865 }
7866 arg2 = reinterpret_cast< wxWindow * >(argp2);
7867 if (obj2) {
7868 ecode3 = SWIG_AsVal_int(obj2, &val3);
7869 if (!SWIG_IsOK(ecode3)) {
7870 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticLine_Create" "', expected argument " "3"" of type '" "int""'");
7871 }
7872 arg3 = static_cast< int >(val3);
7873 }
7874 if (obj3) {
7875 {
7876 arg4 = &temp4;
7877 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7878 }
7879 }
7880 if (obj4) {
7881 {
7882 arg5 = &temp5;
7883 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7884 }
7885 }
7886 if (obj5) {
7887 ecode6 = SWIG_AsVal_long(obj5, &val6);
7888 if (!SWIG_IsOK(ecode6)) {
7889 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "StaticLine_Create" "', expected argument " "6"" of type '" "long""'");
7890 }
7891 arg6 = static_cast< long >(val6);
7892 }
7893 if (obj6) {
7894 {
7895 arg7 = wxString_in_helper(obj6);
7896 if (arg7 == NULL) SWIG_fail;
7897 temp7 = true;
7898 }
7899 }
7900 {
7901 PyThreadState* __tstate = wxPyBeginAllowThreads();
7902 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7903 wxPyEndAllowThreads(__tstate);
7904 if (PyErr_Occurred()) SWIG_fail;
7905 }
7906 {
7907 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7908 }
7909 {
7910 if (temp7)
7911 delete arg7;
7912 }
7913 return resultobj;
7914 fail:
7915 {
7916 if (temp7)
7917 delete arg7;
7918 }
7919 return NULL;
7920 }
7921
7922
7923 SWIGINTERN PyObject *_wrap_StaticLine_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7924 PyObject *resultobj = 0;
7925 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7926 bool result;
7927 void *argp1 = 0 ;
7928 int res1 = 0 ;
7929 PyObject *swig_obj[1] ;
7930
7931 if (!args) SWIG_fail;
7932 swig_obj[0] = args;
7933 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7934 if (!SWIG_IsOK(res1)) {
7935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_IsVertical" "', expected argument " "1"" of type '" "wxStaticLine const *""'");
7936 }
7937 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7938 {
7939 PyThreadState* __tstate = wxPyBeginAllowThreads();
7940 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
7941 wxPyEndAllowThreads(__tstate);
7942 if (PyErr_Occurred()) SWIG_fail;
7943 }
7944 {
7945 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7946 }
7947 return resultobj;
7948 fail:
7949 return NULL;
7950 }
7951
7952
7953 SWIGINTERN PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7954 PyObject *resultobj = 0;
7955 int result;
7956
7957 if (!SWIG_Python_UnpackTuple(args,"StaticLine_GetDefaultSize",0,0,0)) SWIG_fail;
7958 {
7959 PyThreadState* __tstate = wxPyBeginAllowThreads();
7960 result = (int)wxStaticLine::GetDefaultSize();
7961 wxPyEndAllowThreads(__tstate);
7962 if (PyErr_Occurred()) SWIG_fail;
7963 }
7964 resultobj = SWIG_From_int(static_cast< int >(result));
7965 return resultobj;
7966 fail:
7967 return NULL;
7968 }
7969
7970
7971 SWIGINTERN PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7972 PyObject *resultobj = 0;
7973 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7974 SwigValueWrapper<wxVisualAttributes > result;
7975 int val1 ;
7976 int ecode1 = 0 ;
7977 PyObject * obj0 = 0 ;
7978 char * kwnames[] = {
7979 (char *) "variant", NULL
7980 };
7981
7982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7983 if (obj0) {
7984 ecode1 = SWIG_AsVal_int(obj0, &val1);
7985 if (!SWIG_IsOK(ecode1)) {
7986 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticLine_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7987 }
7988 arg1 = static_cast< wxWindowVariant >(val1);
7989 }
7990 {
7991 if (!wxPyCheckForApp()) SWIG_fail;
7992 PyThreadState* __tstate = wxPyBeginAllowThreads();
7993 result = wxStaticLine::GetClassDefaultAttributes(arg1);
7994 wxPyEndAllowThreads(__tstate);
7995 if (PyErr_Occurred()) SWIG_fail;
7996 }
7997 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7998 return resultobj;
7999 fail:
8000 return NULL;
8001 }
8002
8003
8004 SWIGINTERN PyObject *StaticLine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8005 PyObject *obj;
8006 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8007 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticLine, SWIG_NewClientData(obj));
8008 return SWIG_Py_Void();
8009 }
8010
8011 SWIGINTERN PyObject *StaticLine_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8012 return SWIG_Python_InitShadowInstance(args);
8013 }
8014
8015 SWIGINTERN PyObject *_wrap_new_StaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8016 PyObject *resultobj = 0;
8017 wxWindow *arg1 = (wxWindow *) 0 ;
8018 int arg2 = (int) -1 ;
8019 wxString const &arg3_defvalue = wxPyEmptyString ;
8020 wxString *arg3 = (wxString *) &arg3_defvalue ;
8021 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8022 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8023 wxSize const &arg5_defvalue = wxDefaultSize ;
8024 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8025 long arg6 = (long) 0 ;
8026 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
8027 wxString *arg7 = (wxString *) &arg7_defvalue ;
8028 wxStaticText *result = 0 ;
8029 void *argp1 = 0 ;
8030 int res1 = 0 ;
8031 int val2 ;
8032 int ecode2 = 0 ;
8033 bool temp3 = false ;
8034 wxPoint temp4 ;
8035 wxSize temp5 ;
8036 long val6 ;
8037 int ecode6 = 0 ;
8038 bool temp7 = false ;
8039 PyObject * obj0 = 0 ;
8040 PyObject * obj1 = 0 ;
8041 PyObject * obj2 = 0 ;
8042 PyObject * obj3 = 0 ;
8043 PyObject * obj4 = 0 ;
8044 PyObject * obj5 = 0 ;
8045 PyObject * obj6 = 0 ;
8046 char * kwnames[] = {
8047 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8048 };
8049
8050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8052 if (!SWIG_IsOK(res1)) {
8053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticText" "', expected argument " "1"" of type '" "wxWindow *""'");
8054 }
8055 arg1 = reinterpret_cast< wxWindow * >(argp1);
8056 if (obj1) {
8057 ecode2 = SWIG_AsVal_int(obj1, &val2);
8058 if (!SWIG_IsOK(ecode2)) {
8059 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticText" "', expected argument " "2"" of type '" "int""'");
8060 }
8061 arg2 = static_cast< int >(val2);
8062 }
8063 if (obj2) {
8064 {
8065 arg3 = wxString_in_helper(obj2);
8066 if (arg3 == NULL) SWIG_fail;
8067 temp3 = true;
8068 }
8069 }
8070 if (obj3) {
8071 {
8072 arg4 = &temp4;
8073 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8074 }
8075 }
8076 if (obj4) {
8077 {
8078 arg5 = &temp5;
8079 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8080 }
8081 }
8082 if (obj5) {
8083 ecode6 = SWIG_AsVal_long(obj5, &val6);
8084 if (!SWIG_IsOK(ecode6)) {
8085 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticText" "', expected argument " "6"" of type '" "long""'");
8086 }
8087 arg6 = static_cast< long >(val6);
8088 }
8089 if (obj6) {
8090 {
8091 arg7 = wxString_in_helper(obj6);
8092 if (arg7 == NULL) SWIG_fail;
8093 temp7 = true;
8094 }
8095 }
8096 {
8097 if (!wxPyCheckForApp()) SWIG_fail;
8098 PyThreadState* __tstate = wxPyBeginAllowThreads();
8099 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8100 wxPyEndAllowThreads(__tstate);
8101 if (PyErr_Occurred()) SWIG_fail;
8102 }
8103 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_NEW | 0 );
8104 {
8105 if (temp3)
8106 delete arg3;
8107 }
8108 {
8109 if (temp7)
8110 delete arg7;
8111 }
8112 return resultobj;
8113 fail:
8114 {
8115 if (temp3)
8116 delete arg3;
8117 }
8118 {
8119 if (temp7)
8120 delete arg7;
8121 }
8122 return NULL;
8123 }
8124
8125
8126 SWIGINTERN PyObject *_wrap_new_PreStaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8127 PyObject *resultobj = 0;
8128 wxStaticText *result = 0 ;
8129
8130 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticText",0,0,0)) SWIG_fail;
8131 {
8132 if (!wxPyCheckForApp()) SWIG_fail;
8133 PyThreadState* __tstate = wxPyBeginAllowThreads();
8134 result = (wxStaticText *)new wxStaticText();
8135 wxPyEndAllowThreads(__tstate);
8136 if (PyErr_Occurred()) SWIG_fail;
8137 }
8138 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_OWN | 0 );
8139 return resultobj;
8140 fail:
8141 return NULL;
8142 }
8143
8144
8145 SWIGINTERN PyObject *_wrap_StaticText_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8146 PyObject *resultobj = 0;
8147 wxStaticText *arg1 = (wxStaticText *) 0 ;
8148 wxWindow *arg2 = (wxWindow *) 0 ;
8149 int arg3 = (int) -1 ;
8150 wxString const &arg4_defvalue = wxPyEmptyString ;
8151 wxString *arg4 = (wxString *) &arg4_defvalue ;
8152 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8153 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8154 wxSize const &arg6_defvalue = wxDefaultSize ;
8155 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8156 long arg7 = (long) 0 ;
8157 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
8158 wxString *arg8 = (wxString *) &arg8_defvalue ;
8159 bool result;
8160 void *argp1 = 0 ;
8161 int res1 = 0 ;
8162 void *argp2 = 0 ;
8163 int res2 = 0 ;
8164 int val3 ;
8165 int ecode3 = 0 ;
8166 bool temp4 = false ;
8167 wxPoint temp5 ;
8168 wxSize temp6 ;
8169 long val7 ;
8170 int ecode7 = 0 ;
8171 bool temp8 = false ;
8172 PyObject * obj0 = 0 ;
8173 PyObject * obj1 = 0 ;
8174 PyObject * obj2 = 0 ;
8175 PyObject * obj3 = 0 ;
8176 PyObject * obj4 = 0 ;
8177 PyObject * obj5 = 0 ;
8178 PyObject * obj6 = 0 ;
8179 PyObject * obj7 = 0 ;
8180 char * kwnames[] = {
8181 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8182 };
8183
8184 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8185 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8186 if (!SWIG_IsOK(res1)) {
8187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Create" "', expected argument " "1"" of type '" "wxStaticText *""'");
8188 }
8189 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8190 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8191 if (!SWIG_IsOK(res2)) {
8192 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticText_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8193 }
8194 arg2 = reinterpret_cast< wxWindow * >(argp2);
8195 if (obj2) {
8196 ecode3 = SWIG_AsVal_int(obj2, &val3);
8197 if (!SWIG_IsOK(ecode3)) {
8198 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticText_Create" "', expected argument " "3"" of type '" "int""'");
8199 }
8200 arg3 = static_cast< int >(val3);
8201 }
8202 if (obj3) {
8203 {
8204 arg4 = wxString_in_helper(obj3);
8205 if (arg4 == NULL) SWIG_fail;
8206 temp4 = true;
8207 }
8208 }
8209 if (obj4) {
8210 {
8211 arg5 = &temp5;
8212 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8213 }
8214 }
8215 if (obj5) {
8216 {
8217 arg6 = &temp6;
8218 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8219 }
8220 }
8221 if (obj6) {
8222 ecode7 = SWIG_AsVal_long(obj6, &val7);
8223 if (!SWIG_IsOK(ecode7)) {
8224 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticText_Create" "', expected argument " "7"" of type '" "long""'");
8225 }
8226 arg7 = static_cast< long >(val7);
8227 }
8228 if (obj7) {
8229 {
8230 arg8 = wxString_in_helper(obj7);
8231 if (arg8 == NULL) SWIG_fail;
8232 temp8 = true;
8233 }
8234 }
8235 {
8236 PyThreadState* __tstate = wxPyBeginAllowThreads();
8237 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8238 wxPyEndAllowThreads(__tstate);
8239 if (PyErr_Occurred()) SWIG_fail;
8240 }
8241 {
8242 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8243 }
8244 {
8245 if (temp4)
8246 delete arg4;
8247 }
8248 {
8249 if (temp8)
8250 delete arg8;
8251 }
8252 return resultobj;
8253 fail:
8254 {
8255 if (temp4)
8256 delete arg4;
8257 }
8258 {
8259 if (temp8)
8260 delete arg8;
8261 }
8262 return NULL;
8263 }
8264
8265
8266 SWIGINTERN PyObject *_wrap_StaticText_Wrap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8267 PyObject *resultobj = 0;
8268 wxStaticText *arg1 = (wxStaticText *) 0 ;
8269 int arg2 ;
8270 void *argp1 = 0 ;
8271 int res1 = 0 ;
8272 int val2 ;
8273 int ecode2 = 0 ;
8274 PyObject * obj0 = 0 ;
8275 PyObject * obj1 = 0 ;
8276 char * kwnames[] = {
8277 (char *) "self",(char *) "width", NULL
8278 };
8279
8280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticText_Wrap",kwnames,&obj0,&obj1)) SWIG_fail;
8281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8282 if (!SWIG_IsOK(res1)) {
8283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Wrap" "', expected argument " "1"" of type '" "wxStaticText *""'");
8284 }
8285 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8286 ecode2 = SWIG_AsVal_int(obj1, &val2);
8287 if (!SWIG_IsOK(ecode2)) {
8288 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StaticText_Wrap" "', expected argument " "2"" of type '" "int""'");
8289 }
8290 arg2 = static_cast< int >(val2);
8291 {
8292 PyThreadState* __tstate = wxPyBeginAllowThreads();
8293 (arg1)->Wrap(arg2);
8294 wxPyEndAllowThreads(__tstate);
8295 if (PyErr_Occurred()) SWIG_fail;
8296 }
8297 resultobj = SWIG_Py_Void();
8298 return resultobj;
8299 fail:
8300 return NULL;
8301 }
8302
8303
8304 SWIGINTERN PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8305 PyObject *resultobj = 0;
8306 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8307 SwigValueWrapper<wxVisualAttributes > result;
8308 int val1 ;
8309 int ecode1 = 0 ;
8310 PyObject * obj0 = 0 ;
8311 char * kwnames[] = {
8312 (char *) "variant", NULL
8313 };
8314
8315 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8316 if (obj0) {
8317 ecode1 = SWIG_AsVal_int(obj0, &val1);
8318 if (!SWIG_IsOK(ecode1)) {
8319 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticText_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8320 }
8321 arg1 = static_cast< wxWindowVariant >(val1);
8322 }
8323 {
8324 if (!wxPyCheckForApp()) SWIG_fail;
8325 PyThreadState* __tstate = wxPyBeginAllowThreads();
8326 result = wxStaticText::GetClassDefaultAttributes(arg1);
8327 wxPyEndAllowThreads(__tstate);
8328 if (PyErr_Occurred()) SWIG_fail;
8329 }
8330 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8331 return resultobj;
8332 fail:
8333 return NULL;
8334 }
8335
8336
8337 SWIGINTERN PyObject *StaticText_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8338 PyObject *obj;
8339 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8340 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticText, SWIG_NewClientData(obj));
8341 return SWIG_Py_Void();
8342 }
8343
8344 SWIGINTERN PyObject *StaticText_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8345 return SWIG_Python_InitShadowInstance(args);
8346 }
8347
8348 SWIGINTERN PyObject *_wrap_new_StaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8349 PyObject *resultobj = 0;
8350 wxWindow *arg1 = (wxWindow *) 0 ;
8351 int arg2 = (int) -1 ;
8352 wxBitmap const &arg3_defvalue = wxNullBitmap ;
8353 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
8354 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8355 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8356 wxSize const &arg5_defvalue = wxDefaultSize ;
8357 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8358 long arg6 = (long) 0 ;
8359 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
8360 wxString *arg7 = (wxString *) &arg7_defvalue ;
8361 wxStaticBitmap *result = 0 ;
8362 void *argp1 = 0 ;
8363 int res1 = 0 ;
8364 int val2 ;
8365 int ecode2 = 0 ;
8366 void *argp3 = 0 ;
8367 int res3 = 0 ;
8368 wxPoint temp4 ;
8369 wxSize temp5 ;
8370 long val6 ;
8371 int ecode6 = 0 ;
8372 bool temp7 = false ;
8373 PyObject * obj0 = 0 ;
8374 PyObject * obj1 = 0 ;
8375 PyObject * obj2 = 0 ;
8376 PyObject * obj3 = 0 ;
8377 PyObject * obj4 = 0 ;
8378 PyObject * obj5 = 0 ;
8379 PyObject * obj6 = 0 ;
8380 char * kwnames[] = {
8381 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8382 };
8383
8384 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8385 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8386 if (!SWIG_IsOK(res1)) {
8387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBitmap" "', expected argument " "1"" of type '" "wxWindow *""'");
8388 }
8389 arg1 = reinterpret_cast< wxWindow * >(argp1);
8390 if (obj1) {
8391 ecode2 = SWIG_AsVal_int(obj1, &val2);
8392 if (!SWIG_IsOK(ecode2)) {
8393 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBitmap" "', expected argument " "2"" of type '" "int""'");
8394 }
8395 arg2 = static_cast< int >(val2);
8396 }
8397 if (obj2) {
8398 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
8399 if (!SWIG_IsOK(res3)) {
8400 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8401 }
8402 if (!argp3) {
8403 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8404 }
8405 arg3 = reinterpret_cast< wxBitmap * >(argp3);
8406 }
8407 if (obj3) {
8408 {
8409 arg4 = &temp4;
8410 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8411 }
8412 }
8413 if (obj4) {
8414 {
8415 arg5 = &temp5;
8416 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8417 }
8418 }
8419 if (obj5) {
8420 ecode6 = SWIG_AsVal_long(obj5, &val6);
8421 if (!SWIG_IsOK(ecode6)) {
8422 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBitmap" "', expected argument " "6"" of type '" "long""'");
8423 }
8424 arg6 = static_cast< long >(val6);
8425 }
8426 if (obj6) {
8427 {
8428 arg7 = wxString_in_helper(obj6);
8429 if (arg7 == NULL) SWIG_fail;
8430 temp7 = true;
8431 }
8432 }
8433 {
8434 if (!wxPyCheckForApp()) SWIG_fail;
8435 PyThreadState* __tstate = wxPyBeginAllowThreads();
8436 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8437 wxPyEndAllowThreads(__tstate);
8438 if (PyErr_Occurred()) SWIG_fail;
8439 }
8440 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_NEW | 0 );
8441 {
8442 if (temp7)
8443 delete arg7;
8444 }
8445 return resultobj;
8446 fail:
8447 {
8448 if (temp7)
8449 delete arg7;
8450 }
8451 return NULL;
8452 }
8453
8454
8455 SWIGINTERN PyObject *_wrap_new_PreStaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8456 PyObject *resultobj = 0;
8457 wxStaticBitmap *result = 0 ;
8458
8459 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBitmap",0,0,0)) SWIG_fail;
8460 {
8461 if (!wxPyCheckForApp()) SWIG_fail;
8462 PyThreadState* __tstate = wxPyBeginAllowThreads();
8463 result = (wxStaticBitmap *)new wxStaticBitmap();
8464 wxPyEndAllowThreads(__tstate);
8465 if (PyErr_Occurred()) SWIG_fail;
8466 }
8467 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_OWN | 0 );
8468 return resultobj;
8469 fail:
8470 return NULL;
8471 }
8472
8473
8474 SWIGINTERN PyObject *_wrap_StaticBitmap_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8475 PyObject *resultobj = 0;
8476 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8477 wxWindow *arg2 = (wxWindow *) 0 ;
8478 int arg3 = (int) -1 ;
8479 wxBitmap const &arg4_defvalue = wxNullBitmap ;
8480 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
8481 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8482 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8483 wxSize const &arg6_defvalue = wxDefaultSize ;
8484 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8485 long arg7 = (long) 0 ;
8486 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
8487 wxString *arg8 = (wxString *) &arg8_defvalue ;
8488 bool result;
8489 void *argp1 = 0 ;
8490 int res1 = 0 ;
8491 void *argp2 = 0 ;
8492 int res2 = 0 ;
8493 int val3 ;
8494 int ecode3 = 0 ;
8495 void *argp4 = 0 ;
8496 int res4 = 0 ;
8497 wxPoint temp5 ;
8498 wxSize temp6 ;
8499 long val7 ;
8500 int ecode7 = 0 ;
8501 bool temp8 = false ;
8502 PyObject * obj0 = 0 ;
8503 PyObject * obj1 = 0 ;
8504 PyObject * obj2 = 0 ;
8505 PyObject * obj3 = 0 ;
8506 PyObject * obj4 = 0 ;
8507 PyObject * obj5 = 0 ;
8508 PyObject * obj6 = 0 ;
8509 PyObject * obj7 = 0 ;
8510 char * kwnames[] = {
8511 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8512 };
8513
8514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8516 if (!SWIG_IsOK(res1)) {
8517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_Create" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8518 }
8519 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8520 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8521 if (!SWIG_IsOK(res2)) {
8522 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8523 }
8524 arg2 = reinterpret_cast< wxWindow * >(argp2);
8525 if (obj2) {
8526 ecode3 = SWIG_AsVal_int(obj2, &val3);
8527 if (!SWIG_IsOK(ecode3)) {
8528 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBitmap_Create" "', expected argument " "3"" of type '" "int""'");
8529 }
8530 arg3 = static_cast< int >(val3);
8531 }
8532 if (obj3) {
8533 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
8534 if (!SWIG_IsOK(res4)) {
8535 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8536 }
8537 if (!argp4) {
8538 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8539 }
8540 arg4 = reinterpret_cast< wxBitmap * >(argp4);
8541 }
8542 if (obj4) {
8543 {
8544 arg5 = &temp5;
8545 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8546 }
8547 }
8548 if (obj5) {
8549 {
8550 arg6 = &temp6;
8551 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8552 }
8553 }
8554 if (obj6) {
8555 ecode7 = SWIG_AsVal_long(obj6, &val7);
8556 if (!SWIG_IsOK(ecode7)) {
8557 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBitmap_Create" "', expected argument " "7"" of type '" "long""'");
8558 }
8559 arg7 = static_cast< long >(val7);
8560 }
8561 if (obj7) {
8562 {
8563 arg8 = wxString_in_helper(obj7);
8564 if (arg8 == NULL) SWIG_fail;
8565 temp8 = true;
8566 }
8567 }
8568 {
8569 PyThreadState* __tstate = wxPyBeginAllowThreads();
8570 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8571 wxPyEndAllowThreads(__tstate);
8572 if (PyErr_Occurred()) SWIG_fail;
8573 }
8574 {
8575 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8576 }
8577 {
8578 if (temp8)
8579 delete arg8;
8580 }
8581 return resultobj;
8582 fail:
8583 {
8584 if (temp8)
8585 delete arg8;
8586 }
8587 return NULL;
8588 }
8589
8590
8591 SWIGINTERN PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8592 PyObject *resultobj = 0;
8593 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8594 wxBitmap result;
8595 void *argp1 = 0 ;
8596 int res1 = 0 ;
8597 PyObject *swig_obj[1] ;
8598
8599 if (!args) SWIG_fail;
8600 swig_obj[0] = args;
8601 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8602 if (!SWIG_IsOK(res1)) {
8603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_GetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8604 }
8605 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8606 {
8607 PyThreadState* __tstate = wxPyBeginAllowThreads();
8608 result = (arg1)->GetBitmap();
8609 wxPyEndAllowThreads(__tstate);
8610 if (PyErr_Occurred()) SWIG_fail;
8611 }
8612 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8613 return resultobj;
8614 fail:
8615 return NULL;
8616 }
8617
8618
8619 SWIGINTERN PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8620 PyObject *resultobj = 0;
8621 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8622 wxBitmap *arg2 = 0 ;
8623 void *argp1 = 0 ;
8624 int res1 = 0 ;
8625 void *argp2 = 0 ;
8626 int res2 = 0 ;
8627 PyObject * obj0 = 0 ;
8628 PyObject * obj1 = 0 ;
8629 char * kwnames[] = {
8630 (char *) "self",(char *) "bitmap", NULL
8631 };
8632
8633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
8634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8635 if (!SWIG_IsOK(res1)) {
8636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8637 }
8638 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8639 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8640 if (!SWIG_IsOK(res2)) {
8641 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8642 }
8643 if (!argp2) {
8644 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8645 }
8646 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8647 {
8648 PyThreadState* __tstate = wxPyBeginAllowThreads();
8649 (arg1)->SetBitmap((wxBitmap const &)*arg2);
8650 wxPyEndAllowThreads(__tstate);
8651 if (PyErr_Occurred()) SWIG_fail;
8652 }
8653 resultobj = SWIG_Py_Void();
8654 return resultobj;
8655 fail:
8656 return NULL;
8657 }
8658
8659
8660 SWIGINTERN PyObject *_wrap_StaticBitmap_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8661 PyObject *resultobj = 0;
8662 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8663 wxIcon *arg2 = 0 ;
8664 void *argp1 = 0 ;
8665 int res1 = 0 ;
8666 void *argp2 = 0 ;
8667 int res2 = 0 ;
8668 PyObject * obj0 = 0 ;
8669 PyObject * obj1 = 0 ;
8670 char * kwnames[] = {
8671 (char *) "self",(char *) "icon", NULL
8672 };
8673
8674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
8675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8676 if (!SWIG_IsOK(res1)) {
8677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetIcon" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8678 }
8679 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8680 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
8681 if (!SWIG_IsOK(res2)) {
8682 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8683 }
8684 if (!argp2) {
8685 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8686 }
8687 arg2 = reinterpret_cast< wxIcon * >(argp2);
8688 {
8689 PyThreadState* __tstate = wxPyBeginAllowThreads();
8690 (arg1)->SetIcon((wxIcon const &)*arg2);
8691 wxPyEndAllowThreads(__tstate);
8692 if (PyErr_Occurred()) SWIG_fail;
8693 }
8694 resultobj = SWIG_Py_Void();
8695 return resultobj;
8696 fail:
8697 return NULL;
8698 }
8699
8700
8701 SWIGINTERN PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8702 PyObject *resultobj = 0;
8703 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8704 SwigValueWrapper<wxVisualAttributes > result;
8705 int val1 ;
8706 int ecode1 = 0 ;
8707 PyObject * obj0 = 0 ;
8708 char * kwnames[] = {
8709 (char *) "variant", NULL
8710 };
8711
8712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8713 if (obj0) {
8714 ecode1 = SWIG_AsVal_int(obj0, &val1);
8715 if (!SWIG_IsOK(ecode1)) {
8716 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBitmap_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8717 }
8718 arg1 = static_cast< wxWindowVariant >(val1);
8719 }
8720 {
8721 if (!wxPyCheckForApp()) SWIG_fail;
8722 PyThreadState* __tstate = wxPyBeginAllowThreads();
8723 result = wxStaticBitmap::GetClassDefaultAttributes(arg1);
8724 wxPyEndAllowThreads(__tstate);
8725 if (PyErr_Occurred()) SWIG_fail;
8726 }
8727 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8728 return resultobj;
8729 fail:
8730 return NULL;
8731 }
8732
8733
8734 SWIGINTERN PyObject *StaticBitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8735 PyObject *obj;
8736 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8737 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBitmap, SWIG_NewClientData(obj));
8738 return SWIG_Py_Void();
8739 }
8740
8741 SWIGINTERN PyObject *StaticBitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8742 return SWIG_Python_InitShadowInstance(args);
8743 }
8744
8745 SWIGINTERN int ListBoxNameStr_set(PyObject *) {
8746 SWIG_Error(SWIG_AttributeError,"Variable ListBoxNameStr is read-only.");
8747 return 1;
8748 }
8749
8750
8751 SWIGINTERN PyObject *ListBoxNameStr_get(void) {
8752 PyObject *pyobj = 0;
8753
8754 {
8755 #if wxUSE_UNICODE
8756 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8757 #else
8758 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8759 #endif
8760 }
8761 return pyobj;
8762 }
8763
8764
8765 SWIGINTERN PyObject *_wrap_new_ListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8766 PyObject *resultobj = 0;
8767 wxWindow *arg1 = (wxWindow *) 0 ;
8768 int arg2 = (int) -1 ;
8769 wxPoint const &arg3_defvalue = wxDefaultPosition ;
8770 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
8771 wxSize const &arg4_defvalue = wxDefaultSize ;
8772 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
8773 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
8774 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
8775 long arg6 = (long) 0 ;
8776 wxValidator const &arg7_defvalue = wxDefaultValidator ;
8777 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
8778 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
8779 wxString *arg8 = (wxString *) &arg8_defvalue ;
8780 wxListBox *result = 0 ;
8781 void *argp1 = 0 ;
8782 int res1 = 0 ;
8783 int val2 ;
8784 int ecode2 = 0 ;
8785 wxPoint temp3 ;
8786 wxSize temp4 ;
8787 bool temp5 = false ;
8788 long val6 ;
8789 int ecode6 = 0 ;
8790 void *argp7 = 0 ;
8791 int res7 = 0 ;
8792 bool temp8 = false ;
8793 PyObject * obj0 = 0 ;
8794 PyObject * obj1 = 0 ;
8795 PyObject * obj2 = 0 ;
8796 PyObject * obj3 = 0 ;
8797 PyObject * obj4 = 0 ;
8798 PyObject * obj5 = 0 ;
8799 PyObject * obj6 = 0 ;
8800 PyObject * obj7 = 0 ;
8801 char * kwnames[] = {
8802 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8803 };
8804
8805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8807 if (!SWIG_IsOK(res1)) {
8808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
8809 }
8810 arg1 = reinterpret_cast< wxWindow * >(argp1);
8811 if (obj1) {
8812 ecode2 = SWIG_AsVal_int(obj1, &val2);
8813 if (!SWIG_IsOK(ecode2)) {
8814 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListBox" "', expected argument " "2"" of type '" "int""'");
8815 }
8816 arg2 = static_cast< int >(val2);
8817 }
8818 if (obj2) {
8819 {
8820 arg3 = &temp3;
8821 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
8822 }
8823 }
8824 if (obj3) {
8825 {
8826 arg4 = &temp4;
8827 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
8828 }
8829 }
8830 if (obj4) {
8831 {
8832 if (! PySequence_Check(obj4)) {
8833 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
8834 SWIG_fail;
8835 }
8836 arg5 = new wxArrayString;
8837 temp5 = true;
8838 int i, len=PySequence_Length(obj4);
8839 for (i=0; i<len; i++) {
8840 PyObject* item = PySequence_GetItem(obj4, i);
8841 wxString* s = wxString_in_helper(item);
8842 if (PyErr_Occurred()) SWIG_fail;
8843 arg5->Add(*s);
8844 delete s;
8845 Py_DECREF(item);
8846 }
8847 }
8848 }
8849 if (obj5) {
8850 ecode6 = SWIG_AsVal_long(obj5, &val6);
8851 if (!SWIG_IsOK(ecode6)) {
8852 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ListBox" "', expected argument " "6"" of type '" "long""'");
8853 }
8854 arg6 = static_cast< long >(val6);
8855 }
8856 if (obj6) {
8857 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
8858 if (!SWIG_IsOK(res7)) {
8859 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
8860 }
8861 if (!argp7) {
8862 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
8863 }
8864 arg7 = reinterpret_cast< wxValidator * >(argp7);
8865 }
8866 if (obj7) {
8867 {
8868 arg8 = wxString_in_helper(obj7);
8869 if (arg8 == NULL) SWIG_fail;
8870 temp8 = true;
8871 }
8872 }
8873 {
8874 if (!wxPyCheckForApp()) SWIG_fail;
8875 PyThreadState* __tstate = wxPyBeginAllowThreads();
8876 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
8877 wxPyEndAllowThreads(__tstate);
8878 if (PyErr_Occurred()) SWIG_fail;
8879 }
8880 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_NEW | 0 );
8881 {
8882 if (temp5) delete arg5;
8883 }
8884 {
8885 if (temp8)
8886 delete arg8;
8887 }
8888 return resultobj;
8889 fail:
8890 {
8891 if (temp5) delete arg5;
8892 }
8893 {
8894 if (temp8)
8895 delete arg8;
8896 }
8897 return NULL;
8898 }
8899
8900
8901 SWIGINTERN PyObject *_wrap_new_PreListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8902 PyObject *resultobj = 0;
8903 wxListBox *result = 0 ;
8904
8905 if (!SWIG_Python_UnpackTuple(args,"new_PreListBox",0,0,0)) SWIG_fail;
8906 {
8907 if (!wxPyCheckForApp()) SWIG_fail;
8908 PyThreadState* __tstate = wxPyBeginAllowThreads();
8909 result = (wxListBox *)new wxListBox();
8910 wxPyEndAllowThreads(__tstate);
8911 if (PyErr_Occurred()) SWIG_fail;
8912 }
8913 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_OWN | 0 );
8914 return resultobj;
8915 fail:
8916 return NULL;
8917 }
8918
8919
8920 SWIGINTERN PyObject *_wrap_ListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8921 PyObject *resultobj = 0;
8922 wxListBox *arg1 = (wxListBox *) 0 ;
8923 wxWindow *arg2 = (wxWindow *) 0 ;
8924 int arg3 = (int) -1 ;
8925 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8926 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8927 wxSize const &arg5_defvalue = wxDefaultSize ;
8928 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8929 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
8930 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
8931 long arg7 = (long) 0 ;
8932 wxValidator const &arg8_defvalue = wxDefaultValidator ;
8933 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
8934 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
8935 wxString *arg9 = (wxString *) &arg9_defvalue ;
8936 bool result;
8937 void *argp1 = 0 ;
8938 int res1 = 0 ;
8939 void *argp2 = 0 ;
8940 int res2 = 0 ;
8941 int val3 ;
8942 int ecode3 = 0 ;
8943 wxPoint temp4 ;
8944 wxSize temp5 ;
8945 bool temp6 = false ;
8946 long val7 ;
8947 int ecode7 = 0 ;
8948 void *argp8 = 0 ;
8949 int res8 = 0 ;
8950 bool temp9 = false ;
8951 PyObject * obj0 = 0 ;
8952 PyObject * obj1 = 0 ;
8953 PyObject * obj2 = 0 ;
8954 PyObject * obj3 = 0 ;
8955 PyObject * obj4 = 0 ;
8956 PyObject * obj5 = 0 ;
8957 PyObject * obj6 = 0 ;
8958 PyObject * obj7 = 0 ;
8959 PyObject * obj8 = 0 ;
8960 char * kwnames[] = {
8961 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8962 };
8963
8964 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
8965 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
8966 if (!SWIG_IsOK(res1)) {
8967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Create" "', expected argument " "1"" of type '" "wxListBox *""'");
8968 }
8969 arg1 = reinterpret_cast< wxListBox * >(argp1);
8970 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8971 if (!SWIG_IsOK(res2)) {
8972 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8973 }
8974 arg2 = reinterpret_cast< wxWindow * >(argp2);
8975 if (obj2) {
8976 ecode3 = SWIG_AsVal_int(obj2, &val3);
8977 if (!SWIG_IsOK(ecode3)) {
8978 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Create" "', expected argument " "3"" of type '" "int""'");
8979 }
8980 arg3 = static_cast< int >(val3);
8981 }
8982 if (obj3) {
8983 {
8984 arg4 = &temp4;
8985 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8986 }
8987 }
8988 if (obj4) {
8989 {
8990 arg5 = &temp5;
8991 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8992 }
8993 }
8994 if (obj5) {
8995 {
8996 if (! PySequence_Check(obj5)) {
8997 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
8998 SWIG_fail;
8999 }
9000 arg6 = new wxArrayString;
9001 temp6 = true;
9002 int i, len=PySequence_Length(obj5);
9003 for (i=0; i<len; i++) {
9004 PyObject* item = PySequence_GetItem(obj5, i);
9005 wxString* s = wxString_in_helper(item);
9006 if (PyErr_Occurred()) SWIG_fail;
9007 arg6->Add(*s);
9008 delete s;
9009 Py_DECREF(item);
9010 }
9011 }
9012 }
9013 if (obj6) {
9014 ecode7 = SWIG_AsVal_long(obj6, &val7);
9015 if (!SWIG_IsOK(ecode7)) {
9016 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ListBox_Create" "', expected argument " "7"" of type '" "long""'");
9017 }
9018 arg7 = static_cast< long >(val7);
9019 }
9020 if (obj7) {
9021 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
9022 if (!SWIG_IsOK(res8)) {
9023 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
9024 }
9025 if (!argp8) {
9026 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
9027 }
9028 arg8 = reinterpret_cast< wxValidator * >(argp8);
9029 }
9030 if (obj8) {
9031 {
9032 arg9 = wxString_in_helper(obj8);
9033 if (arg9 == NULL) SWIG_fail;
9034 temp9 = true;
9035 }
9036 }
9037 {
9038 PyThreadState* __tstate = wxPyBeginAllowThreads();
9039 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
9040 wxPyEndAllowThreads(__tstate);
9041 if (PyErr_Occurred()) SWIG_fail;
9042 }
9043 {
9044 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9045 }
9046 {
9047 if (temp6) delete arg6;
9048 }
9049 {
9050 if (temp9)
9051 delete arg9;
9052 }
9053 return resultobj;
9054 fail:
9055 {
9056 if (temp6) delete arg6;
9057 }
9058 {
9059 if (temp9)
9060 delete arg9;
9061 }
9062 return NULL;
9063 }
9064
9065
9066 SWIGINTERN PyObject *_wrap_ListBox_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9067 PyObject *resultobj = 0;
9068 wxListBox *arg1 = (wxListBox *) 0 ;
9069 wxString *arg2 = 0 ;
9070 int arg3 ;
9071 PyObject *arg4 = (PyObject *) NULL ;
9072 void *argp1 = 0 ;
9073 int res1 = 0 ;
9074 bool temp2 = false ;
9075 int val3 ;
9076 int ecode3 = 0 ;
9077 PyObject * obj0 = 0 ;
9078 PyObject * obj1 = 0 ;
9079 PyObject * obj2 = 0 ;
9080 PyObject * obj3 = 0 ;
9081 char * kwnames[] = {
9082 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
9083 };
9084
9085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9087 if (!SWIG_IsOK(res1)) {
9088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Insert" "', expected argument " "1"" of type '" "wxListBox *""'");
9089 }
9090 arg1 = reinterpret_cast< wxListBox * >(argp1);
9091 {
9092 arg2 = wxString_in_helper(obj1);
9093 if (arg2 == NULL) SWIG_fail;
9094 temp2 = true;
9095 }
9096 ecode3 = SWIG_AsVal_int(obj2, &val3);
9097 if (!SWIG_IsOK(ecode3)) {
9098 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Insert" "', expected argument " "3"" of type '" "int""'");
9099 }
9100 arg3 = static_cast< int >(val3);
9101 if (obj3) {
9102 arg4 = obj3;
9103 }
9104 {
9105 PyThreadState* __tstate = wxPyBeginAllowThreads();
9106 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
9107 wxPyEndAllowThreads(__tstate);
9108 if (PyErr_Occurred()) SWIG_fail;
9109 }
9110 resultobj = SWIG_Py_Void();
9111 {
9112 if (temp2)
9113 delete arg2;
9114 }
9115 return resultobj;
9116 fail:
9117 {
9118 if (temp2)
9119 delete arg2;
9120 }
9121 return NULL;
9122 }
9123
9124
9125 SWIGINTERN PyObject *_wrap_ListBox_InsertItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9126 PyObject *resultobj = 0;
9127 wxListBox *arg1 = (wxListBox *) 0 ;
9128 wxArrayString *arg2 = 0 ;
9129 unsigned int arg3 ;
9130 void *argp1 = 0 ;
9131 int res1 = 0 ;
9132 bool temp2 = false ;
9133 unsigned int val3 ;
9134 int ecode3 = 0 ;
9135 PyObject * obj0 = 0 ;
9136 PyObject * obj1 = 0 ;
9137 PyObject * obj2 = 0 ;
9138 char * kwnames[] = {
9139 (char *) "self",(char *) "items",(char *) "pos", NULL
9140 };
9141
9142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9144 if (!SWIG_IsOK(res1)) {
9145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_InsertItems" "', expected argument " "1"" of type '" "wxListBox *""'");
9146 }
9147 arg1 = reinterpret_cast< wxListBox * >(argp1);
9148 {
9149 if (! PySequence_Check(obj1)) {
9150 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9151 SWIG_fail;
9152 }
9153 arg2 = new wxArrayString;
9154 temp2 = true;
9155 int i, len=PySequence_Length(obj1);
9156 for (i=0; i<len; i++) {
9157 PyObject* item = PySequence_GetItem(obj1, i);
9158 wxString* s = wxString_in_helper(item);
9159 if (PyErr_Occurred()) SWIG_fail;
9160 arg2->Add(*s);
9161 delete s;
9162 Py_DECREF(item);
9163 }
9164 }
9165 ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
9166 if (!SWIG_IsOK(ecode3)) {
9167 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_InsertItems" "', expected argument " "3"" of type '" "unsigned int""'");
9168 }
9169 arg3 = static_cast< unsigned int >(val3);
9170 {
9171 PyThreadState* __tstate = wxPyBeginAllowThreads();
9172 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
9173 wxPyEndAllowThreads(__tstate);
9174 if (PyErr_Occurred()) SWIG_fail;
9175 }
9176 resultobj = SWIG_Py_Void();
9177 {
9178 if (temp2) delete arg2;
9179 }
9180 return resultobj;
9181 fail:
9182 {
9183 if (temp2) delete arg2;
9184 }
9185 return NULL;
9186 }
9187
9188
9189 SWIGINTERN PyObject *_wrap_ListBox_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9190 PyObject *resultobj = 0;
9191 wxListBox *arg1 = (wxListBox *) 0 ;
9192 wxArrayString *arg2 = 0 ;
9193 void *argp1 = 0 ;
9194 int res1 = 0 ;
9195 bool temp2 = false ;
9196 PyObject * obj0 = 0 ;
9197 PyObject * obj1 = 0 ;
9198 char * kwnames[] = {
9199 (char *) "self",(char *) "items", NULL
9200 };
9201
9202 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) SWIG_fail;
9203 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9204 if (!SWIG_IsOK(res1)) {
9205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Set" "', expected argument " "1"" of type '" "wxListBox *""'");
9206 }
9207 arg1 = reinterpret_cast< wxListBox * >(argp1);
9208 {
9209 if (! PySequence_Check(obj1)) {
9210 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9211 SWIG_fail;
9212 }
9213 arg2 = new wxArrayString;
9214 temp2 = true;
9215 int i, len=PySequence_Length(obj1);
9216 for (i=0; i<len; i++) {
9217 PyObject* item = PySequence_GetItem(obj1, i);
9218 wxString* s = wxString_in_helper(item);
9219 if (PyErr_Occurred()) SWIG_fail;
9220 arg2->Add(*s);
9221 delete s;
9222 Py_DECREF(item);
9223 }
9224 }
9225 {
9226 PyThreadState* __tstate = wxPyBeginAllowThreads();
9227 (arg1)->Set((wxArrayString const &)*arg2);
9228 wxPyEndAllowThreads(__tstate);
9229 if (PyErr_Occurred()) SWIG_fail;
9230 }
9231 resultobj = SWIG_Py_Void();
9232 {
9233 if (temp2) delete arg2;
9234 }
9235 return resultobj;
9236 fail:
9237 {
9238 if (temp2) delete arg2;
9239 }
9240 return NULL;
9241 }
9242
9243
9244 SWIGINTERN PyObject *_wrap_ListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9245 PyObject *resultobj = 0;
9246 wxListBox *arg1 = (wxListBox *) 0 ;
9247 int arg2 ;
9248 bool result;
9249 void *argp1 = 0 ;
9250 int res1 = 0 ;
9251 int val2 ;
9252 int ecode2 = 0 ;
9253 PyObject * obj0 = 0 ;
9254 PyObject * obj1 = 0 ;
9255 char * kwnames[] = {
9256 (char *) "self",(char *) "n", NULL
9257 };
9258
9259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
9260 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9261 if (!SWIG_IsOK(res1)) {
9262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSelected" "', expected argument " "1"" of type '" "wxListBox const *""'");
9263 }
9264 arg1 = reinterpret_cast< wxListBox * >(argp1);
9265 ecode2 = SWIG_AsVal_int(obj1, &val2);
9266 if (!SWIG_IsOK(ecode2)) {
9267 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_IsSelected" "', expected argument " "2"" of type '" "int""'");
9268 }
9269 arg2 = static_cast< int >(val2);
9270 {
9271 PyThreadState* __tstate = wxPyBeginAllowThreads();
9272 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
9273 wxPyEndAllowThreads(__tstate);
9274 if (PyErr_Occurred()) SWIG_fail;
9275 }
9276 {
9277 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9278 }
9279 return resultobj;
9280 fail:
9281 return NULL;
9282 }
9283
9284
9285 SWIGINTERN PyObject *_wrap_ListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9286 PyObject *resultobj = 0;
9287 wxListBox *arg1 = (wxListBox *) 0 ;
9288 int arg2 ;
9289 bool arg3 = (bool) true ;
9290 void *argp1 = 0 ;
9291 int res1 = 0 ;
9292 int val2 ;
9293 int ecode2 = 0 ;
9294 bool val3 ;
9295 int ecode3 = 0 ;
9296 PyObject * obj0 = 0 ;
9297 PyObject * obj1 = 0 ;
9298 PyObject * obj2 = 0 ;
9299 char * kwnames[] = {
9300 (char *) "self",(char *) "n",(char *) "select", NULL
9301 };
9302
9303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9305 if (!SWIG_IsOK(res1)) {
9306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9307 }
9308 arg1 = reinterpret_cast< wxListBox * >(argp1);
9309 ecode2 = SWIG_AsVal_int(obj1, &val2);
9310 if (!SWIG_IsOK(ecode2)) {
9311 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
9312 }
9313 arg2 = static_cast< int >(val2);
9314 if (obj2) {
9315 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9316 if (!SWIG_IsOK(ecode3)) {
9317 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetSelection" "', expected argument " "3"" of type '" "bool""'");
9318 }
9319 arg3 = static_cast< bool >(val3);
9320 }
9321 {
9322 PyThreadState* __tstate = wxPyBeginAllowThreads();
9323 (arg1)->SetSelection(arg2,arg3);
9324 wxPyEndAllowThreads(__tstate);
9325 if (PyErr_Occurred()) SWIG_fail;
9326 }
9327 resultobj = SWIG_Py_Void();
9328 return resultobj;
9329 fail:
9330 return NULL;
9331 }
9332
9333
9334 SWIGINTERN PyObject *_wrap_ListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9335 PyObject *resultobj = 0;
9336 wxListBox *arg1 = (wxListBox *) 0 ;
9337 int arg2 ;
9338 void *argp1 = 0 ;
9339 int res1 = 0 ;
9340 int val2 ;
9341 int ecode2 = 0 ;
9342 PyObject * obj0 = 0 ;
9343 PyObject * obj1 = 0 ;
9344 char * kwnames[] = {
9345 (char *) "self",(char *) "n", NULL
9346 };
9347
9348 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) SWIG_fail;
9349 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9350 if (!SWIG_IsOK(res1)) {
9351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Select" "', expected argument " "1"" of type '" "wxListBox *""'");
9352 }
9353 arg1 = reinterpret_cast< wxListBox * >(argp1);
9354 ecode2 = SWIG_AsVal_int(obj1, &val2);
9355 if (!SWIG_IsOK(ecode2)) {
9356 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Select" "', expected argument " "2"" of type '" "int""'");
9357 }
9358 arg2 = static_cast< int >(val2);
9359 {
9360 PyThreadState* __tstate = wxPyBeginAllowThreads();
9361 (arg1)->Select(arg2);
9362 wxPyEndAllowThreads(__tstate);
9363 if (PyErr_Occurred()) SWIG_fail;
9364 }
9365 resultobj = SWIG_Py_Void();
9366 return resultobj;
9367 fail:
9368 return NULL;
9369 }
9370
9371
9372 SWIGINTERN PyObject *_wrap_ListBox_Deselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9373 PyObject *resultobj = 0;
9374 wxListBox *arg1 = (wxListBox *) 0 ;
9375 int arg2 ;
9376 void *argp1 = 0 ;
9377 int res1 = 0 ;
9378 int val2 ;
9379 int ecode2 = 0 ;
9380 PyObject * obj0 = 0 ;
9381 PyObject * obj1 = 0 ;
9382 char * kwnames[] = {
9383 (char *) "self",(char *) "n", NULL
9384 };
9385
9386 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) SWIG_fail;
9387 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9388 if (!SWIG_IsOK(res1)) {
9389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Deselect" "', expected argument " "1"" of type '" "wxListBox *""'");
9390 }
9391 arg1 = reinterpret_cast< wxListBox * >(argp1);
9392 ecode2 = SWIG_AsVal_int(obj1, &val2);
9393 if (!SWIG_IsOK(ecode2)) {
9394 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Deselect" "', expected argument " "2"" of type '" "int""'");
9395 }
9396 arg2 = static_cast< int >(val2);
9397 {
9398 PyThreadState* __tstate = wxPyBeginAllowThreads();
9399 (arg1)->Deselect(arg2);
9400 wxPyEndAllowThreads(__tstate);
9401 if (PyErr_Occurred()) SWIG_fail;
9402 }
9403 resultobj = SWIG_Py_Void();
9404 return resultobj;
9405 fail:
9406 return NULL;
9407 }
9408
9409
9410 SWIGINTERN PyObject *_wrap_ListBox_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9411 PyObject *resultobj = 0;
9412 wxListBox *arg1 = (wxListBox *) 0 ;
9413 int arg2 = (int) -1 ;
9414 void *argp1 = 0 ;
9415 int res1 = 0 ;
9416 int val2 ;
9417 int ecode2 = 0 ;
9418 PyObject * obj0 = 0 ;
9419 PyObject * obj1 = 0 ;
9420 char * kwnames[] = {
9421 (char *) "self",(char *) "itemToLeaveSelected", NULL
9422 };
9423
9424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) SWIG_fail;
9425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9426 if (!SWIG_IsOK(res1)) {
9427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_DeselectAll" "', expected argument " "1"" of type '" "wxListBox *""'");
9428 }
9429 arg1 = reinterpret_cast< wxListBox * >(argp1);
9430 if (obj1) {
9431 ecode2 = SWIG_AsVal_int(obj1, &val2);
9432 if (!SWIG_IsOK(ecode2)) {
9433 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_DeselectAll" "', expected argument " "2"" of type '" "int""'");
9434 }
9435 arg2 = static_cast< int >(val2);
9436 }
9437 {
9438 PyThreadState* __tstate = wxPyBeginAllowThreads();
9439 (arg1)->DeselectAll(arg2);
9440 wxPyEndAllowThreads(__tstate);
9441 if (PyErr_Occurred()) SWIG_fail;
9442 }
9443 resultobj = SWIG_Py_Void();
9444 return resultobj;
9445 fail:
9446 return NULL;
9447 }
9448
9449
9450 SWIGINTERN PyObject *_wrap_ListBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9451 PyObject *resultobj = 0;
9452 wxListBox *arg1 = (wxListBox *) 0 ;
9453 wxString *arg2 = 0 ;
9454 bool arg3 = (bool) true ;
9455 bool result;
9456 void *argp1 = 0 ;
9457 int res1 = 0 ;
9458 bool temp2 = false ;
9459 bool val3 ;
9460 int ecode3 = 0 ;
9461 PyObject * obj0 = 0 ;
9462 PyObject * obj1 = 0 ;
9463 PyObject * obj2 = 0 ;
9464 char * kwnames[] = {
9465 (char *) "self",(char *) "s",(char *) "select", NULL
9466 };
9467
9468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9469 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9470 if (!SWIG_IsOK(res1)) {
9471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetStringSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9472 }
9473 arg1 = reinterpret_cast< wxListBox * >(argp1);
9474 {
9475 arg2 = wxString_in_helper(obj1);
9476 if (arg2 == NULL) SWIG_fail;
9477 temp2 = true;
9478 }
9479 if (obj2) {
9480 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9481 if (!SWIG_IsOK(ecode3)) {
9482 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetStringSelection" "', expected argument " "3"" of type '" "bool""'");
9483 }
9484 arg3 = static_cast< bool >(val3);
9485 }
9486 {
9487 PyThreadState* __tstate = wxPyBeginAllowThreads();
9488 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
9489 wxPyEndAllowThreads(__tstate);
9490 if (PyErr_Occurred()) SWIG_fail;
9491 }
9492 {
9493 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9494 }
9495 {
9496 if (temp2)
9497 delete arg2;
9498 }
9499 return resultobj;
9500 fail:
9501 {
9502 if (temp2)
9503 delete arg2;
9504 }
9505 return NULL;
9506 }
9507
9508
9509 SWIGINTERN PyObject *_wrap_ListBox_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9510 PyObject *resultobj = 0;
9511 wxListBox *arg1 = (wxListBox *) 0 ;
9512 PyObject *result = 0 ;
9513 void *argp1 = 0 ;
9514 int res1 = 0 ;
9515 PyObject *swig_obj[1] ;
9516
9517 if (!args) SWIG_fail;
9518 swig_obj[0] = args;
9519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9520 if (!SWIG_IsOK(res1)) {
9521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_GetSelections" "', expected argument " "1"" of type '" "wxListBox *""'");
9522 }
9523 arg1 = reinterpret_cast< wxListBox * >(argp1);
9524 {
9525 PyThreadState* __tstate = wxPyBeginAllowThreads();
9526 result = (PyObject *)wxListBox_GetSelections(arg1);
9527 wxPyEndAllowThreads(__tstate);
9528 if (PyErr_Occurred()) SWIG_fail;
9529 }
9530 resultobj = result;
9531 return resultobj;
9532 fail:
9533 return NULL;
9534 }
9535
9536
9537 SWIGINTERN PyObject *_wrap_ListBox_SetFirstItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9538 PyObject *resultobj = 0;
9539 wxListBox *arg1 = (wxListBox *) 0 ;
9540 int arg2 ;
9541 void *argp1 = 0 ;
9542 int res1 = 0 ;
9543 int val2 ;
9544 int ecode2 = 0 ;
9545 PyObject * obj0 = 0 ;
9546 PyObject * obj1 = 0 ;
9547 char * kwnames[] = {
9548 (char *) "self",(char *) "n", NULL
9549 };
9550
9551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) SWIG_fail;
9552 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9553 if (!SWIG_IsOK(res1)) {
9554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItem" "', expected argument " "1"" of type '" "wxListBox *""'");
9555 }
9556 arg1 = reinterpret_cast< wxListBox * >(argp1);
9557 ecode2 = SWIG_AsVal_int(obj1, &val2);
9558 if (!SWIG_IsOK(ecode2)) {
9559 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetFirstItem" "', expected argument " "2"" of type '" "int""'");
9560 }
9561 arg2 = static_cast< int >(val2);
9562 {
9563 PyThreadState* __tstate = wxPyBeginAllowThreads();
9564 (arg1)->SetFirstItem(arg2);
9565 wxPyEndAllowThreads(__tstate);
9566 if (PyErr_Occurred()) SWIG_fail;
9567 }
9568 resultobj = SWIG_Py_Void();
9569 return resultobj;
9570 fail:
9571 return NULL;
9572 }
9573
9574
9575 SWIGINTERN PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9576 PyObject *resultobj = 0;
9577 wxListBox *arg1 = (wxListBox *) 0 ;
9578 wxString *arg2 = 0 ;
9579 void *argp1 = 0 ;
9580 int res1 = 0 ;
9581 bool temp2 = false ;
9582 PyObject * obj0 = 0 ;
9583 PyObject * obj1 = 0 ;
9584 char * kwnames[] = {
9585 (char *) "self",(char *) "s", NULL
9586 };
9587
9588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) SWIG_fail;
9589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9590 if (!SWIG_IsOK(res1)) {
9591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItemStr" "', expected argument " "1"" of type '" "wxListBox *""'");
9592 }
9593 arg1 = reinterpret_cast< wxListBox * >(argp1);
9594 {
9595 arg2 = wxString_in_helper(obj1);
9596 if (arg2 == NULL) SWIG_fail;
9597 temp2 = true;
9598 }
9599 {
9600 PyThreadState* __tstate = wxPyBeginAllowThreads();
9601 (arg1)->SetFirstItem((wxString const &)*arg2);
9602 wxPyEndAllowThreads(__tstate);
9603 if (PyErr_Occurred()) SWIG_fail;
9604 }
9605 resultobj = SWIG_Py_Void();
9606 {
9607 if (temp2)
9608 delete arg2;
9609 }
9610 return resultobj;
9611 fail:
9612 {
9613 if (temp2)
9614 delete arg2;
9615 }
9616 return NULL;
9617 }
9618
9619
9620 SWIGINTERN PyObject *_wrap_ListBox_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9621 PyObject *resultobj = 0;
9622 wxListBox *arg1 = (wxListBox *) 0 ;
9623 int arg2 ;
9624 void *argp1 = 0 ;
9625 int res1 = 0 ;
9626 int val2 ;
9627 int ecode2 = 0 ;
9628 PyObject * obj0 = 0 ;
9629 PyObject * obj1 = 0 ;
9630 char * kwnames[] = {
9631 (char *) "self",(char *) "n", NULL
9632 };
9633
9634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9636 if (!SWIG_IsOK(res1)) {
9637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_EnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9638 }
9639 arg1 = reinterpret_cast< wxListBox * >(argp1);
9640 ecode2 = SWIG_AsVal_int(obj1, &val2);
9641 if (!SWIG_IsOK(ecode2)) {
9642 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_EnsureVisible" "', expected argument " "2"" of type '" "int""'");
9643 }
9644 arg2 = static_cast< int >(val2);
9645 {
9646 PyThreadState* __tstate = wxPyBeginAllowThreads();
9647 (arg1)->EnsureVisible(arg2);
9648 wxPyEndAllowThreads(__tstate);
9649 if (PyErr_Occurred()) SWIG_fail;
9650 }
9651 resultobj = SWIG_Py_Void();
9652 return resultobj;
9653 fail:
9654 return NULL;
9655 }
9656
9657
9658 SWIGINTERN PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9659 PyObject *resultobj = 0;
9660 wxListBox *arg1 = (wxListBox *) 0 ;
9661 wxString *arg2 = 0 ;
9662 void *argp1 = 0 ;
9663 int res1 = 0 ;
9664 bool temp2 = false ;
9665 PyObject * obj0 = 0 ;
9666 PyObject * obj1 = 0 ;
9667 char * kwnames[] = {
9668 (char *) "self",(char *) "s", NULL
9669 };
9670
9671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9672 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9673 if (!SWIG_IsOK(res1)) {
9674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_AppendAndEnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9675 }
9676 arg1 = reinterpret_cast< wxListBox * >(argp1);
9677 {
9678 arg2 = wxString_in_helper(obj1);
9679 if (arg2 == NULL) SWIG_fail;
9680 temp2 = true;
9681 }
9682 {
9683 PyThreadState* __tstate = wxPyBeginAllowThreads();
9684 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
9685 wxPyEndAllowThreads(__tstate);
9686 if (PyErr_Occurred()) SWIG_fail;
9687 }
9688 resultobj = SWIG_Py_Void();
9689 {
9690 if (temp2)
9691 delete arg2;
9692 }
9693 return resultobj;
9694 fail:
9695 {
9696 if (temp2)
9697 delete arg2;
9698 }
9699 return NULL;
9700 }
9701
9702
9703 SWIGINTERN PyObject *_wrap_ListBox_IsSorted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9704 PyObject *resultobj = 0;
9705 wxListBox *arg1 = (wxListBox *) 0 ;
9706 bool result;
9707 void *argp1 = 0 ;
9708 int res1 = 0 ;
9709 PyObject *swig_obj[1] ;
9710
9711 if (!args) SWIG_fail;
9712 swig_obj[0] = args;
9713 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9714 if (!SWIG_IsOK(res1)) {
9715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSorted" "', expected argument " "1"" of type '" "wxListBox const *""'");
9716 }
9717 arg1 = reinterpret_cast< wxListBox * >(argp1);
9718 {
9719 PyThreadState* __tstate = wxPyBeginAllowThreads();
9720 result = (bool)((wxListBox const *)arg1)->IsSorted();
9721 wxPyEndAllowThreads(__tstate);
9722 if (PyErr_Occurred()) SWIG_fail;
9723 }
9724 {
9725 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9726 }
9727 return resultobj;
9728 fail:
9729 return NULL;
9730 }
9731
9732
9733 SWIGINTERN PyObject *_wrap_ListBox_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9734 PyObject *resultobj = 0;
9735 wxListBox *arg1 = (wxListBox *) 0 ;
9736 wxPoint *arg2 = 0 ;
9737 int result;
9738 void *argp1 = 0 ;
9739 int res1 = 0 ;
9740 wxPoint temp2 ;
9741 PyObject * obj0 = 0 ;
9742 PyObject * obj1 = 0 ;
9743 char * kwnames[] = {
9744 (char *) "self",(char *) "pt", NULL
9745 };
9746
9747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
9748 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9749 if (!SWIG_IsOK(res1)) {
9750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_HitTest" "', expected argument " "1"" of type '" "wxListBox const *""'");
9751 }
9752 arg1 = reinterpret_cast< wxListBox * >(argp1);
9753 {
9754 arg2 = &temp2;
9755 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9756 }
9757 {
9758 PyThreadState* __tstate = wxPyBeginAllowThreads();
9759 result = (int)((wxListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
9760 wxPyEndAllowThreads(__tstate);
9761 if (PyErr_Occurred()) SWIG_fail;
9762 }
9763 resultobj = SWIG_From_int(static_cast< int >(result));
9764 return resultobj;
9765 fail:
9766 return NULL;
9767 }
9768
9769
9770 SWIGINTERN PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9771 PyObject *resultobj = 0;
9772 wxListBox *arg1 = (wxListBox *) 0 ;
9773 int arg2 ;
9774 wxColour *arg3 = 0 ;
9775 void *argp1 = 0 ;
9776 int res1 = 0 ;
9777 int val2 ;
9778 int ecode2 = 0 ;
9779 wxColour temp3 ;
9780 PyObject * obj0 = 0 ;
9781 PyObject * obj1 = 0 ;
9782 PyObject * obj2 = 0 ;
9783 char * kwnames[] = {
9784 (char *) "self",(char *) "item",(char *) "c", NULL
9785 };
9786
9787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9789 if (!SWIG_IsOK(res1)) {
9790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9791 }
9792 arg1 = reinterpret_cast< wxListBox * >(argp1);
9793 ecode2 = SWIG_AsVal_int(obj1, &val2);
9794 if (!SWIG_IsOK(ecode2)) {
9795 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "2"" of type '" "int""'");
9796 }
9797 arg2 = static_cast< int >(val2);
9798 {
9799 arg3 = &temp3;
9800 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9801 }
9802 {
9803 PyThreadState* __tstate = wxPyBeginAllowThreads();
9804 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
9805 wxPyEndAllowThreads(__tstate);
9806 if (PyErr_Occurred()) SWIG_fail;
9807 }
9808 resultobj = SWIG_Py_Void();
9809 return resultobj;
9810 fail:
9811 return NULL;
9812 }
9813
9814
9815 SWIGINTERN PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9816 PyObject *resultobj = 0;
9817 wxListBox *arg1 = (wxListBox *) 0 ;
9818 int arg2 ;
9819 wxColour *arg3 = 0 ;
9820 void *argp1 = 0 ;
9821 int res1 = 0 ;
9822 int val2 ;
9823 int ecode2 = 0 ;
9824 wxColour temp3 ;
9825 PyObject * obj0 = 0 ;
9826 PyObject * obj1 = 0 ;
9827 PyObject * obj2 = 0 ;
9828 char * kwnames[] = {
9829 (char *) "self",(char *) "item",(char *) "c", NULL
9830 };
9831
9832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9833 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9834 if (!SWIG_IsOK(res1)) {
9835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9836 }
9837 arg1 = reinterpret_cast< wxListBox * >(argp1);
9838 ecode2 = SWIG_AsVal_int(obj1, &val2);
9839 if (!SWIG_IsOK(ecode2)) {
9840 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "2"" of type '" "int""'");
9841 }
9842 arg2 = static_cast< int >(val2);
9843 {
9844 arg3 = &temp3;
9845 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9846 }
9847 {
9848 PyThreadState* __tstate = wxPyBeginAllowThreads();
9849 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
9850 wxPyEndAllowThreads(__tstate);
9851 if (PyErr_Occurred()) SWIG_fail;
9852 }
9853 resultobj = SWIG_Py_Void();
9854 return resultobj;
9855 fail:
9856 return NULL;
9857 }
9858
9859
9860 SWIGINTERN PyObject *_wrap_ListBox_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9861 PyObject *resultobj = 0;
9862 wxListBox *arg1 = (wxListBox *) 0 ;
9863 int arg2 ;
9864 wxFont *arg3 = 0 ;
9865 void *argp1 = 0 ;
9866 int res1 = 0 ;
9867 int val2 ;
9868 int ecode2 = 0 ;
9869 void *argp3 = 0 ;
9870 int res3 = 0 ;
9871 PyObject * obj0 = 0 ;
9872 PyObject * obj1 = 0 ;
9873 PyObject * obj2 = 0 ;
9874 char * kwnames[] = {
9875 (char *) "self",(char *) "item",(char *) "f", NULL
9876 };
9877
9878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9880 if (!SWIG_IsOK(res1)) {
9881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemFont" "', expected argument " "1"" of type '" "wxListBox *""'");
9882 }
9883 arg1 = reinterpret_cast< wxListBox * >(argp1);
9884 ecode2 = SWIG_AsVal_int(obj1, &val2);
9885 if (!SWIG_IsOK(ecode2)) {
9886 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemFont" "', expected argument " "2"" of type '" "int""'");
9887 }
9888 arg2 = static_cast< int >(val2);
9889 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
9890 if (!SWIG_IsOK(res3)) {
9891 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9892 }
9893 if (!argp3) {
9894 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9895 }
9896 arg3 = reinterpret_cast< wxFont * >(argp3);
9897 {
9898 PyThreadState* __tstate = wxPyBeginAllowThreads();
9899 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
9900 wxPyEndAllowThreads(__tstate);
9901 if (PyErr_Occurred()) SWIG_fail;
9902 }
9903 resultobj = SWIG_Py_Void();
9904 return resultobj;
9905 fail:
9906 return NULL;
9907 }
9908
9909
9910 SWIGINTERN PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9911 PyObject *resultobj = 0;
9912 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
9913 SwigValueWrapper<wxVisualAttributes > result;
9914 int val1 ;
9915 int ecode1 = 0 ;
9916 PyObject * obj0 = 0 ;
9917 char * kwnames[] = {
9918 (char *) "variant", NULL
9919 };
9920
9921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
9922 if (obj0) {
9923 ecode1 = SWIG_AsVal_int(obj0, &val1);
9924 if (!SWIG_IsOK(ecode1)) {
9925 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
9926 }
9927 arg1 = static_cast< wxWindowVariant >(val1);
9928 }
9929 {
9930 if (!wxPyCheckForApp()) SWIG_fail;
9931 PyThreadState* __tstate = wxPyBeginAllowThreads();
9932 result = wxListBox::GetClassDefaultAttributes(arg1);
9933 wxPyEndAllowThreads(__tstate);
9934 if (PyErr_Occurred()) SWIG_fail;
9935 }
9936 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
9937 return resultobj;
9938 fail:
9939 return NULL;
9940 }
9941
9942
9943 SWIGINTERN PyObject *ListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9944 PyObject *obj;
9945 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9946 SWIG_TypeNewClientData(SWIGTYPE_p_wxListBox, SWIG_NewClientData(obj));
9947 return SWIG_Py_Void();
9948 }
9949
9950 SWIGINTERN PyObject *ListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9951 return SWIG_Python_InitShadowInstance(args);
9952 }
9953
9954 SWIGINTERN PyObject *_wrap_new_CheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9955 PyObject *resultobj = 0;
9956 wxWindow *arg1 = (wxWindow *) 0 ;
9957 int arg2 = (int) -1 ;
9958 wxPoint const &arg3_defvalue = wxDefaultPosition ;
9959 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
9960 wxSize const &arg4_defvalue = wxDefaultSize ;
9961 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
9962 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
9963 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
9964 long arg6 = (long) 0 ;
9965 wxValidator const &arg7_defvalue = wxDefaultValidator ;
9966 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
9967 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
9968 wxString *arg8 = (wxString *) &arg8_defvalue ;
9969 wxCheckListBox *result = 0 ;
9970 void *argp1 = 0 ;
9971 int res1 = 0 ;
9972 int val2 ;
9973 int ecode2 = 0 ;
9974 wxPoint temp3 ;
9975 wxSize temp4 ;
9976 bool temp5 = false ;
9977 long val6 ;
9978 int ecode6 = 0 ;
9979 void *argp7 = 0 ;
9980 int res7 = 0 ;
9981 bool temp8 = false ;
9982 PyObject * obj0 = 0 ;
9983 PyObject * obj1 = 0 ;
9984 PyObject * obj2 = 0 ;
9985 PyObject * obj3 = 0 ;
9986 PyObject * obj4 = 0 ;
9987 PyObject * obj5 = 0 ;
9988 PyObject * obj6 = 0 ;
9989 PyObject * obj7 = 0 ;
9990 char * kwnames[] = {
9991 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
9992 };
9993
9994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
9995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
9996 if (!SWIG_IsOK(res1)) {
9997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
9998 }
9999 arg1 = reinterpret_cast< wxWindow * >(argp1);
10000 if (obj1) {
10001 ecode2 = SWIG_AsVal_int(obj1, &val2);
10002 if (!SWIG_IsOK(ecode2)) {
10003 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckListBox" "', expected argument " "2"" of type '" "int""'");
10004 }
10005 arg2 = static_cast< int >(val2);
10006 }
10007 if (obj2) {
10008 {
10009 arg3 = &temp3;
10010 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10011 }
10012 }
10013 if (obj3) {
10014 {
10015 arg4 = &temp4;
10016 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
10017 }
10018 }
10019 if (obj4) {
10020 {
10021 if (! PySequence_Check(obj4)) {
10022 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10023 SWIG_fail;
10024 }
10025 arg5 = new wxArrayString;
10026 temp5 = true;
10027 int i, len=PySequence_Length(obj4);
10028 for (i=0; i<len; i++) {
10029 PyObject* item = PySequence_GetItem(obj4, i);
10030 wxString* s = wxString_in_helper(item);
10031 if (PyErr_Occurred()) SWIG_fail;
10032 arg5->Add(*s);
10033 delete s;
10034 Py_DECREF(item);
10035 }
10036 }
10037 }
10038 if (obj5) {
10039 ecode6 = SWIG_AsVal_long(obj5, &val6);
10040 if (!SWIG_IsOK(ecode6)) {
10041 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckListBox" "', expected argument " "6"" of type '" "long""'");
10042 }
10043 arg6 = static_cast< long >(val6);
10044 }
10045 if (obj6) {
10046 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
10047 if (!SWIG_IsOK(res7)) {
10048 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
10049 }
10050 if (!argp7) {
10051 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
10052 }
10053 arg7 = reinterpret_cast< wxValidator * >(argp7);
10054 }
10055 if (obj7) {
10056 {
10057 arg8 = wxString_in_helper(obj7);
10058 if (arg8 == NULL) SWIG_fail;
10059 temp8 = true;
10060 }
10061 }
10062 {
10063 if (!wxPyCheckForApp()) SWIG_fail;
10064 PyThreadState* __tstate = wxPyBeginAllowThreads();
10065 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10066 wxPyEndAllowThreads(__tstate);
10067 if (PyErr_Occurred()) SWIG_fail;
10068 }
10069 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_NEW | 0 );
10070 {
10071 if (temp5) delete arg5;
10072 }
10073 {
10074 if (temp8)
10075 delete arg8;
10076 }
10077 return resultobj;
10078 fail:
10079 {
10080 if (temp5) delete arg5;
10081 }
10082 {
10083 if (temp8)
10084 delete arg8;
10085 }
10086 return NULL;
10087 }
10088
10089
10090 SWIGINTERN PyObject *_wrap_new_PreCheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10091 PyObject *resultobj = 0;
10092 wxCheckListBox *result = 0 ;
10093
10094 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckListBox",0,0,0)) SWIG_fail;
10095 {
10096 if (!wxPyCheckForApp()) SWIG_fail;
10097 PyThreadState* __tstate = wxPyBeginAllowThreads();
10098 result = (wxCheckListBox *)new wxCheckListBox();
10099 wxPyEndAllowThreads(__tstate);
10100 if (PyErr_Occurred()) SWIG_fail;
10101 }
10102 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_OWN | 0 );
10103 return resultobj;
10104 fail:
10105 return NULL;
10106 }
10107
10108
10109 SWIGINTERN PyObject *_wrap_CheckListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10110 PyObject *resultobj = 0;
10111 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10112 wxWindow *arg2 = (wxWindow *) 0 ;
10113 int arg3 = (int) -1 ;
10114 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10115 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10116 wxSize const &arg5_defvalue = wxDefaultSize ;
10117 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10118 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
10119 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
10120 long arg7 = (long) 0 ;
10121 wxValidator const &arg8_defvalue = wxDefaultValidator ;
10122 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
10123 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
10124 wxString *arg9 = (wxString *) &arg9_defvalue ;
10125 bool result;
10126 void *argp1 = 0 ;
10127 int res1 = 0 ;
10128 void *argp2 = 0 ;
10129 int res2 = 0 ;
10130 int val3 ;
10131 int ecode3 = 0 ;
10132 wxPoint temp4 ;
10133 wxSize temp5 ;
10134 bool temp6 = false ;
10135 long val7 ;
10136 int ecode7 = 0 ;
10137 void *argp8 = 0 ;
10138 int res8 = 0 ;
10139 bool temp9 = false ;
10140 PyObject * obj0 = 0 ;
10141 PyObject * obj1 = 0 ;
10142 PyObject * obj2 = 0 ;
10143 PyObject * obj3 = 0 ;
10144 PyObject * obj4 = 0 ;
10145 PyObject * obj5 = 0 ;
10146 PyObject * obj6 = 0 ;
10147 PyObject * obj7 = 0 ;
10148 PyObject * obj8 = 0 ;
10149 char * kwnames[] = {
10150 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10151 };
10152
10153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
10154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10155 if (!SWIG_IsOK(res1)) {
10156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Create" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10157 }
10158 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10159 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
10160 if (!SWIG_IsOK(res2)) {
10161 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
10162 }
10163 arg2 = reinterpret_cast< wxWindow * >(argp2);
10164 if (obj2) {
10165 ecode3 = SWIG_AsVal_int(obj2, &val3);
10166 if (!SWIG_IsOK(ecode3)) {
10167 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Create" "', expected argument " "3"" of type '" "int""'");
10168 }
10169 arg3 = static_cast< int >(val3);
10170 }
10171 if (obj3) {
10172 {
10173 arg4 = &temp4;
10174 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10175 }
10176 }
10177 if (obj4) {
10178 {
10179 arg5 = &temp5;
10180 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10181 }
10182 }
10183 if (obj5) {
10184 {
10185 if (! PySequence_Check(obj5)) {
10186 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10187 SWIG_fail;
10188 }
10189 arg6 = new wxArrayString;
10190 temp6 = true;
10191 int i, len=PySequence_Length(obj5);
10192 for (i=0; i<len; i++) {
10193 PyObject* item = PySequence_GetItem(obj5, i);
10194 wxString* s = wxString_in_helper(item);
10195 if (PyErr_Occurred()) SWIG_fail;
10196 arg6->Add(*s);
10197 delete s;
10198 Py_DECREF(item);
10199 }
10200 }
10201 }
10202 if (obj6) {
10203 ecode7 = SWIG_AsVal_long(obj6, &val7);
10204 if (!SWIG_IsOK(ecode7)) {
10205 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckListBox_Create" "', expected argument " "7"" of type '" "long""'");
10206 }
10207 arg7 = static_cast< long >(val7);
10208 }
10209 if (obj7) {
10210 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
10211 if (!SWIG_IsOK(res8)) {
10212 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10213 }
10214 if (!argp8) {
10215 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10216 }
10217 arg8 = reinterpret_cast< wxValidator * >(argp8);
10218 }
10219 if (obj8) {
10220 {
10221 arg9 = wxString_in_helper(obj8);
10222 if (arg9 == NULL) SWIG_fail;
10223 temp9 = true;
10224 }
10225 }
10226 {
10227 PyThreadState* __tstate = wxPyBeginAllowThreads();
10228 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
10229 wxPyEndAllowThreads(__tstate);
10230 if (PyErr_Occurred()) SWIG_fail;
10231 }
10232 {
10233 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10234 }
10235 {
10236 if (temp6) delete arg6;
10237 }
10238 {
10239 if (temp9)
10240 delete arg9;
10241 }
10242 return resultobj;
10243 fail:
10244 {
10245 if (temp6) delete arg6;
10246 }
10247 {
10248 if (temp9)
10249 delete arg9;
10250 }
10251 return NULL;
10252 }
10253
10254
10255 SWIGINTERN PyObject *_wrap_CheckListBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10256 PyObject *resultobj = 0;
10257 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10258 unsigned int arg2 ;
10259 bool result;
10260 void *argp1 = 0 ;
10261 int res1 = 0 ;
10262 unsigned int val2 ;
10263 int ecode2 = 0 ;
10264 PyObject * obj0 = 0 ;
10265 PyObject * obj1 = 0 ;
10266 char * kwnames[] = {
10267 (char *) "self",(char *) "index", NULL
10268 };
10269
10270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) SWIG_fail;
10271 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10272 if (!SWIG_IsOK(res1)) {
10273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10274 }
10275 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10276 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
10277 if (!SWIG_IsOK(ecode2)) {
10278 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_IsChecked" "', expected argument " "2"" of type '" "unsigned int""'");
10279 }
10280 arg2 = static_cast< unsigned int >(val2);
10281 {
10282 PyThreadState* __tstate = wxPyBeginAllowThreads();
10283 result = (bool)(arg1)->IsChecked(arg2);
10284 wxPyEndAllowThreads(__tstate);
10285 if (PyErr_Occurred()) SWIG_fail;
10286 }
10287 {
10288 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10289 }
10290 return resultobj;
10291 fail:
10292 return NULL;
10293 }
10294
10295
10296 SWIGINTERN PyObject *_wrap_CheckListBox_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10297 PyObject *resultobj = 0;
10298 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10299 unsigned int arg2 ;
10300 int arg3 = (int) true ;
10301 void *argp1 = 0 ;
10302 int res1 = 0 ;
10303 unsigned int val2 ;
10304 int ecode2 = 0 ;
10305 int val3 ;
10306 int ecode3 = 0 ;
10307 PyObject * obj0 = 0 ;
10308 PyObject * obj1 = 0 ;
10309 PyObject * obj2 = 0 ;
10310 char * kwnames[] = {
10311 (char *) "self",(char *) "index",(char *) "check", NULL
10312 };
10313
10314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10316 if (!SWIG_IsOK(res1)) {
10317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Check" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10318 }
10319 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10320 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
10321 if (!SWIG_IsOK(ecode2)) {
10322 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_Check" "', expected argument " "2"" of type '" "unsigned int""'");
10323 }
10324 arg2 = static_cast< unsigned int >(val2);
10325 if (obj2) {
10326 ecode3 = SWIG_AsVal_int(obj2, &val3);
10327 if (!SWIG_IsOK(ecode3)) {
10328 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Check" "', expected argument " "3"" of type '" "int""'");
10329 }
10330 arg3 = static_cast< int >(val3);
10331 }
10332 {
10333 PyThreadState* __tstate = wxPyBeginAllowThreads();
10334 (arg1)->Check(arg2,arg3);
10335 wxPyEndAllowThreads(__tstate);
10336 if (PyErr_Occurred()) SWIG_fail;
10337 }
10338 resultobj = SWIG_Py_Void();
10339 return resultobj;
10340 fail:
10341 return NULL;
10342 }
10343
10344
10345 SWIGINTERN PyObject *CheckListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10346 PyObject *obj;
10347 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10348 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckListBox, SWIG_NewClientData(obj));
10349 return SWIG_Py_Void();
10350 }
10351
10352 SWIGINTERN PyObject *CheckListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10353 return SWIG_Python_InitShadowInstance(args);
10354 }
10355
10356 SWIGINTERN int TextCtrlNameStr_set(PyObject *) {
10357 SWIG_Error(SWIG_AttributeError,"Variable TextCtrlNameStr is read-only.");
10358 return 1;
10359 }
10360
10361
10362 SWIGINTERN PyObject *TextCtrlNameStr_get(void) {
10363 PyObject *pyobj = 0;
10364
10365 {
10366 #if wxUSE_UNICODE
10367 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10368 #else
10369 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10370 #endif
10371 }
10372 return pyobj;
10373 }
10374
10375
10376 SWIGINTERN PyObject *_wrap_new_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10377 PyObject *resultobj = 0;
10378 wxColour const &arg1_defvalue = wxNullColour ;
10379 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
10380 wxColour const &arg2_defvalue = wxNullColour ;
10381 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
10382 wxFont const &arg3_defvalue = wxNullFont ;
10383 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
10384 wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ;
10385 wxTextAttr *result = 0 ;
10386 wxColour temp1 ;
10387 wxColour temp2 ;
10388 void *argp3 = 0 ;
10389 int res3 = 0 ;
10390 int val4 ;
10391 int ecode4 = 0 ;
10392 PyObject * obj0 = 0 ;
10393 PyObject * obj1 = 0 ;
10394 PyObject * obj2 = 0 ;
10395 PyObject * obj3 = 0 ;
10396 char * kwnames[] = {
10397 (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL
10398 };
10399
10400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10401 if (obj0) {
10402 {
10403 arg1 = &temp1;
10404 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
10405 }
10406 }
10407 if (obj1) {
10408 {
10409 arg2 = &temp2;
10410 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10411 }
10412 }
10413 if (obj2) {
10414 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
10415 if (!SWIG_IsOK(res3)) {
10416 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10417 }
10418 if (!argp3) {
10419 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10420 }
10421 arg3 = reinterpret_cast< wxFont * >(argp3);
10422 }
10423 if (obj3) {
10424 ecode4 = SWIG_AsVal_int(obj3, &val4);
10425 if (!SWIG_IsOK(ecode4)) {
10426 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextAttr" "', expected argument " "4"" of type '" "wxTextAttrAlignment""'");
10427 }
10428 arg4 = static_cast< wxTextAttrAlignment >(val4);
10429 }
10430 {
10431 PyThreadState* __tstate = wxPyBeginAllowThreads();
10432 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,arg4);
10433 wxPyEndAllowThreads(__tstate);
10434 if (PyErr_Occurred()) SWIG_fail;
10435 }
10436 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_NEW | 0 );
10437 return resultobj;
10438 fail:
10439 return NULL;
10440 }
10441
10442
10443 SWIGINTERN PyObject *_wrap_delete_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10444 PyObject *resultobj = 0;
10445 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10446 void *argp1 = 0 ;
10447 int res1 = 0 ;
10448 PyObject *swig_obj[1] ;
10449
10450 if (!args) SWIG_fail;
10451 swig_obj[0] = args;
10452 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, SWIG_POINTER_DISOWN | 0 );
10453 if (!SWIG_IsOK(res1)) {
10454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TextAttr" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10455 }
10456 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10457 {
10458 PyThreadState* __tstate = wxPyBeginAllowThreads();
10459 delete arg1;
10460
10461 wxPyEndAllowThreads(__tstate);
10462 if (PyErr_Occurred()) SWIG_fail;
10463 }
10464 resultobj = SWIG_Py_Void();
10465 return resultobj;
10466 fail:
10467 return NULL;
10468 }
10469
10470
10471 SWIGINTERN PyObject *_wrap_TextAttr_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10472 PyObject *resultobj = 0;
10473 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10474 void *argp1 = 0 ;
10475 int res1 = 0 ;
10476 PyObject *swig_obj[1] ;
10477
10478 if (!args) SWIG_fail;
10479 swig_obj[0] = args;
10480 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10481 if (!SWIG_IsOK(res1)) {
10482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Init" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10483 }
10484 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10485 {
10486 PyThreadState* __tstate = wxPyBeginAllowThreads();
10487 (arg1)->Init();
10488 wxPyEndAllowThreads(__tstate);
10489 if (PyErr_Occurred()) SWIG_fail;
10490 }
10491 resultobj = SWIG_Py_Void();
10492 return resultobj;
10493 fail:
10494 return NULL;
10495 }
10496
10497
10498 SWIGINTERN PyObject *_wrap_TextAttr_Merge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10499 PyObject *resultobj = 0;
10500 wxTextAttr *arg1 = 0 ;
10501 wxTextAttr *arg2 = 0 ;
10502 wxTextAttr result;
10503 void *argp1 = 0 ;
10504 int res1 = 0 ;
10505 void *argp2 = 0 ;
10506 int res2 = 0 ;
10507 PyObject * obj0 = 0 ;
10508 PyObject * obj1 = 0 ;
10509 char * kwnames[] = {
10510 (char *) "base",(char *) "overlay", NULL
10511 };
10512
10513 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_Merge",kwnames,&obj0,&obj1)) SWIG_fail;
10514 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
10515 if (!SWIG_IsOK(res1)) {
10516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10517 }
10518 if (!argp1) {
10519 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10520 }
10521 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10522 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
10523 if (!SWIG_IsOK(res2)) {
10524 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10525 }
10526 if (!argp2) {
10527 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10528 }
10529 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
10530 {
10531 PyThreadState* __tstate = wxPyBeginAllowThreads();
10532 result = wxTextAttr::Merge((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2);
10533 wxPyEndAllowThreads(__tstate);
10534 if (PyErr_Occurred()) SWIG_fail;
10535 }
10536 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
10537 return resultobj;
10538 fail:
10539 return NULL;
10540 }
10541
10542
10543 SWIGINTERN PyObject *_wrap_TextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10544 PyObject *resultobj = 0;
10545 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10546 wxColour *arg2 = 0 ;
10547 void *argp1 = 0 ;
10548 int res1 = 0 ;
10549 wxColour temp2 ;
10550 PyObject * obj0 = 0 ;
10551 PyObject * obj1 = 0 ;
10552 char * kwnames[] = {
10553 (char *) "self",(char *) "colText", NULL
10554 };
10555
10556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
10557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10558 if (!SWIG_IsOK(res1)) {
10559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10560 }
10561 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10562 {
10563 arg2 = &temp2;
10564 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10565 }
10566 {
10567 PyThreadState* __tstate = wxPyBeginAllowThreads();
10568 (arg1)->SetTextColour((wxColour const &)*arg2);
10569 wxPyEndAllowThreads(__tstate);
10570 if (PyErr_Occurred()) SWIG_fail;
10571 }
10572 resultobj = SWIG_Py_Void();
10573 return resultobj;
10574 fail:
10575 return NULL;
10576 }
10577
10578
10579 SWIGINTERN PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10580 PyObject *resultobj = 0;
10581 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10582 wxColour *arg2 = 0 ;
10583 void *argp1 = 0 ;
10584 int res1 = 0 ;
10585 wxColour temp2 ;
10586 PyObject * obj0 = 0 ;
10587 PyObject * obj1 = 0 ;
10588 char * kwnames[] = {
10589 (char *) "self",(char *) "colBack", NULL
10590 };
10591
10592 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
10593 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10594 if (!SWIG_IsOK(res1)) {
10595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10596 }
10597 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10598 {
10599 arg2 = &temp2;
10600 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10601 }
10602 {
10603 PyThreadState* __tstate = wxPyBeginAllowThreads();
10604 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
10605 wxPyEndAllowThreads(__tstate);
10606 if (PyErr_Occurred()) SWIG_fail;
10607 }
10608 resultobj = SWIG_Py_Void();
10609 return resultobj;
10610 fail:
10611 return NULL;
10612 }
10613
10614
10615 SWIGINTERN PyObject *_wrap_TextAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10616 PyObject *resultobj = 0;
10617 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10618 wxFont *arg2 = 0 ;
10619 long arg3 = (long) wxTEXT_ATTR_FONT ;
10620 void *argp1 = 0 ;
10621 int res1 = 0 ;
10622 void *argp2 = 0 ;
10623 int res2 = 0 ;
10624 long val3 ;
10625 int ecode3 = 0 ;
10626 PyObject * obj0 = 0 ;
10627 PyObject * obj1 = 0 ;
10628 PyObject * obj2 = 0 ;
10629 char * kwnames[] = {
10630 (char *) "self",(char *) "font",(char *) "flags", NULL
10631 };
10632
10633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10635 if (!SWIG_IsOK(res1)) {
10636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFont" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10637 }
10638 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10639 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
10640 if (!SWIG_IsOK(res2)) {
10641 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10642 }
10643 if (!argp2) {
10644 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10645 }
10646 arg2 = reinterpret_cast< wxFont * >(argp2);
10647 if (obj2) {
10648 ecode3 = SWIG_AsVal_long(obj2, &val3);
10649 if (!SWIG_IsOK(ecode3)) {
10650 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetFont" "', expected argument " "3"" of type '" "long""'");
10651 }
10652 arg3 = static_cast< long >(val3);
10653 }
10654 {
10655 PyThreadState* __tstate = wxPyBeginAllowThreads();
10656 (arg1)->SetFont((wxFont const &)*arg2,arg3);
10657 wxPyEndAllowThreads(__tstate);
10658 if (PyErr_Occurred()) SWIG_fail;
10659 }
10660 resultobj = SWIG_Py_Void();
10661 return resultobj;
10662 fail:
10663 return NULL;
10664 }
10665
10666
10667 SWIGINTERN PyObject *_wrap_TextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10668 PyObject *resultobj = 0;
10669 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10670 wxTextAttrAlignment arg2 ;
10671 void *argp1 = 0 ;
10672 int res1 = 0 ;
10673 int val2 ;
10674 int ecode2 = 0 ;
10675 PyObject * obj0 = 0 ;
10676 PyObject * obj1 = 0 ;
10677 char * kwnames[] = {
10678 (char *) "self",(char *) "alignment", NULL
10679 };
10680
10681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail;
10682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10683 if (!SWIG_IsOK(res1)) {
10684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10685 }
10686 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10687 ecode2 = SWIG_AsVal_int(obj1, &val2);
10688 if (!SWIG_IsOK(ecode2)) {
10689 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
10690 }
10691 arg2 = static_cast< wxTextAttrAlignment >(val2);
10692 {
10693 PyThreadState* __tstate = wxPyBeginAllowThreads();
10694 (arg1)->SetAlignment(arg2);
10695 wxPyEndAllowThreads(__tstate);
10696 if (PyErr_Occurred()) SWIG_fail;
10697 }
10698 resultobj = SWIG_Py_Void();
10699 return resultobj;
10700 fail:
10701 return NULL;
10702 }
10703
10704
10705 SWIGINTERN PyObject *_wrap_TextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10706 PyObject *resultobj = 0;
10707 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10708 wxArrayInt *arg2 = 0 ;
10709 void *argp1 = 0 ;
10710 int res1 = 0 ;
10711 bool temp2 = false ;
10712 PyObject * obj0 = 0 ;
10713 PyObject * obj1 = 0 ;
10714 char * kwnames[] = {
10715 (char *) "self",(char *) "tabs", NULL
10716 };
10717
10718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail;
10719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10720 if (!SWIG_IsOK(res1)) {
10721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTabs" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10722 }
10723 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10724 {
10725 if (! PySequence_Check(obj1)) {
10726 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10727 SWIG_fail;
10728 }
10729 arg2 = new wxArrayInt;
10730 temp2 = true;
10731 int i, len=PySequence_Length(obj1);
10732 for (i=0; i<len; i++) {
10733 PyObject* item = PySequence_GetItem(obj1, i);
10734 PyObject* number = PyNumber_Int(item);
10735 arg2->Add(PyInt_AS_LONG(number));
10736 Py_DECREF(item);
10737 Py_DECREF(number);
10738 }
10739 }
10740 {
10741 PyThreadState* __tstate = wxPyBeginAllowThreads();
10742 (arg1)->SetTabs((wxArrayInt const &)*arg2);
10743 wxPyEndAllowThreads(__tstate);
10744 if (PyErr_Occurred()) SWIG_fail;
10745 }
10746 resultobj = SWIG_Py_Void();
10747 {
10748 if (temp2) delete arg2;
10749 }
10750 return resultobj;
10751 fail:
10752 {
10753 if (temp2) delete arg2;
10754 }
10755 return NULL;
10756 }
10757
10758
10759 SWIGINTERN PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10760 PyObject *resultobj = 0;
10761 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10762 int arg2 ;
10763 int arg3 = (int) 0 ;
10764 void *argp1 = 0 ;
10765 int res1 = 0 ;
10766 int val2 ;
10767 int ecode2 = 0 ;
10768 int val3 ;
10769 int ecode3 = 0 ;
10770 PyObject * obj0 = 0 ;
10771 PyObject * obj1 = 0 ;
10772 PyObject * obj2 = 0 ;
10773 char * kwnames[] = {
10774 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
10775 };
10776
10777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10779 if (!SWIG_IsOK(res1)) {
10780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10781 }
10782 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10783 ecode2 = SWIG_AsVal_int(obj1, &val2);
10784 if (!SWIG_IsOK(ecode2)) {
10785 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'");
10786 }
10787 arg2 = static_cast< int >(val2);
10788 if (obj2) {
10789 ecode3 = SWIG_AsVal_int(obj2, &val3);
10790 if (!SWIG_IsOK(ecode3)) {
10791 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'");
10792 }
10793 arg3 = static_cast< int >(val3);
10794 }
10795 {
10796 PyThreadState* __tstate = wxPyBeginAllowThreads();
10797 (arg1)->SetLeftIndent(arg2,arg3);
10798 wxPyEndAllowThreads(__tstate);
10799 if (PyErr_Occurred()) SWIG_fail;
10800 }
10801 resultobj = SWIG_Py_Void();
10802 return resultobj;
10803 fail:
10804 return NULL;
10805 }
10806
10807
10808 SWIGINTERN PyObject *_wrap_TextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10809 PyObject *resultobj = 0;
10810 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10811 int arg2 ;
10812 void *argp1 = 0 ;
10813 int res1 = 0 ;
10814 int val2 ;
10815 int ecode2 = 0 ;
10816 PyObject * obj0 = 0 ;
10817 PyObject * obj1 = 0 ;
10818 char * kwnames[] = {
10819 (char *) "self",(char *) "indent", NULL
10820 };
10821
10822 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail;
10823 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10824 if (!SWIG_IsOK(res1)) {
10825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10826 }
10827 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10828 ecode2 = SWIG_AsVal_int(obj1, &val2);
10829 if (!SWIG_IsOK(ecode2)) {
10830 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'");
10831 }
10832 arg2 = static_cast< int >(val2);
10833 {
10834 PyThreadState* __tstate = wxPyBeginAllowThreads();
10835 (arg1)->SetRightIndent(arg2);
10836 wxPyEndAllowThreads(__tstate);
10837 if (PyErr_Occurred()) SWIG_fail;
10838 }
10839 resultobj = SWIG_Py_Void();
10840 return resultobj;
10841 fail:
10842 return NULL;
10843 }
10844
10845
10846 SWIGINTERN PyObject *_wrap_TextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10847 PyObject *resultobj = 0;
10848 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10849 long arg2 ;
10850 void *argp1 = 0 ;
10851 int res1 = 0 ;
10852 long val2 ;
10853 int ecode2 = 0 ;
10854 PyObject * obj0 = 0 ;
10855 PyObject * obj1 = 0 ;
10856 char * kwnames[] = {
10857 (char *) "self",(char *) "flags", NULL
10858 };
10859
10860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
10861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10862 if (!SWIG_IsOK(res1)) {
10863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFlags" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10864 }
10865 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10866 ecode2 = SWIG_AsVal_long(obj1, &val2);
10867 if (!SWIG_IsOK(ecode2)) {
10868 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'");
10869 }
10870 arg2 = static_cast< long >(val2);
10871 {
10872 PyThreadState* __tstate = wxPyBeginAllowThreads();
10873 (arg1)->SetFlags(arg2);
10874 wxPyEndAllowThreads(__tstate);
10875 if (PyErr_Occurred()) SWIG_fail;
10876 }
10877 resultobj = SWIG_Py_Void();
10878 return resultobj;
10879 fail:
10880 return NULL;
10881 }
10882
10883
10884 SWIGINTERN PyObject *_wrap_TextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10885 PyObject *resultobj = 0;
10886 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10887 bool result;
10888 void *argp1 = 0 ;
10889 int res1 = 0 ;
10890 PyObject *swig_obj[1] ;
10891
10892 if (!args) SWIG_fail;
10893 swig_obj[0] = args;
10894 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10895 if (!SWIG_IsOK(res1)) {
10896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10897 }
10898 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10899 {
10900 PyThreadState* __tstate = wxPyBeginAllowThreads();
10901 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
10902 wxPyEndAllowThreads(__tstate);
10903 if (PyErr_Occurred()) SWIG_fail;
10904 }
10905 {
10906 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10907 }
10908 return resultobj;
10909 fail:
10910 return NULL;
10911 }
10912
10913
10914 SWIGINTERN PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10915 PyObject *resultobj = 0;
10916 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10917 bool result;
10918 void *argp1 = 0 ;
10919 int res1 = 0 ;
10920 PyObject *swig_obj[1] ;
10921
10922 if (!args) SWIG_fail;
10923 swig_obj[0] = args;
10924 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10925 if (!SWIG_IsOK(res1)) {
10926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10927 }
10928 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10929 {
10930 PyThreadState* __tstate = wxPyBeginAllowThreads();
10931 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
10932 wxPyEndAllowThreads(__tstate);
10933 if (PyErr_Occurred()) SWIG_fail;
10934 }
10935 {
10936 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10937 }
10938 return resultobj;
10939 fail:
10940 return NULL;
10941 }
10942
10943
10944 SWIGINTERN PyObject *_wrap_TextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10945 PyObject *resultobj = 0;
10946 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10947 bool result;
10948 void *argp1 = 0 ;
10949 int res1 = 0 ;
10950 PyObject *swig_obj[1] ;
10951
10952 if (!args) SWIG_fail;
10953 swig_obj[0] = args;
10954 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10955 if (!SWIG_IsOK(res1)) {
10956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10957 }
10958 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10959 {
10960 PyThreadState* __tstate = wxPyBeginAllowThreads();
10961 result = (bool)((wxTextAttr const *)arg1)->HasFont();
10962 wxPyEndAllowThreads(__tstate);
10963 if (PyErr_Occurred()) SWIG_fail;
10964 }
10965 {
10966 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10967 }
10968 return resultobj;
10969 fail:
10970 return NULL;
10971 }
10972
10973
10974 SWIGINTERN PyObject *_wrap_TextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10975 PyObject *resultobj = 0;
10976 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10977 bool result;
10978 void *argp1 = 0 ;
10979 int res1 = 0 ;
10980 PyObject *swig_obj[1] ;
10981
10982 if (!args) SWIG_fail;
10983 swig_obj[0] = args;
10984 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10985 if (!SWIG_IsOK(res1)) {
10986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10987 }
10988 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10989 {
10990 PyThreadState* __tstate = wxPyBeginAllowThreads();
10991 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
10992 wxPyEndAllowThreads(__tstate);
10993 if (PyErr_Occurred()) SWIG_fail;
10994 }
10995 {
10996 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10997 }
10998 return resultobj;
10999 fail:
11000 return NULL;
11001 }
11002
11003
11004 SWIGINTERN PyObject *_wrap_TextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11005 PyObject *resultobj = 0;
11006 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11007 bool result;
11008 void *argp1 = 0 ;
11009 int res1 = 0 ;
11010 PyObject *swig_obj[1] ;
11011
11012 if (!args) SWIG_fail;
11013 swig_obj[0] = args;
11014 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11015 if (!SWIG_IsOK(res1)) {
11016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11017 }
11018 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11019 {
11020 PyThreadState* __tstate = wxPyBeginAllowThreads();
11021 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
11022 wxPyEndAllowThreads(__tstate);
11023 if (PyErr_Occurred()) SWIG_fail;
11024 }
11025 {
11026 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11027 }
11028 return resultobj;
11029 fail:
11030 return NULL;
11031 }
11032
11033
11034 SWIGINTERN PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11035 PyObject *resultobj = 0;
11036 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11037 bool result;
11038 void *argp1 = 0 ;
11039 int res1 = 0 ;
11040 PyObject *swig_obj[1] ;
11041
11042 if (!args) SWIG_fail;
11043 swig_obj[0] = args;
11044 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11045 if (!SWIG_IsOK(res1)) {
11046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11047 }
11048 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11049 {
11050 PyThreadState* __tstate = wxPyBeginAllowThreads();
11051 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
11052 wxPyEndAllowThreads(__tstate);
11053 if (PyErr_Occurred()) SWIG_fail;
11054 }
11055 {
11056 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11057 }
11058 return resultobj;
11059 fail:
11060 return NULL;
11061 }
11062
11063
11064 SWIGINTERN PyObject *_wrap_TextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11065 PyObject *resultobj = 0;
11066 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11067 bool result;
11068 void *argp1 = 0 ;
11069 int res1 = 0 ;
11070 PyObject *swig_obj[1] ;
11071
11072 if (!args) SWIG_fail;
11073 swig_obj[0] = args;
11074 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11075 if (!SWIG_IsOK(res1)) {
11076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11077 }
11078 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11079 {
11080 PyThreadState* __tstate = wxPyBeginAllowThreads();
11081 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
11082 wxPyEndAllowThreads(__tstate);
11083 if (PyErr_Occurred()) SWIG_fail;
11084 }
11085 {
11086 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11087 }
11088 return resultobj;
11089 fail:
11090 return NULL;
11091 }
11092
11093
11094 SWIGINTERN PyObject *_wrap_TextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11095 PyObject *resultobj = 0;
11096 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11097 long arg2 ;
11098 bool result;
11099 void *argp1 = 0 ;
11100 int res1 = 0 ;
11101 long val2 ;
11102 int ecode2 = 0 ;
11103 PyObject * obj0 = 0 ;
11104 PyObject * obj1 = 0 ;
11105 char * kwnames[] = {
11106 (char *) "self",(char *) "flag", NULL
11107 };
11108
11109 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail;
11110 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11111 if (!SWIG_IsOK(res1)) {
11112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFlag" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11113 }
11114 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11115 ecode2 = SWIG_AsVal_long(obj1, &val2);
11116 if (!SWIG_IsOK(ecode2)) {
11117 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'");
11118 }
11119 arg2 = static_cast< long >(val2);
11120 {
11121 PyThreadState* __tstate = wxPyBeginAllowThreads();
11122 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
11123 wxPyEndAllowThreads(__tstate);
11124 if (PyErr_Occurred()) SWIG_fail;
11125 }
11126 {
11127 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11128 }
11129 return resultobj;
11130 fail:
11131 return NULL;
11132 }
11133
11134
11135 SWIGINTERN PyObject *_wrap_TextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11136 PyObject *resultobj = 0;
11137 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11138 wxColour *result = 0 ;
11139 void *argp1 = 0 ;
11140 int res1 = 0 ;
11141 PyObject *swig_obj[1] ;
11142
11143 if (!args) SWIG_fail;
11144 swig_obj[0] = args;
11145 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11146 if (!SWIG_IsOK(res1)) {
11147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11148 }
11149 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11150 {
11151 PyThreadState* __tstate = wxPyBeginAllowThreads();
11152 {
11153 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
11154 result = (wxColour *) &_result_ref;
11155 }
11156 wxPyEndAllowThreads(__tstate);
11157 if (PyErr_Occurred()) SWIG_fail;
11158 }
11159 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11160 return resultobj;
11161 fail:
11162 return NULL;
11163 }
11164
11165
11166 SWIGINTERN PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11167 PyObject *resultobj = 0;
11168 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11169 wxColour *result = 0 ;
11170 void *argp1 = 0 ;
11171 int res1 = 0 ;
11172 PyObject *swig_obj[1] ;
11173
11174 if (!args) SWIG_fail;
11175 swig_obj[0] = args;
11176 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11177 if (!SWIG_IsOK(res1)) {
11178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11179 }
11180 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11181 {
11182 PyThreadState* __tstate = wxPyBeginAllowThreads();
11183 {
11184 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
11185 result = (wxColour *) &_result_ref;
11186 }
11187 wxPyEndAllowThreads(__tstate);
11188 if (PyErr_Occurred()) SWIG_fail;
11189 }
11190 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11191 return resultobj;
11192 fail:
11193 return NULL;
11194 }
11195
11196
11197 SWIGINTERN PyObject *_wrap_TextAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11198 PyObject *resultobj = 0;
11199 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11200 wxFont *result = 0 ;
11201 void *argp1 = 0 ;
11202 int res1 = 0 ;
11203 PyObject *swig_obj[1] ;
11204
11205 if (!args) SWIG_fail;
11206 swig_obj[0] = args;
11207 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11208 if (!SWIG_IsOK(res1)) {
11209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11210 }
11211 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11212 {
11213 PyThreadState* __tstate = wxPyBeginAllowThreads();
11214 {
11215 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
11216 result = (wxFont *) &_result_ref;
11217 }
11218 wxPyEndAllowThreads(__tstate);
11219 if (PyErr_Occurred()) SWIG_fail;
11220 }
11221 {
11222 wxFont* resultptr = new wxFont(*result);
11223 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
11224 }
11225 return resultobj;
11226 fail:
11227 return NULL;
11228 }
11229
11230
11231 SWIGINTERN PyObject *_wrap_TextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11232 PyObject *resultobj = 0;
11233 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11234 wxTextAttrAlignment result;
11235 void *argp1 = 0 ;
11236 int res1 = 0 ;
11237 PyObject *swig_obj[1] ;
11238
11239 if (!args) SWIG_fail;
11240 swig_obj[0] = args;
11241 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11242 if (!SWIG_IsOK(res1)) {
11243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11244 }
11245 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11246 {
11247 PyThreadState* __tstate = wxPyBeginAllowThreads();
11248 result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment();
11249 wxPyEndAllowThreads(__tstate);
11250 if (PyErr_Occurred()) SWIG_fail;
11251 }
11252 resultobj = SWIG_From_int(static_cast< int >(result));
11253 return resultobj;
11254 fail:
11255 return NULL;
11256 }
11257
11258
11259 SWIGINTERN PyObject *_wrap_TextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11260 PyObject *resultobj = 0;
11261 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11262 wxArrayInt *result = 0 ;
11263 void *argp1 = 0 ;
11264 int res1 = 0 ;
11265 PyObject *swig_obj[1] ;
11266
11267 if (!args) SWIG_fail;
11268 swig_obj[0] = args;
11269 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11270 if (!SWIG_IsOK(res1)) {
11271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11272 }
11273 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11274 {
11275 PyThreadState* __tstate = wxPyBeginAllowThreads();
11276 {
11277 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
11278 result = (wxArrayInt *) &_result_ref;
11279 }
11280 wxPyEndAllowThreads(__tstate);
11281 if (PyErr_Occurred()) SWIG_fail;
11282 }
11283 {
11284 resultobj = PyList_New(0);
11285 size_t idx;
11286 for (idx = 0; idx < result->GetCount(); idx += 1) {
11287 PyObject* val = PyInt_FromLong( result->Item(idx) );
11288 PyList_Append(resultobj, val);
11289 Py_DECREF(val);
11290 }
11291 }
11292 return resultobj;
11293 fail:
11294 return NULL;
11295 }
11296
11297
11298 SWIGINTERN PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11299 PyObject *resultobj = 0;
11300 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11301 long result;
11302 void *argp1 = 0 ;
11303 int res1 = 0 ;
11304 PyObject *swig_obj[1] ;
11305
11306 if (!args) SWIG_fail;
11307 swig_obj[0] = args;
11308 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11309 if (!SWIG_IsOK(res1)) {
11310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11311 }
11312 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11313 {
11314 PyThreadState* __tstate = wxPyBeginAllowThreads();
11315 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
11316 wxPyEndAllowThreads(__tstate);
11317 if (PyErr_Occurred()) SWIG_fail;
11318 }
11319 resultobj = SWIG_From_long(static_cast< long >(result));
11320 return resultobj;
11321 fail:
11322 return NULL;
11323 }
11324
11325
11326 SWIGINTERN PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11327 PyObject *resultobj = 0;
11328 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11329 long result;
11330 void *argp1 = 0 ;
11331 int res1 = 0 ;
11332 PyObject *swig_obj[1] ;
11333
11334 if (!args) SWIG_fail;
11335 swig_obj[0] = args;
11336 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11337 if (!SWIG_IsOK(res1)) {
11338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11339 }
11340 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11341 {
11342 PyThreadState* __tstate = wxPyBeginAllowThreads();
11343 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
11344 wxPyEndAllowThreads(__tstate);
11345 if (PyErr_Occurred()) SWIG_fail;
11346 }
11347 resultobj = SWIG_From_long(static_cast< long >(result));
11348 return resultobj;
11349 fail:
11350 return NULL;
11351 }
11352
11353
11354 SWIGINTERN PyObject *_wrap_TextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11355 PyObject *resultobj = 0;
11356 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11357 long result;
11358 void *argp1 = 0 ;
11359 int res1 = 0 ;
11360 PyObject *swig_obj[1] ;
11361
11362 if (!args) SWIG_fail;
11363 swig_obj[0] = args;
11364 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11365 if (!SWIG_IsOK(res1)) {
11366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11367 }
11368 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11369 {
11370 PyThreadState* __tstate = wxPyBeginAllowThreads();
11371 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
11372 wxPyEndAllowThreads(__tstate);
11373 if (PyErr_Occurred()) SWIG_fail;
11374 }
11375 resultobj = SWIG_From_long(static_cast< long >(result));
11376 return resultobj;
11377 fail:
11378 return NULL;
11379 }
11380
11381
11382 SWIGINTERN PyObject *_wrap_TextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11383 PyObject *resultobj = 0;
11384 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11385 long result;
11386 void *argp1 = 0 ;
11387 int res1 = 0 ;
11388 PyObject *swig_obj[1] ;
11389
11390 if (!args) SWIG_fail;
11391 swig_obj[0] = args;
11392 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11393 if (!SWIG_IsOK(res1)) {
11394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFlags" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11395 }
11396 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11397 {
11398 PyThreadState* __tstate = wxPyBeginAllowThreads();
11399 result = (long)((wxTextAttr const *)arg1)->GetFlags();
11400 wxPyEndAllowThreads(__tstate);
11401 if (PyErr_Occurred()) SWIG_fail;
11402 }
11403 resultobj = SWIG_From_long(static_cast< long >(result));
11404 return resultobj;
11405 fail:
11406 return NULL;
11407 }
11408
11409
11410 SWIGINTERN PyObject *_wrap_TextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11411 PyObject *resultobj = 0;
11412 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11413 bool result;
11414 void *argp1 = 0 ;
11415 int res1 = 0 ;
11416 PyObject *swig_obj[1] ;
11417
11418 if (!args) SWIG_fail;
11419 swig_obj[0] = args;
11420 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11421 if (!SWIG_IsOK(res1)) {
11422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_IsDefault" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11423 }
11424 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11425 {
11426 PyThreadState* __tstate = wxPyBeginAllowThreads();
11427 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
11428 wxPyEndAllowThreads(__tstate);
11429 if (PyErr_Occurred()) SWIG_fail;
11430 }
11431 {
11432 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11433 }
11434 return resultobj;
11435 fail:
11436 return NULL;
11437 }
11438
11439
11440 SWIGINTERN PyObject *_wrap_TextAttr_Combine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11441 PyObject *resultobj = 0;
11442 wxTextAttr *arg1 = 0 ;
11443 wxTextAttr *arg2 = 0 ;
11444 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
11445 wxTextAttr result;
11446 void *argp1 = 0 ;
11447 int res1 = 0 ;
11448 void *argp2 = 0 ;
11449 int res2 = 0 ;
11450 void *argp3 = 0 ;
11451 int res3 = 0 ;
11452 PyObject * obj0 = 0 ;
11453 PyObject * obj1 = 0 ;
11454 PyObject * obj2 = 0 ;
11455 char * kwnames[] = {
11456 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
11457 };
11458
11459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11460 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
11461 if (!SWIG_IsOK(res1)) {
11462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11463 }
11464 if (!argp1) {
11465 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11466 }
11467 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11468 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
11469 if (!SWIG_IsOK(res2)) {
11470 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11471 }
11472 if (!argp2) {
11473 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11474 }
11475 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
11476 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11477 if (!SWIG_IsOK(res3)) {
11478 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextAttr_Combine" "', expected argument " "3"" of type '" "wxTextCtrl const *""'");
11479 }
11480 arg3 = reinterpret_cast< wxTextCtrl * >(argp3);
11481 {
11482 PyThreadState* __tstate = wxPyBeginAllowThreads();
11483 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
11484 wxPyEndAllowThreads(__tstate);
11485 if (PyErr_Occurred()) SWIG_fail;
11486 }
11487 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
11488 return resultobj;
11489 fail:
11490 return NULL;
11491 }
11492
11493
11494 SWIGINTERN PyObject *TextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11495 PyObject *obj;
11496 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11497 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextAttr, SWIG_NewClientData(obj));
11498 return SWIG_Py_Void();
11499 }
11500
11501 SWIGINTERN PyObject *TextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11502 return SWIG_Python_InitShadowInstance(args);
11503 }
11504
11505 SWIGINTERN PyObject *_wrap_new_TextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11506 PyObject *resultobj = 0;
11507 wxWindow *arg1 = (wxWindow *) 0 ;
11508 int arg2 = (int) -1 ;
11509 wxString const &arg3_defvalue = wxPyEmptyString ;
11510 wxString *arg3 = (wxString *) &arg3_defvalue ;
11511 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11512 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11513 wxSize const &arg5_defvalue = wxDefaultSize ;
11514 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11515 long arg6 = (long) 0 ;
11516 wxValidator const &arg7_defvalue = wxDefaultValidator ;
11517 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
11518 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
11519 wxString *arg8 = (wxString *) &arg8_defvalue ;
11520 wxTextCtrl *result = 0 ;
11521 void *argp1 = 0 ;
11522 int res1 = 0 ;
11523 int val2 ;
11524 int ecode2 = 0 ;
11525 bool temp3 = false ;
11526 wxPoint temp4 ;
11527 wxSize temp5 ;
11528 long val6 ;
11529 int ecode6 = 0 ;
11530 void *argp7 = 0 ;
11531 int res7 = 0 ;
11532 bool temp8 = false ;
11533 PyObject * obj0 = 0 ;
11534 PyObject * obj1 = 0 ;
11535 PyObject * obj2 = 0 ;
11536 PyObject * obj3 = 0 ;
11537 PyObject * obj4 = 0 ;
11538 PyObject * obj5 = 0 ;
11539 PyObject * obj6 = 0 ;
11540 PyObject * obj7 = 0 ;
11541 char * kwnames[] = {
11542 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11543 };
11544
11545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
11546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
11547 if (!SWIG_IsOK(res1)) {
11548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
11549 }
11550 arg1 = reinterpret_cast< wxWindow * >(argp1);
11551 if (obj1) {
11552 ecode2 = SWIG_AsVal_int(obj1, &val2);
11553 if (!SWIG_IsOK(ecode2)) {
11554 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TextCtrl" "', expected argument " "2"" of type '" "int""'");
11555 }
11556 arg2 = static_cast< int >(val2);
11557 }
11558 if (obj2) {
11559 {
11560 arg3 = wxString_in_helper(obj2);
11561 if (arg3 == NULL) SWIG_fail;
11562 temp3 = true;
11563 }
11564 }
11565 if (obj3) {
11566 {
11567 arg4 = &temp4;
11568 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11569 }
11570 }
11571 if (obj4) {
11572 {
11573 arg5 = &temp5;
11574 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11575 }
11576 }
11577 if (obj5) {
11578 ecode6 = SWIG_AsVal_long(obj5, &val6);
11579 if (!SWIG_IsOK(ecode6)) {
11580 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_TextCtrl" "', expected argument " "6"" of type '" "long""'");
11581 }
11582 arg6 = static_cast< long >(val6);
11583 }
11584 if (obj6) {
11585 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
11586 if (!SWIG_IsOK(res7)) {
11587 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
11588 }
11589 if (!argp7) {
11590 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
11591 }
11592 arg7 = reinterpret_cast< wxValidator * >(argp7);
11593 }
11594 if (obj7) {
11595 {
11596 arg8 = wxString_in_helper(obj7);
11597 if (arg8 == NULL) SWIG_fail;
11598 temp8 = true;
11599 }
11600 }
11601 {
11602 if (!wxPyCheckForApp()) SWIG_fail;
11603 PyThreadState* __tstate = wxPyBeginAllowThreads();
11604 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
11605 wxPyEndAllowThreads(__tstate);
11606 if (PyErr_Occurred()) SWIG_fail;
11607 }
11608 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_NEW | 0 );
11609 {
11610 if (temp3)
11611 delete arg3;
11612 }
11613 {
11614 if (temp8)
11615 delete arg8;
11616 }
11617 return resultobj;
11618 fail:
11619 {
11620 if (temp3)
11621 delete arg3;
11622 }
11623 {
11624 if (temp8)
11625 delete arg8;
11626 }
11627 return NULL;
11628 }
11629
11630
11631 SWIGINTERN PyObject *_wrap_new_PreTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11632 PyObject *resultobj = 0;
11633 wxTextCtrl *result = 0 ;
11634
11635 if (!SWIG_Python_UnpackTuple(args,"new_PreTextCtrl",0,0,0)) SWIG_fail;
11636 {
11637 if (!wxPyCheckForApp()) SWIG_fail;
11638 PyThreadState* __tstate = wxPyBeginAllowThreads();
11639 result = (wxTextCtrl *)new wxTextCtrl();
11640 wxPyEndAllowThreads(__tstate);
11641 if (PyErr_Occurred()) SWIG_fail;
11642 }
11643 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_OWN | 0 );
11644 return resultobj;
11645 fail:
11646 return NULL;
11647 }
11648
11649
11650 SWIGINTERN PyObject *_wrap_TextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11651 PyObject *resultobj = 0;
11652 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11653 wxWindow *arg2 = (wxWindow *) 0 ;
11654 int arg3 = (int) -1 ;
11655 wxString const &arg4_defvalue = wxPyEmptyString ;
11656 wxString *arg4 = (wxString *) &arg4_defvalue ;
11657 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11658 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11659 wxSize const &arg6_defvalue = wxDefaultSize ;
11660 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11661 long arg7 = (long) 0 ;
11662 wxValidator const &arg8_defvalue = wxDefaultValidator ;
11663 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
11664 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
11665 wxString *arg9 = (wxString *) &arg9_defvalue ;
11666 bool result;
11667 void *argp1 = 0 ;
11668 int res1 = 0 ;
11669 void *argp2 = 0 ;
11670 int res2 = 0 ;
11671 int val3 ;
11672 int ecode3 = 0 ;
11673 bool temp4 = false ;
11674 wxPoint temp5 ;
11675 wxSize temp6 ;
11676 long val7 ;
11677 int ecode7 = 0 ;
11678 void *argp8 = 0 ;
11679 int res8 = 0 ;
11680 bool temp9 = false ;
11681 PyObject * obj0 = 0 ;
11682 PyObject * obj1 = 0 ;
11683 PyObject * obj2 = 0 ;
11684 PyObject * obj3 = 0 ;
11685 PyObject * obj4 = 0 ;
11686 PyObject * obj5 = 0 ;
11687 PyObject * obj6 = 0 ;
11688 PyObject * obj7 = 0 ;
11689 PyObject * obj8 = 0 ;
11690 char * kwnames[] = {
11691 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11692 };
11693
11694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
11695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11696 if (!SWIG_IsOK(res1)) {
11697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Create" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11698 }
11699 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11700 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11701 if (!SWIG_IsOK(res2)) {
11702 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
11703 }
11704 arg2 = reinterpret_cast< wxWindow * >(argp2);
11705 if (obj2) {
11706 ecode3 = SWIG_AsVal_int(obj2, &val3);
11707 if (!SWIG_IsOK(ecode3)) {
11708 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Create" "', expected argument " "3"" of type '" "int""'");
11709 }
11710 arg3 = static_cast< int >(val3);
11711 }
11712 if (obj3) {
11713 {
11714 arg4 = wxString_in_helper(obj3);
11715 if (arg4 == NULL) SWIG_fail;
11716 temp4 = true;
11717 }
11718 }
11719 if (obj4) {
11720 {
11721 arg5 = &temp5;
11722 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11723 }
11724 }
11725 if (obj5) {
11726 {
11727 arg6 = &temp6;
11728 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11729 }
11730 }
11731 if (obj6) {
11732 ecode7 = SWIG_AsVal_long(obj6, &val7);
11733 if (!SWIG_IsOK(ecode7)) {
11734 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "TextCtrl_Create" "', expected argument " "7"" of type '" "long""'");
11735 }
11736 arg7 = static_cast< long >(val7);
11737 }
11738 if (obj7) {
11739 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
11740 if (!SWIG_IsOK(res8)) {
11741 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11742 }
11743 if (!argp8) {
11744 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11745 }
11746 arg8 = reinterpret_cast< wxValidator * >(argp8);
11747 }
11748 if (obj8) {
11749 {
11750 arg9 = wxString_in_helper(obj8);
11751 if (arg9 == NULL) SWIG_fail;
11752 temp9 = true;
11753 }
11754 }
11755 {
11756 PyThreadState* __tstate = wxPyBeginAllowThreads();
11757 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
11758 wxPyEndAllowThreads(__tstate);
11759 if (PyErr_Occurred()) SWIG_fail;
11760 }
11761 {
11762 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11763 }
11764 {
11765 if (temp4)
11766 delete arg4;
11767 }
11768 {
11769 if (temp9)
11770 delete arg9;
11771 }
11772 return resultobj;
11773 fail:
11774 {
11775 if (temp4)
11776 delete arg4;
11777 }
11778 {
11779 if (temp9)
11780 delete arg9;
11781 }
11782 return NULL;
11783 }
11784
11785
11786 SWIGINTERN PyObject *_wrap_TextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11787 PyObject *resultobj = 0;
11788 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11789 wxString result;
11790 void *argp1 = 0 ;
11791 int res1 = 0 ;
11792 PyObject *swig_obj[1] ;
11793
11794 if (!args) SWIG_fail;
11795 swig_obj[0] = args;
11796 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11797 if (!SWIG_IsOK(res1)) {
11798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetValue" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11799 }
11800 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11801 {
11802 PyThreadState* __tstate = wxPyBeginAllowThreads();
11803 result = ((wxTextCtrl const *)arg1)->GetValue();
11804 wxPyEndAllowThreads(__tstate);
11805 if (PyErr_Occurred()) SWIG_fail;
11806 }
11807 {
11808 #if wxUSE_UNICODE
11809 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11810 #else
11811 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11812 #endif
11813 }
11814 return resultobj;
11815 fail:
11816 return NULL;
11817 }
11818
11819
11820 SWIGINTERN PyObject *_wrap_TextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11821 PyObject *resultobj = 0;
11822 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11823 wxString *arg2 = 0 ;
11824 void *argp1 = 0 ;
11825 int res1 = 0 ;
11826 bool temp2 = false ;
11827 PyObject * obj0 = 0 ;
11828 PyObject * obj1 = 0 ;
11829 char * kwnames[] = {
11830 (char *) "self",(char *) "value", NULL
11831 };
11832
11833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
11834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11835 if (!SWIG_IsOK(res1)) {
11836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11837 }
11838 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11839 {
11840 arg2 = wxString_in_helper(obj1);
11841 if (arg2 == NULL) SWIG_fail;
11842 temp2 = true;
11843 }
11844 {
11845 PyThreadState* __tstate = wxPyBeginAllowThreads();
11846 (arg1)->SetValue((wxString const &)*arg2);
11847 wxPyEndAllowThreads(__tstate);
11848 if (PyErr_Occurred()) SWIG_fail;
11849 }
11850 resultobj = SWIG_Py_Void();
11851 {
11852 if (temp2)
11853 delete arg2;
11854 }
11855 return resultobj;
11856 fail:
11857 {
11858 if (temp2)
11859 delete arg2;
11860 }
11861 return NULL;
11862 }
11863
11864
11865 SWIGINTERN PyObject *_wrap_TextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11866 PyObject *resultobj = 0;
11867 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11868 long arg2 ;
11869 long arg3 ;
11870 wxString result;
11871 void *argp1 = 0 ;
11872 int res1 = 0 ;
11873 long val2 ;
11874 int ecode2 = 0 ;
11875 long val3 ;
11876 int ecode3 = 0 ;
11877 PyObject * obj0 = 0 ;
11878 PyObject * obj1 = 0 ;
11879 PyObject * obj2 = 0 ;
11880 char * kwnames[] = {
11881 (char *) "self",(char *) "from",(char *) "to", NULL
11882 };
11883
11884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11886 if (!SWIG_IsOK(res1)) {
11887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetRange" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11888 }
11889 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11890 ecode2 = SWIG_AsVal_long(obj1, &val2);
11891 if (!SWIG_IsOK(ecode2)) {
11892 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'");
11893 }
11894 arg2 = static_cast< long >(val2);
11895 ecode3 = SWIG_AsVal_long(obj2, &val3);
11896 if (!SWIG_IsOK(ecode3)) {
11897 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'");
11898 }
11899 arg3 = static_cast< long >(val3);
11900 {
11901 PyThreadState* __tstate = wxPyBeginAllowThreads();
11902 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
11903 wxPyEndAllowThreads(__tstate);
11904 if (PyErr_Occurred()) SWIG_fail;
11905 }
11906 {
11907 #if wxUSE_UNICODE
11908 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11909 #else
11910 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11911 #endif
11912 }
11913 return resultobj;
11914 fail:
11915 return NULL;
11916 }
11917
11918
11919 SWIGINTERN PyObject *_wrap_TextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11920 PyObject *resultobj = 0;
11921 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11922 long arg2 ;
11923 int result;
11924 void *argp1 = 0 ;
11925 int res1 = 0 ;
11926 long val2 ;
11927 int ecode2 = 0 ;
11928 PyObject * obj0 = 0 ;
11929 PyObject * obj1 = 0 ;
11930 char * kwnames[] = {
11931 (char *) "self",(char *) "lineNo", NULL
11932 };
11933
11934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail;
11935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11936 if (!SWIG_IsOK(res1)) {
11937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11938 }
11939 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11940 ecode2 = SWIG_AsVal_long(obj1, &val2);
11941 if (!SWIG_IsOK(ecode2)) {
11942 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'");
11943 }
11944 arg2 = static_cast< long >(val2);
11945 {
11946 PyThreadState* __tstate = wxPyBeginAllowThreads();
11947 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
11948 wxPyEndAllowThreads(__tstate);
11949 if (PyErr_Occurred()) SWIG_fail;
11950 }
11951 resultobj = SWIG_From_int(static_cast< int >(result));
11952 return resultobj;
11953 fail:
11954 return NULL;
11955 }
11956
11957
11958 SWIGINTERN PyObject *_wrap_TextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11959 PyObject *resultobj = 0;
11960 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11961 long arg2 ;
11962 wxString result;
11963 void *argp1 = 0 ;
11964 int res1 = 0 ;
11965 long val2 ;
11966 int ecode2 = 0 ;
11967 PyObject * obj0 = 0 ;
11968 PyObject * obj1 = 0 ;
11969 char * kwnames[] = {
11970 (char *) "self",(char *) "lineNo", NULL
11971 };
11972
11973 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail;
11974 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11975 if (!SWIG_IsOK(res1)) {
11976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11977 }
11978 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11979 ecode2 = SWIG_AsVal_long(obj1, &val2);
11980 if (!SWIG_IsOK(ecode2)) {
11981 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'");
11982 }
11983 arg2 = static_cast< long >(val2);
11984 {
11985 PyThreadState* __tstate = wxPyBeginAllowThreads();
11986 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
11987 wxPyEndAllowThreads(__tstate);
11988 if (PyErr_Occurred()) SWIG_fail;
11989 }
11990 {
11991 #if wxUSE_UNICODE
11992 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11993 #else
11994 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11995 #endif
11996 }
11997 return resultobj;
11998 fail:
11999 return NULL;
12000 }
12001
12002
12003 SWIGINTERN PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12004 PyObject *resultobj = 0;
12005 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12006 int result;
12007 void *argp1 = 0 ;
12008 int res1 = 0 ;
12009 PyObject *swig_obj[1] ;
12010
12011 if (!args) SWIG_fail;
12012 swig_obj[0] = args;
12013 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12014 if (!SWIG_IsOK(res1)) {
12015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12016 }
12017 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12018 {
12019 PyThreadState* __tstate = wxPyBeginAllowThreads();
12020 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
12021 wxPyEndAllowThreads(__tstate);
12022 if (PyErr_Occurred()) SWIG_fail;
12023 }
12024 resultobj = SWIG_From_int(static_cast< int >(result));
12025 return resultobj;
12026 fail:
12027 return NULL;
12028 }
12029
12030
12031 SWIGINTERN PyObject *_wrap_TextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12032 PyObject *resultobj = 0;
12033 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12034 bool result;
12035 void *argp1 = 0 ;
12036 int res1 = 0 ;
12037 PyObject *swig_obj[1] ;
12038
12039 if (!args) SWIG_fail;
12040 swig_obj[0] = args;
12041 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12042 if (!SWIG_IsOK(res1)) {
12043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsModified" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12044 }
12045 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12046 {
12047 PyThreadState* __tstate = wxPyBeginAllowThreads();
12048 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
12049 wxPyEndAllowThreads(__tstate);
12050 if (PyErr_Occurred()) SWIG_fail;
12051 }
12052 {
12053 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12054 }
12055 return resultobj;
12056 fail:
12057 return NULL;
12058 }
12059
12060
12061 SWIGINTERN PyObject *_wrap_TextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12062 PyObject *resultobj = 0;
12063 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12064 bool result;
12065 void *argp1 = 0 ;
12066 int res1 = 0 ;
12067 PyObject *swig_obj[1] ;
12068
12069 if (!args) SWIG_fail;
12070 swig_obj[0] = args;
12071 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12072 if (!SWIG_IsOK(res1)) {
12073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12074 }
12075 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12076 {
12077 PyThreadState* __tstate = wxPyBeginAllowThreads();
12078 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
12079 wxPyEndAllowThreads(__tstate);
12080 if (PyErr_Occurred()) SWIG_fail;
12081 }
12082 {
12083 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12084 }
12085 return resultobj;
12086 fail:
12087 return NULL;
12088 }
12089
12090
12091 SWIGINTERN PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12092 PyObject *resultobj = 0;
12093 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12094 bool result;
12095 void *argp1 = 0 ;
12096 int res1 = 0 ;
12097 PyObject *swig_obj[1] ;
12098
12099 if (!args) SWIG_fail;
12100 swig_obj[0] = args;
12101 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12102 if (!SWIG_IsOK(res1)) {
12103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12104 }
12105 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12106 {
12107 PyThreadState* __tstate = wxPyBeginAllowThreads();
12108 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
12109 wxPyEndAllowThreads(__tstate);
12110 if (PyErr_Occurred()) SWIG_fail;
12111 }
12112 {
12113 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12114 }
12115 return resultobj;
12116 fail:
12117 return NULL;
12118 }
12119
12120
12121 SWIGINTERN PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12122 PyObject *resultobj = 0;
12123 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12124 bool result;
12125 void *argp1 = 0 ;
12126 int res1 = 0 ;
12127 PyObject *swig_obj[1] ;
12128
12129 if (!args) SWIG_fail;
12130 swig_obj[0] = args;
12131 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12132 if (!SWIG_IsOK(res1)) {
12133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12134 }
12135 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12136 {
12137 PyThreadState* __tstate = wxPyBeginAllowThreads();
12138 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
12139 wxPyEndAllowThreads(__tstate);
12140 if (PyErr_Occurred()) SWIG_fail;
12141 }
12142 {
12143 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12144 }
12145 return resultobj;
12146 fail:
12147 return NULL;
12148 }
12149
12150
12151 SWIGINTERN PyObject *_wrap_TextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12152 PyObject *resultobj = 0;
12153 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12154 long *arg2 = (long *) 0 ;
12155 long *arg3 = (long *) 0 ;
12156 void *argp1 = 0 ;
12157 int res1 = 0 ;
12158 long temp2 ;
12159 int res2 = SWIG_TMPOBJ ;
12160 long temp3 ;
12161 int res3 = SWIG_TMPOBJ ;
12162 PyObject *swig_obj[1] ;
12163
12164 arg2 = &temp2;
12165 arg3 = &temp3;
12166 if (!args) SWIG_fail;
12167 swig_obj[0] = args;
12168 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12169 if (!SWIG_IsOK(res1)) {
12170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12171 }
12172 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12173 {
12174 PyThreadState* __tstate = wxPyBeginAllowThreads();
12175 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
12176 wxPyEndAllowThreads(__tstate);
12177 if (PyErr_Occurred()) SWIG_fail;
12178 }
12179 resultobj = SWIG_Py_Void();
12180 if (SWIG_IsTmpObj(res2)) {
12181 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
12182 } else {
12183 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12184 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
12185 }
12186 if (SWIG_IsTmpObj(res3)) {
12187 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
12188 } else {
12189 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12190 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
12191 }
12192 return resultobj;
12193 fail:
12194 return NULL;
12195 }
12196
12197
12198 SWIGINTERN PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12199 PyObject *resultobj = 0;
12200 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12201 wxString result;
12202 void *argp1 = 0 ;
12203 int res1 = 0 ;
12204 PyObject *swig_obj[1] ;
12205
12206 if (!args) SWIG_fail;
12207 swig_obj[0] = args;
12208 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12209 if (!SWIG_IsOK(res1)) {
12210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12211 }
12212 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12213 {
12214 PyThreadState* __tstate = wxPyBeginAllowThreads();
12215 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
12216 wxPyEndAllowThreads(__tstate);
12217 if (PyErr_Occurred()) SWIG_fail;
12218 }
12219 {
12220 #if wxUSE_UNICODE
12221 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12222 #else
12223 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12224 #endif
12225 }
12226 return resultobj;
12227 fail:
12228 return NULL;
12229 }
12230
12231
12232 SWIGINTERN PyObject *_wrap_TextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12233 PyObject *resultobj = 0;
12234 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12235 void *argp1 = 0 ;
12236 int res1 = 0 ;
12237 PyObject *swig_obj[1] ;
12238
12239 if (!args) SWIG_fail;
12240 swig_obj[0] = args;
12241 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12242 if (!SWIG_IsOK(res1)) {
12243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Clear" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12244 }
12245 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12246 {
12247 PyThreadState* __tstate = wxPyBeginAllowThreads();
12248 (arg1)->Clear();
12249 wxPyEndAllowThreads(__tstate);
12250 if (PyErr_Occurred()) SWIG_fail;
12251 }
12252 resultobj = SWIG_Py_Void();
12253 return resultobj;
12254 fail:
12255 return NULL;
12256 }
12257
12258
12259 SWIGINTERN PyObject *_wrap_TextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12260 PyObject *resultobj = 0;
12261 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12262 long arg2 ;
12263 long arg3 ;
12264 wxString *arg4 = 0 ;
12265 void *argp1 = 0 ;
12266 int res1 = 0 ;
12267 long val2 ;
12268 int ecode2 = 0 ;
12269 long val3 ;
12270 int ecode3 = 0 ;
12271 bool temp4 = false ;
12272 PyObject * obj0 = 0 ;
12273 PyObject * obj1 = 0 ;
12274 PyObject * obj2 = 0 ;
12275 PyObject * obj3 = 0 ;
12276 char * kwnames[] = {
12277 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
12278 };
12279
12280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12282 if (!SWIG_IsOK(res1)) {
12283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Replace" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12284 }
12285 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12286 ecode2 = SWIG_AsVal_long(obj1, &val2);
12287 if (!SWIG_IsOK(ecode2)) {
12288 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Replace" "', expected argument " "2"" of type '" "long""'");
12289 }
12290 arg2 = static_cast< long >(val2);
12291 ecode3 = SWIG_AsVal_long(obj2, &val3);
12292 if (!SWIG_IsOK(ecode3)) {
12293 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Replace" "', expected argument " "3"" of type '" "long""'");
12294 }
12295 arg3 = static_cast< long >(val3);
12296 {
12297 arg4 = wxString_in_helper(obj3);
12298 if (arg4 == NULL) SWIG_fail;
12299 temp4 = true;
12300 }
12301 {
12302 PyThreadState* __tstate = wxPyBeginAllowThreads();
12303 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
12304 wxPyEndAllowThreads(__tstate);
12305 if (PyErr_Occurred()) SWIG_fail;
12306 }
12307 resultobj = SWIG_Py_Void();
12308 {
12309 if (temp4)
12310 delete arg4;
12311 }
12312 return resultobj;
12313 fail:
12314 {
12315 if (temp4)
12316 delete arg4;
12317 }
12318 return NULL;
12319 }
12320
12321
12322 SWIGINTERN PyObject *_wrap_TextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12323 PyObject *resultobj = 0;
12324 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12325 long arg2 ;
12326 long arg3 ;
12327 void *argp1 = 0 ;
12328 int res1 = 0 ;
12329 long val2 ;
12330 int ecode2 = 0 ;
12331 long val3 ;
12332 int ecode3 = 0 ;
12333 PyObject * obj0 = 0 ;
12334 PyObject * obj1 = 0 ;
12335 PyObject * obj2 = 0 ;
12336 char * kwnames[] = {
12337 (char *) "self",(char *) "from",(char *) "to", NULL
12338 };
12339
12340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12342 if (!SWIG_IsOK(res1)) {
12343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Remove" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12344 }
12345 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12346 ecode2 = SWIG_AsVal_long(obj1, &val2);
12347 if (!SWIG_IsOK(ecode2)) {
12348 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Remove" "', expected argument " "2"" of type '" "long""'");
12349 }
12350 arg2 = static_cast< long >(val2);
12351 ecode3 = SWIG_AsVal_long(obj2, &val3);
12352 if (!SWIG_IsOK(ecode3)) {
12353 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Remove" "', expected argument " "3"" of type '" "long""'");
12354 }
12355 arg3 = static_cast< long >(val3);
12356 {
12357 PyThreadState* __tstate = wxPyBeginAllowThreads();
12358 (arg1)->Remove(arg2,arg3);
12359 wxPyEndAllowThreads(__tstate);
12360 if (PyErr_Occurred()) SWIG_fail;
12361 }
12362 resultobj = SWIG_Py_Void();
12363 return resultobj;
12364 fail:
12365 return NULL;
12366 }
12367
12368
12369 SWIGINTERN PyObject *_wrap_TextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12370 PyObject *resultobj = 0;
12371 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12372 wxString *arg2 = 0 ;
12373 bool result;
12374 void *argp1 = 0 ;
12375 int res1 = 0 ;
12376 bool temp2 = false ;
12377 PyObject * obj0 = 0 ;
12378 PyObject * obj1 = 0 ;
12379 char * kwnames[] = {
12380 (char *) "self",(char *) "file", NULL
12381 };
12382
12383 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) SWIG_fail;
12384 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12385 if (!SWIG_IsOK(res1)) {
12386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12387 }
12388 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12389 {
12390 arg2 = wxString_in_helper(obj1);
12391 if (arg2 == NULL) SWIG_fail;
12392 temp2 = true;
12393 }
12394 {
12395 PyThreadState* __tstate = wxPyBeginAllowThreads();
12396 result = (bool)(arg1)->LoadFile((wxString const &)*arg2);
12397 wxPyEndAllowThreads(__tstate);
12398 if (PyErr_Occurred()) SWIG_fail;
12399 }
12400 {
12401 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12402 }
12403 {
12404 if (temp2)
12405 delete arg2;
12406 }
12407 return resultobj;
12408 fail:
12409 {
12410 if (temp2)
12411 delete arg2;
12412 }
12413 return NULL;
12414 }
12415
12416
12417 SWIGINTERN PyObject *_wrap_TextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12418 PyObject *resultobj = 0;
12419 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12420 wxString const &arg2_defvalue = wxPyEmptyString ;
12421 wxString *arg2 = (wxString *) &arg2_defvalue ;
12422 bool result;
12423 void *argp1 = 0 ;
12424 int res1 = 0 ;
12425 bool temp2 = false ;
12426 PyObject * obj0 = 0 ;
12427 PyObject * obj1 = 0 ;
12428 char * kwnames[] = {
12429 (char *) "self",(char *) "file", NULL
12430 };
12431
12432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) SWIG_fail;
12433 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12434 if (!SWIG_IsOK(res1)) {
12435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12436 }
12437 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12438 if (obj1) {
12439 {
12440 arg2 = wxString_in_helper(obj1);
12441 if (arg2 == NULL) SWIG_fail;
12442 temp2 = true;
12443 }
12444 }
12445 {
12446 PyThreadState* __tstate = wxPyBeginAllowThreads();
12447 result = (bool)(arg1)->SaveFile((wxString const &)*arg2);
12448 wxPyEndAllowThreads(__tstate);
12449 if (PyErr_Occurred()) SWIG_fail;
12450 }
12451 {
12452 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12453 }
12454 {
12455 if (temp2)
12456 delete arg2;
12457 }
12458 return resultobj;
12459 fail:
12460 {
12461 if (temp2)
12462 delete arg2;
12463 }
12464 return NULL;
12465 }
12466
12467
12468 SWIGINTERN PyObject *_wrap_TextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12469 PyObject *resultobj = 0;
12470 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12471 void *argp1 = 0 ;
12472 int res1 = 0 ;
12473 PyObject *swig_obj[1] ;
12474
12475 if (!args) SWIG_fail;
12476 swig_obj[0] = args;
12477 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12478 if (!SWIG_IsOK(res1)) {
12479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12480 }
12481 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12482 {
12483 PyThreadState* __tstate = wxPyBeginAllowThreads();
12484 (arg1)->MarkDirty();
12485 wxPyEndAllowThreads(__tstate);
12486 if (PyErr_Occurred()) SWIG_fail;
12487 }
12488 resultobj = SWIG_Py_Void();
12489 return resultobj;
12490 fail:
12491 return NULL;
12492 }
12493
12494
12495 SWIGINTERN PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12496 PyObject *resultobj = 0;
12497 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12498 void *argp1 = 0 ;
12499 int res1 = 0 ;
12500 PyObject *swig_obj[1] ;
12501
12502 if (!args) SWIG_fail;
12503 swig_obj[0] = args;
12504 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12505 if (!SWIG_IsOK(res1)) {
12506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12507 }
12508 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12509 {
12510 PyThreadState* __tstate = wxPyBeginAllowThreads();
12511 (arg1)->DiscardEdits();
12512 wxPyEndAllowThreads(__tstate);
12513 if (PyErr_Occurred()) SWIG_fail;
12514 }
12515 resultobj = SWIG_Py_Void();
12516 return resultobj;
12517 fail:
12518 return NULL;
12519 }
12520
12521
12522 SWIGINTERN PyObject *_wrap_TextCtrl_SetModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12523 PyObject *resultobj = 0;
12524 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12525 bool arg2 ;
12526 void *argp1 = 0 ;
12527 int res1 = 0 ;
12528 bool val2 ;
12529 int ecode2 = 0 ;
12530 PyObject * obj0 = 0 ;
12531 PyObject * obj1 = 0 ;
12532 char * kwnames[] = {
12533 (char *) "self",(char *) "modified", NULL
12534 };
12535
12536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetModified",kwnames,&obj0,&obj1)) SWIG_fail;
12537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12538 if (!SWIG_IsOK(res1)) {
12539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetModified" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12540 }
12541 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12542 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12543 if (!SWIG_IsOK(ecode2)) {
12544 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetModified" "', expected argument " "2"" of type '" "bool""'");
12545 }
12546 arg2 = static_cast< bool >(val2);
12547 {
12548 PyThreadState* __tstate = wxPyBeginAllowThreads();
12549 (arg1)->SetModified(arg2);
12550 wxPyEndAllowThreads(__tstate);
12551 if (PyErr_Occurred()) SWIG_fail;
12552 }
12553 resultobj = SWIG_Py_Void();
12554 return resultobj;
12555 fail:
12556 return NULL;
12557 }
12558
12559
12560 SWIGINTERN PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12561 PyObject *resultobj = 0;
12562 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12563 unsigned long arg2 ;
12564 void *argp1 = 0 ;
12565 int res1 = 0 ;
12566 unsigned long val2 ;
12567 int ecode2 = 0 ;
12568 PyObject * obj0 = 0 ;
12569 PyObject * obj1 = 0 ;
12570 char * kwnames[] = {
12571 (char *) "self",(char *) "len", NULL
12572 };
12573
12574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail;
12575 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12576 if (!SWIG_IsOK(res1)) {
12577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12578 }
12579 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12580 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
12581 if (!SWIG_IsOK(ecode2)) {
12582 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'");
12583 }
12584 arg2 = static_cast< unsigned long >(val2);
12585 {
12586 PyThreadState* __tstate = wxPyBeginAllowThreads();
12587 (arg1)->SetMaxLength(arg2);
12588 wxPyEndAllowThreads(__tstate);
12589 if (PyErr_Occurred()) SWIG_fail;
12590 }
12591 resultobj = SWIG_Py_Void();
12592 return resultobj;
12593 fail:
12594 return NULL;
12595 }
12596
12597
12598 SWIGINTERN PyObject *_wrap_TextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12599 PyObject *resultobj = 0;
12600 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12601 wxString *arg2 = 0 ;
12602 void *argp1 = 0 ;
12603 int res1 = 0 ;
12604 bool temp2 = false ;
12605 PyObject * obj0 = 0 ;
12606 PyObject * obj1 = 0 ;
12607 char * kwnames[] = {
12608 (char *) "self",(char *) "text", NULL
12609 };
12610
12611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail;
12612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12613 if (!SWIG_IsOK(res1)) {
12614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_WriteText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12615 }
12616 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12617 {
12618 arg2 = wxString_in_helper(obj1);
12619 if (arg2 == NULL) SWIG_fail;
12620 temp2 = true;
12621 }
12622 {
12623 PyThreadState* __tstate = wxPyBeginAllowThreads();
12624 (arg1)->WriteText((wxString const &)*arg2);
12625 wxPyEndAllowThreads(__tstate);
12626 if (PyErr_Occurred()) SWIG_fail;
12627 }
12628 resultobj = SWIG_Py_Void();
12629 {
12630 if (temp2)
12631 delete arg2;
12632 }
12633 return resultobj;
12634 fail:
12635 {
12636 if (temp2)
12637 delete arg2;
12638 }
12639 return NULL;
12640 }
12641
12642
12643 SWIGINTERN PyObject *_wrap_TextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12644 PyObject *resultobj = 0;
12645 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12646 wxString *arg2 = 0 ;
12647 void *argp1 = 0 ;
12648 int res1 = 0 ;
12649 bool temp2 = false ;
12650 PyObject * obj0 = 0 ;
12651 PyObject * obj1 = 0 ;
12652 char * kwnames[] = {
12653 (char *) "self",(char *) "text", NULL
12654 };
12655
12656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail;
12657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12658 if (!SWIG_IsOK(res1)) {
12659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_AppendText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12660 }
12661 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12662 {
12663 arg2 = wxString_in_helper(obj1);
12664 if (arg2 == NULL) SWIG_fail;
12665 temp2 = true;
12666 }
12667 {
12668 PyThreadState* __tstate = wxPyBeginAllowThreads();
12669 (arg1)->AppendText((wxString const &)*arg2);
12670 wxPyEndAllowThreads(__tstate);
12671 if (PyErr_Occurred()) SWIG_fail;
12672 }
12673 resultobj = SWIG_Py_Void();
12674 {
12675 if (temp2)
12676 delete arg2;
12677 }
12678 return resultobj;
12679 fail:
12680 {
12681 if (temp2)
12682 delete arg2;
12683 }
12684 return NULL;
12685 }
12686
12687
12688 SWIGINTERN PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12689 PyObject *resultobj = 0;
12690 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12691 wxKeyEvent *arg2 = 0 ;
12692 bool result;
12693 void *argp1 = 0 ;
12694 int res1 = 0 ;
12695 void *argp2 = 0 ;
12696 int res2 = 0 ;
12697 PyObject * obj0 = 0 ;
12698 PyObject * obj1 = 0 ;
12699 char * kwnames[] = {
12700 (char *) "self",(char *) "event", NULL
12701 };
12702
12703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) SWIG_fail;
12704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12705 if (!SWIG_IsOK(res1)) {
12706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12707 }
12708 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12709 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
12710 if (!SWIG_IsOK(res2)) {
12711 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12712 }
12713 if (!argp2) {
12714 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12715 }
12716 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
12717 {
12718 PyThreadState* __tstate = wxPyBeginAllowThreads();
12719 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
12720 wxPyEndAllowThreads(__tstate);
12721 if (PyErr_Occurred()) SWIG_fail;
12722 }
12723 {
12724 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12725 }
12726 return resultobj;
12727 fail:
12728 return NULL;
12729 }
12730
12731
12732 SWIGINTERN PyObject *_wrap_TextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12733 PyObject *resultobj = 0;
12734 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12735 long arg2 ;
12736 long arg3 ;
12737 wxTextAttr *arg4 = 0 ;
12738 bool result;
12739 void *argp1 = 0 ;
12740 int res1 = 0 ;
12741 long val2 ;
12742 int ecode2 = 0 ;
12743 long val3 ;
12744 int ecode3 = 0 ;
12745 void *argp4 = 0 ;
12746 int res4 = 0 ;
12747 PyObject * obj0 = 0 ;
12748 PyObject * obj1 = 0 ;
12749 PyObject * obj2 = 0 ;
12750 PyObject * obj3 = 0 ;
12751 char * kwnames[] = {
12752 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
12753 };
12754
12755 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12756 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12757 if (!SWIG_IsOK(res1)) {
12758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12759 }
12760 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12761 ecode2 = SWIG_AsVal_long(obj1, &val2);
12762 if (!SWIG_IsOK(ecode2)) {
12763 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetStyle" "', expected argument " "2"" of type '" "long""'");
12764 }
12765 arg2 = static_cast< long >(val2);
12766 ecode3 = SWIG_AsVal_long(obj2, &val3);
12767 if (!SWIG_IsOK(ecode3)) {
12768 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetStyle" "', expected argument " "3"" of type '" "long""'");
12769 }
12770 arg3 = static_cast< long >(val3);
12771 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxTextAttr, 0 | 0);
12772 if (!SWIG_IsOK(res4)) {
12773 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12774 }
12775 if (!argp4) {
12776 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12777 }
12778 arg4 = reinterpret_cast< wxTextAttr * >(argp4);
12779 {
12780 PyThreadState* __tstate = wxPyBeginAllowThreads();
12781 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
12782 wxPyEndAllowThreads(__tstate);
12783 if (PyErr_Occurred()) SWIG_fail;
12784 }
12785 {
12786 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12787 }
12788 return resultobj;
12789 fail:
12790 return NULL;
12791 }
12792
12793
12794 SWIGINTERN PyObject *_wrap_TextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12795 PyObject *resultobj = 0;
12796 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12797 long arg2 ;
12798 wxTextAttr *arg3 = 0 ;
12799 bool result;
12800 void *argp1 = 0 ;
12801 int res1 = 0 ;
12802 long val2 ;
12803 int ecode2 = 0 ;
12804 void *argp3 = 0 ;
12805 int res3 = 0 ;
12806 PyObject * obj0 = 0 ;
12807 PyObject * obj1 = 0 ;
12808 PyObject * obj2 = 0 ;
12809 char * kwnames[] = {
12810 (char *) "self",(char *) "position",(char *) "style", NULL
12811 };
12812
12813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12815 if (!SWIG_IsOK(res1)) {
12816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12817 }
12818 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12819 ecode2 = SWIG_AsVal_long(obj1, &val2);
12820 if (!SWIG_IsOK(ecode2)) {
12821 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'");
12822 }
12823 arg2 = static_cast< long >(val2);
12824 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTextAttr, 0 );
12825 if (!SWIG_IsOK(res3)) {
12826 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12827 }
12828 if (!argp3) {
12829 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12830 }
12831 arg3 = reinterpret_cast< wxTextAttr * >(argp3);
12832 {
12833 PyThreadState* __tstate = wxPyBeginAllowThreads();
12834 result = (bool)(arg1)->GetStyle(arg2,*arg3);
12835 wxPyEndAllowThreads(__tstate);
12836 if (PyErr_Occurred()) SWIG_fail;
12837 }
12838 {
12839 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12840 }
12841 return resultobj;
12842 fail:
12843 return NULL;
12844 }
12845
12846
12847 SWIGINTERN PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12848 PyObject *resultobj = 0;
12849 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12850 wxTextAttr *arg2 = 0 ;
12851 bool result;
12852 void *argp1 = 0 ;
12853 int res1 = 0 ;
12854 void *argp2 = 0 ;
12855 int res2 = 0 ;
12856 PyObject * obj0 = 0 ;
12857 PyObject * obj1 = 0 ;
12858 char * kwnames[] = {
12859 (char *) "self",(char *) "style", NULL
12860 };
12861
12862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12864 if (!SWIG_IsOK(res1)) {
12865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12866 }
12867 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12868 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
12869 if (!SWIG_IsOK(res2)) {
12870 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12871 }
12872 if (!argp2) {
12873 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12874 }
12875 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
12876 {
12877 PyThreadState* __tstate = wxPyBeginAllowThreads();
12878 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
12879 wxPyEndAllowThreads(__tstate);
12880 if (PyErr_Occurred()) SWIG_fail;
12881 }
12882 {
12883 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12884 }
12885 return resultobj;
12886 fail:
12887 return NULL;
12888 }
12889
12890
12891 SWIGINTERN PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12892 PyObject *resultobj = 0;
12893 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12894 wxTextAttr *result = 0 ;
12895 void *argp1 = 0 ;
12896 int res1 = 0 ;
12897 PyObject *swig_obj[1] ;
12898
12899 if (!args) SWIG_fail;
12900 swig_obj[0] = args;
12901 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12902 if (!SWIG_IsOK(res1)) {
12903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12904 }
12905 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12906 {
12907 PyThreadState* __tstate = wxPyBeginAllowThreads();
12908 {
12909 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
12910 result = (wxTextAttr *) &_result_ref;
12911 }
12912 wxPyEndAllowThreads(__tstate);
12913 if (PyErr_Occurred()) SWIG_fail;
12914 }
12915 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, 0 | 0 );
12916 return resultobj;
12917 fail:
12918 return NULL;
12919 }
12920
12921
12922 SWIGINTERN PyObject *_wrap_TextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12923 PyObject *resultobj = 0;
12924 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12925 long arg2 ;
12926 long arg3 ;
12927 long result;
12928 void *argp1 = 0 ;
12929 int res1 = 0 ;
12930 long val2 ;
12931 int ecode2 = 0 ;
12932 long val3 ;
12933 int ecode3 = 0 ;
12934 PyObject * obj0 = 0 ;
12935 PyObject * obj1 = 0 ;
12936 PyObject * obj2 = 0 ;
12937 char * kwnames[] = {
12938 (char *) "self",(char *) "x",(char *) "y", NULL
12939 };
12940
12941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12943 if (!SWIG_IsOK(res1)) {
12944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12945 }
12946 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12947 ecode2 = SWIG_AsVal_long(obj1, &val2);
12948 if (!SWIG_IsOK(ecode2)) {
12949 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'");
12950 }
12951 arg2 = static_cast< long >(val2);
12952 ecode3 = SWIG_AsVal_long(obj2, &val3);
12953 if (!SWIG_IsOK(ecode3)) {
12954 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'");
12955 }
12956 arg3 = static_cast< long >(val3);
12957 {
12958 PyThreadState* __tstate = wxPyBeginAllowThreads();
12959 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
12960 wxPyEndAllowThreads(__tstate);
12961 if (PyErr_Occurred()) SWIG_fail;
12962 }
12963 resultobj = SWIG_From_long(static_cast< long >(result));
12964 return resultobj;
12965 fail:
12966 return NULL;
12967 }
12968
12969
12970 SWIGINTERN PyObject *_wrap_TextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12971 PyObject *resultobj = 0;
12972 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12973 long arg2 ;
12974 long *arg3 = (long *) 0 ;
12975 long *arg4 = (long *) 0 ;
12976 void *argp1 = 0 ;
12977 int res1 = 0 ;
12978 long val2 ;
12979 int ecode2 = 0 ;
12980 long temp3 ;
12981 int res3 = SWIG_TMPOBJ ;
12982 long temp4 ;
12983 int res4 = SWIG_TMPOBJ ;
12984 PyObject * obj0 = 0 ;
12985 PyObject * obj1 = 0 ;
12986 char * kwnames[] = {
12987 (char *) "self",(char *) "pos", NULL
12988 };
12989
12990 arg3 = &temp3;
12991 arg4 = &temp4;
12992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail;
12993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12994 if (!SWIG_IsOK(res1)) {
12995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12996 }
12997 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12998 ecode2 = SWIG_AsVal_long(obj1, &val2);
12999 if (!SWIG_IsOK(ecode2)) {
13000 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'");
13001 }
13002 arg2 = static_cast< long >(val2);
13003 {
13004 PyThreadState* __tstate = wxPyBeginAllowThreads();
13005 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
13006 wxPyEndAllowThreads(__tstate);
13007 if (PyErr_Occurred()) SWIG_fail;
13008 }
13009 resultobj = SWIG_Py_Void();
13010 if (SWIG_IsTmpObj(res3)) {
13011 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13012 } else {
13013 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13014 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13015 }
13016 if (SWIG_IsTmpObj(res4)) {
13017 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13018 } else {
13019 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13020 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13021 }
13022 return resultobj;
13023 fail:
13024 return NULL;
13025 }
13026
13027
13028 SWIGINTERN PyObject *_wrap_TextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13029 PyObject *resultobj = 0;
13030 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13031 long arg2 ;
13032 void *argp1 = 0 ;
13033 int res1 = 0 ;
13034 long val2 ;
13035 int ecode2 = 0 ;
13036 PyObject * obj0 = 0 ;
13037 PyObject * obj1 = 0 ;
13038 char * kwnames[] = {
13039 (char *) "self",(char *) "pos", NULL
13040 };
13041
13042 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail;
13043 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13044 if (!SWIG_IsOK(res1)) {
13045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13046 }
13047 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13048 ecode2 = SWIG_AsVal_long(obj1, &val2);
13049 if (!SWIG_IsOK(ecode2)) {
13050 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'");
13051 }
13052 arg2 = static_cast< long >(val2);
13053 {
13054 PyThreadState* __tstate = wxPyBeginAllowThreads();
13055 (arg1)->ShowPosition(arg2);
13056 wxPyEndAllowThreads(__tstate);
13057 if (PyErr_Occurred()) SWIG_fail;
13058 }
13059 resultobj = SWIG_Py_Void();
13060 return resultobj;
13061 fail:
13062 return NULL;
13063 }
13064
13065
13066 SWIGINTERN PyObject *_wrap_TextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13067 PyObject *resultobj = 0;
13068 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13069 wxPoint *arg2 = 0 ;
13070 long *arg3 = (long *) 0 ;
13071 long *arg4 = (long *) 0 ;
13072 wxTextCtrlHitTestResult result;
13073 void *argp1 = 0 ;
13074 int res1 = 0 ;
13075 wxPoint temp2 ;
13076 long temp3 ;
13077 int res3 = SWIG_TMPOBJ ;
13078 long temp4 ;
13079 int res4 = SWIG_TMPOBJ ;
13080 PyObject * obj0 = 0 ;
13081 PyObject * obj1 = 0 ;
13082 char * kwnames[] = {
13083 (char *) "self",(char *) "pt", NULL
13084 };
13085
13086 arg3 = &temp3;
13087 arg4 = &temp4;
13088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
13089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13090 if (!SWIG_IsOK(res1)) {
13091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTest" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13092 }
13093 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13094 {
13095 arg2 = &temp2;
13096 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13097 }
13098 {
13099 PyThreadState* __tstate = wxPyBeginAllowThreads();
13100 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
13101 wxPyEndAllowThreads(__tstate);
13102 if (PyErr_Occurred()) SWIG_fail;
13103 }
13104 resultobj = SWIG_From_int(static_cast< int >(result));
13105 if (SWIG_IsTmpObj(res3)) {
13106 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13107 } else {
13108 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13109 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13110 }
13111 if (SWIG_IsTmpObj(res4)) {
13112 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13113 } else {
13114 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13115 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13116 }
13117 return resultobj;
13118 fail:
13119 return NULL;
13120 }
13121
13122
13123 SWIGINTERN PyObject *_wrap_TextCtrl_HitTestPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13124 PyObject *resultobj = 0;
13125 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13126 wxPoint *arg2 = 0 ;
13127 long *arg3 = (long *) 0 ;
13128 wxTextCtrlHitTestResult result;
13129 void *argp1 = 0 ;
13130 int res1 = 0 ;
13131 wxPoint temp2 ;
13132 long temp3 ;
13133 int res3 = SWIG_TMPOBJ ;
13134 PyObject * obj0 = 0 ;
13135 PyObject * obj1 = 0 ;
13136 char * kwnames[] = {
13137 (char *) "self",(char *) "pt", NULL
13138 };
13139
13140 arg3 = &temp3;
13141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) SWIG_fail;
13142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13143 if (!SWIG_IsOK(res1)) {
13144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTestPos" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13145 }
13146 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13147 {
13148 arg2 = &temp2;
13149 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13150 }
13151 {
13152 PyThreadState* __tstate = wxPyBeginAllowThreads();
13153 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
13154 wxPyEndAllowThreads(__tstate);
13155 if (PyErr_Occurred()) SWIG_fail;
13156 }
13157 resultobj = SWIG_From_int(static_cast< int >(result));
13158 if (SWIG_IsTmpObj(res3)) {
13159 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13160 } else {
13161 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13162 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13163 }
13164 return resultobj;
13165 fail:
13166 return NULL;
13167 }
13168
13169
13170 SWIGINTERN PyObject *_wrap_TextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13171 PyObject *resultobj = 0;
13172 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13173 void *argp1 = 0 ;
13174 int res1 = 0 ;
13175 PyObject *swig_obj[1] ;
13176
13177 if (!args) SWIG_fail;
13178 swig_obj[0] = args;
13179 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13180 if (!SWIG_IsOK(res1)) {
13181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Copy" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13182 }
13183 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13184 {
13185 PyThreadState* __tstate = wxPyBeginAllowThreads();
13186 (arg1)->Copy();
13187 wxPyEndAllowThreads(__tstate);
13188 if (PyErr_Occurred()) SWIG_fail;
13189 }
13190 resultobj = SWIG_Py_Void();
13191 return resultobj;
13192 fail:
13193 return NULL;
13194 }
13195
13196
13197 SWIGINTERN PyObject *_wrap_TextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13198 PyObject *resultobj = 0;
13199 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13200 void *argp1 = 0 ;
13201 int res1 = 0 ;
13202 PyObject *swig_obj[1] ;
13203
13204 if (!args) SWIG_fail;
13205 swig_obj[0] = args;
13206 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13207 if (!SWIG_IsOK(res1)) {
13208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Cut" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13209 }
13210 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13211 {
13212 PyThreadState* __tstate = wxPyBeginAllowThreads();
13213 (arg1)->Cut();
13214 wxPyEndAllowThreads(__tstate);
13215 if (PyErr_Occurred()) SWIG_fail;
13216 }
13217 resultobj = SWIG_Py_Void();
13218 return resultobj;
13219 fail:
13220 return NULL;
13221 }
13222
13223
13224 SWIGINTERN PyObject *_wrap_TextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13225 PyObject *resultobj = 0;
13226 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13227 void *argp1 = 0 ;
13228 int res1 = 0 ;
13229 PyObject *swig_obj[1] ;
13230
13231 if (!args) SWIG_fail;
13232 swig_obj[0] = args;
13233 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13234 if (!SWIG_IsOK(res1)) {
13235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Paste" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13236 }
13237 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13238 {
13239 PyThreadState* __tstate = wxPyBeginAllowThreads();
13240 (arg1)->Paste();
13241 wxPyEndAllowThreads(__tstate);
13242 if (PyErr_Occurred()) SWIG_fail;
13243 }
13244 resultobj = SWIG_Py_Void();
13245 return resultobj;
13246 fail:
13247 return NULL;
13248 }
13249
13250
13251 SWIGINTERN PyObject *_wrap_TextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13252 PyObject *resultobj = 0;
13253 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13254 bool result;
13255 void *argp1 = 0 ;
13256 int res1 = 0 ;
13257 PyObject *swig_obj[1] ;
13258
13259 if (!args) SWIG_fail;
13260 swig_obj[0] = args;
13261 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13262 if (!SWIG_IsOK(res1)) {
13263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13264 }
13265 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13266 {
13267 PyThreadState* __tstate = wxPyBeginAllowThreads();
13268 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
13269 wxPyEndAllowThreads(__tstate);
13270 if (PyErr_Occurred()) SWIG_fail;
13271 }
13272 {
13273 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13274 }
13275 return resultobj;
13276 fail:
13277 return NULL;
13278 }
13279
13280
13281 SWIGINTERN PyObject *_wrap_TextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13282 PyObject *resultobj = 0;
13283 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13284 bool result;
13285 void *argp1 = 0 ;
13286 int res1 = 0 ;
13287 PyObject *swig_obj[1] ;
13288
13289 if (!args) SWIG_fail;
13290 swig_obj[0] = args;
13291 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13292 if (!SWIG_IsOK(res1)) {
13293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCut" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13294 }
13295 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13296 {
13297 PyThreadState* __tstate = wxPyBeginAllowThreads();
13298 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
13299 wxPyEndAllowThreads(__tstate);
13300 if (PyErr_Occurred()) SWIG_fail;
13301 }
13302 {
13303 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13304 }
13305 return resultobj;
13306 fail:
13307 return NULL;
13308 }
13309
13310
13311 SWIGINTERN PyObject *_wrap_TextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13312 PyObject *resultobj = 0;
13313 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13314 bool result;
13315 void *argp1 = 0 ;
13316 int res1 = 0 ;
13317 PyObject *swig_obj[1] ;
13318
13319 if (!args) SWIG_fail;
13320 swig_obj[0] = args;
13321 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13322 if (!SWIG_IsOK(res1)) {
13323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13324 }
13325 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13326 {
13327 PyThreadState* __tstate = wxPyBeginAllowThreads();
13328 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
13329 wxPyEndAllowThreads(__tstate);
13330 if (PyErr_Occurred()) SWIG_fail;
13331 }
13332 {
13333 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13334 }
13335 return resultobj;
13336 fail:
13337 return NULL;
13338 }
13339
13340
13341 SWIGINTERN PyObject *_wrap_TextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13342 PyObject *resultobj = 0;
13343 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13344 void *argp1 = 0 ;
13345 int res1 = 0 ;
13346 PyObject *swig_obj[1] ;
13347
13348 if (!args) SWIG_fail;
13349 swig_obj[0] = args;
13350 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13351 if (!SWIG_IsOK(res1)) {
13352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Undo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13353 }
13354 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13355 {
13356 PyThreadState* __tstate = wxPyBeginAllowThreads();
13357 (arg1)->Undo();
13358 wxPyEndAllowThreads(__tstate);
13359 if (PyErr_Occurred()) SWIG_fail;
13360 }
13361 resultobj = SWIG_Py_Void();
13362 return resultobj;
13363 fail:
13364 return NULL;
13365 }
13366
13367
13368 SWIGINTERN PyObject *_wrap_TextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13369 PyObject *resultobj = 0;
13370 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13371 void *argp1 = 0 ;
13372 int res1 = 0 ;
13373 PyObject *swig_obj[1] ;
13374
13375 if (!args) SWIG_fail;
13376 swig_obj[0] = args;
13377 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13378 if (!SWIG_IsOK(res1)) {
13379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Redo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13380 }
13381 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13382 {
13383 PyThreadState* __tstate = wxPyBeginAllowThreads();
13384 (arg1)->Redo();
13385 wxPyEndAllowThreads(__tstate);
13386 if (PyErr_Occurred()) SWIG_fail;
13387 }
13388 resultobj = SWIG_Py_Void();
13389 return resultobj;
13390 fail:
13391 return NULL;
13392 }
13393
13394
13395 SWIGINTERN PyObject *_wrap_TextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13396 PyObject *resultobj = 0;
13397 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13398 bool result;
13399 void *argp1 = 0 ;
13400 int res1 = 0 ;
13401 PyObject *swig_obj[1] ;
13402
13403 if (!args) SWIG_fail;
13404 swig_obj[0] = args;
13405 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13406 if (!SWIG_IsOK(res1)) {
13407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13408 }
13409 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13410 {
13411 PyThreadState* __tstate = wxPyBeginAllowThreads();
13412 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
13413 wxPyEndAllowThreads(__tstate);
13414 if (PyErr_Occurred()) SWIG_fail;
13415 }
13416 {
13417 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13418 }
13419 return resultobj;
13420 fail:
13421 return NULL;
13422 }
13423
13424
13425 SWIGINTERN PyObject *_wrap_TextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13426 PyObject *resultobj = 0;
13427 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13428 bool result;
13429 void *argp1 = 0 ;
13430 int res1 = 0 ;
13431 PyObject *swig_obj[1] ;
13432
13433 if (!args) SWIG_fail;
13434 swig_obj[0] = args;
13435 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13436 if (!SWIG_IsOK(res1)) {
13437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13438 }
13439 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13440 {
13441 PyThreadState* __tstate = wxPyBeginAllowThreads();
13442 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
13443 wxPyEndAllowThreads(__tstate);
13444 if (PyErr_Occurred()) SWIG_fail;
13445 }
13446 {
13447 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13448 }
13449 return resultobj;
13450 fail:
13451 return NULL;
13452 }
13453
13454
13455 SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13456 PyObject *resultobj = 0;
13457 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13458 long arg2 ;
13459 void *argp1 = 0 ;
13460 int res1 = 0 ;
13461 long val2 ;
13462 int ecode2 = 0 ;
13463 PyObject * obj0 = 0 ;
13464 PyObject * obj1 = 0 ;
13465 char * kwnames[] = {
13466 (char *) "self",(char *) "pos", NULL
13467 };
13468
13469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
13470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13471 if (!SWIG_IsOK(res1)) {
13472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13473 }
13474 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13475 ecode2 = SWIG_AsVal_long(obj1, &val2);
13476 if (!SWIG_IsOK(ecode2)) {
13477 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
13478 }
13479 arg2 = static_cast< long >(val2);
13480 {
13481 PyThreadState* __tstate = wxPyBeginAllowThreads();
13482 (arg1)->SetInsertionPoint(arg2);
13483 wxPyEndAllowThreads(__tstate);
13484 if (PyErr_Occurred()) SWIG_fail;
13485 }
13486 resultobj = SWIG_Py_Void();
13487 return resultobj;
13488 fail:
13489 return NULL;
13490 }
13491
13492
13493 SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13494 PyObject *resultobj = 0;
13495 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13496 void *argp1 = 0 ;
13497 int res1 = 0 ;
13498 PyObject *swig_obj[1] ;
13499
13500 if (!args) SWIG_fail;
13501 swig_obj[0] = args;
13502 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13503 if (!SWIG_IsOK(res1)) {
13504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13505 }
13506 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13507 {
13508 PyThreadState* __tstate = wxPyBeginAllowThreads();
13509 (arg1)->SetInsertionPointEnd();
13510 wxPyEndAllowThreads(__tstate);
13511 if (PyErr_Occurred()) SWIG_fail;
13512 }
13513 resultobj = SWIG_Py_Void();
13514 return resultobj;
13515 fail:
13516 return NULL;
13517 }
13518
13519
13520 SWIGINTERN PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13521 PyObject *resultobj = 0;
13522 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13523 long result;
13524 void *argp1 = 0 ;
13525 int res1 = 0 ;
13526 PyObject *swig_obj[1] ;
13527
13528 if (!args) SWIG_fail;
13529 swig_obj[0] = args;
13530 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13531 if (!SWIG_IsOK(res1)) {
13532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13533 }
13534 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13535 {
13536 PyThreadState* __tstate = wxPyBeginAllowThreads();
13537 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
13538 wxPyEndAllowThreads(__tstate);
13539 if (PyErr_Occurred()) SWIG_fail;
13540 }
13541 resultobj = SWIG_From_long(static_cast< long >(result));
13542 return resultobj;
13543 fail:
13544 return NULL;
13545 }
13546
13547
13548 SWIGINTERN PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13549 PyObject *resultobj = 0;
13550 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13551 long result;
13552 void *argp1 = 0 ;
13553 int res1 = 0 ;
13554 PyObject *swig_obj[1] ;
13555
13556 if (!args) SWIG_fail;
13557 swig_obj[0] = args;
13558 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13559 if (!SWIG_IsOK(res1)) {
13560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13561 }
13562 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13563 {
13564 PyThreadState* __tstate = wxPyBeginAllowThreads();
13565 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
13566 wxPyEndAllowThreads(__tstate);
13567 if (PyErr_Occurred()) SWIG_fail;
13568 }
13569 resultobj = SWIG_From_long(static_cast< long >(result));
13570 return resultobj;
13571 fail:
13572 return NULL;
13573 }
13574
13575
13576 SWIGINTERN PyObject *_wrap_TextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13577 PyObject *resultobj = 0;
13578 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13579 long arg2 ;
13580 long arg3 ;
13581 void *argp1 = 0 ;
13582 int res1 = 0 ;
13583 long val2 ;
13584 int ecode2 = 0 ;
13585 long val3 ;
13586 int ecode3 = 0 ;
13587 PyObject * obj0 = 0 ;
13588 PyObject * obj1 = 0 ;
13589 PyObject * obj2 = 0 ;
13590 char * kwnames[] = {
13591 (char *) "self",(char *) "from",(char *) "to", NULL
13592 };
13593
13594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13595 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13596 if (!SWIG_IsOK(res1)) {
13597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13598 }
13599 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13600 ecode2 = SWIG_AsVal_long(obj1, &val2);
13601 if (!SWIG_IsOK(ecode2)) {
13602 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
13603 }
13604 arg2 = static_cast< long >(val2);
13605 ecode3 = SWIG_AsVal_long(obj2, &val3);
13606 if (!SWIG_IsOK(ecode3)) {
13607 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
13608 }
13609 arg3 = static_cast< long >(val3);
13610 {
13611 PyThreadState* __tstate = wxPyBeginAllowThreads();
13612 (arg1)->SetSelection(arg2,arg3);
13613 wxPyEndAllowThreads(__tstate);
13614 if (PyErr_Occurred()) SWIG_fail;
13615 }
13616 resultobj = SWIG_Py_Void();
13617 return resultobj;
13618 fail:
13619 return NULL;
13620 }
13621
13622
13623 SWIGINTERN PyObject *_wrap_TextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13624 PyObject *resultobj = 0;
13625 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13626 void *argp1 = 0 ;
13627 int res1 = 0 ;
13628 PyObject *swig_obj[1] ;
13629
13630 if (!args) SWIG_fail;
13631 swig_obj[0] = args;
13632 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13633 if (!SWIG_IsOK(res1)) {
13634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13635 }
13636 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13637 {
13638 PyThreadState* __tstate = wxPyBeginAllowThreads();
13639 (arg1)->SelectAll();
13640 wxPyEndAllowThreads(__tstate);
13641 if (PyErr_Occurred()) SWIG_fail;
13642 }
13643 resultobj = SWIG_Py_Void();
13644 return resultobj;
13645 fail:
13646 return NULL;
13647 }
13648
13649
13650 SWIGINTERN PyObject *_wrap_TextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13651 PyObject *resultobj = 0;
13652 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13653 bool arg2 ;
13654 void *argp1 = 0 ;
13655 int res1 = 0 ;
13656 bool val2 ;
13657 int ecode2 = 0 ;
13658 PyObject * obj0 = 0 ;
13659 PyObject * obj1 = 0 ;
13660 char * kwnames[] = {
13661 (char *) "self",(char *) "editable", NULL
13662 };
13663
13664 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
13665 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13666 if (!SWIG_IsOK(res1)) {
13667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13668 }
13669 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13670 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13671 if (!SWIG_IsOK(ecode2)) {
13672 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'");
13673 }
13674 arg2 = static_cast< bool >(val2);
13675 {
13676 PyThreadState* __tstate = wxPyBeginAllowThreads();
13677 (arg1)->SetEditable(arg2);
13678 wxPyEndAllowThreads(__tstate);
13679 if (PyErr_Occurred()) SWIG_fail;
13680 }
13681 resultobj = SWIG_Py_Void();
13682 return resultobj;
13683 fail:
13684 return NULL;
13685 }
13686
13687
13688 SWIGINTERN PyObject *_wrap_TextCtrl_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13689 PyObject *resultobj = 0;
13690 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13691 wxString *arg2 = 0 ;
13692 void *argp1 = 0 ;
13693 int res1 = 0 ;
13694 bool temp2 = false ;
13695 PyObject * obj0 = 0 ;
13696 PyObject * obj1 = 0 ;
13697 char * kwnames[] = {
13698 (char *) "self",(char *) "text", NULL
13699 };
13700
13701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) SWIG_fail;
13702 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13703 if (!SWIG_IsOK(res1)) {
13704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_write" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13705 }
13706 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13707 {
13708 arg2 = wxString_in_helper(obj1);
13709 if (arg2 == NULL) SWIG_fail;
13710 temp2 = true;
13711 }
13712 {
13713 PyThreadState* __tstate = wxPyBeginAllowThreads();
13714 wxTextCtrl_write(arg1,(wxString const &)*arg2);
13715 wxPyEndAllowThreads(__tstate);
13716 if (PyErr_Occurred()) SWIG_fail;
13717 }
13718 resultobj = SWIG_Py_Void();
13719 {
13720 if (temp2)
13721 delete arg2;
13722 }
13723 return resultobj;
13724 fail:
13725 {
13726 if (temp2)
13727 delete arg2;
13728 }
13729 return NULL;
13730 }
13731
13732
13733 SWIGINTERN PyObject *_wrap_TextCtrl_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13734 PyObject *resultobj = 0;
13735 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13736 long arg2 ;
13737 long arg3 ;
13738 wxString result;
13739 void *argp1 = 0 ;
13740 int res1 = 0 ;
13741 long val2 ;
13742 int ecode2 = 0 ;
13743 long val3 ;
13744 int ecode3 = 0 ;
13745 PyObject * obj0 = 0 ;
13746 PyObject * obj1 = 0 ;
13747 PyObject * obj2 = 0 ;
13748 char * kwnames[] = {
13749 (char *) "self",(char *) "from",(char *) "to", NULL
13750 };
13751
13752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13754 if (!SWIG_IsOK(res1)) {
13755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetString" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13756 }
13757 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13758 ecode2 = SWIG_AsVal_long(obj1, &val2);
13759 if (!SWIG_IsOK(ecode2)) {
13760 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetString" "', expected argument " "2"" of type '" "long""'");
13761 }
13762 arg2 = static_cast< long >(val2);
13763 ecode3 = SWIG_AsVal_long(obj2, &val3);
13764 if (!SWIG_IsOK(ecode3)) {
13765 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetString" "', expected argument " "3"" of type '" "long""'");
13766 }
13767 arg3 = static_cast< long >(val3);
13768 {
13769 PyThreadState* __tstate = wxPyBeginAllowThreads();
13770 result = wxTextCtrl_GetString(arg1,arg2,arg3);
13771 wxPyEndAllowThreads(__tstate);
13772 if (PyErr_Occurred()) SWIG_fail;
13773 }
13774 {
13775 #if wxUSE_UNICODE
13776 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13777 #else
13778 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13779 #endif
13780 }
13781 return resultobj;
13782 fail:
13783 return NULL;
13784 }
13785
13786
13787 SWIGINTERN PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13788 PyObject *resultobj = 0;
13789 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
13790 SwigValueWrapper<wxVisualAttributes > result;
13791 int val1 ;
13792 int ecode1 = 0 ;
13793 PyObject * obj0 = 0 ;
13794 char * kwnames[] = {
13795 (char *) "variant", NULL
13796 };
13797
13798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
13799 if (obj0) {
13800 ecode1 = SWIG_AsVal_int(obj0, &val1);
13801 if (!SWIG_IsOK(ecode1)) {
13802 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TextCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
13803 }
13804 arg1 = static_cast< wxWindowVariant >(val1);
13805 }
13806 {
13807 if (!wxPyCheckForApp()) SWIG_fail;
13808 PyThreadState* __tstate = wxPyBeginAllowThreads();
13809 result = wxTextCtrl::GetClassDefaultAttributes(arg1);
13810 wxPyEndAllowThreads(__tstate);
13811 if (PyErr_Occurred()) SWIG_fail;
13812 }
13813 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
13814 return resultobj;
13815 fail:
13816 return NULL;
13817 }
13818
13819
13820 SWIGINTERN PyObject *TextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13821 PyObject *obj;
13822 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13823 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextCtrl, SWIG_NewClientData(obj));
13824 return SWIG_Py_Void();
13825 }
13826
13827 SWIGINTERN PyObject *TextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13828 return SWIG_Python_InitShadowInstance(args);
13829 }
13830
13831 SWIGINTERN PyObject *_wrap_new_TextUrlEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13832 PyObject *resultobj = 0;
13833 int arg1 ;
13834 wxMouseEvent *arg2 = 0 ;
13835 long arg3 ;
13836 long arg4 ;
13837 wxTextUrlEvent *result = 0 ;
13838 int val1 ;
13839 int ecode1 = 0 ;
13840 void *argp2 = 0 ;
13841 int res2 = 0 ;
13842 long val3 ;
13843 int ecode3 = 0 ;
13844 long val4 ;
13845 int ecode4 = 0 ;
13846 PyObject * obj0 = 0 ;
13847 PyObject * obj1 = 0 ;
13848 PyObject * obj2 = 0 ;
13849 PyObject * obj3 = 0 ;
13850 char * kwnames[] = {
13851 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
13852 };
13853
13854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13855 ecode1 = SWIG_AsVal_int(obj0, &val1);
13856 if (!SWIG_IsOK(ecode1)) {
13857 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TextUrlEvent" "', expected argument " "1"" of type '" "int""'");
13858 }
13859 arg1 = static_cast< int >(val1);
13860 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxMouseEvent, 0 | 0);
13861 if (!SWIG_IsOK(res2)) {
13862 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
13863 }
13864 if (!argp2) {
13865 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
13866 }
13867 arg2 = reinterpret_cast< wxMouseEvent * >(argp2);
13868 ecode3 = SWIG_AsVal_long(obj2, &val3);
13869 if (!SWIG_IsOK(ecode3)) {
13870 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TextUrlEvent" "', expected argument " "3"" of type '" "long""'");
13871 }
13872 arg3 = static_cast< long >(val3);
13873 ecode4 = SWIG_AsVal_long(obj3, &val4);
13874 if (!SWIG_IsOK(ecode4)) {
13875 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextUrlEvent" "', expected argument " "4"" of type '" "long""'");
13876 }
13877 arg4 = static_cast< long >(val4);
13878 {
13879 PyThreadState* __tstate = wxPyBeginAllowThreads();
13880 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
13881 wxPyEndAllowThreads(__tstate);
13882 if (PyErr_Occurred()) SWIG_fail;
13883 }
13884 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_NEW | 0 );
13885 return resultobj;
13886 fail:
13887 return NULL;
13888 }
13889
13890
13891 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13892 PyObject *resultobj = 0;
13893 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
13894 wxMouseEvent *result = 0 ;
13895 void *argp1 = 0 ;
13896 int res1 = 0 ;
13897 PyObject *swig_obj[1] ;
13898
13899 if (!args) SWIG_fail;
13900 swig_obj[0] = args;
13901 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
13902 if (!SWIG_IsOK(res1)) {
13903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetMouseEvent" "', expected argument " "1"" of type '" "wxTextUrlEvent *""'");
13904 }
13905 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
13906 {
13907 PyThreadState* __tstate = wxPyBeginAllowThreads();
13908 {
13909 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
13910 result = (wxMouseEvent *) &_result_ref;
13911 }
13912 wxPyEndAllowThreads(__tstate);
13913 if (PyErr_Occurred()) SWIG_fail;
13914 }
13915 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseEvent, 0 | 0 );
13916 return resultobj;
13917 fail:
13918 return NULL;
13919 }
13920
13921
13922 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13923 PyObject *resultobj = 0;
13924 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
13925 long result;
13926 void *argp1 = 0 ;
13927 int res1 = 0 ;
13928 PyObject *swig_obj[1] ;
13929
13930 if (!args) SWIG_fail;
13931 swig_obj[0] = args;
13932 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
13933 if (!SWIG_IsOK(res1)) {
13934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLStart" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
13935 }
13936 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
13937 {
13938 PyThreadState* __tstate = wxPyBeginAllowThreads();
13939 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
13940 wxPyEndAllowThreads(__tstate);
13941 if (PyErr_Occurred()) SWIG_fail;
13942 }
13943 resultobj = SWIG_From_long(static_cast< long >(result));
13944 return resultobj;
13945 fail:
13946 return NULL;
13947 }
13948
13949
13950 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13951 PyObject *resultobj = 0;
13952 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
13953 long result;
13954 void *argp1 = 0 ;
13955 int res1 = 0 ;
13956 PyObject *swig_obj[1] ;
13957
13958 if (!args) SWIG_fail;
13959 swig_obj[0] = args;
13960 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
13961 if (!SWIG_IsOK(res1)) {
13962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLEnd" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
13963 }
13964 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
13965 {
13966 PyThreadState* __tstate = wxPyBeginAllowThreads();
13967 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
13968 wxPyEndAllowThreads(__tstate);
13969 if (PyErr_Occurred()) SWIG_fail;
13970 }
13971 resultobj = SWIG_From_long(static_cast< long >(result));
13972 return resultobj;
13973 fail:
13974 return NULL;
13975 }
13976
13977
13978 SWIGINTERN PyObject *TextUrlEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13979 PyObject *obj;
13980 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13981 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextUrlEvent, SWIG_NewClientData(obj));
13982 return SWIG_Py_Void();
13983 }
13984
13985 SWIGINTERN PyObject *TextUrlEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13986 return SWIG_Python_InitShadowInstance(args);
13987 }
13988
13989 SWIGINTERN int ScrollBarNameStr_set(PyObject *) {
13990 SWIG_Error(SWIG_AttributeError,"Variable ScrollBarNameStr is read-only.");
13991 return 1;
13992 }
13993
13994
13995 SWIGINTERN PyObject *ScrollBarNameStr_get(void) {
13996 PyObject *pyobj = 0;
13997
13998 {
13999 #if wxUSE_UNICODE
14000 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14001 #else
14002 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14003 #endif
14004 }
14005 return pyobj;
14006 }
14007
14008
14009 SWIGINTERN PyObject *_wrap_new_ScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14010 PyObject *resultobj = 0;
14011 wxWindow *arg1 = (wxWindow *) 0 ;
14012 int arg2 = (int) -1 ;
14013 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14014 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14015 wxSize const &arg4_defvalue = wxDefaultSize ;
14016 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14017 long arg5 = (long) wxSB_HORIZONTAL ;
14018 wxValidator const &arg6_defvalue = wxDefaultValidator ;
14019 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
14020 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
14021 wxString *arg7 = (wxString *) &arg7_defvalue ;
14022 wxScrollBar *result = 0 ;
14023 void *argp1 = 0 ;
14024 int res1 = 0 ;
14025 int val2 ;
14026 int ecode2 = 0 ;
14027 wxPoint temp3 ;
14028 wxSize temp4 ;
14029 long val5 ;
14030 int ecode5 = 0 ;
14031 void *argp6 = 0 ;
14032 int res6 = 0 ;
14033 bool temp7 = false ;
14034 PyObject * obj0 = 0 ;
14035 PyObject * obj1 = 0 ;
14036 PyObject * obj2 = 0 ;
14037 PyObject * obj3 = 0 ;
14038 PyObject * obj4 = 0 ;
14039 PyObject * obj5 = 0 ;
14040 PyObject * obj6 = 0 ;
14041 char * kwnames[] = {
14042 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14043 };
14044
14045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14047 if (!SWIG_IsOK(res1)) {
14048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrollBar" "', expected argument " "1"" of type '" "wxWindow *""'");
14049 }
14050 arg1 = reinterpret_cast< wxWindow * >(argp1);
14051 if (obj1) {
14052 ecode2 = SWIG_AsVal_int(obj1, &val2);
14053 if (!SWIG_IsOK(ecode2)) {
14054 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollBar" "', expected argument " "2"" of type '" "int""'");
14055 }
14056 arg2 = static_cast< int >(val2);
14057 }
14058 if (obj2) {
14059 {
14060 arg3 = &temp3;
14061 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14062 }
14063 }
14064 if (obj3) {
14065 {
14066 arg4 = &temp4;
14067 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14068 }
14069 }
14070 if (obj4) {
14071 ecode5 = SWIG_AsVal_long(obj4, &val5);
14072 if (!SWIG_IsOK(ecode5)) {
14073 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrollBar" "', expected argument " "5"" of type '" "long""'");
14074 }
14075 arg5 = static_cast< long >(val5);
14076 }
14077 if (obj5) {
14078 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
14079 if (!SWIG_IsOK(res6)) {
14080 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14081 }
14082 if (!argp6) {
14083 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14084 }
14085 arg6 = reinterpret_cast< wxValidator * >(argp6);
14086 }
14087 if (obj6) {
14088 {
14089 arg7 = wxString_in_helper(obj6);
14090 if (arg7 == NULL) SWIG_fail;
14091 temp7 = true;
14092 }
14093 }
14094 {
14095 if (!wxPyCheckForApp()) SWIG_fail;
14096 PyThreadState* __tstate = wxPyBeginAllowThreads();
14097 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
14098 wxPyEndAllowThreads(__tstate);
14099 if (PyErr_Occurred()) SWIG_fail;
14100 }
14101 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_NEW | 0 );
14102 {
14103 if (temp7)
14104 delete arg7;
14105 }
14106 return resultobj;
14107 fail:
14108 {
14109 if (temp7)
14110 delete arg7;
14111 }
14112 return NULL;
14113 }
14114
14115
14116 SWIGINTERN PyObject *_wrap_new_PreScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14117 PyObject *resultobj = 0;
14118 wxScrollBar *result = 0 ;
14119
14120 if (!SWIG_Python_UnpackTuple(args,"new_PreScrollBar",0,0,0)) SWIG_fail;
14121 {
14122 if (!wxPyCheckForApp()) SWIG_fail;
14123 PyThreadState* __tstate = wxPyBeginAllowThreads();
14124 result = (wxScrollBar *)new wxScrollBar();
14125 wxPyEndAllowThreads(__tstate);
14126 if (PyErr_Occurred()) SWIG_fail;
14127 }
14128 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_OWN | 0 );
14129 return resultobj;
14130 fail:
14131 return NULL;
14132 }
14133
14134
14135 SWIGINTERN PyObject *_wrap_ScrollBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14136 PyObject *resultobj = 0;
14137 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14138 wxWindow *arg2 = (wxWindow *) 0 ;
14139 int arg3 = (int) -1 ;
14140 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14141 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14142 wxSize const &arg5_defvalue = wxDefaultSize ;
14143 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14144 long arg6 = (long) wxSB_HORIZONTAL ;
14145 wxValidator const &arg7_defvalue = wxDefaultValidator ;
14146 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
14147 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
14148 wxString *arg8 = (wxString *) &arg8_defvalue ;
14149 bool result;
14150 void *argp1 = 0 ;
14151 int res1 = 0 ;
14152 void *argp2 = 0 ;
14153 int res2 = 0 ;
14154 int val3 ;
14155 int ecode3 = 0 ;
14156 wxPoint temp4 ;
14157 wxSize temp5 ;
14158 long val6 ;
14159 int ecode6 = 0 ;
14160 void *argp7 = 0 ;
14161 int res7 = 0 ;
14162 bool temp8 = false ;
14163 PyObject * obj0 = 0 ;
14164 PyObject * obj1 = 0 ;
14165 PyObject * obj2 = 0 ;
14166 PyObject * obj3 = 0 ;
14167 PyObject * obj4 = 0 ;
14168 PyObject * obj5 = 0 ;
14169 PyObject * obj6 = 0 ;
14170 PyObject * obj7 = 0 ;
14171 char * kwnames[] = {
14172 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14173 };
14174
14175 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
14176 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14177 if (!SWIG_IsOK(res1)) {
14178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_Create" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14179 }
14180 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14181 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14182 if (!SWIG_IsOK(res2)) {
14183 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrollBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14184 }
14185 arg2 = reinterpret_cast< wxWindow * >(argp2);
14186 if (obj2) {
14187 ecode3 = SWIG_AsVal_int(obj2, &val3);
14188 if (!SWIG_IsOK(ecode3)) {
14189 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrollBar_Create" "', expected argument " "3"" of type '" "int""'");
14190 }
14191 arg3 = static_cast< int >(val3);
14192 }
14193 if (obj3) {
14194 {
14195 arg4 = &temp4;
14196 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14197 }
14198 }
14199 if (obj4) {
14200 {
14201 arg5 = &temp5;
14202 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14203 }
14204 }
14205 if (obj5) {
14206 ecode6 = SWIG_AsVal_long(obj5, &val6);
14207 if (!SWIG_IsOK(ecode6)) {
14208 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrollBar_Create" "', expected argument " "6"" of type '" "long""'");
14209 }
14210 arg6 = static_cast< long >(val6);
14211 }
14212 if (obj6) {
14213 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
14214 if (!SWIG_IsOK(res7)) {
14215 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14216 }
14217 if (!argp7) {
14218 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14219 }
14220 arg7 = reinterpret_cast< wxValidator * >(argp7);
14221 }
14222 if (obj7) {
14223 {
14224 arg8 = wxString_in_helper(obj7);
14225 if (arg8 == NULL) SWIG_fail;
14226 temp8 = true;
14227 }
14228 }
14229 {
14230 PyThreadState* __tstate = wxPyBeginAllowThreads();
14231 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
14232 wxPyEndAllowThreads(__tstate);
14233 if (PyErr_Occurred()) SWIG_fail;
14234 }
14235 {
14236 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14237 }
14238 {
14239 if (temp8)
14240 delete arg8;
14241 }
14242 return resultobj;
14243 fail:
14244 {
14245 if (temp8)
14246 delete arg8;
14247 }
14248 return NULL;
14249 }
14250
14251
14252 SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14253 PyObject *resultobj = 0;
14254 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14255 int result;
14256 void *argp1 = 0 ;
14257 int res1 = 0 ;
14258 PyObject *swig_obj[1] ;
14259
14260 if (!args) SWIG_fail;
14261 swig_obj[0] = args;
14262 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14263 if (!SWIG_IsOK(res1)) {
14264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14265 }
14266 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14267 {
14268 PyThreadState* __tstate = wxPyBeginAllowThreads();
14269 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
14270 wxPyEndAllowThreads(__tstate);
14271 if (PyErr_Occurred()) SWIG_fail;
14272 }
14273 resultobj = SWIG_From_int(static_cast< int >(result));
14274 return resultobj;
14275 fail:
14276 return NULL;
14277 }
14278
14279
14280 SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14281 PyObject *resultobj = 0;
14282 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14283 int result;
14284 void *argp1 = 0 ;
14285 int res1 = 0 ;
14286 PyObject *swig_obj[1] ;
14287
14288 if (!args) SWIG_fail;
14289 swig_obj[0] = args;
14290 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14291 if (!SWIG_IsOK(res1)) {
14292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14293 }
14294 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14295 {
14296 PyThreadState* __tstate = wxPyBeginAllowThreads();
14297 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
14298 wxPyEndAllowThreads(__tstate);
14299 if (PyErr_Occurred()) SWIG_fail;
14300 }
14301 resultobj = SWIG_From_int(static_cast< int >(result));
14302 return resultobj;
14303 fail:
14304 return NULL;
14305 }
14306
14307
14308 SWIGINTERN PyObject *_wrap_ScrollBar_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14309 PyObject *resultobj = 0;
14310 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14311 int result;
14312 void *argp1 = 0 ;
14313 int res1 = 0 ;
14314 PyObject *swig_obj[1] ;
14315
14316 if (!args) SWIG_fail;
14317 swig_obj[0] = args;
14318 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14319 if (!SWIG_IsOK(res1)) {
14320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetPageSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14321 }
14322 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14323 {
14324 PyThreadState* __tstate = wxPyBeginAllowThreads();
14325 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
14326 wxPyEndAllowThreads(__tstate);
14327 if (PyErr_Occurred()) SWIG_fail;
14328 }
14329 resultobj = SWIG_From_int(static_cast< int >(result));
14330 return resultobj;
14331 fail:
14332 return NULL;
14333 }
14334
14335
14336 SWIGINTERN PyObject *_wrap_ScrollBar_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14337 PyObject *resultobj = 0;
14338 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14339 int result;
14340 void *argp1 = 0 ;
14341 int res1 = 0 ;
14342 PyObject *swig_obj[1] ;
14343
14344 if (!args) SWIG_fail;
14345 swig_obj[0] = args;
14346 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14347 if (!SWIG_IsOK(res1)) {
14348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetRange" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14349 }
14350 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14351 {
14352 PyThreadState* __tstate = wxPyBeginAllowThreads();
14353 result = (int)((wxScrollBar const *)arg1)->GetRange();
14354 wxPyEndAllowThreads(__tstate);
14355 if (PyErr_Occurred()) SWIG_fail;
14356 }
14357 resultobj = SWIG_From_int(static_cast< int >(result));
14358 return resultobj;
14359 fail:
14360 return NULL;
14361 }
14362
14363
14364 SWIGINTERN PyObject *_wrap_ScrollBar_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14365 PyObject *resultobj = 0;
14366 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14367 bool result;
14368 void *argp1 = 0 ;
14369 int res1 = 0 ;
14370 PyObject *swig_obj[1] ;
14371
14372 if (!args) SWIG_fail;
14373 swig_obj[0] = args;
14374 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14375 if (!SWIG_IsOK(res1)) {
14376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_IsVertical" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14377 }
14378 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14379 {
14380 PyThreadState* __tstate = wxPyBeginAllowThreads();
14381 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
14382 wxPyEndAllowThreads(__tstate);
14383 if (PyErr_Occurred()) SWIG_fail;
14384 }
14385 {
14386 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14387 }
14388 return resultobj;
14389 fail:
14390 return NULL;
14391 }
14392
14393
14394 SWIGINTERN PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14395 PyObject *resultobj = 0;
14396 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14397 int arg2 ;
14398 void *argp1 = 0 ;
14399 int res1 = 0 ;
14400 int val2 ;
14401 int ecode2 = 0 ;
14402 PyObject * obj0 = 0 ;
14403 PyObject * obj1 = 0 ;
14404 char * kwnames[] = {
14405 (char *) "self",(char *) "viewStart", NULL
14406 };
14407
14408 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) SWIG_fail;
14409 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14410 if (!SWIG_IsOK(res1)) {
14411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14412 }
14413 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14414 ecode2 = SWIG_AsVal_int(obj1, &val2);
14415 if (!SWIG_IsOK(ecode2)) {
14416 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "2"" of type '" "int""'");
14417 }
14418 arg2 = static_cast< int >(val2);
14419 {
14420 PyThreadState* __tstate = wxPyBeginAllowThreads();
14421 (arg1)->SetThumbPosition(arg2);
14422 wxPyEndAllowThreads(__tstate);
14423 if (PyErr_Occurred()) SWIG_fail;
14424 }
14425 resultobj = SWIG_Py_Void();
14426 return resultobj;
14427 fail:
14428 return NULL;
14429 }
14430
14431
14432 SWIGINTERN PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14433 PyObject *resultobj = 0;
14434 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14435 SwigValueWrapper<wxVisualAttributes > result;
14436 int val1 ;
14437 int ecode1 = 0 ;
14438 PyObject * obj0 = 0 ;
14439 char * kwnames[] = {
14440 (char *) "variant", NULL
14441 };
14442
14443 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14444 if (obj0) {
14445 ecode1 = SWIG_AsVal_int(obj0, &val1);
14446 if (!SWIG_IsOK(ecode1)) {
14447 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrollBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14448 }
14449 arg1 = static_cast< wxWindowVariant >(val1);
14450 }
14451 {
14452 if (!wxPyCheckForApp()) SWIG_fail;
14453 PyThreadState* __tstate = wxPyBeginAllowThreads();
14454 result = wxScrollBar::GetClassDefaultAttributes(arg1);
14455 wxPyEndAllowThreads(__tstate);
14456 if (PyErr_Occurred()) SWIG_fail;
14457 }
14458 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14459 return resultobj;
14460 fail:
14461 return NULL;
14462 }
14463
14464
14465 SWIGINTERN PyObject *ScrollBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14466 PyObject *obj;
14467 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14468 SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollBar, SWIG_NewClientData(obj));
14469 return SWIG_Py_Void();
14470 }
14471
14472 SWIGINTERN PyObject *ScrollBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14473 return SWIG_Python_InitShadowInstance(args);
14474 }
14475
14476 SWIGINTERN int SPIN_BUTTON_NAME_set(PyObject *) {
14477 SWIG_Error(SWIG_AttributeError,"Variable SPIN_BUTTON_NAME is read-only.");
14478 return 1;
14479 }
14480
14481
14482 SWIGINTERN PyObject *SPIN_BUTTON_NAME_get(void) {
14483 PyObject *pyobj = 0;
14484
14485 {
14486 #if wxUSE_UNICODE
14487 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14488 #else
14489 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14490 #endif
14491 }
14492 return pyobj;
14493 }
14494
14495
14496 SWIGINTERN int SpinCtrlNameStr_set(PyObject *) {
14497 SWIG_Error(SWIG_AttributeError,"Variable SpinCtrlNameStr is read-only.");
14498 return 1;
14499 }
14500
14501
14502 SWIGINTERN PyObject *SpinCtrlNameStr_get(void) {
14503 PyObject *pyobj = 0;
14504
14505 {
14506 #if wxUSE_UNICODE
14507 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14508 #else
14509 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14510 #endif
14511 }
14512 return pyobj;
14513 }
14514
14515
14516 SWIGINTERN PyObject *_wrap_new_SpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14517 PyObject *resultobj = 0;
14518 wxWindow *arg1 = (wxWindow *) 0 ;
14519 int arg2 = (int) -1 ;
14520 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14521 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14522 wxSize const &arg4_defvalue = wxDefaultSize ;
14523 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14524 long arg5 = (long) wxSP_HORIZONTAL ;
14525 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
14526 wxString *arg6 = (wxString *) &arg6_defvalue ;
14527 wxSpinButton *result = 0 ;
14528 void *argp1 = 0 ;
14529 int res1 = 0 ;
14530 int val2 ;
14531 int ecode2 = 0 ;
14532 wxPoint temp3 ;
14533 wxSize temp4 ;
14534 long val5 ;
14535 int ecode5 = 0 ;
14536 bool temp6 = false ;
14537 PyObject * obj0 = 0 ;
14538 PyObject * obj1 = 0 ;
14539 PyObject * obj2 = 0 ;
14540 PyObject * obj3 = 0 ;
14541 PyObject * obj4 = 0 ;
14542 PyObject * obj5 = 0 ;
14543 char * kwnames[] = {
14544 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14545 };
14546
14547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
14548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14549 if (!SWIG_IsOK(res1)) {
14550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinButton" "', expected argument " "1"" of type '" "wxWindow *""'");
14551 }
14552 arg1 = reinterpret_cast< wxWindow * >(argp1);
14553 if (obj1) {
14554 ecode2 = SWIG_AsVal_int(obj1, &val2);
14555 if (!SWIG_IsOK(ecode2)) {
14556 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinButton" "', expected argument " "2"" of type '" "int""'");
14557 }
14558 arg2 = static_cast< int >(val2);
14559 }
14560 if (obj2) {
14561 {
14562 arg3 = &temp3;
14563 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14564 }
14565 }
14566 if (obj3) {
14567 {
14568 arg4 = &temp4;
14569 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14570 }
14571 }
14572 if (obj4) {
14573 ecode5 = SWIG_AsVal_long(obj4, &val5);
14574 if (!SWIG_IsOK(ecode5)) {
14575 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpinButton" "', expected argument " "5"" of type '" "long""'");
14576 }
14577 arg5 = static_cast< long >(val5);
14578 }
14579 if (obj5) {
14580 {
14581 arg6 = wxString_in_helper(obj5);
14582 if (arg6 == NULL) SWIG_fail;
14583 temp6 = true;
14584 }
14585 }
14586 {
14587 if (!wxPyCheckForApp()) SWIG_fail;
14588 PyThreadState* __tstate = wxPyBeginAllowThreads();
14589 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14590 wxPyEndAllowThreads(__tstate);
14591 if (PyErr_Occurred()) SWIG_fail;
14592 }
14593 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_NEW | 0 );
14594 {
14595 if (temp6)
14596 delete arg6;
14597 }
14598 return resultobj;
14599 fail:
14600 {
14601 if (temp6)
14602 delete arg6;
14603 }
14604 return NULL;
14605 }
14606
14607
14608 SWIGINTERN PyObject *_wrap_new_PreSpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14609 PyObject *resultobj = 0;
14610 wxSpinButton *result = 0 ;
14611
14612 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinButton",0,0,0)) SWIG_fail;
14613 {
14614 if (!wxPyCheckForApp()) SWIG_fail;
14615 PyThreadState* __tstate = wxPyBeginAllowThreads();
14616 result = (wxSpinButton *)new wxSpinButton();
14617 wxPyEndAllowThreads(__tstate);
14618 if (PyErr_Occurred()) SWIG_fail;
14619 }
14620 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_OWN | 0 );
14621 return resultobj;
14622 fail:
14623 return NULL;
14624 }
14625
14626
14627 SWIGINTERN PyObject *_wrap_SpinButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14628 PyObject *resultobj = 0;
14629 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14630 wxWindow *arg2 = (wxWindow *) 0 ;
14631 int arg3 = (int) -1 ;
14632 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14633 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14634 wxSize const &arg5_defvalue = wxDefaultSize ;
14635 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14636 long arg6 = (long) wxSP_HORIZONTAL ;
14637 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
14638 wxString *arg7 = (wxString *) &arg7_defvalue ;
14639 bool result;
14640 void *argp1 = 0 ;
14641 int res1 = 0 ;
14642 void *argp2 = 0 ;
14643 int res2 = 0 ;
14644 int val3 ;
14645 int ecode3 = 0 ;
14646 wxPoint temp4 ;
14647 wxSize temp5 ;
14648 long val6 ;
14649 int ecode6 = 0 ;
14650 bool temp7 = false ;
14651 PyObject * obj0 = 0 ;
14652 PyObject * obj1 = 0 ;
14653 PyObject * obj2 = 0 ;
14654 PyObject * obj3 = 0 ;
14655 PyObject * obj4 = 0 ;
14656 PyObject * obj5 = 0 ;
14657 PyObject * obj6 = 0 ;
14658 char * kwnames[] = {
14659 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14660 };
14661
14662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14664 if (!SWIG_IsOK(res1)) {
14665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_Create" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14666 }
14667 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14668 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14669 if (!SWIG_IsOK(res2)) {
14670 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14671 }
14672 arg2 = reinterpret_cast< wxWindow * >(argp2);
14673 if (obj2) {
14674 ecode3 = SWIG_AsVal_int(obj2, &val3);
14675 if (!SWIG_IsOK(ecode3)) {
14676 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_Create" "', expected argument " "3"" of type '" "int""'");
14677 }
14678 arg3 = static_cast< int >(val3);
14679 }
14680 if (obj3) {
14681 {
14682 arg4 = &temp4;
14683 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14684 }
14685 }
14686 if (obj4) {
14687 {
14688 arg5 = &temp5;
14689 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14690 }
14691 }
14692 if (obj5) {
14693 ecode6 = SWIG_AsVal_long(obj5, &val6);
14694 if (!SWIG_IsOK(ecode6)) {
14695 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SpinButton_Create" "', expected argument " "6"" of type '" "long""'");
14696 }
14697 arg6 = static_cast< long >(val6);
14698 }
14699 if (obj6) {
14700 {
14701 arg7 = wxString_in_helper(obj6);
14702 if (arg7 == NULL) SWIG_fail;
14703 temp7 = true;
14704 }
14705 }
14706 {
14707 PyThreadState* __tstate = wxPyBeginAllowThreads();
14708 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
14709 wxPyEndAllowThreads(__tstate);
14710 if (PyErr_Occurred()) SWIG_fail;
14711 }
14712 {
14713 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14714 }
14715 {
14716 if (temp7)
14717 delete arg7;
14718 }
14719 return resultobj;
14720 fail:
14721 {
14722 if (temp7)
14723 delete arg7;
14724 }
14725 return NULL;
14726 }
14727
14728
14729 SWIGINTERN PyObject *_wrap_SpinButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14730 PyObject *resultobj = 0;
14731 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14732 int result;
14733 void *argp1 = 0 ;
14734 int res1 = 0 ;
14735 PyObject *swig_obj[1] ;
14736
14737 if (!args) SWIG_fail;
14738 swig_obj[0] = args;
14739 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14740 if (!SWIG_IsOK(res1)) {
14741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetValue" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14742 }
14743 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14744 {
14745 PyThreadState* __tstate = wxPyBeginAllowThreads();
14746 result = (int)((wxSpinButton const *)arg1)->GetValue();
14747 wxPyEndAllowThreads(__tstate);
14748 if (PyErr_Occurred()) SWIG_fail;
14749 }
14750 resultobj = SWIG_From_int(static_cast< int >(result));
14751 return resultobj;
14752 fail:
14753 return NULL;
14754 }
14755
14756
14757 SWIGINTERN PyObject *_wrap_SpinButton_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14758 PyObject *resultobj = 0;
14759 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14760 int result;
14761 void *argp1 = 0 ;
14762 int res1 = 0 ;
14763 PyObject *swig_obj[1] ;
14764
14765 if (!args) SWIG_fail;
14766 swig_obj[0] = args;
14767 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14768 if (!SWIG_IsOK(res1)) {
14769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMin" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14770 }
14771 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14772 {
14773 PyThreadState* __tstate = wxPyBeginAllowThreads();
14774 result = (int)((wxSpinButton const *)arg1)->GetMin();
14775 wxPyEndAllowThreads(__tstate);
14776 if (PyErr_Occurred()) SWIG_fail;
14777 }
14778 resultobj = SWIG_From_int(static_cast< int >(result));
14779 return resultobj;
14780 fail:
14781 return NULL;
14782 }
14783
14784
14785 SWIGINTERN PyObject *_wrap_SpinButton_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14786 PyObject *resultobj = 0;
14787 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14788 int result;
14789 void *argp1 = 0 ;
14790 int res1 = 0 ;
14791 PyObject *swig_obj[1] ;
14792
14793 if (!args) SWIG_fail;
14794 swig_obj[0] = args;
14795 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14796 if (!SWIG_IsOK(res1)) {
14797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMax" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14798 }
14799 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14800 {
14801 PyThreadState* __tstate = wxPyBeginAllowThreads();
14802 result = (int)((wxSpinButton const *)arg1)->GetMax();
14803 wxPyEndAllowThreads(__tstate);
14804 if (PyErr_Occurred()) SWIG_fail;
14805 }
14806 resultobj = SWIG_From_int(static_cast< int >(result));
14807 return resultobj;
14808 fail:
14809 return NULL;
14810 }
14811
14812
14813 SWIGINTERN PyObject *_wrap_SpinButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14814 PyObject *resultobj = 0;
14815 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14816 int arg2 ;
14817 void *argp1 = 0 ;
14818 int res1 = 0 ;
14819 int val2 ;
14820 int ecode2 = 0 ;
14821 PyObject * obj0 = 0 ;
14822 PyObject * obj1 = 0 ;
14823 char * kwnames[] = {
14824 (char *) "self",(char *) "val", NULL
14825 };
14826
14827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
14828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14829 if (!SWIG_IsOK(res1)) {
14830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetValue" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14831 }
14832 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14833 ecode2 = SWIG_AsVal_int(obj1, &val2);
14834 if (!SWIG_IsOK(ecode2)) {
14835 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetValue" "', expected argument " "2"" of type '" "int""'");
14836 }
14837 arg2 = static_cast< int >(val2);
14838 {
14839 PyThreadState* __tstate = wxPyBeginAllowThreads();
14840 (arg1)->SetValue(arg2);
14841 wxPyEndAllowThreads(__tstate);
14842 if (PyErr_Occurred()) SWIG_fail;
14843 }
14844 resultobj = SWIG_Py_Void();
14845 return resultobj;
14846 fail:
14847 return NULL;
14848 }
14849
14850
14851 SWIGINTERN PyObject *_wrap_SpinButton_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14852 PyObject *resultobj = 0;
14853 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14854 int arg2 ;
14855 void *argp1 = 0 ;
14856 int res1 = 0 ;
14857 int val2 ;
14858 int ecode2 = 0 ;
14859 PyObject * obj0 = 0 ;
14860 PyObject * obj1 = 0 ;
14861 char * kwnames[] = {
14862 (char *) "self",(char *) "minVal", NULL
14863 };
14864
14865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
14866 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14867 if (!SWIG_IsOK(res1)) {
14868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMin" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14869 }
14870 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14871 ecode2 = SWIG_AsVal_int(obj1, &val2);
14872 if (!SWIG_IsOK(ecode2)) {
14873 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMin" "', expected argument " "2"" of type '" "int""'");
14874 }
14875 arg2 = static_cast< int >(val2);
14876 {
14877 PyThreadState* __tstate = wxPyBeginAllowThreads();
14878 (arg1)->SetMin(arg2);
14879 wxPyEndAllowThreads(__tstate);
14880 if (PyErr_Occurred()) SWIG_fail;
14881 }
14882 resultobj = SWIG_Py_Void();
14883 return resultobj;
14884 fail:
14885 return NULL;
14886 }
14887
14888
14889 SWIGINTERN PyObject *_wrap_SpinButton_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14890 PyObject *resultobj = 0;
14891 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14892 int arg2 ;
14893 void *argp1 = 0 ;
14894 int res1 = 0 ;
14895 int val2 ;
14896 int ecode2 = 0 ;
14897 PyObject * obj0 = 0 ;
14898 PyObject * obj1 = 0 ;
14899 char * kwnames[] = {
14900 (char *) "self",(char *) "maxVal", NULL
14901 };
14902
14903 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
14904 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14905 if (!SWIG_IsOK(res1)) {
14906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMax" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14907 }
14908 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14909 ecode2 = SWIG_AsVal_int(obj1, &val2);
14910 if (!SWIG_IsOK(ecode2)) {
14911 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMax" "', expected argument " "2"" of type '" "int""'");
14912 }
14913 arg2 = static_cast< int >(val2);
14914 {
14915 PyThreadState* __tstate = wxPyBeginAllowThreads();
14916 (arg1)->SetMax(arg2);
14917 wxPyEndAllowThreads(__tstate);
14918 if (PyErr_Occurred()) SWIG_fail;
14919 }
14920 resultobj = SWIG_Py_Void();
14921 return resultobj;
14922 fail:
14923 return NULL;
14924 }
14925
14926
14927 SWIGINTERN PyObject *_wrap_SpinButton_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14928 PyObject *resultobj = 0;
14929 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14930 int arg2 ;
14931 int arg3 ;
14932 void *argp1 = 0 ;
14933 int res1 = 0 ;
14934 int val2 ;
14935 int ecode2 = 0 ;
14936 int val3 ;
14937 int ecode3 = 0 ;
14938 PyObject * obj0 = 0 ;
14939 PyObject * obj1 = 0 ;
14940 PyObject * obj2 = 0 ;
14941 char * kwnames[] = {
14942 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
14943 };
14944
14945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14947 if (!SWIG_IsOK(res1)) {
14948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetRange" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14949 }
14950 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14951 ecode2 = SWIG_AsVal_int(obj1, &val2);
14952 if (!SWIG_IsOK(ecode2)) {
14953 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetRange" "', expected argument " "2"" of type '" "int""'");
14954 }
14955 arg2 = static_cast< int >(val2);
14956 ecode3 = SWIG_AsVal_int(obj2, &val3);
14957 if (!SWIG_IsOK(ecode3)) {
14958 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_SetRange" "', expected argument " "3"" of type '" "int""'");
14959 }
14960 arg3 = static_cast< int >(val3);
14961 {
14962 PyThreadState* __tstate = wxPyBeginAllowThreads();
14963 (arg1)->SetRange(arg2,arg3);
14964 wxPyEndAllowThreads(__tstate);
14965 if (PyErr_Occurred()) SWIG_fail;
14966 }
14967 resultobj = SWIG_Py_Void();
14968 return resultobj;
14969 fail:
14970 return NULL;
14971 }
14972
14973
14974 SWIGINTERN PyObject *_wrap_SpinButton_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14975 PyObject *resultobj = 0;
14976 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14977 bool result;
14978 void *argp1 = 0 ;
14979 int res1 = 0 ;
14980 PyObject *swig_obj[1] ;
14981
14982 if (!args) SWIG_fail;
14983 swig_obj[0] = args;
14984 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14985 if (!SWIG_IsOK(res1)) {
14986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_IsVertical" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14987 }
14988 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14989 {
14990 PyThreadState* __tstate = wxPyBeginAllowThreads();
14991 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
14992 wxPyEndAllowThreads(__tstate);
14993 if (PyErr_Occurred()) SWIG_fail;
14994 }
14995 {
14996 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14997 }
14998 return resultobj;
14999 fail:
15000 return NULL;
15001 }
15002
15003
15004 SWIGINTERN PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15005 PyObject *resultobj = 0;
15006 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15007 SwigValueWrapper<wxVisualAttributes > result;
15008 int val1 ;
15009 int ecode1 = 0 ;
15010 PyObject * obj0 = 0 ;
15011 char * kwnames[] = {
15012 (char *) "variant", NULL
15013 };
15014
15015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15016 if (obj0) {
15017 ecode1 = SWIG_AsVal_int(obj0, &val1);
15018 if (!SWIG_IsOK(ecode1)) {
15019 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15020 }
15021 arg1 = static_cast< wxWindowVariant >(val1);
15022 }
15023 {
15024 if (!wxPyCheckForApp()) SWIG_fail;
15025 PyThreadState* __tstate = wxPyBeginAllowThreads();
15026 result = wxSpinButton::GetClassDefaultAttributes(arg1);
15027 wxPyEndAllowThreads(__tstate);
15028 if (PyErr_Occurred()) SWIG_fail;
15029 }
15030 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15031 return resultobj;
15032 fail:
15033 return NULL;
15034 }
15035
15036
15037 SWIGINTERN PyObject *SpinButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15038 PyObject *obj;
15039 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15040 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinButton, SWIG_NewClientData(obj));
15041 return SWIG_Py_Void();
15042 }
15043
15044 SWIGINTERN PyObject *SpinButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15045 return SWIG_Python_InitShadowInstance(args);
15046 }
15047
15048 SWIGINTERN PyObject *_wrap_new_SpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15049 PyObject *resultobj = 0;
15050 wxWindow *arg1 = (wxWindow *) 0 ;
15051 int arg2 = (int) -1 ;
15052 wxString const &arg3_defvalue = wxPyEmptyString ;
15053 wxString *arg3 = (wxString *) &arg3_defvalue ;
15054 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15055 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15056 wxSize const &arg5_defvalue = wxDefaultSize ;
15057 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15058 long arg6 = (long) wxSP_ARROW_KEYS ;
15059 int arg7 = (int) 0 ;
15060 int arg8 = (int) 100 ;
15061 int arg9 = (int) 0 ;
15062 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
15063 wxString *arg10 = (wxString *) &arg10_defvalue ;
15064 wxSpinCtrl *result = 0 ;
15065 void *argp1 = 0 ;
15066 int res1 = 0 ;
15067 int val2 ;
15068 int ecode2 = 0 ;
15069 bool temp3 = false ;
15070 wxPoint temp4 ;
15071 wxSize temp5 ;
15072 long val6 ;
15073 int ecode6 = 0 ;
15074 int val7 ;
15075 int ecode7 = 0 ;
15076 int val8 ;
15077 int ecode8 = 0 ;
15078 int val9 ;
15079 int ecode9 = 0 ;
15080 bool temp10 = false ;
15081 PyObject * obj0 = 0 ;
15082 PyObject * obj1 = 0 ;
15083 PyObject * obj2 = 0 ;
15084 PyObject * obj3 = 0 ;
15085 PyObject * obj4 = 0 ;
15086 PyObject * obj5 = 0 ;
15087 PyObject * obj6 = 0 ;
15088 PyObject * obj7 = 0 ;
15089 PyObject * obj8 = 0 ;
15090 PyObject * obj9 = 0 ;
15091 char * kwnames[] = {
15092 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15093 };
15094
15095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15097 if (!SWIG_IsOK(res1)) {
15098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
15099 }
15100 arg1 = reinterpret_cast< wxWindow * >(argp1);
15101 if (obj1) {
15102 ecode2 = SWIG_AsVal_int(obj1, &val2);
15103 if (!SWIG_IsOK(ecode2)) {
15104 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinCtrl" "', expected argument " "2"" of type '" "int""'");
15105 }
15106 arg2 = static_cast< int >(val2);
15107 }
15108 if (obj2) {
15109 {
15110 arg3 = wxString_in_helper(obj2);
15111 if (arg3 == NULL) SWIG_fail;
15112 temp3 = true;
15113 }
15114 }
15115 if (obj3) {
15116 {
15117 arg4 = &temp4;
15118 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15119 }
15120 }
15121 if (obj4) {
15122 {
15123 arg5 = &temp5;
15124 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15125 }
15126 }
15127 if (obj5) {
15128 ecode6 = SWIG_AsVal_long(obj5, &val6);
15129 if (!SWIG_IsOK(ecode6)) {
15130 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpinCtrl" "', expected argument " "6"" of type '" "long""'");
15131 }
15132 arg6 = static_cast< long >(val6);
15133 }
15134 if (obj6) {
15135 ecode7 = SWIG_AsVal_int(obj6, &val7);
15136 if (!SWIG_IsOK(ecode7)) {
15137 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpinCtrl" "', expected argument " "7"" of type '" "int""'");
15138 }
15139 arg7 = static_cast< int >(val7);
15140 }
15141 if (obj7) {
15142 ecode8 = SWIG_AsVal_int(obj7, &val8);
15143 if (!SWIG_IsOK(ecode8)) {
15144 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SpinCtrl" "', expected argument " "8"" of type '" "int""'");
15145 }
15146 arg8 = static_cast< int >(val8);
15147 }
15148 if (obj8) {
15149 ecode9 = SWIG_AsVal_int(obj8, &val9);
15150 if (!SWIG_IsOK(ecode9)) {
15151 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpinCtrl" "', expected argument " "9"" of type '" "int""'");
15152 }
15153 arg9 = static_cast< int >(val9);
15154 }
15155 if (obj9) {
15156 {
15157 arg10 = wxString_in_helper(obj9);
15158 if (arg10 == NULL) SWIG_fail;
15159 temp10 = true;
15160 }
15161 }
15162 {
15163 if (!wxPyCheckForApp()) SWIG_fail;
15164 PyThreadState* __tstate = wxPyBeginAllowThreads();
15165 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
15166 wxPyEndAllowThreads(__tstate);
15167 if (PyErr_Occurred()) SWIG_fail;
15168 }
15169 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_NEW | 0 );
15170 {
15171 if (temp3)
15172 delete arg3;
15173 }
15174 {
15175 if (temp10)
15176 delete arg10;
15177 }
15178 return resultobj;
15179 fail:
15180 {
15181 if (temp3)
15182 delete arg3;
15183 }
15184 {
15185 if (temp10)
15186 delete arg10;
15187 }
15188 return NULL;
15189 }
15190
15191
15192 SWIGINTERN PyObject *_wrap_new_PreSpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15193 PyObject *resultobj = 0;
15194 wxSpinCtrl *result = 0 ;
15195
15196 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinCtrl",0,0,0)) SWIG_fail;
15197 {
15198 if (!wxPyCheckForApp()) SWIG_fail;
15199 PyThreadState* __tstate = wxPyBeginAllowThreads();
15200 result = (wxSpinCtrl *)new wxSpinCtrl();
15201 wxPyEndAllowThreads(__tstate);
15202 if (PyErr_Occurred()) SWIG_fail;
15203 }
15204 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_OWN | 0 );
15205 return resultobj;
15206 fail:
15207 return NULL;
15208 }
15209
15210
15211 SWIGINTERN PyObject *_wrap_SpinCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15212 PyObject *resultobj = 0;
15213 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15214 wxWindow *arg2 = (wxWindow *) 0 ;
15215 int arg3 = (int) -1 ;
15216 wxString const &arg4_defvalue = wxPyEmptyString ;
15217 wxString *arg4 = (wxString *) &arg4_defvalue ;
15218 wxPoint const &arg5_defvalue = wxDefaultPosition ;
15219 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
15220 wxSize const &arg6_defvalue = wxDefaultSize ;
15221 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
15222 long arg7 = (long) wxSP_ARROW_KEYS ;
15223 int arg8 = (int) 0 ;
15224 int arg9 = (int) 100 ;
15225 int arg10 = (int) 0 ;
15226 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
15227 wxString *arg11 = (wxString *) &arg11_defvalue ;
15228 bool result;
15229 void *argp1 = 0 ;
15230 int res1 = 0 ;
15231 void *argp2 = 0 ;
15232 int res2 = 0 ;
15233 int val3 ;
15234 int ecode3 = 0 ;
15235 bool temp4 = false ;
15236 wxPoint temp5 ;
15237 wxSize temp6 ;
15238 long val7 ;
15239 int ecode7 = 0 ;
15240 int val8 ;
15241 int ecode8 = 0 ;
15242 int val9 ;
15243 int ecode9 = 0 ;
15244 int val10 ;
15245 int ecode10 = 0 ;
15246 bool temp11 = false ;
15247 PyObject * obj0 = 0 ;
15248 PyObject * obj1 = 0 ;
15249 PyObject * obj2 = 0 ;
15250 PyObject * obj3 = 0 ;
15251 PyObject * obj4 = 0 ;
15252 PyObject * obj5 = 0 ;
15253 PyObject * obj6 = 0 ;
15254 PyObject * obj7 = 0 ;
15255 PyObject * obj8 = 0 ;
15256 PyObject * obj9 = 0 ;
15257 PyObject * obj10 = 0 ;
15258 char * kwnames[] = {
15259 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15260 };
15261
15262 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
15263 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15264 if (!SWIG_IsOK(res1)) {
15265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_Create" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15266 }
15267 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15268 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
15269 if (!SWIG_IsOK(res2)) {
15270 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
15271 }
15272 arg2 = reinterpret_cast< wxWindow * >(argp2);
15273 if (obj2) {
15274 ecode3 = SWIG_AsVal_int(obj2, &val3);
15275 if (!SWIG_IsOK(ecode3)) {
15276 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_Create" "', expected argument " "3"" of type '" "int""'");
15277 }
15278 arg3 = static_cast< int >(val3);
15279 }
15280 if (obj3) {
15281 {
15282 arg4 = wxString_in_helper(obj3);
15283 if (arg4 == NULL) SWIG_fail;
15284 temp4 = true;
15285 }
15286 }
15287 if (obj4) {
15288 {
15289 arg5 = &temp5;
15290 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
15291 }
15292 }
15293 if (obj5) {
15294 {
15295 arg6 = &temp6;
15296 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
15297 }
15298 }
15299 if (obj6) {
15300 ecode7 = SWIG_AsVal_long(obj6, &val7);
15301 if (!SWIG_IsOK(ecode7)) {
15302 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SpinCtrl_Create" "', expected argument " "7"" of type '" "long""'");
15303 }
15304 arg7 = static_cast< long >(val7);
15305 }
15306 if (obj7) {
15307 ecode8 = SWIG_AsVal_int(obj7, &val8);
15308 if (!SWIG_IsOK(ecode8)) {
15309 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "SpinCtrl_Create" "', expected argument " "8"" of type '" "int""'");
15310 }
15311 arg8 = static_cast< int >(val8);
15312 }
15313 if (obj8) {
15314 ecode9 = SWIG_AsVal_int(obj8, &val9);
15315 if (!SWIG_IsOK(ecode9)) {
15316 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "SpinCtrl_Create" "', expected argument " "9"" of type '" "int""'");
15317 }
15318 arg9 = static_cast< int >(val9);
15319 }
15320 if (obj9) {
15321 ecode10 = SWIG_AsVal_int(obj9, &val10);
15322 if (!SWIG_IsOK(ecode10)) {
15323 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "SpinCtrl_Create" "', expected argument " "10"" of type '" "int""'");
15324 }
15325 arg10 = static_cast< int >(val10);
15326 }
15327 if (obj10) {
15328 {
15329 arg11 = wxString_in_helper(obj10);
15330 if (arg11 == NULL) SWIG_fail;
15331 temp11 = true;
15332 }
15333 }
15334 {
15335 PyThreadState* __tstate = wxPyBeginAllowThreads();
15336 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
15337 wxPyEndAllowThreads(__tstate);
15338 if (PyErr_Occurred()) SWIG_fail;
15339 }
15340 {
15341 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15342 }
15343 {
15344 if (temp4)
15345 delete arg4;
15346 }
15347 {
15348 if (temp11)
15349 delete arg11;
15350 }
15351 return resultobj;
15352 fail:
15353 {
15354 if (temp4)
15355 delete arg4;
15356 }
15357 {
15358 if (temp11)
15359 delete arg11;
15360 }
15361 return NULL;
15362 }
15363
15364
15365 SWIGINTERN PyObject *_wrap_SpinCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15366 PyObject *resultobj = 0;
15367 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15368 int result;
15369 void *argp1 = 0 ;
15370 int res1 = 0 ;
15371 PyObject *swig_obj[1] ;
15372
15373 if (!args) SWIG_fail;
15374 swig_obj[0] = args;
15375 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15376 if (!SWIG_IsOK(res1)) {
15377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetValue" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15378 }
15379 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15380 {
15381 PyThreadState* __tstate = wxPyBeginAllowThreads();
15382 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
15383 wxPyEndAllowThreads(__tstate);
15384 if (PyErr_Occurred()) SWIG_fail;
15385 }
15386 resultobj = SWIG_From_int(static_cast< int >(result));
15387 return resultobj;
15388 fail:
15389 return NULL;
15390 }
15391
15392
15393 SWIGINTERN PyObject *_wrap_SpinCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15394 PyObject *resultobj = 0;
15395 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15396 int arg2 ;
15397 void *argp1 = 0 ;
15398 int res1 = 0 ;
15399 int val2 ;
15400 int ecode2 = 0 ;
15401 PyObject * obj0 = 0 ;
15402 PyObject * obj1 = 0 ;
15403 char * kwnames[] = {
15404 (char *) "self",(char *) "value", NULL
15405 };
15406
15407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15409 if (!SWIG_IsOK(res1)) {
15410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValue" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15411 }
15412 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15413 ecode2 = SWIG_AsVal_int(obj1, &val2);
15414 if (!SWIG_IsOK(ecode2)) {
15415 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetValue" "', expected argument " "2"" of type '" "int""'");
15416 }
15417 arg2 = static_cast< int >(val2);
15418 {
15419 PyThreadState* __tstate = wxPyBeginAllowThreads();
15420 (arg1)->SetValue(arg2);
15421 wxPyEndAllowThreads(__tstate);
15422 if (PyErr_Occurred()) SWIG_fail;
15423 }
15424 resultobj = SWIG_Py_Void();
15425 return resultobj;
15426 fail:
15427 return NULL;
15428 }
15429
15430
15431 SWIGINTERN PyObject *_wrap_SpinCtrl_SetValueString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15432 PyObject *resultobj = 0;
15433 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15434 wxString *arg2 = 0 ;
15435 void *argp1 = 0 ;
15436 int res1 = 0 ;
15437 bool temp2 = false ;
15438 PyObject * obj0 = 0 ;
15439 PyObject * obj1 = 0 ;
15440 char * kwnames[] = {
15441 (char *) "self",(char *) "text", NULL
15442 };
15443
15444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) SWIG_fail;
15445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15446 if (!SWIG_IsOK(res1)) {
15447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValueString" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15448 }
15449 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15450 {
15451 arg2 = wxString_in_helper(obj1);
15452 if (arg2 == NULL) SWIG_fail;
15453 temp2 = true;
15454 }
15455 {
15456 PyThreadState* __tstate = wxPyBeginAllowThreads();
15457 (arg1)->SetValue((wxString const &)*arg2);
15458 wxPyEndAllowThreads(__tstate);
15459 if (PyErr_Occurred()) SWIG_fail;
15460 }
15461 resultobj = SWIG_Py_Void();
15462 {
15463 if (temp2)
15464 delete arg2;
15465 }
15466 return resultobj;
15467 fail:
15468 {
15469 if (temp2)
15470 delete arg2;
15471 }
15472 return NULL;
15473 }
15474
15475
15476 SWIGINTERN PyObject *_wrap_SpinCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15477 PyObject *resultobj = 0;
15478 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15479 int arg2 ;
15480 int arg3 ;
15481 void *argp1 = 0 ;
15482 int res1 = 0 ;
15483 int val2 ;
15484 int ecode2 = 0 ;
15485 int val3 ;
15486 int ecode3 = 0 ;
15487 PyObject * obj0 = 0 ;
15488 PyObject * obj1 = 0 ;
15489 PyObject * obj2 = 0 ;
15490 char * kwnames[] = {
15491 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15492 };
15493
15494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15496 if (!SWIG_IsOK(res1)) {
15497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetRange" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15498 }
15499 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15500 ecode2 = SWIG_AsVal_int(obj1, &val2);
15501 if (!SWIG_IsOK(ecode2)) {
15502 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetRange" "', expected argument " "2"" of type '" "int""'");
15503 }
15504 arg2 = static_cast< int >(val2);
15505 ecode3 = SWIG_AsVal_int(obj2, &val3);
15506 if (!SWIG_IsOK(ecode3)) {
15507 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetRange" "', expected argument " "3"" of type '" "int""'");
15508 }
15509 arg3 = static_cast< int >(val3);
15510 {
15511 PyThreadState* __tstate = wxPyBeginAllowThreads();
15512 (arg1)->SetRange(arg2,arg3);
15513 wxPyEndAllowThreads(__tstate);
15514 if (PyErr_Occurred()) SWIG_fail;
15515 }
15516 resultobj = SWIG_Py_Void();
15517 return resultobj;
15518 fail:
15519 return NULL;
15520 }
15521
15522
15523 SWIGINTERN PyObject *_wrap_SpinCtrl_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15524 PyObject *resultobj = 0;
15525 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15526 int result;
15527 void *argp1 = 0 ;
15528 int res1 = 0 ;
15529 PyObject *swig_obj[1] ;
15530
15531 if (!args) SWIG_fail;
15532 swig_obj[0] = args;
15533 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15534 if (!SWIG_IsOK(res1)) {
15535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMin" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15536 }
15537 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15538 {
15539 PyThreadState* __tstate = wxPyBeginAllowThreads();
15540 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
15541 wxPyEndAllowThreads(__tstate);
15542 if (PyErr_Occurred()) SWIG_fail;
15543 }
15544 resultobj = SWIG_From_int(static_cast< int >(result));
15545 return resultobj;
15546 fail:
15547 return NULL;
15548 }
15549
15550
15551 SWIGINTERN PyObject *_wrap_SpinCtrl_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15552 PyObject *resultobj = 0;
15553 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15554 int result;
15555 void *argp1 = 0 ;
15556 int res1 = 0 ;
15557 PyObject *swig_obj[1] ;
15558
15559 if (!args) SWIG_fail;
15560 swig_obj[0] = args;
15561 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15562 if (!SWIG_IsOK(res1)) {
15563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMax" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15564 }
15565 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15566 {
15567 PyThreadState* __tstate = wxPyBeginAllowThreads();
15568 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
15569 wxPyEndAllowThreads(__tstate);
15570 if (PyErr_Occurred()) SWIG_fail;
15571 }
15572 resultobj = SWIG_From_int(static_cast< int >(result));
15573 return resultobj;
15574 fail:
15575 return NULL;
15576 }
15577
15578
15579 SWIGINTERN PyObject *_wrap_SpinCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15580 PyObject *resultobj = 0;
15581 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15582 long arg2 ;
15583 long arg3 ;
15584 void *argp1 = 0 ;
15585 int res1 = 0 ;
15586 long val2 ;
15587 int ecode2 = 0 ;
15588 long val3 ;
15589 int ecode3 = 0 ;
15590 PyObject * obj0 = 0 ;
15591 PyObject * obj1 = 0 ;
15592 PyObject * obj2 = 0 ;
15593 char * kwnames[] = {
15594 (char *) "self",(char *) "from",(char *) "to", NULL
15595 };
15596
15597 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15598 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15599 if (!SWIG_IsOK(res1)) {
15600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetSelection" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15601 }
15602 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15603 ecode2 = SWIG_AsVal_long(obj1, &val2);
15604 if (!SWIG_IsOK(ecode2)) {
15605 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
15606 }
15607 arg2 = static_cast< long >(val2);
15608 ecode3 = SWIG_AsVal_long(obj2, &val3);
15609 if (!SWIG_IsOK(ecode3)) {
15610 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
15611 }
15612 arg3 = static_cast< long >(val3);
15613 {
15614 PyThreadState* __tstate = wxPyBeginAllowThreads();
15615 (arg1)->SetSelection(arg2,arg3);
15616 wxPyEndAllowThreads(__tstate);
15617 if (PyErr_Occurred()) SWIG_fail;
15618 }
15619 resultobj = SWIG_Py_Void();
15620 return resultobj;
15621 fail:
15622 return NULL;
15623 }
15624
15625
15626 SWIGINTERN PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15627 PyObject *resultobj = 0;
15628 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15629 SwigValueWrapper<wxVisualAttributes > result;
15630 int val1 ;
15631 int ecode1 = 0 ;
15632 PyObject * obj0 = 0 ;
15633 char * kwnames[] = {
15634 (char *) "variant", NULL
15635 };
15636
15637 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15638 if (obj0) {
15639 ecode1 = SWIG_AsVal_int(obj0, &val1);
15640 if (!SWIG_IsOK(ecode1)) {
15641 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15642 }
15643 arg1 = static_cast< wxWindowVariant >(val1);
15644 }
15645 {
15646 if (!wxPyCheckForApp()) SWIG_fail;
15647 PyThreadState* __tstate = wxPyBeginAllowThreads();
15648 result = wxSpinCtrl::GetClassDefaultAttributes(arg1);
15649 wxPyEndAllowThreads(__tstate);
15650 if (PyErr_Occurred()) SWIG_fail;
15651 }
15652 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15653 return resultobj;
15654 fail:
15655 return NULL;
15656 }
15657
15658
15659 SWIGINTERN PyObject *SpinCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15660 PyObject *obj;
15661 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15662 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinCtrl, SWIG_NewClientData(obj));
15663 return SWIG_Py_Void();
15664 }
15665
15666 SWIGINTERN PyObject *SpinCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15667 return SWIG_Python_InitShadowInstance(args);
15668 }
15669
15670 SWIGINTERN PyObject *_wrap_new_SpinEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15671 PyObject *resultobj = 0;
15672 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15673 int arg2 = (int) 0 ;
15674 wxSpinEvent *result = 0 ;
15675 int val1 ;
15676 int ecode1 = 0 ;
15677 int val2 ;
15678 int ecode2 = 0 ;
15679 PyObject * obj0 = 0 ;
15680 PyObject * obj1 = 0 ;
15681 char * kwnames[] = {
15682 (char *) "commandType",(char *) "winid", NULL
15683 };
15684
15685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) SWIG_fail;
15686 if (obj0) {
15687 ecode1 = SWIG_AsVal_int(obj0, &val1);
15688 if (!SWIG_IsOK(ecode1)) {
15689 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SpinEvent" "', expected argument " "1"" of type '" "wxEventType""'");
15690 }
15691 arg1 = static_cast< wxEventType >(val1);
15692 }
15693 if (obj1) {
15694 ecode2 = SWIG_AsVal_int(obj1, &val2);
15695 if (!SWIG_IsOK(ecode2)) {
15696 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinEvent" "', expected argument " "2"" of type '" "int""'");
15697 }
15698 arg2 = static_cast< int >(val2);
15699 }
15700 {
15701 PyThreadState* __tstate = wxPyBeginAllowThreads();
15702 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
15703 wxPyEndAllowThreads(__tstate);
15704 if (PyErr_Occurred()) SWIG_fail;
15705 }
15706 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_NEW | 0 );
15707 return resultobj;
15708 fail:
15709 return NULL;
15710 }
15711
15712
15713 SWIGINTERN PyObject *_wrap_SpinEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15714 PyObject *resultobj = 0;
15715 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15716 int result;
15717 void *argp1 = 0 ;
15718 int res1 = 0 ;
15719 PyObject *swig_obj[1] ;
15720
15721 if (!args) SWIG_fail;
15722 swig_obj[0] = args;
15723 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15724 if (!SWIG_IsOK(res1)) {
15725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_GetPosition" "', expected argument " "1"" of type '" "wxSpinEvent const *""'");
15726 }
15727 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15728 {
15729 PyThreadState* __tstate = wxPyBeginAllowThreads();
15730 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
15731 wxPyEndAllowThreads(__tstate);
15732 if (PyErr_Occurred()) SWIG_fail;
15733 }
15734 resultobj = SWIG_From_int(static_cast< int >(result));
15735 return resultobj;
15736 fail:
15737 return NULL;
15738 }
15739
15740
15741 SWIGINTERN PyObject *_wrap_SpinEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15742 PyObject *resultobj = 0;
15743 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15744 int arg2 ;
15745 void *argp1 = 0 ;
15746 int res1 = 0 ;
15747 int val2 ;
15748 int ecode2 = 0 ;
15749 PyObject * obj0 = 0 ;
15750 PyObject * obj1 = 0 ;
15751 char * kwnames[] = {
15752 (char *) "self",(char *) "pos", NULL
15753 };
15754
15755 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
15756 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15757 if (!SWIG_IsOK(res1)) {
15758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_SetPosition" "', expected argument " "1"" of type '" "wxSpinEvent *""'");
15759 }
15760 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15761 ecode2 = SWIG_AsVal_int(obj1, &val2);
15762 if (!SWIG_IsOK(ecode2)) {
15763 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinEvent_SetPosition" "', expected argument " "2"" of type '" "int""'");
15764 }
15765 arg2 = static_cast< int >(val2);
15766 {
15767 PyThreadState* __tstate = wxPyBeginAllowThreads();
15768 (arg1)->SetPosition(arg2);
15769 wxPyEndAllowThreads(__tstate);
15770 if (PyErr_Occurred()) SWIG_fail;
15771 }
15772 resultobj = SWIG_Py_Void();
15773 return resultobj;
15774 fail:
15775 return NULL;
15776 }
15777
15778
15779 SWIGINTERN PyObject *SpinEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15780 PyObject *obj;
15781 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15782 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinEvent, SWIG_NewClientData(obj));
15783 return SWIG_Py_Void();
15784 }
15785
15786 SWIGINTERN PyObject *SpinEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15787 return SWIG_Python_InitShadowInstance(args);
15788 }
15789
15790 SWIGINTERN int RadioBoxNameStr_set(PyObject *) {
15791 SWIG_Error(SWIG_AttributeError,"Variable RadioBoxNameStr is read-only.");
15792 return 1;
15793 }
15794
15795
15796 SWIGINTERN PyObject *RadioBoxNameStr_get(void) {
15797 PyObject *pyobj = 0;
15798
15799 {
15800 #if wxUSE_UNICODE
15801 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
15802 #else
15803 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
15804 #endif
15805 }
15806 return pyobj;
15807 }
15808
15809
15810 SWIGINTERN int RadioButtonNameStr_set(PyObject *) {
15811 SWIG_Error(SWIG_AttributeError,"Variable RadioButtonNameStr is read-only.");
15812 return 1;
15813 }
15814
15815
15816 SWIGINTERN PyObject *RadioButtonNameStr_get(void) {
15817 PyObject *pyobj = 0;
15818
15819 {
15820 #if wxUSE_UNICODE
15821 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15822 #else
15823 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15824 #endif
15825 }
15826 return pyobj;
15827 }
15828
15829
15830 SWIGINTERN PyObject *_wrap_new_RadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15831 PyObject *resultobj = 0;
15832 wxWindow *arg1 = (wxWindow *) 0 ;
15833 int arg2 = (int) -1 ;
15834 wxString const &arg3_defvalue = wxPyEmptyString ;
15835 wxString *arg3 = (wxString *) &arg3_defvalue ;
15836 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15837 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15838 wxSize const &arg5_defvalue = wxDefaultSize ;
15839 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15840 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
15841 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
15842 int arg7 = (int) 0 ;
15843 long arg8 = (long) wxRA_HORIZONTAL ;
15844 wxValidator const &arg9_defvalue = wxDefaultValidator ;
15845 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
15846 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
15847 wxString *arg10 = (wxString *) &arg10_defvalue ;
15848 wxRadioBox *result = 0 ;
15849 void *argp1 = 0 ;
15850 int res1 = 0 ;
15851 int val2 ;
15852 int ecode2 = 0 ;
15853 bool temp3 = false ;
15854 wxPoint temp4 ;
15855 wxSize temp5 ;
15856 bool temp6 = false ;
15857 int val7 ;
15858 int ecode7 = 0 ;
15859 long val8 ;
15860 int ecode8 = 0 ;
15861 void *argp9 = 0 ;
15862 int res9 = 0 ;
15863 bool temp10 = false ;
15864 PyObject * obj0 = 0 ;
15865 PyObject * obj1 = 0 ;
15866 PyObject * obj2 = 0 ;
15867 PyObject * obj3 = 0 ;
15868 PyObject * obj4 = 0 ;
15869 PyObject * obj5 = 0 ;
15870 PyObject * obj6 = 0 ;
15871 PyObject * obj7 = 0 ;
15872 PyObject * obj8 = 0 ;
15873 PyObject * obj9 = 0 ;
15874 char * kwnames[] = {
15875 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
15876 };
15877
15878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15880 if (!SWIG_IsOK(res1)) {
15881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioBox" "', expected argument " "1"" of type '" "wxWindow *""'");
15882 }
15883 arg1 = reinterpret_cast< wxWindow * >(argp1);
15884 if (obj1) {
15885 ecode2 = SWIG_AsVal_int(obj1, &val2);
15886 if (!SWIG_IsOK(ecode2)) {
15887 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioBox" "', expected argument " "2"" of type '" "int""'");
15888 }
15889 arg2 = static_cast< int >(val2);
15890 }
15891 if (obj2) {
15892 {
15893 arg3 = wxString_in_helper(obj2);
15894 if (arg3 == NULL) SWIG_fail;
15895 temp3 = true;
15896 }
15897 }
15898 if (obj3) {
15899 {
15900 arg4 = &temp4;
15901 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15902 }
15903 }
15904 if (obj4) {
15905 {
15906 arg5 = &temp5;
15907 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15908 }
15909 }
15910 if (obj5) {
15911 {
15912 if (! PySequence_Check(obj5)) {
15913 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
15914 SWIG_fail;
15915 }
15916 arg6 = new wxArrayString;
15917 temp6 = true;
15918 int i, len=PySequence_Length(obj5);
15919 for (i=0; i<len; i++) {
15920 PyObject* item = PySequence_GetItem(obj5, i);
15921 wxString* s = wxString_in_helper(item);
15922 if (PyErr_Occurred()) SWIG_fail;
15923 arg6->Add(*s);
15924 delete s;
15925 Py_DECREF(item);
15926 }
15927 }
15928 }
15929 if (obj6) {
15930 ecode7 = SWIG_AsVal_int(obj6, &val7);
15931 if (!SWIG_IsOK(ecode7)) {
15932 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_RadioBox" "', expected argument " "7"" of type '" "int""'");
15933 }
15934 arg7 = static_cast< int >(val7);
15935 }
15936 if (obj7) {
15937 ecode8 = SWIG_AsVal_long(obj7, &val8);
15938 if (!SWIG_IsOK(ecode8)) {
15939 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_RadioBox" "', expected argument " "8"" of type '" "long""'");
15940 }
15941 arg8 = static_cast< long >(val8);
15942 }
15943 if (obj8) {
15944 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
15945 if (!SWIG_IsOK(res9)) {
15946 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
15947 }
15948 if (!argp9) {
15949 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
15950 }
15951 arg9 = reinterpret_cast< wxValidator * >(argp9);
15952 }
15953 if (obj9) {
15954 {
15955 arg10 = wxString_in_helper(obj9);
15956 if (arg10 == NULL) SWIG_fail;
15957 temp10 = true;
15958 }
15959 }
15960 {
15961 if (!wxPyCheckForApp()) SWIG_fail;
15962 PyThreadState* __tstate = wxPyBeginAllowThreads();
15963 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);
15964 wxPyEndAllowThreads(__tstate);
15965 if (PyErr_Occurred()) SWIG_fail;
15966 }
15967 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_NEW | 0 );
15968 {
15969 if (temp3)
15970 delete arg3;
15971 }
15972 {
15973 if (temp6) delete arg6;
15974 }
15975 {
15976 if (temp10)
15977 delete arg10;
15978 }
15979 return resultobj;
15980 fail:
15981 {
15982 if (temp3)
15983 delete arg3;
15984 }
15985 {
15986 if (temp6) delete arg6;
15987 }
15988 {
15989 if (temp10)
15990 delete arg10;
15991 }
15992 return NULL;
15993 }
15994
15995
15996 SWIGINTERN PyObject *_wrap_new_PreRadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15997 PyObject *resultobj = 0;
15998 wxRadioBox *result = 0 ;
15999
16000 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioBox",0,0,0)) SWIG_fail;
16001 {
16002 if (!wxPyCheckForApp()) SWIG_fail;
16003 PyThreadState* __tstate = wxPyBeginAllowThreads();
16004 result = (wxRadioBox *)new wxRadioBox();
16005 wxPyEndAllowThreads(__tstate);
16006 if (PyErr_Occurred()) SWIG_fail;
16007 }
16008 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_OWN | 0 );
16009 return resultobj;
16010 fail:
16011 return NULL;
16012 }
16013
16014
16015 SWIGINTERN PyObject *_wrap_RadioBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16016 PyObject *resultobj = 0;
16017 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16018 wxWindow *arg2 = (wxWindow *) 0 ;
16019 int arg3 = (int) -1 ;
16020 wxString const &arg4_defvalue = wxPyEmptyString ;
16021 wxString *arg4 = (wxString *) &arg4_defvalue ;
16022 wxPoint const &arg5_defvalue = wxDefaultPosition ;
16023 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
16024 wxSize const &arg6_defvalue = wxDefaultSize ;
16025 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
16026 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
16027 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
16028 int arg8 = (int) 0 ;
16029 long arg9 = (long) wxRA_HORIZONTAL ;
16030 wxValidator const &arg10_defvalue = wxDefaultValidator ;
16031 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
16032 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
16033 wxString *arg11 = (wxString *) &arg11_defvalue ;
16034 bool result;
16035 void *argp1 = 0 ;
16036 int res1 = 0 ;
16037 void *argp2 = 0 ;
16038 int res2 = 0 ;
16039 int val3 ;
16040 int ecode3 = 0 ;
16041 bool temp4 = false ;
16042 wxPoint temp5 ;
16043 wxSize temp6 ;
16044 bool temp7 = false ;
16045 int val8 ;
16046 int ecode8 = 0 ;
16047 long val9 ;
16048 int ecode9 = 0 ;
16049 void *argp10 = 0 ;
16050 int res10 = 0 ;
16051 bool temp11 = false ;
16052 PyObject * obj0 = 0 ;
16053 PyObject * obj1 = 0 ;
16054 PyObject * obj2 = 0 ;
16055 PyObject * obj3 = 0 ;
16056 PyObject * obj4 = 0 ;
16057 PyObject * obj5 = 0 ;
16058 PyObject * obj6 = 0 ;
16059 PyObject * obj7 = 0 ;
16060 PyObject * obj8 = 0 ;
16061 PyObject * obj9 = 0 ;
16062 PyObject * obj10 = 0 ;
16063 char * kwnames[] = {
16064 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16065 };
16066
16067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
16068 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16069 if (!SWIG_IsOK(res1)) {
16070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_Create" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16071 }
16072 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16073 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
16074 if (!SWIG_IsOK(res2)) {
16075 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
16076 }
16077 arg2 = reinterpret_cast< wxWindow * >(argp2);
16078 if (obj2) {
16079 ecode3 = SWIG_AsVal_int(obj2, &val3);
16080 if (!SWIG_IsOK(ecode3)) {
16081 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_Create" "', expected argument " "3"" of type '" "int""'");
16082 }
16083 arg3 = static_cast< int >(val3);
16084 }
16085 if (obj3) {
16086 {
16087 arg4 = wxString_in_helper(obj3);
16088 if (arg4 == NULL) SWIG_fail;
16089 temp4 = true;
16090 }
16091 }
16092 if (obj4) {
16093 {
16094 arg5 = &temp5;
16095 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
16096 }
16097 }
16098 if (obj5) {
16099 {
16100 arg6 = &temp6;
16101 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
16102 }
16103 }
16104 if (obj6) {
16105 {
16106 if (! PySequence_Check(obj6)) {
16107 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16108 SWIG_fail;
16109 }
16110 arg7 = new wxArrayString;
16111 temp7 = true;
16112 int i, len=PySequence_Length(obj6);
16113 for (i=0; i<len; i++) {
16114 PyObject* item = PySequence_GetItem(obj6, i);
16115 wxString* s = wxString_in_helper(item);
16116 if (PyErr_Occurred()) SWIG_fail;
16117 arg7->Add(*s);
16118 delete s;
16119 Py_DECREF(item);
16120 }
16121 }
16122 }
16123 if (obj7) {
16124 ecode8 = SWIG_AsVal_int(obj7, &val8);
16125 if (!SWIG_IsOK(ecode8)) {
16126 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "RadioBox_Create" "', expected argument " "8"" of type '" "int""'");
16127 }
16128 arg8 = static_cast< int >(val8);
16129 }
16130 if (obj8) {
16131 ecode9 = SWIG_AsVal_long(obj8, &val9);
16132 if (!SWIG_IsOK(ecode9)) {
16133 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "RadioBox_Create" "', expected argument " "9"" of type '" "long""'");
16134 }
16135 arg9 = static_cast< long >(val9);
16136 }
16137 if (obj9) {
16138 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
16139 if (!SWIG_IsOK(res10)) {
16140 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
16141 }
16142 if (!argp10) {
16143 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
16144 }
16145 arg10 = reinterpret_cast< wxValidator * >(argp10);
16146 }
16147 if (obj10) {
16148 {
16149 arg11 = wxString_in_helper(obj10);
16150 if (arg11 == NULL) SWIG_fail;
16151 temp11 = true;
16152 }
16153 }
16154 {
16155 PyThreadState* __tstate = wxPyBeginAllowThreads();
16156 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);
16157 wxPyEndAllowThreads(__tstate);
16158 if (PyErr_Occurred()) SWIG_fail;
16159 }
16160 {
16161 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16162 }
16163 {
16164 if (temp4)
16165 delete arg4;
16166 }
16167 {
16168 if (temp7) delete arg7;
16169 }
16170 {
16171 if (temp11)
16172 delete arg11;
16173 }
16174 return resultobj;
16175 fail:
16176 {
16177 if (temp4)
16178 delete arg4;
16179 }
16180 {
16181 if (temp7) delete arg7;
16182 }
16183 {
16184 if (temp11)
16185 delete arg11;
16186 }
16187 return NULL;
16188 }
16189
16190
16191 SWIGINTERN PyObject *_wrap_RadioBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16192 PyObject *resultobj = 0;
16193 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16194 int arg2 ;
16195 void *argp1 = 0 ;
16196 int res1 = 0 ;
16197 int val2 ;
16198 int ecode2 = 0 ;
16199 PyObject * obj0 = 0 ;
16200 PyObject * obj1 = 0 ;
16201 char * kwnames[] = {
16202 (char *) "self",(char *) "n", NULL
16203 };
16204
16205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16207 if (!SWIG_IsOK(res1)) {
16208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16209 }
16210 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16211 ecode2 = SWIG_AsVal_int(obj1, &val2);
16212 if (!SWIG_IsOK(ecode2)) {
16213 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
16214 }
16215 arg2 = static_cast< int >(val2);
16216 {
16217 PyThreadState* __tstate = wxPyBeginAllowThreads();
16218 (arg1)->SetSelection(arg2);
16219 wxPyEndAllowThreads(__tstate);
16220 if (PyErr_Occurred()) SWIG_fail;
16221 }
16222 resultobj = SWIG_Py_Void();
16223 return resultobj;
16224 fail:
16225 return NULL;
16226 }
16227
16228
16229 SWIGINTERN PyObject *_wrap_RadioBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16230 PyObject *resultobj = 0;
16231 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16232 int result;
16233 void *argp1 = 0 ;
16234 int res1 = 0 ;
16235 PyObject *swig_obj[1] ;
16236
16237 if (!args) SWIG_fail;
16238 swig_obj[0] = args;
16239 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16240 if (!SWIG_IsOK(res1)) {
16241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16242 }
16243 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16244 {
16245 PyThreadState* __tstate = wxPyBeginAllowThreads();
16246 result = (int)((wxRadioBox const *)arg1)->GetSelection();
16247 wxPyEndAllowThreads(__tstate);
16248 if (PyErr_Occurred()) SWIG_fail;
16249 }
16250 resultobj = SWIG_From_int(static_cast< int >(result));
16251 return resultobj;
16252 fail:
16253 return NULL;
16254 }
16255
16256
16257 SWIGINTERN PyObject *_wrap_RadioBox_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16258 PyObject *resultobj = 0;
16259 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16260 wxString result;
16261 void *argp1 = 0 ;
16262 int res1 = 0 ;
16263 PyObject *swig_obj[1] ;
16264
16265 if (!args) SWIG_fail;
16266 swig_obj[0] = args;
16267 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16268 if (!SWIG_IsOK(res1)) {
16269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16270 }
16271 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16272 {
16273 PyThreadState* __tstate = wxPyBeginAllowThreads();
16274 result = ((wxRadioBox const *)arg1)->GetStringSelection();
16275 wxPyEndAllowThreads(__tstate);
16276 if (PyErr_Occurred()) SWIG_fail;
16277 }
16278 {
16279 #if wxUSE_UNICODE
16280 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16281 #else
16282 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16283 #endif
16284 }
16285 return resultobj;
16286 fail:
16287 return NULL;
16288 }
16289
16290
16291 SWIGINTERN PyObject *_wrap_RadioBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16292 PyObject *resultobj = 0;
16293 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16294 wxString *arg2 = 0 ;
16295 bool result;
16296 void *argp1 = 0 ;
16297 int res1 = 0 ;
16298 bool temp2 = false ;
16299 PyObject * obj0 = 0 ;
16300 PyObject * obj1 = 0 ;
16301 char * kwnames[] = {
16302 (char *) "self",(char *) "s", NULL
16303 };
16304
16305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16307 if (!SWIG_IsOK(res1)) {
16308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16309 }
16310 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16311 {
16312 arg2 = wxString_in_helper(obj1);
16313 if (arg2 == NULL) SWIG_fail;
16314 temp2 = true;
16315 }
16316 {
16317 PyThreadState* __tstate = wxPyBeginAllowThreads();
16318 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
16319 wxPyEndAllowThreads(__tstate);
16320 if (PyErr_Occurred()) SWIG_fail;
16321 }
16322 {
16323 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16324 }
16325 {
16326 if (temp2)
16327 delete arg2;
16328 }
16329 return resultobj;
16330 fail:
16331 {
16332 if (temp2)
16333 delete arg2;
16334 }
16335 return NULL;
16336 }
16337
16338
16339 SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16340 PyObject *resultobj = 0;
16341 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16342 size_t result;
16343 void *argp1 = 0 ;
16344 int res1 = 0 ;
16345 PyObject *swig_obj[1] ;
16346
16347 if (!args) SWIG_fail;
16348 swig_obj[0] = args;
16349 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16350 if (!SWIG_IsOK(res1)) {
16351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16352 }
16353 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16354 {
16355 PyThreadState* __tstate = wxPyBeginAllowThreads();
16356 result = (size_t)((wxRadioBox const *)arg1)->GetCount();
16357 wxPyEndAllowThreads(__tstate);
16358 if (PyErr_Occurred()) SWIG_fail;
16359 }
16360 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
16361 return resultobj;
16362 fail:
16363 return NULL;
16364 }
16365
16366
16367 SWIGINTERN PyObject *_wrap_RadioBox_FindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16368 PyObject *resultobj = 0;
16369 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16370 wxString *arg2 = 0 ;
16371 int result;
16372 void *argp1 = 0 ;
16373 int res1 = 0 ;
16374 bool temp2 = false ;
16375 PyObject * obj0 = 0 ;
16376 PyObject * obj1 = 0 ;
16377 char * kwnames[] = {
16378 (char *) "self",(char *) "s", NULL
16379 };
16380
16381 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) SWIG_fail;
16382 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16383 if (!SWIG_IsOK(res1)) {
16384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_FindString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16385 }
16386 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16387 {
16388 arg2 = wxString_in_helper(obj1);
16389 if (arg2 == NULL) SWIG_fail;
16390 temp2 = true;
16391 }
16392 {
16393 PyThreadState* __tstate = wxPyBeginAllowThreads();
16394 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
16395 wxPyEndAllowThreads(__tstate);
16396 if (PyErr_Occurred()) SWIG_fail;
16397 }
16398 resultobj = SWIG_From_int(static_cast< int >(result));
16399 {
16400 if (temp2)
16401 delete arg2;
16402 }
16403 return resultobj;
16404 fail:
16405 {
16406 if (temp2)
16407 delete arg2;
16408 }
16409 return NULL;
16410 }
16411
16412
16413 SWIGINTERN PyObject *_wrap_RadioBox_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16414 PyObject *resultobj = 0;
16415 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16416 int arg2 ;
16417 wxString result;
16418 void *argp1 = 0 ;
16419 int res1 = 0 ;
16420 int val2 ;
16421 int ecode2 = 0 ;
16422 PyObject * obj0 = 0 ;
16423 PyObject * obj1 = 0 ;
16424 char * kwnames[] = {
16425 (char *) "self",(char *) "n", NULL
16426 };
16427
16428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) SWIG_fail;
16429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16430 if (!SWIG_IsOK(res1)) {
16431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16432 }
16433 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16434 ecode2 = SWIG_AsVal_int(obj1, &val2);
16435 if (!SWIG_IsOK(ecode2)) {
16436 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetString" "', expected argument " "2"" of type '" "int""'");
16437 }
16438 arg2 = static_cast< int >(val2);
16439 {
16440 PyThreadState* __tstate = wxPyBeginAllowThreads();
16441 result = ((wxRadioBox const *)arg1)->GetString(arg2);
16442 wxPyEndAllowThreads(__tstate);
16443 if (PyErr_Occurred()) SWIG_fail;
16444 }
16445 {
16446 #if wxUSE_UNICODE
16447 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16448 #else
16449 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16450 #endif
16451 }
16452 return resultobj;
16453 fail:
16454 return NULL;
16455 }
16456
16457
16458 SWIGINTERN PyObject *_wrap_RadioBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16459 PyObject *resultobj = 0;
16460 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16461 int arg2 ;
16462 wxString *arg3 = 0 ;
16463 void *argp1 = 0 ;
16464 int res1 = 0 ;
16465 int val2 ;
16466 int ecode2 = 0 ;
16467 bool temp3 = false ;
16468 PyObject * obj0 = 0 ;
16469 PyObject * obj1 = 0 ;
16470 PyObject * obj2 = 0 ;
16471 char * kwnames[] = {
16472 (char *) "self",(char *) "n",(char *) "label", NULL
16473 };
16474
16475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16476 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16477 if (!SWIG_IsOK(res1)) {
16478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetString" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16479 }
16480 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16481 ecode2 = SWIG_AsVal_int(obj1, &val2);
16482 if (!SWIG_IsOK(ecode2)) {
16483 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetString" "', expected argument " "2"" of type '" "int""'");
16484 }
16485 arg2 = static_cast< int >(val2);
16486 {
16487 arg3 = wxString_in_helper(obj2);
16488 if (arg3 == NULL) SWIG_fail;
16489 temp3 = true;
16490 }
16491 {
16492 PyThreadState* __tstate = wxPyBeginAllowThreads();
16493 (arg1)->SetString(arg2,(wxString const &)*arg3);
16494 wxPyEndAllowThreads(__tstate);
16495 if (PyErr_Occurred()) SWIG_fail;
16496 }
16497 resultobj = SWIG_Py_Void();
16498 {
16499 if (temp3)
16500 delete arg3;
16501 }
16502 return resultobj;
16503 fail:
16504 {
16505 if (temp3)
16506 delete arg3;
16507 }
16508 return NULL;
16509 }
16510
16511
16512 SWIGINTERN PyObject *_wrap_RadioBox_EnableItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16513 PyObject *resultobj = 0;
16514 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16515 unsigned int arg2 ;
16516 bool arg3 = (bool) true ;
16517 void *argp1 = 0 ;
16518 int res1 = 0 ;
16519 unsigned int val2 ;
16520 int ecode2 = 0 ;
16521 bool val3 ;
16522 int ecode3 = 0 ;
16523 PyObject * obj0 = 0 ;
16524 PyObject * obj1 = 0 ;
16525 PyObject * obj2 = 0 ;
16526 char * kwnames[] = {
16527 (char *) "self",(char *) "n",(char *) "enable", NULL
16528 };
16529
16530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16532 if (!SWIG_IsOK(res1)) {
16533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_EnableItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16534 }
16535 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16536 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16537 if (!SWIG_IsOK(ecode2)) {
16538 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_EnableItem" "', expected argument " "2"" of type '" "unsigned int""'");
16539 }
16540 arg2 = static_cast< unsigned int >(val2);
16541 if (obj2) {
16542 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16543 if (!SWIG_IsOK(ecode3)) {
16544 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_EnableItem" "', expected argument " "3"" of type '" "bool""'");
16545 }
16546 arg3 = static_cast< bool >(val3);
16547 }
16548 {
16549 PyThreadState* __tstate = wxPyBeginAllowThreads();
16550 (arg1)->Enable(arg2,arg3);
16551 wxPyEndAllowThreads(__tstate);
16552 if (PyErr_Occurred()) SWIG_fail;
16553 }
16554 resultobj = SWIG_Py_Void();
16555 return resultobj;
16556 fail:
16557 return NULL;
16558 }
16559
16560
16561 SWIGINTERN PyObject *_wrap_RadioBox_ShowItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16562 PyObject *resultobj = 0;
16563 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16564 unsigned int arg2 ;
16565 bool arg3 = (bool) true ;
16566 void *argp1 = 0 ;
16567 int res1 = 0 ;
16568 unsigned int val2 ;
16569 int ecode2 = 0 ;
16570 bool val3 ;
16571 int ecode3 = 0 ;
16572 PyObject * obj0 = 0 ;
16573 PyObject * obj1 = 0 ;
16574 PyObject * obj2 = 0 ;
16575 char * kwnames[] = {
16576 (char *) "self",(char *) "n",(char *) "show", NULL
16577 };
16578
16579 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16580 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16581 if (!SWIG_IsOK(res1)) {
16582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_ShowItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16583 }
16584 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16585 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16586 if (!SWIG_IsOK(ecode2)) {
16587 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_ShowItem" "', expected argument " "2"" of type '" "unsigned int""'");
16588 }
16589 arg2 = static_cast< unsigned int >(val2);
16590 if (obj2) {
16591 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16592 if (!SWIG_IsOK(ecode3)) {
16593 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_ShowItem" "', expected argument " "3"" of type '" "bool""'");
16594 }
16595 arg3 = static_cast< bool >(val3);
16596 }
16597 {
16598 PyThreadState* __tstate = wxPyBeginAllowThreads();
16599 (arg1)->Show(arg2,arg3);
16600 wxPyEndAllowThreads(__tstate);
16601 if (PyErr_Occurred()) SWIG_fail;
16602 }
16603 resultobj = SWIG_Py_Void();
16604 return resultobj;
16605 fail:
16606 return NULL;
16607 }
16608
16609
16610 SWIGINTERN PyObject *_wrap_RadioBox_IsItemEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16611 PyObject *resultobj = 0;
16612 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16613 unsigned int arg2 ;
16614 bool result;
16615 void *argp1 = 0 ;
16616 int res1 = 0 ;
16617 unsigned int val2 ;
16618 int ecode2 = 0 ;
16619 PyObject * obj0 = 0 ;
16620 PyObject * obj1 = 0 ;
16621 char * kwnames[] = {
16622 (char *) "self",(char *) "n", NULL
16623 };
16624
16625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
16626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16627 if (!SWIG_IsOK(res1)) {
16628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16629 }
16630 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16631 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16632 if (!SWIG_IsOK(ecode2)) {
16633 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "2"" of type '" "unsigned int""'");
16634 }
16635 arg2 = static_cast< unsigned int >(val2);
16636 {
16637 PyThreadState* __tstate = wxPyBeginAllowThreads();
16638 result = (bool)((wxRadioBox const *)arg1)->IsItemEnabled(arg2);
16639 wxPyEndAllowThreads(__tstate);
16640 if (PyErr_Occurred()) SWIG_fail;
16641 }
16642 {
16643 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16644 }
16645 return resultobj;
16646 fail:
16647 return NULL;
16648 }
16649
16650
16651 SWIGINTERN PyObject *_wrap_RadioBox_IsItemShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16652 PyObject *resultobj = 0;
16653 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16654 unsigned int arg2 ;
16655 bool result;
16656 void *argp1 = 0 ;
16657 int res1 = 0 ;
16658 unsigned int val2 ;
16659 int ecode2 = 0 ;
16660 PyObject * obj0 = 0 ;
16661 PyObject * obj1 = 0 ;
16662 char * kwnames[] = {
16663 (char *) "self",(char *) "n", NULL
16664 };
16665
16666 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemShown",kwnames,&obj0,&obj1)) SWIG_fail;
16667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16668 if (!SWIG_IsOK(res1)) {
16669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemShown" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16670 }
16671 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16672 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16673 if (!SWIG_IsOK(ecode2)) {
16674 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemShown" "', expected argument " "2"" of type '" "unsigned int""'");
16675 }
16676 arg2 = static_cast< unsigned int >(val2);
16677 {
16678 PyThreadState* __tstate = wxPyBeginAllowThreads();
16679 result = (bool)((wxRadioBox const *)arg1)->IsItemShown(arg2);
16680 wxPyEndAllowThreads(__tstate);
16681 if (PyErr_Occurred()) SWIG_fail;
16682 }
16683 {
16684 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16685 }
16686 return resultobj;
16687 fail:
16688 return NULL;
16689 }
16690
16691
16692 SWIGINTERN PyObject *_wrap_RadioBox_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16693 PyObject *resultobj = 0;
16694 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16695 unsigned int result;
16696 void *argp1 = 0 ;
16697 int res1 = 0 ;
16698 PyObject *swig_obj[1] ;
16699
16700 if (!args) SWIG_fail;
16701 swig_obj[0] = args;
16702 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16703 if (!SWIG_IsOK(res1)) {
16704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetColumnCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16705 }
16706 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16707 {
16708 PyThreadState* __tstate = wxPyBeginAllowThreads();
16709 result = (unsigned int)((wxRadioBox const *)arg1)->GetColumnCount();
16710 wxPyEndAllowThreads(__tstate);
16711 if (PyErr_Occurred()) SWIG_fail;
16712 }
16713 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
16714 return resultobj;
16715 fail:
16716 return NULL;
16717 }
16718
16719
16720 SWIGINTERN PyObject *_wrap_RadioBox_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16721 PyObject *resultobj = 0;
16722 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16723 unsigned int result;
16724 void *argp1 = 0 ;
16725 int res1 = 0 ;
16726 PyObject *swig_obj[1] ;
16727
16728 if (!args) SWIG_fail;
16729 swig_obj[0] = args;
16730 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16731 if (!SWIG_IsOK(res1)) {
16732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetRowCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16733 }
16734 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16735 {
16736 PyThreadState* __tstate = wxPyBeginAllowThreads();
16737 result = (unsigned int)((wxRadioBox const *)arg1)->GetRowCount();
16738 wxPyEndAllowThreads(__tstate);
16739 if (PyErr_Occurred()) SWIG_fail;
16740 }
16741 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
16742 return resultobj;
16743 fail:
16744 return NULL;
16745 }
16746
16747
16748 SWIGINTERN PyObject *_wrap_RadioBox_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16749 PyObject *resultobj = 0;
16750 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16751 int arg2 ;
16752 wxDirection arg3 ;
16753 long arg4 ;
16754 int result;
16755 void *argp1 = 0 ;
16756 int res1 = 0 ;
16757 int val2 ;
16758 int ecode2 = 0 ;
16759 int val3 ;
16760 int ecode3 = 0 ;
16761 long val4 ;
16762 int ecode4 = 0 ;
16763 PyObject * obj0 = 0 ;
16764 PyObject * obj1 = 0 ;
16765 PyObject * obj2 = 0 ;
16766 PyObject * obj3 = 0 ;
16767 char * kwnames[] = {
16768 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
16769 };
16770
16771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16772 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16773 if (!SWIG_IsOK(res1)) {
16774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetNextItem" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16775 }
16776 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16777 ecode2 = SWIG_AsVal_int(obj1, &val2);
16778 if (!SWIG_IsOK(ecode2)) {
16779 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetNextItem" "', expected argument " "2"" of type '" "int""'");
16780 }
16781 arg2 = static_cast< int >(val2);
16782 ecode3 = SWIG_AsVal_int(obj2, &val3);
16783 if (!SWIG_IsOK(ecode3)) {
16784 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_GetNextItem" "', expected argument " "3"" of type '" "wxDirection""'");
16785 }
16786 arg3 = static_cast< wxDirection >(val3);
16787 ecode4 = SWIG_AsVal_long(obj3, &val4);
16788 if (!SWIG_IsOK(ecode4)) {
16789 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RadioBox_GetNextItem" "', expected argument " "4"" of type '" "long""'");
16790 }
16791 arg4 = static_cast< long >(val4);
16792 {
16793 PyThreadState* __tstate = wxPyBeginAllowThreads();
16794 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,arg3,arg4);
16795 wxPyEndAllowThreads(__tstate);
16796 if (PyErr_Occurred()) SWIG_fail;
16797 }
16798 resultobj = SWIG_From_int(static_cast< int >(result));
16799 return resultobj;
16800 fail:
16801 return NULL;
16802 }
16803
16804
16805 SWIGINTERN PyObject *_wrap_RadioBox_SetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16806 PyObject *resultobj = 0;
16807 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16808 unsigned int arg2 ;
16809 wxString *arg3 = 0 ;
16810 void *argp1 = 0 ;
16811 int res1 = 0 ;
16812 unsigned int val2 ;
16813 int ecode2 = 0 ;
16814 bool temp3 = false ;
16815 PyObject * obj0 = 0 ;
16816 PyObject * obj1 = 0 ;
16817 PyObject * obj2 = 0 ;
16818 char * kwnames[] = {
16819 (char *) "self",(char *) "item",(char *) "text", NULL
16820 };
16821
16822 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemToolTip",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16823 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16824 if (!SWIG_IsOK(res1)) {
16825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16826 }
16827 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16828 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16829 if (!SWIG_IsOK(ecode2)) {
16830 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
16831 }
16832 arg2 = static_cast< unsigned int >(val2);
16833 {
16834 arg3 = wxString_in_helper(obj2);
16835 if (arg3 == NULL) SWIG_fail;
16836 temp3 = true;
16837 }
16838 {
16839 PyThreadState* __tstate = wxPyBeginAllowThreads();
16840 (arg1)->SetItemToolTip(arg2,(wxString const &)*arg3);
16841 wxPyEndAllowThreads(__tstate);
16842 if (PyErr_Occurred()) SWIG_fail;
16843 }
16844 resultobj = SWIG_Py_Void();
16845 {
16846 if (temp3)
16847 delete arg3;
16848 }
16849 return resultobj;
16850 fail:
16851 {
16852 if (temp3)
16853 delete arg3;
16854 }
16855 return NULL;
16856 }
16857
16858
16859 SWIGINTERN PyObject *_wrap_RadioBox_GetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16860 PyObject *resultobj = 0;
16861 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16862 unsigned int arg2 ;
16863 wxToolTip *result = 0 ;
16864 void *argp1 = 0 ;
16865 int res1 = 0 ;
16866 unsigned int val2 ;
16867 int ecode2 = 0 ;
16868 PyObject * obj0 = 0 ;
16869 PyObject * obj1 = 0 ;
16870 char * kwnames[] = {
16871 (char *) "self",(char *) "item", NULL
16872 };
16873
16874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
16875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16876 if (!SWIG_IsOK(res1)) {
16877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16878 }
16879 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16880 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16881 if (!SWIG_IsOK(ecode2)) {
16882 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
16883 }
16884 arg2 = static_cast< unsigned int >(val2);
16885 {
16886 PyThreadState* __tstate = wxPyBeginAllowThreads();
16887 result = (wxToolTip *)((wxRadioBox const *)arg1)->GetItemToolTip(arg2);
16888 wxPyEndAllowThreads(__tstate);
16889 if (PyErr_Occurred()) SWIG_fail;
16890 }
16891 {
16892 resultobj = wxPyMake_wxObject(result, (bool)0);
16893 }
16894 return resultobj;
16895 fail:
16896 return NULL;
16897 }
16898
16899
16900 SWIGINTERN PyObject *_wrap_RadioBox_SetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16901 PyObject *resultobj = 0;
16902 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16903 unsigned int arg2 ;
16904 wxString *arg3 = 0 ;
16905 void *argp1 = 0 ;
16906 int res1 = 0 ;
16907 unsigned int val2 ;
16908 int ecode2 = 0 ;
16909 bool temp3 = false ;
16910 PyObject * obj0 = 0 ;
16911 PyObject * obj1 = 0 ;
16912 PyObject * obj2 = 0 ;
16913 char * kwnames[] = {
16914 (char *) "self",(char *) "n",(char *) "helpText", NULL
16915 };
16916
16917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemHelpText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16919 if (!SWIG_IsOK(res1)) {
16920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16921 }
16922 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16923 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16924 if (!SWIG_IsOK(ecode2)) {
16925 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
16926 }
16927 arg2 = static_cast< unsigned int >(val2);
16928 {
16929 arg3 = wxString_in_helper(obj2);
16930 if (arg3 == NULL) SWIG_fail;
16931 temp3 = true;
16932 }
16933 {
16934 PyThreadState* __tstate = wxPyBeginAllowThreads();
16935 (arg1)->SetItemHelpText(arg2,(wxString const &)*arg3);
16936 wxPyEndAllowThreads(__tstate);
16937 if (PyErr_Occurred()) SWIG_fail;
16938 }
16939 resultobj = SWIG_Py_Void();
16940 {
16941 if (temp3)
16942 delete arg3;
16943 }
16944 return resultobj;
16945 fail:
16946 {
16947 if (temp3)
16948 delete arg3;
16949 }
16950 return NULL;
16951 }
16952
16953
16954 SWIGINTERN PyObject *_wrap_RadioBox_GetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16955 PyObject *resultobj = 0;
16956 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16957 unsigned int arg2 ;
16958 wxString result;
16959 void *argp1 = 0 ;
16960 int res1 = 0 ;
16961 unsigned int val2 ;
16962 int ecode2 = 0 ;
16963 PyObject * obj0 = 0 ;
16964 PyObject * obj1 = 0 ;
16965 char * kwnames[] = {
16966 (char *) "self",(char *) "n", NULL
16967 };
16968
16969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemHelpText",kwnames,&obj0,&obj1)) SWIG_fail;
16970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16971 if (!SWIG_IsOK(res1)) {
16972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16973 }
16974 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16975 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16976 if (!SWIG_IsOK(ecode2)) {
16977 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
16978 }
16979 arg2 = static_cast< unsigned int >(val2);
16980 {
16981 PyThreadState* __tstate = wxPyBeginAllowThreads();
16982 result = ((wxRadioBox const *)arg1)->GetItemHelpText(arg2);
16983 wxPyEndAllowThreads(__tstate);
16984 if (PyErr_Occurred()) SWIG_fail;
16985 }
16986 {
16987 #if wxUSE_UNICODE
16988 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16989 #else
16990 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16991 #endif
16992 }
16993 return resultobj;
16994 fail:
16995 return NULL;
16996 }
16997
16998
16999 SWIGINTERN PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17000 PyObject *resultobj = 0;
17001 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17002 SwigValueWrapper<wxVisualAttributes > result;
17003 int val1 ;
17004 int ecode1 = 0 ;
17005 PyObject * obj0 = 0 ;
17006 char * kwnames[] = {
17007 (char *) "variant", NULL
17008 };
17009
17010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17011 if (obj0) {
17012 ecode1 = SWIG_AsVal_int(obj0, &val1);
17013 if (!SWIG_IsOK(ecode1)) {
17014 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17015 }
17016 arg1 = static_cast< wxWindowVariant >(val1);
17017 }
17018 {
17019 if (!wxPyCheckForApp()) SWIG_fail;
17020 PyThreadState* __tstate = wxPyBeginAllowThreads();
17021 result = wxRadioBox::GetClassDefaultAttributes(arg1);
17022 wxPyEndAllowThreads(__tstate);
17023 if (PyErr_Occurred()) SWIG_fail;
17024 }
17025 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17026 return resultobj;
17027 fail:
17028 return NULL;
17029 }
17030
17031
17032 SWIGINTERN PyObject *RadioBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17033 PyObject *obj;
17034 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17035 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioBox, SWIG_NewClientData(obj));
17036 return SWIG_Py_Void();
17037 }
17038
17039 SWIGINTERN PyObject *RadioBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17040 return SWIG_Python_InitShadowInstance(args);
17041 }
17042
17043 SWIGINTERN PyObject *_wrap_new_RadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17044 PyObject *resultobj = 0;
17045 wxWindow *arg1 = (wxWindow *) 0 ;
17046 int arg2 = (int) -1 ;
17047 wxString const &arg3_defvalue = wxPyEmptyString ;
17048 wxString *arg3 = (wxString *) &arg3_defvalue ;
17049 wxPoint const &arg4_defvalue = wxDefaultPosition ;
17050 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
17051 wxSize const &arg5_defvalue = wxDefaultSize ;
17052 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
17053 long arg6 = (long) 0 ;
17054 wxValidator const &arg7_defvalue = wxDefaultValidator ;
17055 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
17056 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
17057 wxString *arg8 = (wxString *) &arg8_defvalue ;
17058 wxRadioButton *result = 0 ;
17059 void *argp1 = 0 ;
17060 int res1 = 0 ;
17061 int val2 ;
17062 int ecode2 = 0 ;
17063 bool temp3 = false ;
17064 wxPoint temp4 ;
17065 wxSize temp5 ;
17066 long val6 ;
17067 int ecode6 = 0 ;
17068 void *argp7 = 0 ;
17069 int res7 = 0 ;
17070 bool temp8 = false ;
17071 PyObject * obj0 = 0 ;
17072 PyObject * obj1 = 0 ;
17073 PyObject * obj2 = 0 ;
17074 PyObject * obj3 = 0 ;
17075 PyObject * obj4 = 0 ;
17076 PyObject * obj5 = 0 ;
17077 PyObject * obj6 = 0 ;
17078 PyObject * obj7 = 0 ;
17079 char * kwnames[] = {
17080 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17081 };
17082
17083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
17084 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17085 if (!SWIG_IsOK(res1)) {
17086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioButton" "', expected argument " "1"" of type '" "wxWindow *""'");
17087 }
17088 arg1 = reinterpret_cast< wxWindow * >(argp1);
17089 if (obj1) {
17090 ecode2 = SWIG_AsVal_int(obj1, &val2);
17091 if (!SWIG_IsOK(ecode2)) {
17092 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioButton" "', expected argument " "2"" of type '" "int""'");
17093 }
17094 arg2 = static_cast< int >(val2);
17095 }
17096 if (obj2) {
17097 {
17098 arg3 = wxString_in_helper(obj2);
17099 if (arg3 == NULL) SWIG_fail;
17100 temp3 = true;
17101 }
17102 }
17103 if (obj3) {
17104 {
17105 arg4 = &temp4;
17106 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
17107 }
17108 }
17109 if (obj4) {
17110 {
17111 arg5 = &temp5;
17112 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
17113 }
17114 }
17115 if (obj5) {
17116 ecode6 = SWIG_AsVal_long(obj5, &val6);
17117 if (!SWIG_IsOK(ecode6)) {
17118 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RadioButton" "', expected argument " "6"" of type '" "long""'");
17119 }
17120 arg6 = static_cast< long >(val6);
17121 }
17122 if (obj6) {
17123 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
17124 if (!SWIG_IsOK(res7)) {
17125 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17126 }
17127 if (!argp7) {
17128 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17129 }
17130 arg7 = reinterpret_cast< wxValidator * >(argp7);
17131 }
17132 if (obj7) {
17133 {
17134 arg8 = wxString_in_helper(obj7);
17135 if (arg8 == NULL) SWIG_fail;
17136 temp8 = true;
17137 }
17138 }
17139 {
17140 if (!wxPyCheckForApp()) SWIG_fail;
17141 PyThreadState* __tstate = wxPyBeginAllowThreads();
17142 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
17143 wxPyEndAllowThreads(__tstate);
17144 if (PyErr_Occurred()) SWIG_fail;
17145 }
17146 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_NEW | 0 );
17147 {
17148 if (temp3)
17149 delete arg3;
17150 }
17151 {
17152 if (temp8)
17153 delete arg8;
17154 }
17155 return resultobj;
17156 fail:
17157 {
17158 if (temp3)
17159 delete arg3;
17160 }
17161 {
17162 if (temp8)
17163 delete arg8;
17164 }
17165 return NULL;
17166 }
17167
17168
17169 SWIGINTERN PyObject *_wrap_new_PreRadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17170 PyObject *resultobj = 0;
17171 wxRadioButton *result = 0 ;
17172
17173 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioButton",0,0,0)) SWIG_fail;
17174 {
17175 if (!wxPyCheckForApp()) SWIG_fail;
17176 PyThreadState* __tstate = wxPyBeginAllowThreads();
17177 result = (wxRadioButton *)new wxRadioButton();
17178 wxPyEndAllowThreads(__tstate);
17179 if (PyErr_Occurred()) SWIG_fail;
17180 }
17181 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_OWN | 0 );
17182 return resultobj;
17183 fail:
17184 return NULL;
17185 }
17186
17187
17188 SWIGINTERN PyObject *_wrap_RadioButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17189 PyObject *resultobj = 0;
17190 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17191 wxWindow *arg2 = (wxWindow *) 0 ;
17192 int arg3 = (int) -1 ;
17193 wxString const &arg4_defvalue = wxPyEmptyString ;
17194 wxString *arg4 = (wxString *) &arg4_defvalue ;
17195 wxPoint const &arg5_defvalue = wxDefaultPosition ;
17196 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
17197 wxSize const &arg6_defvalue = wxDefaultSize ;
17198 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
17199 long arg7 = (long) 0 ;
17200 wxValidator const &arg8_defvalue = wxDefaultValidator ;
17201 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
17202 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
17203 wxString *arg9 = (wxString *) &arg9_defvalue ;
17204 bool result;
17205 void *argp1 = 0 ;
17206 int res1 = 0 ;
17207 void *argp2 = 0 ;
17208 int res2 = 0 ;
17209 int val3 ;
17210 int ecode3 = 0 ;
17211 bool temp4 = false ;
17212 wxPoint temp5 ;
17213 wxSize temp6 ;
17214 long val7 ;
17215 int ecode7 = 0 ;
17216 void *argp8 = 0 ;
17217 int res8 = 0 ;
17218 bool temp9 = false ;
17219 PyObject * obj0 = 0 ;
17220 PyObject * obj1 = 0 ;
17221 PyObject * obj2 = 0 ;
17222 PyObject * obj3 = 0 ;
17223 PyObject * obj4 = 0 ;
17224 PyObject * obj5 = 0 ;
17225 PyObject * obj6 = 0 ;
17226 PyObject * obj7 = 0 ;
17227 PyObject * obj8 = 0 ;
17228 char * kwnames[] = {
17229 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17230 };
17231
17232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
17233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17234 if (!SWIG_IsOK(res1)) {
17235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_Create" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17236 }
17237 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17238 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17239 if (!SWIG_IsOK(res2)) {
17240 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17241 }
17242 arg2 = reinterpret_cast< wxWindow * >(argp2);
17243 if (obj2) {
17244 ecode3 = SWIG_AsVal_int(obj2, &val3);
17245 if (!SWIG_IsOK(ecode3)) {
17246 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioButton_Create" "', expected argument " "3"" of type '" "int""'");
17247 }
17248 arg3 = static_cast< int >(val3);
17249 }
17250 if (obj3) {
17251 {
17252 arg4 = wxString_in_helper(obj3);
17253 if (arg4 == NULL) SWIG_fail;
17254 temp4 = true;
17255 }
17256 }
17257 if (obj4) {
17258 {
17259 arg5 = &temp5;
17260 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17261 }
17262 }
17263 if (obj5) {
17264 {
17265 arg6 = &temp6;
17266 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
17267 }
17268 }
17269 if (obj6) {
17270 ecode7 = SWIG_AsVal_long(obj6, &val7);
17271 if (!SWIG_IsOK(ecode7)) {
17272 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RadioButton_Create" "', expected argument " "7"" of type '" "long""'");
17273 }
17274 arg7 = static_cast< long >(val7);
17275 }
17276 if (obj7) {
17277 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
17278 if (!SWIG_IsOK(res8)) {
17279 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17280 }
17281 if (!argp8) {
17282 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17283 }
17284 arg8 = reinterpret_cast< wxValidator * >(argp8);
17285 }
17286 if (obj8) {
17287 {
17288 arg9 = wxString_in_helper(obj8);
17289 if (arg9 == NULL) SWIG_fail;
17290 temp9 = true;
17291 }
17292 }
17293 {
17294 PyThreadState* __tstate = wxPyBeginAllowThreads();
17295 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
17296 wxPyEndAllowThreads(__tstate);
17297 if (PyErr_Occurred()) SWIG_fail;
17298 }
17299 {
17300 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17301 }
17302 {
17303 if (temp4)
17304 delete arg4;
17305 }
17306 {
17307 if (temp9)
17308 delete arg9;
17309 }
17310 return resultobj;
17311 fail:
17312 {
17313 if (temp4)
17314 delete arg4;
17315 }
17316 {
17317 if (temp9)
17318 delete arg9;
17319 }
17320 return NULL;
17321 }
17322
17323
17324 SWIGINTERN PyObject *_wrap_RadioButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17325 PyObject *resultobj = 0;
17326 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17327 bool result;
17328 void *argp1 = 0 ;
17329 int res1 = 0 ;
17330 PyObject *swig_obj[1] ;
17331
17332 if (!args) SWIG_fail;
17333 swig_obj[0] = args;
17334 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17335 if (!SWIG_IsOK(res1)) {
17336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_GetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17337 }
17338 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17339 {
17340 PyThreadState* __tstate = wxPyBeginAllowThreads();
17341 result = (bool)(arg1)->GetValue();
17342 wxPyEndAllowThreads(__tstate);
17343 if (PyErr_Occurred()) SWIG_fail;
17344 }
17345 {
17346 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17347 }
17348 return resultobj;
17349 fail:
17350 return NULL;
17351 }
17352
17353
17354 SWIGINTERN PyObject *_wrap_RadioButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17355 PyObject *resultobj = 0;
17356 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17357 bool arg2 ;
17358 void *argp1 = 0 ;
17359 int res1 = 0 ;
17360 bool val2 ;
17361 int ecode2 = 0 ;
17362 PyObject * obj0 = 0 ;
17363 PyObject * obj1 = 0 ;
17364 char * kwnames[] = {
17365 (char *) "self",(char *) "value", NULL
17366 };
17367
17368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17370 if (!SWIG_IsOK(res1)) {
17371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_SetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17372 }
17373 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17374 ecode2 = SWIG_AsVal_bool(obj1, &val2);
17375 if (!SWIG_IsOK(ecode2)) {
17376 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
17377 }
17378 arg2 = static_cast< bool >(val2);
17379 {
17380 PyThreadState* __tstate = wxPyBeginAllowThreads();
17381 (arg1)->SetValue(arg2);
17382 wxPyEndAllowThreads(__tstate);
17383 if (PyErr_Occurred()) SWIG_fail;
17384 }
17385 resultobj = SWIG_Py_Void();
17386 return resultobj;
17387 fail:
17388 return NULL;
17389 }
17390
17391
17392 SWIGINTERN PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17393 PyObject *resultobj = 0;
17394 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17395 SwigValueWrapper<wxVisualAttributes > result;
17396 int val1 ;
17397 int ecode1 = 0 ;
17398 PyObject * obj0 = 0 ;
17399 char * kwnames[] = {
17400 (char *) "variant", NULL
17401 };
17402
17403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17404 if (obj0) {
17405 ecode1 = SWIG_AsVal_int(obj0, &val1);
17406 if (!SWIG_IsOK(ecode1)) {
17407 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17408 }
17409 arg1 = static_cast< wxWindowVariant >(val1);
17410 }
17411 {
17412 if (!wxPyCheckForApp()) SWIG_fail;
17413 PyThreadState* __tstate = wxPyBeginAllowThreads();
17414 result = wxRadioButton::GetClassDefaultAttributes(arg1);
17415 wxPyEndAllowThreads(__tstate);
17416 if (PyErr_Occurred()) SWIG_fail;
17417 }
17418 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17419 return resultobj;
17420 fail:
17421 return NULL;
17422 }
17423
17424
17425 SWIGINTERN PyObject *RadioButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17426 PyObject *obj;
17427 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17428 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioButton, SWIG_NewClientData(obj));
17429 return SWIG_Py_Void();
17430 }
17431
17432 SWIGINTERN PyObject *RadioButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17433 return SWIG_Python_InitShadowInstance(args);
17434 }
17435
17436 SWIGINTERN int SliderNameStr_set(PyObject *) {
17437 SWIG_Error(SWIG_AttributeError,"Variable SliderNameStr is read-only.");
17438 return 1;
17439 }
17440
17441
17442 SWIGINTERN PyObject *SliderNameStr_get(void) {
17443 PyObject *pyobj = 0;
17444
17445 {
17446 #if wxUSE_UNICODE
17447 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17448 #else
17449 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17450 #endif
17451 }
17452 return pyobj;
17453 }
17454
17455
17456 SWIGINTERN PyObject *_wrap_new_Slider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17457 PyObject *resultobj = 0;
17458 wxWindow *arg1 = (wxWindow *) 0 ;
17459 int arg2 = (int) -1 ;
17460 int arg3 = (int) 0 ;
17461 int arg4 = (int) 0 ;
17462 int arg5 = (int) 100 ;
17463 wxPoint const &arg6_defvalue = wxDefaultPosition ;
17464 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
17465 wxSize const &arg7_defvalue = wxDefaultSize ;
17466 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
17467 long arg8 = (long) wxSL_HORIZONTAL ;
17468 wxValidator const &arg9_defvalue = wxDefaultValidator ;
17469 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
17470 wxString const &arg10_defvalue = wxPySliderNameStr ;
17471 wxString *arg10 = (wxString *) &arg10_defvalue ;
17472 wxSlider *result = 0 ;
17473 void *argp1 = 0 ;
17474 int res1 = 0 ;
17475 int val2 ;
17476 int ecode2 = 0 ;
17477 int val3 ;
17478 int ecode3 = 0 ;
17479 int val4 ;
17480 int ecode4 = 0 ;
17481 int val5 ;
17482 int ecode5 = 0 ;
17483 wxPoint temp6 ;
17484 wxSize temp7 ;
17485 long val8 ;
17486 int ecode8 = 0 ;
17487 void *argp9 = 0 ;
17488 int res9 = 0 ;
17489 bool temp10 = false ;
17490 PyObject * obj0 = 0 ;
17491 PyObject * obj1 = 0 ;
17492 PyObject * obj2 = 0 ;
17493 PyObject * obj3 = 0 ;
17494 PyObject * obj4 = 0 ;
17495 PyObject * obj5 = 0 ;
17496 PyObject * obj6 = 0 ;
17497 PyObject * obj7 = 0 ;
17498 PyObject * obj8 = 0 ;
17499 PyObject * obj9 = 0 ;
17500 char * kwnames[] = {
17501 (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 *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
17505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17506 if (!SWIG_IsOK(res1)) {
17507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Slider" "', expected argument " "1"" of type '" "wxWindow *""'");
17508 }
17509 arg1 = reinterpret_cast< wxWindow * >(argp1);
17510 if (obj1) {
17511 ecode2 = SWIG_AsVal_int(obj1, &val2);
17512 if (!SWIG_IsOK(ecode2)) {
17513 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Slider" "', expected argument " "2"" of type '" "int""'");
17514 }
17515 arg2 = static_cast< int >(val2);
17516 }
17517 if (obj2) {
17518 ecode3 = SWIG_AsVal_int(obj2, &val3);
17519 if (!SWIG_IsOK(ecode3)) {
17520 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Slider" "', expected argument " "3"" of type '" "int""'");
17521 }
17522 arg3 = static_cast< int >(val3);
17523 }
17524 if (obj3) {
17525 ecode4 = SWIG_AsVal_int(obj3, &val4);
17526 if (!SWIG_IsOK(ecode4)) {
17527 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Slider" "', expected argument " "4"" of type '" "int""'");
17528 }
17529 arg4 = static_cast< int >(val4);
17530 }
17531 if (obj4) {
17532 ecode5 = SWIG_AsVal_int(obj4, &val5);
17533 if (!SWIG_IsOK(ecode5)) {
17534 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Slider" "', expected argument " "5"" of type '" "int""'");
17535 }
17536 arg5 = static_cast< int >(val5);
17537 }
17538 if (obj5) {
17539 {
17540 arg6 = &temp6;
17541 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
17542 }
17543 }
17544 if (obj6) {
17545 {
17546 arg7 = &temp7;
17547 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
17548 }
17549 }
17550 if (obj7) {
17551 ecode8 = SWIG_AsVal_long(obj7, &val8);
17552 if (!SWIG_IsOK(ecode8)) {
17553 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Slider" "', expected argument " "8"" of type '" "long""'");
17554 }
17555 arg8 = static_cast< long >(val8);
17556 }
17557 if (obj8) {
17558 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
17559 if (!SWIG_IsOK(res9)) {
17560 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
17561 }
17562 if (!argp9) {
17563 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
17564 }
17565 arg9 = reinterpret_cast< wxValidator * >(argp9);
17566 }
17567 if (obj9) {
17568 {
17569 arg10 = wxString_in_helper(obj9);
17570 if (arg10 == NULL) SWIG_fail;
17571 temp10 = true;
17572 }
17573 }
17574 {
17575 if (!wxPyCheckForApp()) SWIG_fail;
17576 PyThreadState* __tstate = wxPyBeginAllowThreads();
17577 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
17578 wxPyEndAllowThreads(__tstate);
17579 if (PyErr_Occurred()) SWIG_fail;
17580 }
17581 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_NEW | 0 );
17582 {
17583 if (temp10)
17584 delete arg10;
17585 }
17586 return resultobj;
17587 fail:
17588 {
17589 if (temp10)
17590 delete arg10;
17591 }
17592 return NULL;
17593 }
17594
17595
17596 SWIGINTERN PyObject *_wrap_new_PreSlider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17597 PyObject *resultobj = 0;
17598 wxSlider *result = 0 ;
17599
17600 if (!SWIG_Python_UnpackTuple(args,"new_PreSlider",0,0,0)) SWIG_fail;
17601 {
17602 if (!wxPyCheckForApp()) SWIG_fail;
17603 PyThreadState* __tstate = wxPyBeginAllowThreads();
17604 result = (wxSlider *)new wxSlider();
17605 wxPyEndAllowThreads(__tstate);
17606 if (PyErr_Occurred()) SWIG_fail;
17607 }
17608 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_OWN | 0 );
17609 return resultobj;
17610 fail:
17611 return NULL;
17612 }
17613
17614
17615 SWIGINTERN PyObject *_wrap_Slider_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17616 PyObject *resultobj = 0;
17617 wxSlider *arg1 = (wxSlider *) 0 ;
17618 wxWindow *arg2 = (wxWindow *) 0 ;
17619 int arg3 = (int) -1 ;
17620 int arg4 = (int) 0 ;
17621 int arg5 = (int) 0 ;
17622 int arg6 = (int) 100 ;
17623 wxPoint const &arg7_defvalue = wxDefaultPosition ;
17624 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
17625 wxSize const &arg8_defvalue = wxDefaultSize ;
17626 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
17627 long arg9 = (long) wxSL_HORIZONTAL ;
17628 wxValidator const &arg10_defvalue = wxDefaultValidator ;
17629 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
17630 wxString const &arg11_defvalue = wxPySliderNameStr ;
17631 wxString *arg11 = (wxString *) &arg11_defvalue ;
17632 bool result;
17633 void *argp1 = 0 ;
17634 int res1 = 0 ;
17635 void *argp2 = 0 ;
17636 int res2 = 0 ;
17637 int val3 ;
17638 int ecode3 = 0 ;
17639 int val4 ;
17640 int ecode4 = 0 ;
17641 int val5 ;
17642 int ecode5 = 0 ;
17643 int val6 ;
17644 int ecode6 = 0 ;
17645 wxPoint temp7 ;
17646 wxSize temp8 ;
17647 long val9 ;
17648 int ecode9 = 0 ;
17649 void *argp10 = 0 ;
17650 int res10 = 0 ;
17651 bool temp11 = false ;
17652 PyObject * obj0 = 0 ;
17653 PyObject * obj1 = 0 ;
17654 PyObject * obj2 = 0 ;
17655 PyObject * obj3 = 0 ;
17656 PyObject * obj4 = 0 ;
17657 PyObject * obj5 = 0 ;
17658 PyObject * obj6 = 0 ;
17659 PyObject * obj7 = 0 ;
17660 PyObject * obj8 = 0 ;
17661 PyObject * obj9 = 0 ;
17662 PyObject * obj10 = 0 ;
17663 char * kwnames[] = {
17664 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17665 };
17666
17667 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
17668 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17669 if (!SWIG_IsOK(res1)) {
17670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_Create" "', expected argument " "1"" of type '" "wxSlider *""'");
17671 }
17672 arg1 = reinterpret_cast< wxSlider * >(argp1);
17673 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17674 if (!SWIG_IsOK(res2)) {
17675 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Slider_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17676 }
17677 arg2 = reinterpret_cast< wxWindow * >(argp2);
17678 if (obj2) {
17679 ecode3 = SWIG_AsVal_int(obj2, &val3);
17680 if (!SWIG_IsOK(ecode3)) {
17681 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_Create" "', expected argument " "3"" of type '" "int""'");
17682 }
17683 arg3 = static_cast< int >(val3);
17684 }
17685 if (obj3) {
17686 ecode4 = SWIG_AsVal_int(obj3, &val4);
17687 if (!SWIG_IsOK(ecode4)) {
17688 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Slider_Create" "', expected argument " "4"" of type '" "int""'");
17689 }
17690 arg4 = static_cast< int >(val4);
17691 }
17692 if (obj4) {
17693 ecode5 = SWIG_AsVal_int(obj4, &val5);
17694 if (!SWIG_IsOK(ecode5)) {
17695 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Slider_Create" "', expected argument " "5"" of type '" "int""'");
17696 }
17697 arg5 = static_cast< int >(val5);
17698 }
17699 if (obj5) {
17700 ecode6 = SWIG_AsVal_int(obj5, &val6);
17701 if (!SWIG_IsOK(ecode6)) {
17702 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Slider_Create" "', expected argument " "6"" of type '" "int""'");
17703 }
17704 arg6 = static_cast< int >(val6);
17705 }
17706 if (obj6) {
17707 {
17708 arg7 = &temp7;
17709 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
17710 }
17711 }
17712 if (obj7) {
17713 {
17714 arg8 = &temp8;
17715 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
17716 }
17717 }
17718 if (obj8) {
17719 ecode9 = SWIG_AsVal_long(obj8, &val9);
17720 if (!SWIG_IsOK(ecode9)) {
17721 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "Slider_Create" "', expected argument " "9"" of type '" "long""'");
17722 }
17723 arg9 = static_cast< long >(val9);
17724 }
17725 if (obj9) {
17726 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
17727 if (!SWIG_IsOK(res10)) {
17728 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
17729 }
17730 if (!argp10) {
17731 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
17732 }
17733 arg10 = reinterpret_cast< wxValidator * >(argp10);
17734 }
17735 if (obj10) {
17736 {
17737 arg11 = wxString_in_helper(obj10);
17738 if (arg11 == NULL) SWIG_fail;
17739 temp11 = true;
17740 }
17741 }
17742 {
17743 PyThreadState* __tstate = wxPyBeginAllowThreads();
17744 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
17745 wxPyEndAllowThreads(__tstate);
17746 if (PyErr_Occurred()) SWIG_fail;
17747 }
17748 {
17749 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17750 }
17751 {
17752 if (temp11)
17753 delete arg11;
17754 }
17755 return resultobj;
17756 fail:
17757 {
17758 if (temp11)
17759 delete arg11;
17760 }
17761 return NULL;
17762 }
17763
17764
17765 SWIGINTERN PyObject *_wrap_Slider_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17766 PyObject *resultobj = 0;
17767 wxSlider *arg1 = (wxSlider *) 0 ;
17768 int result;
17769 void *argp1 = 0 ;
17770 int res1 = 0 ;
17771 PyObject *swig_obj[1] ;
17772
17773 if (!args) SWIG_fail;
17774 swig_obj[0] = args;
17775 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17776 if (!SWIG_IsOK(res1)) {
17777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetValue" "', expected argument " "1"" of type '" "wxSlider const *""'");
17778 }
17779 arg1 = reinterpret_cast< wxSlider * >(argp1);
17780 {
17781 PyThreadState* __tstate = wxPyBeginAllowThreads();
17782 result = (int)((wxSlider const *)arg1)->GetValue();
17783 wxPyEndAllowThreads(__tstate);
17784 if (PyErr_Occurred()) SWIG_fail;
17785 }
17786 resultobj = SWIG_From_int(static_cast< int >(result));
17787 return resultobj;
17788 fail:
17789 return NULL;
17790 }
17791
17792
17793 SWIGINTERN PyObject *_wrap_Slider_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17794 PyObject *resultobj = 0;
17795 wxSlider *arg1 = (wxSlider *) 0 ;
17796 int arg2 ;
17797 void *argp1 = 0 ;
17798 int res1 = 0 ;
17799 int val2 ;
17800 int ecode2 = 0 ;
17801 PyObject * obj0 = 0 ;
17802 PyObject * obj1 = 0 ;
17803 char * kwnames[] = {
17804 (char *) "self",(char *) "value", NULL
17805 };
17806
17807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17808 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17809 if (!SWIG_IsOK(res1)) {
17810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetValue" "', expected argument " "1"" of type '" "wxSlider *""'");
17811 }
17812 arg1 = reinterpret_cast< wxSlider * >(argp1);
17813 ecode2 = SWIG_AsVal_int(obj1, &val2);
17814 if (!SWIG_IsOK(ecode2)) {
17815 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetValue" "', expected argument " "2"" of type '" "int""'");
17816 }
17817 arg2 = static_cast< int >(val2);
17818 {
17819 PyThreadState* __tstate = wxPyBeginAllowThreads();
17820 (arg1)->SetValue(arg2);
17821 wxPyEndAllowThreads(__tstate);
17822 if (PyErr_Occurred()) SWIG_fail;
17823 }
17824 resultobj = SWIG_Py_Void();
17825 return resultobj;
17826 fail:
17827 return NULL;
17828 }
17829
17830
17831 SWIGINTERN PyObject *_wrap_Slider_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17832 PyObject *resultobj = 0;
17833 wxSlider *arg1 = (wxSlider *) 0 ;
17834 int arg2 ;
17835 int arg3 ;
17836 void *argp1 = 0 ;
17837 int res1 = 0 ;
17838 int val2 ;
17839 int ecode2 = 0 ;
17840 int val3 ;
17841 int ecode3 = 0 ;
17842 PyObject * obj0 = 0 ;
17843 PyObject * obj1 = 0 ;
17844 PyObject * obj2 = 0 ;
17845 char * kwnames[] = {
17846 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
17847 };
17848
17849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17851 if (!SWIG_IsOK(res1)) {
17852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetRange" "', expected argument " "1"" of type '" "wxSlider *""'");
17853 }
17854 arg1 = reinterpret_cast< wxSlider * >(argp1);
17855 ecode2 = SWIG_AsVal_int(obj1, &val2);
17856 if (!SWIG_IsOK(ecode2)) {
17857 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetRange" "', expected argument " "2"" of type '" "int""'");
17858 }
17859 arg2 = static_cast< int >(val2);
17860 ecode3 = SWIG_AsVal_int(obj2, &val3);
17861 if (!SWIG_IsOK(ecode3)) {
17862 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetRange" "', expected argument " "3"" of type '" "int""'");
17863 }
17864 arg3 = static_cast< int >(val3);
17865 {
17866 PyThreadState* __tstate = wxPyBeginAllowThreads();
17867 (arg1)->SetRange(arg2,arg3);
17868 wxPyEndAllowThreads(__tstate);
17869 if (PyErr_Occurred()) SWIG_fail;
17870 }
17871 resultobj = SWIG_Py_Void();
17872 return resultobj;
17873 fail:
17874 return NULL;
17875 }
17876
17877
17878 SWIGINTERN PyObject *_wrap_Slider_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17879 PyObject *resultobj = 0;
17880 wxSlider *arg1 = (wxSlider *) 0 ;
17881 int result;
17882 void *argp1 = 0 ;
17883 int res1 = 0 ;
17884 PyObject *swig_obj[1] ;
17885
17886 if (!args) SWIG_fail;
17887 swig_obj[0] = args;
17888 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17889 if (!SWIG_IsOK(res1)) {
17890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMin" "', expected argument " "1"" of type '" "wxSlider const *""'");
17891 }
17892 arg1 = reinterpret_cast< wxSlider * >(argp1);
17893 {
17894 PyThreadState* __tstate = wxPyBeginAllowThreads();
17895 result = (int)((wxSlider const *)arg1)->GetMin();
17896 wxPyEndAllowThreads(__tstate);
17897 if (PyErr_Occurred()) SWIG_fail;
17898 }
17899 resultobj = SWIG_From_int(static_cast< int >(result));
17900 return resultobj;
17901 fail:
17902 return NULL;
17903 }
17904
17905
17906 SWIGINTERN PyObject *_wrap_Slider_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17907 PyObject *resultobj = 0;
17908 wxSlider *arg1 = (wxSlider *) 0 ;
17909 int result;
17910 void *argp1 = 0 ;
17911 int res1 = 0 ;
17912 PyObject *swig_obj[1] ;
17913
17914 if (!args) SWIG_fail;
17915 swig_obj[0] = args;
17916 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17917 if (!SWIG_IsOK(res1)) {
17918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMax" "', expected argument " "1"" of type '" "wxSlider const *""'");
17919 }
17920 arg1 = reinterpret_cast< wxSlider * >(argp1);
17921 {
17922 PyThreadState* __tstate = wxPyBeginAllowThreads();
17923 result = (int)((wxSlider const *)arg1)->GetMax();
17924 wxPyEndAllowThreads(__tstate);
17925 if (PyErr_Occurred()) SWIG_fail;
17926 }
17927 resultobj = SWIG_From_int(static_cast< int >(result));
17928 return resultobj;
17929 fail:
17930 return NULL;
17931 }
17932
17933
17934 SWIGINTERN PyObject *_wrap_Slider_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17935 PyObject *resultobj = 0;
17936 wxSlider *arg1 = (wxSlider *) 0 ;
17937 int arg2 ;
17938 void *argp1 = 0 ;
17939 int res1 = 0 ;
17940 int val2 ;
17941 int ecode2 = 0 ;
17942 PyObject * obj0 = 0 ;
17943 PyObject * obj1 = 0 ;
17944 char * kwnames[] = {
17945 (char *) "self",(char *) "minValue", NULL
17946 };
17947
17948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
17949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17950 if (!SWIG_IsOK(res1)) {
17951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMin" "', expected argument " "1"" of type '" "wxSlider *""'");
17952 }
17953 arg1 = reinterpret_cast< wxSlider * >(argp1);
17954 ecode2 = SWIG_AsVal_int(obj1, &val2);
17955 if (!SWIG_IsOK(ecode2)) {
17956 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMin" "', expected argument " "2"" of type '" "int""'");
17957 }
17958 arg2 = static_cast< int >(val2);
17959 {
17960 PyThreadState* __tstate = wxPyBeginAllowThreads();
17961 (arg1)->SetMin(arg2);
17962 wxPyEndAllowThreads(__tstate);
17963 if (PyErr_Occurred()) SWIG_fail;
17964 }
17965 resultobj = SWIG_Py_Void();
17966 return resultobj;
17967 fail:
17968 return NULL;
17969 }
17970
17971
17972 SWIGINTERN PyObject *_wrap_Slider_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17973 PyObject *resultobj = 0;
17974 wxSlider *arg1 = (wxSlider *) 0 ;
17975 int arg2 ;
17976 void *argp1 = 0 ;
17977 int res1 = 0 ;
17978 int val2 ;
17979 int ecode2 = 0 ;
17980 PyObject * obj0 = 0 ;
17981 PyObject * obj1 = 0 ;
17982 char * kwnames[] = {
17983 (char *) "self",(char *) "maxValue", NULL
17984 };
17985
17986 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
17987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17988 if (!SWIG_IsOK(res1)) {
17989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMax" "', expected argument " "1"" of type '" "wxSlider *""'");
17990 }
17991 arg1 = reinterpret_cast< wxSlider * >(argp1);
17992 ecode2 = SWIG_AsVal_int(obj1, &val2);
17993 if (!SWIG_IsOK(ecode2)) {
17994 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMax" "', expected argument " "2"" of type '" "int""'");
17995 }
17996 arg2 = static_cast< int >(val2);
17997 {
17998 PyThreadState* __tstate = wxPyBeginAllowThreads();
17999 (arg1)->SetMax(arg2);
18000 wxPyEndAllowThreads(__tstate);
18001 if (PyErr_Occurred()) SWIG_fail;
18002 }
18003 resultobj = SWIG_Py_Void();
18004 return resultobj;
18005 fail:
18006 return NULL;
18007 }
18008
18009
18010 SWIGINTERN PyObject *_wrap_Slider_SetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18011 PyObject *resultobj = 0;
18012 wxSlider *arg1 = (wxSlider *) 0 ;
18013 int arg2 ;
18014 void *argp1 = 0 ;
18015 int res1 = 0 ;
18016 int val2 ;
18017 int ecode2 = 0 ;
18018 PyObject * obj0 = 0 ;
18019 PyObject * obj1 = 0 ;
18020 char * kwnames[] = {
18021 (char *) "self",(char *) "lineSize", NULL
18022 };
18023
18024 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) SWIG_fail;
18025 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18026 if (!SWIG_IsOK(res1)) {
18027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetLineSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18028 }
18029 arg1 = reinterpret_cast< wxSlider * >(argp1);
18030 ecode2 = SWIG_AsVal_int(obj1, &val2);
18031 if (!SWIG_IsOK(ecode2)) {
18032 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetLineSize" "', expected argument " "2"" of type '" "int""'");
18033 }
18034 arg2 = static_cast< int >(val2);
18035 {
18036 PyThreadState* __tstate = wxPyBeginAllowThreads();
18037 (arg1)->SetLineSize(arg2);
18038 wxPyEndAllowThreads(__tstate);
18039 if (PyErr_Occurred()) SWIG_fail;
18040 }
18041 resultobj = SWIG_Py_Void();
18042 return resultobj;
18043 fail:
18044 return NULL;
18045 }
18046
18047
18048 SWIGINTERN PyObject *_wrap_Slider_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18049 PyObject *resultobj = 0;
18050 wxSlider *arg1 = (wxSlider *) 0 ;
18051 int arg2 ;
18052 void *argp1 = 0 ;
18053 int res1 = 0 ;
18054 int val2 ;
18055 int ecode2 = 0 ;
18056 PyObject * obj0 = 0 ;
18057 PyObject * obj1 = 0 ;
18058 char * kwnames[] = {
18059 (char *) "self",(char *) "pageSize", NULL
18060 };
18061
18062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
18063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18064 if (!SWIG_IsOK(res1)) {
18065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetPageSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18066 }
18067 arg1 = reinterpret_cast< wxSlider * >(argp1);
18068 ecode2 = SWIG_AsVal_int(obj1, &val2);
18069 if (!SWIG_IsOK(ecode2)) {
18070 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetPageSize" "', expected argument " "2"" of type '" "int""'");
18071 }
18072 arg2 = static_cast< int >(val2);
18073 {
18074 PyThreadState* __tstate = wxPyBeginAllowThreads();
18075 (arg1)->SetPageSize(arg2);
18076 wxPyEndAllowThreads(__tstate);
18077 if (PyErr_Occurred()) SWIG_fail;
18078 }
18079 resultobj = SWIG_Py_Void();
18080 return resultobj;
18081 fail:
18082 return NULL;
18083 }
18084
18085
18086 SWIGINTERN PyObject *_wrap_Slider_GetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18087 PyObject *resultobj = 0;
18088 wxSlider *arg1 = (wxSlider *) 0 ;
18089 int result;
18090 void *argp1 = 0 ;
18091 int res1 = 0 ;
18092 PyObject *swig_obj[1] ;
18093
18094 if (!args) SWIG_fail;
18095 swig_obj[0] = args;
18096 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18097 if (!SWIG_IsOK(res1)) {
18098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetLineSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18099 }
18100 arg1 = reinterpret_cast< wxSlider * >(argp1);
18101 {
18102 PyThreadState* __tstate = wxPyBeginAllowThreads();
18103 result = (int)((wxSlider const *)arg1)->GetLineSize();
18104 wxPyEndAllowThreads(__tstate);
18105 if (PyErr_Occurred()) SWIG_fail;
18106 }
18107 resultobj = SWIG_From_int(static_cast< int >(result));
18108 return resultobj;
18109 fail:
18110 return NULL;
18111 }
18112
18113
18114 SWIGINTERN PyObject *_wrap_Slider_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18115 PyObject *resultobj = 0;
18116 wxSlider *arg1 = (wxSlider *) 0 ;
18117 int result;
18118 void *argp1 = 0 ;
18119 int res1 = 0 ;
18120 PyObject *swig_obj[1] ;
18121
18122 if (!args) SWIG_fail;
18123 swig_obj[0] = args;
18124 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18125 if (!SWIG_IsOK(res1)) {
18126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetPageSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18127 }
18128 arg1 = reinterpret_cast< wxSlider * >(argp1);
18129 {
18130 PyThreadState* __tstate = wxPyBeginAllowThreads();
18131 result = (int)((wxSlider const *)arg1)->GetPageSize();
18132 wxPyEndAllowThreads(__tstate);
18133 if (PyErr_Occurred()) SWIG_fail;
18134 }
18135 resultobj = SWIG_From_int(static_cast< int >(result));
18136 return resultobj;
18137 fail:
18138 return NULL;
18139 }
18140
18141
18142 SWIGINTERN PyObject *_wrap_Slider_SetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18143 PyObject *resultobj = 0;
18144 wxSlider *arg1 = (wxSlider *) 0 ;
18145 int arg2 ;
18146 void *argp1 = 0 ;
18147 int res1 = 0 ;
18148 int val2 ;
18149 int ecode2 = 0 ;
18150 PyObject * obj0 = 0 ;
18151 PyObject * obj1 = 0 ;
18152 char * kwnames[] = {
18153 (char *) "self",(char *) "lenPixels", NULL
18154 };
18155
18156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) SWIG_fail;
18157 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18158 if (!SWIG_IsOK(res1)) {
18159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetThumbLength" "', expected argument " "1"" of type '" "wxSlider *""'");
18160 }
18161 arg1 = reinterpret_cast< wxSlider * >(argp1);
18162 ecode2 = SWIG_AsVal_int(obj1, &val2);
18163 if (!SWIG_IsOK(ecode2)) {
18164 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetThumbLength" "', expected argument " "2"" of type '" "int""'");
18165 }
18166 arg2 = static_cast< int >(val2);
18167 {
18168 PyThreadState* __tstate = wxPyBeginAllowThreads();
18169 (arg1)->SetThumbLength(arg2);
18170 wxPyEndAllowThreads(__tstate);
18171 if (PyErr_Occurred()) SWIG_fail;
18172 }
18173 resultobj = SWIG_Py_Void();
18174 return resultobj;
18175 fail:
18176 return NULL;
18177 }
18178
18179
18180 SWIGINTERN PyObject *_wrap_Slider_GetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18181 PyObject *resultobj = 0;
18182 wxSlider *arg1 = (wxSlider *) 0 ;
18183 int result;
18184 void *argp1 = 0 ;
18185 int res1 = 0 ;
18186 PyObject *swig_obj[1] ;
18187
18188 if (!args) SWIG_fail;
18189 swig_obj[0] = args;
18190 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18191 if (!SWIG_IsOK(res1)) {
18192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetThumbLength" "', expected argument " "1"" of type '" "wxSlider const *""'");
18193 }
18194 arg1 = reinterpret_cast< wxSlider * >(argp1);
18195 {
18196 PyThreadState* __tstate = wxPyBeginAllowThreads();
18197 result = (int)((wxSlider const *)arg1)->GetThumbLength();
18198 wxPyEndAllowThreads(__tstate);
18199 if (PyErr_Occurred()) SWIG_fail;
18200 }
18201 resultobj = SWIG_From_int(static_cast< int >(result));
18202 return resultobj;
18203 fail:
18204 return NULL;
18205 }
18206
18207
18208 SWIGINTERN PyObject *_wrap_Slider_SetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18209 PyObject *resultobj = 0;
18210 wxSlider *arg1 = (wxSlider *) 0 ;
18211 int arg2 ;
18212 int arg3 = (int) 1 ;
18213 void *argp1 = 0 ;
18214 int res1 = 0 ;
18215 int val2 ;
18216 int ecode2 = 0 ;
18217 int val3 ;
18218 int ecode3 = 0 ;
18219 PyObject * obj0 = 0 ;
18220 PyObject * obj1 = 0 ;
18221 PyObject * obj2 = 0 ;
18222 char * kwnames[] = {
18223 (char *) "self",(char *) "n",(char *) "pos", NULL
18224 };
18225
18226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18228 if (!SWIG_IsOK(res1)) {
18229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTickFreq" "', expected argument " "1"" of type '" "wxSlider *""'");
18230 }
18231 arg1 = reinterpret_cast< wxSlider * >(argp1);
18232 ecode2 = SWIG_AsVal_int(obj1, &val2);
18233 if (!SWIG_IsOK(ecode2)) {
18234 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTickFreq" "', expected argument " "2"" of type '" "int""'");
18235 }
18236 arg2 = static_cast< int >(val2);
18237 if (obj2) {
18238 ecode3 = SWIG_AsVal_int(obj2, &val3);
18239 if (!SWIG_IsOK(ecode3)) {
18240 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetTickFreq" "', expected argument " "3"" of type '" "int""'");
18241 }
18242 arg3 = static_cast< int >(val3);
18243 }
18244 {
18245 PyThreadState* __tstate = wxPyBeginAllowThreads();
18246 (arg1)->SetTickFreq(arg2,arg3);
18247 wxPyEndAllowThreads(__tstate);
18248 if (PyErr_Occurred()) SWIG_fail;
18249 }
18250 resultobj = SWIG_Py_Void();
18251 return resultobj;
18252 fail:
18253 return NULL;
18254 }
18255
18256
18257 SWIGINTERN PyObject *_wrap_Slider_GetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18258 PyObject *resultobj = 0;
18259 wxSlider *arg1 = (wxSlider *) 0 ;
18260 int result;
18261 void *argp1 = 0 ;
18262 int res1 = 0 ;
18263 PyObject *swig_obj[1] ;
18264
18265 if (!args) SWIG_fail;
18266 swig_obj[0] = args;
18267 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18268 if (!SWIG_IsOK(res1)) {
18269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetTickFreq" "', expected argument " "1"" of type '" "wxSlider const *""'");
18270 }
18271 arg1 = reinterpret_cast< wxSlider * >(argp1);
18272 {
18273 PyThreadState* __tstate = wxPyBeginAllowThreads();
18274 result = (int)((wxSlider const *)arg1)->GetTickFreq();
18275 wxPyEndAllowThreads(__tstate);
18276 if (PyErr_Occurred()) SWIG_fail;
18277 }
18278 resultobj = SWIG_From_int(static_cast< int >(result));
18279 return resultobj;
18280 fail:
18281 return NULL;
18282 }
18283
18284
18285 SWIGINTERN PyObject *_wrap_Slider_ClearTicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18286 PyObject *resultobj = 0;
18287 wxSlider *arg1 = (wxSlider *) 0 ;
18288 void *argp1 = 0 ;
18289 int res1 = 0 ;
18290 PyObject *swig_obj[1] ;
18291
18292 if (!args) SWIG_fail;
18293 swig_obj[0] = args;
18294 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18295 if (!SWIG_IsOK(res1)) {
18296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearTicks" "', expected argument " "1"" of type '" "wxSlider *""'");
18297 }
18298 arg1 = reinterpret_cast< wxSlider * >(argp1);
18299 {
18300 PyThreadState* __tstate = wxPyBeginAllowThreads();
18301 (arg1)->ClearTicks();
18302 wxPyEndAllowThreads(__tstate);
18303 if (PyErr_Occurred()) SWIG_fail;
18304 }
18305 resultobj = SWIG_Py_Void();
18306 return resultobj;
18307 fail:
18308 return NULL;
18309 }
18310
18311
18312 SWIGINTERN PyObject *_wrap_Slider_SetTick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18313 PyObject *resultobj = 0;
18314 wxSlider *arg1 = (wxSlider *) 0 ;
18315 int arg2 ;
18316 void *argp1 = 0 ;
18317 int res1 = 0 ;
18318 int val2 ;
18319 int ecode2 = 0 ;
18320 PyObject * obj0 = 0 ;
18321 PyObject * obj1 = 0 ;
18322 char * kwnames[] = {
18323 (char *) "self",(char *) "tickPos", NULL
18324 };
18325
18326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) SWIG_fail;
18327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18328 if (!SWIG_IsOK(res1)) {
18329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTick" "', expected argument " "1"" of type '" "wxSlider *""'");
18330 }
18331 arg1 = reinterpret_cast< wxSlider * >(argp1);
18332 ecode2 = SWIG_AsVal_int(obj1, &val2);
18333 if (!SWIG_IsOK(ecode2)) {
18334 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTick" "', expected argument " "2"" of type '" "int""'");
18335 }
18336 arg2 = static_cast< int >(val2);
18337 {
18338 PyThreadState* __tstate = wxPyBeginAllowThreads();
18339 (arg1)->SetTick(arg2);
18340 wxPyEndAllowThreads(__tstate);
18341 if (PyErr_Occurred()) SWIG_fail;
18342 }
18343 resultobj = SWIG_Py_Void();
18344 return resultobj;
18345 fail:
18346 return NULL;
18347 }
18348
18349
18350 SWIGINTERN PyObject *_wrap_Slider_ClearSel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18351 PyObject *resultobj = 0;
18352 wxSlider *arg1 = (wxSlider *) 0 ;
18353 void *argp1 = 0 ;
18354 int res1 = 0 ;
18355 PyObject *swig_obj[1] ;
18356
18357 if (!args) SWIG_fail;
18358 swig_obj[0] = args;
18359 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18360 if (!SWIG_IsOK(res1)) {
18361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearSel" "', expected argument " "1"" of type '" "wxSlider *""'");
18362 }
18363 arg1 = reinterpret_cast< wxSlider * >(argp1);
18364 {
18365 PyThreadState* __tstate = wxPyBeginAllowThreads();
18366 (arg1)->ClearSel();
18367 wxPyEndAllowThreads(__tstate);
18368 if (PyErr_Occurred()) SWIG_fail;
18369 }
18370 resultobj = SWIG_Py_Void();
18371 return resultobj;
18372 fail:
18373 return NULL;
18374 }
18375
18376
18377 SWIGINTERN PyObject *_wrap_Slider_GetSelEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18378 PyObject *resultobj = 0;
18379 wxSlider *arg1 = (wxSlider *) 0 ;
18380 int result;
18381 void *argp1 = 0 ;
18382 int res1 = 0 ;
18383 PyObject *swig_obj[1] ;
18384
18385 if (!args) SWIG_fail;
18386 swig_obj[0] = args;
18387 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18388 if (!SWIG_IsOK(res1)) {
18389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelEnd" "', expected argument " "1"" of type '" "wxSlider const *""'");
18390 }
18391 arg1 = reinterpret_cast< wxSlider * >(argp1);
18392 {
18393 PyThreadState* __tstate = wxPyBeginAllowThreads();
18394 result = (int)((wxSlider const *)arg1)->GetSelEnd();
18395 wxPyEndAllowThreads(__tstate);
18396 if (PyErr_Occurred()) SWIG_fail;
18397 }
18398 resultobj = SWIG_From_int(static_cast< int >(result));
18399 return resultobj;
18400 fail:
18401 return NULL;
18402 }
18403
18404
18405 SWIGINTERN PyObject *_wrap_Slider_GetSelStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18406 PyObject *resultobj = 0;
18407 wxSlider *arg1 = (wxSlider *) 0 ;
18408 int result;
18409 void *argp1 = 0 ;
18410 int res1 = 0 ;
18411 PyObject *swig_obj[1] ;
18412
18413 if (!args) SWIG_fail;
18414 swig_obj[0] = args;
18415 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18416 if (!SWIG_IsOK(res1)) {
18417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelStart" "', expected argument " "1"" of type '" "wxSlider const *""'");
18418 }
18419 arg1 = reinterpret_cast< wxSlider * >(argp1);
18420 {
18421 PyThreadState* __tstate = wxPyBeginAllowThreads();
18422 result = (int)((wxSlider const *)arg1)->GetSelStart();
18423 wxPyEndAllowThreads(__tstate);
18424 if (PyErr_Occurred()) SWIG_fail;
18425 }
18426 resultobj = SWIG_From_int(static_cast< int >(result));
18427 return resultobj;
18428 fail:
18429 return NULL;
18430 }
18431
18432
18433 SWIGINTERN PyObject *_wrap_Slider_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18434 PyObject *resultobj = 0;
18435 wxSlider *arg1 = (wxSlider *) 0 ;
18436 int arg2 ;
18437 int arg3 ;
18438 void *argp1 = 0 ;
18439 int res1 = 0 ;
18440 int val2 ;
18441 int ecode2 = 0 ;
18442 int val3 ;
18443 int ecode3 = 0 ;
18444 PyObject * obj0 = 0 ;
18445 PyObject * obj1 = 0 ;
18446 PyObject * obj2 = 0 ;
18447 char * kwnames[] = {
18448 (char *) "self",(char *) "min",(char *) "max", NULL
18449 };
18450
18451 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18452 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18453 if (!SWIG_IsOK(res1)) {
18454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetSelection" "', expected argument " "1"" of type '" "wxSlider *""'");
18455 }
18456 arg1 = reinterpret_cast< wxSlider * >(argp1);
18457 ecode2 = SWIG_AsVal_int(obj1, &val2);
18458 if (!SWIG_IsOK(ecode2)) {
18459 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetSelection" "', expected argument " "2"" of type '" "int""'");
18460 }
18461 arg2 = static_cast< int >(val2);
18462 ecode3 = SWIG_AsVal_int(obj2, &val3);
18463 if (!SWIG_IsOK(ecode3)) {
18464 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetSelection" "', expected argument " "3"" of type '" "int""'");
18465 }
18466 arg3 = static_cast< int >(val3);
18467 {
18468 PyThreadState* __tstate = wxPyBeginAllowThreads();
18469 (arg1)->SetSelection(arg2,arg3);
18470 wxPyEndAllowThreads(__tstate);
18471 if (PyErr_Occurred()) SWIG_fail;
18472 }
18473 resultobj = SWIG_Py_Void();
18474 return resultobj;
18475 fail:
18476 return NULL;
18477 }
18478
18479
18480 SWIGINTERN PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18481 PyObject *resultobj = 0;
18482 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18483 SwigValueWrapper<wxVisualAttributes > result;
18484 int val1 ;
18485 int ecode1 = 0 ;
18486 PyObject * obj0 = 0 ;
18487 char * kwnames[] = {
18488 (char *) "variant", NULL
18489 };
18490
18491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18492 if (obj0) {
18493 ecode1 = SWIG_AsVal_int(obj0, &val1);
18494 if (!SWIG_IsOK(ecode1)) {
18495 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Slider_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18496 }
18497 arg1 = static_cast< wxWindowVariant >(val1);
18498 }
18499 {
18500 if (!wxPyCheckForApp()) SWIG_fail;
18501 PyThreadState* __tstate = wxPyBeginAllowThreads();
18502 result = wxSlider::GetClassDefaultAttributes(arg1);
18503 wxPyEndAllowThreads(__tstate);
18504 if (PyErr_Occurred()) SWIG_fail;
18505 }
18506 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18507 return resultobj;
18508 fail:
18509 return NULL;
18510 }
18511
18512
18513 SWIGINTERN PyObject *Slider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18514 PyObject *obj;
18515 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18516 SWIG_TypeNewClientData(SWIGTYPE_p_wxSlider, SWIG_NewClientData(obj));
18517 return SWIG_Py_Void();
18518 }
18519
18520 SWIGINTERN PyObject *Slider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18521 return SWIG_Python_InitShadowInstance(args);
18522 }
18523
18524 SWIGINTERN int ToggleButtonNameStr_set(PyObject *) {
18525 SWIG_Error(SWIG_AttributeError,"Variable ToggleButtonNameStr is read-only.");
18526 return 1;
18527 }
18528
18529
18530 SWIGINTERN PyObject *ToggleButtonNameStr_get(void) {
18531 PyObject *pyobj = 0;
18532
18533 {
18534 #if wxUSE_UNICODE
18535 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18536 #else
18537 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18538 #endif
18539 }
18540 return pyobj;
18541 }
18542
18543
18544 SWIGINTERN PyObject *_wrap_new_ToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18545 PyObject *resultobj = 0;
18546 wxWindow *arg1 = (wxWindow *) 0 ;
18547 int arg2 = (int) -1 ;
18548 wxString const &arg3_defvalue = wxPyEmptyString ;
18549 wxString *arg3 = (wxString *) &arg3_defvalue ;
18550 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18551 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18552 wxSize const &arg5_defvalue = wxDefaultSize ;
18553 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18554 long arg6 = (long) 0 ;
18555 wxValidator const &arg7_defvalue = wxDefaultValidator ;
18556 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
18557 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
18558 wxString *arg8 = (wxString *) &arg8_defvalue ;
18559 wxToggleButton *result = 0 ;
18560 void *argp1 = 0 ;
18561 int res1 = 0 ;
18562 int val2 ;
18563 int ecode2 = 0 ;
18564 bool temp3 = false ;
18565 wxPoint temp4 ;
18566 wxSize temp5 ;
18567 long val6 ;
18568 int ecode6 = 0 ;
18569 void *argp7 = 0 ;
18570 int res7 = 0 ;
18571 bool temp8 = false ;
18572 PyObject * obj0 = 0 ;
18573 PyObject * obj1 = 0 ;
18574 PyObject * obj2 = 0 ;
18575 PyObject * obj3 = 0 ;
18576 PyObject * obj4 = 0 ;
18577 PyObject * obj5 = 0 ;
18578 PyObject * obj6 = 0 ;
18579 PyObject * obj7 = 0 ;
18580 char * kwnames[] = {
18581 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18582 };
18583
18584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
18585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
18586 if (!SWIG_IsOK(res1)) {
18587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToggleButton" "', expected argument " "1"" of type '" "wxWindow *""'");
18588 }
18589 arg1 = reinterpret_cast< wxWindow * >(argp1);
18590 if (obj1) {
18591 ecode2 = SWIG_AsVal_int(obj1, &val2);
18592 if (!SWIG_IsOK(ecode2)) {
18593 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToggleButton" "', expected argument " "2"" of type '" "int""'");
18594 }
18595 arg2 = static_cast< int >(val2);
18596 }
18597 if (obj2) {
18598 {
18599 arg3 = wxString_in_helper(obj2);
18600 if (arg3 == NULL) SWIG_fail;
18601 temp3 = true;
18602 }
18603 }
18604 if (obj3) {
18605 {
18606 arg4 = &temp4;
18607 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18608 }
18609 }
18610 if (obj4) {
18611 {
18612 arg5 = &temp5;
18613 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
18614 }
18615 }
18616 if (obj5) {
18617 ecode6 = SWIG_AsVal_long(obj5, &val6);
18618 if (!SWIG_IsOK(ecode6)) {
18619 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ToggleButton" "', expected argument " "6"" of type '" "long""'");
18620 }
18621 arg6 = static_cast< long >(val6);
18622 }
18623 if (obj6) {
18624 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
18625 if (!SWIG_IsOK(res7)) {
18626 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
18627 }
18628 if (!argp7) {
18629 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
18630 }
18631 arg7 = reinterpret_cast< wxValidator * >(argp7);
18632 }
18633 if (obj7) {
18634 {
18635 arg8 = wxString_in_helper(obj7);
18636 if (arg8 == NULL) SWIG_fail;
18637 temp8 = true;
18638 }
18639 }
18640 {
18641 if (!wxPyCheckForApp()) SWIG_fail;
18642 PyThreadState* __tstate = wxPyBeginAllowThreads();
18643 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
18644 wxPyEndAllowThreads(__tstate);
18645 if (PyErr_Occurred()) SWIG_fail;
18646 }
18647 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_NEW | 0 );
18648 {
18649 if (temp3)
18650 delete arg3;
18651 }
18652 {
18653 if (temp8)
18654 delete arg8;
18655 }
18656 return resultobj;
18657 fail:
18658 {
18659 if (temp3)
18660 delete arg3;
18661 }
18662 {
18663 if (temp8)
18664 delete arg8;
18665 }
18666 return NULL;
18667 }
18668
18669
18670 SWIGINTERN PyObject *_wrap_new_PreToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18671 PyObject *resultobj = 0;
18672 wxToggleButton *result = 0 ;
18673
18674 if (!SWIG_Python_UnpackTuple(args,"new_PreToggleButton",0,0,0)) SWIG_fail;
18675 {
18676 if (!wxPyCheckForApp()) SWIG_fail;
18677 PyThreadState* __tstate = wxPyBeginAllowThreads();
18678 result = (wxToggleButton *)new wxToggleButton();
18679 wxPyEndAllowThreads(__tstate);
18680 if (PyErr_Occurred()) SWIG_fail;
18681 }
18682 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_OWN | 0 );
18683 return resultobj;
18684 fail:
18685 return NULL;
18686 }
18687
18688
18689 SWIGINTERN PyObject *_wrap_ToggleButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18690 PyObject *resultobj = 0;
18691 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18692 wxWindow *arg2 = (wxWindow *) 0 ;
18693 int arg3 = (int) -1 ;
18694 wxString const &arg4_defvalue = wxPyEmptyString ;
18695 wxString *arg4 = (wxString *) &arg4_defvalue ;
18696 wxPoint const &arg5_defvalue = wxDefaultPosition ;
18697 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
18698 wxSize const &arg6_defvalue = wxDefaultSize ;
18699 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
18700 long arg7 = (long) 0 ;
18701 wxValidator const &arg8_defvalue = wxDefaultValidator ;
18702 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
18703 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
18704 wxString *arg9 = (wxString *) &arg9_defvalue ;
18705 bool result;
18706 void *argp1 = 0 ;
18707 int res1 = 0 ;
18708 void *argp2 = 0 ;
18709 int res2 = 0 ;
18710 int val3 ;
18711 int ecode3 = 0 ;
18712 bool temp4 = false ;
18713 wxPoint temp5 ;
18714 wxSize temp6 ;
18715 long val7 ;
18716 int ecode7 = 0 ;
18717 void *argp8 = 0 ;
18718 int res8 = 0 ;
18719 bool temp9 = false ;
18720 PyObject * obj0 = 0 ;
18721 PyObject * obj1 = 0 ;
18722 PyObject * obj2 = 0 ;
18723 PyObject * obj3 = 0 ;
18724 PyObject * obj4 = 0 ;
18725 PyObject * obj5 = 0 ;
18726 PyObject * obj6 = 0 ;
18727 PyObject * obj7 = 0 ;
18728 PyObject * obj8 = 0 ;
18729 char * kwnames[] = {
18730 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18731 };
18732
18733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
18734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18735 if (!SWIG_IsOK(res1)) {
18736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_Create" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18737 }
18738 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18739 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
18740 if (!SWIG_IsOK(res2)) {
18741 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToggleButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
18742 }
18743 arg2 = reinterpret_cast< wxWindow * >(argp2);
18744 if (obj2) {
18745 ecode3 = SWIG_AsVal_int(obj2, &val3);
18746 if (!SWIG_IsOK(ecode3)) {
18747 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToggleButton_Create" "', expected argument " "3"" of type '" "int""'");
18748 }
18749 arg3 = static_cast< int >(val3);
18750 }
18751 if (obj3) {
18752 {
18753 arg4 = wxString_in_helper(obj3);
18754 if (arg4 == NULL) SWIG_fail;
18755 temp4 = true;
18756 }
18757 }
18758 if (obj4) {
18759 {
18760 arg5 = &temp5;
18761 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
18762 }
18763 }
18764 if (obj5) {
18765 {
18766 arg6 = &temp6;
18767 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
18768 }
18769 }
18770 if (obj6) {
18771 ecode7 = SWIG_AsVal_long(obj6, &val7);
18772 if (!SWIG_IsOK(ecode7)) {
18773 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToggleButton_Create" "', expected argument " "7"" of type '" "long""'");
18774 }
18775 arg7 = static_cast< long >(val7);
18776 }
18777 if (obj7) {
18778 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
18779 if (!SWIG_IsOK(res8)) {
18780 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
18781 }
18782 if (!argp8) {
18783 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
18784 }
18785 arg8 = reinterpret_cast< wxValidator * >(argp8);
18786 }
18787 if (obj8) {
18788 {
18789 arg9 = wxString_in_helper(obj8);
18790 if (arg9 == NULL) SWIG_fail;
18791 temp9 = true;
18792 }
18793 }
18794 {
18795 PyThreadState* __tstate = wxPyBeginAllowThreads();
18796 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
18797 wxPyEndAllowThreads(__tstate);
18798 if (PyErr_Occurred()) SWIG_fail;
18799 }
18800 {
18801 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18802 }
18803 {
18804 if (temp4)
18805 delete arg4;
18806 }
18807 {
18808 if (temp9)
18809 delete arg9;
18810 }
18811 return resultobj;
18812 fail:
18813 {
18814 if (temp4)
18815 delete arg4;
18816 }
18817 {
18818 if (temp9)
18819 delete arg9;
18820 }
18821 return NULL;
18822 }
18823
18824
18825 SWIGINTERN PyObject *_wrap_ToggleButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18826 PyObject *resultobj = 0;
18827 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18828 bool arg2 ;
18829 void *argp1 = 0 ;
18830 int res1 = 0 ;
18831 bool val2 ;
18832 int ecode2 = 0 ;
18833 PyObject * obj0 = 0 ;
18834 PyObject * obj1 = 0 ;
18835 char * kwnames[] = {
18836 (char *) "self",(char *) "value", NULL
18837 };
18838
18839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
18840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18841 if (!SWIG_IsOK(res1)) {
18842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_SetValue" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18843 }
18844 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18845 ecode2 = SWIG_AsVal_bool(obj1, &val2);
18846 if (!SWIG_IsOK(ecode2)) {
18847 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToggleButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
18848 }
18849 arg2 = static_cast< bool >(val2);
18850 {
18851 PyThreadState* __tstate = wxPyBeginAllowThreads();
18852 (arg1)->SetValue(arg2);
18853 wxPyEndAllowThreads(__tstate);
18854 if (PyErr_Occurred()) SWIG_fail;
18855 }
18856 resultobj = SWIG_Py_Void();
18857 return resultobj;
18858 fail:
18859 return NULL;
18860 }
18861
18862
18863 SWIGINTERN PyObject *_wrap_ToggleButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18864 PyObject *resultobj = 0;
18865 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18866 bool result;
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_wxToggleButton, 0 | 0 );
18874 if (!SWIG_IsOK(res1)) {
18875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_GetValue" "', expected argument " "1"" of type '" "wxToggleButton const *""'");
18876 }
18877 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18878 {
18879 PyThreadState* __tstate = wxPyBeginAllowThreads();
18880 result = (bool)((wxToggleButton const *)arg1)->GetValue();
18881 wxPyEndAllowThreads(__tstate);
18882 if (PyErr_Occurred()) SWIG_fail;
18883 }
18884 {
18885 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18886 }
18887 return resultobj;
18888 fail:
18889 return NULL;
18890 }
18891
18892
18893 SWIGINTERN PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18894 PyObject *resultobj = 0;
18895 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18896 SwigValueWrapper<wxVisualAttributes > result;
18897 int val1 ;
18898 int ecode1 = 0 ;
18899 PyObject * obj0 = 0 ;
18900 char * kwnames[] = {
18901 (char *) "variant", NULL
18902 };
18903
18904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18905 if (obj0) {
18906 ecode1 = SWIG_AsVal_int(obj0, &val1);
18907 if (!SWIG_IsOK(ecode1)) {
18908 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToggleButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18909 }
18910 arg1 = static_cast< wxWindowVariant >(val1);
18911 }
18912 {
18913 if (!wxPyCheckForApp()) SWIG_fail;
18914 PyThreadState* __tstate = wxPyBeginAllowThreads();
18915 result = wxToggleButton::GetClassDefaultAttributes(arg1);
18916 wxPyEndAllowThreads(__tstate);
18917 if (PyErr_Occurred()) SWIG_fail;
18918 }
18919 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18920 return resultobj;
18921 fail:
18922 return NULL;
18923 }
18924
18925
18926 SWIGINTERN PyObject *ToggleButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18927 PyObject *obj;
18928 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18929 SWIG_TypeNewClientData(SWIGTYPE_p_wxToggleButton, SWIG_NewClientData(obj));
18930 return SWIG_Py_Void();
18931 }
18932
18933 SWIGINTERN PyObject *ToggleButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18934 return SWIG_Python_InitShadowInstance(args);
18935 }
18936
18937 SWIGINTERN int NotebookNameStr_set(PyObject *) {
18938 SWIG_Error(SWIG_AttributeError,"Variable NotebookNameStr is read-only.");
18939 return 1;
18940 }
18941
18942
18943 SWIGINTERN PyObject *NotebookNameStr_get(void) {
18944 PyObject *pyobj = 0;
18945
18946 {
18947 #if wxUSE_UNICODE
18948 pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
18949 #else
18950 pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
18951 #endif
18952 }
18953 return pyobj;
18954 }
18955
18956
18957 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18958 PyObject *resultobj = 0;
18959 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18960 size_t result;
18961 void *argp1 = 0 ;
18962 int res1 = 0 ;
18963 PyObject *swig_obj[1] ;
18964
18965 if (!args) SWIG_fail;
18966 swig_obj[0] = args;
18967 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18968 if (!SWIG_IsOK(res1)) {
18969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageCount" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
18970 }
18971 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18972 {
18973 PyThreadState* __tstate = wxPyBeginAllowThreads();
18974 result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount();
18975 wxPyEndAllowThreads(__tstate);
18976 if (PyErr_Occurred()) SWIG_fail;
18977 }
18978 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
18979 return resultobj;
18980 fail:
18981 return NULL;
18982 }
18983
18984
18985 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18986 PyObject *resultobj = 0;
18987 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18988 size_t arg2 ;
18989 wxWindow *result = 0 ;
18990 void *argp1 = 0 ;
18991 int res1 = 0 ;
18992 size_t val2 ;
18993 int ecode2 = 0 ;
18994 PyObject * obj0 = 0 ;
18995 PyObject * obj1 = 0 ;
18996 char * kwnames[] = {
18997 (char *) "self",(char *) "n", NULL
18998 };
18999
19000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) SWIG_fail;
19001 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19002 if (!SWIG_IsOK(res1)) {
19003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19004 }
19005 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19006 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19007 if (!SWIG_IsOK(ecode2)) {
19008 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPage" "', expected argument " "2"" of type '" "size_t""'");
19009 }
19010 arg2 = static_cast< size_t >(val2);
19011 {
19012 PyThreadState* __tstate = wxPyBeginAllowThreads();
19013 result = (wxWindow *)(arg1)->GetPage(arg2);
19014 wxPyEndAllowThreads(__tstate);
19015 if (PyErr_Occurred()) SWIG_fail;
19016 }
19017 {
19018 resultobj = wxPyMake_wxObject(result, 0);
19019 }
19020 return resultobj;
19021 fail:
19022 return NULL;
19023 }
19024
19025
19026 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19027 PyObject *resultobj = 0;
19028 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19029 wxWindow *result = 0 ;
19030 void *argp1 = 0 ;
19031 int res1 = 0 ;
19032 PyObject *swig_obj[1] ;
19033
19034 if (!args) SWIG_fail;
19035 swig_obj[0] = args;
19036 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19037 if (!SWIG_IsOK(res1)) {
19038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19039 }
19040 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19041 {
19042 PyThreadState* __tstate = wxPyBeginAllowThreads();
19043 result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage();
19044 wxPyEndAllowThreads(__tstate);
19045 if (PyErr_Occurred()) SWIG_fail;
19046 }
19047 {
19048 resultobj = wxPyMake_wxObject(result, 0);
19049 }
19050 return resultobj;
19051 fail:
19052 return NULL;
19053 }
19054
19055
19056 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19057 PyObject *resultobj = 0;
19058 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19059 int result;
19060 void *argp1 = 0 ;
19061 int res1 = 0 ;
19062 PyObject *swig_obj[1] ;
19063
19064 if (!args) SWIG_fail;
19065 swig_obj[0] = args;
19066 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19067 if (!SWIG_IsOK(res1)) {
19068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19069 }
19070 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19071 {
19072 PyThreadState* __tstate = wxPyBeginAllowThreads();
19073 result = (int)((wxBookCtrlBase const *)arg1)->GetSelection();
19074 wxPyEndAllowThreads(__tstate);
19075 if (PyErr_Occurred()) SWIG_fail;
19076 }
19077 resultobj = SWIG_From_int(static_cast< int >(result));
19078 return resultobj;
19079 fail:
19080 return NULL;
19081 }
19082
19083
19084 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19085 PyObject *resultobj = 0;
19086 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19087 size_t arg2 ;
19088 wxString *arg3 = 0 ;
19089 bool result;
19090 void *argp1 = 0 ;
19091 int res1 = 0 ;
19092 size_t val2 ;
19093 int ecode2 = 0 ;
19094 bool temp3 = false ;
19095 PyObject * obj0 = 0 ;
19096 PyObject * obj1 = 0 ;
19097 PyObject * obj2 = 0 ;
19098 char * kwnames[] = {
19099 (char *) "self",(char *) "n",(char *) "strText", NULL
19100 };
19101
19102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19104 if (!SWIG_IsOK(res1)) {
19105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19106 }
19107 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19108 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19109 if (!SWIG_IsOK(ecode2)) {
19110 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "2"" of type '" "size_t""'");
19111 }
19112 arg2 = static_cast< size_t >(val2);
19113 {
19114 arg3 = wxString_in_helper(obj2);
19115 if (arg3 == NULL) SWIG_fail;
19116 temp3 = true;
19117 }
19118 {
19119 PyThreadState* __tstate = wxPyBeginAllowThreads();
19120 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
19121 wxPyEndAllowThreads(__tstate);
19122 if (PyErr_Occurred()) SWIG_fail;
19123 }
19124 {
19125 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19126 }
19127 {
19128 if (temp3)
19129 delete arg3;
19130 }
19131 return resultobj;
19132 fail:
19133 {
19134 if (temp3)
19135 delete arg3;
19136 }
19137 return NULL;
19138 }
19139
19140
19141 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19142 PyObject *resultobj = 0;
19143 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19144 size_t arg2 ;
19145 wxString result;
19146 void *argp1 = 0 ;
19147 int res1 = 0 ;
19148 size_t val2 ;
19149 int ecode2 = 0 ;
19150 PyObject * obj0 = 0 ;
19151 PyObject * obj1 = 0 ;
19152 char * kwnames[] = {
19153 (char *) "self",(char *) "n", NULL
19154 };
19155
19156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) SWIG_fail;
19157 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19158 if (!SWIG_IsOK(res1)) {
19159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19160 }
19161 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19162 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19163 if (!SWIG_IsOK(ecode2)) {
19164 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "2"" of type '" "size_t""'");
19165 }
19166 arg2 = static_cast< size_t >(val2);
19167 {
19168 PyThreadState* __tstate = wxPyBeginAllowThreads();
19169 result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2);
19170 wxPyEndAllowThreads(__tstate);
19171 if (PyErr_Occurred()) SWIG_fail;
19172 }
19173 {
19174 #if wxUSE_UNICODE
19175 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19176 #else
19177 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19178 #endif
19179 }
19180 return resultobj;
19181 fail:
19182 return NULL;
19183 }
19184
19185
19186 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19187 PyObject *resultobj = 0;
19188 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19189 wxImageList *arg2 = (wxImageList *) 0 ;
19190 void *argp1 = 0 ;
19191 int res1 = 0 ;
19192 void *argp2 = 0 ;
19193 int res2 = 0 ;
19194 PyObject * obj0 = 0 ;
19195 PyObject * obj1 = 0 ;
19196 char * kwnames[] = {
19197 (char *) "self",(char *) "imageList", NULL
19198 };
19199
19200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19202 if (!SWIG_IsOK(res1)) {
19203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19204 }
19205 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19206 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
19207 if (!SWIG_IsOK(res2)) {
19208 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19209 }
19210 arg2 = reinterpret_cast< wxImageList * >(argp2);
19211 {
19212 PyThreadState* __tstate = wxPyBeginAllowThreads();
19213 (arg1)->SetImageList(arg2);
19214 wxPyEndAllowThreads(__tstate);
19215 if (PyErr_Occurred()) SWIG_fail;
19216 }
19217 resultobj = SWIG_Py_Void();
19218 return resultobj;
19219 fail:
19220 return NULL;
19221 }
19222
19223
19224 SWIGINTERN PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19225 PyObject *resultobj = 0;
19226 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19227 wxImageList *arg2 = (wxImageList *) 0 ;
19228 void *argp1 = 0 ;
19229 int res1 = 0 ;
19230 int res2 = 0 ;
19231 PyObject * obj0 = 0 ;
19232 PyObject * obj1 = 0 ;
19233 char * kwnames[] = {
19234 (char *) "self",(char *) "imageList", NULL
19235 };
19236
19237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19238 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19239 if (!SWIG_IsOK(res1)) {
19240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19241 }
19242 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19243 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
19244 if (!SWIG_IsOK(res2)) {
19245 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19246 }
19247 {
19248 PyThreadState* __tstate = wxPyBeginAllowThreads();
19249 (arg1)->AssignImageList(arg2);
19250 wxPyEndAllowThreads(__tstate);
19251 if (PyErr_Occurred()) SWIG_fail;
19252 }
19253 resultobj = SWIG_Py_Void();
19254 return resultobj;
19255 fail:
19256 return NULL;
19257 }
19258
19259
19260 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19261 PyObject *resultobj = 0;
19262 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19263 wxImageList *result = 0 ;
19264 void *argp1 = 0 ;
19265 int res1 = 0 ;
19266 PyObject *swig_obj[1] ;
19267
19268 if (!args) SWIG_fail;
19269 swig_obj[0] = args;
19270 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19271 if (!SWIG_IsOK(res1)) {
19272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19273 }
19274 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19275 {
19276 PyThreadState* __tstate = wxPyBeginAllowThreads();
19277 result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList();
19278 wxPyEndAllowThreads(__tstate);
19279 if (PyErr_Occurred()) SWIG_fail;
19280 }
19281 {
19282 resultobj = wxPyMake_wxObject(result, (bool)0);
19283 }
19284 return resultobj;
19285 fail:
19286 return NULL;
19287 }
19288
19289
19290 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19291 PyObject *resultobj = 0;
19292 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19293 size_t arg2 ;
19294 int result;
19295 void *argp1 = 0 ;
19296 int res1 = 0 ;
19297 size_t val2 ;
19298 int ecode2 = 0 ;
19299 PyObject * obj0 = 0 ;
19300 PyObject * obj1 = 0 ;
19301 char * kwnames[] = {
19302 (char *) "self",(char *) "n", NULL
19303 };
19304
19305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) SWIG_fail;
19306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19307 if (!SWIG_IsOK(res1)) {
19308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19309 }
19310 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19311 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19312 if (!SWIG_IsOK(ecode2)) {
19313 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19314 }
19315 arg2 = static_cast< size_t >(val2);
19316 {
19317 PyThreadState* __tstate = wxPyBeginAllowThreads();
19318 result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2);
19319 wxPyEndAllowThreads(__tstate);
19320 if (PyErr_Occurred()) SWIG_fail;
19321 }
19322 resultobj = SWIG_From_int(static_cast< int >(result));
19323 return resultobj;
19324 fail:
19325 return NULL;
19326 }
19327
19328
19329 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19330 PyObject *resultobj = 0;
19331 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19332 size_t arg2 ;
19333 int arg3 ;
19334 bool result;
19335 void *argp1 = 0 ;
19336 int res1 = 0 ;
19337 size_t val2 ;
19338 int ecode2 = 0 ;
19339 int val3 ;
19340 int ecode3 = 0 ;
19341 PyObject * obj0 = 0 ;
19342 PyObject * obj1 = 0 ;
19343 PyObject * obj2 = 0 ;
19344 char * kwnames[] = {
19345 (char *) "self",(char *) "n",(char *) "imageId", NULL
19346 };
19347
19348 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19349 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19350 if (!SWIG_IsOK(res1)) {
19351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19352 }
19353 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19354 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19355 if (!SWIG_IsOK(ecode2)) {
19356 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19357 }
19358 arg2 = static_cast< size_t >(val2);
19359 ecode3 = SWIG_AsVal_int(obj2, &val3);
19360 if (!SWIG_IsOK(ecode3)) {
19361 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "3"" of type '" "int""'");
19362 }
19363 arg3 = static_cast< int >(val3);
19364 {
19365 PyThreadState* __tstate = wxPyBeginAllowThreads();
19366 result = (bool)(arg1)->SetPageImage(arg2,arg3);
19367 wxPyEndAllowThreads(__tstate);
19368 if (PyErr_Occurred()) SWIG_fail;
19369 }
19370 {
19371 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19372 }
19373 return resultobj;
19374 fail:
19375 return NULL;
19376 }
19377
19378
19379 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19380 PyObject *resultobj = 0;
19381 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19382 wxSize *arg2 = 0 ;
19383 void *argp1 = 0 ;
19384 int res1 = 0 ;
19385 wxSize temp2 ;
19386 PyObject * obj0 = 0 ;
19387 PyObject * obj1 = 0 ;
19388 char * kwnames[] = {
19389 (char *) "self",(char *) "size", NULL
19390 };
19391
19392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
19393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19394 if (!SWIG_IsOK(res1)) {
19395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageSize" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19396 }
19397 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19398 {
19399 arg2 = &temp2;
19400 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19401 }
19402 {
19403 PyThreadState* __tstate = wxPyBeginAllowThreads();
19404 (arg1)->SetPageSize((wxSize const &)*arg2);
19405 wxPyEndAllowThreads(__tstate);
19406 if (PyErr_Occurred()) SWIG_fail;
19407 }
19408 resultobj = SWIG_Py_Void();
19409 return resultobj;
19410 fail:
19411 return NULL;
19412 }
19413
19414
19415 SWIGINTERN PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19416 PyObject *resultobj = 0;
19417 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19418 wxSize *arg2 = 0 ;
19419 wxSize result;
19420 void *argp1 = 0 ;
19421 int res1 = 0 ;
19422 wxSize temp2 ;
19423 PyObject * obj0 = 0 ;
19424 PyObject * obj1 = 0 ;
19425 char * kwnames[] = {
19426 (char *) "self",(char *) "sizePage", NULL
19427 };
19428
19429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) SWIG_fail;
19430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19431 if (!SWIG_IsOK(res1)) {
19432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_CalcSizeFromPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19433 }
19434 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19435 {
19436 arg2 = &temp2;
19437 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19438 }
19439 {
19440 PyThreadState* __tstate = wxPyBeginAllowThreads();
19441 result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
19442 wxPyEndAllowThreads(__tstate);
19443 if (PyErr_Occurred()) SWIG_fail;
19444 }
19445 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
19446 return resultobj;
19447 fail:
19448 return NULL;
19449 }
19450
19451
19452 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19453 PyObject *resultobj = 0;
19454 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19455 unsigned int result;
19456 void *argp1 = 0 ;
19457 int res1 = 0 ;
19458 PyObject *swig_obj[1] ;
19459
19460 if (!args) SWIG_fail;
19461 swig_obj[0] = args;
19462 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19463 if (!SWIG_IsOK(res1)) {
19464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19465 }
19466 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19467 {
19468 PyThreadState* __tstate = wxPyBeginAllowThreads();
19469 result = (unsigned int)((wxBookCtrlBase const *)arg1)->GetInternalBorder();
19470 wxPyEndAllowThreads(__tstate);
19471 if (PyErr_Occurred()) SWIG_fail;
19472 }
19473 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
19474 return resultobj;
19475 fail:
19476 return NULL;
19477 }
19478
19479
19480 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19481 PyObject *resultobj = 0;
19482 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19483 unsigned int arg2 ;
19484 void *argp1 = 0 ;
19485 int res1 = 0 ;
19486 unsigned int val2 ;
19487 int ecode2 = 0 ;
19488 PyObject * obj0 = 0 ;
19489 PyObject * obj1 = 0 ;
19490 char * kwnames[] = {
19491 (char *) "self",(char *) "internalBorder", NULL
19492 };
19493
19494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetInternalBorder",kwnames,&obj0,&obj1)) SWIG_fail;
19495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19496 if (!SWIG_IsOK(res1)) {
19497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19498 }
19499 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19500 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
19501 if (!SWIG_IsOK(ecode2)) {
19502 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "2"" of type '" "unsigned int""'");
19503 }
19504 arg2 = static_cast< unsigned int >(val2);
19505 {
19506 PyThreadState* __tstate = wxPyBeginAllowThreads();
19507 (arg1)->SetInternalBorder(arg2);
19508 wxPyEndAllowThreads(__tstate);
19509 if (PyErr_Occurred()) SWIG_fail;
19510 }
19511 resultobj = SWIG_Py_Void();
19512 return resultobj;
19513 fail:
19514 return NULL;
19515 }
19516
19517
19518 SWIGINTERN PyObject *_wrap_BookCtrlBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19519 PyObject *resultobj = 0;
19520 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19521 bool result;
19522 void *argp1 = 0 ;
19523 int res1 = 0 ;
19524 PyObject *swig_obj[1] ;
19525
19526 if (!args) SWIG_fail;
19527 swig_obj[0] = args;
19528 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19529 if (!SWIG_IsOK(res1)) {
19530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_IsVertical" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19531 }
19532 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19533 {
19534 PyThreadState* __tstate = wxPyBeginAllowThreads();
19535 result = (bool)((wxBookCtrlBase const *)arg1)->IsVertical();
19536 wxPyEndAllowThreads(__tstate);
19537 if (PyErr_Occurred()) SWIG_fail;
19538 }
19539 {
19540 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19541 }
19542 return resultobj;
19543 fail:
19544 return NULL;
19545 }
19546
19547
19548 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19549 PyObject *resultobj = 0;
19550 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19551 int arg2 ;
19552 void *argp1 = 0 ;
19553 int res1 = 0 ;
19554 int val2 ;
19555 int ecode2 = 0 ;
19556 PyObject * obj0 = 0 ;
19557 PyObject * obj1 = 0 ;
19558 char * kwnames[] = {
19559 (char *) "self",(char *) "margin", NULL
19560 };
19561
19562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetControlMargin",kwnames,&obj0,&obj1)) SWIG_fail;
19563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19564 if (!SWIG_IsOK(res1)) {
19565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19566 }
19567 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19568 ecode2 = SWIG_AsVal_int(obj1, &val2);
19569 if (!SWIG_IsOK(ecode2)) {
19570 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "2"" of type '" "int""'");
19571 }
19572 arg2 = static_cast< int >(val2);
19573 {
19574 PyThreadState* __tstate = wxPyBeginAllowThreads();
19575 (arg1)->SetControlMargin(arg2);
19576 wxPyEndAllowThreads(__tstate);
19577 if (PyErr_Occurred()) SWIG_fail;
19578 }
19579 resultobj = SWIG_Py_Void();
19580 return resultobj;
19581 fail:
19582 return NULL;
19583 }
19584
19585
19586 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19587 PyObject *resultobj = 0;
19588 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19589 int result;
19590 void *argp1 = 0 ;
19591 int res1 = 0 ;
19592 PyObject *swig_obj[1] ;
19593
19594 if (!args) SWIG_fail;
19595 swig_obj[0] = args;
19596 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19597 if (!SWIG_IsOK(res1)) {
19598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19599 }
19600 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19601 {
19602 PyThreadState* __tstate = wxPyBeginAllowThreads();
19603 result = (int)((wxBookCtrlBase const *)arg1)->GetControlMargin();
19604 wxPyEndAllowThreads(__tstate);
19605 if (PyErr_Occurred()) SWIG_fail;
19606 }
19607 resultobj = SWIG_From_int(static_cast< int >(result));
19608 return resultobj;
19609 fail:
19610 return NULL;
19611 }
19612
19613
19614 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19615 PyObject *resultobj = 0;
19616 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19617 bool arg2 ;
19618 void *argp1 = 0 ;
19619 int res1 = 0 ;
19620 bool val2 ;
19621 int ecode2 = 0 ;
19622 PyObject * obj0 = 0 ;
19623 PyObject * obj1 = 0 ;
19624 char * kwnames[] = {
19625 (char *) "self",(char *) "fit", NULL
19626 };
19627
19628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetFitToCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail;
19629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19630 if (!SWIG_IsOK(res1)) {
19631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19632 }
19633 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19634 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19635 if (!SWIG_IsOK(ecode2)) {
19636 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "2"" of type '" "bool""'");
19637 }
19638 arg2 = static_cast< bool >(val2);
19639 {
19640 PyThreadState* __tstate = wxPyBeginAllowThreads();
19641 (arg1)->SetFitToCurrentPage(arg2);
19642 wxPyEndAllowThreads(__tstate);
19643 if (PyErr_Occurred()) SWIG_fail;
19644 }
19645 resultobj = SWIG_Py_Void();
19646 return resultobj;
19647 fail:
19648 return NULL;
19649 }
19650
19651
19652 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19653 PyObject *resultobj = 0;
19654 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19655 bool result;
19656 void *argp1 = 0 ;
19657 int res1 = 0 ;
19658 PyObject *swig_obj[1] ;
19659
19660 if (!args) SWIG_fail;
19661 swig_obj[0] = args;
19662 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19663 if (!SWIG_IsOK(res1)) {
19664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19665 }
19666 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19667 {
19668 PyThreadState* __tstate = wxPyBeginAllowThreads();
19669 result = (bool)((wxBookCtrlBase const *)arg1)->GetFitToCurrentPage();
19670 wxPyEndAllowThreads(__tstate);
19671 if (PyErr_Occurred()) SWIG_fail;
19672 }
19673 {
19674 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19675 }
19676 return resultobj;
19677 fail:
19678 return NULL;
19679 }
19680
19681
19682 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19683 PyObject *resultobj = 0;
19684 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19685 wxSizer *result = 0 ;
19686 void *argp1 = 0 ;
19687 int res1 = 0 ;
19688 PyObject *swig_obj[1] ;
19689
19690 if (!args) SWIG_fail;
19691 swig_obj[0] = args;
19692 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19693 if (!SWIG_IsOK(res1)) {
19694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlSizer" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19695 }
19696 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19697 {
19698 PyThreadState* __tstate = wxPyBeginAllowThreads();
19699 result = (wxSizer *)((wxBookCtrlBase const *)arg1)->GetControlSizer();
19700 wxPyEndAllowThreads(__tstate);
19701 if (PyErr_Occurred()) SWIG_fail;
19702 }
19703 {
19704 resultobj = wxPyMake_wxObject(result, (bool)0);
19705 }
19706 return resultobj;
19707 fail:
19708 return NULL;
19709 }
19710
19711
19712 SWIGINTERN PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19713 PyObject *resultobj = 0;
19714 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19715 size_t arg2 ;
19716 bool result;
19717 void *argp1 = 0 ;
19718 int res1 = 0 ;
19719 size_t val2 ;
19720 int ecode2 = 0 ;
19721 PyObject * obj0 = 0 ;
19722 PyObject * obj1 = 0 ;
19723 char * kwnames[] = {
19724 (char *) "self",(char *) "n", NULL
19725 };
19726
19727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) SWIG_fail;
19728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19729 if (!SWIG_IsOK(res1)) {
19730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19731 }
19732 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19733 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19734 if (!SWIG_IsOK(ecode2)) {
19735 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "2"" of type '" "size_t""'");
19736 }
19737 arg2 = static_cast< size_t >(val2);
19738 {
19739 PyThreadState* __tstate = wxPyBeginAllowThreads();
19740 result = (bool)(arg1)->DeletePage(arg2);
19741 wxPyEndAllowThreads(__tstate);
19742 if (PyErr_Occurred()) SWIG_fail;
19743 }
19744 {
19745 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19746 }
19747 return resultobj;
19748 fail:
19749 return NULL;
19750 }
19751
19752
19753 SWIGINTERN PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19754 PyObject *resultobj = 0;
19755 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19756 size_t arg2 ;
19757 bool result;
19758 void *argp1 = 0 ;
19759 int res1 = 0 ;
19760 size_t val2 ;
19761 int ecode2 = 0 ;
19762 PyObject * obj0 = 0 ;
19763 PyObject * obj1 = 0 ;
19764 char * kwnames[] = {
19765 (char *) "self",(char *) "n", NULL
19766 };
19767
19768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) SWIG_fail;
19769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19770 if (!SWIG_IsOK(res1)) {
19771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19772 }
19773 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19774 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19775 if (!SWIG_IsOK(ecode2)) {
19776 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "2"" of type '" "size_t""'");
19777 }
19778 arg2 = static_cast< size_t >(val2);
19779 {
19780 PyThreadState* __tstate = wxPyBeginAllowThreads();
19781 result = (bool)(arg1)->RemovePage(arg2);
19782 wxPyEndAllowThreads(__tstate);
19783 if (PyErr_Occurred()) SWIG_fail;
19784 }
19785 {
19786 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19787 }
19788 return resultobj;
19789 fail:
19790 return NULL;
19791 }
19792
19793
19794 SWIGINTERN PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19795 PyObject *resultobj = 0;
19796 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19797 bool result;
19798 void *argp1 = 0 ;
19799 int res1 = 0 ;
19800 PyObject *swig_obj[1] ;
19801
19802 if (!args) SWIG_fail;
19803 swig_obj[0] = args;
19804 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19805 if (!SWIG_IsOK(res1)) {
19806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeleteAllPages" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19807 }
19808 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19809 {
19810 PyThreadState* __tstate = wxPyBeginAllowThreads();
19811 result = (bool)(arg1)->DeleteAllPages();
19812 wxPyEndAllowThreads(__tstate);
19813 if (PyErr_Occurred()) SWIG_fail;
19814 }
19815 {
19816 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19817 }
19818 return resultobj;
19819 fail:
19820 return NULL;
19821 }
19822
19823
19824 SWIGINTERN PyObject *_wrap_BookCtrlBase_AddPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19825 PyObject *resultobj = 0;
19826 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19827 wxWindow *arg2 = (wxWindow *) 0 ;
19828 wxString *arg3 = 0 ;
19829 bool arg4 = (bool) false ;
19830 int arg5 = (int) -1 ;
19831 bool result;
19832 void *argp1 = 0 ;
19833 int res1 = 0 ;
19834 void *argp2 = 0 ;
19835 int res2 = 0 ;
19836 bool temp3 = false ;
19837 bool val4 ;
19838 int ecode4 = 0 ;
19839 int val5 ;
19840 int ecode5 = 0 ;
19841 PyObject * obj0 = 0 ;
19842 PyObject * obj1 = 0 ;
19843 PyObject * obj2 = 0 ;
19844 PyObject * obj3 = 0 ;
19845 PyObject * obj4 = 0 ;
19846 char * kwnames[] = {
19847 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
19848 };
19849
19850 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19851 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19852 if (!SWIG_IsOK(res1)) {
19853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AddPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19854 }
19855 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19856 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
19857 if (!SWIG_IsOK(res2)) {
19858 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AddPage" "', expected argument " "2"" of type '" "wxWindow *""'");
19859 }
19860 arg2 = reinterpret_cast< wxWindow * >(argp2);
19861 {
19862 arg3 = wxString_in_helper(obj2);
19863 if (arg3 == NULL) SWIG_fail;
19864 temp3 = true;
19865 }
19866 if (obj3) {
19867 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19868 if (!SWIG_IsOK(ecode4)) {
19869 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BookCtrlBase_AddPage" "', expected argument " "4"" of type '" "bool""'");
19870 }
19871 arg4 = static_cast< bool >(val4);
19872 }
19873 if (obj4) {
19874 ecode5 = SWIG_AsVal_int(obj4, &val5);
19875 if (!SWIG_IsOK(ecode5)) {
19876 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_AddPage" "', expected argument " "5"" of type '" "int""'");
19877 }
19878 arg5 = static_cast< int >(val5);
19879 }
19880 {
19881 PyThreadState* __tstate = wxPyBeginAllowThreads();
19882 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
19883 wxPyEndAllowThreads(__tstate);
19884 if (PyErr_Occurred()) SWIG_fail;
19885 }
19886 {
19887 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19888 }
19889 {
19890 if (temp3)
19891 delete arg3;
19892 }
19893 return resultobj;
19894 fail:
19895 {
19896 if (temp3)
19897 delete arg3;
19898 }
19899 return NULL;
19900 }
19901
19902
19903 SWIGINTERN PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19904 PyObject *resultobj = 0;
19905 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19906 size_t arg2 ;
19907 wxWindow *arg3 = (wxWindow *) 0 ;
19908 wxString *arg4 = 0 ;
19909 bool arg5 = (bool) false ;
19910 int arg6 = (int) -1 ;
19911 bool result;
19912 void *argp1 = 0 ;
19913 int res1 = 0 ;
19914 size_t val2 ;
19915 int ecode2 = 0 ;
19916 void *argp3 = 0 ;
19917 int res3 = 0 ;
19918 bool temp4 = false ;
19919 bool val5 ;
19920 int ecode5 = 0 ;
19921 int val6 ;
19922 int ecode6 = 0 ;
19923 PyObject * obj0 = 0 ;
19924 PyObject * obj1 = 0 ;
19925 PyObject * obj2 = 0 ;
19926 PyObject * obj3 = 0 ;
19927 PyObject * obj4 = 0 ;
19928 PyObject * obj5 = 0 ;
19929 char * kwnames[] = {
19930 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
19931 };
19932
19933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19935 if (!SWIG_IsOK(res1)) {
19936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19937 }
19938 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19939 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19940 if (!SWIG_IsOK(ecode2)) {
19941 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "2"" of type '" "size_t""'");
19942 }
19943 arg2 = static_cast< size_t >(val2);
19944 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
19945 if (!SWIG_IsOK(res3)) {
19946 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "3"" of type '" "wxWindow *""'");
19947 }
19948 arg3 = reinterpret_cast< wxWindow * >(argp3);
19949 {
19950 arg4 = wxString_in_helper(obj3);
19951 if (arg4 == NULL) SWIG_fail;
19952 temp4 = true;
19953 }
19954 if (obj4) {
19955 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19956 if (!SWIG_IsOK(ecode5)) {
19957 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "5"" of type '" "bool""'");
19958 }
19959 arg5 = static_cast< bool >(val5);
19960 }
19961 if (obj5) {
19962 ecode6 = SWIG_AsVal_int(obj5, &val6);
19963 if (!SWIG_IsOK(ecode6)) {
19964 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "6"" of type '" "int""'");
19965 }
19966 arg6 = static_cast< int >(val6);
19967 }
19968 {
19969 PyThreadState* __tstate = wxPyBeginAllowThreads();
19970 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
19971 wxPyEndAllowThreads(__tstate);
19972 if (PyErr_Occurred()) SWIG_fail;
19973 }
19974 {
19975 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19976 }
19977 {
19978 if (temp4)
19979 delete arg4;
19980 }
19981 return resultobj;
19982 fail:
19983 {
19984 if (temp4)
19985 delete arg4;
19986 }
19987 return NULL;
19988 }
19989
19990
19991 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19992 PyObject *resultobj = 0;
19993 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19994 size_t arg2 ;
19995 int result;
19996 void *argp1 = 0 ;
19997 int res1 = 0 ;
19998 size_t val2 ;
19999 int ecode2 = 0 ;
20000 PyObject * obj0 = 0 ;
20001 PyObject * obj1 = 0 ;
20002 char * kwnames[] = {
20003 (char *) "self",(char *) "n", NULL
20004 };
20005
20006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20008 if (!SWIG_IsOK(res1)) {
20009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20010 }
20011 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20012 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20013 if (!SWIG_IsOK(ecode2)) {
20014 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "2"" of type '" "size_t""'");
20015 }
20016 arg2 = static_cast< size_t >(val2);
20017 {
20018 PyThreadState* __tstate = wxPyBeginAllowThreads();
20019 result = (int)(arg1)->SetSelection(arg2);
20020 wxPyEndAllowThreads(__tstate);
20021 if (PyErr_Occurred()) SWIG_fail;
20022 }
20023 resultobj = SWIG_From_int(static_cast< int >(result));
20024 return resultobj;
20025 fail:
20026 return NULL;
20027 }
20028
20029
20030 SWIGINTERN PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20031 PyObject *resultobj = 0;
20032 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20033 bool arg2 = (bool) true ;
20034 void *argp1 = 0 ;
20035 int res1 = 0 ;
20036 bool val2 ;
20037 int ecode2 = 0 ;
20038 PyObject * obj0 = 0 ;
20039 PyObject * obj1 = 0 ;
20040 char * kwnames[] = {
20041 (char *) "self",(char *) "forward", NULL
20042 };
20043
20044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20046 if (!SWIG_IsOK(res1)) {
20047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20048 }
20049 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20050 if (obj1) {
20051 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20052 if (!SWIG_IsOK(ecode2)) {
20053 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "2"" of type '" "bool""'");
20054 }
20055 arg2 = static_cast< bool >(val2);
20056 }
20057 {
20058 PyThreadState* __tstate = wxPyBeginAllowThreads();
20059 (arg1)->AdvanceSelection(arg2);
20060 wxPyEndAllowThreads(__tstate);
20061 if (PyErr_Occurred()) SWIG_fail;
20062 }
20063 resultobj = SWIG_Py_Void();
20064 return resultobj;
20065 fail:
20066 return NULL;
20067 }
20068
20069
20070 SWIGINTERN PyObject *_wrap_BookCtrlBase_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20071 PyObject *resultobj = 0;
20072 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20073 wxPoint *arg2 = 0 ;
20074 long *arg3 = (long *) 0 ;
20075 int result;
20076 void *argp1 = 0 ;
20077 int res1 = 0 ;
20078 wxPoint temp2 ;
20079 long temp3 ;
20080 int res3 = SWIG_TMPOBJ ;
20081 PyObject * obj0 = 0 ;
20082 PyObject * obj1 = 0 ;
20083 char * kwnames[] = {
20084 (char *) "self",(char *) "pt", NULL
20085 };
20086
20087 arg3 = &temp3;
20088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
20089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20090 if (!SWIG_IsOK(res1)) {
20091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_HitTest" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
20092 }
20093 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20094 {
20095 arg2 = &temp2;
20096 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20097 }
20098 {
20099 PyThreadState* __tstate = wxPyBeginAllowThreads();
20100 result = (int)((wxBookCtrlBase const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
20101 wxPyEndAllowThreads(__tstate);
20102 if (PyErr_Occurred()) SWIG_fail;
20103 }
20104 resultobj = SWIG_From_int(static_cast< int >(result));
20105 if (SWIG_IsTmpObj(res3)) {
20106 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
20107 } else {
20108 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20109 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
20110 }
20111 return resultobj;
20112 fail:
20113 return NULL;
20114 }
20115
20116
20117 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20118 PyObject *resultobj = 0;
20119 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20120 SwigValueWrapper<wxVisualAttributes > result;
20121 int val1 ;
20122 int ecode1 = 0 ;
20123 PyObject * obj0 = 0 ;
20124 char * kwnames[] = {
20125 (char *) "variant", NULL
20126 };
20127
20128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20129 if (obj0) {
20130 ecode1 = SWIG_AsVal_int(obj0, &val1);
20131 if (!SWIG_IsOK(ecode1)) {
20132 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "BookCtrlBase_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20133 }
20134 arg1 = static_cast< wxWindowVariant >(val1);
20135 }
20136 {
20137 if (!wxPyCheckForApp()) SWIG_fail;
20138 PyThreadState* __tstate = wxPyBeginAllowThreads();
20139 result = wxBookCtrlBase::GetClassDefaultAttributes(arg1);
20140 wxPyEndAllowThreads(__tstate);
20141 if (PyErr_Occurred()) SWIG_fail;
20142 }
20143 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20144 return resultobj;
20145 fail:
20146 return NULL;
20147 }
20148
20149
20150 SWIGINTERN PyObject *BookCtrlBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20151 PyObject *obj;
20152 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20153 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBase, SWIG_NewClientData(obj));
20154 return SWIG_Py_Void();
20155 }
20156
20157 SWIGINTERN PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20158 PyObject *resultobj = 0;
20159 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20160 int arg2 = (int) 0 ;
20161 int arg3 = (int) -1 ;
20162 int arg4 = (int) -1 ;
20163 wxBookCtrlBaseEvent *result = 0 ;
20164 int val1 ;
20165 int ecode1 = 0 ;
20166 int val2 ;
20167 int ecode2 = 0 ;
20168 int val3 ;
20169 int ecode3 = 0 ;
20170 int val4 ;
20171 int ecode4 = 0 ;
20172 PyObject * obj0 = 0 ;
20173 PyObject * obj1 = 0 ;
20174 PyObject * obj2 = 0 ;
20175 PyObject * obj3 = 0 ;
20176 char * kwnames[] = {
20177 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20178 };
20179
20180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20181 if (obj0) {
20182 ecode1 = SWIG_AsVal_int(obj0, &val1);
20183 if (!SWIG_IsOK(ecode1)) {
20184 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20185 }
20186 arg1 = static_cast< wxEventType >(val1);
20187 }
20188 if (obj1) {
20189 ecode2 = SWIG_AsVal_int(obj1, &val2);
20190 if (!SWIG_IsOK(ecode2)) {
20191 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "2"" of type '" "int""'");
20192 }
20193 arg2 = static_cast< int >(val2);
20194 }
20195 if (obj2) {
20196 ecode3 = SWIG_AsVal_int(obj2, &val3);
20197 if (!SWIG_IsOK(ecode3)) {
20198 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "3"" of type '" "int""'");
20199 }
20200 arg3 = static_cast< int >(val3);
20201 }
20202 if (obj3) {
20203 ecode4 = SWIG_AsVal_int(obj3, &val4);
20204 if (!SWIG_IsOK(ecode4)) {
20205 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "4"" of type '" "int""'");
20206 }
20207 arg4 = static_cast< int >(val4);
20208 }
20209 {
20210 PyThreadState* __tstate = wxPyBeginAllowThreads();
20211 result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4);
20212 wxPyEndAllowThreads(__tstate);
20213 if (PyErr_Occurred()) SWIG_fail;
20214 }
20215 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_NEW | 0 );
20216 return resultobj;
20217 fail:
20218 return NULL;
20219 }
20220
20221
20222 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20223 PyObject *resultobj = 0;
20224 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20225 int result;
20226 void *argp1 = 0 ;
20227 int res1 = 0 ;
20228 PyObject *swig_obj[1] ;
20229
20230 if (!args) SWIG_fail;
20231 swig_obj[0] = args;
20232 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20233 if (!SWIG_IsOK(res1)) {
20234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20235 }
20236 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20237 {
20238 PyThreadState* __tstate = wxPyBeginAllowThreads();
20239 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection();
20240 wxPyEndAllowThreads(__tstate);
20241 if (PyErr_Occurred()) SWIG_fail;
20242 }
20243 resultobj = SWIG_From_int(static_cast< int >(result));
20244 return resultobj;
20245 fail:
20246 return NULL;
20247 }
20248
20249
20250 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20251 PyObject *resultobj = 0;
20252 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20253 int arg2 ;
20254 void *argp1 = 0 ;
20255 int res1 = 0 ;
20256 int val2 ;
20257 int ecode2 = 0 ;
20258 PyObject * obj0 = 0 ;
20259 PyObject * obj1 = 0 ;
20260 char * kwnames[] = {
20261 (char *) "self",(char *) "nSel", NULL
20262 };
20263
20264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20266 if (!SWIG_IsOK(res1)) {
20267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20268 }
20269 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20270 ecode2 = SWIG_AsVal_int(obj1, &val2);
20271 if (!SWIG_IsOK(ecode2)) {
20272 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "2"" of type '" "int""'");
20273 }
20274 arg2 = static_cast< int >(val2);
20275 {
20276 PyThreadState* __tstate = wxPyBeginAllowThreads();
20277 (arg1)->SetSelection(arg2);
20278 wxPyEndAllowThreads(__tstate);
20279 if (PyErr_Occurred()) SWIG_fail;
20280 }
20281 resultobj = SWIG_Py_Void();
20282 return resultobj;
20283 fail:
20284 return NULL;
20285 }
20286
20287
20288 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20289 PyObject *resultobj = 0;
20290 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20291 int result;
20292 void *argp1 = 0 ;
20293 int res1 = 0 ;
20294 PyObject *swig_obj[1] ;
20295
20296 if (!args) SWIG_fail;
20297 swig_obj[0] = args;
20298 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20299 if (!SWIG_IsOK(res1)) {
20300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20301 }
20302 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20303 {
20304 PyThreadState* __tstate = wxPyBeginAllowThreads();
20305 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection();
20306 wxPyEndAllowThreads(__tstate);
20307 if (PyErr_Occurred()) SWIG_fail;
20308 }
20309 resultobj = SWIG_From_int(static_cast< int >(result));
20310 return resultobj;
20311 fail:
20312 return NULL;
20313 }
20314
20315
20316 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20317 PyObject *resultobj = 0;
20318 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20319 int arg2 ;
20320 void *argp1 = 0 ;
20321 int res1 = 0 ;
20322 int val2 ;
20323 int ecode2 = 0 ;
20324 PyObject * obj0 = 0 ;
20325 PyObject * obj1 = 0 ;
20326 char * kwnames[] = {
20327 (char *) "self",(char *) "nOldSel", NULL
20328 };
20329
20330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20332 if (!SWIG_IsOK(res1)) {
20333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20334 }
20335 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20336 ecode2 = SWIG_AsVal_int(obj1, &val2);
20337 if (!SWIG_IsOK(ecode2)) {
20338 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "2"" of type '" "int""'");
20339 }
20340 arg2 = static_cast< int >(val2);
20341 {
20342 PyThreadState* __tstate = wxPyBeginAllowThreads();
20343 (arg1)->SetOldSelection(arg2);
20344 wxPyEndAllowThreads(__tstate);
20345 if (PyErr_Occurred()) SWIG_fail;
20346 }
20347 resultobj = SWIG_Py_Void();
20348 return resultobj;
20349 fail:
20350 return NULL;
20351 }
20352
20353
20354 SWIGINTERN PyObject *BookCtrlBaseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20355 PyObject *obj;
20356 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20357 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_NewClientData(obj));
20358 return SWIG_Py_Void();
20359 }
20360
20361 SWIGINTERN PyObject *BookCtrlBaseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20362 return SWIG_Python_InitShadowInstance(args);
20363 }
20364
20365 SWIGINTERN PyObject *_wrap_new_Notebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20366 PyObject *resultobj = 0;
20367 wxWindow *arg1 = (wxWindow *) 0 ;
20368 int arg2 = (int) -1 ;
20369 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20370 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20371 wxSize const &arg4_defvalue = wxDefaultSize ;
20372 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20373 long arg5 = (long) 0 ;
20374 wxString const &arg6_defvalue = wxPyNotebookNameStr ;
20375 wxString *arg6 = (wxString *) &arg6_defvalue ;
20376 wxNotebook *result = 0 ;
20377 void *argp1 = 0 ;
20378 int res1 = 0 ;
20379 int val2 ;
20380 int ecode2 = 0 ;
20381 wxPoint temp3 ;
20382 wxSize temp4 ;
20383 long val5 ;
20384 int ecode5 = 0 ;
20385 bool temp6 = false ;
20386 PyObject * obj0 = 0 ;
20387 PyObject * obj1 = 0 ;
20388 PyObject * obj2 = 0 ;
20389 PyObject * obj3 = 0 ;
20390 PyObject * obj4 = 0 ;
20391 PyObject * obj5 = 0 ;
20392 char * kwnames[] = {
20393 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20394 };
20395
20396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20397 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20398 if (!SWIG_IsOK(res1)) {
20399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Notebook" "', expected argument " "1"" of type '" "wxWindow *""'");
20400 }
20401 arg1 = reinterpret_cast< wxWindow * >(argp1);
20402 if (obj1) {
20403 ecode2 = SWIG_AsVal_int(obj1, &val2);
20404 if (!SWIG_IsOK(ecode2)) {
20405 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Notebook" "', expected argument " "2"" of type '" "int""'");
20406 }
20407 arg2 = static_cast< int >(val2);
20408 }
20409 if (obj2) {
20410 {
20411 arg3 = &temp3;
20412 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20413 }
20414 }
20415 if (obj3) {
20416 {
20417 arg4 = &temp4;
20418 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
20419 }
20420 }
20421 if (obj4) {
20422 ecode5 = SWIG_AsVal_long(obj4, &val5);
20423 if (!SWIG_IsOK(ecode5)) {
20424 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Notebook" "', expected argument " "5"" of type '" "long""'");
20425 }
20426 arg5 = static_cast< long >(val5);
20427 }
20428 if (obj5) {
20429 {
20430 arg6 = wxString_in_helper(obj5);
20431 if (arg6 == NULL) SWIG_fail;
20432 temp6 = true;
20433 }
20434 }
20435 {
20436 if (!wxPyCheckForApp()) SWIG_fail;
20437 PyThreadState* __tstate = wxPyBeginAllowThreads();
20438 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20439 wxPyEndAllowThreads(__tstate);
20440 if (PyErr_Occurred()) SWIG_fail;
20441 }
20442 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_NEW | 0 );
20443 {
20444 if (temp6)
20445 delete arg6;
20446 }
20447 return resultobj;
20448 fail:
20449 {
20450 if (temp6)
20451 delete arg6;
20452 }
20453 return NULL;
20454 }
20455
20456
20457 SWIGINTERN PyObject *_wrap_new_PreNotebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20458 PyObject *resultobj = 0;
20459 wxNotebook *result = 0 ;
20460
20461 if (!SWIG_Python_UnpackTuple(args,"new_PreNotebook",0,0,0)) SWIG_fail;
20462 {
20463 if (!wxPyCheckForApp()) SWIG_fail;
20464 PyThreadState* __tstate = wxPyBeginAllowThreads();
20465 result = (wxNotebook *)new wxNotebook();
20466 wxPyEndAllowThreads(__tstate);
20467 if (PyErr_Occurred()) SWIG_fail;
20468 }
20469 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_OWN | 0 );
20470 return resultobj;
20471 fail:
20472 return NULL;
20473 }
20474
20475
20476 SWIGINTERN PyObject *_wrap_Notebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20477 PyObject *resultobj = 0;
20478 wxNotebook *arg1 = (wxNotebook *) 0 ;
20479 wxWindow *arg2 = (wxWindow *) 0 ;
20480 int arg3 = (int) -1 ;
20481 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20482 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20483 wxSize const &arg5_defvalue = wxDefaultSize ;
20484 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20485 long arg6 = (long) 0 ;
20486 wxString const &arg7_defvalue = wxPyNotebookNameStr ;
20487 wxString *arg7 = (wxString *) &arg7_defvalue ;
20488 bool result;
20489 void *argp1 = 0 ;
20490 int res1 = 0 ;
20491 void *argp2 = 0 ;
20492 int res2 = 0 ;
20493 int val3 ;
20494 int ecode3 = 0 ;
20495 wxPoint temp4 ;
20496 wxSize temp5 ;
20497 long val6 ;
20498 int ecode6 = 0 ;
20499 bool temp7 = false ;
20500 PyObject * obj0 = 0 ;
20501 PyObject * obj1 = 0 ;
20502 PyObject * obj2 = 0 ;
20503 PyObject * obj3 = 0 ;
20504 PyObject * obj4 = 0 ;
20505 PyObject * obj5 = 0 ;
20506 PyObject * obj6 = 0 ;
20507 char * kwnames[] = {
20508 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20509 };
20510
20511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20513 if (!SWIG_IsOK(res1)) {
20514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_Create" "', expected argument " "1"" of type '" "wxNotebook *""'");
20515 }
20516 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20517 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20518 if (!SWIG_IsOK(res2)) {
20519 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Notebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20520 }
20521 arg2 = reinterpret_cast< wxWindow * >(argp2);
20522 if (obj2) {
20523 ecode3 = SWIG_AsVal_int(obj2, &val3);
20524 if (!SWIG_IsOK(ecode3)) {
20525 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_Create" "', expected argument " "3"" of type '" "int""'");
20526 }
20527 arg3 = static_cast< int >(val3);
20528 }
20529 if (obj3) {
20530 {
20531 arg4 = &temp4;
20532 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
20533 }
20534 }
20535 if (obj4) {
20536 {
20537 arg5 = &temp5;
20538 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
20539 }
20540 }
20541 if (obj5) {
20542 ecode6 = SWIG_AsVal_long(obj5, &val6);
20543 if (!SWIG_IsOK(ecode6)) {
20544 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Notebook_Create" "', expected argument " "6"" of type '" "long""'");
20545 }
20546 arg6 = static_cast< long >(val6);
20547 }
20548 if (obj6) {
20549 {
20550 arg7 = wxString_in_helper(obj6);
20551 if (arg7 == NULL) SWIG_fail;
20552 temp7 = true;
20553 }
20554 }
20555 {
20556 PyThreadState* __tstate = wxPyBeginAllowThreads();
20557 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20558 wxPyEndAllowThreads(__tstate);
20559 if (PyErr_Occurred()) SWIG_fail;
20560 }
20561 {
20562 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20563 }
20564 {
20565 if (temp7)
20566 delete arg7;
20567 }
20568 return resultobj;
20569 fail:
20570 {
20571 if (temp7)
20572 delete arg7;
20573 }
20574 return NULL;
20575 }
20576
20577
20578 SWIGINTERN PyObject *_wrap_Notebook_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20579 PyObject *resultobj = 0;
20580 wxNotebook *arg1 = (wxNotebook *) 0 ;
20581 int result;
20582 void *argp1 = 0 ;
20583 int res1 = 0 ;
20584 PyObject *swig_obj[1] ;
20585
20586 if (!args) SWIG_fail;
20587 swig_obj[0] = args;
20588 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20589 if (!SWIG_IsOK(res1)) {
20590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetRowCount" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20591 }
20592 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20593 {
20594 PyThreadState* __tstate = wxPyBeginAllowThreads();
20595 result = (int)((wxNotebook const *)arg1)->GetRowCount();
20596 wxPyEndAllowThreads(__tstate);
20597 if (PyErr_Occurred()) SWIG_fail;
20598 }
20599 resultobj = SWIG_From_int(static_cast< int >(result));
20600 return resultobj;
20601 fail:
20602 return NULL;
20603 }
20604
20605
20606 SWIGINTERN PyObject *_wrap_Notebook_SetPadding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20607 PyObject *resultobj = 0;
20608 wxNotebook *arg1 = (wxNotebook *) 0 ;
20609 wxSize *arg2 = 0 ;
20610 void *argp1 = 0 ;
20611 int res1 = 0 ;
20612 wxSize temp2 ;
20613 PyObject * obj0 = 0 ;
20614 PyObject * obj1 = 0 ;
20615 char * kwnames[] = {
20616 (char *) "self",(char *) "padding", NULL
20617 };
20618
20619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) SWIG_fail;
20620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20621 if (!SWIG_IsOK(res1)) {
20622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetPadding" "', expected argument " "1"" of type '" "wxNotebook *""'");
20623 }
20624 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20625 {
20626 arg2 = &temp2;
20627 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20628 }
20629 {
20630 PyThreadState* __tstate = wxPyBeginAllowThreads();
20631 (arg1)->SetPadding((wxSize const &)*arg2);
20632 wxPyEndAllowThreads(__tstate);
20633 if (PyErr_Occurred()) SWIG_fail;
20634 }
20635 resultobj = SWIG_Py_Void();
20636 return resultobj;
20637 fail:
20638 return NULL;
20639 }
20640
20641
20642 SWIGINTERN PyObject *_wrap_Notebook_SetTabSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20643 PyObject *resultobj = 0;
20644 wxNotebook *arg1 = (wxNotebook *) 0 ;
20645 wxSize *arg2 = 0 ;
20646 void *argp1 = 0 ;
20647 int res1 = 0 ;
20648 wxSize temp2 ;
20649 PyObject * obj0 = 0 ;
20650 PyObject * obj1 = 0 ;
20651 char * kwnames[] = {
20652 (char *) "self",(char *) "sz", NULL
20653 };
20654
20655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) SWIG_fail;
20656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20657 if (!SWIG_IsOK(res1)) {
20658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetTabSize" "', expected argument " "1"" of type '" "wxNotebook *""'");
20659 }
20660 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20661 {
20662 arg2 = &temp2;
20663 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20664 }
20665 {
20666 PyThreadState* __tstate = wxPyBeginAllowThreads();
20667 (arg1)->SetTabSize((wxSize const &)*arg2);
20668 wxPyEndAllowThreads(__tstate);
20669 if (PyErr_Occurred()) SWIG_fail;
20670 }
20671 resultobj = SWIG_Py_Void();
20672 return resultobj;
20673 fail:
20674 return NULL;
20675 }
20676
20677
20678 SWIGINTERN PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20679 PyObject *resultobj = 0;
20680 wxNotebook *arg1 = (wxNotebook *) 0 ;
20681 wxColour result;
20682 void *argp1 = 0 ;
20683 int res1 = 0 ;
20684 PyObject *swig_obj[1] ;
20685
20686 if (!args) SWIG_fail;
20687 swig_obj[0] = args;
20688 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20689 if (!SWIG_IsOK(res1)) {
20690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetThemeBackgroundColour" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20691 }
20692 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20693 {
20694 PyThreadState* __tstate = wxPyBeginAllowThreads();
20695 result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour();
20696 wxPyEndAllowThreads(__tstate);
20697 if (PyErr_Occurred()) SWIG_fail;
20698 }
20699 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
20700 return resultobj;
20701 fail:
20702 return NULL;
20703 }
20704
20705
20706 SWIGINTERN PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20707 PyObject *resultobj = 0;
20708 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20709 SwigValueWrapper<wxVisualAttributes > result;
20710 int val1 ;
20711 int ecode1 = 0 ;
20712 PyObject * obj0 = 0 ;
20713 char * kwnames[] = {
20714 (char *) "variant", NULL
20715 };
20716
20717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20718 if (obj0) {
20719 ecode1 = SWIG_AsVal_int(obj0, &val1);
20720 if (!SWIG_IsOK(ecode1)) {
20721 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Notebook_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20722 }
20723 arg1 = static_cast< wxWindowVariant >(val1);
20724 }
20725 {
20726 if (!wxPyCheckForApp()) SWIG_fail;
20727 PyThreadState* __tstate = wxPyBeginAllowThreads();
20728 result = wxNotebook::GetClassDefaultAttributes(arg1);
20729 wxPyEndAllowThreads(__tstate);
20730 if (PyErr_Occurred()) SWIG_fail;
20731 }
20732 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20733 return resultobj;
20734 fail:
20735 return NULL;
20736 }
20737
20738
20739 SWIGINTERN PyObject *Notebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20740 PyObject *obj;
20741 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20742 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebook, SWIG_NewClientData(obj));
20743 return SWIG_Py_Void();
20744 }
20745
20746 SWIGINTERN PyObject *Notebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20747 return SWIG_Python_InitShadowInstance(args);
20748 }
20749
20750 SWIGINTERN PyObject *_wrap_new_NotebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20751 PyObject *resultobj = 0;
20752 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20753 int arg2 = (int) 0 ;
20754 int arg3 = (int) -1 ;
20755 int arg4 = (int) -1 ;
20756 wxNotebookEvent *result = 0 ;
20757 int val1 ;
20758 int ecode1 = 0 ;
20759 int val2 ;
20760 int ecode2 = 0 ;
20761 int val3 ;
20762 int ecode3 = 0 ;
20763 int val4 ;
20764 int ecode4 = 0 ;
20765 PyObject * obj0 = 0 ;
20766 PyObject * obj1 = 0 ;
20767 PyObject * obj2 = 0 ;
20768 PyObject * obj3 = 0 ;
20769 char * kwnames[] = {
20770 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20771 };
20772
20773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20774 if (obj0) {
20775 ecode1 = SWIG_AsVal_int(obj0, &val1);
20776 if (!SWIG_IsOK(ecode1)) {
20777 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NotebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20778 }
20779 arg1 = static_cast< wxEventType >(val1);
20780 }
20781 if (obj1) {
20782 ecode2 = SWIG_AsVal_int(obj1, &val2);
20783 if (!SWIG_IsOK(ecode2)) {
20784 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NotebookEvent" "', expected argument " "2"" of type '" "int""'");
20785 }
20786 arg2 = static_cast< int >(val2);
20787 }
20788 if (obj2) {
20789 ecode3 = SWIG_AsVal_int(obj2, &val3);
20790 if (!SWIG_IsOK(ecode3)) {
20791 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NotebookEvent" "', expected argument " "3"" of type '" "int""'");
20792 }
20793 arg3 = static_cast< int >(val3);
20794 }
20795 if (obj3) {
20796 ecode4 = SWIG_AsVal_int(obj3, &val4);
20797 if (!SWIG_IsOK(ecode4)) {
20798 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NotebookEvent" "', expected argument " "4"" of type '" "int""'");
20799 }
20800 arg4 = static_cast< int >(val4);
20801 }
20802 {
20803 PyThreadState* __tstate = wxPyBeginAllowThreads();
20804 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
20805 wxPyEndAllowThreads(__tstate);
20806 if (PyErr_Occurred()) SWIG_fail;
20807 }
20808 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebookEvent, SWIG_POINTER_NEW | 0 );
20809 return resultobj;
20810 fail:
20811 return NULL;
20812 }
20813
20814
20815 SWIGINTERN PyObject *NotebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20816 PyObject *obj;
20817 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20818 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebookEvent, SWIG_NewClientData(obj));
20819 return SWIG_Py_Void();
20820 }
20821
20822 SWIGINTERN PyObject *NotebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20823 return SWIG_Python_InitShadowInstance(args);
20824 }
20825
20826 SWIGINTERN PyObject *_wrap_new_Listbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20827 PyObject *resultobj = 0;
20828 wxWindow *arg1 = (wxWindow *) 0 ;
20829 int arg2 = (int) -1 ;
20830 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20831 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20832 wxSize const &arg4_defvalue = wxDefaultSize ;
20833 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20834 long arg5 = (long) 0 ;
20835 wxString const &arg6_defvalue = wxPyEmptyString ;
20836 wxString *arg6 = (wxString *) &arg6_defvalue ;
20837 wxListbook *result = 0 ;
20838 void *argp1 = 0 ;
20839 int res1 = 0 ;
20840 int val2 ;
20841 int ecode2 = 0 ;
20842 wxPoint temp3 ;
20843 wxSize temp4 ;
20844 long val5 ;
20845 int ecode5 = 0 ;
20846 bool temp6 = false ;
20847 PyObject * obj0 = 0 ;
20848 PyObject * obj1 = 0 ;
20849 PyObject * obj2 = 0 ;
20850 PyObject * obj3 = 0 ;
20851 PyObject * obj4 = 0 ;
20852 PyObject * obj5 = 0 ;
20853 char * kwnames[] = {
20854 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20855 };
20856
20857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20858 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20859 if (!SWIG_IsOK(res1)) {
20860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Listbook" "', expected argument " "1"" of type '" "wxWindow *""'");
20861 }
20862 arg1 = reinterpret_cast< wxWindow * >(argp1);
20863 if (obj1) {
20864 ecode2 = SWIG_AsVal_int(obj1, &val2);
20865 if (!SWIG_IsOK(ecode2)) {
20866 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Listbook" "', expected argument " "2"" of type '" "int""'");
20867 }
20868 arg2 = static_cast< int >(val2);
20869 }
20870 if (obj2) {
20871 {
20872 arg3 = &temp3;
20873 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20874 }
20875 }
20876 if (obj3) {
20877 {
20878 arg4 = &temp4;
20879 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
20880 }
20881 }
20882 if (obj4) {
20883 ecode5 = SWIG_AsVal_long(obj4, &val5);
20884 if (!SWIG_IsOK(ecode5)) {
20885 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Listbook" "', expected argument " "5"" of type '" "long""'");
20886 }
20887 arg5 = static_cast< long >(val5);
20888 }
20889 if (obj5) {
20890 {
20891 arg6 = wxString_in_helper(obj5);
20892 if (arg6 == NULL) SWIG_fail;
20893 temp6 = true;
20894 }
20895 }
20896 {
20897 if (!wxPyCheckForApp()) SWIG_fail;
20898 PyThreadState* __tstate = wxPyBeginAllowThreads();
20899 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20900 wxPyEndAllowThreads(__tstate);
20901 if (PyErr_Occurred()) SWIG_fail;
20902 }
20903 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_NEW | 0 );
20904 {
20905 if (temp6)
20906 delete arg6;
20907 }
20908 return resultobj;
20909 fail:
20910 {
20911 if (temp6)
20912 delete arg6;
20913 }
20914 return NULL;
20915 }
20916
20917
20918 SWIGINTERN PyObject *_wrap_new_PreListbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20919 PyObject *resultobj = 0;
20920 wxListbook *result = 0 ;
20921
20922 if (!SWIG_Python_UnpackTuple(args,"new_PreListbook",0,0,0)) SWIG_fail;
20923 {
20924 if (!wxPyCheckForApp()) SWIG_fail;
20925 PyThreadState* __tstate = wxPyBeginAllowThreads();
20926 result = (wxListbook *)new wxListbook();
20927 wxPyEndAllowThreads(__tstate);
20928 if (PyErr_Occurred()) SWIG_fail;
20929 }
20930 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_OWN | 0 );
20931 return resultobj;
20932 fail:
20933 return NULL;
20934 }
20935
20936
20937 SWIGINTERN PyObject *_wrap_Listbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20938 PyObject *resultobj = 0;
20939 wxListbook *arg1 = (wxListbook *) 0 ;
20940 wxWindow *arg2 = (wxWindow *) 0 ;
20941 int arg3 = (int) -1 ;
20942 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20943 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20944 wxSize const &arg5_defvalue = wxDefaultSize ;
20945 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20946 long arg6 = (long) 0 ;
20947 wxString const &arg7_defvalue = wxPyEmptyString ;
20948 wxString *arg7 = (wxString *) &arg7_defvalue ;
20949 bool result;
20950 void *argp1 = 0 ;
20951 int res1 = 0 ;
20952 void *argp2 = 0 ;
20953 int res2 = 0 ;
20954 int val3 ;
20955 int ecode3 = 0 ;
20956 wxPoint temp4 ;
20957 wxSize temp5 ;
20958 long val6 ;
20959 int ecode6 = 0 ;
20960 bool temp7 = false ;
20961 PyObject * obj0 = 0 ;
20962 PyObject * obj1 = 0 ;
20963 PyObject * obj2 = 0 ;
20964 PyObject * obj3 = 0 ;
20965 PyObject * obj4 = 0 ;
20966 PyObject * obj5 = 0 ;
20967 PyObject * obj6 = 0 ;
20968 char * kwnames[] = {
20969 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20970 };
20971
20972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
20974 if (!SWIG_IsOK(res1)) {
20975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_Create" "', expected argument " "1"" of type '" "wxListbook *""'");
20976 }
20977 arg1 = reinterpret_cast< wxListbook * >(argp1);
20978 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20979 if (!SWIG_IsOK(res2)) {
20980 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Listbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20981 }
20982 arg2 = reinterpret_cast< wxWindow * >(argp2);
20983 if (obj2) {
20984 ecode3 = SWIG_AsVal_int(obj2, &val3);
20985 if (!SWIG_IsOK(ecode3)) {
20986 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Listbook_Create" "', expected argument " "3"" of type '" "int""'");
20987 }
20988 arg3 = static_cast< int >(val3);
20989 }
20990 if (obj3) {
20991 {
20992 arg4 = &temp4;
20993 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
20994 }
20995 }
20996 if (obj4) {
20997 {
20998 arg5 = &temp5;
20999 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21000 }
21001 }
21002 if (obj5) {
21003 ecode6 = SWIG_AsVal_long(obj5, &val6);
21004 if (!SWIG_IsOK(ecode6)) {
21005 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Listbook_Create" "', expected argument " "6"" of type '" "long""'");
21006 }
21007 arg6 = static_cast< long >(val6);
21008 }
21009 if (obj6) {
21010 {
21011 arg7 = wxString_in_helper(obj6);
21012 if (arg7 == NULL) SWIG_fail;
21013 temp7 = true;
21014 }
21015 }
21016 {
21017 PyThreadState* __tstate = wxPyBeginAllowThreads();
21018 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21019 wxPyEndAllowThreads(__tstate);
21020 if (PyErr_Occurred()) SWIG_fail;
21021 }
21022 {
21023 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21024 }
21025 {
21026 if (temp7)
21027 delete arg7;
21028 }
21029 return resultobj;
21030 fail:
21031 {
21032 if (temp7)
21033 delete arg7;
21034 }
21035 return NULL;
21036 }
21037
21038
21039 SWIGINTERN PyObject *_wrap_Listbook_GetListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21040 PyObject *resultobj = 0;
21041 wxListbook *arg1 = (wxListbook *) 0 ;
21042 wxListView *result = 0 ;
21043 void *argp1 = 0 ;
21044 int res1 = 0 ;
21045 PyObject *swig_obj[1] ;
21046
21047 if (!args) SWIG_fail;
21048 swig_obj[0] = args;
21049 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21050 if (!SWIG_IsOK(res1)) {
21051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_GetListView" "', expected argument " "1"" of type '" "wxListbook *""'");
21052 }
21053 arg1 = reinterpret_cast< wxListbook * >(argp1);
21054 {
21055 PyThreadState* __tstate = wxPyBeginAllowThreads();
21056 result = (wxListView *)(arg1)->GetListView();
21057 wxPyEndAllowThreads(__tstate);
21058 if (PyErr_Occurred()) SWIG_fail;
21059 }
21060 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, 0 | 0 );
21061 return resultobj;
21062 fail:
21063 return NULL;
21064 }
21065
21066
21067 SWIGINTERN PyObject *Listbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21068 PyObject *obj;
21069 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21070 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbook, SWIG_NewClientData(obj));
21071 return SWIG_Py_Void();
21072 }
21073
21074 SWIGINTERN PyObject *Listbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21075 return SWIG_Python_InitShadowInstance(args);
21076 }
21077
21078 SWIGINTERN PyObject *_wrap_new_ListbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21079 PyObject *resultobj = 0;
21080 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21081 int arg2 = (int) 0 ;
21082 int arg3 = (int) -1 ;
21083 int arg4 = (int) -1 ;
21084 wxListbookEvent *result = 0 ;
21085 int val1 ;
21086 int ecode1 = 0 ;
21087 int val2 ;
21088 int ecode2 = 0 ;
21089 int val3 ;
21090 int ecode3 = 0 ;
21091 int val4 ;
21092 int ecode4 = 0 ;
21093 PyObject * obj0 = 0 ;
21094 PyObject * obj1 = 0 ;
21095 PyObject * obj2 = 0 ;
21096 PyObject * obj3 = 0 ;
21097 char * kwnames[] = {
21098 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21099 };
21100
21101 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21102 if (obj0) {
21103 ecode1 = SWIG_AsVal_int(obj0, &val1);
21104 if (!SWIG_IsOK(ecode1)) {
21105 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21106 }
21107 arg1 = static_cast< wxEventType >(val1);
21108 }
21109 if (obj1) {
21110 ecode2 = SWIG_AsVal_int(obj1, &val2);
21111 if (!SWIG_IsOK(ecode2)) {
21112 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListbookEvent" "', expected argument " "2"" of type '" "int""'");
21113 }
21114 arg2 = static_cast< int >(val2);
21115 }
21116 if (obj2) {
21117 ecode3 = SWIG_AsVal_int(obj2, &val3);
21118 if (!SWIG_IsOK(ecode3)) {
21119 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ListbookEvent" "', expected argument " "3"" of type '" "int""'");
21120 }
21121 arg3 = static_cast< int >(val3);
21122 }
21123 if (obj3) {
21124 ecode4 = SWIG_AsVal_int(obj3, &val4);
21125 if (!SWIG_IsOK(ecode4)) {
21126 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ListbookEvent" "', expected argument " "4"" of type '" "int""'");
21127 }
21128 arg4 = static_cast< int >(val4);
21129 }
21130 {
21131 PyThreadState* __tstate = wxPyBeginAllowThreads();
21132 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
21133 wxPyEndAllowThreads(__tstate);
21134 if (PyErr_Occurred()) SWIG_fail;
21135 }
21136 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbookEvent, SWIG_POINTER_NEW | 0 );
21137 return resultobj;
21138 fail:
21139 return NULL;
21140 }
21141
21142
21143 SWIGINTERN PyObject *ListbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21144 PyObject *obj;
21145 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21146 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbookEvent, SWIG_NewClientData(obj));
21147 return SWIG_Py_Void();
21148 }
21149
21150 SWIGINTERN PyObject *ListbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21151 return SWIG_Python_InitShadowInstance(args);
21152 }
21153
21154 SWIGINTERN PyObject *_wrap_new_Choicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21155 PyObject *resultobj = 0;
21156 wxWindow *arg1 = (wxWindow *) 0 ;
21157 int arg2 ;
21158 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21159 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21160 wxSize const &arg4_defvalue = wxDefaultSize ;
21161 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21162 long arg5 = (long) 0 ;
21163 wxString const &arg6_defvalue = wxPyEmptyString ;
21164 wxString *arg6 = (wxString *) &arg6_defvalue ;
21165 wxChoicebook *result = 0 ;
21166 void *argp1 = 0 ;
21167 int res1 = 0 ;
21168 int val2 ;
21169 int ecode2 = 0 ;
21170 wxPoint temp3 ;
21171 wxSize temp4 ;
21172 long val5 ;
21173 int ecode5 = 0 ;
21174 bool temp6 = false ;
21175 PyObject * obj0 = 0 ;
21176 PyObject * obj1 = 0 ;
21177 PyObject * obj2 = 0 ;
21178 PyObject * obj3 = 0 ;
21179 PyObject * obj4 = 0 ;
21180 PyObject * obj5 = 0 ;
21181 char * kwnames[] = {
21182 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21183 };
21184
21185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21187 if (!SWIG_IsOK(res1)) {
21188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choicebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21189 }
21190 arg1 = reinterpret_cast< wxWindow * >(argp1);
21191 ecode2 = SWIG_AsVal_int(obj1, &val2);
21192 if (!SWIG_IsOK(ecode2)) {
21193 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choicebook" "', expected argument " "2"" of type '" "int""'");
21194 }
21195 arg2 = static_cast< int >(val2);
21196 if (obj2) {
21197 {
21198 arg3 = &temp3;
21199 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21200 }
21201 }
21202 if (obj3) {
21203 {
21204 arg4 = &temp4;
21205 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21206 }
21207 }
21208 if (obj4) {
21209 ecode5 = SWIG_AsVal_long(obj4, &val5);
21210 if (!SWIG_IsOK(ecode5)) {
21211 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Choicebook" "', expected argument " "5"" of type '" "long""'");
21212 }
21213 arg5 = static_cast< long >(val5);
21214 }
21215 if (obj5) {
21216 {
21217 arg6 = wxString_in_helper(obj5);
21218 if (arg6 == NULL) SWIG_fail;
21219 temp6 = true;
21220 }
21221 }
21222 {
21223 if (!wxPyCheckForApp()) SWIG_fail;
21224 PyThreadState* __tstate = wxPyBeginAllowThreads();
21225 result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21226 wxPyEndAllowThreads(__tstate);
21227 if (PyErr_Occurred()) SWIG_fail;
21228 }
21229 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_NEW | 0 );
21230 {
21231 if (temp6)
21232 delete arg6;
21233 }
21234 return resultobj;
21235 fail:
21236 {
21237 if (temp6)
21238 delete arg6;
21239 }
21240 return NULL;
21241 }
21242
21243
21244 SWIGINTERN PyObject *_wrap_new_PreChoicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21245 PyObject *resultobj = 0;
21246 wxChoicebook *result = 0 ;
21247
21248 if (!SWIG_Python_UnpackTuple(args,"new_PreChoicebook",0,0,0)) SWIG_fail;
21249 {
21250 if (!wxPyCheckForApp()) SWIG_fail;
21251 PyThreadState* __tstate = wxPyBeginAllowThreads();
21252 result = (wxChoicebook *)new wxChoicebook();
21253 wxPyEndAllowThreads(__tstate);
21254 if (PyErr_Occurred()) SWIG_fail;
21255 }
21256 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_OWN | 0 );
21257 return resultobj;
21258 fail:
21259 return NULL;
21260 }
21261
21262
21263 SWIGINTERN PyObject *_wrap_Choicebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21264 PyObject *resultobj = 0;
21265 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21266 wxWindow *arg2 = (wxWindow *) 0 ;
21267 int arg3 ;
21268 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21269 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21270 wxSize const &arg5_defvalue = wxDefaultSize ;
21271 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21272 long arg6 = (long) 0 ;
21273 wxString const &arg7_defvalue = wxPyEmptyString ;
21274 wxString *arg7 = (wxString *) &arg7_defvalue ;
21275 bool result;
21276 void *argp1 = 0 ;
21277 int res1 = 0 ;
21278 void *argp2 = 0 ;
21279 int res2 = 0 ;
21280 int val3 ;
21281 int ecode3 = 0 ;
21282 wxPoint temp4 ;
21283 wxSize temp5 ;
21284 long val6 ;
21285 int ecode6 = 0 ;
21286 bool temp7 = false ;
21287 PyObject * obj0 = 0 ;
21288 PyObject * obj1 = 0 ;
21289 PyObject * obj2 = 0 ;
21290 PyObject * obj3 = 0 ;
21291 PyObject * obj4 = 0 ;
21292 PyObject * obj5 = 0 ;
21293 PyObject * obj6 = 0 ;
21294 char * kwnames[] = {
21295 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21296 };
21297
21298 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21299 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21300 if (!SWIG_IsOK(res1)) {
21301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_Create" "', expected argument " "1"" of type '" "wxChoicebook *""'");
21302 }
21303 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21304 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21305 if (!SWIG_IsOK(res2)) {
21306 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choicebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21307 }
21308 arg2 = reinterpret_cast< wxWindow * >(argp2);
21309 ecode3 = SWIG_AsVal_int(obj2, &val3);
21310 if (!SWIG_IsOK(ecode3)) {
21311 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choicebook_Create" "', expected argument " "3"" of type '" "int""'");
21312 }
21313 arg3 = static_cast< int >(val3);
21314 if (obj3) {
21315 {
21316 arg4 = &temp4;
21317 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21318 }
21319 }
21320 if (obj4) {
21321 {
21322 arg5 = &temp5;
21323 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21324 }
21325 }
21326 if (obj5) {
21327 ecode6 = SWIG_AsVal_long(obj5, &val6);
21328 if (!SWIG_IsOK(ecode6)) {
21329 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Choicebook_Create" "', expected argument " "6"" of type '" "long""'");
21330 }
21331 arg6 = static_cast< long >(val6);
21332 }
21333 if (obj6) {
21334 {
21335 arg7 = wxString_in_helper(obj6);
21336 if (arg7 == NULL) SWIG_fail;
21337 temp7 = true;
21338 }
21339 }
21340 {
21341 PyThreadState* __tstate = wxPyBeginAllowThreads();
21342 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21343 wxPyEndAllowThreads(__tstate);
21344 if (PyErr_Occurred()) SWIG_fail;
21345 }
21346 {
21347 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21348 }
21349 {
21350 if (temp7)
21351 delete arg7;
21352 }
21353 return resultobj;
21354 fail:
21355 {
21356 if (temp7)
21357 delete arg7;
21358 }
21359 return NULL;
21360 }
21361
21362
21363 SWIGINTERN PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21364 PyObject *resultobj = 0;
21365 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21366 wxChoice *result = 0 ;
21367 void *argp1 = 0 ;
21368 int res1 = 0 ;
21369 PyObject *swig_obj[1] ;
21370
21371 if (!args) SWIG_fail;
21372 swig_obj[0] = args;
21373 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21374 if (!SWIG_IsOK(res1)) {
21375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_GetChoiceCtrl" "', expected argument " "1"" of type '" "wxChoicebook const *""'");
21376 }
21377 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21378 {
21379 PyThreadState* __tstate = wxPyBeginAllowThreads();
21380 result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl();
21381 wxPyEndAllowThreads(__tstate);
21382 if (PyErr_Occurred()) SWIG_fail;
21383 }
21384 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, 0 | 0 );
21385 return resultobj;
21386 fail:
21387 return NULL;
21388 }
21389
21390
21391 SWIGINTERN PyObject *Choicebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21392 PyObject *obj;
21393 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21394 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebook, SWIG_NewClientData(obj));
21395 return SWIG_Py_Void();
21396 }
21397
21398 SWIGINTERN PyObject *Choicebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21399 return SWIG_Python_InitShadowInstance(args);
21400 }
21401
21402 SWIGINTERN PyObject *_wrap_new_ChoicebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21403 PyObject *resultobj = 0;
21404 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21405 int arg2 = (int) 0 ;
21406 int arg3 = (int) -1 ;
21407 int arg4 = (int) -1 ;
21408 wxChoicebookEvent *result = 0 ;
21409 int val1 ;
21410 int ecode1 = 0 ;
21411 int val2 ;
21412 int ecode2 = 0 ;
21413 int val3 ;
21414 int ecode3 = 0 ;
21415 int val4 ;
21416 int ecode4 = 0 ;
21417 PyObject * obj0 = 0 ;
21418 PyObject * obj1 = 0 ;
21419 PyObject * obj2 = 0 ;
21420 PyObject * obj3 = 0 ;
21421 char * kwnames[] = {
21422 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21423 };
21424
21425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21426 if (obj0) {
21427 ecode1 = SWIG_AsVal_int(obj0, &val1);
21428 if (!SWIG_IsOK(ecode1)) {
21429 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ChoicebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21430 }
21431 arg1 = static_cast< wxEventType >(val1);
21432 }
21433 if (obj1) {
21434 ecode2 = SWIG_AsVal_int(obj1, &val2);
21435 if (!SWIG_IsOK(ecode2)) {
21436 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ChoicebookEvent" "', expected argument " "2"" of type '" "int""'");
21437 }
21438 arg2 = static_cast< int >(val2);
21439 }
21440 if (obj2) {
21441 ecode3 = SWIG_AsVal_int(obj2, &val3);
21442 if (!SWIG_IsOK(ecode3)) {
21443 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ChoicebookEvent" "', expected argument " "3"" of type '" "int""'");
21444 }
21445 arg3 = static_cast< int >(val3);
21446 }
21447 if (obj3) {
21448 ecode4 = SWIG_AsVal_int(obj3, &val4);
21449 if (!SWIG_IsOK(ecode4)) {
21450 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ChoicebookEvent" "', expected argument " "4"" of type '" "int""'");
21451 }
21452 arg4 = static_cast< int >(val4);
21453 }
21454 {
21455 PyThreadState* __tstate = wxPyBeginAllowThreads();
21456 result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4);
21457 wxPyEndAllowThreads(__tstate);
21458 if (PyErr_Occurred()) SWIG_fail;
21459 }
21460 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebookEvent, SWIG_POINTER_NEW | 0 );
21461 return resultobj;
21462 fail:
21463 return NULL;
21464 }
21465
21466
21467 SWIGINTERN PyObject *ChoicebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21468 PyObject *obj;
21469 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21470 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebookEvent, SWIG_NewClientData(obj));
21471 return SWIG_Py_Void();
21472 }
21473
21474 SWIGINTERN PyObject *ChoicebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21475 return SWIG_Python_InitShadowInstance(args);
21476 }
21477
21478 SWIGINTERN PyObject *_wrap_new_Treebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21479 PyObject *resultobj = 0;
21480 wxWindow *arg1 = (wxWindow *) 0 ;
21481 int arg2 ;
21482 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21483 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21484 wxSize const &arg4_defvalue = wxDefaultSize ;
21485 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21486 long arg5 = (long) wxBK_DEFAULT ;
21487 wxString const &arg6_defvalue = wxPyEmptyString ;
21488 wxString *arg6 = (wxString *) &arg6_defvalue ;
21489 wxTreebook *result = 0 ;
21490 void *argp1 = 0 ;
21491 int res1 = 0 ;
21492 int val2 ;
21493 int ecode2 = 0 ;
21494 wxPoint temp3 ;
21495 wxSize temp4 ;
21496 long val5 ;
21497 int ecode5 = 0 ;
21498 bool temp6 = false ;
21499 PyObject * obj0 = 0 ;
21500 PyObject * obj1 = 0 ;
21501 PyObject * obj2 = 0 ;
21502 PyObject * obj3 = 0 ;
21503 PyObject * obj4 = 0 ;
21504 PyObject * obj5 = 0 ;
21505 char * kwnames[] = {
21506 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21507 };
21508
21509 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Treebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21510 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21511 if (!SWIG_IsOK(res1)) {
21512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Treebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21513 }
21514 arg1 = reinterpret_cast< wxWindow * >(argp1);
21515 ecode2 = SWIG_AsVal_int(obj1, &val2);
21516 if (!SWIG_IsOK(ecode2)) {
21517 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Treebook" "', expected argument " "2"" of type '" "int""'");
21518 }
21519 arg2 = static_cast< int >(val2);
21520 if (obj2) {
21521 {
21522 arg3 = &temp3;
21523 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21524 }
21525 }
21526 if (obj3) {
21527 {
21528 arg4 = &temp4;
21529 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21530 }
21531 }
21532 if (obj4) {
21533 ecode5 = SWIG_AsVal_long(obj4, &val5);
21534 if (!SWIG_IsOK(ecode5)) {
21535 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Treebook" "', expected argument " "5"" of type '" "long""'");
21536 }
21537 arg5 = static_cast< long >(val5);
21538 }
21539 if (obj5) {
21540 {
21541 arg6 = wxString_in_helper(obj5);
21542 if (arg6 == NULL) SWIG_fail;
21543 temp6 = true;
21544 }
21545 }
21546 {
21547 if (!wxPyCheckForApp()) SWIG_fail;
21548 PyThreadState* __tstate = wxPyBeginAllowThreads();
21549 result = (wxTreebook *)new wxTreebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21550 wxPyEndAllowThreads(__tstate);
21551 if (PyErr_Occurred()) SWIG_fail;
21552 }
21553 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_NEW | 0 );
21554 {
21555 if (temp6)
21556 delete arg6;
21557 }
21558 return resultobj;
21559 fail:
21560 {
21561 if (temp6)
21562 delete arg6;
21563 }
21564 return NULL;
21565 }
21566
21567
21568 SWIGINTERN PyObject *_wrap_new_PreTreebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21569 PyObject *resultobj = 0;
21570 wxTreebook *result = 0 ;
21571
21572 if (!SWIG_Python_UnpackTuple(args,"new_PreTreebook",0,0,0)) SWIG_fail;
21573 {
21574 if (!wxPyCheckForApp()) SWIG_fail;
21575 PyThreadState* __tstate = wxPyBeginAllowThreads();
21576 result = (wxTreebook *)new wxTreebook();
21577 wxPyEndAllowThreads(__tstate);
21578 if (PyErr_Occurred()) SWIG_fail;
21579 }
21580 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_OWN | 0 );
21581 return resultobj;
21582 fail:
21583 return NULL;
21584 }
21585
21586
21587 SWIGINTERN PyObject *_wrap_Treebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21588 PyObject *resultobj = 0;
21589 wxTreebook *arg1 = (wxTreebook *) 0 ;
21590 wxWindow *arg2 = (wxWindow *) 0 ;
21591 int arg3 ;
21592 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21593 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21594 wxSize const &arg5_defvalue = wxDefaultSize ;
21595 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21596 long arg6 = (long) wxBK_DEFAULT ;
21597 wxString const &arg7_defvalue = wxPyEmptyString ;
21598 wxString *arg7 = (wxString *) &arg7_defvalue ;
21599 bool result;
21600 void *argp1 = 0 ;
21601 int res1 = 0 ;
21602 void *argp2 = 0 ;
21603 int res2 = 0 ;
21604 int val3 ;
21605 int ecode3 = 0 ;
21606 wxPoint temp4 ;
21607 wxSize temp5 ;
21608 long val6 ;
21609 int ecode6 = 0 ;
21610 bool temp7 = false ;
21611 PyObject * obj0 = 0 ;
21612 PyObject * obj1 = 0 ;
21613 PyObject * obj2 = 0 ;
21614 PyObject * obj3 = 0 ;
21615 PyObject * obj4 = 0 ;
21616 PyObject * obj5 = 0 ;
21617 PyObject * obj6 = 0 ;
21618 char * kwnames[] = {
21619 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21620 };
21621
21622 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Treebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21623 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21624 if (!SWIG_IsOK(res1)) {
21625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_Create" "', expected argument " "1"" of type '" "wxTreebook *""'");
21626 }
21627 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21628 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21629 if (!SWIG_IsOK(res2)) {
21630 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21631 }
21632 arg2 = reinterpret_cast< wxWindow * >(argp2);
21633 ecode3 = SWIG_AsVal_int(obj2, &val3);
21634 if (!SWIG_IsOK(ecode3)) {
21635 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_Create" "', expected argument " "3"" of type '" "int""'");
21636 }
21637 arg3 = static_cast< int >(val3);
21638 if (obj3) {
21639 {
21640 arg4 = &temp4;
21641 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21642 }
21643 }
21644 if (obj4) {
21645 {
21646 arg5 = &temp5;
21647 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21648 }
21649 }
21650 if (obj5) {
21651 ecode6 = SWIG_AsVal_long(obj5, &val6);
21652 if (!SWIG_IsOK(ecode6)) {
21653 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_Create" "', expected argument " "6"" of type '" "long""'");
21654 }
21655 arg6 = static_cast< long >(val6);
21656 }
21657 if (obj6) {
21658 {
21659 arg7 = wxString_in_helper(obj6);
21660 if (arg7 == NULL) SWIG_fail;
21661 temp7 = true;
21662 }
21663 }
21664 {
21665 PyThreadState* __tstate = wxPyBeginAllowThreads();
21666 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21667 wxPyEndAllowThreads(__tstate);
21668 if (PyErr_Occurred()) SWIG_fail;
21669 }
21670 {
21671 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21672 }
21673 {
21674 if (temp7)
21675 delete arg7;
21676 }
21677 return resultobj;
21678 fail:
21679 {
21680 if (temp7)
21681 delete arg7;
21682 }
21683 return NULL;
21684 }
21685
21686
21687 SWIGINTERN PyObject *_wrap_Treebook_InsertSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21688 PyObject *resultobj = 0;
21689 wxTreebook *arg1 = (wxTreebook *) 0 ;
21690 size_t arg2 ;
21691 wxWindow *arg3 = (wxWindow *) 0 ;
21692 wxString *arg4 = 0 ;
21693 bool arg5 = (bool) false ;
21694 int arg6 = (int) wxNOT_FOUND ;
21695 bool result;
21696 void *argp1 = 0 ;
21697 int res1 = 0 ;
21698 size_t val2 ;
21699 int ecode2 = 0 ;
21700 void *argp3 = 0 ;
21701 int res3 = 0 ;
21702 bool temp4 = false ;
21703 bool val5 ;
21704 int ecode5 = 0 ;
21705 int val6 ;
21706 int ecode6 = 0 ;
21707 PyObject * obj0 = 0 ;
21708 PyObject * obj1 = 0 ;
21709 PyObject * obj2 = 0 ;
21710 PyObject * obj3 = 0 ;
21711 PyObject * obj4 = 0 ;
21712 PyObject * obj5 = 0 ;
21713 char * kwnames[] = {
21714 (char *) "self",(char *) "pos",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21715 };
21716
21717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Treebook_InsertSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21719 if (!SWIG_IsOK(res1)) {
21720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_InsertSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21721 }
21722 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21723 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21724 if (!SWIG_IsOK(ecode2)) {
21725 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_InsertSubPage" "', expected argument " "2"" of type '" "size_t""'");
21726 }
21727 arg2 = static_cast< size_t >(val2);
21728 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
21729 if (!SWIG_IsOK(res3)) {
21730 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Treebook_InsertSubPage" "', expected argument " "3"" of type '" "wxWindow *""'");
21731 }
21732 arg3 = reinterpret_cast< wxWindow * >(argp3);
21733 {
21734 arg4 = wxString_in_helper(obj3);
21735 if (arg4 == NULL) SWIG_fail;
21736 temp4 = true;
21737 }
21738 if (obj4) {
21739 ecode5 = SWIG_AsVal_bool(obj4, &val5);
21740 if (!SWIG_IsOK(ecode5)) {
21741 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_InsertSubPage" "', expected argument " "5"" of type '" "bool""'");
21742 }
21743 arg5 = static_cast< bool >(val5);
21744 }
21745 if (obj5) {
21746 ecode6 = SWIG_AsVal_int(obj5, &val6);
21747 if (!SWIG_IsOK(ecode6)) {
21748 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_InsertSubPage" "', expected argument " "6"" of type '" "int""'");
21749 }
21750 arg6 = static_cast< int >(val6);
21751 }
21752 {
21753 PyThreadState* __tstate = wxPyBeginAllowThreads();
21754 result = (bool)(arg1)->InsertSubPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
21755 wxPyEndAllowThreads(__tstate);
21756 if (PyErr_Occurred()) SWIG_fail;
21757 }
21758 {
21759 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21760 }
21761 {
21762 if (temp4)
21763 delete arg4;
21764 }
21765 return resultobj;
21766 fail:
21767 {
21768 if (temp4)
21769 delete arg4;
21770 }
21771 return NULL;
21772 }
21773
21774
21775 SWIGINTERN PyObject *_wrap_Treebook_AddSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21776 PyObject *resultobj = 0;
21777 wxTreebook *arg1 = (wxTreebook *) 0 ;
21778 wxWindow *arg2 = (wxWindow *) 0 ;
21779 wxString *arg3 = 0 ;
21780 bool arg4 = (bool) false ;
21781 int arg5 = (int) wxNOT_FOUND ;
21782 bool result;
21783 void *argp1 = 0 ;
21784 int res1 = 0 ;
21785 void *argp2 = 0 ;
21786 int res2 = 0 ;
21787 bool temp3 = false ;
21788 bool val4 ;
21789 int ecode4 = 0 ;
21790 int val5 ;
21791 int ecode5 = 0 ;
21792 PyObject * obj0 = 0 ;
21793 PyObject * obj1 = 0 ;
21794 PyObject * obj2 = 0 ;
21795 PyObject * obj3 = 0 ;
21796 PyObject * obj4 = 0 ;
21797 char * kwnames[] = {
21798 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21799 };
21800
21801 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Treebook_AddSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
21802 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21803 if (!SWIG_IsOK(res1)) {
21804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_AddSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21805 }
21806 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21807 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21808 if (!SWIG_IsOK(res2)) {
21809 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_AddSubPage" "', expected argument " "2"" of type '" "wxWindow *""'");
21810 }
21811 arg2 = reinterpret_cast< wxWindow * >(argp2);
21812 {
21813 arg3 = wxString_in_helper(obj2);
21814 if (arg3 == NULL) SWIG_fail;
21815 temp3 = true;
21816 }
21817 if (obj3) {
21818 ecode4 = SWIG_AsVal_bool(obj3, &val4);
21819 if (!SWIG_IsOK(ecode4)) {
21820 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Treebook_AddSubPage" "', expected argument " "4"" of type '" "bool""'");
21821 }
21822 arg4 = static_cast< bool >(val4);
21823 }
21824 if (obj4) {
21825 ecode5 = SWIG_AsVal_int(obj4, &val5);
21826 if (!SWIG_IsOK(ecode5)) {
21827 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_AddSubPage" "', expected argument " "5"" of type '" "int""'");
21828 }
21829 arg5 = static_cast< int >(val5);
21830 }
21831 {
21832 PyThreadState* __tstate = wxPyBeginAllowThreads();
21833 result = (bool)(arg1)->AddSubPage(arg2,(wxString const &)*arg3,arg4,arg5);
21834 wxPyEndAllowThreads(__tstate);
21835 if (PyErr_Occurred()) SWIG_fail;
21836 }
21837 {
21838 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21839 }
21840 {
21841 if (temp3)
21842 delete arg3;
21843 }
21844 return resultobj;
21845 fail:
21846 {
21847 if (temp3)
21848 delete arg3;
21849 }
21850 return NULL;
21851 }
21852
21853
21854 SWIGINTERN PyObject *_wrap_Treebook_IsNodeExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21855 PyObject *resultobj = 0;
21856 wxTreebook *arg1 = (wxTreebook *) 0 ;
21857 size_t arg2 ;
21858 bool result;
21859 void *argp1 = 0 ;
21860 int res1 = 0 ;
21861 size_t val2 ;
21862 int ecode2 = 0 ;
21863 PyObject * obj0 = 0 ;
21864 PyObject * obj1 = 0 ;
21865 char * kwnames[] = {
21866 (char *) "self",(char *) "pos", NULL
21867 };
21868
21869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_IsNodeExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
21870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21871 if (!SWIG_IsOK(res1)) {
21872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "1"" of type '" "wxTreebook const *""'");
21873 }
21874 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21875 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21876 if (!SWIG_IsOK(ecode2)) {
21877 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "2"" of type '" "size_t""'");
21878 }
21879 arg2 = static_cast< size_t >(val2);
21880 {
21881 PyThreadState* __tstate = wxPyBeginAllowThreads();
21882 result = (bool)((wxTreebook const *)arg1)->IsNodeExpanded(arg2);
21883 wxPyEndAllowThreads(__tstate);
21884 if (PyErr_Occurred()) SWIG_fail;
21885 }
21886 {
21887 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21888 }
21889 return resultobj;
21890 fail:
21891 return NULL;
21892 }
21893
21894
21895 SWIGINTERN PyObject *_wrap_Treebook_ExpandNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21896 PyObject *resultobj = 0;
21897 wxTreebook *arg1 = (wxTreebook *) 0 ;
21898 size_t arg2 ;
21899 bool arg3 = (bool) true ;
21900 bool result;
21901 void *argp1 = 0 ;
21902 int res1 = 0 ;
21903 size_t val2 ;
21904 int ecode2 = 0 ;
21905 bool val3 ;
21906 int ecode3 = 0 ;
21907 PyObject * obj0 = 0 ;
21908 PyObject * obj1 = 0 ;
21909 PyObject * obj2 = 0 ;
21910 char * kwnames[] = {
21911 (char *) "self",(char *) "pos",(char *) "expand", NULL
21912 };
21913
21914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Treebook_ExpandNode",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21915 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21916 if (!SWIG_IsOK(res1)) {
21917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_ExpandNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
21918 }
21919 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21920 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21921 if (!SWIG_IsOK(ecode2)) {
21922 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_ExpandNode" "', expected argument " "2"" of type '" "size_t""'");
21923 }
21924 arg2 = static_cast< size_t >(val2);
21925 if (obj2) {
21926 ecode3 = SWIG_AsVal_bool(obj2, &val3);
21927 if (!SWIG_IsOK(ecode3)) {
21928 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_ExpandNode" "', expected argument " "3"" of type '" "bool""'");
21929 }
21930 arg3 = static_cast< bool >(val3);
21931 }
21932 {
21933 PyThreadState* __tstate = wxPyBeginAllowThreads();
21934 result = (bool)(arg1)->ExpandNode(arg2,arg3);
21935 wxPyEndAllowThreads(__tstate);
21936 if (PyErr_Occurred()) SWIG_fail;
21937 }
21938 {
21939 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21940 }
21941 return resultobj;
21942 fail:
21943 return NULL;
21944 }
21945
21946
21947 SWIGINTERN PyObject *_wrap_Treebook_CollapseNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21948 PyObject *resultobj = 0;
21949 wxTreebook *arg1 = (wxTreebook *) 0 ;
21950 size_t arg2 ;
21951 bool result;
21952 void *argp1 = 0 ;
21953 int res1 = 0 ;
21954 size_t val2 ;
21955 int ecode2 = 0 ;
21956 PyObject * obj0 = 0 ;
21957 PyObject * obj1 = 0 ;
21958 char * kwnames[] = {
21959 (char *) "self",(char *) "pos", NULL
21960 };
21961
21962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_CollapseNode",kwnames,&obj0,&obj1)) SWIG_fail;
21963 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21964 if (!SWIG_IsOK(res1)) {
21965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_CollapseNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
21966 }
21967 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21968 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21969 if (!SWIG_IsOK(ecode2)) {
21970 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_CollapseNode" "', expected argument " "2"" of type '" "size_t""'");
21971 }
21972 arg2 = static_cast< size_t >(val2);
21973 {
21974 PyThreadState* __tstate = wxPyBeginAllowThreads();
21975 result = (bool)(arg1)->CollapseNode(arg2);
21976 wxPyEndAllowThreads(__tstate);
21977 if (PyErr_Occurred()) SWIG_fail;
21978 }
21979 {
21980 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21981 }
21982 return resultobj;
21983 fail:
21984 return NULL;
21985 }
21986
21987
21988 SWIGINTERN PyObject *_wrap_Treebook_GetPageParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21989 PyObject *resultobj = 0;
21990 wxTreebook *arg1 = (wxTreebook *) 0 ;
21991 size_t arg2 ;
21992 int result;
21993 void *argp1 = 0 ;
21994 int res1 = 0 ;
21995 size_t val2 ;
21996 int ecode2 = 0 ;
21997 PyObject * obj0 = 0 ;
21998 PyObject * obj1 = 0 ;
21999 char * kwnames[] = {
22000 (char *) "self",(char *) "pos", NULL
22001 };
22002
22003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_GetPageParent",kwnames,&obj0,&obj1)) SWIG_fail;
22004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22005 if (!SWIG_IsOK(res1)) {
22006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetPageParent" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22007 }
22008 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22009 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22010 if (!SWIG_IsOK(ecode2)) {
22011 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_GetPageParent" "', expected argument " "2"" of type '" "size_t""'");
22012 }
22013 arg2 = static_cast< size_t >(val2);
22014 {
22015 PyThreadState* __tstate = wxPyBeginAllowThreads();
22016 result = (int)((wxTreebook const *)arg1)->GetPageParent(arg2);
22017 wxPyEndAllowThreads(__tstate);
22018 if (PyErr_Occurred()) SWIG_fail;
22019 }
22020 resultobj = SWIG_From_int(static_cast< int >(result));
22021 return resultobj;
22022 fail:
22023 return NULL;
22024 }
22025
22026
22027 SWIGINTERN PyObject *_wrap_Treebook_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22028 PyObject *resultobj = 0;
22029 wxTreebook *arg1 = (wxTreebook *) 0 ;
22030 wxTreeCtrl *result = 0 ;
22031 void *argp1 = 0 ;
22032 int res1 = 0 ;
22033 PyObject *swig_obj[1] ;
22034
22035 if (!args) SWIG_fail;
22036 swig_obj[0] = args;
22037 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22038 if (!SWIG_IsOK(res1)) {
22039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetTreeCtrl" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22040 }
22041 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22042 {
22043 PyThreadState* __tstate = wxPyBeginAllowThreads();
22044 result = (wxTreeCtrl *)((wxTreebook const *)arg1)->GetTreeCtrl();
22045 wxPyEndAllowThreads(__tstate);
22046 if (PyErr_Occurred()) SWIG_fail;
22047 }
22048 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeCtrl, 0 | 0 );
22049 return resultobj;
22050 fail:
22051 return NULL;
22052 }
22053
22054
22055 SWIGINTERN PyObject *Treebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22056 PyObject *obj;
22057 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22058 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebook, SWIG_NewClientData(obj));
22059 return SWIG_Py_Void();
22060 }
22061
22062 SWIGINTERN PyObject *Treebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22063 return SWIG_Python_InitShadowInstance(args);
22064 }
22065
22066 SWIGINTERN PyObject *_wrap_new_TreebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22067 PyObject *resultobj = 0;
22068 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22069 int arg2 = (int) 0 ;
22070 int arg3 = (int) wxNOT_FOUND ;
22071 int arg4 = (int) wxNOT_FOUND ;
22072 wxTreebookEvent *result = 0 ;
22073 int val1 ;
22074 int ecode1 = 0 ;
22075 int val2 ;
22076 int ecode2 = 0 ;
22077 int val3 ;
22078 int ecode3 = 0 ;
22079 int val4 ;
22080 int ecode4 = 0 ;
22081 PyObject * obj0 = 0 ;
22082 PyObject * obj1 = 0 ;
22083 PyObject * obj2 = 0 ;
22084 PyObject * obj3 = 0 ;
22085 char * kwnames[] = {
22086 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22087 };
22088
22089 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TreebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22090 if (obj0) {
22091 ecode1 = SWIG_AsVal_int(obj0, &val1);
22092 if (!SWIG_IsOK(ecode1)) {
22093 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22094 }
22095 arg1 = static_cast< wxEventType >(val1);
22096 }
22097 if (obj1) {
22098 ecode2 = SWIG_AsVal_int(obj1, &val2);
22099 if (!SWIG_IsOK(ecode2)) {
22100 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreebookEvent" "', expected argument " "2"" of type '" "int""'");
22101 }
22102 arg2 = static_cast< int >(val2);
22103 }
22104 if (obj2) {
22105 ecode3 = SWIG_AsVal_int(obj2, &val3);
22106 if (!SWIG_IsOK(ecode3)) {
22107 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TreebookEvent" "', expected argument " "3"" of type '" "int""'");
22108 }
22109 arg3 = static_cast< int >(val3);
22110 }
22111 if (obj3) {
22112 ecode4 = SWIG_AsVal_int(obj3, &val4);
22113 if (!SWIG_IsOK(ecode4)) {
22114 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TreebookEvent" "', expected argument " "4"" of type '" "int""'");
22115 }
22116 arg4 = static_cast< int >(val4);
22117 }
22118 {
22119 PyThreadState* __tstate = wxPyBeginAllowThreads();
22120 result = (wxTreebookEvent *)new wxTreebookEvent(arg1,arg2,arg3,arg4);
22121 wxPyEndAllowThreads(__tstate);
22122 if (PyErr_Occurred()) SWIG_fail;
22123 }
22124 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebookEvent, SWIG_POINTER_NEW | 0 );
22125 return resultobj;
22126 fail:
22127 return NULL;
22128 }
22129
22130
22131 SWIGINTERN PyObject *TreebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22132 PyObject *obj;
22133 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22134 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebookEvent, SWIG_NewClientData(obj));
22135 return SWIG_Py_Void();
22136 }
22137
22138 SWIGINTERN PyObject *TreebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22139 return SWIG_Python_InitShadowInstance(args);
22140 }
22141
22142 SWIGINTERN PyObject *_wrap_new_Toolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22143 PyObject *resultobj = 0;
22144 wxWindow *arg1 = (wxWindow *) 0 ;
22145 int arg2 ;
22146 wxPoint const &arg3_defvalue = wxDefaultPosition ;
22147 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
22148 wxSize const &arg4_defvalue = wxDefaultSize ;
22149 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
22150 long arg5 = (long) wxBK_DEFAULT ;
22151 wxString const &arg6_defvalue = wxPyEmptyString ;
22152 wxString *arg6 = (wxString *) &arg6_defvalue ;
22153 wxToolbook *result = 0 ;
22154 void *argp1 = 0 ;
22155 int res1 = 0 ;
22156 int val2 ;
22157 int ecode2 = 0 ;
22158 wxPoint temp3 ;
22159 wxSize temp4 ;
22160 long val5 ;
22161 int ecode5 = 0 ;
22162 bool temp6 = false ;
22163 PyObject * obj0 = 0 ;
22164 PyObject * obj1 = 0 ;
22165 PyObject * obj2 = 0 ;
22166 PyObject * obj3 = 0 ;
22167 PyObject * obj4 = 0 ;
22168 PyObject * obj5 = 0 ;
22169 char * kwnames[] = {
22170 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22171 };
22172
22173 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Toolbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22174 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
22175 if (!SWIG_IsOK(res1)) {
22176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Toolbook" "', expected argument " "1"" of type '" "wxWindow *""'");
22177 }
22178 arg1 = reinterpret_cast< wxWindow * >(argp1);
22179 ecode2 = SWIG_AsVal_int(obj1, &val2);
22180 if (!SWIG_IsOK(ecode2)) {
22181 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Toolbook" "', expected argument " "2"" of type '" "int""'");
22182 }
22183 arg2 = static_cast< int >(val2);
22184 if (obj2) {
22185 {
22186 arg3 = &temp3;
22187 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
22188 }
22189 }
22190 if (obj3) {
22191 {
22192 arg4 = &temp4;
22193 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
22194 }
22195 }
22196 if (obj4) {
22197 ecode5 = SWIG_AsVal_long(obj4, &val5);
22198 if (!SWIG_IsOK(ecode5)) {
22199 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Toolbook" "', expected argument " "5"" of type '" "long""'");
22200 }
22201 arg5 = static_cast< long >(val5);
22202 }
22203 if (obj5) {
22204 {
22205 arg6 = wxString_in_helper(obj5);
22206 if (arg6 == NULL) SWIG_fail;
22207 temp6 = true;
22208 }
22209 }
22210 {
22211 PyThreadState* __tstate = wxPyBeginAllowThreads();
22212 result = (wxToolbook *)new wxToolbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
22213 wxPyEndAllowThreads(__tstate);
22214 if (PyErr_Occurred()) SWIG_fail;
22215 }
22216 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_NEW | 0 );
22217 {
22218 if (temp6)
22219 delete arg6;
22220 }
22221 return resultobj;
22222 fail:
22223 {
22224 if (temp6)
22225 delete arg6;
22226 }
22227 return NULL;
22228 }
22229
22230
22231 SWIGINTERN PyObject *_wrap_new_PreToolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22232 PyObject *resultobj = 0;
22233 wxToolbook *result = 0 ;
22234
22235 if (!SWIG_Python_UnpackTuple(args,"new_PreToolbook",0,0,0)) SWIG_fail;
22236 {
22237 PyThreadState* __tstate = wxPyBeginAllowThreads();
22238 result = (wxToolbook *)new wxToolbook();
22239 wxPyEndAllowThreads(__tstate);
22240 if (PyErr_Occurred()) SWIG_fail;
22241 }
22242 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_OWN | 0 );
22243 return resultobj;
22244 fail:
22245 return NULL;
22246 }
22247
22248
22249 SWIGINTERN PyObject *_wrap_Toolbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22250 PyObject *resultobj = 0;
22251 wxToolbook *arg1 = (wxToolbook *) 0 ;
22252 wxWindow *arg2 = (wxWindow *) 0 ;
22253 int arg3 ;
22254 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22255 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22256 wxSize const &arg5_defvalue = wxDefaultSize ;
22257 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22258 long arg6 = (long) 0 ;
22259 wxString const &arg7_defvalue = wxEmptyString ;
22260 wxString *arg7 = (wxString *) &arg7_defvalue ;
22261 bool result;
22262 void *argp1 = 0 ;
22263 int res1 = 0 ;
22264 void *argp2 = 0 ;
22265 int res2 = 0 ;
22266 int val3 ;
22267 int ecode3 = 0 ;
22268 wxPoint temp4 ;
22269 wxSize temp5 ;
22270 long val6 ;
22271 int ecode6 = 0 ;
22272 bool temp7 = false ;
22273 PyObject * obj0 = 0 ;
22274 PyObject * obj1 = 0 ;
22275 PyObject * obj2 = 0 ;
22276 PyObject * obj3 = 0 ;
22277 PyObject * obj4 = 0 ;
22278 PyObject * obj5 = 0 ;
22279 PyObject * obj6 = 0 ;
22280 char * kwnames[] = {
22281 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22282 };
22283
22284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Toolbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22286 if (!SWIG_IsOK(res1)) {
22287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Create" "', expected argument " "1"" of type '" "wxToolbook *""'");
22288 }
22289 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22290 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22291 if (!SWIG_IsOK(res2)) {
22292 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Toolbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
22293 }
22294 arg2 = reinterpret_cast< wxWindow * >(argp2);
22295 ecode3 = SWIG_AsVal_int(obj2, &val3);
22296 if (!SWIG_IsOK(ecode3)) {
22297 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Toolbook_Create" "', expected argument " "3"" of type '" "int""'");
22298 }
22299 arg3 = static_cast< int >(val3);
22300 if (obj3) {
22301 {
22302 arg4 = &temp4;
22303 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
22304 }
22305 }
22306 if (obj4) {
22307 {
22308 arg5 = &temp5;
22309 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
22310 }
22311 }
22312 if (obj5) {
22313 ecode6 = SWIG_AsVal_long(obj5, &val6);
22314 if (!SWIG_IsOK(ecode6)) {
22315 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Toolbook_Create" "', expected argument " "6"" of type '" "long""'");
22316 }
22317 arg6 = static_cast< long >(val6);
22318 }
22319 if (obj6) {
22320 {
22321 arg7 = wxString_in_helper(obj6);
22322 if (arg7 == NULL) SWIG_fail;
22323 temp7 = true;
22324 }
22325 }
22326 {
22327 PyThreadState* __tstate = wxPyBeginAllowThreads();
22328 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22329 wxPyEndAllowThreads(__tstate);
22330 if (PyErr_Occurred()) SWIG_fail;
22331 }
22332 {
22333 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22334 }
22335 {
22336 if (temp7)
22337 delete arg7;
22338 }
22339 return resultobj;
22340 fail:
22341 {
22342 if (temp7)
22343 delete arg7;
22344 }
22345 return NULL;
22346 }
22347
22348
22349 SWIGINTERN PyObject *_wrap_Toolbook_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22350 PyObject *resultobj = 0;
22351 wxToolbook *arg1 = (wxToolbook *) 0 ;
22352 wxToolBarBase *result = 0 ;
22353 void *argp1 = 0 ;
22354 int res1 = 0 ;
22355 PyObject *swig_obj[1] ;
22356
22357 if (!args) SWIG_fail;
22358 swig_obj[0] = args;
22359 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22360 if (!SWIG_IsOK(res1)) {
22361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_GetToolBar" "', expected argument " "1"" of type '" "wxToolbook const *""'");
22362 }
22363 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22364 {
22365 PyThreadState* __tstate = wxPyBeginAllowThreads();
22366 result = (wxToolBarBase *)((wxToolbook const *)arg1)->GetToolBar();
22367 wxPyEndAllowThreads(__tstate);
22368 if (PyErr_Occurred()) SWIG_fail;
22369 }
22370 {
22371 resultobj = wxPyMake_wxObject(result, (bool)0);
22372 }
22373 return resultobj;
22374 fail:
22375 return NULL;
22376 }
22377
22378
22379 SWIGINTERN PyObject *_wrap_Toolbook_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22380 PyObject *resultobj = 0;
22381 wxToolbook *arg1 = (wxToolbook *) 0 ;
22382 void *argp1 = 0 ;
22383 int res1 = 0 ;
22384 PyObject *swig_obj[1] ;
22385
22386 if (!args) SWIG_fail;
22387 swig_obj[0] = args;
22388 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22389 if (!SWIG_IsOK(res1)) {
22390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Realize" "', expected argument " "1"" of type '" "wxToolbook *""'");
22391 }
22392 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22393 {
22394 PyThreadState* __tstate = wxPyBeginAllowThreads();
22395 (arg1)->Realize();
22396 wxPyEndAllowThreads(__tstate);
22397 if (PyErr_Occurred()) SWIG_fail;
22398 }
22399 resultobj = SWIG_Py_Void();
22400 return resultobj;
22401 fail:
22402 return NULL;
22403 }
22404
22405
22406 SWIGINTERN PyObject *Toolbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22407 PyObject *obj;
22408 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22409 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbook, SWIG_NewClientData(obj));
22410 return SWIG_Py_Void();
22411 }
22412
22413 SWIGINTERN PyObject *Toolbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22414 return SWIG_Python_InitShadowInstance(args);
22415 }
22416
22417 SWIGINTERN PyObject *_wrap_new_ToolbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22418 PyObject *resultobj = 0;
22419 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22420 int arg2 = (int) 0 ;
22421 int arg3 = (int) wxNOT_FOUND ;
22422 int arg4 = (int) wxNOT_FOUND ;
22423 wxToolbookEvent *result = 0 ;
22424 int val1 ;
22425 int ecode1 = 0 ;
22426 int val2 ;
22427 int ecode2 = 0 ;
22428 int val3 ;
22429 int ecode3 = 0 ;
22430 int val4 ;
22431 int ecode4 = 0 ;
22432 PyObject * obj0 = 0 ;
22433 PyObject * obj1 = 0 ;
22434 PyObject * obj2 = 0 ;
22435 PyObject * obj3 = 0 ;
22436 char * kwnames[] = {
22437 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22438 };
22439
22440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ToolbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22441 if (obj0) {
22442 ecode1 = SWIG_AsVal_int(obj0, &val1);
22443 if (!SWIG_IsOK(ecode1)) {
22444 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ToolbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22445 }
22446 arg1 = static_cast< wxEventType >(val1);
22447 }
22448 if (obj1) {
22449 ecode2 = SWIG_AsVal_int(obj1, &val2);
22450 if (!SWIG_IsOK(ecode2)) {
22451 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolbookEvent" "', expected argument " "2"" of type '" "int""'");
22452 }
22453 arg2 = static_cast< int >(val2);
22454 }
22455 if (obj2) {
22456 ecode3 = SWIG_AsVal_int(obj2, &val3);
22457 if (!SWIG_IsOK(ecode3)) {
22458 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ToolbookEvent" "', expected argument " "3"" of type '" "int""'");
22459 }
22460 arg3 = static_cast< int >(val3);
22461 }
22462 if (obj3) {
22463 ecode4 = SWIG_AsVal_int(obj3, &val4);
22464 if (!SWIG_IsOK(ecode4)) {
22465 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ToolbookEvent" "', expected argument " "4"" of type '" "int""'");
22466 }
22467 arg4 = static_cast< int >(val4);
22468 }
22469 {
22470 PyThreadState* __tstate = wxPyBeginAllowThreads();
22471 result = (wxToolbookEvent *)new wxToolbookEvent(arg1,arg2,arg3,arg4);
22472 wxPyEndAllowThreads(__tstate);
22473 if (PyErr_Occurred()) SWIG_fail;
22474 }
22475 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbookEvent, SWIG_POINTER_NEW | 0 );
22476 return resultobj;
22477 fail:
22478 return NULL;
22479 }
22480
22481
22482 SWIGINTERN PyObject *ToolbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22483 PyObject *obj;
22484 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22485 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbookEvent, SWIG_NewClientData(obj));
22486 return SWIG_Py_Void();
22487 }
22488
22489 SWIGINTERN PyObject *ToolbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22490 return SWIG_Python_InitShadowInstance(args);
22491 }
22492
22493 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22494 PyObject *resultobj = 0;
22495 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22496 int result;
22497 void *argp1 = 0 ;
22498 int res1 = 0 ;
22499 PyObject *swig_obj[1] ;
22500
22501 if (!args) SWIG_fail;
22502 swig_obj[0] = args;
22503 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22504 if (!SWIG_IsOK(res1)) {
22505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetId" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22506 }
22507 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22508 {
22509 PyThreadState* __tstate = wxPyBeginAllowThreads();
22510 result = (int)(arg1)->GetId();
22511 wxPyEndAllowThreads(__tstate);
22512 if (PyErr_Occurred()) SWIG_fail;
22513 }
22514 resultobj = SWIG_From_int(static_cast< int >(result));
22515 return resultobj;
22516 fail:
22517 return NULL;
22518 }
22519
22520
22521 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22522 PyObject *resultobj = 0;
22523 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22524 wxControl *result = 0 ;
22525 void *argp1 = 0 ;
22526 int res1 = 0 ;
22527 PyObject *swig_obj[1] ;
22528
22529 if (!args) SWIG_fail;
22530 swig_obj[0] = args;
22531 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22532 if (!SWIG_IsOK(res1)) {
22533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22534 }
22535 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22536 {
22537 PyThreadState* __tstate = wxPyBeginAllowThreads();
22538 result = (wxControl *)(arg1)->GetControl();
22539 wxPyEndAllowThreads(__tstate);
22540 if (PyErr_Occurred()) SWIG_fail;
22541 }
22542 {
22543 resultobj = wxPyMake_wxObject(result, 0);
22544 }
22545 return resultobj;
22546 fail:
22547 return NULL;
22548 }
22549
22550
22551 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22552 PyObject *resultobj = 0;
22553 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22554 wxToolBarBase *result = 0 ;
22555 void *argp1 = 0 ;
22556 int res1 = 0 ;
22557 PyObject *swig_obj[1] ;
22558
22559 if (!args) SWIG_fail;
22560 swig_obj[0] = args;
22561 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22562 if (!SWIG_IsOK(res1)) {
22563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetToolBar" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22564 }
22565 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22566 {
22567 PyThreadState* __tstate = wxPyBeginAllowThreads();
22568 result = (wxToolBarBase *)(arg1)->GetToolBar();
22569 wxPyEndAllowThreads(__tstate);
22570 if (PyErr_Occurred()) SWIG_fail;
22571 }
22572 {
22573 resultobj = wxPyMake_wxObject(result, (bool)0);
22574 }
22575 return resultobj;
22576 fail:
22577 return NULL;
22578 }
22579
22580
22581 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22582 PyObject *resultobj = 0;
22583 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22584 int result;
22585 void *argp1 = 0 ;
22586 int res1 = 0 ;
22587 PyObject *swig_obj[1] ;
22588
22589 if (!args) SWIG_fail;
22590 swig_obj[0] = args;
22591 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22592 if (!SWIG_IsOK(res1)) {
22593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsButton" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22594 }
22595 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22596 {
22597 PyThreadState* __tstate = wxPyBeginAllowThreads();
22598 result = (int)(arg1)->IsButton();
22599 wxPyEndAllowThreads(__tstate);
22600 if (PyErr_Occurred()) SWIG_fail;
22601 }
22602 resultobj = SWIG_From_int(static_cast< int >(result));
22603 return resultobj;
22604 fail:
22605 return NULL;
22606 }
22607
22608
22609 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22610 PyObject *resultobj = 0;
22611 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22612 int result;
22613 void *argp1 = 0 ;
22614 int res1 = 0 ;
22615 PyObject *swig_obj[1] ;
22616
22617 if (!args) SWIG_fail;
22618 swig_obj[0] = args;
22619 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22620 if (!SWIG_IsOK(res1)) {
22621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22622 }
22623 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22624 {
22625 PyThreadState* __tstate = wxPyBeginAllowThreads();
22626 result = (int)(arg1)->IsControl();
22627 wxPyEndAllowThreads(__tstate);
22628 if (PyErr_Occurred()) SWIG_fail;
22629 }
22630 resultobj = SWIG_From_int(static_cast< int >(result));
22631 return resultobj;
22632 fail:
22633 return NULL;
22634 }
22635
22636
22637 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22638 PyObject *resultobj = 0;
22639 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22640 int result;
22641 void *argp1 = 0 ;
22642 int res1 = 0 ;
22643 PyObject *swig_obj[1] ;
22644
22645 if (!args) SWIG_fail;
22646 swig_obj[0] = args;
22647 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22648 if (!SWIG_IsOK(res1)) {
22649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsSeparator" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22650 }
22651 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22652 {
22653 PyThreadState* __tstate = wxPyBeginAllowThreads();
22654 result = (int)(arg1)->IsSeparator();
22655 wxPyEndAllowThreads(__tstate);
22656 if (PyErr_Occurred()) SWIG_fail;
22657 }
22658 resultobj = SWIG_From_int(static_cast< int >(result));
22659 return resultobj;
22660 fail:
22661 return NULL;
22662 }
22663
22664
22665 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22666 PyObject *resultobj = 0;
22667 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22668 int result;
22669 void *argp1 = 0 ;
22670 int res1 = 0 ;
22671 PyObject *swig_obj[1] ;
22672
22673 if (!args) SWIG_fail;
22674 swig_obj[0] = args;
22675 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22676 if (!SWIG_IsOK(res1)) {
22677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetStyle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22678 }
22679 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22680 {
22681 PyThreadState* __tstate = wxPyBeginAllowThreads();
22682 result = (int)(arg1)->GetStyle();
22683 wxPyEndAllowThreads(__tstate);
22684 if (PyErr_Occurred()) SWIG_fail;
22685 }
22686 resultobj = SWIG_From_int(static_cast< int >(result));
22687 return resultobj;
22688 fail:
22689 return NULL;
22690 }
22691
22692
22693 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22694 PyObject *resultobj = 0;
22695 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22696 wxItemKind result;
22697 void *argp1 = 0 ;
22698 int res1 = 0 ;
22699 PyObject *swig_obj[1] ;
22700
22701 if (!args) SWIG_fail;
22702 swig_obj[0] = args;
22703 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22704 if (!SWIG_IsOK(res1)) {
22705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetKind" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22706 }
22707 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22708 {
22709 PyThreadState* __tstate = wxPyBeginAllowThreads();
22710 result = (wxItemKind)(arg1)->GetKind();
22711 wxPyEndAllowThreads(__tstate);
22712 if (PyErr_Occurred()) SWIG_fail;
22713 }
22714 resultobj = SWIG_From_int(static_cast< int >(result));
22715 return resultobj;
22716 fail:
22717 return NULL;
22718 }
22719
22720
22721 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22722 PyObject *resultobj = 0;
22723 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22724 bool result;
22725 void *argp1 = 0 ;
22726 int res1 = 0 ;
22727 PyObject *swig_obj[1] ;
22728
22729 if (!args) SWIG_fail;
22730 swig_obj[0] = args;
22731 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22732 if (!SWIG_IsOK(res1)) {
22733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsEnabled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22734 }
22735 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22736 {
22737 PyThreadState* __tstate = wxPyBeginAllowThreads();
22738 result = (bool)(arg1)->IsEnabled();
22739 wxPyEndAllowThreads(__tstate);
22740 if (PyErr_Occurred()) SWIG_fail;
22741 }
22742 {
22743 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22744 }
22745 return resultobj;
22746 fail:
22747 return NULL;
22748 }
22749
22750
22751 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22752 PyObject *resultobj = 0;
22753 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22754 bool result;
22755 void *argp1 = 0 ;
22756 int res1 = 0 ;
22757 PyObject *swig_obj[1] ;
22758
22759 if (!args) SWIG_fail;
22760 swig_obj[0] = args;
22761 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22762 if (!SWIG_IsOK(res1)) {
22763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22764 }
22765 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22766 {
22767 PyThreadState* __tstate = wxPyBeginAllowThreads();
22768 result = (bool)(arg1)->IsToggled();
22769 wxPyEndAllowThreads(__tstate);
22770 if (PyErr_Occurred()) SWIG_fail;
22771 }
22772 {
22773 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22774 }
22775 return resultobj;
22776 fail:
22777 return NULL;
22778 }
22779
22780
22781 SWIGINTERN PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22782 PyObject *resultobj = 0;
22783 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22784 bool result;
22785 void *argp1 = 0 ;
22786 int res1 = 0 ;
22787 PyObject *swig_obj[1] ;
22788
22789 if (!args) SWIG_fail;
22790 swig_obj[0] = args;
22791 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22792 if (!SWIG_IsOK(res1)) {
22793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_CanBeToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22794 }
22795 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22796 {
22797 PyThreadState* __tstate = wxPyBeginAllowThreads();
22798 result = (bool)(arg1)->CanBeToggled();
22799 wxPyEndAllowThreads(__tstate);
22800 if (PyErr_Occurred()) SWIG_fail;
22801 }
22802 {
22803 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22804 }
22805 return resultobj;
22806 fail:
22807 return NULL;
22808 }
22809
22810
22811 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22812 PyObject *resultobj = 0;
22813 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22814 wxBitmap *result = 0 ;
22815 void *argp1 = 0 ;
22816 int res1 = 0 ;
22817 PyObject *swig_obj[1] ;
22818
22819 if (!args) SWIG_fail;
22820 swig_obj[0] = args;
22821 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22822 if (!SWIG_IsOK(res1)) {
22823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22824 }
22825 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22826 {
22827 PyThreadState* __tstate = wxPyBeginAllowThreads();
22828 {
22829 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
22830 result = (wxBitmap *) &_result_ref;
22831 }
22832 wxPyEndAllowThreads(__tstate);
22833 if (PyErr_Occurred()) SWIG_fail;
22834 }
22835 {
22836 wxBitmap* resultptr = new wxBitmap(*result);
22837 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
22838 }
22839 return resultobj;
22840 fail:
22841 return NULL;
22842 }
22843
22844
22845 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22846 PyObject *resultobj = 0;
22847 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22848 wxBitmap *result = 0 ;
22849 void *argp1 = 0 ;
22850 int res1 = 0 ;
22851 PyObject *swig_obj[1] ;
22852
22853 if (!args) SWIG_fail;
22854 swig_obj[0] = args;
22855 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22856 if (!SWIG_IsOK(res1)) {
22857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22858 }
22859 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22860 {
22861 PyThreadState* __tstate = wxPyBeginAllowThreads();
22862 {
22863 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
22864 result = (wxBitmap *) &_result_ref;
22865 }
22866 wxPyEndAllowThreads(__tstate);
22867 if (PyErr_Occurred()) SWIG_fail;
22868 }
22869 {
22870 wxBitmap* resultptr = new wxBitmap(*result);
22871 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
22872 }
22873 return resultobj;
22874 fail:
22875 return NULL;
22876 }
22877
22878
22879 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22880 PyObject *resultobj = 0;
22881 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22882 wxBitmap result;
22883 void *argp1 = 0 ;
22884 int res1 = 0 ;
22885 PyObject *swig_obj[1] ;
22886
22887 if (!args) SWIG_fail;
22888 swig_obj[0] = args;
22889 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22890 if (!SWIG_IsOK(res1)) {
22891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22892 }
22893 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22894 {
22895 PyThreadState* __tstate = wxPyBeginAllowThreads();
22896 result = (arg1)->GetBitmap();
22897 wxPyEndAllowThreads(__tstate);
22898 if (PyErr_Occurred()) SWIG_fail;
22899 }
22900 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
22901 return resultobj;
22902 fail:
22903 return NULL;
22904 }
22905
22906
22907 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22908 PyObject *resultobj = 0;
22909 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22910 wxString result;
22911 void *argp1 = 0 ;
22912 int res1 = 0 ;
22913 PyObject *swig_obj[1] ;
22914
22915 if (!args) SWIG_fail;
22916 swig_obj[0] = args;
22917 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22918 if (!SWIG_IsOK(res1)) {
22919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22920 }
22921 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22922 {
22923 PyThreadState* __tstate = wxPyBeginAllowThreads();
22924 result = (arg1)->GetLabel();
22925 wxPyEndAllowThreads(__tstate);
22926 if (PyErr_Occurred()) SWIG_fail;
22927 }
22928 {
22929 #if wxUSE_UNICODE
22930 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22931 #else
22932 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22933 #endif
22934 }
22935 return resultobj;
22936 fail:
22937 return NULL;
22938 }
22939
22940
22941 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22942 PyObject *resultobj = 0;
22943 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22944 wxString result;
22945 void *argp1 = 0 ;
22946 int res1 = 0 ;
22947 PyObject *swig_obj[1] ;
22948
22949 if (!args) SWIG_fail;
22950 swig_obj[0] = args;
22951 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22952 if (!SWIG_IsOK(res1)) {
22953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22954 }
22955 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22956 {
22957 PyThreadState* __tstate = wxPyBeginAllowThreads();
22958 result = (arg1)->GetShortHelp();
22959 wxPyEndAllowThreads(__tstate);
22960 if (PyErr_Occurred()) SWIG_fail;
22961 }
22962 {
22963 #if wxUSE_UNICODE
22964 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22965 #else
22966 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22967 #endif
22968 }
22969 return resultobj;
22970 fail:
22971 return NULL;
22972 }
22973
22974
22975 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22976 PyObject *resultobj = 0;
22977 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22978 wxString result;
22979 void *argp1 = 0 ;
22980 int res1 = 0 ;
22981 PyObject *swig_obj[1] ;
22982
22983 if (!args) SWIG_fail;
22984 swig_obj[0] = args;
22985 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22986 if (!SWIG_IsOK(res1)) {
22987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22988 }
22989 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22990 {
22991 PyThreadState* __tstate = wxPyBeginAllowThreads();
22992 result = (arg1)->GetLongHelp();
22993 wxPyEndAllowThreads(__tstate);
22994 if (PyErr_Occurred()) SWIG_fail;
22995 }
22996 {
22997 #if wxUSE_UNICODE
22998 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22999 #else
23000 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23001 #endif
23002 }
23003 return resultobj;
23004 fail:
23005 return NULL;
23006 }
23007
23008
23009 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23010 PyObject *resultobj = 0;
23011 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23012 bool arg2 ;
23013 bool result;
23014 void *argp1 = 0 ;
23015 int res1 = 0 ;
23016 bool val2 ;
23017 int ecode2 = 0 ;
23018 PyObject * obj0 = 0 ;
23019 PyObject * obj1 = 0 ;
23020 char * kwnames[] = {
23021 (char *) "self",(char *) "enable", NULL
23022 };
23023
23024 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) SWIG_fail;
23025 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23026 if (!SWIG_IsOK(res1)) {
23027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Enable" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23028 }
23029 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23030 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23031 if (!SWIG_IsOK(ecode2)) {
23032 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_Enable" "', expected argument " "2"" of type '" "bool""'");
23033 }
23034 arg2 = static_cast< bool >(val2);
23035 {
23036 PyThreadState* __tstate = wxPyBeginAllowThreads();
23037 result = (bool)(arg1)->Enable(arg2);
23038 wxPyEndAllowThreads(__tstate);
23039 if (PyErr_Occurred()) SWIG_fail;
23040 }
23041 {
23042 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23043 }
23044 return resultobj;
23045 fail:
23046 return NULL;
23047 }
23048
23049
23050 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23051 PyObject *resultobj = 0;
23052 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23053 void *argp1 = 0 ;
23054 int res1 = 0 ;
23055 PyObject *swig_obj[1] ;
23056
23057 if (!args) SWIG_fail;
23058 swig_obj[0] = args;
23059 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23060 if (!SWIG_IsOK(res1)) {
23061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Toggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23062 }
23063 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23064 {
23065 PyThreadState* __tstate = wxPyBeginAllowThreads();
23066 (arg1)->Toggle();
23067 wxPyEndAllowThreads(__tstate);
23068 if (PyErr_Occurred()) SWIG_fail;
23069 }
23070 resultobj = SWIG_Py_Void();
23071 return resultobj;
23072 fail:
23073 return NULL;
23074 }
23075
23076
23077 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23078 PyObject *resultobj = 0;
23079 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23080 bool arg2 ;
23081 bool result;
23082 void *argp1 = 0 ;
23083 int res1 = 0 ;
23084 bool val2 ;
23085 int ecode2 = 0 ;
23086 PyObject * obj0 = 0 ;
23087 PyObject * obj1 = 0 ;
23088 char * kwnames[] = {
23089 (char *) "self",(char *) "toggle", NULL
23090 };
23091
23092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) SWIG_fail;
23093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23094 if (!SWIG_IsOK(res1)) {
23095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23096 }
23097 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23098 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23099 if (!SWIG_IsOK(ecode2)) {
23100 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "2"" of type '" "bool""'");
23101 }
23102 arg2 = static_cast< bool >(val2);
23103 {
23104 PyThreadState* __tstate = wxPyBeginAllowThreads();
23105 result = (bool)(arg1)->SetToggle(arg2);
23106 wxPyEndAllowThreads(__tstate);
23107 if (PyErr_Occurred()) SWIG_fail;
23108 }
23109 {
23110 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23111 }
23112 return resultobj;
23113 fail:
23114 return NULL;
23115 }
23116
23117
23118 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23119 PyObject *resultobj = 0;
23120 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23121 wxString *arg2 = 0 ;
23122 bool result;
23123 void *argp1 = 0 ;
23124 int res1 = 0 ;
23125 bool temp2 = false ;
23126 PyObject * obj0 = 0 ;
23127 PyObject * obj1 = 0 ;
23128 char * kwnames[] = {
23129 (char *) "self",(char *) "help", NULL
23130 };
23131
23132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23134 if (!SWIG_IsOK(res1)) {
23135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23136 }
23137 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23138 {
23139 arg2 = wxString_in_helper(obj1);
23140 if (arg2 == NULL) SWIG_fail;
23141 temp2 = true;
23142 }
23143 {
23144 PyThreadState* __tstate = wxPyBeginAllowThreads();
23145 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
23146 wxPyEndAllowThreads(__tstate);
23147 if (PyErr_Occurred()) SWIG_fail;
23148 }
23149 {
23150 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23151 }
23152 {
23153 if (temp2)
23154 delete arg2;
23155 }
23156 return resultobj;
23157 fail:
23158 {
23159 if (temp2)
23160 delete arg2;
23161 }
23162 return NULL;
23163 }
23164
23165
23166 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23167 PyObject *resultobj = 0;
23168 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23169 wxString *arg2 = 0 ;
23170 bool result;
23171 void *argp1 = 0 ;
23172 int res1 = 0 ;
23173 bool temp2 = false ;
23174 PyObject * obj0 = 0 ;
23175 PyObject * obj1 = 0 ;
23176 char * kwnames[] = {
23177 (char *) "self",(char *) "help", NULL
23178 };
23179
23180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23182 if (!SWIG_IsOK(res1)) {
23183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23184 }
23185 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23186 {
23187 arg2 = wxString_in_helper(obj1);
23188 if (arg2 == NULL) SWIG_fail;
23189 temp2 = true;
23190 }
23191 {
23192 PyThreadState* __tstate = wxPyBeginAllowThreads();
23193 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
23194 wxPyEndAllowThreads(__tstate);
23195 if (PyErr_Occurred()) SWIG_fail;
23196 }
23197 {
23198 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23199 }
23200 {
23201 if (temp2)
23202 delete arg2;
23203 }
23204 return resultobj;
23205 fail:
23206 {
23207 if (temp2)
23208 delete arg2;
23209 }
23210 return NULL;
23211 }
23212
23213
23214 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23215 PyObject *resultobj = 0;
23216 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23217 wxBitmap *arg2 = 0 ;
23218 void *argp1 = 0 ;
23219 int res1 = 0 ;
23220 void *argp2 = 0 ;
23221 int res2 = 0 ;
23222 PyObject * obj0 = 0 ;
23223 PyObject * obj1 = 0 ;
23224 char * kwnames[] = {
23225 (char *) "self",(char *) "bmp", NULL
23226 };
23227
23228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23229 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23230 if (!SWIG_IsOK(res1)) {
23231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23232 }
23233 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23234 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23235 if (!SWIG_IsOK(res2)) {
23236 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23237 }
23238 if (!argp2) {
23239 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23240 }
23241 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23242 {
23243 PyThreadState* __tstate = wxPyBeginAllowThreads();
23244 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
23245 wxPyEndAllowThreads(__tstate);
23246 if (PyErr_Occurred()) SWIG_fail;
23247 }
23248 resultobj = SWIG_Py_Void();
23249 return resultobj;
23250 fail:
23251 return NULL;
23252 }
23253
23254
23255 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23256 PyObject *resultobj = 0;
23257 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23258 wxBitmap *arg2 = 0 ;
23259 void *argp1 = 0 ;
23260 int res1 = 0 ;
23261 void *argp2 = 0 ;
23262 int res2 = 0 ;
23263 PyObject * obj0 = 0 ;
23264 PyObject * obj1 = 0 ;
23265 char * kwnames[] = {
23266 (char *) "self",(char *) "bmp", NULL
23267 };
23268
23269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23270 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23271 if (!SWIG_IsOK(res1)) {
23272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23273 }
23274 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23275 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23276 if (!SWIG_IsOK(res2)) {
23277 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23278 }
23279 if (!argp2) {
23280 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23281 }
23282 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23283 {
23284 PyThreadState* __tstate = wxPyBeginAllowThreads();
23285 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
23286 wxPyEndAllowThreads(__tstate);
23287 if (PyErr_Occurred()) SWIG_fail;
23288 }
23289 resultobj = SWIG_Py_Void();
23290 return resultobj;
23291 fail:
23292 return NULL;
23293 }
23294
23295
23296 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23297 PyObject *resultobj = 0;
23298 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23299 wxString *arg2 = 0 ;
23300 void *argp1 = 0 ;
23301 int res1 = 0 ;
23302 bool temp2 = false ;
23303 PyObject * obj0 = 0 ;
23304 PyObject * obj1 = 0 ;
23305 char * kwnames[] = {
23306 (char *) "self",(char *) "label", NULL
23307 };
23308
23309 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
23310 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23311 if (!SWIG_IsOK(res1)) {
23312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23313 }
23314 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23315 {
23316 arg2 = wxString_in_helper(obj1);
23317 if (arg2 == NULL) SWIG_fail;
23318 temp2 = true;
23319 }
23320 {
23321 PyThreadState* __tstate = wxPyBeginAllowThreads();
23322 (arg1)->SetLabel((wxString const &)*arg2);
23323 wxPyEndAllowThreads(__tstate);
23324 if (PyErr_Occurred()) SWIG_fail;
23325 }
23326 resultobj = SWIG_Py_Void();
23327 {
23328 if (temp2)
23329 delete arg2;
23330 }
23331 return resultobj;
23332 fail:
23333 {
23334 if (temp2)
23335 delete arg2;
23336 }
23337 return NULL;
23338 }
23339
23340
23341 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23342 PyObject *resultobj = 0;
23343 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23344 void *argp1 = 0 ;
23345 int res1 = 0 ;
23346 PyObject *swig_obj[1] ;
23347
23348 if (!args) SWIG_fail;
23349 swig_obj[0] = args;
23350 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23351 if (!SWIG_IsOK(res1)) {
23352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Detach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23353 }
23354 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23355 {
23356 PyThreadState* __tstate = wxPyBeginAllowThreads();
23357 (arg1)->Detach();
23358 wxPyEndAllowThreads(__tstate);
23359 if (PyErr_Occurred()) SWIG_fail;
23360 }
23361 resultobj = SWIG_Py_Void();
23362 return resultobj;
23363 fail:
23364 return NULL;
23365 }
23366
23367
23368 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23369 PyObject *resultobj = 0;
23370 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23371 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
23372 void *argp1 = 0 ;
23373 int res1 = 0 ;
23374 void *argp2 = 0 ;
23375 int res2 = 0 ;
23376 PyObject * obj0 = 0 ;
23377 PyObject * obj1 = 0 ;
23378 char * kwnames[] = {
23379 (char *) "self",(char *) "tbar", NULL
23380 };
23381
23382 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) SWIG_fail;
23383 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23384 if (!SWIG_IsOK(res1)) {
23385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Attach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23386 }
23387 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23388 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23389 if (!SWIG_IsOK(res2)) {
23390 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_Attach" "', expected argument " "2"" of type '" "wxToolBarBase *""'");
23391 }
23392 arg2 = reinterpret_cast< wxToolBarBase * >(argp2);
23393 {
23394 PyThreadState* __tstate = wxPyBeginAllowThreads();
23395 (arg1)->Attach(arg2);
23396 wxPyEndAllowThreads(__tstate);
23397 if (PyErr_Occurred()) SWIG_fail;
23398 }
23399 resultobj = SWIG_Py_Void();
23400 return resultobj;
23401 fail:
23402 return NULL;
23403 }
23404
23405
23406 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23407 PyObject *resultobj = 0;
23408 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23409 PyObject *result = 0 ;
23410 void *argp1 = 0 ;
23411 int res1 = 0 ;
23412 PyObject *swig_obj[1] ;
23413
23414 if (!args) SWIG_fail;
23415 swig_obj[0] = args;
23416 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23417 if (!SWIG_IsOK(res1)) {
23418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23419 }
23420 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23421 {
23422 PyThreadState* __tstate = wxPyBeginAllowThreads();
23423 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
23424 wxPyEndAllowThreads(__tstate);
23425 if (PyErr_Occurred()) SWIG_fail;
23426 }
23427 resultobj = result;
23428 return resultobj;
23429 fail:
23430 return NULL;
23431 }
23432
23433
23434 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23435 PyObject *resultobj = 0;
23436 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23437 PyObject *arg2 = (PyObject *) 0 ;
23438 void *argp1 = 0 ;
23439 int res1 = 0 ;
23440 PyObject * obj0 = 0 ;
23441 PyObject * obj1 = 0 ;
23442 char * kwnames[] = {
23443 (char *) "self",(char *) "clientData", NULL
23444 };
23445
23446 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) SWIG_fail;
23447 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23448 if (!SWIG_IsOK(res1)) {
23449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23450 }
23451 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23452 arg2 = obj1;
23453 {
23454 PyThreadState* __tstate = wxPyBeginAllowThreads();
23455 wxToolBarToolBase_SetClientData(arg1,arg2);
23456 wxPyEndAllowThreads(__tstate);
23457 if (PyErr_Occurred()) SWIG_fail;
23458 }
23459 resultobj = SWIG_Py_Void();
23460 return resultobj;
23461 fail:
23462 return NULL;
23463 }
23464
23465
23466 SWIGINTERN PyObject *ToolBarToolBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23467 PyObject *obj;
23468 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23469 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarToolBase, SWIG_NewClientData(obj));
23470 return SWIG_Py_Void();
23471 }
23472
23473 SWIGINTERN PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23474 PyObject *resultobj = 0;
23475 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23476 int arg2 ;
23477 wxString *arg3 = 0 ;
23478 wxBitmap *arg4 = 0 ;
23479 wxBitmap const &arg5_defvalue = wxNullBitmap ;
23480 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
23481 wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ;
23482 wxString const &arg7_defvalue = wxPyEmptyString ;
23483 wxString *arg7 = (wxString *) &arg7_defvalue ;
23484 wxString const &arg8_defvalue = wxPyEmptyString ;
23485 wxString *arg8 = (wxString *) &arg8_defvalue ;
23486 PyObject *arg9 = (PyObject *) NULL ;
23487 wxToolBarToolBase *result = 0 ;
23488 void *argp1 = 0 ;
23489 int res1 = 0 ;
23490 int val2 ;
23491 int ecode2 = 0 ;
23492 bool temp3 = false ;
23493 void *argp4 = 0 ;
23494 int res4 = 0 ;
23495 void *argp5 = 0 ;
23496 int res5 = 0 ;
23497 int val6 ;
23498 int ecode6 = 0 ;
23499 bool temp7 = false ;
23500 bool temp8 = false ;
23501 PyObject * obj0 = 0 ;
23502 PyObject * obj1 = 0 ;
23503 PyObject * obj2 = 0 ;
23504 PyObject * obj3 = 0 ;
23505 PyObject * obj4 = 0 ;
23506 PyObject * obj5 = 0 ;
23507 PyObject * obj6 = 0 ;
23508 PyObject * obj7 = 0 ;
23509 PyObject * obj8 = 0 ;
23510 char * kwnames[] = {
23511 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23512 };
23513
23514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
23515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23516 if (!SWIG_IsOK(res1)) {
23517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23518 }
23519 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23520 ecode2 = SWIG_AsVal_int(obj1, &val2);
23521 if (!SWIG_IsOK(ecode2)) {
23522 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "2"" of type '" "int""'");
23523 }
23524 arg2 = static_cast< int >(val2);
23525 {
23526 arg3 = wxString_in_helper(obj2);
23527 if (arg3 == NULL) SWIG_fail;
23528 temp3 = true;
23529 }
23530 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
23531 if (!SWIG_IsOK(res4)) {
23532 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23533 }
23534 if (!argp4) {
23535 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23536 }
23537 arg4 = reinterpret_cast< wxBitmap * >(argp4);
23538 if (obj4) {
23539 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23540 if (!SWIG_IsOK(res5)) {
23541 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23542 }
23543 if (!argp5) {
23544 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23545 }
23546 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23547 }
23548 if (obj5) {
23549 ecode6 = SWIG_AsVal_int(obj5, &val6);
23550 if (!SWIG_IsOK(ecode6)) {
23551 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "6"" of type '" "wxItemKind""'");
23552 }
23553 arg6 = static_cast< wxItemKind >(val6);
23554 }
23555 if (obj6) {
23556 {
23557 arg7 = wxString_in_helper(obj6);
23558 if (arg7 == NULL) SWIG_fail;
23559 temp7 = true;
23560 }
23561 }
23562 if (obj7) {
23563 {
23564 arg8 = wxString_in_helper(obj7);
23565 if (arg8 == NULL) SWIG_fail;
23566 temp8 = true;
23567 }
23568 }
23569 if (obj8) {
23570 arg9 = obj8;
23571 }
23572 {
23573 PyThreadState* __tstate = wxPyBeginAllowThreads();
23574 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
23575 wxPyEndAllowThreads(__tstate);
23576 if (PyErr_Occurred()) SWIG_fail;
23577 }
23578 {
23579 resultobj = wxPyMake_wxObject(result, (bool)0);
23580 }
23581 {
23582 if (temp3)
23583 delete arg3;
23584 }
23585 {
23586 if (temp7)
23587 delete arg7;
23588 }
23589 {
23590 if (temp8)
23591 delete arg8;
23592 }
23593 return resultobj;
23594 fail:
23595 {
23596 if (temp3)
23597 delete arg3;
23598 }
23599 {
23600 if (temp7)
23601 delete arg7;
23602 }
23603 {
23604 if (temp8)
23605 delete arg8;
23606 }
23607 return NULL;
23608 }
23609
23610
23611 SWIGINTERN PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23612 PyObject *resultobj = 0;
23613 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23614 size_t arg2 ;
23615 int arg3 ;
23616 wxString *arg4 = 0 ;
23617 wxBitmap *arg5 = 0 ;
23618 wxBitmap const &arg6_defvalue = wxNullBitmap ;
23619 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
23620 wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ;
23621 wxString const &arg8_defvalue = wxPyEmptyString ;
23622 wxString *arg8 = (wxString *) &arg8_defvalue ;
23623 wxString const &arg9_defvalue = wxPyEmptyString ;
23624 wxString *arg9 = (wxString *) &arg9_defvalue ;
23625 PyObject *arg10 = (PyObject *) NULL ;
23626 wxToolBarToolBase *result = 0 ;
23627 void *argp1 = 0 ;
23628 int res1 = 0 ;
23629 size_t val2 ;
23630 int ecode2 = 0 ;
23631 int val3 ;
23632 int ecode3 = 0 ;
23633 bool temp4 = false ;
23634 void *argp5 = 0 ;
23635 int res5 = 0 ;
23636 void *argp6 = 0 ;
23637 int res6 = 0 ;
23638 int val7 ;
23639 int ecode7 = 0 ;
23640 bool temp8 = false ;
23641 bool temp9 = false ;
23642 PyObject * obj0 = 0 ;
23643 PyObject * obj1 = 0 ;
23644 PyObject * obj2 = 0 ;
23645 PyObject * obj3 = 0 ;
23646 PyObject * obj4 = 0 ;
23647 PyObject * obj5 = 0 ;
23648 PyObject * obj6 = 0 ;
23649 PyObject * obj7 = 0 ;
23650 PyObject * obj8 = 0 ;
23651 PyObject * obj9 = 0 ;
23652 char * kwnames[] = {
23653 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23654 };
23655
23656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
23657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23658 if (!SWIG_IsOK(res1)) {
23659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23660 }
23661 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23662 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23663 if (!SWIG_IsOK(ecode2)) {
23664 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "2"" of type '" "size_t""'");
23665 }
23666 arg2 = static_cast< size_t >(val2);
23667 ecode3 = SWIG_AsVal_int(obj2, &val3);
23668 if (!SWIG_IsOK(ecode3)) {
23669 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "3"" of type '" "int""'");
23670 }
23671 arg3 = static_cast< int >(val3);
23672 {
23673 arg4 = wxString_in_helper(obj3);
23674 if (arg4 == NULL) SWIG_fail;
23675 temp4 = true;
23676 }
23677 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23678 if (!SWIG_IsOK(res5)) {
23679 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23680 }
23681 if (!argp5) {
23682 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23683 }
23684 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23685 if (obj5) {
23686 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxBitmap, 0 | 0);
23687 if (!SWIG_IsOK(res6)) {
23688 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
23689 }
23690 if (!argp6) {
23691 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
23692 }
23693 arg6 = reinterpret_cast< wxBitmap * >(argp6);
23694 }
23695 if (obj6) {
23696 ecode7 = SWIG_AsVal_int(obj6, &val7);
23697 if (!SWIG_IsOK(ecode7)) {
23698 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "7"" of type '" "wxItemKind""'");
23699 }
23700 arg7 = static_cast< wxItemKind >(val7);
23701 }
23702 if (obj7) {
23703 {
23704 arg8 = wxString_in_helper(obj7);
23705 if (arg8 == NULL) SWIG_fail;
23706 temp8 = true;
23707 }
23708 }
23709 if (obj8) {
23710 {
23711 arg9 = wxString_in_helper(obj8);
23712 if (arg9 == NULL) SWIG_fail;
23713 temp9 = true;
23714 }
23715 }
23716 if (obj9) {
23717 arg10 = obj9;
23718 }
23719 {
23720 PyThreadState* __tstate = wxPyBeginAllowThreads();
23721 result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10);
23722 wxPyEndAllowThreads(__tstate);
23723 if (PyErr_Occurred()) SWIG_fail;
23724 }
23725 {
23726 resultobj = wxPyMake_wxObject(result, (bool)0);
23727 }
23728 {
23729 if (temp4)
23730 delete arg4;
23731 }
23732 {
23733 if (temp8)
23734 delete arg8;
23735 }
23736 {
23737 if (temp9)
23738 delete arg9;
23739 }
23740 return resultobj;
23741 fail:
23742 {
23743 if (temp4)
23744 delete arg4;
23745 }
23746 {
23747 if (temp8)
23748 delete arg8;
23749 }
23750 {
23751 if (temp9)
23752 delete arg9;
23753 }
23754 return NULL;
23755 }
23756
23757
23758 SWIGINTERN PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23759 PyObject *resultobj = 0;
23760 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23761 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
23762 wxToolBarToolBase *result = 0 ;
23763 void *argp1 = 0 ;
23764 int res1 = 0 ;
23765 void *argp2 = 0 ;
23766 int res2 = 0 ;
23767 PyObject * obj0 = 0 ;
23768 PyObject * obj1 = 0 ;
23769 char * kwnames[] = {
23770 (char *) "self",(char *) "tool", NULL
23771 };
23772
23773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) SWIG_fail;
23774 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23775 if (!SWIG_IsOK(res1)) {
23776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23777 }
23778 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23779 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23780 if (!SWIG_IsOK(res2)) {
23781 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "2"" of type '" "wxToolBarToolBase *""'");
23782 }
23783 arg2 = reinterpret_cast< wxToolBarToolBase * >(argp2);
23784 {
23785 PyThreadState* __tstate = wxPyBeginAllowThreads();
23786 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
23787 wxPyEndAllowThreads(__tstate);
23788 if (PyErr_Occurred()) SWIG_fail;
23789 }
23790 {
23791 resultobj = wxPyMake_wxObject(result, (bool)0);
23792 }
23793 return resultobj;
23794 fail:
23795 return NULL;
23796 }
23797
23798
23799 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23800 PyObject *resultobj = 0;
23801 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23802 size_t arg2 ;
23803 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
23804 wxToolBarToolBase *result = 0 ;
23805 void *argp1 = 0 ;
23806 int res1 = 0 ;
23807 size_t val2 ;
23808 int ecode2 = 0 ;
23809 void *argp3 = 0 ;
23810 int res3 = 0 ;
23811 PyObject * obj0 = 0 ;
23812 PyObject * obj1 = 0 ;
23813 PyObject * obj2 = 0 ;
23814 char * kwnames[] = {
23815 (char *) "self",(char *) "pos",(char *) "tool", NULL
23816 };
23817
23818 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23819 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23820 if (!SWIG_IsOK(res1)) {
23821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23822 }
23823 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23824 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23825 if (!SWIG_IsOK(ecode2)) {
23826 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "2"" of type '" "size_t""'");
23827 }
23828 arg2 = static_cast< size_t >(val2);
23829 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23830 if (!SWIG_IsOK(res3)) {
23831 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "3"" of type '" "wxToolBarToolBase *""'");
23832 }
23833 arg3 = reinterpret_cast< wxToolBarToolBase * >(argp3);
23834 {
23835 PyThreadState* __tstate = wxPyBeginAllowThreads();
23836 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
23837 wxPyEndAllowThreads(__tstate);
23838 if (PyErr_Occurred()) SWIG_fail;
23839 }
23840 {
23841 resultobj = wxPyMake_wxObject(result, (bool)0);
23842 }
23843 return resultobj;
23844 fail:
23845 return NULL;
23846 }
23847
23848
23849 SWIGINTERN PyObject *_wrap_ToolBarBase_AddControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23850 PyObject *resultobj = 0;
23851 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23852 wxControl *arg2 = (wxControl *) 0 ;
23853 wxToolBarToolBase *result = 0 ;
23854 void *argp1 = 0 ;
23855 int res1 = 0 ;
23856 void *argp2 = 0 ;
23857 int res2 = 0 ;
23858 PyObject * obj0 = 0 ;
23859 PyObject * obj1 = 0 ;
23860 char * kwnames[] = {
23861 (char *) "self",(char *) "control", NULL
23862 };
23863
23864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) SWIG_fail;
23865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23866 if (!SWIG_IsOK(res1)) {
23867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23868 }
23869 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23870 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxControl, 0 | 0 );
23871 if (!SWIG_IsOK(res2)) {
23872 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddControl" "', expected argument " "2"" of type '" "wxControl *""'");
23873 }
23874 arg2 = reinterpret_cast< wxControl * >(argp2);
23875 {
23876 PyThreadState* __tstate = wxPyBeginAllowThreads();
23877 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
23878 wxPyEndAllowThreads(__tstate);
23879 if (PyErr_Occurred()) SWIG_fail;
23880 }
23881 {
23882 resultobj = wxPyMake_wxObject(result, (bool)0);
23883 }
23884 return resultobj;
23885 fail:
23886 return NULL;
23887 }
23888
23889
23890 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23891 PyObject *resultobj = 0;
23892 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23893 size_t arg2 ;
23894 wxControl *arg3 = (wxControl *) 0 ;
23895 wxToolBarToolBase *result = 0 ;
23896 void *argp1 = 0 ;
23897 int res1 = 0 ;
23898 size_t val2 ;
23899 int ecode2 = 0 ;
23900 void *argp3 = 0 ;
23901 int res3 = 0 ;
23902 PyObject * obj0 = 0 ;
23903 PyObject * obj1 = 0 ;
23904 PyObject * obj2 = 0 ;
23905 char * kwnames[] = {
23906 (char *) "self",(char *) "pos",(char *) "control", NULL
23907 };
23908
23909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23910 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23911 if (!SWIG_IsOK(res1)) {
23912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23913 }
23914 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23915 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23916 if (!SWIG_IsOK(ecode2)) {
23917 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertControl" "', expected argument " "2"" of type '" "size_t""'");
23918 }
23919 arg2 = static_cast< size_t >(val2);
23920 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxControl, 0 | 0 );
23921 if (!SWIG_IsOK(res3)) {
23922 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertControl" "', expected argument " "3"" of type '" "wxControl *""'");
23923 }
23924 arg3 = reinterpret_cast< wxControl * >(argp3);
23925 {
23926 PyThreadState* __tstate = wxPyBeginAllowThreads();
23927 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
23928 wxPyEndAllowThreads(__tstate);
23929 if (PyErr_Occurred()) SWIG_fail;
23930 }
23931 {
23932 resultobj = wxPyMake_wxObject(result, (bool)0);
23933 }
23934 return resultobj;
23935 fail:
23936 return NULL;
23937 }
23938
23939
23940 SWIGINTERN PyObject *_wrap_ToolBarBase_FindControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23941 PyObject *resultobj = 0;
23942 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23943 int arg2 ;
23944 wxControl *result = 0 ;
23945 void *argp1 = 0 ;
23946 int res1 = 0 ;
23947 int val2 ;
23948 int ecode2 = 0 ;
23949 PyObject * obj0 = 0 ;
23950 PyObject * obj1 = 0 ;
23951 char * kwnames[] = {
23952 (char *) "self",(char *) "id", NULL
23953 };
23954
23955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) SWIG_fail;
23956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23957 if (!SWIG_IsOK(res1)) {
23958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23959 }
23960 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23961 ecode2 = SWIG_AsVal_int(obj1, &val2);
23962 if (!SWIG_IsOK(ecode2)) {
23963 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindControl" "', expected argument " "2"" of type '" "int""'");
23964 }
23965 arg2 = static_cast< int >(val2);
23966 {
23967 PyThreadState* __tstate = wxPyBeginAllowThreads();
23968 result = (wxControl *)(arg1)->FindControl(arg2);
23969 wxPyEndAllowThreads(__tstate);
23970 if (PyErr_Occurred()) SWIG_fail;
23971 }
23972 {
23973 resultobj = wxPyMake_wxObject(result, 0);
23974 }
23975 return resultobj;
23976 fail:
23977 return NULL;
23978 }
23979
23980
23981 SWIGINTERN PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23982 PyObject *resultobj = 0;
23983 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23984 wxToolBarToolBase *result = 0 ;
23985 void *argp1 = 0 ;
23986 int res1 = 0 ;
23987 PyObject *swig_obj[1] ;
23988
23989 if (!args) SWIG_fail;
23990 swig_obj[0] = args;
23991 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23992 if (!SWIG_IsOK(res1)) {
23993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23994 }
23995 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23996 {
23997 PyThreadState* __tstate = wxPyBeginAllowThreads();
23998 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
23999 wxPyEndAllowThreads(__tstate);
24000 if (PyErr_Occurred()) SWIG_fail;
24001 }
24002 {
24003 resultobj = wxPyMake_wxObject(result, (bool)0);
24004 }
24005 return resultobj;
24006 fail:
24007 return NULL;
24008 }
24009
24010
24011 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24012 PyObject *resultobj = 0;
24013 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24014 size_t arg2 ;
24015 wxToolBarToolBase *result = 0 ;
24016 void *argp1 = 0 ;
24017 int res1 = 0 ;
24018 size_t val2 ;
24019 int ecode2 = 0 ;
24020 PyObject * obj0 = 0 ;
24021 PyObject * obj1 = 0 ;
24022 char * kwnames[] = {
24023 (char *) "self",(char *) "pos", NULL
24024 };
24025
24026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) SWIG_fail;
24027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24028 if (!SWIG_IsOK(res1)) {
24029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24030 }
24031 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24032 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24033 if (!SWIG_IsOK(ecode2)) {
24034 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "2"" of type '" "size_t""'");
24035 }
24036 arg2 = static_cast< size_t >(val2);
24037 {
24038 PyThreadState* __tstate = wxPyBeginAllowThreads();
24039 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
24040 wxPyEndAllowThreads(__tstate);
24041 if (PyErr_Occurred()) SWIG_fail;
24042 }
24043 {
24044 resultobj = wxPyMake_wxObject(result, (bool)0);
24045 }
24046 return resultobj;
24047 fail:
24048 return NULL;
24049 }
24050
24051
24052 SWIGINTERN PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24053 PyObject *resultobj = 0;
24054 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24055 int arg2 ;
24056 wxToolBarToolBase *result = 0 ;
24057 void *argp1 = 0 ;
24058 int res1 = 0 ;
24059 int val2 ;
24060 int ecode2 = 0 ;
24061 PyObject * obj0 = 0 ;
24062 PyObject * obj1 = 0 ;
24063 char * kwnames[] = {
24064 (char *) "self",(char *) "id", NULL
24065 };
24066
24067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) SWIG_fail;
24068 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24069 if (!SWIG_IsOK(res1)) {
24070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24071 }
24072 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24073 ecode2 = SWIG_AsVal_int(obj1, &val2);
24074 if (!SWIG_IsOK(ecode2)) {
24075 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "2"" of type '" "int""'");
24076 }
24077 arg2 = static_cast< int >(val2);
24078 {
24079 PyThreadState* __tstate = wxPyBeginAllowThreads();
24080 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
24081 wxPyEndAllowThreads(__tstate);
24082 if (PyErr_Occurred()) SWIG_fail;
24083 }
24084 {
24085 resultobj = wxPyMake_wxObject(result, (bool)0);
24086 }
24087 return resultobj;
24088 fail:
24089 return NULL;
24090 }
24091
24092
24093 SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24094 PyObject *resultobj = 0;
24095 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24096 size_t arg2 ;
24097 bool result;
24098 void *argp1 = 0 ;
24099 int res1 = 0 ;
24100 size_t val2 ;
24101 int ecode2 = 0 ;
24102 PyObject * obj0 = 0 ;
24103 PyObject * obj1 = 0 ;
24104 char * kwnames[] = {
24105 (char *) "self",(char *) "pos", NULL
24106 };
24107
24108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) SWIG_fail;
24109 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24110 if (!SWIG_IsOK(res1)) {
24111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24112 }
24113 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24114 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24115 if (!SWIG_IsOK(ecode2)) {
24116 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "2"" of type '" "size_t""'");
24117 }
24118 arg2 = static_cast< size_t >(val2);
24119 {
24120 PyThreadState* __tstate = wxPyBeginAllowThreads();
24121 result = (bool)(arg1)->DeleteToolByPos(arg2);
24122 wxPyEndAllowThreads(__tstate);
24123 if (PyErr_Occurred()) SWIG_fail;
24124 }
24125 {
24126 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24127 }
24128 return resultobj;
24129 fail:
24130 return NULL;
24131 }
24132
24133
24134 SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24135 PyObject *resultobj = 0;
24136 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24137 int arg2 ;
24138 bool result;
24139 void *argp1 = 0 ;
24140 int res1 = 0 ;
24141 int val2 ;
24142 int ecode2 = 0 ;
24143 PyObject * obj0 = 0 ;
24144 PyObject * obj1 = 0 ;
24145 char * kwnames[] = {
24146 (char *) "self",(char *) "id", NULL
24147 };
24148
24149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) SWIG_fail;
24150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24151 if (!SWIG_IsOK(res1)) {
24152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24153 }
24154 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24155 ecode2 = SWIG_AsVal_int(obj1, &val2);
24156 if (!SWIG_IsOK(ecode2)) {
24157 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "2"" of type '" "int""'");
24158 }
24159 arg2 = static_cast< int >(val2);
24160 {
24161 PyThreadState* __tstate = wxPyBeginAllowThreads();
24162 result = (bool)(arg1)->DeleteTool(arg2);
24163 wxPyEndAllowThreads(__tstate);
24164 if (PyErr_Occurred()) SWIG_fail;
24165 }
24166 {
24167 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24168 }
24169 return resultobj;
24170 fail:
24171 return NULL;
24172 }
24173
24174
24175 SWIGINTERN PyObject *_wrap_ToolBarBase_ClearTools(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24176 PyObject *resultobj = 0;
24177 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24178 void *argp1 = 0 ;
24179 int res1 = 0 ;
24180 PyObject *swig_obj[1] ;
24181
24182 if (!args) SWIG_fail;
24183 swig_obj[0] = args;
24184 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24185 if (!SWIG_IsOK(res1)) {
24186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ClearTools" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24187 }
24188 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24189 {
24190 PyThreadState* __tstate = wxPyBeginAllowThreads();
24191 (arg1)->ClearTools();
24192 wxPyEndAllowThreads(__tstate);
24193 if (PyErr_Occurred()) SWIG_fail;
24194 }
24195 resultobj = SWIG_Py_Void();
24196 return resultobj;
24197 fail:
24198 return NULL;
24199 }
24200
24201
24202 SWIGINTERN PyObject *_wrap_ToolBarBase_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24203 PyObject *resultobj = 0;
24204 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24205 bool result;
24206 void *argp1 = 0 ;
24207 int res1 = 0 ;
24208 PyObject *swig_obj[1] ;
24209
24210 if (!args) SWIG_fail;
24211 swig_obj[0] = args;
24212 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24213 if (!SWIG_IsOK(res1)) {
24214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_Realize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24215 }
24216 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24217 {
24218 PyThreadState* __tstate = wxPyBeginAllowThreads();
24219 result = (bool)(arg1)->Realize();
24220 wxPyEndAllowThreads(__tstate);
24221 if (PyErr_Occurred()) SWIG_fail;
24222 }
24223 {
24224 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24225 }
24226 return resultobj;
24227 fail:
24228 return NULL;
24229 }
24230
24231
24232 SWIGINTERN PyObject *_wrap_ToolBarBase_EnableTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24233 PyObject *resultobj = 0;
24234 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24235 int arg2 ;
24236 bool arg3 ;
24237 void *argp1 = 0 ;
24238 int res1 = 0 ;
24239 int val2 ;
24240 int ecode2 = 0 ;
24241 bool val3 ;
24242 int ecode3 = 0 ;
24243 PyObject * obj0 = 0 ;
24244 PyObject * obj1 = 0 ;
24245 PyObject * obj2 = 0 ;
24246 char * kwnames[] = {
24247 (char *) "self",(char *) "id",(char *) "enable", NULL
24248 };
24249
24250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24252 if (!SWIG_IsOK(res1)) {
24253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_EnableTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24254 }
24255 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24256 ecode2 = SWIG_AsVal_int(obj1, &val2);
24257 if (!SWIG_IsOK(ecode2)) {
24258 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_EnableTool" "', expected argument " "2"" of type '" "int""'");
24259 }
24260 arg2 = static_cast< int >(val2);
24261 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24262 if (!SWIG_IsOK(ecode3)) {
24263 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_EnableTool" "', expected argument " "3"" of type '" "bool""'");
24264 }
24265 arg3 = static_cast< bool >(val3);
24266 {
24267 PyThreadState* __tstate = wxPyBeginAllowThreads();
24268 (arg1)->EnableTool(arg2,arg3);
24269 wxPyEndAllowThreads(__tstate);
24270 if (PyErr_Occurred()) SWIG_fail;
24271 }
24272 resultobj = SWIG_Py_Void();
24273 return resultobj;
24274 fail:
24275 return NULL;
24276 }
24277
24278
24279 SWIGINTERN PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24280 PyObject *resultobj = 0;
24281 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24282 int arg2 ;
24283 bool arg3 ;
24284 void *argp1 = 0 ;
24285 int res1 = 0 ;
24286 int val2 ;
24287 int ecode2 = 0 ;
24288 bool val3 ;
24289 int ecode3 = 0 ;
24290 PyObject * obj0 = 0 ;
24291 PyObject * obj1 = 0 ;
24292 PyObject * obj2 = 0 ;
24293 char * kwnames[] = {
24294 (char *) "self",(char *) "id",(char *) "toggle", NULL
24295 };
24296
24297 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24298 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24299 if (!SWIG_IsOK(res1)) {
24300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24301 }
24302 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24303 ecode2 = SWIG_AsVal_int(obj1, &val2);
24304 if (!SWIG_IsOK(ecode2)) {
24305 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "2"" of type '" "int""'");
24306 }
24307 arg2 = static_cast< int >(val2);
24308 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24309 if (!SWIG_IsOK(ecode3)) {
24310 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "3"" of type '" "bool""'");
24311 }
24312 arg3 = static_cast< bool >(val3);
24313 {
24314 PyThreadState* __tstate = wxPyBeginAllowThreads();
24315 (arg1)->ToggleTool(arg2,arg3);
24316 wxPyEndAllowThreads(__tstate);
24317 if (PyErr_Occurred()) SWIG_fail;
24318 }
24319 resultobj = SWIG_Py_Void();
24320 return resultobj;
24321 fail:
24322 return NULL;
24323 }
24324
24325
24326 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24327 PyObject *resultobj = 0;
24328 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24329 int arg2 ;
24330 bool arg3 ;
24331 void *argp1 = 0 ;
24332 int res1 = 0 ;
24333 int val2 ;
24334 int ecode2 = 0 ;
24335 bool val3 ;
24336 int ecode3 = 0 ;
24337 PyObject * obj0 = 0 ;
24338 PyObject * obj1 = 0 ;
24339 PyObject * obj2 = 0 ;
24340 char * kwnames[] = {
24341 (char *) "self",(char *) "id",(char *) "toggle", NULL
24342 };
24343
24344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) 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_SetToggle" "', 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_SetToggle" "', expected argument " "2"" of type '" "int""'");
24353 }
24354 arg2 = static_cast< int >(val2);
24355 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24356 if (!SWIG_IsOK(ecode3)) {
24357 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetToggle" "', expected argument " "3"" of type '" "bool""'");
24358 }
24359 arg3 = static_cast< bool >(val3);
24360 {
24361 PyThreadState* __tstate = wxPyBeginAllowThreads();
24362 (arg1)->SetToggle(arg2,arg3);
24363 wxPyEndAllowThreads(__tstate);
24364 if (PyErr_Occurred()) SWIG_fail;
24365 }
24366 resultobj = SWIG_Py_Void();
24367 return resultobj;
24368 fail:
24369 return NULL;
24370 }
24371
24372
24373 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24374 PyObject *resultobj = 0;
24375 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24376 int arg2 ;
24377 PyObject *result = 0 ;
24378 void *argp1 = 0 ;
24379 int res1 = 0 ;
24380 int val2 ;
24381 int ecode2 = 0 ;
24382 PyObject * obj0 = 0 ;
24383 PyObject * obj1 = 0 ;
24384 char * kwnames[] = {
24385 (char *) "self",(char *) "id", NULL
24386 };
24387
24388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) SWIG_fail;
24389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24390 if (!SWIG_IsOK(res1)) {
24391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24392 }
24393 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24394 ecode2 = SWIG_AsVal_int(obj1, &val2);
24395 if (!SWIG_IsOK(ecode2)) {
24396 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "2"" of type '" "int""'");
24397 }
24398 arg2 = static_cast< int >(val2);
24399 {
24400 PyThreadState* __tstate = wxPyBeginAllowThreads();
24401 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
24402 wxPyEndAllowThreads(__tstate);
24403 if (PyErr_Occurred()) SWIG_fail;
24404 }
24405 resultobj = result;
24406 return resultobj;
24407 fail:
24408 return NULL;
24409 }
24410
24411
24412 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24413 PyObject *resultobj = 0;
24414 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24415 int arg2 ;
24416 PyObject *arg3 = (PyObject *) 0 ;
24417 void *argp1 = 0 ;
24418 int res1 = 0 ;
24419 int val2 ;
24420 int ecode2 = 0 ;
24421 PyObject * obj0 = 0 ;
24422 PyObject * obj1 = 0 ;
24423 PyObject * obj2 = 0 ;
24424 char * kwnames[] = {
24425 (char *) "self",(char *) "id",(char *) "clientData", NULL
24426 };
24427
24428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",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_SetToolClientData" "', 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_SetToolClientData" "', expected argument " "2"" of type '" "int""'");
24437 }
24438 arg2 = static_cast< int >(val2);
24439 arg3 = obj2;
24440 {
24441 PyThreadState* __tstate = wxPyBeginAllowThreads();
24442 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
24443 wxPyEndAllowThreads(__tstate);
24444 if (PyErr_Occurred()) SWIG_fail;
24445 }
24446 resultobj = SWIG_Py_Void();
24447 return resultobj;
24448 fail:
24449 return NULL;
24450 }
24451
24452
24453 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24454 PyObject *resultobj = 0;
24455 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24456 int arg2 ;
24457 int result;
24458 void *argp1 = 0 ;
24459 int res1 = 0 ;
24460 int val2 ;
24461 int ecode2 = 0 ;
24462 PyObject * obj0 = 0 ;
24463 PyObject * obj1 = 0 ;
24464 char * kwnames[] = {
24465 (char *) "self",(char *) "id", NULL
24466 };
24467
24468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) SWIG_fail;
24469 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24470 if (!SWIG_IsOK(res1)) {
24471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
24472 }
24473 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24474 ecode2 = SWIG_AsVal_int(obj1, &val2);
24475 if (!SWIG_IsOK(ecode2)) {
24476 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "2"" of type '" "int""'");
24477 }
24478 arg2 = static_cast< int >(val2);
24479 {
24480 PyThreadState* __tstate = wxPyBeginAllowThreads();
24481 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
24482 wxPyEndAllowThreads(__tstate);
24483 if (PyErr_Occurred()) SWIG_fail;
24484 }
24485 resultobj = SWIG_From_int(static_cast< int >(result));
24486 return resultobj;
24487 fail:
24488 return NULL;
24489 }
24490
24491
24492 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24493 PyObject *resultobj = 0;
24494 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24495 int arg2 ;
24496 bool result;
24497 void *argp1 = 0 ;
24498 int res1 = 0 ;
24499 int val2 ;
24500 int ecode2 = 0 ;
24501 PyObject * obj0 = 0 ;
24502 PyObject * obj1 = 0 ;
24503 char * kwnames[] = {
24504 (char *) "self",(char *) "id", NULL
24505 };
24506
24507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) SWIG_fail;
24508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24509 if (!SWIG_IsOK(res1)) {
24510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolState" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24511 }
24512 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24513 ecode2 = SWIG_AsVal_int(obj1, &val2);
24514 if (!SWIG_IsOK(ecode2)) {
24515 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolState" "', expected argument " "2"" of type '" "int""'");
24516 }
24517 arg2 = static_cast< int >(val2);
24518 {
24519 PyThreadState* __tstate = wxPyBeginAllowThreads();
24520 result = (bool)(arg1)->GetToolState(arg2);
24521 wxPyEndAllowThreads(__tstate);
24522 if (PyErr_Occurred()) SWIG_fail;
24523 }
24524 {
24525 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24526 }
24527 return resultobj;
24528 fail:
24529 return NULL;
24530 }
24531
24532
24533 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24534 PyObject *resultobj = 0;
24535 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24536 int arg2 ;
24537 bool result;
24538 void *argp1 = 0 ;
24539 int res1 = 0 ;
24540 int val2 ;
24541 int ecode2 = 0 ;
24542 PyObject * obj0 = 0 ;
24543 PyObject * obj1 = 0 ;
24544 char * kwnames[] = {
24545 (char *) "self",(char *) "id", NULL
24546 };
24547
24548 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
24549 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24550 if (!SWIG_IsOK(res1)) {
24551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24552 }
24553 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24554 ecode2 = SWIG_AsVal_int(obj1, &val2);
24555 if (!SWIG_IsOK(ecode2)) {
24556 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "2"" of type '" "int""'");
24557 }
24558 arg2 = static_cast< int >(val2);
24559 {
24560 PyThreadState* __tstate = wxPyBeginAllowThreads();
24561 result = (bool)(arg1)->GetToolEnabled(arg2);
24562 wxPyEndAllowThreads(__tstate);
24563 if (PyErr_Occurred()) SWIG_fail;
24564 }
24565 {
24566 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24567 }
24568 return resultobj;
24569 fail:
24570 return NULL;
24571 }
24572
24573
24574 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24575 PyObject *resultobj = 0;
24576 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24577 int arg2 ;
24578 wxString *arg3 = 0 ;
24579 void *argp1 = 0 ;
24580 int res1 = 0 ;
24581 int val2 ;
24582 int ecode2 = 0 ;
24583 bool temp3 = false ;
24584 PyObject * obj0 = 0 ;
24585 PyObject * obj1 = 0 ;
24586 PyObject * obj2 = 0 ;
24587 char * kwnames[] = {
24588 (char *) "self",(char *) "id",(char *) "helpString", NULL
24589 };
24590
24591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24592 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24593 if (!SWIG_IsOK(res1)) {
24594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24595 }
24596 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24597 ecode2 = SWIG_AsVal_int(obj1, &val2);
24598 if (!SWIG_IsOK(ecode2)) {
24599 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24600 }
24601 arg2 = static_cast< int >(val2);
24602 {
24603 arg3 = wxString_in_helper(obj2);
24604 if (arg3 == NULL) SWIG_fail;
24605 temp3 = true;
24606 }
24607 {
24608 PyThreadState* __tstate = wxPyBeginAllowThreads();
24609 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
24610 wxPyEndAllowThreads(__tstate);
24611 if (PyErr_Occurred()) SWIG_fail;
24612 }
24613 resultobj = SWIG_Py_Void();
24614 {
24615 if (temp3)
24616 delete arg3;
24617 }
24618 return resultobj;
24619 fail:
24620 {
24621 if (temp3)
24622 delete arg3;
24623 }
24624 return NULL;
24625 }
24626
24627
24628 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24629 PyObject *resultobj = 0;
24630 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24631 int arg2 ;
24632 wxString result;
24633 void *argp1 = 0 ;
24634 int res1 = 0 ;
24635 int val2 ;
24636 int ecode2 = 0 ;
24637 PyObject * obj0 = 0 ;
24638 PyObject * obj1 = 0 ;
24639 char * kwnames[] = {
24640 (char *) "self",(char *) "id", NULL
24641 };
24642
24643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24645 if (!SWIG_IsOK(res1)) {
24646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24647 }
24648 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24649 ecode2 = SWIG_AsVal_int(obj1, &val2);
24650 if (!SWIG_IsOK(ecode2)) {
24651 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24652 }
24653 arg2 = static_cast< int >(val2);
24654 {
24655 PyThreadState* __tstate = wxPyBeginAllowThreads();
24656 result = (arg1)->GetToolShortHelp(arg2);
24657 wxPyEndAllowThreads(__tstate);
24658 if (PyErr_Occurred()) SWIG_fail;
24659 }
24660 {
24661 #if wxUSE_UNICODE
24662 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24663 #else
24664 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24665 #endif
24666 }
24667 return resultobj;
24668 fail:
24669 return NULL;
24670 }
24671
24672
24673 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24674 PyObject *resultobj = 0;
24675 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24676 int arg2 ;
24677 wxString *arg3 = 0 ;
24678 void *argp1 = 0 ;
24679 int res1 = 0 ;
24680 int val2 ;
24681 int ecode2 = 0 ;
24682 bool temp3 = false ;
24683 PyObject * obj0 = 0 ;
24684 PyObject * obj1 = 0 ;
24685 PyObject * obj2 = 0 ;
24686 char * kwnames[] = {
24687 (char *) "self",(char *) "id",(char *) "helpString", NULL
24688 };
24689
24690 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24691 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24692 if (!SWIG_IsOK(res1)) {
24693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24694 }
24695 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24696 ecode2 = SWIG_AsVal_int(obj1, &val2);
24697 if (!SWIG_IsOK(ecode2)) {
24698 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24699 }
24700 arg2 = static_cast< int >(val2);
24701 {
24702 arg3 = wxString_in_helper(obj2);
24703 if (arg3 == NULL) SWIG_fail;
24704 temp3 = true;
24705 }
24706 {
24707 PyThreadState* __tstate = wxPyBeginAllowThreads();
24708 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
24709 wxPyEndAllowThreads(__tstate);
24710 if (PyErr_Occurred()) SWIG_fail;
24711 }
24712 resultobj = SWIG_Py_Void();
24713 {
24714 if (temp3)
24715 delete arg3;
24716 }
24717 return resultobj;
24718 fail:
24719 {
24720 if (temp3)
24721 delete arg3;
24722 }
24723 return NULL;
24724 }
24725
24726
24727 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24728 PyObject *resultobj = 0;
24729 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24730 int arg2 ;
24731 wxString result;
24732 void *argp1 = 0 ;
24733 int res1 = 0 ;
24734 int val2 ;
24735 int ecode2 = 0 ;
24736 PyObject * obj0 = 0 ;
24737 PyObject * obj1 = 0 ;
24738 char * kwnames[] = {
24739 (char *) "self",(char *) "id", NULL
24740 };
24741
24742 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24743 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24744 if (!SWIG_IsOK(res1)) {
24745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24746 }
24747 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24748 ecode2 = SWIG_AsVal_int(obj1, &val2);
24749 if (!SWIG_IsOK(ecode2)) {
24750 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24751 }
24752 arg2 = static_cast< int >(val2);
24753 {
24754 PyThreadState* __tstate = wxPyBeginAllowThreads();
24755 result = (arg1)->GetToolLongHelp(arg2);
24756 wxPyEndAllowThreads(__tstate);
24757 if (PyErr_Occurred()) SWIG_fail;
24758 }
24759 {
24760 #if wxUSE_UNICODE
24761 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24762 #else
24763 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24764 #endif
24765 }
24766 return resultobj;
24767 fail:
24768 return NULL;
24769 }
24770
24771
24772 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24773 PyObject *resultobj = 0;
24774 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24775 int arg2 ;
24776 int arg3 ;
24777 void *argp1 = 0 ;
24778 int res1 = 0 ;
24779 int val2 ;
24780 int ecode2 = 0 ;
24781 int val3 ;
24782 int ecode3 = 0 ;
24783 PyObject * obj0 = 0 ;
24784 PyObject * obj1 = 0 ;
24785 PyObject * obj2 = 0 ;
24786 char * kwnames[] = {
24787 (char *) "self",(char *) "x",(char *) "y", NULL
24788 };
24789
24790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24792 if (!SWIG_IsOK(res1)) {
24793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24794 }
24795 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24796 ecode2 = SWIG_AsVal_int(obj1, &val2);
24797 if (!SWIG_IsOK(ecode2)) {
24798 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "2"" of type '" "int""'");
24799 }
24800 arg2 = static_cast< int >(val2);
24801 ecode3 = SWIG_AsVal_int(obj2, &val3);
24802 if (!SWIG_IsOK(ecode3)) {
24803 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "3"" of type '" "int""'");
24804 }
24805 arg3 = static_cast< int >(val3);
24806 {
24807 PyThreadState* __tstate = wxPyBeginAllowThreads();
24808 (arg1)->SetMargins(arg2,arg3);
24809 wxPyEndAllowThreads(__tstate);
24810 if (PyErr_Occurred()) SWIG_fail;
24811 }
24812 resultobj = SWIG_Py_Void();
24813 return resultobj;
24814 fail:
24815 return NULL;
24816 }
24817
24818
24819 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24820 PyObject *resultobj = 0;
24821 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24822 wxSize *arg2 = 0 ;
24823 void *argp1 = 0 ;
24824 int res1 = 0 ;
24825 wxSize temp2 ;
24826 PyObject * obj0 = 0 ;
24827 PyObject * obj1 = 0 ;
24828 char * kwnames[] = {
24829 (char *) "self",(char *) "size", NULL
24830 };
24831
24832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail;
24833 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24834 if (!SWIG_IsOK(res1)) {
24835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24836 }
24837 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24838 {
24839 arg2 = &temp2;
24840 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
24841 }
24842 {
24843 PyThreadState* __tstate = wxPyBeginAllowThreads();
24844 (arg1)->SetMargins((wxSize const &)*arg2);
24845 wxPyEndAllowThreads(__tstate);
24846 if (PyErr_Occurred()) SWIG_fail;
24847 }
24848 resultobj = SWIG_Py_Void();
24849 return resultobj;
24850 fail:
24851 return NULL;
24852 }
24853
24854
24855 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24856 PyObject *resultobj = 0;
24857 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24858 int arg2 ;
24859 void *argp1 = 0 ;
24860 int res1 = 0 ;
24861 int val2 ;
24862 int ecode2 = 0 ;
24863 PyObject * obj0 = 0 ;
24864 PyObject * obj1 = 0 ;
24865 char * kwnames[] = {
24866 (char *) "self",(char *) "packing", NULL
24867 };
24868
24869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) SWIG_fail;
24870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24871 if (!SWIG_IsOK(res1)) {
24872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24873 }
24874 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24875 ecode2 = SWIG_AsVal_int(obj1, &val2);
24876 if (!SWIG_IsOK(ecode2)) {
24877 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "2"" of type '" "int""'");
24878 }
24879 arg2 = static_cast< int >(val2);
24880 {
24881 PyThreadState* __tstate = wxPyBeginAllowThreads();
24882 (arg1)->SetToolPacking(arg2);
24883 wxPyEndAllowThreads(__tstate);
24884 if (PyErr_Occurred()) SWIG_fail;
24885 }
24886 resultobj = SWIG_Py_Void();
24887 return resultobj;
24888 fail:
24889 return NULL;
24890 }
24891
24892
24893 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24894 PyObject *resultobj = 0;
24895 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24896 int arg2 ;
24897 void *argp1 = 0 ;
24898 int res1 = 0 ;
24899 int val2 ;
24900 int ecode2 = 0 ;
24901 PyObject * obj0 = 0 ;
24902 PyObject * obj1 = 0 ;
24903 char * kwnames[] = {
24904 (char *) "self",(char *) "separation", NULL
24905 };
24906
24907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) SWIG_fail;
24908 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24909 if (!SWIG_IsOK(res1)) {
24910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24911 }
24912 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24913 ecode2 = SWIG_AsVal_int(obj1, &val2);
24914 if (!SWIG_IsOK(ecode2)) {
24915 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "2"" of type '" "int""'");
24916 }
24917 arg2 = static_cast< int >(val2);
24918 {
24919 PyThreadState* __tstate = wxPyBeginAllowThreads();
24920 (arg1)->SetToolSeparation(arg2);
24921 wxPyEndAllowThreads(__tstate);
24922 if (PyErr_Occurred()) SWIG_fail;
24923 }
24924 resultobj = SWIG_Py_Void();
24925 return resultobj;
24926 fail:
24927 return NULL;
24928 }
24929
24930
24931 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24932 PyObject *resultobj = 0;
24933 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24934 wxSize result;
24935 void *argp1 = 0 ;
24936 int res1 = 0 ;
24937 PyObject *swig_obj[1] ;
24938
24939 if (!args) SWIG_fail;
24940 swig_obj[0] = args;
24941 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24942 if (!SWIG_IsOK(res1)) {
24943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24944 }
24945 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24946 {
24947 PyThreadState* __tstate = wxPyBeginAllowThreads();
24948 result = (arg1)->GetToolMargins();
24949 wxPyEndAllowThreads(__tstate);
24950 if (PyErr_Occurred()) SWIG_fail;
24951 }
24952 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24953 return resultobj;
24954 fail:
24955 return NULL;
24956 }
24957
24958
24959 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24960 PyObject *resultobj = 0;
24961 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24962 wxSize result;
24963 void *argp1 = 0 ;
24964 int res1 = 0 ;
24965 PyObject *swig_obj[1] ;
24966
24967 if (!args) SWIG_fail;
24968 swig_obj[0] = args;
24969 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24970 if (!SWIG_IsOK(res1)) {
24971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24972 }
24973 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24974 {
24975 PyThreadState* __tstate = wxPyBeginAllowThreads();
24976 result = (arg1)->GetMargins();
24977 wxPyEndAllowThreads(__tstate);
24978 if (PyErr_Occurred()) SWIG_fail;
24979 }
24980 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24981 return resultobj;
24982 fail:
24983 return NULL;
24984 }
24985
24986
24987 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24988 PyObject *resultobj = 0;
24989 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24990 int result;
24991 void *argp1 = 0 ;
24992 int res1 = 0 ;
24993 PyObject *swig_obj[1] ;
24994
24995 if (!args) SWIG_fail;
24996 swig_obj[0] = args;
24997 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24998 if (!SWIG_IsOK(res1)) {
24999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25000 }
25001 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25002 {
25003 PyThreadState* __tstate = wxPyBeginAllowThreads();
25004 result = (int)(arg1)->GetToolPacking();
25005 wxPyEndAllowThreads(__tstate);
25006 if (PyErr_Occurred()) SWIG_fail;
25007 }
25008 resultobj = SWIG_From_int(static_cast< int >(result));
25009 return resultobj;
25010 fail:
25011 return NULL;
25012 }
25013
25014
25015 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25016 PyObject *resultobj = 0;
25017 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25018 int result;
25019 void *argp1 = 0 ;
25020 int res1 = 0 ;
25021 PyObject *swig_obj[1] ;
25022
25023 if (!args) SWIG_fail;
25024 swig_obj[0] = args;
25025 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25026 if (!SWIG_IsOK(res1)) {
25027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25028 }
25029 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25030 {
25031 PyThreadState* __tstate = wxPyBeginAllowThreads();
25032 result = (int)(arg1)->GetToolSeparation();
25033 wxPyEndAllowThreads(__tstate);
25034 if (PyErr_Occurred()) SWIG_fail;
25035 }
25036 resultobj = SWIG_From_int(static_cast< int >(result));
25037 return resultobj;
25038 fail:
25039 return NULL;
25040 }
25041
25042
25043 SWIGINTERN PyObject *_wrap_ToolBarBase_SetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25044 PyObject *resultobj = 0;
25045 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25046 int arg2 ;
25047 void *argp1 = 0 ;
25048 int res1 = 0 ;
25049 int val2 ;
25050 int ecode2 = 0 ;
25051 PyObject * obj0 = 0 ;
25052 PyObject * obj1 = 0 ;
25053 char * kwnames[] = {
25054 (char *) "self",(char *) "nRows", NULL
25055 };
25056
25057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) SWIG_fail;
25058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25059 if (!SWIG_IsOK(res1)) {
25060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25061 }
25062 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25063 ecode2 = SWIG_AsVal_int(obj1, &val2);
25064 if (!SWIG_IsOK(ecode2)) {
25065 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetRows" "', expected argument " "2"" of type '" "int""'");
25066 }
25067 arg2 = static_cast< int >(val2);
25068 {
25069 PyThreadState* __tstate = wxPyBeginAllowThreads();
25070 (arg1)->SetRows(arg2);
25071 wxPyEndAllowThreads(__tstate);
25072 if (PyErr_Occurred()) SWIG_fail;
25073 }
25074 resultobj = SWIG_Py_Void();
25075 return resultobj;
25076 fail:
25077 return NULL;
25078 }
25079
25080
25081 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25082 PyObject *resultobj = 0;
25083 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25084 int arg2 ;
25085 int arg3 ;
25086 void *argp1 = 0 ;
25087 int res1 = 0 ;
25088 int val2 ;
25089 int ecode2 = 0 ;
25090 int val3 ;
25091 int ecode3 = 0 ;
25092 PyObject * obj0 = 0 ;
25093 PyObject * obj1 = 0 ;
25094 PyObject * obj2 = 0 ;
25095 char * kwnames[] = {
25096 (char *) "self",(char *) "rows",(char *) "cols", NULL
25097 };
25098
25099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25101 if (!SWIG_IsOK(res1)) {
25102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25103 }
25104 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25105 ecode2 = SWIG_AsVal_int(obj1, &val2);
25106 if (!SWIG_IsOK(ecode2)) {
25107 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "2"" of type '" "int""'");
25108 }
25109 arg2 = static_cast< int >(val2);
25110 ecode3 = SWIG_AsVal_int(obj2, &val3);
25111 if (!SWIG_IsOK(ecode3)) {
25112 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "3"" of type '" "int""'");
25113 }
25114 arg3 = static_cast< int >(val3);
25115 {
25116 PyThreadState* __tstate = wxPyBeginAllowThreads();
25117 (arg1)->SetMaxRowsCols(arg2,arg3);
25118 wxPyEndAllowThreads(__tstate);
25119 if (PyErr_Occurred()) SWIG_fail;
25120 }
25121 resultobj = SWIG_Py_Void();
25122 return resultobj;
25123 fail:
25124 return NULL;
25125 }
25126
25127
25128 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25129 PyObject *resultobj = 0;
25130 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25131 int result;
25132 void *argp1 = 0 ;
25133 int res1 = 0 ;
25134 PyObject *swig_obj[1] ;
25135
25136 if (!args) SWIG_fail;
25137 swig_obj[0] = args;
25138 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25139 if (!SWIG_IsOK(res1)) {
25140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25141 }
25142 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25143 {
25144 PyThreadState* __tstate = wxPyBeginAllowThreads();
25145 result = (int)(arg1)->GetMaxRows();
25146 wxPyEndAllowThreads(__tstate);
25147 if (PyErr_Occurred()) SWIG_fail;
25148 }
25149 resultobj = SWIG_From_int(static_cast< int >(result));
25150 return resultobj;
25151 fail:
25152 return NULL;
25153 }
25154
25155
25156 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25157 PyObject *resultobj = 0;
25158 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25159 int result;
25160 void *argp1 = 0 ;
25161 int res1 = 0 ;
25162 PyObject *swig_obj[1] ;
25163
25164 if (!args) SWIG_fail;
25165 swig_obj[0] = args;
25166 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25167 if (!SWIG_IsOK(res1)) {
25168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25169 }
25170 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25171 {
25172 PyThreadState* __tstate = wxPyBeginAllowThreads();
25173 result = (int)(arg1)->GetMaxCols();
25174 wxPyEndAllowThreads(__tstate);
25175 if (PyErr_Occurred()) SWIG_fail;
25176 }
25177 resultobj = SWIG_From_int(static_cast< int >(result));
25178 return resultobj;
25179 fail:
25180 return NULL;
25181 }
25182
25183
25184 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25185 PyObject *resultobj = 0;
25186 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25187 wxSize *arg2 = 0 ;
25188 void *argp1 = 0 ;
25189 int res1 = 0 ;
25190 wxSize temp2 ;
25191 PyObject * obj0 = 0 ;
25192 PyObject * obj1 = 0 ;
25193 char * kwnames[] = {
25194 (char *) "self",(char *) "size", NULL
25195 };
25196
25197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) SWIG_fail;
25198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25199 if (!SWIG_IsOK(res1)) {
25200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25201 }
25202 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25203 {
25204 arg2 = &temp2;
25205 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25206 }
25207 {
25208 PyThreadState* __tstate = wxPyBeginAllowThreads();
25209 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
25210 wxPyEndAllowThreads(__tstate);
25211 if (PyErr_Occurred()) SWIG_fail;
25212 }
25213 resultobj = SWIG_Py_Void();
25214 return resultobj;
25215 fail:
25216 return NULL;
25217 }
25218
25219
25220 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25221 PyObject *resultobj = 0;
25222 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25223 wxSize result;
25224 void *argp1 = 0 ;
25225 int res1 = 0 ;
25226 PyObject *swig_obj[1] ;
25227
25228 if (!args) SWIG_fail;
25229 swig_obj[0] = args;
25230 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25231 if (!SWIG_IsOK(res1)) {
25232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25233 }
25234 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25235 {
25236 PyThreadState* __tstate = wxPyBeginAllowThreads();
25237 result = (arg1)->GetToolBitmapSize();
25238 wxPyEndAllowThreads(__tstate);
25239 if (PyErr_Occurred()) SWIG_fail;
25240 }
25241 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25242 return resultobj;
25243 fail:
25244 return NULL;
25245 }
25246
25247
25248 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25249 PyObject *resultobj = 0;
25250 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25251 wxSize result;
25252 void *argp1 = 0 ;
25253 int res1 = 0 ;
25254 PyObject *swig_obj[1] ;
25255
25256 if (!args) SWIG_fail;
25257 swig_obj[0] = args;
25258 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25259 if (!SWIG_IsOK(res1)) {
25260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25261 }
25262 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25263 {
25264 PyThreadState* __tstate = wxPyBeginAllowThreads();
25265 result = (arg1)->GetToolSize();
25266 wxPyEndAllowThreads(__tstate);
25267 if (PyErr_Occurred()) SWIG_fail;
25268 }
25269 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25270 return resultobj;
25271 fail:
25272 return NULL;
25273 }
25274
25275
25276 SWIGINTERN PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25277 PyObject *resultobj = 0;
25278 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25279 int arg2 ;
25280 int arg3 ;
25281 wxToolBarToolBase *result = 0 ;
25282 void *argp1 = 0 ;
25283 int res1 = 0 ;
25284 int val2 ;
25285 int ecode2 = 0 ;
25286 int val3 ;
25287 int ecode3 = 0 ;
25288 PyObject * obj0 = 0 ;
25289 PyObject * obj1 = 0 ;
25290 PyObject * obj2 = 0 ;
25291 char * kwnames[] = {
25292 (char *) "self",(char *) "x",(char *) "y", NULL
25293 };
25294
25295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25297 if (!SWIG_IsOK(res1)) {
25298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25299 }
25300 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25301 ecode2 = SWIG_AsVal_int(obj1, &val2);
25302 if (!SWIG_IsOK(ecode2)) {
25303 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "2"" of type '" "int""'");
25304 }
25305 arg2 = static_cast< int >(val2);
25306 ecode3 = SWIG_AsVal_int(obj2, &val3);
25307 if (!SWIG_IsOK(ecode3)) {
25308 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "3"" of type '" "int""'");
25309 }
25310 arg3 = static_cast< int >(val3);
25311 {
25312 PyThreadState* __tstate = wxPyBeginAllowThreads();
25313 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
25314 wxPyEndAllowThreads(__tstate);
25315 if (PyErr_Occurred()) SWIG_fail;
25316 }
25317 {
25318 resultobj = wxPyMake_wxObject(result, (bool)0);
25319 }
25320 return resultobj;
25321 fail:
25322 return NULL;
25323 }
25324
25325
25326 SWIGINTERN PyObject *_wrap_ToolBarBase_FindById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25327 PyObject *resultobj = 0;
25328 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25329 int arg2 ;
25330 wxToolBarToolBase *result = 0 ;
25331 void *argp1 = 0 ;
25332 int res1 = 0 ;
25333 int val2 ;
25334 int ecode2 = 0 ;
25335 PyObject * obj0 = 0 ;
25336 PyObject * obj1 = 0 ;
25337 char * kwnames[] = {
25338 (char *) "self",(char *) "toolid", NULL
25339 };
25340
25341 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) SWIG_fail;
25342 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25343 if (!SWIG_IsOK(res1)) {
25344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindById" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25345 }
25346 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25347 ecode2 = SWIG_AsVal_int(obj1, &val2);
25348 if (!SWIG_IsOK(ecode2)) {
25349 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindById" "', expected argument " "2"" of type '" "int""'");
25350 }
25351 arg2 = static_cast< int >(val2);
25352 {
25353 PyThreadState* __tstate = wxPyBeginAllowThreads();
25354 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
25355 wxPyEndAllowThreads(__tstate);
25356 if (PyErr_Occurred()) SWIG_fail;
25357 }
25358 {
25359 resultobj = wxPyMake_wxObject(result, (bool)0);
25360 }
25361 return resultobj;
25362 fail:
25363 return NULL;
25364 }
25365
25366
25367 SWIGINTERN PyObject *_wrap_ToolBarBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25368 PyObject *resultobj = 0;
25369 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25370 bool result;
25371 void *argp1 = 0 ;
25372 int res1 = 0 ;
25373 PyObject *swig_obj[1] ;
25374
25375 if (!args) SWIG_fail;
25376 swig_obj[0] = args;
25377 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25378 if (!SWIG_IsOK(res1)) {
25379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_IsVertical" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25380 }
25381 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25382 {
25383 PyThreadState* __tstate = wxPyBeginAllowThreads();
25384 result = (bool)(arg1)->IsVertical();
25385 wxPyEndAllowThreads(__tstate);
25386 if (PyErr_Occurred()) SWIG_fail;
25387 }
25388 {
25389 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25390 }
25391 return resultobj;
25392 fail:
25393 return NULL;
25394 }
25395
25396
25397 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25398 PyObject *resultobj = 0;
25399 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25400 size_t result;
25401 void *argp1 = 0 ;
25402 int res1 = 0 ;
25403 PyObject *swig_obj[1] ;
25404
25405 if (!args) SWIG_fail;
25406 swig_obj[0] = args;
25407 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25408 if (!SWIG_IsOK(res1)) {
25409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolsCount" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25410 }
25411 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25412 {
25413 PyThreadState* __tstate = wxPyBeginAllowThreads();
25414 result = (size_t)((wxToolBarBase const *)arg1)->GetToolsCount();
25415 wxPyEndAllowThreads(__tstate);
25416 if (PyErr_Occurred()) SWIG_fail;
25417 }
25418 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
25419 return resultobj;
25420 fail:
25421 return NULL;
25422 }
25423
25424
25425 SWIGINTERN PyObject *ToolBarBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25426 PyObject *obj;
25427 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25428 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarBase, SWIG_NewClientData(obj));
25429 return SWIG_Py_Void();
25430 }
25431
25432 SWIGINTERN PyObject *_wrap_new_ToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25433 PyObject *resultobj = 0;
25434 wxWindow *arg1 = (wxWindow *) 0 ;
25435 int arg2 = (int) -1 ;
25436 wxPoint const &arg3_defvalue = wxDefaultPosition ;
25437 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
25438 wxSize const &arg4_defvalue = wxDefaultSize ;
25439 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
25440 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25441 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
25442 wxString *arg6 = (wxString *) &arg6_defvalue ;
25443 wxToolBar *result = 0 ;
25444 void *argp1 = 0 ;
25445 int res1 = 0 ;
25446 int val2 ;
25447 int ecode2 = 0 ;
25448 wxPoint temp3 ;
25449 wxSize temp4 ;
25450 long val5 ;
25451 int ecode5 = 0 ;
25452 bool temp6 = false ;
25453 PyObject * obj0 = 0 ;
25454 PyObject * obj1 = 0 ;
25455 PyObject * obj2 = 0 ;
25456 PyObject * obj3 = 0 ;
25457 PyObject * obj4 = 0 ;
25458 PyObject * obj5 = 0 ;
25459 char * kwnames[] = {
25460 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25461 };
25462
25463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25465 if (!SWIG_IsOK(res1)) {
25466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToolBar" "', expected argument " "1"" of type '" "wxWindow *""'");
25467 }
25468 arg1 = reinterpret_cast< wxWindow * >(argp1);
25469 if (obj1) {
25470 ecode2 = SWIG_AsVal_int(obj1, &val2);
25471 if (!SWIG_IsOK(ecode2)) {
25472 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolBar" "', expected argument " "2"" of type '" "int""'");
25473 }
25474 arg2 = static_cast< int >(val2);
25475 }
25476 if (obj2) {
25477 {
25478 arg3 = &temp3;
25479 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
25480 }
25481 }
25482 if (obj3) {
25483 {
25484 arg4 = &temp4;
25485 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
25486 }
25487 }
25488 if (obj4) {
25489 ecode5 = SWIG_AsVal_long(obj4, &val5);
25490 if (!SWIG_IsOK(ecode5)) {
25491 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ToolBar" "', expected argument " "5"" of type '" "long""'");
25492 }
25493 arg5 = static_cast< long >(val5);
25494 }
25495 if (obj5) {
25496 {
25497 arg6 = wxString_in_helper(obj5);
25498 if (arg6 == NULL) SWIG_fail;
25499 temp6 = true;
25500 }
25501 }
25502 {
25503 if (!wxPyCheckForApp()) SWIG_fail;
25504 PyThreadState* __tstate = wxPyBeginAllowThreads();
25505 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
25506 wxPyEndAllowThreads(__tstate);
25507 if (PyErr_Occurred()) SWIG_fail;
25508 }
25509 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_NEW | 0 );
25510 {
25511 if (temp6)
25512 delete arg6;
25513 }
25514 return resultobj;
25515 fail:
25516 {
25517 if (temp6)
25518 delete arg6;
25519 }
25520 return NULL;
25521 }
25522
25523
25524 SWIGINTERN PyObject *_wrap_new_PreToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25525 PyObject *resultobj = 0;
25526 wxToolBar *result = 0 ;
25527
25528 if (!SWIG_Python_UnpackTuple(args,"new_PreToolBar",0,0,0)) SWIG_fail;
25529 {
25530 if (!wxPyCheckForApp()) SWIG_fail;
25531 PyThreadState* __tstate = wxPyBeginAllowThreads();
25532 result = (wxToolBar *)new wxToolBar();
25533 wxPyEndAllowThreads(__tstate);
25534 if (PyErr_Occurred()) SWIG_fail;
25535 }
25536 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_OWN | 0 );
25537 return resultobj;
25538 fail:
25539 return NULL;
25540 }
25541
25542
25543 SWIGINTERN PyObject *_wrap_ToolBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25544 PyObject *resultobj = 0;
25545 wxToolBar *arg1 = (wxToolBar *) 0 ;
25546 wxWindow *arg2 = (wxWindow *) 0 ;
25547 int arg3 = (int) -1 ;
25548 wxPoint const &arg4_defvalue = wxDefaultPosition ;
25549 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
25550 wxSize const &arg5_defvalue = wxDefaultSize ;
25551 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
25552 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25553 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
25554 wxString *arg7 = (wxString *) &arg7_defvalue ;
25555 bool result;
25556 void *argp1 = 0 ;
25557 int res1 = 0 ;
25558 void *argp2 = 0 ;
25559 int res2 = 0 ;
25560 int val3 ;
25561 int ecode3 = 0 ;
25562 wxPoint temp4 ;
25563 wxSize temp5 ;
25564 long val6 ;
25565 int ecode6 = 0 ;
25566 bool temp7 = false ;
25567 PyObject * obj0 = 0 ;
25568 PyObject * obj1 = 0 ;
25569 PyObject * obj2 = 0 ;
25570 PyObject * obj3 = 0 ;
25571 PyObject * obj4 = 0 ;
25572 PyObject * obj5 = 0 ;
25573 PyObject * obj6 = 0 ;
25574 char * kwnames[] = {
25575 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25576 };
25577
25578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
25580 if (!SWIG_IsOK(res1)) {
25581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_Create" "', expected argument " "1"" of type '" "wxToolBar *""'");
25582 }
25583 arg1 = reinterpret_cast< wxToolBar * >(argp1);
25584 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25585 if (!SWIG_IsOK(res2)) {
25586 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
25587 }
25588 arg2 = reinterpret_cast< wxWindow * >(argp2);
25589 if (obj2) {
25590 ecode3 = SWIG_AsVal_int(obj2, &val3);
25591 if (!SWIG_IsOK(ecode3)) {
25592 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_Create" "', expected argument " "3"" of type '" "int""'");
25593 }
25594 arg3 = static_cast< int >(val3);
25595 }
25596 if (obj3) {
25597 {
25598 arg4 = &temp4;
25599 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
25600 }
25601 }
25602 if (obj4) {
25603 {
25604 arg5 = &temp5;
25605 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
25606 }
25607 }
25608 if (obj5) {
25609 ecode6 = SWIG_AsVal_long(obj5, &val6);
25610 if (!SWIG_IsOK(ecode6)) {
25611 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBar_Create" "', expected argument " "6"" of type '" "long""'");
25612 }
25613 arg6 = static_cast< long >(val6);
25614 }
25615 if (obj6) {
25616 {
25617 arg7 = wxString_in_helper(obj6);
25618 if (arg7 == NULL) SWIG_fail;
25619 temp7 = true;
25620 }
25621 }
25622 {
25623 PyThreadState* __tstate = wxPyBeginAllowThreads();
25624 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
25625 wxPyEndAllowThreads(__tstate);
25626 if (PyErr_Occurred()) SWIG_fail;
25627 }
25628 {
25629 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25630 }
25631 {
25632 if (temp7)
25633 delete arg7;
25634 }
25635 return resultobj;
25636 fail:
25637 {
25638 if (temp7)
25639 delete arg7;
25640 }
25641 return NULL;
25642 }
25643
25644
25645 SWIGINTERN PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25646 PyObject *resultobj = 0;
25647 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
25648 SwigValueWrapper<wxVisualAttributes > result;
25649 int val1 ;
25650 int ecode1 = 0 ;
25651 PyObject * obj0 = 0 ;
25652 char * kwnames[] = {
25653 (char *) "variant", NULL
25654 };
25655
25656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
25657 if (obj0) {
25658 ecode1 = SWIG_AsVal_int(obj0, &val1);
25659 if (!SWIG_IsOK(ecode1)) {
25660 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToolBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
25661 }
25662 arg1 = static_cast< wxWindowVariant >(val1);
25663 }
25664 {
25665 if (!wxPyCheckForApp()) SWIG_fail;
25666 PyThreadState* __tstate = wxPyBeginAllowThreads();
25667 result = wxToolBar::GetClassDefaultAttributes(arg1);
25668 wxPyEndAllowThreads(__tstate);
25669 if (PyErr_Occurred()) SWIG_fail;
25670 }
25671 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
25672 return resultobj;
25673 fail:
25674 return NULL;
25675 }
25676
25677
25678 SWIGINTERN PyObject *ToolBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25679 PyObject *obj;
25680 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25681 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBar, SWIG_NewClientData(obj));
25682 return SWIG_Py_Void();
25683 }
25684
25685 SWIGINTERN PyObject *ToolBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25686 return SWIG_Python_InitShadowInstance(args);
25687 }
25688
25689 SWIGINTERN int ListCtrlNameStr_set(PyObject *) {
25690 SWIG_Error(SWIG_AttributeError,"Variable ListCtrlNameStr is read-only.");
25691 return 1;
25692 }
25693
25694
25695 SWIGINTERN PyObject *ListCtrlNameStr_get(void) {
25696 PyObject *pyobj = 0;
25697
25698 {
25699 #if wxUSE_UNICODE
25700 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
25701 #else
25702 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
25703 #endif
25704 }
25705 return pyobj;
25706 }
25707
25708
25709 SWIGINTERN PyObject *_wrap_new_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25710 PyObject *resultobj = 0;
25711 wxColour const &arg1_defvalue = wxNullColour ;
25712 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
25713 wxColour const &arg2_defvalue = wxNullColour ;
25714 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
25715 wxFont const &arg3_defvalue = wxNullFont ;
25716 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
25717 wxListItemAttr *result = 0 ;
25718 wxColour temp1 ;
25719 wxColour temp2 ;
25720 void *argp3 = 0 ;
25721 int res3 = 0 ;
25722 PyObject * obj0 = 0 ;
25723 PyObject * obj1 = 0 ;
25724 PyObject * obj2 = 0 ;
25725 char * kwnames[] = {
25726 (char *) "colText",(char *) "colBack",(char *) "font", NULL
25727 };
25728
25729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25730 if (obj0) {
25731 {
25732 arg1 = &temp1;
25733 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
25734 }
25735 }
25736 if (obj1) {
25737 {
25738 arg2 = &temp2;
25739 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25740 }
25741 }
25742 if (obj2) {
25743 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
25744 if (!SWIG_IsOK(res3)) {
25745 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
25746 }
25747 if (!argp3) {
25748 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
25749 }
25750 arg3 = reinterpret_cast< wxFont * >(argp3);
25751 }
25752 {
25753 PyThreadState* __tstate = wxPyBeginAllowThreads();
25754 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
25755 wxPyEndAllowThreads(__tstate);
25756 if (PyErr_Occurred()) SWIG_fail;
25757 }
25758 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_NEW | 0 );
25759 return resultobj;
25760 fail:
25761 return NULL;
25762 }
25763
25764
25765 SWIGINTERN PyObject *_wrap_delete_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25766 PyObject *resultobj = 0;
25767 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25768 void *argp1 = 0 ;
25769 int res1 = 0 ;
25770 PyObject *swig_obj[1] ;
25771
25772 if (!args) SWIG_fail;
25773 swig_obj[0] = args;
25774 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_DISOWN | 0 );
25775 if (!SWIG_IsOK(res1)) {
25776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItemAttr" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25777 }
25778 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25779 {
25780 PyThreadState* __tstate = wxPyBeginAllowThreads();
25781 delete arg1;
25782
25783 wxPyEndAllowThreads(__tstate);
25784 if (PyErr_Occurred()) SWIG_fail;
25785 }
25786 resultobj = SWIG_Py_Void();
25787 return resultobj;
25788 fail:
25789 return NULL;
25790 }
25791
25792
25793 SWIGINTERN PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25794 PyObject *resultobj = 0;
25795 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25796 wxColour *arg2 = 0 ;
25797 void *argp1 = 0 ;
25798 int res1 = 0 ;
25799 wxColour temp2 ;
25800 PyObject * obj0 = 0 ;
25801 PyObject * obj1 = 0 ;
25802 char * kwnames[] = {
25803 (char *) "self",(char *) "colText", NULL
25804 };
25805
25806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
25807 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25808 if (!SWIG_IsOK(res1)) {
25809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25810 }
25811 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25812 {
25813 arg2 = &temp2;
25814 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25815 }
25816 {
25817 PyThreadState* __tstate = wxPyBeginAllowThreads();
25818 (arg1)->SetTextColour((wxColour const &)*arg2);
25819 wxPyEndAllowThreads(__tstate);
25820 if (PyErr_Occurred()) SWIG_fail;
25821 }
25822 resultobj = SWIG_Py_Void();
25823 return resultobj;
25824 fail:
25825 return NULL;
25826 }
25827
25828
25829 SWIGINTERN PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25830 PyObject *resultobj = 0;
25831 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25832 wxColour *arg2 = 0 ;
25833 void *argp1 = 0 ;
25834 int res1 = 0 ;
25835 wxColour temp2 ;
25836 PyObject * obj0 = 0 ;
25837 PyObject * obj1 = 0 ;
25838 char * kwnames[] = {
25839 (char *) "self",(char *) "colBack", NULL
25840 };
25841
25842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
25843 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25844 if (!SWIG_IsOK(res1)) {
25845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25846 }
25847 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25848 {
25849 arg2 = &temp2;
25850 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25851 }
25852 {
25853 PyThreadState* __tstate = wxPyBeginAllowThreads();
25854 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
25855 wxPyEndAllowThreads(__tstate);
25856 if (PyErr_Occurred()) SWIG_fail;
25857 }
25858 resultobj = SWIG_Py_Void();
25859 return resultobj;
25860 fail:
25861 return NULL;
25862 }
25863
25864
25865 SWIGINTERN PyObject *_wrap_ListItemAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25866 PyObject *resultobj = 0;
25867 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25868 wxFont *arg2 = 0 ;
25869 void *argp1 = 0 ;
25870 int res1 = 0 ;
25871 void *argp2 = 0 ;
25872 int res2 = 0 ;
25873 PyObject * obj0 = 0 ;
25874 PyObject * obj1 = 0 ;
25875 char * kwnames[] = {
25876 (char *) "self",(char *) "font", NULL
25877 };
25878
25879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
25880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25881 if (!SWIG_IsOK(res1)) {
25882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25883 }
25884 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25885 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
25886 if (!SWIG_IsOK(res2)) {
25887 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25888 }
25889 if (!argp2) {
25890 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25891 }
25892 arg2 = reinterpret_cast< wxFont * >(argp2);
25893 {
25894 PyThreadState* __tstate = wxPyBeginAllowThreads();
25895 (arg1)->SetFont((wxFont const &)*arg2);
25896 wxPyEndAllowThreads(__tstate);
25897 if (PyErr_Occurred()) SWIG_fail;
25898 }
25899 resultobj = SWIG_Py_Void();
25900 return resultobj;
25901 fail:
25902 return NULL;
25903 }
25904
25905
25906 SWIGINTERN PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25907 PyObject *resultobj = 0;
25908 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25909 bool result;
25910 void *argp1 = 0 ;
25911 int res1 = 0 ;
25912 PyObject *swig_obj[1] ;
25913
25914 if (!args) SWIG_fail;
25915 swig_obj[0] = args;
25916 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25917 if (!SWIG_IsOK(res1)) {
25918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25919 }
25920 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25921 {
25922 PyThreadState* __tstate = wxPyBeginAllowThreads();
25923 result = (bool)(arg1)->HasTextColour();
25924 wxPyEndAllowThreads(__tstate);
25925 if (PyErr_Occurred()) SWIG_fail;
25926 }
25927 {
25928 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25929 }
25930 return resultobj;
25931 fail:
25932 return NULL;
25933 }
25934
25935
25936 SWIGINTERN PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25937 PyObject *resultobj = 0;
25938 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25939 bool result;
25940 void *argp1 = 0 ;
25941 int res1 = 0 ;
25942 PyObject *swig_obj[1] ;
25943
25944 if (!args) SWIG_fail;
25945 swig_obj[0] = args;
25946 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25947 if (!SWIG_IsOK(res1)) {
25948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25949 }
25950 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25951 {
25952 PyThreadState* __tstate = wxPyBeginAllowThreads();
25953 result = (bool)(arg1)->HasBackgroundColour();
25954 wxPyEndAllowThreads(__tstate);
25955 if (PyErr_Occurred()) SWIG_fail;
25956 }
25957 {
25958 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25959 }
25960 return resultobj;
25961 fail:
25962 return NULL;
25963 }
25964
25965
25966 SWIGINTERN PyObject *_wrap_ListItemAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25967 PyObject *resultobj = 0;
25968 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25969 bool result;
25970 void *argp1 = 0 ;
25971 int res1 = 0 ;
25972 PyObject *swig_obj[1] ;
25973
25974 if (!args) SWIG_fail;
25975 swig_obj[0] = args;
25976 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25977 if (!SWIG_IsOK(res1)) {
25978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25979 }
25980 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25981 {
25982 PyThreadState* __tstate = wxPyBeginAllowThreads();
25983 result = (bool)(arg1)->HasFont();
25984 wxPyEndAllowThreads(__tstate);
25985 if (PyErr_Occurred()) SWIG_fail;
25986 }
25987 {
25988 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25989 }
25990 return resultobj;
25991 fail:
25992 return NULL;
25993 }
25994
25995
25996 SWIGINTERN PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25997 PyObject *resultobj = 0;
25998 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25999 wxColour result;
26000 void *argp1 = 0 ;
26001 int res1 = 0 ;
26002 PyObject *swig_obj[1] ;
26003
26004 if (!args) SWIG_fail;
26005 swig_obj[0] = args;
26006 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26007 if (!SWIG_IsOK(res1)) {
26008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26009 }
26010 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26011 {
26012 PyThreadState* __tstate = wxPyBeginAllowThreads();
26013 result = (arg1)->GetTextColour();
26014 wxPyEndAllowThreads(__tstate);
26015 if (PyErr_Occurred()) SWIG_fail;
26016 }
26017 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26018 return resultobj;
26019 fail:
26020 return NULL;
26021 }
26022
26023
26024 SWIGINTERN PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26025 PyObject *resultobj = 0;
26026 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26027 wxColour result;
26028 void *argp1 = 0 ;
26029 int res1 = 0 ;
26030 PyObject *swig_obj[1] ;
26031
26032 if (!args) SWIG_fail;
26033 swig_obj[0] = args;
26034 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26035 if (!SWIG_IsOK(res1)) {
26036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26037 }
26038 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26039 {
26040 PyThreadState* __tstate = wxPyBeginAllowThreads();
26041 result = (arg1)->GetBackgroundColour();
26042 wxPyEndAllowThreads(__tstate);
26043 if (PyErr_Occurred()) SWIG_fail;
26044 }
26045 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26046 return resultobj;
26047 fail:
26048 return NULL;
26049 }
26050
26051
26052 SWIGINTERN PyObject *_wrap_ListItemAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26053 PyObject *resultobj = 0;
26054 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26055 wxFont result;
26056 void *argp1 = 0 ;
26057 int res1 = 0 ;
26058 PyObject *swig_obj[1] ;
26059
26060 if (!args) SWIG_fail;
26061 swig_obj[0] = args;
26062 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26063 if (!SWIG_IsOK(res1)) {
26064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26065 }
26066 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26067 {
26068 PyThreadState* __tstate = wxPyBeginAllowThreads();
26069 result = (arg1)->GetFont();
26070 wxPyEndAllowThreads(__tstate);
26071 if (PyErr_Occurred()) SWIG_fail;
26072 }
26073 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
26074 return resultobj;
26075 fail:
26076 return NULL;
26077 }
26078
26079
26080 SWIGINTERN PyObject *_wrap_ListItemAttr_AssignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26081 PyObject *resultobj = 0;
26082 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26083 wxListItemAttr *arg2 = 0 ;
26084 void *argp1 = 0 ;
26085 int res1 = 0 ;
26086 void *argp2 = 0 ;
26087 int res2 = 0 ;
26088 PyObject * obj0 = 0 ;
26089 PyObject * obj1 = 0 ;
26090 char * kwnames[] = {
26091 (char *) "self",(char *) "source", NULL
26092 };
26093
26094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_AssignFrom",kwnames,&obj0,&obj1)) SWIG_fail;
26095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26096 if (!SWIG_IsOK(res1)) {
26097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26098 }
26099 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26100 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItemAttr, 0 | 0);
26101 if (!SWIG_IsOK(res2)) {
26102 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26103 }
26104 if (!argp2) {
26105 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26106 }
26107 arg2 = reinterpret_cast< wxListItemAttr * >(argp2);
26108 {
26109 PyThreadState* __tstate = wxPyBeginAllowThreads();
26110 (arg1)->AssignFrom((wxListItemAttr const &)*arg2);
26111 wxPyEndAllowThreads(__tstate);
26112 if (PyErr_Occurred()) SWIG_fail;
26113 }
26114 resultobj = SWIG_Py_Void();
26115 return resultobj;
26116 fail:
26117 return NULL;
26118 }
26119
26120
26121 SWIGINTERN PyObject *_wrap_ListItemAttr_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26122 PyObject *resultobj = 0;
26123 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26124 void *argp1 = 0 ;
26125 int res1 = 0 ;
26126 PyObject *swig_obj[1] ;
26127
26128 if (!args) SWIG_fail;
26129 swig_obj[0] = args;
26130 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26131 if (!SWIG_IsOK(res1)) {
26132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_Destroy" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26133 }
26134 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26135 {
26136 PyThreadState* __tstate = wxPyBeginAllowThreads();
26137 wxListItemAttr_Destroy(arg1);
26138 wxPyEndAllowThreads(__tstate);
26139 if (PyErr_Occurred()) SWIG_fail;
26140 }
26141 resultobj = SWIG_Py_Void();
26142 return resultobj;
26143 fail:
26144 return NULL;
26145 }
26146
26147
26148 SWIGINTERN PyObject *ListItemAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26149 PyObject *obj;
26150 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26151 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItemAttr, SWIG_NewClientData(obj));
26152 return SWIG_Py_Void();
26153 }
26154
26155 SWIGINTERN PyObject *ListItemAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26156 return SWIG_Python_InitShadowInstance(args);
26157 }
26158
26159 SWIGINTERN PyObject *_wrap_new_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26160 PyObject *resultobj = 0;
26161 wxListItem *result = 0 ;
26162
26163 if (!SWIG_Python_UnpackTuple(args,"new_ListItem",0,0,0)) SWIG_fail;
26164 {
26165 PyThreadState* __tstate = wxPyBeginAllowThreads();
26166 result = (wxListItem *)new wxListItem();
26167 wxPyEndAllowThreads(__tstate);
26168 if (PyErr_Occurred()) SWIG_fail;
26169 }
26170 {
26171 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
26172 }
26173 return resultobj;
26174 fail:
26175 return NULL;
26176 }
26177
26178
26179 SWIGINTERN PyObject *_wrap_delete_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26180 PyObject *resultobj = 0;
26181 wxListItem *arg1 = (wxListItem *) 0 ;
26182 void *argp1 = 0 ;
26183 int res1 = 0 ;
26184 PyObject *swig_obj[1] ;
26185
26186 if (!args) SWIG_fail;
26187 swig_obj[0] = args;
26188 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, SWIG_POINTER_DISOWN | 0 );
26189 if (!SWIG_IsOK(res1)) {
26190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItem" "', expected argument " "1"" of type '" "wxListItem *""'");
26191 }
26192 arg1 = reinterpret_cast< wxListItem * >(argp1);
26193 {
26194 PyThreadState* __tstate = wxPyBeginAllowThreads();
26195 delete arg1;
26196
26197 wxPyEndAllowThreads(__tstate);
26198 if (PyErr_Occurred()) SWIG_fail;
26199 }
26200 resultobj = SWIG_Py_Void();
26201 return resultobj;
26202 fail:
26203 return NULL;
26204 }
26205
26206
26207 SWIGINTERN PyObject *_wrap_ListItem_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26208 PyObject *resultobj = 0;
26209 wxListItem *arg1 = (wxListItem *) 0 ;
26210 void *argp1 = 0 ;
26211 int res1 = 0 ;
26212 PyObject *swig_obj[1] ;
26213
26214 if (!args) SWIG_fail;
26215 swig_obj[0] = args;
26216 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26217 if (!SWIG_IsOK(res1)) {
26218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_Clear" "', expected argument " "1"" of type '" "wxListItem *""'");
26219 }
26220 arg1 = reinterpret_cast< wxListItem * >(argp1);
26221 {
26222 PyThreadState* __tstate = wxPyBeginAllowThreads();
26223 (arg1)->Clear();
26224 wxPyEndAllowThreads(__tstate);
26225 if (PyErr_Occurred()) SWIG_fail;
26226 }
26227 resultobj = SWIG_Py_Void();
26228 return resultobj;
26229 fail:
26230 return NULL;
26231 }
26232
26233
26234 SWIGINTERN PyObject *_wrap_ListItem_ClearAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26235 PyObject *resultobj = 0;
26236 wxListItem *arg1 = (wxListItem *) 0 ;
26237 void *argp1 = 0 ;
26238 int res1 = 0 ;
26239 PyObject *swig_obj[1] ;
26240
26241 if (!args) SWIG_fail;
26242 swig_obj[0] = args;
26243 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26244 if (!SWIG_IsOK(res1)) {
26245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_ClearAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26246 }
26247 arg1 = reinterpret_cast< wxListItem * >(argp1);
26248 {
26249 PyThreadState* __tstate = wxPyBeginAllowThreads();
26250 (arg1)->ClearAttributes();
26251 wxPyEndAllowThreads(__tstate);
26252 if (PyErr_Occurred()) SWIG_fail;
26253 }
26254 resultobj = SWIG_Py_Void();
26255 return resultobj;
26256 fail:
26257 return NULL;
26258 }
26259
26260
26261 SWIGINTERN PyObject *_wrap_ListItem_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26262 PyObject *resultobj = 0;
26263 wxListItem *arg1 = (wxListItem *) 0 ;
26264 long arg2 ;
26265 void *argp1 = 0 ;
26266 int res1 = 0 ;
26267 long val2 ;
26268 int ecode2 = 0 ;
26269 PyObject * obj0 = 0 ;
26270 PyObject * obj1 = 0 ;
26271 char * kwnames[] = {
26272 (char *) "self",(char *) "mask", NULL
26273 };
26274
26275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
26276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26277 if (!SWIG_IsOK(res1)) {
26278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26279 }
26280 arg1 = reinterpret_cast< wxListItem * >(argp1);
26281 ecode2 = SWIG_AsVal_long(obj1, &val2);
26282 if (!SWIG_IsOK(ecode2)) {
26283 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetMask" "', expected argument " "2"" of type '" "long""'");
26284 }
26285 arg2 = static_cast< long >(val2);
26286 {
26287 PyThreadState* __tstate = wxPyBeginAllowThreads();
26288 (arg1)->SetMask(arg2);
26289 wxPyEndAllowThreads(__tstate);
26290 if (PyErr_Occurred()) SWIG_fail;
26291 }
26292 resultobj = SWIG_Py_Void();
26293 return resultobj;
26294 fail:
26295 return NULL;
26296 }
26297
26298
26299 SWIGINTERN PyObject *_wrap_ListItem_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26300 PyObject *resultobj = 0;
26301 wxListItem *arg1 = (wxListItem *) 0 ;
26302 long arg2 ;
26303 void *argp1 = 0 ;
26304 int res1 = 0 ;
26305 long val2 ;
26306 int ecode2 = 0 ;
26307 PyObject * obj0 = 0 ;
26308 PyObject * obj1 = 0 ;
26309 char * kwnames[] = {
26310 (char *) "self",(char *) "id", NULL
26311 };
26312
26313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
26314 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26315 if (!SWIG_IsOK(res1)) {
26316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26317 }
26318 arg1 = reinterpret_cast< wxListItem * >(argp1);
26319 ecode2 = SWIG_AsVal_long(obj1, &val2);
26320 if (!SWIG_IsOK(ecode2)) {
26321 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetId" "', expected argument " "2"" of type '" "long""'");
26322 }
26323 arg2 = static_cast< long >(val2);
26324 {
26325 PyThreadState* __tstate = wxPyBeginAllowThreads();
26326 (arg1)->SetId(arg2);
26327 wxPyEndAllowThreads(__tstate);
26328 if (PyErr_Occurred()) SWIG_fail;
26329 }
26330 resultobj = SWIG_Py_Void();
26331 return resultobj;
26332 fail:
26333 return NULL;
26334 }
26335
26336
26337 SWIGINTERN PyObject *_wrap_ListItem_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26338 PyObject *resultobj = 0;
26339 wxListItem *arg1 = (wxListItem *) 0 ;
26340 int arg2 ;
26341 void *argp1 = 0 ;
26342 int res1 = 0 ;
26343 int val2 ;
26344 int ecode2 = 0 ;
26345 PyObject * obj0 = 0 ;
26346 PyObject * obj1 = 0 ;
26347 char * kwnames[] = {
26348 (char *) "self",(char *) "col", NULL
26349 };
26350
26351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
26352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26353 if (!SWIG_IsOK(res1)) {
26354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26355 }
26356 arg1 = reinterpret_cast< wxListItem * >(argp1);
26357 ecode2 = SWIG_AsVal_int(obj1, &val2);
26358 if (!SWIG_IsOK(ecode2)) {
26359 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetColumn" "', expected argument " "2"" of type '" "int""'");
26360 }
26361 arg2 = static_cast< int >(val2);
26362 {
26363 PyThreadState* __tstate = wxPyBeginAllowThreads();
26364 (arg1)->SetColumn(arg2);
26365 wxPyEndAllowThreads(__tstate);
26366 if (PyErr_Occurred()) SWIG_fail;
26367 }
26368 resultobj = SWIG_Py_Void();
26369 return resultobj;
26370 fail:
26371 return NULL;
26372 }
26373
26374
26375 SWIGINTERN PyObject *_wrap_ListItem_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26376 PyObject *resultobj = 0;
26377 wxListItem *arg1 = (wxListItem *) 0 ;
26378 long arg2 ;
26379 void *argp1 = 0 ;
26380 int res1 = 0 ;
26381 long val2 ;
26382 int ecode2 = 0 ;
26383 PyObject * obj0 = 0 ;
26384 PyObject * obj1 = 0 ;
26385 char * kwnames[] = {
26386 (char *) "self",(char *) "state", NULL
26387 };
26388
26389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) SWIG_fail;
26390 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26391 if (!SWIG_IsOK(res1)) {
26392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26393 }
26394 arg1 = reinterpret_cast< wxListItem * >(argp1);
26395 ecode2 = SWIG_AsVal_long(obj1, &val2);
26396 if (!SWIG_IsOK(ecode2)) {
26397 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetState" "', expected argument " "2"" of type '" "long""'");
26398 }
26399 arg2 = static_cast< long >(val2);
26400 {
26401 PyThreadState* __tstate = wxPyBeginAllowThreads();
26402 (arg1)->SetState(arg2);
26403 wxPyEndAllowThreads(__tstate);
26404 if (PyErr_Occurred()) SWIG_fail;
26405 }
26406 resultobj = SWIG_Py_Void();
26407 return resultobj;
26408 fail:
26409 return NULL;
26410 }
26411
26412
26413 SWIGINTERN PyObject *_wrap_ListItem_SetStateMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26414 PyObject *resultobj = 0;
26415 wxListItem *arg1 = (wxListItem *) 0 ;
26416 long arg2 ;
26417 void *argp1 = 0 ;
26418 int res1 = 0 ;
26419 long val2 ;
26420 int ecode2 = 0 ;
26421 PyObject * obj0 = 0 ;
26422 PyObject * obj1 = 0 ;
26423 char * kwnames[] = {
26424 (char *) "self",(char *) "stateMask", NULL
26425 };
26426
26427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) SWIG_fail;
26428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26429 if (!SWIG_IsOK(res1)) {
26430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetStateMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26431 }
26432 arg1 = reinterpret_cast< wxListItem * >(argp1);
26433 ecode2 = SWIG_AsVal_long(obj1, &val2);
26434 if (!SWIG_IsOK(ecode2)) {
26435 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetStateMask" "', expected argument " "2"" of type '" "long""'");
26436 }
26437 arg2 = static_cast< long >(val2);
26438 {
26439 PyThreadState* __tstate = wxPyBeginAllowThreads();
26440 (arg1)->SetStateMask(arg2);
26441 wxPyEndAllowThreads(__tstate);
26442 if (PyErr_Occurred()) SWIG_fail;
26443 }
26444 resultobj = SWIG_Py_Void();
26445 return resultobj;
26446 fail:
26447 return NULL;
26448 }
26449
26450
26451 SWIGINTERN PyObject *_wrap_ListItem_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26452 PyObject *resultobj = 0;
26453 wxListItem *arg1 = (wxListItem *) 0 ;
26454 wxString *arg2 = 0 ;
26455 void *argp1 = 0 ;
26456 int res1 = 0 ;
26457 bool temp2 = false ;
26458 PyObject * obj0 = 0 ;
26459 PyObject * obj1 = 0 ;
26460 char * kwnames[] = {
26461 (char *) "self",(char *) "text", NULL
26462 };
26463
26464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) SWIG_fail;
26465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26466 if (!SWIG_IsOK(res1)) {
26467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26468 }
26469 arg1 = reinterpret_cast< wxListItem * >(argp1);
26470 {
26471 arg2 = wxString_in_helper(obj1);
26472 if (arg2 == NULL) SWIG_fail;
26473 temp2 = true;
26474 }
26475 {
26476 PyThreadState* __tstate = wxPyBeginAllowThreads();
26477 (arg1)->SetText((wxString const &)*arg2);
26478 wxPyEndAllowThreads(__tstate);
26479 if (PyErr_Occurred()) SWIG_fail;
26480 }
26481 resultobj = SWIG_Py_Void();
26482 {
26483 if (temp2)
26484 delete arg2;
26485 }
26486 return resultobj;
26487 fail:
26488 {
26489 if (temp2)
26490 delete arg2;
26491 }
26492 return NULL;
26493 }
26494
26495
26496 SWIGINTERN PyObject *_wrap_ListItem_SetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26497 PyObject *resultobj = 0;
26498 wxListItem *arg1 = (wxListItem *) 0 ;
26499 int arg2 ;
26500 void *argp1 = 0 ;
26501 int res1 = 0 ;
26502 int val2 ;
26503 int ecode2 = 0 ;
26504 PyObject * obj0 = 0 ;
26505 PyObject * obj1 = 0 ;
26506 char * kwnames[] = {
26507 (char *) "self",(char *) "image", NULL
26508 };
26509
26510 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) SWIG_fail;
26511 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26512 if (!SWIG_IsOK(res1)) {
26513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26514 }
26515 arg1 = reinterpret_cast< wxListItem * >(argp1);
26516 ecode2 = SWIG_AsVal_int(obj1, &val2);
26517 if (!SWIG_IsOK(ecode2)) {
26518 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetImage" "', expected argument " "2"" of type '" "int""'");
26519 }
26520 arg2 = static_cast< int >(val2);
26521 {
26522 PyThreadState* __tstate = wxPyBeginAllowThreads();
26523 (arg1)->SetImage(arg2);
26524 wxPyEndAllowThreads(__tstate);
26525 if (PyErr_Occurred()) SWIG_fail;
26526 }
26527 resultobj = SWIG_Py_Void();
26528 return resultobj;
26529 fail:
26530 return NULL;
26531 }
26532
26533
26534 SWIGINTERN PyObject *_wrap_ListItem_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26535 PyObject *resultobj = 0;
26536 wxListItem *arg1 = (wxListItem *) 0 ;
26537 long arg2 ;
26538 void *argp1 = 0 ;
26539 int res1 = 0 ;
26540 long val2 ;
26541 int ecode2 = 0 ;
26542 PyObject * obj0 = 0 ;
26543 PyObject * obj1 = 0 ;
26544 char * kwnames[] = {
26545 (char *) "self",(char *) "data", NULL
26546 };
26547
26548 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
26549 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26550 if (!SWIG_IsOK(res1)) {
26551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26552 }
26553 arg1 = reinterpret_cast< wxListItem * >(argp1);
26554 ecode2 = SWIG_AsVal_long(obj1, &val2);
26555 if (!SWIG_IsOK(ecode2)) {
26556 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetData" "', expected argument " "2"" of type '" "long""'");
26557 }
26558 arg2 = static_cast< long >(val2);
26559 {
26560 PyThreadState* __tstate = wxPyBeginAllowThreads();
26561 (arg1)->SetData(arg2);
26562 wxPyEndAllowThreads(__tstate);
26563 if (PyErr_Occurred()) SWIG_fail;
26564 }
26565 resultobj = SWIG_Py_Void();
26566 return resultobj;
26567 fail:
26568 return NULL;
26569 }
26570
26571
26572 SWIGINTERN PyObject *_wrap_ListItem_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26573 PyObject *resultobj = 0;
26574 wxListItem *arg1 = (wxListItem *) 0 ;
26575 int arg2 ;
26576 void *argp1 = 0 ;
26577 int res1 = 0 ;
26578 int val2 ;
26579 int ecode2 = 0 ;
26580 PyObject * obj0 = 0 ;
26581 PyObject * obj1 = 0 ;
26582 char * kwnames[] = {
26583 (char *) "self",(char *) "width", NULL
26584 };
26585
26586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
26587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26588 if (!SWIG_IsOK(res1)) {
26589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
26590 }
26591 arg1 = reinterpret_cast< wxListItem * >(argp1);
26592 ecode2 = SWIG_AsVal_int(obj1, &val2);
26593 if (!SWIG_IsOK(ecode2)) {
26594 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetWidth" "', expected argument " "2"" of type '" "int""'");
26595 }
26596 arg2 = static_cast< int >(val2);
26597 {
26598 PyThreadState* __tstate = wxPyBeginAllowThreads();
26599 (arg1)->SetWidth(arg2);
26600 wxPyEndAllowThreads(__tstate);
26601 if (PyErr_Occurred()) SWIG_fail;
26602 }
26603 resultobj = SWIG_Py_Void();
26604 return resultobj;
26605 fail:
26606 return NULL;
26607 }
26608
26609
26610 SWIGINTERN PyObject *_wrap_ListItem_SetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26611 PyObject *resultobj = 0;
26612 wxListItem *arg1 = (wxListItem *) 0 ;
26613 wxListColumnFormat arg2 ;
26614 void *argp1 = 0 ;
26615 int res1 = 0 ;
26616 int val2 ;
26617 int ecode2 = 0 ;
26618 PyObject * obj0 = 0 ;
26619 PyObject * obj1 = 0 ;
26620 char * kwnames[] = {
26621 (char *) "self",(char *) "align", NULL
26622 };
26623
26624 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) SWIG_fail;
26625 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26626 if (!SWIG_IsOK(res1)) {
26627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
26628 }
26629 arg1 = reinterpret_cast< wxListItem * >(argp1);
26630 ecode2 = SWIG_AsVal_int(obj1, &val2);
26631 if (!SWIG_IsOK(ecode2)) {
26632 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetAlign" "', expected argument " "2"" of type '" "wxListColumnFormat""'");
26633 }
26634 arg2 = static_cast< wxListColumnFormat >(val2);
26635 {
26636 PyThreadState* __tstate = wxPyBeginAllowThreads();
26637 (arg1)->SetAlign(arg2);
26638 wxPyEndAllowThreads(__tstate);
26639 if (PyErr_Occurred()) SWIG_fail;
26640 }
26641 resultobj = SWIG_Py_Void();
26642 return resultobj;
26643 fail:
26644 return NULL;
26645 }
26646
26647
26648 SWIGINTERN PyObject *_wrap_ListItem_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26649 PyObject *resultobj = 0;
26650 wxListItem *arg1 = (wxListItem *) 0 ;
26651 wxColour *arg2 = 0 ;
26652 void *argp1 = 0 ;
26653 int res1 = 0 ;
26654 wxColour temp2 ;
26655 PyObject * obj0 = 0 ;
26656 PyObject * obj1 = 0 ;
26657 char * kwnames[] = {
26658 (char *) "self",(char *) "colText", NULL
26659 };
26660
26661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
26662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26663 if (!SWIG_IsOK(res1)) {
26664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetTextColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26665 }
26666 arg1 = reinterpret_cast< wxListItem * >(argp1);
26667 {
26668 arg2 = &temp2;
26669 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26670 }
26671 {
26672 PyThreadState* __tstate = wxPyBeginAllowThreads();
26673 (arg1)->SetTextColour((wxColour const &)*arg2);
26674 wxPyEndAllowThreads(__tstate);
26675 if (PyErr_Occurred()) SWIG_fail;
26676 }
26677 resultobj = SWIG_Py_Void();
26678 return resultobj;
26679 fail:
26680 return NULL;
26681 }
26682
26683
26684 SWIGINTERN PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26685 PyObject *resultobj = 0;
26686 wxListItem *arg1 = (wxListItem *) 0 ;
26687 wxColour *arg2 = 0 ;
26688 void *argp1 = 0 ;
26689 int res1 = 0 ;
26690 wxColour temp2 ;
26691 PyObject * obj0 = 0 ;
26692 PyObject * obj1 = 0 ;
26693 char * kwnames[] = {
26694 (char *) "self",(char *) "colBack", NULL
26695 };
26696
26697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
26698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26699 if (!SWIG_IsOK(res1)) {
26700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26701 }
26702 arg1 = reinterpret_cast< wxListItem * >(argp1);
26703 {
26704 arg2 = &temp2;
26705 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26706 }
26707 {
26708 PyThreadState* __tstate = wxPyBeginAllowThreads();
26709 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
26710 wxPyEndAllowThreads(__tstate);
26711 if (PyErr_Occurred()) SWIG_fail;
26712 }
26713 resultobj = SWIG_Py_Void();
26714 return resultobj;
26715 fail:
26716 return NULL;
26717 }
26718
26719
26720 SWIGINTERN PyObject *_wrap_ListItem_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26721 PyObject *resultobj = 0;
26722 wxListItem *arg1 = (wxListItem *) 0 ;
26723 wxFont *arg2 = 0 ;
26724 void *argp1 = 0 ;
26725 int res1 = 0 ;
26726 void *argp2 = 0 ;
26727 int res2 = 0 ;
26728 PyObject * obj0 = 0 ;
26729 PyObject * obj1 = 0 ;
26730 char * kwnames[] = {
26731 (char *) "self",(char *) "font", NULL
26732 };
26733
26734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26736 if (!SWIG_IsOK(res1)) {
26737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetFont" "', expected argument " "1"" of type '" "wxListItem *""'");
26738 }
26739 arg1 = reinterpret_cast< wxListItem * >(argp1);
26740 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26741 if (!SWIG_IsOK(res2)) {
26742 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26743 }
26744 if (!argp2) {
26745 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26746 }
26747 arg2 = reinterpret_cast< wxFont * >(argp2);
26748 {
26749 PyThreadState* __tstate = wxPyBeginAllowThreads();
26750 (arg1)->SetFont((wxFont const &)*arg2);
26751 wxPyEndAllowThreads(__tstate);
26752 if (PyErr_Occurred()) SWIG_fail;
26753 }
26754 resultobj = SWIG_Py_Void();
26755 return resultobj;
26756 fail:
26757 return NULL;
26758 }
26759
26760
26761 SWIGINTERN PyObject *_wrap_ListItem_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26762 PyObject *resultobj = 0;
26763 wxListItem *arg1 = (wxListItem *) 0 ;
26764 long result;
26765 void *argp1 = 0 ;
26766 int res1 = 0 ;
26767 PyObject *swig_obj[1] ;
26768
26769 if (!args) SWIG_fail;
26770 swig_obj[0] = args;
26771 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26772 if (!SWIG_IsOK(res1)) {
26773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26774 }
26775 arg1 = reinterpret_cast< wxListItem * >(argp1);
26776 {
26777 PyThreadState* __tstate = wxPyBeginAllowThreads();
26778 result = (long)(arg1)->GetMask();
26779 wxPyEndAllowThreads(__tstate);
26780 if (PyErr_Occurred()) SWIG_fail;
26781 }
26782 resultobj = SWIG_From_long(static_cast< long >(result));
26783 return resultobj;
26784 fail:
26785 return NULL;
26786 }
26787
26788
26789 SWIGINTERN PyObject *_wrap_ListItem_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26790 PyObject *resultobj = 0;
26791 wxListItem *arg1 = (wxListItem *) 0 ;
26792 long result;
26793 void *argp1 = 0 ;
26794 int res1 = 0 ;
26795 PyObject *swig_obj[1] ;
26796
26797 if (!args) SWIG_fail;
26798 swig_obj[0] = args;
26799 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26800 if (!SWIG_IsOK(res1)) {
26801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26802 }
26803 arg1 = reinterpret_cast< wxListItem * >(argp1);
26804 {
26805 PyThreadState* __tstate = wxPyBeginAllowThreads();
26806 result = (long)(arg1)->GetId();
26807 wxPyEndAllowThreads(__tstate);
26808 if (PyErr_Occurred()) SWIG_fail;
26809 }
26810 resultobj = SWIG_From_long(static_cast< long >(result));
26811 return resultobj;
26812 fail:
26813 return NULL;
26814 }
26815
26816
26817 SWIGINTERN PyObject *_wrap_ListItem_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26818 PyObject *resultobj = 0;
26819 wxListItem *arg1 = (wxListItem *) 0 ;
26820 int result;
26821 void *argp1 = 0 ;
26822 int res1 = 0 ;
26823 PyObject *swig_obj[1] ;
26824
26825 if (!args) SWIG_fail;
26826 swig_obj[0] = args;
26827 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26828 if (!SWIG_IsOK(res1)) {
26829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26830 }
26831 arg1 = reinterpret_cast< wxListItem * >(argp1);
26832 {
26833 PyThreadState* __tstate = wxPyBeginAllowThreads();
26834 result = (int)(arg1)->GetColumn();
26835 wxPyEndAllowThreads(__tstate);
26836 if (PyErr_Occurred()) SWIG_fail;
26837 }
26838 resultobj = SWIG_From_int(static_cast< int >(result));
26839 return resultobj;
26840 fail:
26841 return NULL;
26842 }
26843
26844
26845 SWIGINTERN PyObject *_wrap_ListItem_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26846 PyObject *resultobj = 0;
26847 wxListItem *arg1 = (wxListItem *) 0 ;
26848 long result;
26849 void *argp1 = 0 ;
26850 int res1 = 0 ;
26851 PyObject *swig_obj[1] ;
26852
26853 if (!args) SWIG_fail;
26854 swig_obj[0] = args;
26855 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26856 if (!SWIG_IsOK(res1)) {
26857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26858 }
26859 arg1 = reinterpret_cast< wxListItem * >(argp1);
26860 {
26861 PyThreadState* __tstate = wxPyBeginAllowThreads();
26862 result = (long)(arg1)->GetState();
26863 wxPyEndAllowThreads(__tstate);
26864 if (PyErr_Occurred()) SWIG_fail;
26865 }
26866 resultobj = SWIG_From_long(static_cast< long >(result));
26867 return resultobj;
26868 fail:
26869 return NULL;
26870 }
26871
26872
26873 SWIGINTERN PyObject *_wrap_ListItem_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26874 PyObject *resultobj = 0;
26875 wxListItem *arg1 = (wxListItem *) 0 ;
26876 wxString *result = 0 ;
26877 void *argp1 = 0 ;
26878 int res1 = 0 ;
26879 PyObject *swig_obj[1] ;
26880
26881 if (!args) SWIG_fail;
26882 swig_obj[0] = args;
26883 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26884 if (!SWIG_IsOK(res1)) {
26885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26886 }
26887 arg1 = reinterpret_cast< wxListItem * >(argp1);
26888 {
26889 PyThreadState* __tstate = wxPyBeginAllowThreads();
26890 {
26891 wxString const &_result_ref = (arg1)->GetText();
26892 result = (wxString *) &_result_ref;
26893 }
26894 wxPyEndAllowThreads(__tstate);
26895 if (PyErr_Occurred()) SWIG_fail;
26896 }
26897 {
26898 #if wxUSE_UNICODE
26899 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
26900 #else
26901 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
26902 #endif
26903 }
26904 return resultobj;
26905 fail:
26906 return NULL;
26907 }
26908
26909
26910 SWIGINTERN PyObject *_wrap_ListItem_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26911 PyObject *resultobj = 0;
26912 wxListItem *arg1 = (wxListItem *) 0 ;
26913 int result;
26914 void *argp1 = 0 ;
26915 int res1 = 0 ;
26916 PyObject *swig_obj[1] ;
26917
26918 if (!args) SWIG_fail;
26919 swig_obj[0] = args;
26920 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26921 if (!SWIG_IsOK(res1)) {
26922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26923 }
26924 arg1 = reinterpret_cast< wxListItem * >(argp1);
26925 {
26926 PyThreadState* __tstate = wxPyBeginAllowThreads();
26927 result = (int)(arg1)->GetImage();
26928 wxPyEndAllowThreads(__tstate);
26929 if (PyErr_Occurred()) SWIG_fail;
26930 }
26931 resultobj = SWIG_From_int(static_cast< int >(result));
26932 return resultobj;
26933 fail:
26934 return NULL;
26935 }
26936
26937
26938 SWIGINTERN PyObject *_wrap_ListItem_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26939 PyObject *resultobj = 0;
26940 wxListItem *arg1 = (wxListItem *) 0 ;
26941 long result;
26942 void *argp1 = 0 ;
26943 int res1 = 0 ;
26944 PyObject *swig_obj[1] ;
26945
26946 if (!args) SWIG_fail;
26947 swig_obj[0] = args;
26948 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26949 if (!SWIG_IsOK(res1)) {
26950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26951 }
26952 arg1 = reinterpret_cast< wxListItem * >(argp1);
26953 {
26954 PyThreadState* __tstate = wxPyBeginAllowThreads();
26955 result = (long)(arg1)->GetData();
26956 wxPyEndAllowThreads(__tstate);
26957 if (PyErr_Occurred()) SWIG_fail;
26958 }
26959 resultobj = SWIG_From_long(static_cast< long >(result));
26960 return resultobj;
26961 fail:
26962 return NULL;
26963 }
26964
26965
26966 SWIGINTERN PyObject *_wrap_ListItem_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26967 PyObject *resultobj = 0;
26968 wxListItem *arg1 = (wxListItem *) 0 ;
26969 int result;
26970 void *argp1 = 0 ;
26971 int res1 = 0 ;
26972 PyObject *swig_obj[1] ;
26973
26974 if (!args) SWIG_fail;
26975 swig_obj[0] = args;
26976 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26977 if (!SWIG_IsOK(res1)) {
26978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
26979 }
26980 arg1 = reinterpret_cast< wxListItem * >(argp1);
26981 {
26982 PyThreadState* __tstate = wxPyBeginAllowThreads();
26983 result = (int)(arg1)->GetWidth();
26984 wxPyEndAllowThreads(__tstate);
26985 if (PyErr_Occurred()) SWIG_fail;
26986 }
26987 resultobj = SWIG_From_int(static_cast< int >(result));
26988 return resultobj;
26989 fail:
26990 return NULL;
26991 }
26992
26993
26994 SWIGINTERN PyObject *_wrap_ListItem_GetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26995 PyObject *resultobj = 0;
26996 wxListItem *arg1 = (wxListItem *) 0 ;
26997 wxListColumnFormat result;
26998 void *argp1 = 0 ;
26999 int res1 = 0 ;
27000 PyObject *swig_obj[1] ;
27001
27002 if (!args) SWIG_fail;
27003 swig_obj[0] = args;
27004 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27005 if (!SWIG_IsOK(res1)) {
27006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
27007 }
27008 arg1 = reinterpret_cast< wxListItem * >(argp1);
27009 {
27010 PyThreadState* __tstate = wxPyBeginAllowThreads();
27011 result = (wxListColumnFormat)(arg1)->GetAlign();
27012 wxPyEndAllowThreads(__tstate);
27013 if (PyErr_Occurred()) SWIG_fail;
27014 }
27015 resultobj = SWIG_From_int(static_cast< int >(result));
27016 return resultobj;
27017 fail:
27018 return NULL;
27019 }
27020
27021
27022 SWIGINTERN PyObject *_wrap_ListItem_GetAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27023 PyObject *resultobj = 0;
27024 wxListItem *arg1 = (wxListItem *) 0 ;
27025 wxListItemAttr *result = 0 ;
27026 void *argp1 = 0 ;
27027 int res1 = 0 ;
27028 PyObject *swig_obj[1] ;
27029
27030 if (!args) SWIG_fail;
27031 swig_obj[0] = args;
27032 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27033 if (!SWIG_IsOK(res1)) {
27034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27035 }
27036 arg1 = reinterpret_cast< wxListItem * >(argp1);
27037 {
27038 PyThreadState* __tstate = wxPyBeginAllowThreads();
27039 result = (wxListItemAttr *)(arg1)->GetAttributes();
27040 wxPyEndAllowThreads(__tstate);
27041 if (PyErr_Occurred()) SWIG_fail;
27042 }
27043 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, 0 | 0 );
27044 return resultobj;
27045 fail:
27046 return NULL;
27047 }
27048
27049
27050 SWIGINTERN PyObject *_wrap_ListItem_HasAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27051 PyObject *resultobj = 0;
27052 wxListItem *arg1 = (wxListItem *) 0 ;
27053 bool result;
27054 void *argp1 = 0 ;
27055 int res1 = 0 ;
27056 PyObject *swig_obj[1] ;
27057
27058 if (!args) SWIG_fail;
27059 swig_obj[0] = args;
27060 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27061 if (!SWIG_IsOK(res1)) {
27062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_HasAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27063 }
27064 arg1 = reinterpret_cast< wxListItem * >(argp1);
27065 {
27066 PyThreadState* __tstate = wxPyBeginAllowThreads();
27067 result = (bool)(arg1)->HasAttributes();
27068 wxPyEndAllowThreads(__tstate);
27069 if (PyErr_Occurred()) SWIG_fail;
27070 }
27071 {
27072 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27073 }
27074 return resultobj;
27075 fail:
27076 return NULL;
27077 }
27078
27079
27080 SWIGINTERN PyObject *_wrap_ListItem_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27081 PyObject *resultobj = 0;
27082 wxListItem *arg1 = (wxListItem *) 0 ;
27083 wxColour result;
27084 void *argp1 = 0 ;
27085 int res1 = 0 ;
27086 PyObject *swig_obj[1] ;
27087
27088 if (!args) SWIG_fail;
27089 swig_obj[0] = args;
27090 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27091 if (!SWIG_IsOK(res1)) {
27092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetTextColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27093 }
27094 arg1 = reinterpret_cast< wxListItem * >(argp1);
27095 {
27096 PyThreadState* __tstate = wxPyBeginAllowThreads();
27097 result = ((wxListItem const *)arg1)->GetTextColour();
27098 wxPyEndAllowThreads(__tstate);
27099 if (PyErr_Occurred()) SWIG_fail;
27100 }
27101 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27102 return resultobj;
27103 fail:
27104 return NULL;
27105 }
27106
27107
27108 SWIGINTERN PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27109 PyObject *resultobj = 0;
27110 wxListItem *arg1 = (wxListItem *) 0 ;
27111 wxColour result;
27112 void *argp1 = 0 ;
27113 int res1 = 0 ;
27114 PyObject *swig_obj[1] ;
27115
27116 if (!args) SWIG_fail;
27117 swig_obj[0] = args;
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_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27121 }
27122 arg1 = reinterpret_cast< wxListItem * >(argp1);
27123 {
27124 PyThreadState* __tstate = wxPyBeginAllowThreads();
27125 result = ((wxListItem const *)arg1)->GetBackgroundColour();
27126 wxPyEndAllowThreads(__tstate);
27127 if (PyErr_Occurred()) SWIG_fail;
27128 }
27129 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27130 return resultobj;
27131 fail:
27132 return NULL;
27133 }
27134
27135
27136 SWIGINTERN PyObject *_wrap_ListItem_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27137 PyObject *resultobj = 0;
27138 wxListItem *arg1 = (wxListItem *) 0 ;
27139 wxFont result;
27140 void *argp1 = 0 ;
27141 int res1 = 0 ;
27142 PyObject *swig_obj[1] ;
27143
27144 if (!args) SWIG_fail;
27145 swig_obj[0] = args;
27146 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27147 if (!SWIG_IsOK(res1)) {
27148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetFont" "', expected argument " "1"" of type '" "wxListItem const *""'");
27149 }
27150 arg1 = reinterpret_cast< wxListItem * >(argp1);
27151 {
27152 PyThreadState* __tstate = wxPyBeginAllowThreads();
27153 result = ((wxListItem const *)arg1)->GetFont();
27154 wxPyEndAllowThreads(__tstate);
27155 if (PyErr_Occurred()) SWIG_fail;
27156 }
27157 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
27158 return resultobj;
27159 fail:
27160 return NULL;
27161 }
27162
27163
27164 SWIGINTERN PyObject *_wrap_ListItem_m_mask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27165 PyObject *resultobj = 0;
27166 wxListItem *arg1 = (wxListItem *) 0 ;
27167 long arg2 ;
27168 void *argp1 = 0 ;
27169 int res1 = 0 ;
27170 long val2 ;
27171 int ecode2 = 0 ;
27172 PyObject *swig_obj[2] ;
27173
27174 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_mask_set",2,2,swig_obj)) SWIG_fail;
27175 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27176 if (!SWIG_IsOK(res1)) {
27177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27178 }
27179 arg1 = reinterpret_cast< wxListItem * >(argp1);
27180 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27181 if (!SWIG_IsOK(ecode2)) {
27182 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_mask_set" "', expected argument " "2"" of type '" "long""'");
27183 }
27184 arg2 = static_cast< long >(val2);
27185 if (arg1) (arg1)->m_mask = arg2;
27186
27187 resultobj = SWIG_Py_Void();
27188 return resultobj;
27189 fail:
27190 return NULL;
27191 }
27192
27193
27194 SWIGINTERN PyObject *_wrap_ListItem_m_mask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27195 PyObject *resultobj = 0;
27196 wxListItem *arg1 = (wxListItem *) 0 ;
27197 long result;
27198 void *argp1 = 0 ;
27199 int res1 = 0 ;
27200 PyObject *swig_obj[1] ;
27201
27202 if (!args) SWIG_fail;
27203 swig_obj[0] = args;
27204 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27205 if (!SWIG_IsOK(res1)) {
27206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27207 }
27208 arg1 = reinterpret_cast< wxListItem * >(argp1);
27209 result = (long) ((arg1)->m_mask);
27210 resultobj = SWIG_From_long(static_cast< long >(result));
27211 return resultobj;
27212 fail:
27213 return NULL;
27214 }
27215
27216
27217 SWIGINTERN PyObject *_wrap_ListItem_m_itemId_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27218 PyObject *resultobj = 0;
27219 wxListItem *arg1 = (wxListItem *) 0 ;
27220 long arg2 ;
27221 void *argp1 = 0 ;
27222 int res1 = 0 ;
27223 long val2 ;
27224 int ecode2 = 0 ;
27225 PyObject *swig_obj[2] ;
27226
27227 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_itemId_set",2,2,swig_obj)) SWIG_fail;
27228 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27229 if (!SWIG_IsOK(res1)) {
27230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27231 }
27232 arg1 = reinterpret_cast< wxListItem * >(argp1);
27233 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27234 if (!SWIG_IsOK(ecode2)) {
27235 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_itemId_set" "', expected argument " "2"" of type '" "long""'");
27236 }
27237 arg2 = static_cast< long >(val2);
27238 if (arg1) (arg1)->m_itemId = arg2;
27239
27240 resultobj = SWIG_Py_Void();
27241 return resultobj;
27242 fail:
27243 return NULL;
27244 }
27245
27246
27247 SWIGINTERN PyObject *_wrap_ListItem_m_itemId_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27248 PyObject *resultobj = 0;
27249 wxListItem *arg1 = (wxListItem *) 0 ;
27250 long result;
27251 void *argp1 = 0 ;
27252 int res1 = 0 ;
27253 PyObject *swig_obj[1] ;
27254
27255 if (!args) SWIG_fail;
27256 swig_obj[0] = args;
27257 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27258 if (!SWIG_IsOK(res1)) {
27259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27260 }
27261 arg1 = reinterpret_cast< wxListItem * >(argp1);
27262 result = (long) ((arg1)->m_itemId);
27263 resultobj = SWIG_From_long(static_cast< long >(result));
27264 return resultobj;
27265 fail:
27266 return NULL;
27267 }
27268
27269
27270 SWIGINTERN PyObject *_wrap_ListItem_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27271 PyObject *resultobj = 0;
27272 wxListItem *arg1 = (wxListItem *) 0 ;
27273 int arg2 ;
27274 void *argp1 = 0 ;
27275 int res1 = 0 ;
27276 int val2 ;
27277 int ecode2 = 0 ;
27278 PyObject *swig_obj[2] ;
27279
27280 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_col_set",2,2,swig_obj)) SWIG_fail;
27281 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27282 if (!SWIG_IsOK(res1)) {
27283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27284 }
27285 arg1 = reinterpret_cast< wxListItem * >(argp1);
27286 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27287 if (!SWIG_IsOK(ecode2)) {
27288 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_col_set" "', expected argument " "2"" of type '" "int""'");
27289 }
27290 arg2 = static_cast< int >(val2);
27291 if (arg1) (arg1)->m_col = arg2;
27292
27293 resultobj = SWIG_Py_Void();
27294 return resultobj;
27295 fail:
27296 return NULL;
27297 }
27298
27299
27300 SWIGINTERN PyObject *_wrap_ListItem_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27301 PyObject *resultobj = 0;
27302 wxListItem *arg1 = (wxListItem *) 0 ;
27303 int result;
27304 void *argp1 = 0 ;
27305 int res1 = 0 ;
27306 PyObject *swig_obj[1] ;
27307
27308 if (!args) SWIG_fail;
27309 swig_obj[0] = args;
27310 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27311 if (!SWIG_IsOK(res1)) {
27312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27313 }
27314 arg1 = reinterpret_cast< wxListItem * >(argp1);
27315 result = (int) ((arg1)->m_col);
27316 resultobj = SWIG_From_int(static_cast< int >(result));
27317 return resultobj;
27318 fail:
27319 return NULL;
27320 }
27321
27322
27323 SWIGINTERN PyObject *_wrap_ListItem_m_state_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27324 PyObject *resultobj = 0;
27325 wxListItem *arg1 = (wxListItem *) 0 ;
27326 long arg2 ;
27327 void *argp1 = 0 ;
27328 int res1 = 0 ;
27329 long val2 ;
27330 int ecode2 = 0 ;
27331 PyObject *swig_obj[2] ;
27332
27333 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_state_set",2,2,swig_obj)) SWIG_fail;
27334 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27335 if (!SWIG_IsOK(res1)) {
27336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27337 }
27338 arg1 = reinterpret_cast< wxListItem * >(argp1);
27339 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27340 if (!SWIG_IsOK(ecode2)) {
27341 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_state_set" "', expected argument " "2"" of type '" "long""'");
27342 }
27343 arg2 = static_cast< long >(val2);
27344 if (arg1) (arg1)->m_state = arg2;
27345
27346 resultobj = SWIG_Py_Void();
27347 return resultobj;
27348 fail:
27349 return NULL;
27350 }
27351
27352
27353 SWIGINTERN PyObject *_wrap_ListItem_m_state_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27354 PyObject *resultobj = 0;
27355 wxListItem *arg1 = (wxListItem *) 0 ;
27356 long result;
27357 void *argp1 = 0 ;
27358 int res1 = 0 ;
27359 PyObject *swig_obj[1] ;
27360
27361 if (!args) SWIG_fail;
27362 swig_obj[0] = args;
27363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27364 if (!SWIG_IsOK(res1)) {
27365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27366 }
27367 arg1 = reinterpret_cast< wxListItem * >(argp1);
27368 result = (long) ((arg1)->m_state);
27369 resultobj = SWIG_From_long(static_cast< long >(result));
27370 return resultobj;
27371 fail:
27372 return NULL;
27373 }
27374
27375
27376 SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27377 PyObject *resultobj = 0;
27378 wxListItem *arg1 = (wxListItem *) 0 ;
27379 long arg2 ;
27380 void *argp1 = 0 ;
27381 int res1 = 0 ;
27382 long val2 ;
27383 int ecode2 = 0 ;
27384 PyObject *swig_obj[2] ;
27385
27386 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_stateMask_set",2,2,swig_obj)) SWIG_fail;
27387 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27388 if (!SWIG_IsOK(res1)) {
27389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27390 }
27391 arg1 = reinterpret_cast< wxListItem * >(argp1);
27392 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27393 if (!SWIG_IsOK(ecode2)) {
27394 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_stateMask_set" "', expected argument " "2"" of type '" "long""'");
27395 }
27396 arg2 = static_cast< long >(val2);
27397 if (arg1) (arg1)->m_stateMask = arg2;
27398
27399 resultobj = SWIG_Py_Void();
27400 return resultobj;
27401 fail:
27402 return NULL;
27403 }
27404
27405
27406 SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27407 PyObject *resultobj = 0;
27408 wxListItem *arg1 = (wxListItem *) 0 ;
27409 long result;
27410 void *argp1 = 0 ;
27411 int res1 = 0 ;
27412 PyObject *swig_obj[1] ;
27413
27414 if (!args) SWIG_fail;
27415 swig_obj[0] = args;
27416 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27417 if (!SWIG_IsOK(res1)) {
27418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27419 }
27420 arg1 = reinterpret_cast< wxListItem * >(argp1);
27421 result = (long) ((arg1)->m_stateMask);
27422 resultobj = SWIG_From_long(static_cast< long >(result));
27423 return resultobj;
27424 fail:
27425 return NULL;
27426 }
27427
27428
27429 SWIGINTERN PyObject *_wrap_ListItem_m_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27430 PyObject *resultobj = 0;
27431 wxListItem *arg1 = (wxListItem *) 0 ;
27432 wxString *arg2 = (wxString *) 0 ;
27433 void *argp1 = 0 ;
27434 int res1 = 0 ;
27435 bool temp2 = false ;
27436 PyObject *swig_obj[2] ;
27437
27438 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_text_set",2,2,swig_obj)) SWIG_fail;
27439 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27440 if (!SWIG_IsOK(res1)) {
27441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27442 }
27443 arg1 = reinterpret_cast< wxListItem * >(argp1);
27444 {
27445 arg2 = wxString_in_helper(swig_obj[1]);
27446 if (arg2 == NULL) SWIG_fail;
27447 temp2 = true;
27448 }
27449 if (arg1) (arg1)->m_text = *arg2;
27450
27451 resultobj = SWIG_Py_Void();
27452 {
27453 if (temp2)
27454 delete arg2;
27455 }
27456 return resultobj;
27457 fail:
27458 {
27459 if (temp2)
27460 delete arg2;
27461 }
27462 return NULL;
27463 }
27464
27465
27466 SWIGINTERN PyObject *_wrap_ListItem_m_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27467 PyObject *resultobj = 0;
27468 wxListItem *arg1 = (wxListItem *) 0 ;
27469 wxString *result = 0 ;
27470 void *argp1 = 0 ;
27471 int res1 = 0 ;
27472 PyObject *swig_obj[1] ;
27473
27474 if (!args) SWIG_fail;
27475 swig_obj[0] = args;
27476 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27477 if (!SWIG_IsOK(res1)) {
27478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27479 }
27480 arg1 = reinterpret_cast< wxListItem * >(argp1);
27481 result = (wxString *)& ((arg1)->m_text);
27482 {
27483 #if wxUSE_UNICODE
27484 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27485 #else
27486 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27487 #endif
27488 }
27489 return resultobj;
27490 fail:
27491 return NULL;
27492 }
27493
27494
27495 SWIGINTERN PyObject *_wrap_ListItem_m_image_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27496 PyObject *resultobj = 0;
27497 wxListItem *arg1 = (wxListItem *) 0 ;
27498 int arg2 ;
27499 void *argp1 = 0 ;
27500 int res1 = 0 ;
27501 int val2 ;
27502 int ecode2 = 0 ;
27503 PyObject *swig_obj[2] ;
27504
27505 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_image_set",2,2,swig_obj)) SWIG_fail;
27506 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27507 if (!SWIG_IsOK(res1)) {
27508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27509 }
27510 arg1 = reinterpret_cast< wxListItem * >(argp1);
27511 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27512 if (!SWIG_IsOK(ecode2)) {
27513 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_image_set" "', expected argument " "2"" of type '" "int""'");
27514 }
27515 arg2 = static_cast< int >(val2);
27516 if (arg1) (arg1)->m_image = arg2;
27517
27518 resultobj = SWIG_Py_Void();
27519 return resultobj;
27520 fail:
27521 return NULL;
27522 }
27523
27524
27525 SWIGINTERN PyObject *_wrap_ListItem_m_image_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27526 PyObject *resultobj = 0;
27527 wxListItem *arg1 = (wxListItem *) 0 ;
27528 int result;
27529 void *argp1 = 0 ;
27530 int res1 = 0 ;
27531 PyObject *swig_obj[1] ;
27532
27533 if (!args) SWIG_fail;
27534 swig_obj[0] = args;
27535 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27536 if (!SWIG_IsOK(res1)) {
27537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27538 }
27539 arg1 = reinterpret_cast< wxListItem * >(argp1);
27540 result = (int) ((arg1)->m_image);
27541 resultobj = SWIG_From_int(static_cast< int >(result));
27542 return resultobj;
27543 fail:
27544 return NULL;
27545 }
27546
27547
27548 SWIGINTERN PyObject *_wrap_ListItem_m_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27549 PyObject *resultobj = 0;
27550 wxListItem *arg1 = (wxListItem *) 0 ;
27551 long arg2 ;
27552 void *argp1 = 0 ;
27553 int res1 = 0 ;
27554 long val2 ;
27555 int ecode2 = 0 ;
27556 PyObject *swig_obj[2] ;
27557
27558 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_data_set",2,2,swig_obj)) SWIG_fail;
27559 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27560 if (!SWIG_IsOK(res1)) {
27561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27562 }
27563 arg1 = reinterpret_cast< wxListItem * >(argp1);
27564 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27565 if (!SWIG_IsOK(ecode2)) {
27566 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_data_set" "', expected argument " "2"" of type '" "long""'");
27567 }
27568 arg2 = static_cast< long >(val2);
27569 if (arg1) (arg1)->m_data = arg2;
27570
27571 resultobj = SWIG_Py_Void();
27572 return resultobj;
27573 fail:
27574 return NULL;
27575 }
27576
27577
27578 SWIGINTERN PyObject *_wrap_ListItem_m_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27579 PyObject *resultobj = 0;
27580 wxListItem *arg1 = (wxListItem *) 0 ;
27581 long result;
27582 void *argp1 = 0 ;
27583 int res1 = 0 ;
27584 PyObject *swig_obj[1] ;
27585
27586 if (!args) SWIG_fail;
27587 swig_obj[0] = args;
27588 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27589 if (!SWIG_IsOK(res1)) {
27590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27591 }
27592 arg1 = reinterpret_cast< wxListItem * >(argp1);
27593 result = (long) ((arg1)->m_data);
27594 resultobj = SWIG_From_long(static_cast< long >(result));
27595 return resultobj;
27596 fail:
27597 return NULL;
27598 }
27599
27600
27601 SWIGINTERN PyObject *_wrap_ListItem_m_format_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27602 PyObject *resultobj = 0;
27603 wxListItem *arg1 = (wxListItem *) 0 ;
27604 int arg2 ;
27605 void *argp1 = 0 ;
27606 int res1 = 0 ;
27607 int val2 ;
27608 int ecode2 = 0 ;
27609 PyObject *swig_obj[2] ;
27610
27611 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_format_set",2,2,swig_obj)) SWIG_fail;
27612 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27613 if (!SWIG_IsOK(res1)) {
27614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27615 }
27616 arg1 = reinterpret_cast< wxListItem * >(argp1);
27617 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27618 if (!SWIG_IsOK(ecode2)) {
27619 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_format_set" "', expected argument " "2"" of type '" "int""'");
27620 }
27621 arg2 = static_cast< int >(val2);
27622 if (arg1) (arg1)->m_format = arg2;
27623
27624 resultobj = SWIG_Py_Void();
27625 return resultobj;
27626 fail:
27627 return NULL;
27628 }
27629
27630
27631 SWIGINTERN PyObject *_wrap_ListItem_m_format_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27632 PyObject *resultobj = 0;
27633 wxListItem *arg1 = (wxListItem *) 0 ;
27634 int result;
27635 void *argp1 = 0 ;
27636 int res1 = 0 ;
27637 PyObject *swig_obj[1] ;
27638
27639 if (!args) SWIG_fail;
27640 swig_obj[0] = args;
27641 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27642 if (!SWIG_IsOK(res1)) {
27643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27644 }
27645 arg1 = reinterpret_cast< wxListItem * >(argp1);
27646 result = (int) ((arg1)->m_format);
27647 resultobj = SWIG_From_int(static_cast< int >(result));
27648 return resultobj;
27649 fail:
27650 return NULL;
27651 }
27652
27653
27654 SWIGINTERN PyObject *_wrap_ListItem_m_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27655 PyObject *resultobj = 0;
27656 wxListItem *arg1 = (wxListItem *) 0 ;
27657 int arg2 ;
27658 void *argp1 = 0 ;
27659 int res1 = 0 ;
27660 int val2 ;
27661 int ecode2 = 0 ;
27662 PyObject *swig_obj[2] ;
27663
27664 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_width_set",2,2,swig_obj)) SWIG_fail;
27665 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27666 if (!SWIG_IsOK(res1)) {
27667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27668 }
27669 arg1 = reinterpret_cast< wxListItem * >(argp1);
27670 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27671 if (!SWIG_IsOK(ecode2)) {
27672 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_width_set" "', expected argument " "2"" of type '" "int""'");
27673 }
27674 arg2 = static_cast< int >(val2);
27675 if (arg1) (arg1)->m_width = arg2;
27676
27677 resultobj = SWIG_Py_Void();
27678 return resultobj;
27679 fail:
27680 return NULL;
27681 }
27682
27683
27684 SWIGINTERN PyObject *_wrap_ListItem_m_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27685 PyObject *resultobj = 0;
27686 wxListItem *arg1 = (wxListItem *) 0 ;
27687 int result;
27688 void *argp1 = 0 ;
27689 int res1 = 0 ;
27690 PyObject *swig_obj[1] ;
27691
27692 if (!args) SWIG_fail;
27693 swig_obj[0] = args;
27694 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27695 if (!SWIG_IsOK(res1)) {
27696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27697 }
27698 arg1 = reinterpret_cast< wxListItem * >(argp1);
27699 result = (int) ((arg1)->m_width);
27700 resultobj = SWIG_From_int(static_cast< int >(result));
27701 return resultobj;
27702 fail:
27703 return NULL;
27704 }
27705
27706
27707 SWIGINTERN PyObject *ListItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27708 PyObject *obj;
27709 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27710 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItem, SWIG_NewClientData(obj));
27711 return SWIG_Py_Void();
27712 }
27713
27714 SWIGINTERN PyObject *ListItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27715 return SWIG_Python_InitShadowInstance(args);
27716 }
27717
27718 SWIGINTERN PyObject *_wrap_new_ListEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27719 PyObject *resultobj = 0;
27720 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
27721 int arg2 = (int) 0 ;
27722 wxListEvent *result = 0 ;
27723 int val1 ;
27724 int ecode1 = 0 ;
27725 int val2 ;
27726 int ecode2 = 0 ;
27727 PyObject * obj0 = 0 ;
27728 PyObject * obj1 = 0 ;
27729 char * kwnames[] = {
27730 (char *) "commandType",(char *) "id", NULL
27731 };
27732
27733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) SWIG_fail;
27734 if (obj0) {
27735 ecode1 = SWIG_AsVal_int(obj0, &val1);
27736 if (!SWIG_IsOK(ecode1)) {
27737 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListEvent" "', expected argument " "1"" of type '" "wxEventType""'");
27738 }
27739 arg1 = static_cast< wxEventType >(val1);
27740 }
27741 if (obj1) {
27742 ecode2 = SWIG_AsVal_int(obj1, &val2);
27743 if (!SWIG_IsOK(ecode2)) {
27744 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListEvent" "', expected argument " "2"" of type '" "int""'");
27745 }
27746 arg2 = static_cast< int >(val2);
27747 }
27748 {
27749 PyThreadState* __tstate = wxPyBeginAllowThreads();
27750 result = (wxListEvent *)new wxListEvent(arg1,arg2);
27751 wxPyEndAllowThreads(__tstate);
27752 if (PyErr_Occurred()) SWIG_fail;
27753 }
27754 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListEvent, SWIG_POINTER_NEW | 0 );
27755 return resultobj;
27756 fail:
27757 return NULL;
27758 }
27759
27760
27761 SWIGINTERN PyObject *_wrap_ListEvent_m_code_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27762 PyObject *resultobj = 0;
27763 wxListEvent *arg1 = (wxListEvent *) 0 ;
27764 int arg2 ;
27765 void *argp1 = 0 ;
27766 int res1 = 0 ;
27767 int val2 ;
27768 int ecode2 = 0 ;
27769 PyObject *swig_obj[2] ;
27770
27771 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_code_set",2,2,swig_obj)) SWIG_fail;
27772 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27773 if (!SWIG_IsOK(res1)) {
27774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27775 }
27776 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27777 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27778 if (!SWIG_IsOK(ecode2)) {
27779 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_code_set" "', expected argument " "2"" of type '" "int""'");
27780 }
27781 arg2 = static_cast< int >(val2);
27782 if (arg1) (arg1)->m_code = arg2;
27783
27784 resultobj = SWIG_Py_Void();
27785 return resultobj;
27786 fail:
27787 return NULL;
27788 }
27789
27790
27791 SWIGINTERN PyObject *_wrap_ListEvent_m_code_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27792 PyObject *resultobj = 0;
27793 wxListEvent *arg1 = (wxListEvent *) 0 ;
27794 int result;
27795 void *argp1 = 0 ;
27796 int res1 = 0 ;
27797 PyObject *swig_obj[1] ;
27798
27799 if (!args) SWIG_fail;
27800 swig_obj[0] = args;
27801 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27802 if (!SWIG_IsOK(res1)) {
27803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27804 }
27805 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27806 result = (int) ((arg1)->m_code);
27807 resultobj = SWIG_From_int(static_cast< int >(result));
27808 return resultobj;
27809 fail:
27810 return NULL;
27811 }
27812
27813
27814 SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27815 PyObject *resultobj = 0;
27816 wxListEvent *arg1 = (wxListEvent *) 0 ;
27817 long arg2 ;
27818 void *argp1 = 0 ;
27819 int res1 = 0 ;
27820 long val2 ;
27821 int ecode2 = 0 ;
27822 PyObject *swig_obj[2] ;
27823
27824 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_oldItemIndex_set",2,2,swig_obj)) SWIG_fail;
27825 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27826 if (!SWIG_IsOK(res1)) {
27827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27828 }
27829 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27830 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27831 if (!SWIG_IsOK(ecode2)) {
27832 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "2"" of type '" "long""'");
27833 }
27834 arg2 = static_cast< long >(val2);
27835 if (arg1) (arg1)->m_oldItemIndex = arg2;
27836
27837 resultobj = SWIG_Py_Void();
27838 return resultobj;
27839 fail:
27840 return NULL;
27841 }
27842
27843
27844 SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27845 PyObject *resultobj = 0;
27846 wxListEvent *arg1 = (wxListEvent *) 0 ;
27847 long result;
27848 void *argp1 = 0 ;
27849 int res1 = 0 ;
27850 PyObject *swig_obj[1] ;
27851
27852 if (!args) SWIG_fail;
27853 swig_obj[0] = args;
27854 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27855 if (!SWIG_IsOK(res1)) {
27856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27857 }
27858 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27859 result = (long) ((arg1)->m_oldItemIndex);
27860 resultobj = SWIG_From_long(static_cast< long >(result));
27861 return resultobj;
27862 fail:
27863 return NULL;
27864 }
27865
27866
27867 SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27868 PyObject *resultobj = 0;
27869 wxListEvent *arg1 = (wxListEvent *) 0 ;
27870 long arg2 ;
27871 void *argp1 = 0 ;
27872 int res1 = 0 ;
27873 long val2 ;
27874 int ecode2 = 0 ;
27875 PyObject *swig_obj[2] ;
27876
27877 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_itemIndex_set",2,2,swig_obj)) SWIG_fail;
27878 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27879 if (!SWIG_IsOK(res1)) {
27880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27881 }
27882 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27883 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27884 if (!SWIG_IsOK(ecode2)) {
27885 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "2"" of type '" "long""'");
27886 }
27887 arg2 = static_cast< long >(val2);
27888 if (arg1) (arg1)->m_itemIndex = arg2;
27889
27890 resultobj = SWIG_Py_Void();
27891 return resultobj;
27892 fail:
27893 return NULL;
27894 }
27895
27896
27897 SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27898 PyObject *resultobj = 0;
27899 wxListEvent *arg1 = (wxListEvent *) 0 ;
27900 long result;
27901 void *argp1 = 0 ;
27902 int res1 = 0 ;
27903 PyObject *swig_obj[1] ;
27904
27905 if (!args) SWIG_fail;
27906 swig_obj[0] = args;
27907 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27908 if (!SWIG_IsOK(res1)) {
27909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27910 }
27911 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27912 result = (long) ((arg1)->m_itemIndex);
27913 resultobj = SWIG_From_long(static_cast< long >(result));
27914 return resultobj;
27915 fail:
27916 return NULL;
27917 }
27918
27919
27920 SWIGINTERN PyObject *_wrap_ListEvent_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27921 PyObject *resultobj = 0;
27922 wxListEvent *arg1 = (wxListEvent *) 0 ;
27923 int arg2 ;
27924 void *argp1 = 0 ;
27925 int res1 = 0 ;
27926 int val2 ;
27927 int ecode2 = 0 ;
27928 PyObject *swig_obj[2] ;
27929
27930 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_col_set",2,2,swig_obj)) SWIG_fail;
27931 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27932 if (!SWIG_IsOK(res1)) {
27933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27934 }
27935 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27936 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27937 if (!SWIG_IsOK(ecode2)) {
27938 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_col_set" "', expected argument " "2"" of type '" "int""'");
27939 }
27940 arg2 = static_cast< int >(val2);
27941 if (arg1) (arg1)->m_col = arg2;
27942
27943 resultobj = SWIG_Py_Void();
27944 return resultobj;
27945 fail:
27946 return NULL;
27947 }
27948
27949
27950 SWIGINTERN PyObject *_wrap_ListEvent_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27951 PyObject *resultobj = 0;
27952 wxListEvent *arg1 = (wxListEvent *) 0 ;
27953 int result;
27954 void *argp1 = 0 ;
27955 int res1 = 0 ;
27956 PyObject *swig_obj[1] ;
27957
27958 if (!args) SWIG_fail;
27959 swig_obj[0] = args;
27960 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27961 if (!SWIG_IsOK(res1)) {
27962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27963 }
27964 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27965 result = (int) ((arg1)->m_col);
27966 resultobj = SWIG_From_int(static_cast< int >(result));
27967 return resultobj;
27968 fail:
27969 return NULL;
27970 }
27971
27972
27973 SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27974 PyObject *resultobj = 0;
27975 wxListEvent *arg1 = (wxListEvent *) 0 ;
27976 wxPoint *arg2 = (wxPoint *) 0 ;
27977 void *argp1 = 0 ;
27978 int res1 = 0 ;
27979 void *argp2 = 0 ;
27980 int res2 = 0 ;
27981 PyObject *swig_obj[2] ;
27982
27983 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_pointDrag_set",2,2,swig_obj)) SWIG_fail;
27984 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27985 if (!SWIG_IsOK(res1)) {
27986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27987 }
27988 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27989 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPoint, 0 | 0 );
27990 if (!SWIG_IsOK(res2)) {
27991 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "2"" of type '" "wxPoint *""'");
27992 }
27993 arg2 = reinterpret_cast< wxPoint * >(argp2);
27994 if (arg1) (arg1)->m_pointDrag = *arg2;
27995
27996 resultobj = SWIG_Py_Void();
27997 return resultobj;
27998 fail:
27999 return NULL;
28000 }
28001
28002
28003 SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28004 PyObject *resultobj = 0;
28005 wxListEvent *arg1 = (wxListEvent *) 0 ;
28006 wxPoint *result = 0 ;
28007 void *argp1 = 0 ;
28008 int res1 = 0 ;
28009 PyObject *swig_obj[1] ;
28010
28011 if (!args) SWIG_fail;
28012 swig_obj[0] = args;
28013 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28014 if (!SWIG_IsOK(res1)) {
28015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28016 }
28017 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28018 result = (wxPoint *)& ((arg1)->m_pointDrag);
28019 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, 0 | 0 );
28020 return resultobj;
28021 fail:
28022 return NULL;
28023 }
28024
28025
28026 SWIGINTERN PyObject *_wrap_ListEvent_m_item_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28027 PyObject *resultobj = 0;
28028 wxListEvent *arg1 = (wxListEvent *) 0 ;
28029 wxListItem *result = 0 ;
28030 void *argp1 = 0 ;
28031 int res1 = 0 ;
28032 PyObject *swig_obj[1] ;
28033
28034 if (!args) SWIG_fail;
28035 swig_obj[0] = args;
28036 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28037 if (!SWIG_IsOK(res1)) {
28038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_item_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28039 }
28040 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28041 result = (wxListItem *)& ((arg1)->m_item);
28042 {
28043 resultobj = wxPyMake_wxObject(result, (bool)0);
28044 }
28045 return resultobj;
28046 fail:
28047 return NULL;
28048 }
28049
28050
28051 SWIGINTERN PyObject *_wrap_ListEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28052 PyObject *resultobj = 0;
28053 wxListEvent *arg1 = (wxListEvent *) 0 ;
28054 int result;
28055 void *argp1 = 0 ;
28056 int res1 = 0 ;
28057 PyObject *swig_obj[1] ;
28058
28059 if (!args) SWIG_fail;
28060 swig_obj[0] = args;
28061 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28062 if (!SWIG_IsOK(res1)) {
28063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxListEvent *""'");
28064 }
28065 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28066 {
28067 PyThreadState* __tstate = wxPyBeginAllowThreads();
28068 result = (int)(arg1)->GetKeyCode();
28069 wxPyEndAllowThreads(__tstate);
28070 if (PyErr_Occurred()) SWIG_fail;
28071 }
28072 resultobj = SWIG_From_int(static_cast< int >(result));
28073 return resultobj;
28074 fail:
28075 return NULL;
28076 }
28077
28078
28079 SWIGINTERN PyObject *_wrap_ListEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28080 PyObject *resultobj = 0;
28081 wxListEvent *arg1 = (wxListEvent *) 0 ;
28082 long result;
28083 void *argp1 = 0 ;
28084 int res1 = 0 ;
28085 PyObject *swig_obj[1] ;
28086
28087 if (!args) SWIG_fail;
28088 swig_obj[0] = args;
28089 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28090 if (!SWIG_IsOK(res1)) {
28091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetIndex" "', expected argument " "1"" of type '" "wxListEvent *""'");
28092 }
28093 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28094 {
28095 PyThreadState* __tstate = wxPyBeginAllowThreads();
28096 result = (long)(arg1)->GetIndex();
28097 wxPyEndAllowThreads(__tstate);
28098 if (PyErr_Occurred()) SWIG_fail;
28099 }
28100 resultobj = SWIG_From_long(static_cast< long >(result));
28101 return resultobj;
28102 fail:
28103 return NULL;
28104 }
28105
28106
28107 SWIGINTERN PyObject *_wrap_ListEvent_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28108 PyObject *resultobj = 0;
28109 wxListEvent *arg1 = (wxListEvent *) 0 ;
28110 int result;
28111 void *argp1 = 0 ;
28112 int res1 = 0 ;
28113 PyObject *swig_obj[1] ;
28114
28115 if (!args) SWIG_fail;
28116 swig_obj[0] = args;
28117 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28118 if (!SWIG_IsOK(res1)) {
28119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetColumn" "', expected argument " "1"" of type '" "wxListEvent *""'");
28120 }
28121 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28122 {
28123 PyThreadState* __tstate = wxPyBeginAllowThreads();
28124 result = (int)(arg1)->GetColumn();
28125 wxPyEndAllowThreads(__tstate);
28126 if (PyErr_Occurred()) SWIG_fail;
28127 }
28128 resultobj = SWIG_From_int(static_cast< int >(result));
28129 return resultobj;
28130 fail:
28131 return NULL;
28132 }
28133
28134
28135 SWIGINTERN PyObject *_wrap_ListEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28136 PyObject *resultobj = 0;
28137 wxListEvent *arg1 = (wxListEvent *) 0 ;
28138 wxPoint result;
28139 void *argp1 = 0 ;
28140 int res1 = 0 ;
28141 PyObject *swig_obj[1] ;
28142
28143 if (!args) SWIG_fail;
28144 swig_obj[0] = args;
28145 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28146 if (!SWIG_IsOK(res1)) {
28147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetPoint" "', expected argument " "1"" of type '" "wxListEvent *""'");
28148 }
28149 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28150 {
28151 PyThreadState* __tstate = wxPyBeginAllowThreads();
28152 result = (arg1)->GetPoint();
28153 wxPyEndAllowThreads(__tstate);
28154 if (PyErr_Occurred()) SWIG_fail;
28155 }
28156 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
28157 return resultobj;
28158 fail:
28159 return NULL;
28160 }
28161
28162
28163 SWIGINTERN PyObject *_wrap_ListEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28164 PyObject *resultobj = 0;
28165 wxListEvent *arg1 = (wxListEvent *) 0 ;
28166 wxString *result = 0 ;
28167 void *argp1 = 0 ;
28168 int res1 = 0 ;
28169 PyObject *swig_obj[1] ;
28170
28171 if (!args) SWIG_fail;
28172 swig_obj[0] = args;
28173 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28174 if (!SWIG_IsOK(res1)) {
28175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetLabel" "', expected argument " "1"" of type '" "wxListEvent *""'");
28176 }
28177 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28178 {
28179 PyThreadState* __tstate = wxPyBeginAllowThreads();
28180 {
28181 wxString const &_result_ref = (arg1)->GetLabel();
28182 result = (wxString *) &_result_ref;
28183 }
28184 wxPyEndAllowThreads(__tstate);
28185 if (PyErr_Occurred()) SWIG_fail;
28186 }
28187 {
28188 #if wxUSE_UNICODE
28189 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28190 #else
28191 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28192 #endif
28193 }
28194 return resultobj;
28195 fail:
28196 return NULL;
28197 }
28198
28199
28200 SWIGINTERN PyObject *_wrap_ListEvent_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28201 PyObject *resultobj = 0;
28202 wxListEvent *arg1 = (wxListEvent *) 0 ;
28203 wxString *result = 0 ;
28204 void *argp1 = 0 ;
28205 int res1 = 0 ;
28206 PyObject *swig_obj[1] ;
28207
28208 if (!args) SWIG_fail;
28209 swig_obj[0] = args;
28210 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28211 if (!SWIG_IsOK(res1)) {
28212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetText" "', expected argument " "1"" of type '" "wxListEvent *""'");
28213 }
28214 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28215 {
28216 PyThreadState* __tstate = wxPyBeginAllowThreads();
28217 {
28218 wxString const &_result_ref = (arg1)->GetText();
28219 result = (wxString *) &_result_ref;
28220 }
28221 wxPyEndAllowThreads(__tstate);
28222 if (PyErr_Occurred()) SWIG_fail;
28223 }
28224 {
28225 #if wxUSE_UNICODE
28226 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28227 #else
28228 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28229 #endif
28230 }
28231 return resultobj;
28232 fail:
28233 return NULL;
28234 }
28235
28236
28237 SWIGINTERN PyObject *_wrap_ListEvent_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28238 PyObject *resultobj = 0;
28239 wxListEvent *arg1 = (wxListEvent *) 0 ;
28240 int result;
28241 void *argp1 = 0 ;
28242 int res1 = 0 ;
28243 PyObject *swig_obj[1] ;
28244
28245 if (!args) SWIG_fail;
28246 swig_obj[0] = args;
28247 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28248 if (!SWIG_IsOK(res1)) {
28249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetImage" "', expected argument " "1"" of type '" "wxListEvent *""'");
28250 }
28251 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28252 {
28253 PyThreadState* __tstate = wxPyBeginAllowThreads();
28254 result = (int)(arg1)->GetImage();
28255 wxPyEndAllowThreads(__tstate);
28256 if (PyErr_Occurred()) SWIG_fail;
28257 }
28258 resultobj = SWIG_From_int(static_cast< int >(result));
28259 return resultobj;
28260 fail:
28261 return NULL;
28262 }
28263
28264
28265 SWIGINTERN PyObject *_wrap_ListEvent_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28266 PyObject *resultobj = 0;
28267 wxListEvent *arg1 = (wxListEvent *) 0 ;
28268 long result;
28269 void *argp1 = 0 ;
28270 int res1 = 0 ;
28271 PyObject *swig_obj[1] ;
28272
28273 if (!args) SWIG_fail;
28274 swig_obj[0] = args;
28275 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28276 if (!SWIG_IsOK(res1)) {
28277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetData" "', expected argument " "1"" of type '" "wxListEvent *""'");
28278 }
28279 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28280 {
28281 PyThreadState* __tstate = wxPyBeginAllowThreads();
28282 result = (long)(arg1)->GetData();
28283 wxPyEndAllowThreads(__tstate);
28284 if (PyErr_Occurred()) SWIG_fail;
28285 }
28286 resultobj = SWIG_From_long(static_cast< long >(result));
28287 return resultobj;
28288 fail:
28289 return NULL;
28290 }
28291
28292
28293 SWIGINTERN PyObject *_wrap_ListEvent_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28294 PyObject *resultobj = 0;
28295 wxListEvent *arg1 = (wxListEvent *) 0 ;
28296 long result;
28297 void *argp1 = 0 ;
28298 int res1 = 0 ;
28299 PyObject *swig_obj[1] ;
28300
28301 if (!args) SWIG_fail;
28302 swig_obj[0] = args;
28303 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28304 if (!SWIG_IsOK(res1)) {
28305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetMask" "', expected argument " "1"" of type '" "wxListEvent *""'");
28306 }
28307 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28308 {
28309 PyThreadState* __tstate = wxPyBeginAllowThreads();
28310 result = (long)(arg1)->GetMask();
28311 wxPyEndAllowThreads(__tstate);
28312 if (PyErr_Occurred()) SWIG_fail;
28313 }
28314 resultobj = SWIG_From_long(static_cast< long >(result));
28315 return resultobj;
28316 fail:
28317 return NULL;
28318 }
28319
28320
28321 SWIGINTERN PyObject *_wrap_ListEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28322 PyObject *resultobj = 0;
28323 wxListEvent *arg1 = (wxListEvent *) 0 ;
28324 wxListItem *result = 0 ;
28325 void *argp1 = 0 ;
28326 int res1 = 0 ;
28327 PyObject *swig_obj[1] ;
28328
28329 if (!args) SWIG_fail;
28330 swig_obj[0] = args;
28331 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28332 if (!SWIG_IsOK(res1)) {
28333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetItem" "', expected argument " "1"" of type '" "wxListEvent *""'");
28334 }
28335 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28336 {
28337 PyThreadState* __tstate = wxPyBeginAllowThreads();
28338 {
28339 wxListItem const &_result_ref = (arg1)->GetItem();
28340 result = (wxListItem *) &_result_ref;
28341 }
28342 wxPyEndAllowThreads(__tstate);
28343 if (PyErr_Occurred()) SWIG_fail;
28344 }
28345 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, 0 | 0 );
28346 return resultobj;
28347 fail:
28348 return NULL;
28349 }
28350
28351
28352 SWIGINTERN PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28353 PyObject *resultobj = 0;
28354 wxListEvent *arg1 = (wxListEvent *) 0 ;
28355 long result;
28356 void *argp1 = 0 ;
28357 int res1 = 0 ;
28358 PyObject *swig_obj[1] ;
28359
28360 if (!args) SWIG_fail;
28361 swig_obj[0] = args;
28362 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28363 if (!SWIG_IsOK(res1)) {
28364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheFrom" "', expected argument " "1"" of type '" "wxListEvent *""'");
28365 }
28366 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28367 {
28368 PyThreadState* __tstate = wxPyBeginAllowThreads();
28369 result = (long)(arg1)->GetCacheFrom();
28370 wxPyEndAllowThreads(__tstate);
28371 if (PyErr_Occurred()) SWIG_fail;
28372 }
28373 resultobj = SWIG_From_long(static_cast< long >(result));
28374 return resultobj;
28375 fail:
28376 return NULL;
28377 }
28378
28379
28380 SWIGINTERN PyObject *_wrap_ListEvent_GetCacheTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28381 PyObject *resultobj = 0;
28382 wxListEvent *arg1 = (wxListEvent *) 0 ;
28383 long result;
28384 void *argp1 = 0 ;
28385 int res1 = 0 ;
28386 PyObject *swig_obj[1] ;
28387
28388 if (!args) SWIG_fail;
28389 swig_obj[0] = args;
28390 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28391 if (!SWIG_IsOK(res1)) {
28392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheTo" "', expected argument " "1"" of type '" "wxListEvent *""'");
28393 }
28394 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28395 {
28396 PyThreadState* __tstate = wxPyBeginAllowThreads();
28397 result = (long)(arg1)->GetCacheTo();
28398 wxPyEndAllowThreads(__tstate);
28399 if (PyErr_Occurred()) SWIG_fail;
28400 }
28401 resultobj = SWIG_From_long(static_cast< long >(result));
28402 return resultobj;
28403 fail:
28404 return NULL;
28405 }
28406
28407
28408 SWIGINTERN PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28409 PyObject *resultobj = 0;
28410 wxListEvent *arg1 = (wxListEvent *) 0 ;
28411 bool result;
28412 void *argp1 = 0 ;
28413 int res1 = 0 ;
28414 PyObject *swig_obj[1] ;
28415
28416 if (!args) SWIG_fail;
28417 swig_obj[0] = args;
28418 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28419 if (!SWIG_IsOK(res1)) {
28420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxListEvent const *""'");
28421 }
28422 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28423 {
28424 PyThreadState* __tstate = wxPyBeginAllowThreads();
28425 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
28426 wxPyEndAllowThreads(__tstate);
28427 if (PyErr_Occurred()) SWIG_fail;
28428 }
28429 {
28430 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28431 }
28432 return resultobj;
28433 fail:
28434 return NULL;
28435 }
28436
28437
28438 SWIGINTERN PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28439 PyObject *resultobj = 0;
28440 wxListEvent *arg1 = (wxListEvent *) 0 ;
28441 bool arg2 ;
28442 void *argp1 = 0 ;
28443 int res1 = 0 ;
28444 bool val2 ;
28445 int ecode2 = 0 ;
28446 PyObject * obj0 = 0 ;
28447 PyObject * obj1 = 0 ;
28448 char * kwnames[] = {
28449 (char *) "self",(char *) "editCancelled", NULL
28450 };
28451
28452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
28453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28454 if (!SWIG_IsOK(res1)) {
28455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxListEvent *""'");
28456 }
28457 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28458 ecode2 = SWIG_AsVal_bool(obj1, &val2);
28459 if (!SWIG_IsOK(ecode2)) {
28460 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
28461 }
28462 arg2 = static_cast< bool >(val2);
28463 {
28464 PyThreadState* __tstate = wxPyBeginAllowThreads();
28465 (arg1)->SetEditCanceled(arg2);
28466 wxPyEndAllowThreads(__tstate);
28467 if (PyErr_Occurred()) SWIG_fail;
28468 }
28469 resultobj = SWIG_Py_Void();
28470 return resultobj;
28471 fail:
28472 return NULL;
28473 }
28474
28475
28476 SWIGINTERN PyObject *ListEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28477 PyObject *obj;
28478 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28479 SWIG_TypeNewClientData(SWIGTYPE_p_wxListEvent, SWIG_NewClientData(obj));
28480 return SWIG_Py_Void();
28481 }
28482
28483 SWIGINTERN PyObject *ListEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28484 return SWIG_Python_InitShadowInstance(args);
28485 }
28486
28487 SWIGINTERN PyObject *_wrap_new_ListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28488 PyObject *resultobj = 0;
28489 wxWindow *arg1 = (wxWindow *) 0 ;
28490 int arg2 = (int) -1 ;
28491 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28492 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28493 wxSize const &arg4_defvalue = wxDefaultSize ;
28494 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28495 long arg5 = (long) wxLC_ICON ;
28496 wxValidator const &arg6_defvalue = wxDefaultValidator ;
28497 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
28498 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
28499 wxString *arg7 = (wxString *) &arg7_defvalue ;
28500 wxPyListCtrl *result = 0 ;
28501 void *argp1 = 0 ;
28502 int res1 = 0 ;
28503 int val2 ;
28504 int ecode2 = 0 ;
28505 wxPoint temp3 ;
28506 wxSize temp4 ;
28507 long val5 ;
28508 int ecode5 = 0 ;
28509 void *argp6 = 0 ;
28510 int res6 = 0 ;
28511 bool temp7 = false ;
28512 PyObject * obj0 = 0 ;
28513 PyObject * obj1 = 0 ;
28514 PyObject * obj2 = 0 ;
28515 PyObject * obj3 = 0 ;
28516 PyObject * obj4 = 0 ;
28517 PyObject * obj5 = 0 ;
28518 PyObject * obj6 = 0 ;
28519 char * kwnames[] = {
28520 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28521 };
28522
28523 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28524 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28525 if (!SWIG_IsOK(res1)) {
28526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
28527 }
28528 arg1 = reinterpret_cast< wxWindow * >(argp1);
28529 if (obj1) {
28530 ecode2 = SWIG_AsVal_int(obj1, &val2);
28531 if (!SWIG_IsOK(ecode2)) {
28532 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListCtrl" "', expected argument " "2"" of type '" "int""'");
28533 }
28534 arg2 = static_cast< int >(val2);
28535 }
28536 if (obj2) {
28537 {
28538 arg3 = &temp3;
28539 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28540 }
28541 }
28542 if (obj3) {
28543 {
28544 arg4 = &temp4;
28545 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
28546 }
28547 }
28548 if (obj4) {
28549 ecode5 = SWIG_AsVal_long(obj4, &val5);
28550 if (!SWIG_IsOK(ecode5)) {
28551 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListCtrl" "', expected argument " "5"" of type '" "long""'");
28552 }
28553 arg5 = static_cast< long >(val5);
28554 }
28555 if (obj5) {
28556 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
28557 if (!SWIG_IsOK(res6)) {
28558 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
28559 }
28560 if (!argp6) {
28561 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
28562 }
28563 arg6 = reinterpret_cast< wxValidator * >(argp6);
28564 }
28565 if (obj6) {
28566 {
28567 arg7 = wxString_in_helper(obj6);
28568 if (arg7 == NULL) SWIG_fail;
28569 temp7 = true;
28570 }
28571 }
28572 {
28573 if (!wxPyCheckForApp()) SWIG_fail;
28574 PyThreadState* __tstate = wxPyBeginAllowThreads();
28575 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
28576 wxPyEndAllowThreads(__tstate);
28577 if (PyErr_Occurred()) SWIG_fail;
28578 }
28579 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_NEW | 0 );
28580 {
28581 if (temp7)
28582 delete arg7;
28583 }
28584 return resultobj;
28585 fail:
28586 {
28587 if (temp7)
28588 delete arg7;
28589 }
28590 return NULL;
28591 }
28592
28593
28594 SWIGINTERN PyObject *_wrap_new_PreListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28595 PyObject *resultobj = 0;
28596 wxPyListCtrl *result = 0 ;
28597
28598 if (!SWIG_Python_UnpackTuple(args,"new_PreListCtrl",0,0,0)) SWIG_fail;
28599 {
28600 if (!wxPyCheckForApp()) SWIG_fail;
28601 PyThreadState* __tstate = wxPyBeginAllowThreads();
28602 result = (wxPyListCtrl *)new wxPyListCtrl();
28603 wxPyEndAllowThreads(__tstate);
28604 if (PyErr_Occurred()) SWIG_fail;
28605 }
28606 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_OWN | 0 );
28607 return resultobj;
28608 fail:
28609 return NULL;
28610 }
28611
28612
28613 SWIGINTERN PyObject *_wrap_ListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28614 PyObject *resultobj = 0;
28615 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28616 wxWindow *arg2 = (wxWindow *) 0 ;
28617 int arg3 = (int) -1 ;
28618 wxPoint const &arg4_defvalue = wxDefaultPosition ;
28619 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
28620 wxSize const &arg5_defvalue = wxDefaultSize ;
28621 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
28622 long arg6 = (long) wxLC_ICON ;
28623 wxValidator const &arg7_defvalue = wxDefaultValidator ;
28624 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
28625 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
28626 wxString *arg8 = (wxString *) &arg8_defvalue ;
28627 bool result;
28628 void *argp1 = 0 ;
28629 int res1 = 0 ;
28630 void *argp2 = 0 ;
28631 int res2 = 0 ;
28632 int val3 ;
28633 int ecode3 = 0 ;
28634 wxPoint temp4 ;
28635 wxSize temp5 ;
28636 long val6 ;
28637 int ecode6 = 0 ;
28638 void *argp7 = 0 ;
28639 int res7 = 0 ;
28640 bool temp8 = false ;
28641 PyObject * obj0 = 0 ;
28642 PyObject * obj1 = 0 ;
28643 PyObject * obj2 = 0 ;
28644 PyObject * obj3 = 0 ;
28645 PyObject * obj4 = 0 ;
28646 PyObject * obj5 = 0 ;
28647 PyObject * obj6 = 0 ;
28648 PyObject * obj7 = 0 ;
28649 char * kwnames[] = {
28650 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28651 };
28652
28653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28655 if (!SWIG_IsOK(res1)) {
28656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Create" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28657 }
28658 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28659 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28660 if (!SWIG_IsOK(res2)) {
28661 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
28662 }
28663 arg2 = reinterpret_cast< wxWindow * >(argp2);
28664 if (obj2) {
28665 ecode3 = SWIG_AsVal_int(obj2, &val3);
28666 if (!SWIG_IsOK(ecode3)) {
28667 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
28668 }
28669 arg3 = static_cast< int >(val3);
28670 }
28671 if (obj3) {
28672 {
28673 arg4 = &temp4;
28674 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
28675 }
28676 }
28677 if (obj4) {
28678 {
28679 arg5 = &temp5;
28680 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
28681 }
28682 }
28683 if (obj5) {
28684 ecode6 = SWIG_AsVal_long(obj5, &val6);
28685 if (!SWIG_IsOK(ecode6)) {
28686 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
28687 }
28688 arg6 = static_cast< long >(val6);
28689 }
28690 if (obj6) {
28691 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
28692 if (!SWIG_IsOK(res7)) {
28693 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
28694 }
28695 if (!argp7) {
28696 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
28697 }
28698 arg7 = reinterpret_cast< wxValidator * >(argp7);
28699 }
28700 if (obj7) {
28701 {
28702 arg8 = wxString_in_helper(obj7);
28703 if (arg8 == NULL) SWIG_fail;
28704 temp8 = true;
28705 }
28706 }
28707 {
28708 PyThreadState* __tstate = wxPyBeginAllowThreads();
28709 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
28710 wxPyEndAllowThreads(__tstate);
28711 if (PyErr_Occurred()) SWIG_fail;
28712 }
28713 {
28714 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28715 }
28716 {
28717 if (temp8)
28718 delete arg8;
28719 }
28720 return resultobj;
28721 fail:
28722 {
28723 if (temp8)
28724 delete arg8;
28725 }
28726 return NULL;
28727 }
28728
28729
28730 SWIGINTERN PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28731 PyObject *resultobj = 0;
28732 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28733 PyObject *arg2 = (PyObject *) 0 ;
28734 PyObject *arg3 = (PyObject *) 0 ;
28735 void *argp1 = 0 ;
28736 int res1 = 0 ;
28737 PyObject * obj0 = 0 ;
28738 PyObject * obj1 = 0 ;
28739 PyObject * obj2 = 0 ;
28740 char * kwnames[] = {
28741 (char *) "self",(char *) "self",(char *) "_class", NULL
28742 };
28743
28744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28745 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28746 if (!SWIG_IsOK(res1)) {
28747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28748 }
28749 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28750 arg2 = obj1;
28751 arg3 = obj2;
28752 {
28753 PyThreadState* __tstate = wxPyBeginAllowThreads();
28754 (arg1)->_setCallbackInfo(arg2,arg3);
28755 wxPyEndAllowThreads(__tstate);
28756 if (PyErr_Occurred()) SWIG_fail;
28757 }
28758 resultobj = SWIG_Py_Void();
28759 return resultobj;
28760 fail:
28761 return NULL;
28762 }
28763
28764
28765 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28766 PyObject *resultobj = 0;
28767 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28768 int arg2 ;
28769 wxListItem *result = 0 ;
28770 void *argp1 = 0 ;
28771 int res1 = 0 ;
28772 int val2 ;
28773 int ecode2 = 0 ;
28774 PyObject * obj0 = 0 ;
28775 PyObject * obj1 = 0 ;
28776 char * kwnames[] = {
28777 (char *) "self",(char *) "col", NULL
28778 };
28779
28780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
28781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28782 if (!SWIG_IsOK(res1)) {
28783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28784 }
28785 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28786 ecode2 = SWIG_AsVal_int(obj1, &val2);
28787 if (!SWIG_IsOK(ecode2)) {
28788 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumn" "', expected argument " "2"" of type '" "int""'");
28789 }
28790 arg2 = static_cast< int >(val2);
28791 {
28792 PyThreadState* __tstate = wxPyBeginAllowThreads();
28793 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
28794 wxPyEndAllowThreads(__tstate);
28795 if (PyErr_Occurred()) SWIG_fail;
28796 }
28797 {
28798 resultobj = wxPyMake_wxObject(result, (bool)0);
28799 }
28800 return resultobj;
28801 fail:
28802 return NULL;
28803 }
28804
28805
28806 SWIGINTERN PyObject *_wrap_ListCtrl_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28807 PyObject *resultobj = 0;
28808 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28809 int arg2 ;
28810 wxListItem *arg3 = 0 ;
28811 bool result;
28812 void *argp1 = 0 ;
28813 int res1 = 0 ;
28814 int val2 ;
28815 int ecode2 = 0 ;
28816 void *argp3 = 0 ;
28817 int res3 = 0 ;
28818 PyObject * obj0 = 0 ;
28819 PyObject * obj1 = 0 ;
28820 PyObject * obj2 = 0 ;
28821 char * kwnames[] = {
28822 (char *) "self",(char *) "col",(char *) "item", NULL
28823 };
28824
28825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28827 if (!SWIG_IsOK(res1)) {
28828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28829 }
28830 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28831 ecode2 = SWIG_AsVal_int(obj1, &val2);
28832 if (!SWIG_IsOK(ecode2)) {
28833 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumn" "', expected argument " "2"" of type '" "int""'");
28834 }
28835 arg2 = static_cast< int >(val2);
28836 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
28837 if (!SWIG_IsOK(res3)) {
28838 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
28839 }
28840 if (!argp3) {
28841 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
28842 }
28843 arg3 = reinterpret_cast< wxListItem * >(argp3);
28844 {
28845 PyThreadState* __tstate = wxPyBeginAllowThreads();
28846 result = (bool)(arg1)->SetColumn(arg2,*arg3);
28847 wxPyEndAllowThreads(__tstate);
28848 if (PyErr_Occurred()) SWIG_fail;
28849 }
28850 {
28851 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28852 }
28853 return resultobj;
28854 fail:
28855 return NULL;
28856 }
28857
28858
28859 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28860 PyObject *resultobj = 0;
28861 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28862 int arg2 ;
28863 int result;
28864 void *argp1 = 0 ;
28865 int res1 = 0 ;
28866 int val2 ;
28867 int ecode2 = 0 ;
28868 PyObject * obj0 = 0 ;
28869 PyObject * obj1 = 0 ;
28870 char * kwnames[] = {
28871 (char *) "self",(char *) "col", NULL
28872 };
28873
28874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) SWIG_fail;
28875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28876 if (!SWIG_IsOK(res1)) {
28877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28878 }
28879 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28880 ecode2 = SWIG_AsVal_int(obj1, &val2);
28881 if (!SWIG_IsOK(ecode2)) {
28882 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "2"" of type '" "int""'");
28883 }
28884 arg2 = static_cast< int >(val2);
28885 {
28886 PyThreadState* __tstate = wxPyBeginAllowThreads();
28887 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
28888 wxPyEndAllowThreads(__tstate);
28889 if (PyErr_Occurred()) SWIG_fail;
28890 }
28891 resultobj = SWIG_From_int(static_cast< int >(result));
28892 return resultobj;
28893 fail:
28894 return NULL;
28895 }
28896
28897
28898 SWIGINTERN PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28899 PyObject *resultobj = 0;
28900 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28901 int arg2 ;
28902 int arg3 ;
28903 bool result;
28904 void *argp1 = 0 ;
28905 int res1 = 0 ;
28906 int val2 ;
28907 int ecode2 = 0 ;
28908 int val3 ;
28909 int ecode3 = 0 ;
28910 PyObject * obj0 = 0 ;
28911 PyObject * obj1 = 0 ;
28912 PyObject * obj2 = 0 ;
28913 char * kwnames[] = {
28914 (char *) "self",(char *) "col",(char *) "width", NULL
28915 };
28916
28917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28919 if (!SWIG_IsOK(res1)) {
28920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28921 }
28922 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28923 ecode2 = SWIG_AsVal_int(obj1, &val2);
28924 if (!SWIG_IsOK(ecode2)) {
28925 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "2"" of type '" "int""'");
28926 }
28927 arg2 = static_cast< int >(val2);
28928 ecode3 = SWIG_AsVal_int(obj2, &val3);
28929 if (!SWIG_IsOK(ecode3)) {
28930 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "3"" of type '" "int""'");
28931 }
28932 arg3 = static_cast< int >(val3);
28933 {
28934 PyThreadState* __tstate = wxPyBeginAllowThreads();
28935 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
28936 wxPyEndAllowThreads(__tstate);
28937 if (PyErr_Occurred()) SWIG_fail;
28938 }
28939 {
28940 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28941 }
28942 return resultobj;
28943 fail:
28944 return NULL;
28945 }
28946
28947
28948 SWIGINTERN PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28949 PyObject *resultobj = 0;
28950 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28951 int result;
28952 void *argp1 = 0 ;
28953 int res1 = 0 ;
28954 PyObject *swig_obj[1] ;
28955
28956 if (!args) SWIG_fail;
28957 swig_obj[0] = args;
28958 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28959 if (!SWIG_IsOK(res1)) {
28960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetCountPerPage" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28961 }
28962 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28963 {
28964 PyThreadState* __tstate = wxPyBeginAllowThreads();
28965 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
28966 wxPyEndAllowThreads(__tstate);
28967 if (PyErr_Occurred()) SWIG_fail;
28968 }
28969 resultobj = SWIG_From_int(static_cast< int >(result));
28970 return resultobj;
28971 fail:
28972 return NULL;
28973 }
28974
28975
28976 SWIGINTERN PyObject *_wrap_ListCtrl_GetViewRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28977 PyObject *resultobj = 0;
28978 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28979 wxRect result;
28980 void *argp1 = 0 ;
28981 int res1 = 0 ;
28982 PyObject *swig_obj[1] ;
28983
28984 if (!args) SWIG_fail;
28985 swig_obj[0] = args;
28986 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28987 if (!SWIG_IsOK(res1)) {
28988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetViewRect" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28989 }
28990 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28991 {
28992 PyThreadState* __tstate = wxPyBeginAllowThreads();
28993 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
28994 wxPyEndAllowThreads(__tstate);
28995 if (PyErr_Occurred()) SWIG_fail;
28996 }
28997 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
28998 return resultobj;
28999 fail:
29000 return NULL;
29001 }
29002
29003
29004 SWIGINTERN PyObject *_wrap_ListCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29005 PyObject *resultobj = 0;
29006 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29007 wxTextCtrl *result = 0 ;
29008 void *argp1 = 0 ;
29009 int res1 = 0 ;
29010 PyObject *swig_obj[1] ;
29011
29012 if (!args) SWIG_fail;
29013 swig_obj[0] = args;
29014 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29015 if (!SWIG_IsOK(res1)) {
29016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29017 }
29018 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29019 {
29020 PyThreadState* __tstate = wxPyBeginAllowThreads();
29021 result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl();
29022 wxPyEndAllowThreads(__tstate);
29023 if (PyErr_Occurred()) SWIG_fail;
29024 }
29025 {
29026 resultobj = wxPyMake_wxObject(result, 0);
29027 }
29028 return resultobj;
29029 fail:
29030 return NULL;
29031 }
29032
29033
29034 SWIGINTERN PyObject *_wrap_ListCtrl_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29035 PyObject *resultobj = 0;
29036 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29037 long arg2 ;
29038 int arg3 = (int) 0 ;
29039 wxListItem *result = 0 ;
29040 void *argp1 = 0 ;
29041 int res1 = 0 ;
29042 long val2 ;
29043 int ecode2 = 0 ;
29044 int val3 ;
29045 int ecode3 = 0 ;
29046 PyObject * obj0 = 0 ;
29047 PyObject * obj1 = 0 ;
29048 PyObject * obj2 = 0 ;
29049 char * kwnames[] = {
29050 (char *) "self",(char *) "itemId",(char *) "col", NULL
29051 };
29052
29053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29055 if (!SWIG_IsOK(res1)) {
29056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29057 }
29058 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29059 ecode2 = SWIG_AsVal_long(obj1, &val2);
29060 if (!SWIG_IsOK(ecode2)) {
29061 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItem" "', expected argument " "2"" of type '" "long""'");
29062 }
29063 arg2 = static_cast< long >(val2);
29064 if (obj2) {
29065 ecode3 = SWIG_AsVal_int(obj2, &val3);
29066 if (!SWIG_IsOK(ecode3)) {
29067 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItem" "', expected argument " "3"" of type '" "int""'");
29068 }
29069 arg3 = static_cast< int >(val3);
29070 }
29071 {
29072 PyThreadState* __tstate = wxPyBeginAllowThreads();
29073 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
29074 wxPyEndAllowThreads(__tstate);
29075 if (PyErr_Occurred()) SWIG_fail;
29076 }
29077 {
29078 resultobj = wxPyMake_wxObject(result, (bool)0);
29079 }
29080 return resultobj;
29081 fail:
29082 return NULL;
29083 }
29084
29085
29086 SWIGINTERN PyObject *_wrap_ListCtrl_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29087 PyObject *resultobj = 0;
29088 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29089 wxListItem *arg2 = 0 ;
29090 bool result;
29091 void *argp1 = 0 ;
29092 int res1 = 0 ;
29093 void *argp2 = 0 ;
29094 int res2 = 0 ;
29095 PyObject * obj0 = 0 ;
29096 PyObject * obj1 = 0 ;
29097 char * kwnames[] = {
29098 (char *) "self",(char *) "info", NULL
29099 };
29100
29101 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
29102 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29103 if (!SWIG_IsOK(res1)) {
29104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29105 }
29106 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29107 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
29108 if (!SWIG_IsOK(res2)) {
29109 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29110 }
29111 if (!argp2) {
29112 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29113 }
29114 arg2 = reinterpret_cast< wxListItem * >(argp2);
29115 {
29116 PyThreadState* __tstate = wxPyBeginAllowThreads();
29117 result = (bool)(arg1)->SetItem(*arg2);
29118 wxPyEndAllowThreads(__tstate);
29119 if (PyErr_Occurred()) SWIG_fail;
29120 }
29121 {
29122 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29123 }
29124 return resultobj;
29125 fail:
29126 return NULL;
29127 }
29128
29129
29130 SWIGINTERN PyObject *_wrap_ListCtrl_SetStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29131 PyObject *resultobj = 0;
29132 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29133 long arg2 ;
29134 int arg3 ;
29135 wxString *arg4 = 0 ;
29136 int arg5 = (int) -1 ;
29137 long result;
29138 void *argp1 = 0 ;
29139 int res1 = 0 ;
29140 long val2 ;
29141 int ecode2 = 0 ;
29142 int val3 ;
29143 int ecode3 = 0 ;
29144 bool temp4 = false ;
29145 int val5 ;
29146 int ecode5 = 0 ;
29147 PyObject * obj0 = 0 ;
29148 PyObject * obj1 = 0 ;
29149 PyObject * obj2 = 0 ;
29150 PyObject * obj3 = 0 ;
29151 PyObject * obj4 = 0 ;
29152 char * kwnames[] = {
29153 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
29154 };
29155
29156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29157 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29158 if (!SWIG_IsOK(res1)) {
29159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29160 }
29161 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29162 ecode2 = SWIG_AsVal_long(obj1, &val2);
29163 if (!SWIG_IsOK(ecode2)) {
29164 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetStringItem" "', expected argument " "2"" of type '" "long""'");
29165 }
29166 arg2 = static_cast< long >(val2);
29167 ecode3 = SWIG_AsVal_int(obj2, &val3);
29168 if (!SWIG_IsOK(ecode3)) {
29169 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetStringItem" "', expected argument " "3"" of type '" "int""'");
29170 }
29171 arg3 = static_cast< int >(val3);
29172 {
29173 arg4 = wxString_in_helper(obj3);
29174 if (arg4 == NULL) SWIG_fail;
29175 temp4 = true;
29176 }
29177 if (obj4) {
29178 ecode5 = SWIG_AsVal_int(obj4, &val5);
29179 if (!SWIG_IsOK(ecode5)) {
29180 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_SetStringItem" "', expected argument " "5"" of type '" "int""'");
29181 }
29182 arg5 = static_cast< int >(val5);
29183 }
29184 {
29185 PyThreadState* __tstate = wxPyBeginAllowThreads();
29186 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
29187 wxPyEndAllowThreads(__tstate);
29188 if (PyErr_Occurred()) SWIG_fail;
29189 }
29190 resultobj = SWIG_From_long(static_cast< long >(result));
29191 {
29192 if (temp4)
29193 delete arg4;
29194 }
29195 return resultobj;
29196 fail:
29197 {
29198 if (temp4)
29199 delete arg4;
29200 }
29201 return NULL;
29202 }
29203
29204
29205 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29206 PyObject *resultobj = 0;
29207 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29208 long arg2 ;
29209 long arg3 ;
29210 int result;
29211 void *argp1 = 0 ;
29212 int res1 = 0 ;
29213 long val2 ;
29214 int ecode2 = 0 ;
29215 long val3 ;
29216 int ecode3 = 0 ;
29217 PyObject * obj0 = 0 ;
29218 PyObject * obj1 = 0 ;
29219 PyObject * obj2 = 0 ;
29220 char * kwnames[] = {
29221 (char *) "self",(char *) "item",(char *) "stateMask", NULL
29222 };
29223
29224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29226 if (!SWIG_IsOK(res1)) {
29227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29228 }
29229 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29230 ecode2 = SWIG_AsVal_long(obj1, &val2);
29231 if (!SWIG_IsOK(ecode2)) {
29232 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemState" "', expected argument " "2"" of type '" "long""'");
29233 }
29234 arg2 = static_cast< long >(val2);
29235 ecode3 = SWIG_AsVal_long(obj2, &val3);
29236 if (!SWIG_IsOK(ecode3)) {
29237 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemState" "', expected argument " "3"" of type '" "long""'");
29238 }
29239 arg3 = static_cast< long >(val3);
29240 {
29241 PyThreadState* __tstate = wxPyBeginAllowThreads();
29242 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
29243 wxPyEndAllowThreads(__tstate);
29244 if (PyErr_Occurred()) SWIG_fail;
29245 }
29246 resultobj = SWIG_From_int(static_cast< int >(result));
29247 return resultobj;
29248 fail:
29249 return NULL;
29250 }
29251
29252
29253 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29254 PyObject *resultobj = 0;
29255 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29256 long arg2 ;
29257 long arg3 ;
29258 long arg4 ;
29259 bool result;
29260 void *argp1 = 0 ;
29261 int res1 = 0 ;
29262 long val2 ;
29263 int ecode2 = 0 ;
29264 long val3 ;
29265 int ecode3 = 0 ;
29266 long val4 ;
29267 int ecode4 = 0 ;
29268 PyObject * obj0 = 0 ;
29269 PyObject * obj1 = 0 ;
29270 PyObject * obj2 = 0 ;
29271 PyObject * obj3 = 0 ;
29272 char * kwnames[] = {
29273 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
29274 };
29275
29276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29278 if (!SWIG_IsOK(res1)) {
29279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29280 }
29281 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29282 ecode2 = SWIG_AsVal_long(obj1, &val2);
29283 if (!SWIG_IsOK(ecode2)) {
29284 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemState" "', expected argument " "2"" of type '" "long""'");
29285 }
29286 arg2 = static_cast< long >(val2);
29287 ecode3 = SWIG_AsVal_long(obj2, &val3);
29288 if (!SWIG_IsOK(ecode3)) {
29289 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemState" "', expected argument " "3"" of type '" "long""'");
29290 }
29291 arg3 = static_cast< long >(val3);
29292 ecode4 = SWIG_AsVal_long(obj3, &val4);
29293 if (!SWIG_IsOK(ecode4)) {
29294 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemState" "', expected argument " "4"" of type '" "long""'");
29295 }
29296 arg4 = static_cast< long >(val4);
29297 {
29298 PyThreadState* __tstate = wxPyBeginAllowThreads();
29299 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
29300 wxPyEndAllowThreads(__tstate);
29301 if (PyErr_Occurred()) SWIG_fail;
29302 }
29303 {
29304 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29305 }
29306 return resultobj;
29307 fail:
29308 return NULL;
29309 }
29310
29311
29312 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29313 PyObject *resultobj = 0;
29314 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29315 long arg2 ;
29316 int arg3 ;
29317 int arg4 = (int) -1 ;
29318 bool result;
29319 void *argp1 = 0 ;
29320 int res1 = 0 ;
29321 long val2 ;
29322 int ecode2 = 0 ;
29323 int val3 ;
29324 int ecode3 = 0 ;
29325 int val4 ;
29326 int ecode4 = 0 ;
29327 PyObject * obj0 = 0 ;
29328 PyObject * obj1 = 0 ;
29329 PyObject * obj2 = 0 ;
29330 PyObject * obj3 = 0 ;
29331 char * kwnames[] = {
29332 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
29333 };
29334
29335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29337 if (!SWIG_IsOK(res1)) {
29338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29339 }
29340 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29341 ecode2 = SWIG_AsVal_long(obj1, &val2);
29342 if (!SWIG_IsOK(ecode2)) {
29343 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemImage" "', expected argument " "2"" of type '" "long""'");
29344 }
29345 arg2 = static_cast< long >(val2);
29346 ecode3 = SWIG_AsVal_int(obj2, &val3);
29347 if (!SWIG_IsOK(ecode3)) {
29348 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
29349 }
29350 arg3 = static_cast< int >(val3);
29351 if (obj3) {
29352 ecode4 = SWIG_AsVal_int(obj3, &val4);
29353 if (!SWIG_IsOK(ecode4)) {
29354 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemImage" "', expected argument " "4"" of type '" "int""'");
29355 }
29356 arg4 = static_cast< int >(val4);
29357 }
29358 {
29359 PyThreadState* __tstate = wxPyBeginAllowThreads();
29360 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
29361 wxPyEndAllowThreads(__tstate);
29362 if (PyErr_Occurred()) SWIG_fail;
29363 }
29364 {
29365 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29366 }
29367 return resultobj;
29368 fail:
29369 return NULL;
29370 }
29371
29372
29373 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29374 PyObject *resultobj = 0;
29375 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29376 long arg2 ;
29377 long arg3 ;
29378 int arg4 ;
29379 bool result;
29380 void *argp1 = 0 ;
29381 int res1 = 0 ;
29382 long val2 ;
29383 int ecode2 = 0 ;
29384 long val3 ;
29385 int ecode3 = 0 ;
29386 int val4 ;
29387 int ecode4 = 0 ;
29388 PyObject * obj0 = 0 ;
29389 PyObject * obj1 = 0 ;
29390 PyObject * obj2 = 0 ;
29391 PyObject * obj3 = 0 ;
29392 char * kwnames[] = {
29393 (char *) "self",(char *) "item",(char *) "column",(char *) "image", NULL
29394 };
29395
29396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemColumnImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29397 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29398 if (!SWIG_IsOK(res1)) {
29399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29400 }
29401 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29402 ecode2 = SWIG_AsVal_long(obj1, &val2);
29403 if (!SWIG_IsOK(ecode2)) {
29404 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "2"" of type '" "long""'");
29405 }
29406 arg2 = static_cast< long >(val2);
29407 ecode3 = SWIG_AsVal_long(obj2, &val3);
29408 if (!SWIG_IsOK(ecode3)) {
29409 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "3"" of type '" "long""'");
29410 }
29411 arg3 = static_cast< long >(val3);
29412 ecode4 = SWIG_AsVal_int(obj3, &val4);
29413 if (!SWIG_IsOK(ecode4)) {
29414 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "4"" of type '" "int""'");
29415 }
29416 arg4 = static_cast< int >(val4);
29417 {
29418 PyThreadState* __tstate = wxPyBeginAllowThreads();
29419 result = (bool)(arg1)->SetItemColumnImage(arg2,arg3,arg4);
29420 wxPyEndAllowThreads(__tstate);
29421 if (PyErr_Occurred()) SWIG_fail;
29422 }
29423 {
29424 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29425 }
29426 return resultobj;
29427 fail:
29428 return NULL;
29429 }
29430
29431
29432 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29433 PyObject *resultobj = 0;
29434 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29435 long arg2 ;
29436 wxString result;
29437 void *argp1 = 0 ;
29438 int res1 = 0 ;
29439 long val2 ;
29440 int ecode2 = 0 ;
29441 PyObject * obj0 = 0 ;
29442 PyObject * obj1 = 0 ;
29443 char * kwnames[] = {
29444 (char *) "self",(char *) "item", NULL
29445 };
29446
29447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
29448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29449 if (!SWIG_IsOK(res1)) {
29450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29451 }
29452 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29453 ecode2 = SWIG_AsVal_long(obj1, &val2);
29454 if (!SWIG_IsOK(ecode2)) {
29455 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemText" "', expected argument " "2"" of type '" "long""'");
29456 }
29457 arg2 = static_cast< long >(val2);
29458 {
29459 PyThreadState* __tstate = wxPyBeginAllowThreads();
29460 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
29461 wxPyEndAllowThreads(__tstate);
29462 if (PyErr_Occurred()) SWIG_fail;
29463 }
29464 {
29465 #if wxUSE_UNICODE
29466 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29467 #else
29468 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29469 #endif
29470 }
29471 return resultobj;
29472 fail:
29473 return NULL;
29474 }
29475
29476
29477 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29478 PyObject *resultobj = 0;
29479 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29480 long arg2 ;
29481 wxString *arg3 = 0 ;
29482 void *argp1 = 0 ;
29483 int res1 = 0 ;
29484 long val2 ;
29485 int ecode2 = 0 ;
29486 bool temp3 = false ;
29487 PyObject * obj0 = 0 ;
29488 PyObject * obj1 = 0 ;
29489 PyObject * obj2 = 0 ;
29490 char * kwnames[] = {
29491 (char *) "self",(char *) "item",(char *) "str", NULL
29492 };
29493
29494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29496 if (!SWIG_IsOK(res1)) {
29497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29498 }
29499 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29500 ecode2 = SWIG_AsVal_long(obj1, &val2);
29501 if (!SWIG_IsOK(ecode2)) {
29502 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemText" "', expected argument " "2"" of type '" "long""'");
29503 }
29504 arg2 = static_cast< long >(val2);
29505 {
29506 arg3 = wxString_in_helper(obj2);
29507 if (arg3 == NULL) SWIG_fail;
29508 temp3 = true;
29509 }
29510 {
29511 PyThreadState* __tstate = wxPyBeginAllowThreads();
29512 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
29513 wxPyEndAllowThreads(__tstate);
29514 if (PyErr_Occurred()) SWIG_fail;
29515 }
29516 resultobj = SWIG_Py_Void();
29517 {
29518 if (temp3)
29519 delete arg3;
29520 }
29521 return resultobj;
29522 fail:
29523 {
29524 if (temp3)
29525 delete arg3;
29526 }
29527 return NULL;
29528 }
29529
29530
29531 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29532 PyObject *resultobj = 0;
29533 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29534 long arg2 ;
29535 long result;
29536 void *argp1 = 0 ;
29537 int res1 = 0 ;
29538 long val2 ;
29539 int ecode2 = 0 ;
29540 PyObject * obj0 = 0 ;
29541 PyObject * obj1 = 0 ;
29542 char * kwnames[] = {
29543 (char *) "self",(char *) "item", NULL
29544 };
29545
29546 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
29547 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29548 if (!SWIG_IsOK(res1)) {
29549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29550 }
29551 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29552 ecode2 = SWIG_AsVal_long(obj1, &val2);
29553 if (!SWIG_IsOK(ecode2)) {
29554 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemData" "', expected argument " "2"" of type '" "long""'");
29555 }
29556 arg2 = static_cast< long >(val2);
29557 {
29558 PyThreadState* __tstate = wxPyBeginAllowThreads();
29559 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
29560 wxPyEndAllowThreads(__tstate);
29561 if (PyErr_Occurred()) SWIG_fail;
29562 }
29563 resultobj = SWIG_From_long(static_cast< long >(result));
29564 return resultobj;
29565 fail:
29566 return NULL;
29567 }
29568
29569
29570 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29571 PyObject *resultobj = 0;
29572 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29573 long arg2 ;
29574 long arg3 ;
29575 bool result;
29576 void *argp1 = 0 ;
29577 int res1 = 0 ;
29578 long val2 ;
29579 int ecode2 = 0 ;
29580 long val3 ;
29581 int ecode3 = 0 ;
29582 PyObject * obj0 = 0 ;
29583 PyObject * obj1 = 0 ;
29584 PyObject * obj2 = 0 ;
29585 char * kwnames[] = {
29586 (char *) "self",(char *) "item",(char *) "data", NULL
29587 };
29588
29589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29591 if (!SWIG_IsOK(res1)) {
29592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29593 }
29594 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29595 ecode2 = SWIG_AsVal_long(obj1, &val2);
29596 if (!SWIG_IsOK(ecode2)) {
29597 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemData" "', expected argument " "2"" of type '" "long""'");
29598 }
29599 arg2 = static_cast< long >(val2);
29600 ecode3 = SWIG_AsVal_long(obj2, &val3);
29601 if (!SWIG_IsOK(ecode3)) {
29602 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemData" "', expected argument " "3"" of type '" "long""'");
29603 }
29604 arg3 = static_cast< long >(val3);
29605 {
29606 PyThreadState* __tstate = wxPyBeginAllowThreads();
29607 result = (bool)(arg1)->SetItemData(arg2,arg3);
29608 wxPyEndAllowThreads(__tstate);
29609 if (PyErr_Occurred()) SWIG_fail;
29610 }
29611 {
29612 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29613 }
29614 return resultobj;
29615 fail:
29616 return NULL;
29617 }
29618
29619
29620 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29621 PyObject *resultobj = 0;
29622 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29623 long arg2 ;
29624 wxPoint result;
29625 void *argp1 = 0 ;
29626 int res1 = 0 ;
29627 long val2 ;
29628 int ecode2 = 0 ;
29629 PyObject * obj0 = 0 ;
29630 PyObject * obj1 = 0 ;
29631 char * kwnames[] = {
29632 (char *) "self",(char *) "item", NULL
29633 };
29634
29635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) SWIG_fail;
29636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29637 if (!SWIG_IsOK(res1)) {
29638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29639 }
29640 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29641 ecode2 = SWIG_AsVal_long(obj1, &val2);
29642 if (!SWIG_IsOK(ecode2)) {
29643 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "2"" of type '" "long""'");
29644 }
29645 arg2 = static_cast< long >(val2);
29646 {
29647 PyThreadState* __tstate = wxPyBeginAllowThreads();
29648 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
29649 wxPyEndAllowThreads(__tstate);
29650 if (PyErr_Occurred()) SWIG_fail;
29651 }
29652 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
29653 return resultobj;
29654 fail:
29655 return NULL;
29656 }
29657
29658
29659 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29660 PyObject *resultobj = 0;
29661 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29662 long arg2 ;
29663 int arg3 = (int) wxLIST_RECT_BOUNDS ;
29664 wxRect result;
29665 void *argp1 = 0 ;
29666 int res1 = 0 ;
29667 long val2 ;
29668 int ecode2 = 0 ;
29669 int val3 ;
29670 int ecode3 = 0 ;
29671 PyObject * obj0 = 0 ;
29672 PyObject * obj1 = 0 ;
29673 PyObject * obj2 = 0 ;
29674 char * kwnames[] = {
29675 (char *) "self",(char *) "item",(char *) "code", NULL
29676 };
29677
29678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29680 if (!SWIG_IsOK(res1)) {
29681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemRect" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29682 }
29683 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29684 ecode2 = SWIG_AsVal_long(obj1, &val2);
29685 if (!SWIG_IsOK(ecode2)) {
29686 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemRect" "', expected argument " "2"" of type '" "long""'");
29687 }
29688 arg2 = static_cast< long >(val2);
29689 if (obj2) {
29690 ecode3 = SWIG_AsVal_int(obj2, &val3);
29691 if (!SWIG_IsOK(ecode3)) {
29692 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemRect" "', expected argument " "3"" of type '" "int""'");
29693 }
29694 arg3 = static_cast< int >(val3);
29695 }
29696 {
29697 PyThreadState* __tstate = wxPyBeginAllowThreads();
29698 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
29699 wxPyEndAllowThreads(__tstate);
29700 if (PyErr_Occurred()) SWIG_fail;
29701 }
29702 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29703 return resultobj;
29704 fail:
29705 return NULL;
29706 }
29707
29708
29709 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29710 PyObject *resultobj = 0;
29711 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29712 long arg2 ;
29713 wxPoint *arg3 = 0 ;
29714 bool result;
29715 void *argp1 = 0 ;
29716 int res1 = 0 ;
29717 long val2 ;
29718 int ecode2 = 0 ;
29719 wxPoint temp3 ;
29720 PyObject * obj0 = 0 ;
29721 PyObject * obj1 = 0 ;
29722 PyObject * obj2 = 0 ;
29723 char * kwnames[] = {
29724 (char *) "self",(char *) "item",(char *) "pos", NULL
29725 };
29726
29727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29729 if (!SWIG_IsOK(res1)) {
29730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29731 }
29732 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29733 ecode2 = SWIG_AsVal_long(obj1, &val2);
29734 if (!SWIG_IsOK(ecode2)) {
29735 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "2"" of type '" "long""'");
29736 }
29737 arg2 = static_cast< long >(val2);
29738 {
29739 arg3 = &temp3;
29740 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29741 }
29742 {
29743 PyThreadState* __tstate = wxPyBeginAllowThreads();
29744 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
29745 wxPyEndAllowThreads(__tstate);
29746 if (PyErr_Occurred()) SWIG_fail;
29747 }
29748 {
29749 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29750 }
29751 return resultobj;
29752 fail:
29753 return NULL;
29754 }
29755
29756
29757 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29758 PyObject *resultobj = 0;
29759 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29760 int result;
29761 void *argp1 = 0 ;
29762 int res1 = 0 ;
29763 PyObject *swig_obj[1] ;
29764
29765 if (!args) SWIG_fail;
29766 swig_obj[0] = args;
29767 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29768 if (!SWIG_IsOK(res1)) {
29769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29770 }
29771 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29772 {
29773 PyThreadState* __tstate = wxPyBeginAllowThreads();
29774 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
29775 wxPyEndAllowThreads(__tstate);
29776 if (PyErr_Occurred()) SWIG_fail;
29777 }
29778 resultobj = SWIG_From_int(static_cast< int >(result));
29779 return resultobj;
29780 fail:
29781 return NULL;
29782 }
29783
29784
29785 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29786 PyObject *resultobj = 0;
29787 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29788 int result;
29789 void *argp1 = 0 ;
29790 int res1 = 0 ;
29791 PyObject *swig_obj[1] ;
29792
29793 if (!args) SWIG_fail;
29794 swig_obj[0] = args;
29795 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29796 if (!SWIG_IsOK(res1)) {
29797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29798 }
29799 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29800 {
29801 PyThreadState* __tstate = wxPyBeginAllowThreads();
29802 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
29803 wxPyEndAllowThreads(__tstate);
29804 if (PyErr_Occurred()) SWIG_fail;
29805 }
29806 resultobj = SWIG_From_int(static_cast< int >(result));
29807 return resultobj;
29808 fail:
29809 return NULL;
29810 }
29811
29812
29813 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29814 PyObject *resultobj = 0;
29815 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29816 wxSize result;
29817 void *argp1 = 0 ;
29818 int res1 = 0 ;
29819 PyObject *swig_obj[1] ;
29820
29821 if (!args) SWIG_fail;
29822 swig_obj[0] = args;
29823 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29824 if (!SWIG_IsOK(res1)) {
29825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29826 }
29827 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29828 {
29829 PyThreadState* __tstate = wxPyBeginAllowThreads();
29830 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
29831 wxPyEndAllowThreads(__tstate);
29832 if (PyErr_Occurred()) SWIG_fail;
29833 }
29834 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
29835 return resultobj;
29836 fail:
29837 return NULL;
29838 }
29839
29840
29841 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29842 PyObject *resultobj = 0;
29843 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29844 int arg2 ;
29845 bool arg3 = (bool) false ;
29846 void *argp1 = 0 ;
29847 int res1 = 0 ;
29848 int val2 ;
29849 int ecode2 = 0 ;
29850 bool val3 ;
29851 int ecode3 = 0 ;
29852 PyObject * obj0 = 0 ;
29853 PyObject * obj1 = 0 ;
29854 PyObject * obj2 = 0 ;
29855 char * kwnames[] = {
29856 (char *) "self",(char *) "spacing",(char *) "isSmall", NULL
29857 };
29858
29859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29861 if (!SWIG_IsOK(res1)) {
29862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29863 }
29864 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29865 ecode2 = SWIG_AsVal_int(obj1, &val2);
29866 if (!SWIG_IsOK(ecode2)) {
29867 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "2"" of type '" "int""'");
29868 }
29869 arg2 = static_cast< int >(val2);
29870 if (obj2) {
29871 ecode3 = SWIG_AsVal_bool(obj2, &val3);
29872 if (!SWIG_IsOK(ecode3)) {
29873 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "3"" of type '" "bool""'");
29874 }
29875 arg3 = static_cast< bool >(val3);
29876 }
29877 {
29878 PyThreadState* __tstate = wxPyBeginAllowThreads();
29879 (arg1)->SetItemSpacing(arg2,arg3);
29880 wxPyEndAllowThreads(__tstate);
29881 if (PyErr_Occurred()) SWIG_fail;
29882 }
29883 resultobj = SWIG_Py_Void();
29884 return resultobj;
29885 fail:
29886 return NULL;
29887 }
29888
29889
29890 SWIGINTERN PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29891 PyObject *resultobj = 0;
29892 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29893 int result;
29894 void *argp1 = 0 ;
29895 int res1 = 0 ;
29896 PyObject *swig_obj[1] ;
29897
29898 if (!args) SWIG_fail;
29899 swig_obj[0] = args;
29900 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29901 if (!SWIG_IsOK(res1)) {
29902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetSelectedItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29903 }
29904 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29905 {
29906 PyThreadState* __tstate = wxPyBeginAllowThreads();
29907 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
29908 wxPyEndAllowThreads(__tstate);
29909 if (PyErr_Occurred()) SWIG_fail;
29910 }
29911 resultobj = SWIG_From_int(static_cast< int >(result));
29912 return resultobj;
29913 fail:
29914 return NULL;
29915 }
29916
29917
29918 SWIGINTERN PyObject *_wrap_ListCtrl_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29919 PyObject *resultobj = 0;
29920 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29921 wxColour result;
29922 void *argp1 = 0 ;
29923 int res1 = 0 ;
29924 PyObject *swig_obj[1] ;
29925
29926 if (!args) SWIG_fail;
29927 swig_obj[0] = args;
29928 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29929 if (!SWIG_IsOK(res1)) {
29930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29931 }
29932 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29933 {
29934 PyThreadState* __tstate = wxPyBeginAllowThreads();
29935 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
29936 wxPyEndAllowThreads(__tstate);
29937 if (PyErr_Occurred()) SWIG_fail;
29938 }
29939 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29940 return resultobj;
29941 fail:
29942 return NULL;
29943 }
29944
29945
29946 SWIGINTERN PyObject *_wrap_ListCtrl_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29947 PyObject *resultobj = 0;
29948 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29949 wxColour *arg2 = 0 ;
29950 void *argp1 = 0 ;
29951 int res1 = 0 ;
29952 wxColour temp2 ;
29953 PyObject * obj0 = 0 ;
29954 PyObject * obj1 = 0 ;
29955 char * kwnames[] = {
29956 (char *) "self",(char *) "col", NULL
29957 };
29958
29959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
29960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29961 if (!SWIG_IsOK(res1)) {
29962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29963 }
29964 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29965 {
29966 arg2 = &temp2;
29967 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29968 }
29969 {
29970 PyThreadState* __tstate = wxPyBeginAllowThreads();
29971 (arg1)->SetTextColour((wxColour const &)*arg2);
29972 wxPyEndAllowThreads(__tstate);
29973 if (PyErr_Occurred()) SWIG_fail;
29974 }
29975 resultobj = SWIG_Py_Void();
29976 return resultobj;
29977 fail:
29978 return NULL;
29979 }
29980
29981
29982 SWIGINTERN PyObject *_wrap_ListCtrl_GetTopItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29983 PyObject *resultobj = 0;
29984 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29985 long result;
29986 void *argp1 = 0 ;
29987 int res1 = 0 ;
29988 PyObject *swig_obj[1] ;
29989
29990 if (!args) SWIG_fail;
29991 swig_obj[0] = args;
29992 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29993 if (!SWIG_IsOK(res1)) {
29994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTopItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29995 }
29996 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29997 {
29998 PyThreadState* __tstate = wxPyBeginAllowThreads();
29999 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
30000 wxPyEndAllowThreads(__tstate);
30001 if (PyErr_Occurred()) SWIG_fail;
30002 }
30003 resultobj = SWIG_From_long(static_cast< long >(result));
30004 return resultobj;
30005 fail:
30006 return NULL;
30007 }
30008
30009
30010 SWIGINTERN PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30011 PyObject *resultobj = 0;
30012 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30013 long arg2 ;
30014 bool arg3 = (bool) true ;
30015 void *argp1 = 0 ;
30016 int res1 = 0 ;
30017 long val2 ;
30018 int ecode2 = 0 ;
30019 bool val3 ;
30020 int ecode3 = 0 ;
30021 PyObject * obj0 = 0 ;
30022 PyObject * obj1 = 0 ;
30023 PyObject * obj2 = 0 ;
30024 char * kwnames[] = {
30025 (char *) "self",(char *) "style",(char *) "add", NULL
30026 };
30027
30028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30030 if (!SWIG_IsOK(res1)) {
30031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30032 }
30033 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30034 ecode2 = SWIG_AsVal_long(obj1, &val2);
30035 if (!SWIG_IsOK(ecode2)) {
30036 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "2"" of type '" "long""'");
30037 }
30038 arg2 = static_cast< long >(val2);
30039 if (obj2) {
30040 ecode3 = SWIG_AsVal_bool(obj2, &val3);
30041 if (!SWIG_IsOK(ecode3)) {
30042 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "3"" of type '" "bool""'");
30043 }
30044 arg3 = static_cast< bool >(val3);
30045 }
30046 {
30047 PyThreadState* __tstate = wxPyBeginAllowThreads();
30048 (arg1)->SetSingleStyle(arg2,arg3);
30049 wxPyEndAllowThreads(__tstate);
30050 if (PyErr_Occurred()) SWIG_fail;
30051 }
30052 resultobj = SWIG_Py_Void();
30053 return resultobj;
30054 fail:
30055 return NULL;
30056 }
30057
30058
30059 SWIGINTERN PyObject *_wrap_ListCtrl_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30060 PyObject *resultobj = 0;
30061 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30062 long arg2 ;
30063 int arg3 = (int) wxLIST_NEXT_ALL ;
30064 int arg4 = (int) wxLIST_STATE_DONTCARE ;
30065 long result;
30066 void *argp1 = 0 ;
30067 int res1 = 0 ;
30068 long val2 ;
30069 int ecode2 = 0 ;
30070 int val3 ;
30071 int ecode3 = 0 ;
30072 int val4 ;
30073 int ecode4 = 0 ;
30074 PyObject * obj0 = 0 ;
30075 PyObject * obj1 = 0 ;
30076 PyObject * obj2 = 0 ;
30077 PyObject * obj3 = 0 ;
30078 char * kwnames[] = {
30079 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
30080 };
30081
30082 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30083 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30084 if (!SWIG_IsOK(res1)) {
30085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetNextItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30086 }
30087 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30088 ecode2 = SWIG_AsVal_long(obj1, &val2);
30089 if (!SWIG_IsOK(ecode2)) {
30090 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetNextItem" "', expected argument " "2"" of type '" "long""'");
30091 }
30092 arg2 = static_cast< long >(val2);
30093 if (obj2) {
30094 ecode3 = SWIG_AsVal_int(obj2, &val3);
30095 if (!SWIG_IsOK(ecode3)) {
30096 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetNextItem" "', expected argument " "3"" of type '" "int""'");
30097 }
30098 arg3 = static_cast< int >(val3);
30099 }
30100 if (obj3) {
30101 ecode4 = SWIG_AsVal_int(obj3, &val4);
30102 if (!SWIG_IsOK(ecode4)) {
30103 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_GetNextItem" "', expected argument " "4"" of type '" "int""'");
30104 }
30105 arg4 = static_cast< int >(val4);
30106 }
30107 {
30108 PyThreadState* __tstate = wxPyBeginAllowThreads();
30109 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
30110 wxPyEndAllowThreads(__tstate);
30111 if (PyErr_Occurred()) SWIG_fail;
30112 }
30113 resultobj = SWIG_From_long(static_cast< long >(result));
30114 return resultobj;
30115 fail:
30116 return NULL;
30117 }
30118
30119
30120 SWIGINTERN PyObject *_wrap_ListCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30121 PyObject *resultobj = 0;
30122 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30123 int arg2 ;
30124 wxImageList *result = 0 ;
30125 void *argp1 = 0 ;
30126 int res1 = 0 ;
30127 int val2 ;
30128 int ecode2 = 0 ;
30129 PyObject * obj0 = 0 ;
30130 PyObject * obj1 = 0 ;
30131 char * kwnames[] = {
30132 (char *) "self",(char *) "which", NULL
30133 };
30134
30135 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
30136 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30137 if (!SWIG_IsOK(res1)) {
30138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30139 }
30140 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30141 ecode2 = SWIG_AsVal_int(obj1, &val2);
30142 if (!SWIG_IsOK(ecode2)) {
30143 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetImageList" "', expected argument " "2"" of type '" "int""'");
30144 }
30145 arg2 = static_cast< int >(val2);
30146 {
30147 PyThreadState* __tstate = wxPyBeginAllowThreads();
30148 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
30149 wxPyEndAllowThreads(__tstate);
30150 if (PyErr_Occurred()) SWIG_fail;
30151 }
30152 {
30153 resultobj = wxPyMake_wxObject(result, (bool)0);
30154 }
30155 return resultobj;
30156 fail:
30157 return NULL;
30158 }
30159
30160
30161 SWIGINTERN PyObject *_wrap_ListCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30162 PyObject *resultobj = 0;
30163 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30164 wxImageList *arg2 = (wxImageList *) 0 ;
30165 int arg3 ;
30166 void *argp1 = 0 ;
30167 int res1 = 0 ;
30168 void *argp2 = 0 ;
30169 int res2 = 0 ;
30170 int val3 ;
30171 int ecode3 = 0 ;
30172 PyObject * obj0 = 0 ;
30173 PyObject * obj1 = 0 ;
30174 PyObject * obj2 = 0 ;
30175 char * kwnames[] = {
30176 (char *) "self",(char *) "imageList",(char *) "which", NULL
30177 };
30178
30179 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30180 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30181 if (!SWIG_IsOK(res1)) {
30182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30183 }
30184 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30185 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
30186 if (!SWIG_IsOK(res2)) {
30187 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30188 }
30189 arg2 = reinterpret_cast< wxImageList * >(argp2);
30190 ecode3 = SWIG_AsVal_int(obj2, &val3);
30191 if (!SWIG_IsOK(ecode3)) {
30192 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetImageList" "', expected argument " "3"" of type '" "int""'");
30193 }
30194 arg3 = static_cast< int >(val3);
30195 {
30196 PyThreadState* __tstate = wxPyBeginAllowThreads();
30197 (arg1)->SetImageList(arg2,arg3);
30198 wxPyEndAllowThreads(__tstate);
30199 if (PyErr_Occurred()) SWIG_fail;
30200 }
30201 resultobj = SWIG_Py_Void();
30202 return resultobj;
30203 fail:
30204 return NULL;
30205 }
30206
30207
30208 SWIGINTERN PyObject *_wrap_ListCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30209 PyObject *resultobj = 0;
30210 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30211 wxImageList *arg2 = (wxImageList *) 0 ;
30212 int arg3 ;
30213 void *argp1 = 0 ;
30214 int res1 = 0 ;
30215 int res2 = 0 ;
30216 int val3 ;
30217 int ecode3 = 0 ;
30218 PyObject * obj0 = 0 ;
30219 PyObject * obj1 = 0 ;
30220 PyObject * obj2 = 0 ;
30221 char * kwnames[] = {
30222 (char *) "self",(char *) "imageList",(char *) "which", NULL
30223 };
30224
30225 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30226 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30227 if (!SWIG_IsOK(res1)) {
30228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30229 }
30230 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30231 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
30232 if (!SWIG_IsOK(res2)) {
30233 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30234 }
30235 ecode3 = SWIG_AsVal_int(obj2, &val3);
30236 if (!SWIG_IsOK(ecode3)) {
30237 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_AssignImageList" "', expected argument " "3"" of type '" "int""'");
30238 }
30239 arg3 = static_cast< int >(val3);
30240 {
30241 PyThreadState* __tstate = wxPyBeginAllowThreads();
30242 (arg1)->AssignImageList(arg2,arg3);
30243 wxPyEndAllowThreads(__tstate);
30244 if (PyErr_Occurred()) SWIG_fail;
30245 }
30246 resultobj = SWIG_Py_Void();
30247 return resultobj;
30248 fail:
30249 return NULL;
30250 }
30251
30252
30253 SWIGINTERN PyObject *_wrap_ListCtrl_InReportView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30254 PyObject *resultobj = 0;
30255 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30256 bool result;
30257 void *argp1 = 0 ;
30258 int res1 = 0 ;
30259 PyObject *swig_obj[1] ;
30260
30261 if (!args) SWIG_fail;
30262 swig_obj[0] = args;
30263 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30264 if (!SWIG_IsOK(res1)) {
30265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InReportView" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30266 }
30267 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30268 {
30269 PyThreadState* __tstate = wxPyBeginAllowThreads();
30270 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
30271 wxPyEndAllowThreads(__tstate);
30272 if (PyErr_Occurred()) SWIG_fail;
30273 }
30274 {
30275 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30276 }
30277 return resultobj;
30278 fail:
30279 return NULL;
30280 }
30281
30282
30283 SWIGINTERN PyObject *_wrap_ListCtrl_IsVirtual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30284 PyObject *resultobj = 0;
30285 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30286 bool result;
30287 void *argp1 = 0 ;
30288 int res1 = 0 ;
30289 PyObject *swig_obj[1] ;
30290
30291 if (!args) SWIG_fail;
30292 swig_obj[0] = args;
30293 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30294 if (!SWIG_IsOK(res1)) {
30295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_IsVirtual" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30296 }
30297 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30298 {
30299 PyThreadState* __tstate = wxPyBeginAllowThreads();
30300 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
30301 wxPyEndAllowThreads(__tstate);
30302 if (PyErr_Occurred()) SWIG_fail;
30303 }
30304 {
30305 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30306 }
30307 return resultobj;
30308 fail:
30309 return NULL;
30310 }
30311
30312
30313 SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30314 PyObject *resultobj = 0;
30315 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30316 long arg2 ;
30317 void *argp1 = 0 ;
30318 int res1 = 0 ;
30319 long val2 ;
30320 int ecode2 = 0 ;
30321 PyObject * obj0 = 0 ;
30322 PyObject * obj1 = 0 ;
30323 char * kwnames[] = {
30324 (char *) "self",(char *) "item", NULL
30325 };
30326
30327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) SWIG_fail;
30328 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30329 if (!SWIG_IsOK(res1)) {
30330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30331 }
30332 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30333 ecode2 = SWIG_AsVal_long(obj1, &val2);
30334 if (!SWIG_IsOK(ecode2)) {
30335 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItem" "', expected argument " "2"" of type '" "long""'");
30336 }
30337 arg2 = static_cast< long >(val2);
30338 {
30339 PyThreadState* __tstate = wxPyBeginAllowThreads();
30340 (arg1)->RefreshItem(arg2);
30341 wxPyEndAllowThreads(__tstate);
30342 if (PyErr_Occurred()) SWIG_fail;
30343 }
30344 resultobj = SWIG_Py_Void();
30345 return resultobj;
30346 fail:
30347 return NULL;
30348 }
30349
30350
30351 SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30352 PyObject *resultobj = 0;
30353 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30354 long arg2 ;
30355 long arg3 ;
30356 void *argp1 = 0 ;
30357 int res1 = 0 ;
30358 long val2 ;
30359 int ecode2 = 0 ;
30360 long val3 ;
30361 int ecode3 = 0 ;
30362 PyObject * obj0 = 0 ;
30363 PyObject * obj1 = 0 ;
30364 PyObject * obj2 = 0 ;
30365 char * kwnames[] = {
30366 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
30367 };
30368
30369 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30370 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30371 if (!SWIG_IsOK(res1)) {
30372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30373 }
30374 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30375 ecode2 = SWIG_AsVal_long(obj1, &val2);
30376 if (!SWIG_IsOK(ecode2)) {
30377 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItems" "', expected argument " "2"" of type '" "long""'");
30378 }
30379 arg2 = static_cast< long >(val2);
30380 ecode3 = SWIG_AsVal_long(obj2, &val3);
30381 if (!SWIG_IsOK(ecode3)) {
30382 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_RefreshItems" "', expected argument " "3"" of type '" "long""'");
30383 }
30384 arg3 = static_cast< long >(val3);
30385 {
30386 PyThreadState* __tstate = wxPyBeginAllowThreads();
30387 (arg1)->RefreshItems(arg2,arg3);
30388 wxPyEndAllowThreads(__tstate);
30389 if (PyErr_Occurred()) SWIG_fail;
30390 }
30391 resultobj = SWIG_Py_Void();
30392 return resultobj;
30393 fail:
30394 return NULL;
30395 }
30396
30397
30398 SWIGINTERN PyObject *_wrap_ListCtrl_Arrange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30399 PyObject *resultobj = 0;
30400 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30401 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
30402 bool result;
30403 void *argp1 = 0 ;
30404 int res1 = 0 ;
30405 int val2 ;
30406 int ecode2 = 0 ;
30407 PyObject * obj0 = 0 ;
30408 PyObject * obj1 = 0 ;
30409 char * kwnames[] = {
30410 (char *) "self",(char *) "flag", NULL
30411 };
30412
30413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) SWIG_fail;
30414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30415 if (!SWIG_IsOK(res1)) {
30416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Arrange" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30417 }
30418 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30419 if (obj1) {
30420 ecode2 = SWIG_AsVal_int(obj1, &val2);
30421 if (!SWIG_IsOK(ecode2)) {
30422 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_Arrange" "', expected argument " "2"" of type '" "int""'");
30423 }
30424 arg2 = static_cast< int >(val2);
30425 }
30426 {
30427 PyThreadState* __tstate = wxPyBeginAllowThreads();
30428 result = (bool)(arg1)->Arrange(arg2);
30429 wxPyEndAllowThreads(__tstate);
30430 if (PyErr_Occurred()) SWIG_fail;
30431 }
30432 {
30433 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30434 }
30435 return resultobj;
30436 fail:
30437 return NULL;
30438 }
30439
30440
30441 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30442 PyObject *resultobj = 0;
30443 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30444 long arg2 ;
30445 bool result;
30446 void *argp1 = 0 ;
30447 int res1 = 0 ;
30448 long val2 ;
30449 int ecode2 = 0 ;
30450 PyObject * obj0 = 0 ;
30451 PyObject * obj1 = 0 ;
30452 char * kwnames[] = {
30453 (char *) "self",(char *) "item", NULL
30454 };
30455
30456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) SWIG_fail;
30457 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30458 if (!SWIG_IsOK(res1)) {
30459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30460 }
30461 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30462 ecode2 = SWIG_AsVal_long(obj1, &val2);
30463 if (!SWIG_IsOK(ecode2)) {
30464 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteItem" "', expected argument " "2"" of type '" "long""'");
30465 }
30466 arg2 = static_cast< long >(val2);
30467 {
30468 PyThreadState* __tstate = wxPyBeginAllowThreads();
30469 result = (bool)(arg1)->DeleteItem(arg2);
30470 wxPyEndAllowThreads(__tstate);
30471 if (PyErr_Occurred()) SWIG_fail;
30472 }
30473 {
30474 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30475 }
30476 return resultobj;
30477 fail:
30478 return NULL;
30479 }
30480
30481
30482 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30483 PyObject *resultobj = 0;
30484 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30485 bool result;
30486 void *argp1 = 0 ;
30487 int res1 = 0 ;
30488 PyObject *swig_obj[1] ;
30489
30490 if (!args) SWIG_fail;
30491 swig_obj[0] = args;
30492 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30493 if (!SWIG_IsOK(res1)) {
30494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30495 }
30496 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30497 {
30498 PyThreadState* __tstate = wxPyBeginAllowThreads();
30499 result = (bool)(arg1)->DeleteAllItems();
30500 wxPyEndAllowThreads(__tstate);
30501 if (PyErr_Occurred()) SWIG_fail;
30502 }
30503 {
30504 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30505 }
30506 return resultobj;
30507 fail:
30508 return NULL;
30509 }
30510
30511
30512 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30513 PyObject *resultobj = 0;
30514 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30515 int arg2 ;
30516 bool result;
30517 void *argp1 = 0 ;
30518 int res1 = 0 ;
30519 int val2 ;
30520 int ecode2 = 0 ;
30521 PyObject * obj0 = 0 ;
30522 PyObject * obj1 = 0 ;
30523 char * kwnames[] = {
30524 (char *) "self",(char *) "col", NULL
30525 };
30526
30527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) SWIG_fail;
30528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30529 if (!SWIG_IsOK(res1)) {
30530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30531 }
30532 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30533 ecode2 = SWIG_AsVal_int(obj1, &val2);
30534 if (!SWIG_IsOK(ecode2)) {
30535 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "2"" of type '" "int""'");
30536 }
30537 arg2 = static_cast< int >(val2);
30538 {
30539 PyThreadState* __tstate = wxPyBeginAllowThreads();
30540 result = (bool)(arg1)->DeleteColumn(arg2);
30541 wxPyEndAllowThreads(__tstate);
30542 if (PyErr_Occurred()) SWIG_fail;
30543 }
30544 {
30545 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30546 }
30547 return resultobj;
30548 fail:
30549 return NULL;
30550 }
30551
30552
30553 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30554 PyObject *resultobj = 0;
30555 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30556 bool result;
30557 void *argp1 = 0 ;
30558 int res1 = 0 ;
30559 PyObject *swig_obj[1] ;
30560
30561 if (!args) SWIG_fail;
30562 swig_obj[0] = args;
30563 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30564 if (!SWIG_IsOK(res1)) {
30565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllColumns" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30566 }
30567 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30568 {
30569 PyThreadState* __tstate = wxPyBeginAllowThreads();
30570 result = (bool)(arg1)->DeleteAllColumns();
30571 wxPyEndAllowThreads(__tstate);
30572 if (PyErr_Occurred()) SWIG_fail;
30573 }
30574 {
30575 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30576 }
30577 return resultobj;
30578 fail:
30579 return NULL;
30580 }
30581
30582
30583 SWIGINTERN PyObject *_wrap_ListCtrl_ClearAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30584 PyObject *resultobj = 0;
30585 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30586 void *argp1 = 0 ;
30587 int res1 = 0 ;
30588 PyObject *swig_obj[1] ;
30589
30590 if (!args) SWIG_fail;
30591 swig_obj[0] = args;
30592 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30593 if (!SWIG_IsOK(res1)) {
30594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ClearAll" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30595 }
30596 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30597 {
30598 PyThreadState* __tstate = wxPyBeginAllowThreads();
30599 (arg1)->ClearAll();
30600 wxPyEndAllowThreads(__tstate);
30601 if (PyErr_Occurred()) SWIG_fail;
30602 }
30603 resultobj = SWIG_Py_Void();
30604 return resultobj;
30605 fail:
30606 return NULL;
30607 }
30608
30609
30610 SWIGINTERN PyObject *_wrap_ListCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30611 PyObject *resultobj = 0;
30612 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30613 long arg2 ;
30614 void *argp1 = 0 ;
30615 int res1 = 0 ;
30616 long val2 ;
30617 int ecode2 = 0 ;
30618 PyObject * obj0 = 0 ;
30619 PyObject * obj1 = 0 ;
30620 char * kwnames[] = {
30621 (char *) "self",(char *) "item", NULL
30622 };
30623
30624 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
30625 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30626 if (!SWIG_IsOK(res1)) {
30627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30628 }
30629 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30630 ecode2 = SWIG_AsVal_long(obj1, &val2);
30631 if (!SWIG_IsOK(ecode2)) {
30632 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EditLabel" "', expected argument " "2"" of type '" "long""'");
30633 }
30634 arg2 = static_cast< long >(val2);
30635 {
30636 PyThreadState* __tstate = wxPyBeginAllowThreads();
30637 (arg1)->EditLabel(arg2);
30638 wxPyEndAllowThreads(__tstate);
30639 if (PyErr_Occurred()) SWIG_fail;
30640 }
30641 resultobj = SWIG_Py_Void();
30642 return resultobj;
30643 fail:
30644 return NULL;
30645 }
30646
30647
30648 SWIGINTERN PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30649 PyObject *resultobj = 0;
30650 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30651 long arg2 ;
30652 bool result;
30653 void *argp1 = 0 ;
30654 int res1 = 0 ;
30655 long val2 ;
30656 int ecode2 = 0 ;
30657 PyObject * obj0 = 0 ;
30658 PyObject * obj1 = 0 ;
30659 char * kwnames[] = {
30660 (char *) "self",(char *) "item", NULL
30661 };
30662
30663 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
30664 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30665 if (!SWIG_IsOK(res1)) {
30666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30667 }
30668 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30669 ecode2 = SWIG_AsVal_long(obj1, &val2);
30670 if (!SWIG_IsOK(ecode2)) {
30671 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "2"" of type '" "long""'");
30672 }
30673 arg2 = static_cast< long >(val2);
30674 {
30675 PyThreadState* __tstate = wxPyBeginAllowThreads();
30676 result = (bool)(arg1)->EnsureVisible(arg2);
30677 wxPyEndAllowThreads(__tstate);
30678 if (PyErr_Occurred()) SWIG_fail;
30679 }
30680 {
30681 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30682 }
30683 return resultobj;
30684 fail:
30685 return NULL;
30686 }
30687
30688
30689 SWIGINTERN PyObject *_wrap_ListCtrl_FindItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30690 PyObject *resultobj = 0;
30691 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30692 long arg2 ;
30693 wxString *arg3 = 0 ;
30694 bool arg4 = (bool) false ;
30695 long result;
30696 void *argp1 = 0 ;
30697 int res1 = 0 ;
30698 long val2 ;
30699 int ecode2 = 0 ;
30700 bool temp3 = false ;
30701 bool val4 ;
30702 int ecode4 = 0 ;
30703 PyObject * obj0 = 0 ;
30704 PyObject * obj1 = 0 ;
30705 PyObject * obj2 = 0 ;
30706 PyObject * obj3 = 0 ;
30707 char * kwnames[] = {
30708 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
30709 };
30710
30711 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30712 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30713 if (!SWIG_IsOK(res1)) {
30714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30715 }
30716 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30717 ecode2 = SWIG_AsVal_long(obj1, &val2);
30718 if (!SWIG_IsOK(ecode2)) {
30719 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItem" "', expected argument " "2"" of type '" "long""'");
30720 }
30721 arg2 = static_cast< long >(val2);
30722 {
30723 arg3 = wxString_in_helper(obj2);
30724 if (arg3 == NULL) SWIG_fail;
30725 temp3 = true;
30726 }
30727 if (obj3) {
30728 ecode4 = SWIG_AsVal_bool(obj3, &val4);
30729 if (!SWIG_IsOK(ecode4)) {
30730 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItem" "', expected argument " "4"" of type '" "bool""'");
30731 }
30732 arg4 = static_cast< bool >(val4);
30733 }
30734 {
30735 PyThreadState* __tstate = wxPyBeginAllowThreads();
30736 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
30737 wxPyEndAllowThreads(__tstate);
30738 if (PyErr_Occurred()) SWIG_fail;
30739 }
30740 resultobj = SWIG_From_long(static_cast< long >(result));
30741 {
30742 if (temp3)
30743 delete arg3;
30744 }
30745 return resultobj;
30746 fail:
30747 {
30748 if (temp3)
30749 delete arg3;
30750 }
30751 return NULL;
30752 }
30753
30754
30755 SWIGINTERN PyObject *_wrap_ListCtrl_FindItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30756 PyObject *resultobj = 0;
30757 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30758 long arg2 ;
30759 long arg3 ;
30760 long result;
30761 void *argp1 = 0 ;
30762 int res1 = 0 ;
30763 long val2 ;
30764 int ecode2 = 0 ;
30765 long val3 ;
30766 int ecode3 = 0 ;
30767 PyObject * obj0 = 0 ;
30768 PyObject * obj1 = 0 ;
30769 PyObject * obj2 = 0 ;
30770 char * kwnames[] = {
30771 (char *) "self",(char *) "start",(char *) "data", NULL
30772 };
30773
30774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30776 if (!SWIG_IsOK(res1)) {
30777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30778 }
30779 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30780 ecode2 = SWIG_AsVal_long(obj1, &val2);
30781 if (!SWIG_IsOK(ecode2)) {
30782 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemData" "', expected argument " "2"" of type '" "long""'");
30783 }
30784 arg2 = static_cast< long >(val2);
30785 ecode3 = SWIG_AsVal_long(obj2, &val3);
30786 if (!SWIG_IsOK(ecode3)) {
30787 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_FindItemData" "', expected argument " "3"" of type '" "long""'");
30788 }
30789 arg3 = static_cast< long >(val3);
30790 {
30791 PyThreadState* __tstate = wxPyBeginAllowThreads();
30792 result = (long)(arg1)->FindItem(arg2,arg3);
30793 wxPyEndAllowThreads(__tstate);
30794 if (PyErr_Occurred()) SWIG_fail;
30795 }
30796 resultobj = SWIG_From_long(static_cast< long >(result));
30797 return resultobj;
30798 fail:
30799 return NULL;
30800 }
30801
30802
30803 SWIGINTERN PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30804 PyObject *resultobj = 0;
30805 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30806 long arg2 ;
30807 wxPoint *arg3 = 0 ;
30808 int arg4 ;
30809 long result;
30810 void *argp1 = 0 ;
30811 int res1 = 0 ;
30812 long val2 ;
30813 int ecode2 = 0 ;
30814 wxPoint temp3 ;
30815 int val4 ;
30816 int ecode4 = 0 ;
30817 PyObject * obj0 = 0 ;
30818 PyObject * obj1 = 0 ;
30819 PyObject * obj2 = 0 ;
30820 PyObject * obj3 = 0 ;
30821 char * kwnames[] = {
30822 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
30823 };
30824
30825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30827 if (!SWIG_IsOK(res1)) {
30828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30829 }
30830 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30831 ecode2 = SWIG_AsVal_long(obj1, &val2);
30832 if (!SWIG_IsOK(ecode2)) {
30833 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "2"" of type '" "long""'");
30834 }
30835 arg2 = static_cast< long >(val2);
30836 {
30837 arg3 = &temp3;
30838 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30839 }
30840 ecode4 = SWIG_AsVal_int(obj3, &val4);
30841 if (!SWIG_IsOK(ecode4)) {
30842 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "4"" of type '" "int""'");
30843 }
30844 arg4 = static_cast< int >(val4);
30845 {
30846 PyThreadState* __tstate = wxPyBeginAllowThreads();
30847 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
30848 wxPyEndAllowThreads(__tstate);
30849 if (PyErr_Occurred()) SWIG_fail;
30850 }
30851 resultobj = SWIG_From_long(static_cast< long >(result));
30852 return resultobj;
30853 fail:
30854 return NULL;
30855 }
30856
30857
30858 SWIGINTERN PyObject *_wrap_ListCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30859 PyObject *resultobj = 0;
30860 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30861 wxPoint *arg2 = 0 ;
30862 int *arg3 = 0 ;
30863 long result;
30864 void *argp1 = 0 ;
30865 int res1 = 0 ;
30866 wxPoint temp2 ;
30867 int temp3 ;
30868 int res3 = SWIG_TMPOBJ ;
30869 PyObject * obj0 = 0 ;
30870 PyObject * obj1 = 0 ;
30871 char * kwnames[] = {
30872 (char *) "self",(char *) "point", NULL
30873 };
30874
30875 arg3 = &temp3;
30876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
30877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30878 if (!SWIG_IsOK(res1)) {
30879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30880 }
30881 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30882 {
30883 arg2 = &temp2;
30884 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30885 }
30886 {
30887 PyThreadState* __tstate = wxPyBeginAllowThreads();
30888 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
30889 wxPyEndAllowThreads(__tstate);
30890 if (PyErr_Occurred()) SWIG_fail;
30891 }
30892 resultobj = SWIG_From_long(static_cast< long >(result));
30893 if (SWIG_IsTmpObj(res3)) {
30894 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
30895 } else {
30896 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30897 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
30898 }
30899 return resultobj;
30900 fail:
30901 return NULL;
30902 }
30903
30904
30905 SWIGINTERN PyObject *_wrap_ListCtrl_HitTestSubItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30906 PyObject *resultobj = 0;
30907 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30908 wxPoint *arg2 = 0 ;
30909 int *arg3 = 0 ;
30910 long *arg4 = (long *) 0 ;
30911 long result;
30912 void *argp1 = 0 ;
30913 int res1 = 0 ;
30914 wxPoint temp2 ;
30915 int temp3 ;
30916 int res3 = SWIG_TMPOBJ ;
30917 long temp4 ;
30918 int res4 = SWIG_TMPOBJ ;
30919 PyObject * obj0 = 0 ;
30920 PyObject * obj1 = 0 ;
30921 char * kwnames[] = {
30922 (char *) "self",(char *) "point", NULL
30923 };
30924
30925 arg3 = &temp3;
30926 arg4 = &temp4;
30927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTestSubItem",kwnames,&obj0,&obj1)) SWIG_fail;
30928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30929 if (!SWIG_IsOK(res1)) {
30930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTestSubItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30931 }
30932 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30933 {
30934 arg2 = &temp2;
30935 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30936 }
30937 {
30938 PyThreadState* __tstate = wxPyBeginAllowThreads();
30939 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3,arg4);
30940 wxPyEndAllowThreads(__tstate);
30941 if (PyErr_Occurred()) SWIG_fail;
30942 }
30943 resultobj = SWIG_From_long(static_cast< long >(result));
30944 if (SWIG_IsTmpObj(res3)) {
30945 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
30946 } else {
30947 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30948 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
30949 }
30950 if (SWIG_IsTmpObj(res4)) {
30951 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
30952 } else {
30953 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30954 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
30955 }
30956 return resultobj;
30957 fail:
30958 return NULL;
30959 }
30960
30961
30962 SWIGINTERN PyObject *_wrap_ListCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30963 PyObject *resultobj = 0;
30964 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30965 wxListItem *arg2 = 0 ;
30966 long result;
30967 void *argp1 = 0 ;
30968 int res1 = 0 ;
30969 void *argp2 = 0 ;
30970 int res2 = 0 ;
30971 PyObject * obj0 = 0 ;
30972 PyObject * obj1 = 0 ;
30973 char * kwnames[] = {
30974 (char *) "self",(char *) "info", NULL
30975 };
30976
30977 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) SWIG_fail;
30978 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30979 if (!SWIG_IsOK(res1)) {
30980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30981 }
30982 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30983 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
30984 if (!SWIG_IsOK(res2)) {
30985 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
30986 }
30987 if (!argp2) {
30988 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
30989 }
30990 arg2 = reinterpret_cast< wxListItem * >(argp2);
30991 {
30992 PyThreadState* __tstate = wxPyBeginAllowThreads();
30993 result = (long)(arg1)->InsertItem(*arg2);
30994 wxPyEndAllowThreads(__tstate);
30995 if (PyErr_Occurred()) SWIG_fail;
30996 }
30997 resultobj = SWIG_From_long(static_cast< long >(result));
30998 return resultobj;
30999 fail:
31000 return NULL;
31001 }
31002
31003
31004 SWIGINTERN PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31005 PyObject *resultobj = 0;
31006 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31007 long arg2 ;
31008 wxString *arg3 = 0 ;
31009 int arg4 = (int) -1 ;
31010 long result;
31011 void *argp1 = 0 ;
31012 int res1 = 0 ;
31013 long val2 ;
31014 int ecode2 = 0 ;
31015 bool temp3 = false ;
31016 int val4 ;
31017 int ecode4 = 0 ;
31018 PyObject * obj0 = 0 ;
31019 PyObject * obj1 = 0 ;
31020 PyObject * obj2 = 0 ;
31021 PyObject * obj3 = 0 ;
31022 char * kwnames[] = {
31023 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31024 };
31025
31026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31028 if (!SWIG_IsOK(res1)) {
31029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31030 }
31031 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31032 ecode2 = SWIG_AsVal_long(obj1, &val2);
31033 if (!SWIG_IsOK(ecode2)) {
31034 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "2"" of type '" "long""'");
31035 }
31036 arg2 = static_cast< long >(val2);
31037 {
31038 arg3 = wxString_in_helper(obj2);
31039 if (arg3 == NULL) SWIG_fail;
31040 temp3 = true;
31041 }
31042 if (obj3) {
31043 ecode4 = SWIG_AsVal_int(obj3, &val4);
31044 if (!SWIG_IsOK(ecode4)) {
31045 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "4"" of type '" "int""'");
31046 }
31047 arg4 = static_cast< int >(val4);
31048 }
31049 {
31050 PyThreadState* __tstate = wxPyBeginAllowThreads();
31051 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31052 wxPyEndAllowThreads(__tstate);
31053 if (PyErr_Occurred()) SWIG_fail;
31054 }
31055 resultobj = SWIG_From_long(static_cast< long >(result));
31056 {
31057 if (temp3)
31058 delete arg3;
31059 }
31060 return resultobj;
31061 fail:
31062 {
31063 if (temp3)
31064 delete arg3;
31065 }
31066 return NULL;
31067 }
31068
31069
31070 SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31071 PyObject *resultobj = 0;
31072 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31073 long arg2 ;
31074 int arg3 ;
31075 long result;
31076 void *argp1 = 0 ;
31077 int res1 = 0 ;
31078 long val2 ;
31079 int ecode2 = 0 ;
31080 int val3 ;
31081 int ecode3 = 0 ;
31082 PyObject * obj0 = 0 ;
31083 PyObject * obj1 = 0 ;
31084 PyObject * obj2 = 0 ;
31085 char * kwnames[] = {
31086 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
31087 };
31088
31089 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31090 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31091 if (!SWIG_IsOK(res1)) {
31092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31093 }
31094 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31095 ecode2 = SWIG_AsVal_long(obj1, &val2);
31096 if (!SWIG_IsOK(ecode2)) {
31097 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "2"" of type '" "long""'");
31098 }
31099 arg2 = static_cast< long >(val2);
31100 ecode3 = SWIG_AsVal_int(obj2, &val3);
31101 if (!SWIG_IsOK(ecode3)) {
31102 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "3"" of type '" "int""'");
31103 }
31104 arg3 = static_cast< int >(val3);
31105 {
31106 PyThreadState* __tstate = wxPyBeginAllowThreads();
31107 result = (long)(arg1)->InsertItem(arg2,arg3);
31108 wxPyEndAllowThreads(__tstate);
31109 if (PyErr_Occurred()) SWIG_fail;
31110 }
31111 resultobj = SWIG_From_long(static_cast< long >(result));
31112 return resultobj;
31113 fail:
31114 return NULL;
31115 }
31116
31117
31118 SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31119 PyObject *resultobj = 0;
31120 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31121 long arg2 ;
31122 wxString *arg3 = 0 ;
31123 int arg4 ;
31124 long result;
31125 void *argp1 = 0 ;
31126 int res1 = 0 ;
31127 long val2 ;
31128 int ecode2 = 0 ;
31129 bool temp3 = false ;
31130 int val4 ;
31131 int ecode4 = 0 ;
31132 PyObject * obj0 = 0 ;
31133 PyObject * obj1 = 0 ;
31134 PyObject * obj2 = 0 ;
31135 PyObject * obj3 = 0 ;
31136 char * kwnames[] = {
31137 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31138 };
31139
31140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31142 if (!SWIG_IsOK(res1)) {
31143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31144 }
31145 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31146 ecode2 = SWIG_AsVal_long(obj1, &val2);
31147 if (!SWIG_IsOK(ecode2)) {
31148 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "2"" of type '" "long""'");
31149 }
31150 arg2 = static_cast< long >(val2);
31151 {
31152 arg3 = wxString_in_helper(obj2);
31153 if (arg3 == NULL) SWIG_fail;
31154 temp3 = true;
31155 }
31156 ecode4 = SWIG_AsVal_int(obj3, &val4);
31157 if (!SWIG_IsOK(ecode4)) {
31158 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "4"" of type '" "int""'");
31159 }
31160 arg4 = static_cast< int >(val4);
31161 {
31162 PyThreadState* __tstate = wxPyBeginAllowThreads();
31163 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31164 wxPyEndAllowThreads(__tstate);
31165 if (PyErr_Occurred()) SWIG_fail;
31166 }
31167 resultobj = SWIG_From_long(static_cast< long >(result));
31168 {
31169 if (temp3)
31170 delete arg3;
31171 }
31172 return resultobj;
31173 fail:
31174 {
31175 if (temp3)
31176 delete arg3;
31177 }
31178 return NULL;
31179 }
31180
31181
31182 SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31183 PyObject *resultobj = 0;
31184 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31185 long arg2 ;
31186 wxListItem *arg3 = 0 ;
31187 long result;
31188 void *argp1 = 0 ;
31189 int res1 = 0 ;
31190 long val2 ;
31191 int ecode2 = 0 ;
31192 void *argp3 = 0 ;
31193 int res3 = 0 ;
31194 PyObject * obj0 = 0 ;
31195 PyObject * obj1 = 0 ;
31196 PyObject * obj2 = 0 ;
31197 char * kwnames[] = {
31198 (char *) "self",(char *) "col",(char *) "info", NULL
31199 };
31200
31201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31203 if (!SWIG_IsOK(res1)) {
31204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31205 }
31206 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31207 ecode2 = SWIG_AsVal_long(obj1, &val2);
31208 if (!SWIG_IsOK(ecode2)) {
31209 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "2"" of type '" "long""'");
31210 }
31211 arg2 = static_cast< long >(val2);
31212 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
31213 if (!SWIG_IsOK(res3)) {
31214 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31215 }
31216 if (!argp3) {
31217 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31218 }
31219 arg3 = reinterpret_cast< wxListItem * >(argp3);
31220 {
31221 PyThreadState* __tstate = wxPyBeginAllowThreads();
31222 result = (long)(arg1)->InsertColumn(arg2,*arg3);
31223 wxPyEndAllowThreads(__tstate);
31224 if (PyErr_Occurred()) SWIG_fail;
31225 }
31226 resultobj = SWIG_From_long(static_cast< long >(result));
31227 return resultobj;
31228 fail:
31229 return NULL;
31230 }
31231
31232
31233 SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31234 PyObject *resultobj = 0;
31235 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31236 long arg2 ;
31237 wxString *arg3 = 0 ;
31238 int arg4 = (int) wxLIST_FORMAT_LEFT ;
31239 int arg5 = (int) -1 ;
31240 long result;
31241 void *argp1 = 0 ;
31242 int res1 = 0 ;
31243 long val2 ;
31244 int ecode2 = 0 ;
31245 bool temp3 = false ;
31246 int val4 ;
31247 int ecode4 = 0 ;
31248 int val5 ;
31249 int ecode5 = 0 ;
31250 PyObject * obj0 = 0 ;
31251 PyObject * obj1 = 0 ;
31252 PyObject * obj2 = 0 ;
31253 PyObject * obj3 = 0 ;
31254 PyObject * obj4 = 0 ;
31255 char * kwnames[] = {
31256 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
31257 };
31258
31259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31260 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31261 if (!SWIG_IsOK(res1)) {
31262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31263 }
31264 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31265 ecode2 = SWIG_AsVal_long(obj1, &val2);
31266 if (!SWIG_IsOK(ecode2)) {
31267 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumn" "', expected argument " "2"" of type '" "long""'");
31268 }
31269 arg2 = static_cast< long >(val2);
31270 {
31271 arg3 = wxString_in_helper(obj2);
31272 if (arg3 == NULL) SWIG_fail;
31273 temp3 = true;
31274 }
31275 if (obj3) {
31276 ecode4 = SWIG_AsVal_int(obj3, &val4);
31277 if (!SWIG_IsOK(ecode4)) {
31278 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertColumn" "', expected argument " "4"" of type '" "int""'");
31279 }
31280 arg4 = static_cast< int >(val4);
31281 }
31282 if (obj4) {
31283 ecode5 = SWIG_AsVal_int(obj4, &val5);
31284 if (!SWIG_IsOK(ecode5)) {
31285 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_InsertColumn" "', expected argument " "5"" of type '" "int""'");
31286 }
31287 arg5 = static_cast< int >(val5);
31288 }
31289 {
31290 PyThreadState* __tstate = wxPyBeginAllowThreads();
31291 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
31292 wxPyEndAllowThreads(__tstate);
31293 if (PyErr_Occurred()) SWIG_fail;
31294 }
31295 resultobj = SWIG_From_long(static_cast< long >(result));
31296 {
31297 if (temp3)
31298 delete arg3;
31299 }
31300 return resultobj;
31301 fail:
31302 {
31303 if (temp3)
31304 delete arg3;
31305 }
31306 return NULL;
31307 }
31308
31309
31310 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31311 PyObject *resultobj = 0;
31312 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31313 long arg2 ;
31314 void *argp1 = 0 ;
31315 int res1 = 0 ;
31316 long val2 ;
31317 int ecode2 = 0 ;
31318 PyObject * obj0 = 0 ;
31319 PyObject * obj1 = 0 ;
31320 char * kwnames[] = {
31321 (char *) "self",(char *) "count", NULL
31322 };
31323
31324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail;
31325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31326 if (!SWIG_IsOK(res1)) {
31327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31328 }
31329 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31330 ecode2 = SWIG_AsVal_long(obj1, &val2);
31331 if (!SWIG_IsOK(ecode2)) {
31332 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemCount" "', expected argument " "2"" of type '" "long""'");
31333 }
31334 arg2 = static_cast< long >(val2);
31335 {
31336 PyThreadState* __tstate = wxPyBeginAllowThreads();
31337 (arg1)->SetItemCount(arg2);
31338 wxPyEndAllowThreads(__tstate);
31339 if (PyErr_Occurred()) SWIG_fail;
31340 }
31341 resultobj = SWIG_Py_Void();
31342 return resultobj;
31343 fail:
31344 return NULL;
31345 }
31346
31347
31348 SWIGINTERN PyObject *_wrap_ListCtrl_ScrollList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31349 PyObject *resultobj = 0;
31350 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31351 int arg2 ;
31352 int arg3 ;
31353 bool result;
31354 void *argp1 = 0 ;
31355 int res1 = 0 ;
31356 int val2 ;
31357 int ecode2 = 0 ;
31358 int val3 ;
31359 int ecode3 = 0 ;
31360 PyObject * obj0 = 0 ;
31361 PyObject * obj1 = 0 ;
31362 PyObject * obj2 = 0 ;
31363 char * kwnames[] = {
31364 (char *) "self",(char *) "dx",(char *) "dy", NULL
31365 };
31366
31367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31369 if (!SWIG_IsOK(res1)) {
31370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ScrollList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31371 }
31372 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31373 ecode2 = SWIG_AsVal_int(obj1, &val2);
31374 if (!SWIG_IsOK(ecode2)) {
31375 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_ScrollList" "', expected argument " "2"" of type '" "int""'");
31376 }
31377 arg2 = static_cast< int >(val2);
31378 ecode3 = SWIG_AsVal_int(obj2, &val3);
31379 if (!SWIG_IsOK(ecode3)) {
31380 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_ScrollList" "', expected argument " "3"" of type '" "int""'");
31381 }
31382 arg3 = static_cast< int >(val3);
31383 {
31384 PyThreadState* __tstate = wxPyBeginAllowThreads();
31385 result = (bool)(arg1)->ScrollList(arg2,arg3);
31386 wxPyEndAllowThreads(__tstate);
31387 if (PyErr_Occurred()) SWIG_fail;
31388 }
31389 {
31390 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31391 }
31392 return resultobj;
31393 fail:
31394 return NULL;
31395 }
31396
31397
31398 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31399 PyObject *resultobj = 0;
31400 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31401 long arg2 ;
31402 wxColour *arg3 = 0 ;
31403 void *argp1 = 0 ;
31404 int res1 = 0 ;
31405 long val2 ;
31406 int ecode2 = 0 ;
31407 wxColour temp3 ;
31408 PyObject * obj0 = 0 ;
31409 PyObject * obj1 = 0 ;
31410 PyObject * obj2 = 0 ;
31411 char * kwnames[] = {
31412 (char *) "self",(char *) "item",(char *) "col", NULL
31413 };
31414
31415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31417 if (!SWIG_IsOK(res1)) {
31418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31419 }
31420 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31421 ecode2 = SWIG_AsVal_long(obj1, &val2);
31422 if (!SWIG_IsOK(ecode2)) {
31423 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31424 }
31425 arg2 = static_cast< long >(val2);
31426 {
31427 arg3 = &temp3;
31428 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31429 }
31430 {
31431 PyThreadState* __tstate = wxPyBeginAllowThreads();
31432 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
31433 wxPyEndAllowThreads(__tstate);
31434 if (PyErr_Occurred()) SWIG_fail;
31435 }
31436 resultobj = SWIG_Py_Void();
31437 return resultobj;
31438 fail:
31439 return NULL;
31440 }
31441
31442
31443 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31444 PyObject *resultobj = 0;
31445 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31446 long arg2 ;
31447 wxColour result;
31448 void *argp1 = 0 ;
31449 int res1 = 0 ;
31450 long val2 ;
31451 int ecode2 = 0 ;
31452 PyObject * obj0 = 0 ;
31453 PyObject * obj1 = 0 ;
31454 char * kwnames[] = {
31455 (char *) "self",(char *) "item", NULL
31456 };
31457
31458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
31459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31460 if (!SWIG_IsOK(res1)) {
31461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31462 }
31463 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31464 ecode2 = SWIG_AsVal_long(obj1, &val2);
31465 if (!SWIG_IsOK(ecode2)) {
31466 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31467 }
31468 arg2 = static_cast< long >(val2);
31469 {
31470 PyThreadState* __tstate = wxPyBeginAllowThreads();
31471 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
31472 wxPyEndAllowThreads(__tstate);
31473 if (PyErr_Occurred()) SWIG_fail;
31474 }
31475 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31476 return resultobj;
31477 fail:
31478 return NULL;
31479 }
31480
31481
31482 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31483 PyObject *resultobj = 0;
31484 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31485 long arg2 ;
31486 wxColour *arg3 = 0 ;
31487 void *argp1 = 0 ;
31488 int res1 = 0 ;
31489 long val2 ;
31490 int ecode2 = 0 ;
31491 wxColour temp3 ;
31492 PyObject * obj0 = 0 ;
31493 PyObject * obj1 = 0 ;
31494 PyObject * obj2 = 0 ;
31495 char * kwnames[] = {
31496 (char *) "self",(char *) "item",(char *) "col", NULL
31497 };
31498
31499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31500 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31501 if (!SWIG_IsOK(res1)) {
31502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31503 }
31504 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31505 ecode2 = SWIG_AsVal_long(obj1, &val2);
31506 if (!SWIG_IsOK(ecode2)) {
31507 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31508 }
31509 arg2 = static_cast< long >(val2);
31510 {
31511 arg3 = &temp3;
31512 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31513 }
31514 {
31515 PyThreadState* __tstate = wxPyBeginAllowThreads();
31516 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
31517 wxPyEndAllowThreads(__tstate);
31518 if (PyErr_Occurred()) SWIG_fail;
31519 }
31520 resultobj = SWIG_Py_Void();
31521 return resultobj;
31522 fail:
31523 return NULL;
31524 }
31525
31526
31527 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31528 PyObject *resultobj = 0;
31529 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31530 long arg2 ;
31531 wxColour result;
31532 void *argp1 = 0 ;
31533 int res1 = 0 ;
31534 long val2 ;
31535 int ecode2 = 0 ;
31536 PyObject * obj0 = 0 ;
31537 PyObject * obj1 = 0 ;
31538 char * kwnames[] = {
31539 (char *) "self",(char *) "item", NULL
31540 };
31541
31542 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
31543 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31544 if (!SWIG_IsOK(res1)) {
31545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31546 }
31547 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31548 ecode2 = SWIG_AsVal_long(obj1, &val2);
31549 if (!SWIG_IsOK(ecode2)) {
31550 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31551 }
31552 arg2 = static_cast< long >(val2);
31553 {
31554 PyThreadState* __tstate = wxPyBeginAllowThreads();
31555 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
31556 wxPyEndAllowThreads(__tstate);
31557 if (PyErr_Occurred()) SWIG_fail;
31558 }
31559 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31560 return resultobj;
31561 fail:
31562 return NULL;
31563 }
31564
31565
31566 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31567 PyObject *resultobj = 0;
31568 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31569 long arg2 ;
31570 wxFont *arg3 = 0 ;
31571 void *argp1 = 0 ;
31572 int res1 = 0 ;
31573 long val2 ;
31574 int ecode2 = 0 ;
31575 void *argp3 = 0 ;
31576 int res3 = 0 ;
31577 PyObject * obj0 = 0 ;
31578 PyObject * obj1 = 0 ;
31579 PyObject * obj2 = 0 ;
31580 char * kwnames[] = {
31581 (char *) "self",(char *) "item",(char *) "f", NULL
31582 };
31583
31584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31586 if (!SWIG_IsOK(res1)) {
31587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31588 }
31589 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31590 ecode2 = SWIG_AsVal_long(obj1, &val2);
31591 if (!SWIG_IsOK(ecode2)) {
31592 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemFont" "', expected argument " "2"" of type '" "long""'");
31593 }
31594 arg2 = static_cast< long >(val2);
31595 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
31596 if (!SWIG_IsOK(res3)) {
31597 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31598 }
31599 if (!argp3) {
31600 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31601 }
31602 arg3 = reinterpret_cast< wxFont * >(argp3);
31603 {
31604 PyThreadState* __tstate = wxPyBeginAllowThreads();
31605 (arg1)->SetItemFont(arg2,(wxFont const &)*arg3);
31606 wxPyEndAllowThreads(__tstate);
31607 if (PyErr_Occurred()) SWIG_fail;
31608 }
31609 resultobj = SWIG_Py_Void();
31610 return resultobj;
31611 fail:
31612 return NULL;
31613 }
31614
31615
31616 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31617 PyObject *resultobj = 0;
31618 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31619 long arg2 ;
31620 wxFont result;
31621 void *argp1 = 0 ;
31622 int res1 = 0 ;
31623 long val2 ;
31624 int ecode2 = 0 ;
31625 PyObject * obj0 = 0 ;
31626 PyObject * obj1 = 0 ;
31627 char * kwnames[] = {
31628 (char *) "self",(char *) "item", NULL
31629 };
31630
31631 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
31632 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31633 if (!SWIG_IsOK(res1)) {
31634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31635 }
31636 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31637 ecode2 = SWIG_AsVal_long(obj1, &val2);
31638 if (!SWIG_IsOK(ecode2)) {
31639 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemFont" "', expected argument " "2"" of type '" "long""'");
31640 }
31641 arg2 = static_cast< long >(val2);
31642 {
31643 PyThreadState* __tstate = wxPyBeginAllowThreads();
31644 result = ((wxPyListCtrl const *)arg1)->GetItemFont(arg2);
31645 wxPyEndAllowThreads(__tstate);
31646 if (PyErr_Occurred()) SWIG_fail;
31647 }
31648 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
31649 return resultobj;
31650 fail:
31651 return NULL;
31652 }
31653
31654
31655 SWIGINTERN PyObject *_wrap_ListCtrl_SortItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31656 PyObject *resultobj = 0;
31657 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31658 PyObject *arg2 = (PyObject *) 0 ;
31659 bool result;
31660 void *argp1 = 0 ;
31661 int res1 = 0 ;
31662 PyObject * obj0 = 0 ;
31663 PyObject * obj1 = 0 ;
31664 char * kwnames[] = {
31665 (char *) "self",(char *) "func", NULL
31666 };
31667
31668 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) SWIG_fail;
31669 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31670 if (!SWIG_IsOK(res1)) {
31671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SortItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31672 }
31673 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31674 arg2 = obj1;
31675 {
31676 PyThreadState* __tstate = wxPyBeginAllowThreads();
31677 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
31678 wxPyEndAllowThreads(__tstate);
31679 if (PyErr_Occurred()) SWIG_fail;
31680 }
31681 {
31682 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31683 }
31684 return resultobj;
31685 fail:
31686 return NULL;
31687 }
31688
31689
31690 SWIGINTERN PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31691 PyObject *resultobj = 0;
31692 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31693 wxWindow *result = 0 ;
31694 void *argp1 = 0 ;
31695 int res1 = 0 ;
31696 PyObject *swig_obj[1] ;
31697
31698 if (!args) SWIG_fail;
31699 swig_obj[0] = args;
31700 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31701 if (!SWIG_IsOK(res1)) {
31702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetMainWindow" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31703 }
31704 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31705 {
31706 PyThreadState* __tstate = wxPyBeginAllowThreads();
31707 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
31708 wxPyEndAllowThreads(__tstate);
31709 if (PyErr_Occurred()) SWIG_fail;
31710 }
31711 {
31712 resultobj = wxPyMake_wxObject(result, 0);
31713 }
31714 return resultobj;
31715 fail:
31716 return NULL;
31717 }
31718
31719
31720 SWIGINTERN PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31721 PyObject *resultobj = 0;
31722 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
31723 SwigValueWrapper<wxVisualAttributes > result;
31724 int val1 ;
31725 int ecode1 = 0 ;
31726 PyObject * obj0 = 0 ;
31727 char * kwnames[] = {
31728 (char *) "variant", NULL
31729 };
31730
31731 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
31732 if (obj0) {
31733 ecode1 = SWIG_AsVal_int(obj0, &val1);
31734 if (!SWIG_IsOK(ecode1)) {
31735 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
31736 }
31737 arg1 = static_cast< wxWindowVariant >(val1);
31738 }
31739 {
31740 if (!wxPyCheckForApp()) SWIG_fail;
31741 PyThreadState* __tstate = wxPyBeginAllowThreads();
31742 result = wxPyListCtrl::GetClassDefaultAttributes(arg1);
31743 wxPyEndAllowThreads(__tstate);
31744 if (PyErr_Occurred()) SWIG_fail;
31745 }
31746 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
31747 return resultobj;
31748 fail:
31749 return NULL;
31750 }
31751
31752
31753 SWIGINTERN PyObject *ListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31754 PyObject *obj;
31755 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31756 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyListCtrl, SWIG_NewClientData(obj));
31757 return SWIG_Py_Void();
31758 }
31759
31760 SWIGINTERN PyObject *ListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31761 return SWIG_Python_InitShadowInstance(args);
31762 }
31763
31764 SWIGINTERN PyObject *_wrap_new_ListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31765 PyObject *resultobj = 0;
31766 wxWindow *arg1 = (wxWindow *) 0 ;
31767 int arg2 = (int) -1 ;
31768 wxPoint const &arg3_defvalue = wxDefaultPosition ;
31769 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
31770 wxSize const &arg4_defvalue = wxDefaultSize ;
31771 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
31772 long arg5 = (long) wxLC_REPORT ;
31773 wxValidator const &arg6_defvalue = wxDefaultValidator ;
31774 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
31775 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
31776 wxString *arg7 = (wxString *) &arg7_defvalue ;
31777 wxListView *result = 0 ;
31778 void *argp1 = 0 ;
31779 int res1 = 0 ;
31780 int val2 ;
31781 int ecode2 = 0 ;
31782 wxPoint temp3 ;
31783 wxSize temp4 ;
31784 long val5 ;
31785 int ecode5 = 0 ;
31786 void *argp6 = 0 ;
31787 int res6 = 0 ;
31788 bool temp7 = false ;
31789 PyObject * obj0 = 0 ;
31790 PyObject * obj1 = 0 ;
31791 PyObject * obj2 = 0 ;
31792 PyObject * obj3 = 0 ;
31793 PyObject * obj4 = 0 ;
31794 PyObject * obj5 = 0 ;
31795 PyObject * obj6 = 0 ;
31796 char * kwnames[] = {
31797 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
31798 };
31799
31800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
31802 if (!SWIG_IsOK(res1)) {
31803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListView" "', expected argument " "1"" of type '" "wxWindow *""'");
31804 }
31805 arg1 = reinterpret_cast< wxWindow * >(argp1);
31806 if (obj1) {
31807 ecode2 = SWIG_AsVal_int(obj1, &val2);
31808 if (!SWIG_IsOK(ecode2)) {
31809 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListView" "', expected argument " "2"" of type '" "int""'");
31810 }
31811 arg2 = static_cast< int >(val2);
31812 }
31813 if (obj2) {
31814 {
31815 arg3 = &temp3;
31816 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31817 }
31818 }
31819 if (obj3) {
31820 {
31821 arg4 = &temp4;
31822 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
31823 }
31824 }
31825 if (obj4) {
31826 ecode5 = SWIG_AsVal_long(obj4, &val5);
31827 if (!SWIG_IsOK(ecode5)) {
31828 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListView" "', expected argument " "5"" of type '" "long""'");
31829 }
31830 arg5 = static_cast< long >(val5);
31831 }
31832 if (obj5) {
31833 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
31834 if (!SWIG_IsOK(res6)) {
31835 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
31836 }
31837 if (!argp6) {
31838 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
31839 }
31840 arg6 = reinterpret_cast< wxValidator * >(argp6);
31841 }
31842 if (obj6) {
31843 {
31844 arg7 = wxString_in_helper(obj6);
31845 if (arg7 == NULL) SWIG_fail;
31846 temp7 = true;
31847 }
31848 }
31849 {
31850 if (!wxPyCheckForApp()) SWIG_fail;
31851 PyThreadState* __tstate = wxPyBeginAllowThreads();
31852 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
31853 wxPyEndAllowThreads(__tstate);
31854 if (PyErr_Occurred()) SWIG_fail;
31855 }
31856 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_NEW | 0 );
31857 {
31858 if (temp7)
31859 delete arg7;
31860 }
31861 return resultobj;
31862 fail:
31863 {
31864 if (temp7)
31865 delete arg7;
31866 }
31867 return NULL;
31868 }
31869
31870
31871 SWIGINTERN PyObject *_wrap_new_PreListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31872 PyObject *resultobj = 0;
31873 wxListView *result = 0 ;
31874
31875 if (!SWIG_Python_UnpackTuple(args,"new_PreListView",0,0,0)) SWIG_fail;
31876 {
31877 if (!wxPyCheckForApp()) SWIG_fail;
31878 PyThreadState* __tstate = wxPyBeginAllowThreads();
31879 result = (wxListView *)new wxListView();
31880 wxPyEndAllowThreads(__tstate);
31881 if (PyErr_Occurred()) SWIG_fail;
31882 }
31883 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_OWN | 0 );
31884 return resultobj;
31885 fail:
31886 return NULL;
31887 }
31888
31889
31890 SWIGINTERN PyObject *_wrap_ListView_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31891 PyObject *resultobj = 0;
31892 wxListView *arg1 = (wxListView *) 0 ;
31893 wxWindow *arg2 = (wxWindow *) 0 ;
31894 int arg3 = (int) -1 ;
31895 wxPoint const &arg4_defvalue = wxDefaultPosition ;
31896 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
31897 wxSize const &arg5_defvalue = wxDefaultSize ;
31898 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
31899 long arg6 = (long) wxLC_REPORT ;
31900 wxValidator const &arg7_defvalue = wxDefaultValidator ;
31901 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
31902 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
31903 wxString *arg8 = (wxString *) &arg8_defvalue ;
31904 bool result;
31905 void *argp1 = 0 ;
31906 int res1 = 0 ;
31907 void *argp2 = 0 ;
31908 int res2 = 0 ;
31909 int val3 ;
31910 int ecode3 = 0 ;
31911 wxPoint temp4 ;
31912 wxSize temp5 ;
31913 long val6 ;
31914 int ecode6 = 0 ;
31915 void *argp7 = 0 ;
31916 int res7 = 0 ;
31917 bool temp8 = false ;
31918 PyObject * obj0 = 0 ;
31919 PyObject * obj1 = 0 ;
31920 PyObject * obj2 = 0 ;
31921 PyObject * obj3 = 0 ;
31922 PyObject * obj4 = 0 ;
31923 PyObject * obj5 = 0 ;
31924 PyObject * obj6 = 0 ;
31925 PyObject * obj7 = 0 ;
31926 char * kwnames[] = {
31927 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
31928 };
31929
31930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
31931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31932 if (!SWIG_IsOK(res1)) {
31933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Create" "', expected argument " "1"" of type '" "wxListView *""'");
31934 }
31935 arg1 = reinterpret_cast< wxListView * >(argp1);
31936 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31937 if (!SWIG_IsOK(res2)) {
31938 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListView_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
31939 }
31940 arg2 = reinterpret_cast< wxWindow * >(argp2);
31941 if (obj2) {
31942 ecode3 = SWIG_AsVal_int(obj2, &val3);
31943 if (!SWIG_IsOK(ecode3)) {
31944 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Create" "', expected argument " "3"" of type '" "int""'");
31945 }
31946 arg3 = static_cast< int >(val3);
31947 }
31948 if (obj3) {
31949 {
31950 arg4 = &temp4;
31951 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
31952 }
31953 }
31954 if (obj4) {
31955 {
31956 arg5 = &temp5;
31957 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
31958 }
31959 }
31960 if (obj5) {
31961 ecode6 = SWIG_AsVal_long(obj5, &val6);
31962 if (!SWIG_IsOK(ecode6)) {
31963 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListView_Create" "', expected argument " "6"" of type '" "long""'");
31964 }
31965 arg6 = static_cast< long >(val6);
31966 }
31967 if (obj6) {
31968 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
31969 if (!SWIG_IsOK(res7)) {
31970 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
31971 }
31972 if (!argp7) {
31973 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
31974 }
31975 arg7 = reinterpret_cast< wxValidator * >(argp7);
31976 }
31977 if (obj7) {
31978 {
31979 arg8 = wxString_in_helper(obj7);
31980 if (arg8 == NULL) SWIG_fail;
31981 temp8 = true;
31982 }
31983 }
31984 {
31985 PyThreadState* __tstate = wxPyBeginAllowThreads();
31986 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
31987 wxPyEndAllowThreads(__tstate);
31988 if (PyErr_Occurred()) SWIG_fail;
31989 }
31990 {
31991 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31992 }
31993 {
31994 if (temp8)
31995 delete arg8;
31996 }
31997 return resultobj;
31998 fail:
31999 {
32000 if (temp8)
32001 delete arg8;
32002 }
32003 return NULL;
32004 }
32005
32006
32007 SWIGINTERN PyObject *_wrap_ListView_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32008 PyObject *resultobj = 0;
32009 wxListView *arg1 = (wxListView *) 0 ;
32010 long arg2 ;
32011 bool arg3 = (bool) true ;
32012 void *argp1 = 0 ;
32013 int res1 = 0 ;
32014 long val2 ;
32015 int ecode2 = 0 ;
32016 bool val3 ;
32017 int ecode3 = 0 ;
32018 PyObject * obj0 = 0 ;
32019 PyObject * obj1 = 0 ;
32020 PyObject * obj2 = 0 ;
32021 char * kwnames[] = {
32022 (char *) "self",(char *) "n",(char *) "on", NULL
32023 };
32024
32025 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32026 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32027 if (!SWIG_IsOK(res1)) {
32028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Select" "', expected argument " "1"" of type '" "wxListView *""'");
32029 }
32030 arg1 = reinterpret_cast< wxListView * >(argp1);
32031 ecode2 = SWIG_AsVal_long(obj1, &val2);
32032 if (!SWIG_IsOK(ecode2)) {
32033 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Select" "', expected argument " "2"" of type '" "long""'");
32034 }
32035 arg2 = static_cast< long >(val2);
32036 if (obj2) {
32037 ecode3 = SWIG_AsVal_bool(obj2, &val3);
32038 if (!SWIG_IsOK(ecode3)) {
32039 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Select" "', expected argument " "3"" of type '" "bool""'");
32040 }
32041 arg3 = static_cast< bool >(val3);
32042 }
32043 {
32044 PyThreadState* __tstate = wxPyBeginAllowThreads();
32045 (arg1)->Select(arg2,arg3);
32046 wxPyEndAllowThreads(__tstate);
32047 if (PyErr_Occurred()) SWIG_fail;
32048 }
32049 resultobj = SWIG_Py_Void();
32050 return resultobj;
32051 fail:
32052 return NULL;
32053 }
32054
32055
32056 SWIGINTERN PyObject *_wrap_ListView_Focus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32057 PyObject *resultobj = 0;
32058 wxListView *arg1 = (wxListView *) 0 ;
32059 long arg2 ;
32060 void *argp1 = 0 ;
32061 int res1 = 0 ;
32062 long val2 ;
32063 int ecode2 = 0 ;
32064 PyObject * obj0 = 0 ;
32065 PyObject * obj1 = 0 ;
32066 char * kwnames[] = {
32067 (char *) "self",(char *) "index", NULL
32068 };
32069
32070 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) SWIG_fail;
32071 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32072 if (!SWIG_IsOK(res1)) {
32073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Focus" "', expected argument " "1"" of type '" "wxListView *""'");
32074 }
32075 arg1 = reinterpret_cast< wxListView * >(argp1);
32076 ecode2 = SWIG_AsVal_long(obj1, &val2);
32077 if (!SWIG_IsOK(ecode2)) {
32078 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Focus" "', expected argument " "2"" of type '" "long""'");
32079 }
32080 arg2 = static_cast< long >(val2);
32081 {
32082 PyThreadState* __tstate = wxPyBeginAllowThreads();
32083 (arg1)->Focus(arg2);
32084 wxPyEndAllowThreads(__tstate);
32085 if (PyErr_Occurred()) SWIG_fail;
32086 }
32087 resultobj = SWIG_Py_Void();
32088 return resultobj;
32089 fail:
32090 return NULL;
32091 }
32092
32093
32094 SWIGINTERN PyObject *_wrap_ListView_GetFocusedItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32095 PyObject *resultobj = 0;
32096 wxListView *arg1 = (wxListView *) 0 ;
32097 long result;
32098 void *argp1 = 0 ;
32099 int res1 = 0 ;
32100 PyObject *swig_obj[1] ;
32101
32102 if (!args) SWIG_fail;
32103 swig_obj[0] = args;
32104 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32105 if (!SWIG_IsOK(res1)) {
32106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFocusedItem" "', expected argument " "1"" of type '" "wxListView const *""'");
32107 }
32108 arg1 = reinterpret_cast< wxListView * >(argp1);
32109 {
32110 PyThreadState* __tstate = wxPyBeginAllowThreads();
32111 result = (long)((wxListView const *)arg1)->GetFocusedItem();
32112 wxPyEndAllowThreads(__tstate);
32113 if (PyErr_Occurred()) SWIG_fail;
32114 }
32115 resultobj = SWIG_From_long(static_cast< long >(result));
32116 return resultobj;
32117 fail:
32118 return NULL;
32119 }
32120
32121
32122 SWIGINTERN PyObject *_wrap_ListView_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32123 PyObject *resultobj = 0;
32124 wxListView *arg1 = (wxListView *) 0 ;
32125 long arg2 ;
32126 long result;
32127 void *argp1 = 0 ;
32128 int res1 = 0 ;
32129 long val2 ;
32130 int ecode2 = 0 ;
32131 PyObject * obj0 = 0 ;
32132 PyObject * obj1 = 0 ;
32133 char * kwnames[] = {
32134 (char *) "self",(char *) "item", NULL
32135 };
32136
32137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32139 if (!SWIG_IsOK(res1)) {
32140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetNextSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32141 }
32142 arg1 = reinterpret_cast< wxListView * >(argp1);
32143 ecode2 = SWIG_AsVal_long(obj1, &val2);
32144 if (!SWIG_IsOK(ecode2)) {
32145 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_GetNextSelected" "', expected argument " "2"" of type '" "long""'");
32146 }
32147 arg2 = static_cast< long >(val2);
32148 {
32149 PyThreadState* __tstate = wxPyBeginAllowThreads();
32150 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
32151 wxPyEndAllowThreads(__tstate);
32152 if (PyErr_Occurred()) SWIG_fail;
32153 }
32154 resultobj = SWIG_From_long(static_cast< long >(result));
32155 return resultobj;
32156 fail:
32157 return NULL;
32158 }
32159
32160
32161 SWIGINTERN PyObject *_wrap_ListView_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32162 PyObject *resultobj = 0;
32163 wxListView *arg1 = (wxListView *) 0 ;
32164 long result;
32165 void *argp1 = 0 ;
32166 int res1 = 0 ;
32167 PyObject *swig_obj[1] ;
32168
32169 if (!args) SWIG_fail;
32170 swig_obj[0] = args;
32171 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32172 if (!SWIG_IsOK(res1)) {
32173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFirstSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32174 }
32175 arg1 = reinterpret_cast< wxListView * >(argp1);
32176 {
32177 PyThreadState* __tstate = wxPyBeginAllowThreads();
32178 result = (long)((wxListView const *)arg1)->GetFirstSelected();
32179 wxPyEndAllowThreads(__tstate);
32180 if (PyErr_Occurred()) SWIG_fail;
32181 }
32182 resultobj = SWIG_From_long(static_cast< long >(result));
32183 return resultobj;
32184 fail:
32185 return NULL;
32186 }
32187
32188
32189 SWIGINTERN PyObject *_wrap_ListView_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32190 PyObject *resultobj = 0;
32191 wxListView *arg1 = (wxListView *) 0 ;
32192 long arg2 ;
32193 bool result;
32194 void *argp1 = 0 ;
32195 int res1 = 0 ;
32196 long val2 ;
32197 int ecode2 = 0 ;
32198 PyObject * obj0 = 0 ;
32199 PyObject * obj1 = 0 ;
32200 char * kwnames[] = {
32201 (char *) "self",(char *) "index", NULL
32202 };
32203
32204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32205 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32206 if (!SWIG_IsOK(res1)) {
32207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_IsSelected" "', expected argument " "1"" of type '" "wxListView *""'");
32208 }
32209 arg1 = reinterpret_cast< wxListView * >(argp1);
32210 ecode2 = SWIG_AsVal_long(obj1, &val2);
32211 if (!SWIG_IsOK(ecode2)) {
32212 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_IsSelected" "', expected argument " "2"" of type '" "long""'");
32213 }
32214 arg2 = static_cast< long >(val2);
32215 {
32216 PyThreadState* __tstate = wxPyBeginAllowThreads();
32217 result = (bool)(arg1)->IsSelected(arg2);
32218 wxPyEndAllowThreads(__tstate);
32219 if (PyErr_Occurred()) SWIG_fail;
32220 }
32221 {
32222 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32223 }
32224 return resultobj;
32225 fail:
32226 return NULL;
32227 }
32228
32229
32230 SWIGINTERN PyObject *_wrap_ListView_SetColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32231 PyObject *resultobj = 0;
32232 wxListView *arg1 = (wxListView *) 0 ;
32233 int arg2 ;
32234 int arg3 ;
32235 void *argp1 = 0 ;
32236 int res1 = 0 ;
32237 int val2 ;
32238 int ecode2 = 0 ;
32239 int val3 ;
32240 int ecode3 = 0 ;
32241 PyObject * obj0 = 0 ;
32242 PyObject * obj1 = 0 ;
32243 PyObject * obj2 = 0 ;
32244 char * kwnames[] = {
32245 (char *) "self",(char *) "col",(char *) "image", NULL
32246 };
32247
32248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32249 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32250 if (!SWIG_IsOK(res1)) {
32251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_SetColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32252 }
32253 arg1 = reinterpret_cast< wxListView * >(argp1);
32254 ecode2 = SWIG_AsVal_int(obj1, &val2);
32255 if (!SWIG_IsOK(ecode2)) {
32256 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_SetColumnImage" "', expected argument " "2"" of type '" "int""'");
32257 }
32258 arg2 = static_cast< int >(val2);
32259 ecode3 = SWIG_AsVal_int(obj2, &val3);
32260 if (!SWIG_IsOK(ecode3)) {
32261 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_SetColumnImage" "', expected argument " "3"" of type '" "int""'");
32262 }
32263 arg3 = static_cast< int >(val3);
32264 {
32265 PyThreadState* __tstate = wxPyBeginAllowThreads();
32266 (arg1)->SetColumnImage(arg2,arg3);
32267 wxPyEndAllowThreads(__tstate);
32268 if (PyErr_Occurred()) SWIG_fail;
32269 }
32270 resultobj = SWIG_Py_Void();
32271 return resultobj;
32272 fail:
32273 return NULL;
32274 }
32275
32276
32277 SWIGINTERN PyObject *_wrap_ListView_ClearColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32278 PyObject *resultobj = 0;
32279 wxListView *arg1 = (wxListView *) 0 ;
32280 int arg2 ;
32281 void *argp1 = 0 ;
32282 int res1 = 0 ;
32283 int val2 ;
32284 int ecode2 = 0 ;
32285 PyObject * obj0 = 0 ;
32286 PyObject * obj1 = 0 ;
32287 char * kwnames[] = {
32288 (char *) "self",(char *) "col", NULL
32289 };
32290
32291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) SWIG_fail;
32292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32293 if (!SWIG_IsOK(res1)) {
32294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_ClearColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32295 }
32296 arg1 = reinterpret_cast< wxListView * >(argp1);
32297 ecode2 = SWIG_AsVal_int(obj1, &val2);
32298 if (!SWIG_IsOK(ecode2)) {
32299 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_ClearColumnImage" "', expected argument " "2"" of type '" "int""'");
32300 }
32301 arg2 = static_cast< int >(val2);
32302 {
32303 PyThreadState* __tstate = wxPyBeginAllowThreads();
32304 (arg1)->ClearColumnImage(arg2);
32305 wxPyEndAllowThreads(__tstate);
32306 if (PyErr_Occurred()) SWIG_fail;
32307 }
32308 resultobj = SWIG_Py_Void();
32309 return resultobj;
32310 fail:
32311 return NULL;
32312 }
32313
32314
32315 SWIGINTERN PyObject *ListView_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32316 PyObject *obj;
32317 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32318 SWIG_TypeNewClientData(SWIGTYPE_p_wxListView, SWIG_NewClientData(obj));
32319 return SWIG_Py_Void();
32320 }
32321
32322 SWIGINTERN PyObject *ListView_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32323 return SWIG_Python_InitShadowInstance(args);
32324 }
32325
32326 SWIGINTERN int TreeCtrlNameStr_set(PyObject *) {
32327 SWIG_Error(SWIG_AttributeError,"Variable TreeCtrlNameStr is read-only.");
32328 return 1;
32329 }
32330
32331
32332 SWIGINTERN PyObject *TreeCtrlNameStr_get(void) {
32333 PyObject *pyobj = 0;
32334
32335 {
32336 #if wxUSE_UNICODE
32337 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32338 #else
32339 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32340 #endif
32341 }
32342 return pyobj;
32343 }
32344
32345
32346 SWIGINTERN PyObject *_wrap_new_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32347 PyObject *resultobj = 0;
32348 wxTreeItemId *result = 0 ;
32349
32350 if (!SWIG_Python_UnpackTuple(args,"new_TreeItemId",0,0,0)) SWIG_fail;
32351 {
32352 PyThreadState* __tstate = wxPyBeginAllowThreads();
32353 result = (wxTreeItemId *)new wxTreeItemId();
32354 wxPyEndAllowThreads(__tstate);
32355 if (PyErr_Occurred()) SWIG_fail;
32356 }
32357 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_NEW | 0 );
32358 return resultobj;
32359 fail:
32360 return NULL;
32361 }
32362
32363
32364 SWIGINTERN PyObject *_wrap_delete_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32365 PyObject *resultobj = 0;
32366 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32367 void *argp1 = 0 ;
32368 int res1 = 0 ;
32369 PyObject *swig_obj[1] ;
32370
32371 if (!args) SWIG_fail;
32372 swig_obj[0] = args;
32373 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_DISOWN | 0 );
32374 if (!SWIG_IsOK(res1)) {
32375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemId" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32376 }
32377 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32378 {
32379 PyThreadState* __tstate = wxPyBeginAllowThreads();
32380 delete arg1;
32381
32382 wxPyEndAllowThreads(__tstate);
32383 if (PyErr_Occurred()) SWIG_fail;
32384 }
32385 resultobj = SWIG_Py_Void();
32386 return resultobj;
32387 fail:
32388 return NULL;
32389 }
32390
32391
32392 SWIGINTERN PyObject *_wrap_TreeItemId_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32393 PyObject *resultobj = 0;
32394 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32395 bool result;
32396 void *argp1 = 0 ;
32397 int res1 = 0 ;
32398 PyObject *swig_obj[1] ;
32399
32400 if (!args) SWIG_fail;
32401 swig_obj[0] = args;
32402 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32403 if (!SWIG_IsOK(res1)) {
32404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_IsOk" "', expected argument " "1"" of type '" "wxTreeItemId const *""'");
32405 }
32406 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32407 {
32408 PyThreadState* __tstate = wxPyBeginAllowThreads();
32409 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
32410 wxPyEndAllowThreads(__tstate);
32411 if (PyErr_Occurred()) SWIG_fail;
32412 }
32413 {
32414 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32415 }
32416 return resultobj;
32417 fail:
32418 return NULL;
32419 }
32420
32421
32422 SWIGINTERN PyObject *_wrap_TreeItemId___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32423 PyObject *resultobj = 0;
32424 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32425 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32426 bool result;
32427 void *argp1 = 0 ;
32428 int res1 = 0 ;
32429 void *argp2 = 0 ;
32430 int res2 = 0 ;
32431 PyObject * obj0 = 0 ;
32432 PyObject * obj1 = 0 ;
32433 char * kwnames[] = {
32434 (char *) "self",(char *) "other", NULL
32435 };
32436
32437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
32438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32439 if (!SWIG_IsOK(res1)) {
32440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___eq__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32441 }
32442 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32443 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32444 if (!SWIG_IsOK(res2)) {
32445 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___eq__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32446 }
32447 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32448 {
32449 PyThreadState* __tstate = wxPyBeginAllowThreads();
32450 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
32451 wxPyEndAllowThreads(__tstate);
32452 if (PyErr_Occurred()) SWIG_fail;
32453 }
32454 {
32455 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32456 }
32457 return resultobj;
32458 fail:
32459 return NULL;
32460 }
32461
32462
32463 SWIGINTERN PyObject *_wrap_TreeItemId___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32464 PyObject *resultobj = 0;
32465 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32466 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32467 bool result;
32468 void *argp1 = 0 ;
32469 int res1 = 0 ;
32470 void *argp2 = 0 ;
32471 int res2 = 0 ;
32472 PyObject * obj0 = 0 ;
32473 PyObject * obj1 = 0 ;
32474 char * kwnames[] = {
32475 (char *) "self",(char *) "other", NULL
32476 };
32477
32478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
32479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32480 if (!SWIG_IsOK(res1)) {
32481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___ne__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32482 }
32483 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32484 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32485 if (!SWIG_IsOK(res2)) {
32486 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___ne__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32487 }
32488 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32489 {
32490 PyThreadState* __tstate = wxPyBeginAllowThreads();
32491 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
32492 wxPyEndAllowThreads(__tstate);
32493 if (PyErr_Occurred()) SWIG_fail;
32494 }
32495 {
32496 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32497 }
32498 return resultobj;
32499 fail:
32500 return NULL;
32501 }
32502
32503
32504 SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32505 PyObject *resultobj = 0;
32506 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32507 void *arg2 = (void *) 0 ;
32508 void *argp1 = 0 ;
32509 int res1 = 0 ;
32510 int res2 ;
32511 PyObject *swig_obj[2] ;
32512
32513 if (!SWIG_Python_UnpackTuple(args,"TreeItemId_m_pItem_set",2,2,swig_obj)) SWIG_fail;
32514 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32515 if (!SWIG_IsOK(res1)) {
32516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32517 }
32518 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32519 res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
32520 if (!SWIG_IsOK(res2)) {
32521 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "2"" of type '" "void *""'");
32522 }
32523 if (arg1) (arg1)->m_pItem = arg2;
32524
32525 resultobj = SWIG_Py_Void();
32526 return resultobj;
32527 fail:
32528 return NULL;
32529 }
32530
32531
32532 SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32533 PyObject *resultobj = 0;
32534 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32535 void *result = 0 ;
32536 void *argp1 = 0 ;
32537 int res1 = 0 ;
32538 PyObject *swig_obj[1] ;
32539
32540 if (!args) SWIG_fail;
32541 swig_obj[0] = args;
32542 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32543 if (!SWIG_IsOK(res1)) {
32544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_get" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32545 }
32546 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32547 result = (void *) ((arg1)->m_pItem);
32548 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
32549 return resultobj;
32550 fail:
32551 return NULL;
32552 }
32553
32554
32555 SWIGINTERN PyObject *TreeItemId_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32556 PyObject *obj;
32557 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32558 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeItemId, SWIG_NewClientData(obj));
32559 return SWIG_Py_Void();
32560 }
32561
32562 SWIGINTERN PyObject *TreeItemId_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32563 return SWIG_Python_InitShadowInstance(args);
32564 }
32565
32566 SWIGINTERN PyObject *_wrap_new_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32567 PyObject *resultobj = 0;
32568 PyObject *arg1 = (PyObject *) NULL ;
32569 wxPyTreeItemData *result = 0 ;
32570 PyObject * obj0 = 0 ;
32571 char * kwnames[] = {
32572 (char *) "obj", NULL
32573 };
32574
32575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) SWIG_fail;
32576 if (obj0) {
32577 arg1 = obj0;
32578 }
32579 {
32580 PyThreadState* __tstate = wxPyBeginAllowThreads();
32581 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
32582 wxPyEndAllowThreads(__tstate);
32583 if (PyErr_Occurred()) SWIG_fail;
32584 }
32585 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_NEW | 0 );
32586 return resultobj;
32587 fail:
32588 return NULL;
32589 }
32590
32591
32592 SWIGINTERN PyObject *_wrap_delete_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32593 PyObject *resultobj = 0;
32594 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32595 void *argp1 = 0 ;
32596 int res1 = 0 ;
32597 PyObject *swig_obj[1] ;
32598
32599 if (!args) SWIG_fail;
32600 swig_obj[0] = args;
32601 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
32602 if (!SWIG_IsOK(res1)) {
32603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32604 }
32605 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32606 {
32607 PyThreadState* __tstate = wxPyBeginAllowThreads();
32608 delete arg1;
32609
32610 wxPyEndAllowThreads(__tstate);
32611 if (PyErr_Occurred()) SWIG_fail;
32612 }
32613 resultobj = SWIG_Py_Void();
32614 return resultobj;
32615 fail:
32616 return NULL;
32617 }
32618
32619
32620 SWIGINTERN PyObject *_wrap_TreeItemData_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32621 PyObject *resultobj = 0;
32622 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32623 PyObject *result = 0 ;
32624 void *argp1 = 0 ;
32625 int res1 = 0 ;
32626 PyObject *swig_obj[1] ;
32627
32628 if (!args) SWIG_fail;
32629 swig_obj[0] = args;
32630 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32631 if (!SWIG_IsOK(res1)) {
32632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32633 }
32634 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32635 {
32636 PyThreadState* __tstate = wxPyBeginAllowThreads();
32637 result = (PyObject *)(arg1)->GetData();
32638 wxPyEndAllowThreads(__tstate);
32639 if (PyErr_Occurred()) SWIG_fail;
32640 }
32641 resultobj = result;
32642 return resultobj;
32643 fail:
32644 return NULL;
32645 }
32646
32647
32648 SWIGINTERN PyObject *_wrap_TreeItemData_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32649 PyObject *resultobj = 0;
32650 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32651 PyObject *arg2 = (PyObject *) 0 ;
32652 void *argp1 = 0 ;
32653 int res1 = 0 ;
32654 PyObject * obj0 = 0 ;
32655 PyObject * obj1 = 0 ;
32656 char * kwnames[] = {
32657 (char *) "self",(char *) "obj", NULL
32658 };
32659
32660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
32661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32662 if (!SWIG_IsOK(res1)) {
32663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32664 }
32665 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32666 arg2 = obj1;
32667 {
32668 PyThreadState* __tstate = wxPyBeginAllowThreads();
32669 (arg1)->SetData(arg2);
32670 wxPyEndAllowThreads(__tstate);
32671 if (PyErr_Occurred()) SWIG_fail;
32672 }
32673 resultobj = SWIG_Py_Void();
32674 return resultobj;
32675 fail:
32676 return NULL;
32677 }
32678
32679
32680 SWIGINTERN PyObject *_wrap_TreeItemData_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32681 PyObject *resultobj = 0;
32682 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32683 wxTreeItemId *result = 0 ;
32684 void *argp1 = 0 ;
32685 int res1 = 0 ;
32686 PyObject *swig_obj[1] ;
32687
32688 if (!args) SWIG_fail;
32689 swig_obj[0] = args;
32690 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32691 if (!SWIG_IsOK(res1)) {
32692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32693 }
32694 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32695 {
32696 PyThreadState* __tstate = wxPyBeginAllowThreads();
32697 {
32698 wxTreeItemId const &_result_ref = (arg1)->GetId();
32699 result = (wxTreeItemId *) &_result_ref;
32700 }
32701 wxPyEndAllowThreads(__tstate);
32702 if (PyErr_Occurred()) SWIG_fail;
32703 }
32704 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32705 return resultobj;
32706 fail:
32707 return NULL;
32708 }
32709
32710
32711 SWIGINTERN PyObject *_wrap_TreeItemData_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32712 PyObject *resultobj = 0;
32713 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32714 wxTreeItemId *arg2 = 0 ;
32715 void *argp1 = 0 ;
32716 int res1 = 0 ;
32717 void *argp2 = 0 ;
32718 int res2 = 0 ;
32719 PyObject * obj0 = 0 ;
32720 PyObject * obj1 = 0 ;
32721 char * kwnames[] = {
32722 (char *) "self",(char *) "id", NULL
32723 };
32724
32725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
32726 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32727 if (!SWIG_IsOK(res1)) {
32728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32729 }
32730 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32731 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32732 if (!SWIG_IsOK(res2)) {
32733 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32734 }
32735 if (!argp2) {
32736 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32737 }
32738 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32739 {
32740 PyThreadState* __tstate = wxPyBeginAllowThreads();
32741 (arg1)->SetId((wxTreeItemId const &)*arg2);
32742 wxPyEndAllowThreads(__tstate);
32743 if (PyErr_Occurred()) SWIG_fail;
32744 }
32745 resultobj = SWIG_Py_Void();
32746 return resultobj;
32747 fail:
32748 return NULL;
32749 }
32750
32751
32752 SWIGINTERN PyObject *_wrap_TreeItemData_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32753 PyObject *resultobj = 0;
32754 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
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_wxPyTreeItemData, 0 | 0 );
32762 if (!SWIG_IsOK(res1)) {
32763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_Destroy" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32764 }
32765 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32766 {
32767 PyThreadState* __tstate = wxPyBeginAllowThreads();
32768 wxPyTreeItemData_Destroy(arg1);
32769 wxPyEndAllowThreads(__tstate);
32770 if (PyErr_Occurred()) SWIG_fail;
32771 }
32772 resultobj = SWIG_Py_Void();
32773 return resultobj;
32774 fail:
32775 return NULL;
32776 }
32777
32778
32779 SWIGINTERN PyObject *TreeItemData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32780 PyObject *obj;
32781 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32782 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeItemData, SWIG_NewClientData(obj));
32783 return SWIG_Py_Void();
32784 }
32785
32786 SWIGINTERN PyObject *TreeItemData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32787 return SWIG_Python_InitShadowInstance(args);
32788 }
32789
32790 SWIGINTERN int NullTreeItemId_set(PyObject *_val) {
32791 {
32792 void *argp = 0;
32793 int res = SWIG_ConvertPtr(_val, &argp, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32794 if (!SWIG_IsOK(res)) {
32795 SWIG_exception_fail(SWIG_ArgError(res), "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
32796 }
32797 if (!argp) {
32798 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
32799 } else {
32800 wxTreeItemId * temp;
32801 temp = reinterpret_cast< wxTreeItemId * >(argp);
32802 wxNullTreeItemId = *temp;
32803 if (SWIG_IsNewObj(res)) delete temp;
32804 }
32805 }
32806 return 0;
32807 fail:
32808 return 1;
32809 }
32810
32811
32812 SWIGINTERN PyObject *NullTreeItemId_get(void) {
32813 PyObject *pyobj = 0;
32814
32815 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullTreeItemId), SWIGTYPE_p_wxTreeItemId, 0 );
32816 return pyobj;
32817 }
32818
32819
32820 SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
32821 PyObject *resultobj = 0;
32822 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
32823 int arg2 = (int) 0 ;
32824 wxTreeEvent *result = 0 ;
32825 int val1 ;
32826 int ecode1 = 0 ;
32827 int val2 ;
32828 int ecode2 = 0 ;
32829
32830 if ((nobjs < 0) || (nobjs > 2)) SWIG_fail;
32831 if (swig_obj[0]) {
32832 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
32833 if (!SWIG_IsOK(ecode1)) {
32834 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
32835 }
32836 arg1 = static_cast< wxEventType >(val1);
32837 }
32838 if (swig_obj[1]) {
32839 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
32840 if (!SWIG_IsOK(ecode2)) {
32841 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "int""'");
32842 }
32843 arg2 = static_cast< int >(val2);
32844 }
32845 {
32846 PyThreadState* __tstate = wxPyBeginAllowThreads();
32847 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
32848 wxPyEndAllowThreads(__tstate);
32849 if (PyErr_Occurred()) SWIG_fail;
32850 }
32851 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
32852 return resultobj;
32853 fail:
32854 return NULL;
32855 }
32856
32857
32858 SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
32859 PyObject *resultobj = 0;
32860 wxEventType arg1 ;
32861 wxPyTreeCtrl *arg2 = (wxPyTreeCtrl *) 0 ;
32862 wxTreeItemId &arg3_defvalue = wxNullTreeItemId ;
32863 wxTreeItemId *arg3 = (wxTreeItemId *) &arg3_defvalue ;
32864 wxTreeEvent *result = 0 ;
32865 int val1 ;
32866 int ecode1 = 0 ;
32867 void *argp2 = 0 ;
32868 int res2 = 0 ;
32869 void *argp3 = 0 ;
32870 int res3 = 0 ;
32871
32872 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
32873 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
32874 if (!SWIG_IsOK(ecode1)) {
32875 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
32876 }
32877 arg1 = static_cast< wxEventType >(val1);
32878 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
32879 if (!SWIG_IsOK(res2)) {
32880 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "wxPyTreeCtrl *""'");
32881 }
32882 arg2 = reinterpret_cast< wxPyTreeCtrl * >(argp2);
32883 if (swig_obj[2]) {
32884 res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_wxTreeItemId, 0 );
32885 if (!SWIG_IsOK(res3)) {
32886 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
32887 }
32888 if (!argp3) {
32889 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
32890 }
32891 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
32892 }
32893 {
32894 PyThreadState* __tstate = wxPyBeginAllowThreads();
32895 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2,*arg3);
32896 wxPyEndAllowThreads(__tstate);
32897 if (PyErr_Occurred()) SWIG_fail;
32898 }
32899 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
32900 return resultobj;
32901 fail:
32902 return NULL;
32903 }
32904
32905
32906 SWIGINTERN PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args) {
32907 int argc;
32908 PyObject *argv[4];
32909
32910 if (!(argc = SWIG_Python_UnpackTuple(args,"new_TreeEvent",0,3,argv))) SWIG_fail;
32911 --argc;
32912 if ((argc >= 0) && (argc <= 2)) {
32913 int _v = 0;
32914 if (argc > 1) {
32915 {
32916 {
32917 int res = SWIG_AsVal_int(argv[1], NULL);
32918 _v = SWIG_CheckState(res);
32919 }
32920 }
32921 if (!_v) goto check_1;
32922 }
32923 return _wrap_new_TreeEvent__SWIG_0(self, argc, argv);
32924 }
32925 check_1:
32926
32927 if ((argc >= 2) && (argc <= 3)) {
32928 return _wrap_new_TreeEvent__SWIG_1(self, argc, argv);
32929 }
32930
32931 fail:
32932 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_TreeEvent'");
32933 return NULL;
32934 }
32935
32936
32937 SWIGINTERN PyObject *_wrap_TreeEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32938 PyObject *resultobj = 0;
32939 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32940 wxTreeItemId result;
32941 void *argp1 = 0 ;
32942 int res1 = 0 ;
32943 PyObject *swig_obj[1] ;
32944
32945 if (!args) SWIG_fail;
32946 swig_obj[0] = args;
32947 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32948 if (!SWIG_IsOK(res1)) {
32949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32950 }
32951 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32952 {
32953 PyThreadState* __tstate = wxPyBeginAllowThreads();
32954 result = ((wxTreeEvent const *)arg1)->GetItem();
32955 wxPyEndAllowThreads(__tstate);
32956 if (PyErr_Occurred()) SWIG_fail;
32957 }
32958 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
32959 return resultobj;
32960 fail:
32961 return NULL;
32962 }
32963
32964
32965 SWIGINTERN PyObject *_wrap_TreeEvent_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32966 PyObject *resultobj = 0;
32967 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32968 wxTreeItemId *arg2 = 0 ;
32969 void *argp1 = 0 ;
32970 int res1 = 0 ;
32971 void *argp2 = 0 ;
32972 int res2 = 0 ;
32973 PyObject * obj0 = 0 ;
32974 PyObject * obj1 = 0 ;
32975 char * kwnames[] = {
32976 (char *) "self",(char *) "item", NULL
32977 };
32978
32979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
32980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32981 if (!SWIG_IsOK(res1)) {
32982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32983 }
32984 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32985 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32986 if (!SWIG_IsOK(res2)) {
32987 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32988 }
32989 if (!argp2) {
32990 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32991 }
32992 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32993 {
32994 PyThreadState* __tstate = wxPyBeginAllowThreads();
32995 (arg1)->SetItem((wxTreeItemId const &)*arg2);
32996 wxPyEndAllowThreads(__tstate);
32997 if (PyErr_Occurred()) SWIG_fail;
32998 }
32999 resultobj = SWIG_Py_Void();
33000 return resultobj;
33001 fail:
33002 return NULL;
33003 }
33004
33005
33006 SWIGINTERN PyObject *_wrap_TreeEvent_GetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33007 PyObject *resultobj = 0;
33008 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33009 wxTreeItemId result;
33010 void *argp1 = 0 ;
33011 int res1 = 0 ;
33012 PyObject *swig_obj[1] ;
33013
33014 if (!args) SWIG_fail;
33015 swig_obj[0] = args;
33016 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33017 if (!SWIG_IsOK(res1)) {
33018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33019 }
33020 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33021 {
33022 PyThreadState* __tstate = wxPyBeginAllowThreads();
33023 result = ((wxTreeEvent const *)arg1)->GetOldItem();
33024 wxPyEndAllowThreads(__tstate);
33025 if (PyErr_Occurred()) SWIG_fail;
33026 }
33027 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33028 return resultobj;
33029 fail:
33030 return NULL;
33031 }
33032
33033
33034 SWIGINTERN PyObject *_wrap_TreeEvent_SetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33035 PyObject *resultobj = 0;
33036 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33037 wxTreeItemId *arg2 = 0 ;
33038 void *argp1 = 0 ;
33039 int res1 = 0 ;
33040 void *argp2 = 0 ;
33041 int res2 = 0 ;
33042 PyObject * obj0 = 0 ;
33043 PyObject * obj1 = 0 ;
33044 char * kwnames[] = {
33045 (char *) "self",(char *) "item", NULL
33046 };
33047
33048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) SWIG_fail;
33049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33050 if (!SWIG_IsOK(res1)) {
33051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33052 }
33053 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33054 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33055 if (!SWIG_IsOK(res2)) {
33056 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33057 }
33058 if (!argp2) {
33059 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33060 }
33061 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33062 {
33063 PyThreadState* __tstate = wxPyBeginAllowThreads();
33064 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
33065 wxPyEndAllowThreads(__tstate);
33066 if (PyErr_Occurred()) SWIG_fail;
33067 }
33068 resultobj = SWIG_Py_Void();
33069 return resultobj;
33070 fail:
33071 return NULL;
33072 }
33073
33074
33075 SWIGINTERN PyObject *_wrap_TreeEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33076 PyObject *resultobj = 0;
33077 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33078 wxPoint result;
33079 void *argp1 = 0 ;
33080 int res1 = 0 ;
33081 PyObject *swig_obj[1] ;
33082
33083 if (!args) SWIG_fail;
33084 swig_obj[0] = args;
33085 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33086 if (!SWIG_IsOK(res1)) {
33087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetPoint" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33088 }
33089 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33090 {
33091 PyThreadState* __tstate = wxPyBeginAllowThreads();
33092 result = ((wxTreeEvent const *)arg1)->GetPoint();
33093 wxPyEndAllowThreads(__tstate);
33094 if (PyErr_Occurred()) SWIG_fail;
33095 }
33096 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
33097 return resultobj;
33098 fail:
33099 return NULL;
33100 }
33101
33102
33103 SWIGINTERN PyObject *_wrap_TreeEvent_SetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33104 PyObject *resultobj = 0;
33105 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33106 wxPoint *arg2 = 0 ;
33107 void *argp1 = 0 ;
33108 int res1 = 0 ;
33109 wxPoint temp2 ;
33110 PyObject * obj0 = 0 ;
33111 PyObject * obj1 = 0 ;
33112 char * kwnames[] = {
33113 (char *) "self",(char *) "pt", NULL
33114 };
33115
33116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) SWIG_fail;
33117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33118 if (!SWIG_IsOK(res1)) {
33119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetPoint" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33120 }
33121 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33122 {
33123 arg2 = &temp2;
33124 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33125 }
33126 {
33127 PyThreadState* __tstate = wxPyBeginAllowThreads();
33128 (arg1)->SetPoint((wxPoint const &)*arg2);
33129 wxPyEndAllowThreads(__tstate);
33130 if (PyErr_Occurred()) SWIG_fail;
33131 }
33132 resultobj = SWIG_Py_Void();
33133 return resultobj;
33134 fail:
33135 return NULL;
33136 }
33137
33138
33139 SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33140 PyObject *resultobj = 0;
33141 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33142 wxKeyEvent *result = 0 ;
33143 void *argp1 = 0 ;
33144 int res1 = 0 ;
33145 PyObject *swig_obj[1] ;
33146
33147 if (!args) SWIG_fail;
33148 swig_obj[0] = args;
33149 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33150 if (!SWIG_IsOK(res1)) {
33151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33152 }
33153 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33154 {
33155 PyThreadState* __tstate = wxPyBeginAllowThreads();
33156 {
33157 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
33158 result = (wxKeyEvent *) &_result_ref;
33159 }
33160 wxPyEndAllowThreads(__tstate);
33161 if (PyErr_Occurred()) SWIG_fail;
33162 }
33163 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxKeyEvent, 0 | 0 );
33164 return resultobj;
33165 fail:
33166 return NULL;
33167 }
33168
33169
33170 SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33171 PyObject *resultobj = 0;
33172 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33173 int result;
33174 void *argp1 = 0 ;
33175 int res1 = 0 ;
33176 PyObject *swig_obj[1] ;
33177
33178 if (!args) SWIG_fail;
33179 swig_obj[0] = args;
33180 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33181 if (!SWIG_IsOK(res1)) {
33182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33183 }
33184 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33185 {
33186 PyThreadState* __tstate = wxPyBeginAllowThreads();
33187 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
33188 wxPyEndAllowThreads(__tstate);
33189 if (PyErr_Occurred()) SWIG_fail;
33190 }
33191 resultobj = SWIG_From_int(static_cast< int >(result));
33192 return resultobj;
33193 fail:
33194 return NULL;
33195 }
33196
33197
33198 SWIGINTERN PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33199 PyObject *resultobj = 0;
33200 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33201 wxKeyEvent *arg2 = 0 ;
33202 void *argp1 = 0 ;
33203 int res1 = 0 ;
33204 void *argp2 = 0 ;
33205 int res2 = 0 ;
33206 PyObject * obj0 = 0 ;
33207 PyObject * obj1 = 0 ;
33208 char * kwnames[] = {
33209 (char *) "self",(char *) "evt", NULL
33210 };
33211
33212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) SWIG_fail;
33213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33214 if (!SWIG_IsOK(res1)) {
33215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33216 }
33217 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33218 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
33219 if (!SWIG_IsOK(res2)) {
33220 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33221 }
33222 if (!argp2) {
33223 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33224 }
33225 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
33226 {
33227 PyThreadState* __tstate = wxPyBeginAllowThreads();
33228 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
33229 wxPyEndAllowThreads(__tstate);
33230 if (PyErr_Occurred()) SWIG_fail;
33231 }
33232 resultobj = SWIG_Py_Void();
33233 return resultobj;
33234 fail:
33235 return NULL;
33236 }
33237
33238
33239 SWIGINTERN PyObject *_wrap_TreeEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33240 PyObject *resultobj = 0;
33241 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33242 wxString *result = 0 ;
33243 void *argp1 = 0 ;
33244 int res1 = 0 ;
33245 PyObject *swig_obj[1] ;
33246
33247 if (!args) SWIG_fail;
33248 swig_obj[0] = args;
33249 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33250 if (!SWIG_IsOK(res1)) {
33251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetLabel" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33252 }
33253 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33254 {
33255 PyThreadState* __tstate = wxPyBeginAllowThreads();
33256 {
33257 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
33258 result = (wxString *) &_result_ref;
33259 }
33260 wxPyEndAllowThreads(__tstate);
33261 if (PyErr_Occurred()) SWIG_fail;
33262 }
33263 {
33264 #if wxUSE_UNICODE
33265 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33266 #else
33267 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33268 #endif
33269 }
33270 return resultobj;
33271 fail:
33272 return NULL;
33273 }
33274
33275
33276 SWIGINTERN PyObject *_wrap_TreeEvent_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33277 PyObject *resultobj = 0;
33278 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33279 wxString *arg2 = 0 ;
33280 void *argp1 = 0 ;
33281 int res1 = 0 ;
33282 bool temp2 = false ;
33283 PyObject * obj0 = 0 ;
33284 PyObject * obj1 = 0 ;
33285 char * kwnames[] = {
33286 (char *) "self",(char *) "label", NULL
33287 };
33288
33289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
33290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33291 if (!SWIG_IsOK(res1)) {
33292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetLabel" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33293 }
33294 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33295 {
33296 arg2 = wxString_in_helper(obj1);
33297 if (arg2 == NULL) SWIG_fail;
33298 temp2 = true;
33299 }
33300 {
33301 PyThreadState* __tstate = wxPyBeginAllowThreads();
33302 (arg1)->SetLabel((wxString const &)*arg2);
33303 wxPyEndAllowThreads(__tstate);
33304 if (PyErr_Occurred()) SWIG_fail;
33305 }
33306 resultobj = SWIG_Py_Void();
33307 {
33308 if (temp2)
33309 delete arg2;
33310 }
33311 return resultobj;
33312 fail:
33313 {
33314 if (temp2)
33315 delete arg2;
33316 }
33317 return NULL;
33318 }
33319
33320
33321 SWIGINTERN PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33322 PyObject *resultobj = 0;
33323 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33324 bool result;
33325 void *argp1 = 0 ;
33326 int res1 = 0 ;
33327 PyObject *swig_obj[1] ;
33328
33329 if (!args) SWIG_fail;
33330 swig_obj[0] = args;
33331 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33332 if (!SWIG_IsOK(res1)) {
33333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33334 }
33335 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33336 {
33337 PyThreadState* __tstate = wxPyBeginAllowThreads();
33338 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
33339 wxPyEndAllowThreads(__tstate);
33340 if (PyErr_Occurred()) SWIG_fail;
33341 }
33342 {
33343 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33344 }
33345 return resultobj;
33346 fail:
33347 return NULL;
33348 }
33349
33350
33351 SWIGINTERN PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33352 PyObject *resultobj = 0;
33353 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33354 bool arg2 ;
33355 void *argp1 = 0 ;
33356 int res1 = 0 ;
33357 bool val2 ;
33358 int ecode2 = 0 ;
33359 PyObject * obj0 = 0 ;
33360 PyObject * obj1 = 0 ;
33361 char * kwnames[] = {
33362 (char *) "self",(char *) "editCancelled", NULL
33363 };
33364
33365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
33366 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33367 if (!SWIG_IsOK(res1)) {
33368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33369 }
33370 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33371 ecode2 = SWIG_AsVal_bool(obj1, &val2);
33372 if (!SWIG_IsOK(ecode2)) {
33373 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
33374 }
33375 arg2 = static_cast< bool >(val2);
33376 {
33377 PyThreadState* __tstate = wxPyBeginAllowThreads();
33378 (arg1)->SetEditCanceled(arg2);
33379 wxPyEndAllowThreads(__tstate);
33380 if (PyErr_Occurred()) SWIG_fail;
33381 }
33382 resultobj = SWIG_Py_Void();
33383 return resultobj;
33384 fail:
33385 return NULL;
33386 }
33387
33388
33389 SWIGINTERN PyObject *_wrap_TreeEvent_SetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33390 PyObject *resultobj = 0;
33391 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33392 wxString *arg2 = 0 ;
33393 void *argp1 = 0 ;
33394 int res1 = 0 ;
33395 bool temp2 = false ;
33396 PyObject * obj0 = 0 ;
33397 PyObject * obj1 = 0 ;
33398 char * kwnames[] = {
33399 (char *) "self",(char *) "toolTip", NULL
33400 };
33401
33402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
33403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33404 if (!SWIG_IsOK(res1)) {
33405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33406 }
33407 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33408 {
33409 arg2 = wxString_in_helper(obj1);
33410 if (arg2 == NULL) SWIG_fail;
33411 temp2 = true;
33412 }
33413 {
33414 PyThreadState* __tstate = wxPyBeginAllowThreads();
33415 (arg1)->SetToolTip((wxString const &)*arg2);
33416 wxPyEndAllowThreads(__tstate);
33417 if (PyErr_Occurred()) SWIG_fail;
33418 }
33419 resultobj = SWIG_Py_Void();
33420 {
33421 if (temp2)
33422 delete arg2;
33423 }
33424 return resultobj;
33425 fail:
33426 {
33427 if (temp2)
33428 delete arg2;
33429 }
33430 return NULL;
33431 }
33432
33433
33434 SWIGINTERN PyObject *_wrap_TreeEvent_GetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33435 PyObject *resultobj = 0;
33436 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33437 wxString result;
33438 void *argp1 = 0 ;
33439 int res1 = 0 ;
33440 PyObject *swig_obj[1] ;
33441
33442 if (!args) SWIG_fail;
33443 swig_obj[0] = args;
33444 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33445 if (!SWIG_IsOK(res1)) {
33446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33447 }
33448 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33449 {
33450 PyThreadState* __tstate = wxPyBeginAllowThreads();
33451 result = (arg1)->GetToolTip();
33452 wxPyEndAllowThreads(__tstate);
33453 if (PyErr_Occurred()) SWIG_fail;
33454 }
33455 {
33456 #if wxUSE_UNICODE
33457 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33458 #else
33459 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33460 #endif
33461 }
33462 return resultobj;
33463 fail:
33464 return NULL;
33465 }
33466
33467
33468 SWIGINTERN PyObject *TreeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33469 PyObject *obj;
33470 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33471 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeEvent, SWIG_NewClientData(obj));
33472 return SWIG_Py_Void();
33473 }
33474
33475 SWIGINTERN PyObject *TreeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33476 return SWIG_Python_InitShadowInstance(args);
33477 }
33478
33479 SWIGINTERN PyObject *_wrap_new_TreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33480 PyObject *resultobj = 0;
33481 wxWindow *arg1 = (wxWindow *) 0 ;
33482 int arg2 = (int) -1 ;
33483 wxPoint const &arg3_defvalue = wxDefaultPosition ;
33484 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
33485 wxSize const &arg4_defvalue = wxDefaultSize ;
33486 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
33487 long arg5 = (long) wxTR_DEFAULT_STYLE ;
33488 wxValidator const &arg6_defvalue = wxDefaultValidator ;
33489 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
33490 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
33491 wxString *arg7 = (wxString *) &arg7_defvalue ;
33492 wxPyTreeCtrl *result = 0 ;
33493 void *argp1 = 0 ;
33494 int res1 = 0 ;
33495 int val2 ;
33496 int ecode2 = 0 ;
33497 wxPoint temp3 ;
33498 wxSize temp4 ;
33499 long val5 ;
33500 int ecode5 = 0 ;
33501 void *argp6 = 0 ;
33502 int res6 = 0 ;
33503 bool temp7 = false ;
33504 PyObject * obj0 = 0 ;
33505 PyObject * obj1 = 0 ;
33506 PyObject * obj2 = 0 ;
33507 PyObject * obj3 = 0 ;
33508 PyObject * obj4 = 0 ;
33509 PyObject * obj5 = 0 ;
33510 PyObject * obj6 = 0 ;
33511 char * kwnames[] = {
33512 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33513 };
33514
33515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33516 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33517 if (!SWIG_IsOK(res1)) {
33518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
33519 }
33520 arg1 = reinterpret_cast< wxWindow * >(argp1);
33521 if (obj1) {
33522 ecode2 = SWIG_AsVal_int(obj1, &val2);
33523 if (!SWIG_IsOK(ecode2)) {
33524 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeCtrl" "', expected argument " "2"" of type '" "int""'");
33525 }
33526 arg2 = static_cast< int >(val2);
33527 }
33528 if (obj2) {
33529 {
33530 arg3 = &temp3;
33531 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33532 }
33533 }
33534 if (obj3) {
33535 {
33536 arg4 = &temp4;
33537 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
33538 }
33539 }
33540 if (obj4) {
33541 ecode5 = SWIG_AsVal_long(obj4, &val5);
33542 if (!SWIG_IsOK(ecode5)) {
33543 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TreeCtrl" "', expected argument " "5"" of type '" "long""'");
33544 }
33545 arg5 = static_cast< long >(val5);
33546 }
33547 if (obj5) {
33548 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
33549 if (!SWIG_IsOK(res6)) {
33550 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
33551 }
33552 if (!argp6) {
33553 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
33554 }
33555 arg6 = reinterpret_cast< wxValidator * >(argp6);
33556 }
33557 if (obj6) {
33558 {
33559 arg7 = wxString_in_helper(obj6);
33560 if (arg7 == NULL) SWIG_fail;
33561 temp7 = true;
33562 }
33563 }
33564 {
33565 if (!wxPyCheckForApp()) SWIG_fail;
33566 PyThreadState* __tstate = wxPyBeginAllowThreads();
33567 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
33568 wxPyEndAllowThreads(__tstate);
33569 if (PyErr_Occurred()) SWIG_fail;
33570 }
33571 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_NEW | 0 );
33572 {
33573 if (temp7)
33574 delete arg7;
33575 }
33576 return resultobj;
33577 fail:
33578 {
33579 if (temp7)
33580 delete arg7;
33581 }
33582 return NULL;
33583 }
33584
33585
33586 SWIGINTERN PyObject *_wrap_new_PreTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33587 PyObject *resultobj = 0;
33588 wxPyTreeCtrl *result = 0 ;
33589
33590 if (!SWIG_Python_UnpackTuple(args,"new_PreTreeCtrl",0,0,0)) SWIG_fail;
33591 {
33592 if (!wxPyCheckForApp()) SWIG_fail;
33593 PyThreadState* __tstate = wxPyBeginAllowThreads();
33594 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
33595 wxPyEndAllowThreads(__tstate);
33596 if (PyErr_Occurred()) SWIG_fail;
33597 }
33598 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_OWN | 0 );
33599 return resultobj;
33600 fail:
33601 return NULL;
33602 }
33603
33604
33605 SWIGINTERN PyObject *_wrap_TreeCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33606 PyObject *resultobj = 0;
33607 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33608 wxWindow *arg2 = (wxWindow *) 0 ;
33609 int arg3 = (int) -1 ;
33610 wxPoint const &arg4_defvalue = wxDefaultPosition ;
33611 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
33612 wxSize const &arg5_defvalue = wxDefaultSize ;
33613 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
33614 long arg6 = (long) wxTR_DEFAULT_STYLE ;
33615 wxValidator const &arg7_defvalue = wxDefaultValidator ;
33616 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
33617 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
33618 wxString *arg8 = (wxString *) &arg8_defvalue ;
33619 bool result;
33620 void *argp1 = 0 ;
33621 int res1 = 0 ;
33622 void *argp2 = 0 ;
33623 int res2 = 0 ;
33624 int val3 ;
33625 int ecode3 = 0 ;
33626 wxPoint temp4 ;
33627 wxSize temp5 ;
33628 long val6 ;
33629 int ecode6 = 0 ;
33630 void *argp7 = 0 ;
33631 int res7 = 0 ;
33632 bool temp8 = false ;
33633 PyObject * obj0 = 0 ;
33634 PyObject * obj1 = 0 ;
33635 PyObject * obj2 = 0 ;
33636 PyObject * obj3 = 0 ;
33637 PyObject * obj4 = 0 ;
33638 PyObject * obj5 = 0 ;
33639 PyObject * obj6 = 0 ;
33640 PyObject * obj7 = 0 ;
33641 char * kwnames[] = {
33642 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33643 };
33644
33645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
33646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33647 if (!SWIG_IsOK(res1)) {
33648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Create" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33649 }
33650 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33651 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33652 if (!SWIG_IsOK(res2)) {
33653 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
33654 }
33655 arg2 = reinterpret_cast< wxWindow * >(argp2);
33656 if (obj2) {
33657 ecode3 = SWIG_AsVal_int(obj2, &val3);
33658 if (!SWIG_IsOK(ecode3)) {
33659 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_Create" "', expected argument " "3"" of type '" "int""'");
33660 }
33661 arg3 = static_cast< int >(val3);
33662 }
33663 if (obj3) {
33664 {
33665 arg4 = &temp4;
33666 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
33667 }
33668 }
33669 if (obj4) {
33670 {
33671 arg5 = &temp5;
33672 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
33673 }
33674 }
33675 if (obj5) {
33676 ecode6 = SWIG_AsVal_long(obj5, &val6);
33677 if (!SWIG_IsOK(ecode6)) {
33678 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_Create" "', expected argument " "6"" of type '" "long""'");
33679 }
33680 arg6 = static_cast< long >(val6);
33681 }
33682 if (obj6) {
33683 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
33684 if (!SWIG_IsOK(res7)) {
33685 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
33686 }
33687 if (!argp7) {
33688 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
33689 }
33690 arg7 = reinterpret_cast< wxValidator * >(argp7);
33691 }
33692 if (obj7) {
33693 {
33694 arg8 = wxString_in_helper(obj7);
33695 if (arg8 == NULL) SWIG_fail;
33696 temp8 = true;
33697 }
33698 }
33699 {
33700 PyThreadState* __tstate = wxPyBeginAllowThreads();
33701 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
33702 wxPyEndAllowThreads(__tstate);
33703 if (PyErr_Occurred()) SWIG_fail;
33704 }
33705 {
33706 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33707 }
33708 {
33709 if (temp8)
33710 delete arg8;
33711 }
33712 return resultobj;
33713 fail:
33714 {
33715 if (temp8)
33716 delete arg8;
33717 }
33718 return NULL;
33719 }
33720
33721
33722 SWIGINTERN PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33723 PyObject *resultobj = 0;
33724 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33725 PyObject *arg2 = (PyObject *) 0 ;
33726 PyObject *arg3 = (PyObject *) 0 ;
33727 void *argp1 = 0 ;
33728 int res1 = 0 ;
33729 PyObject * obj0 = 0 ;
33730 PyObject * obj1 = 0 ;
33731 PyObject * obj2 = 0 ;
33732 char * kwnames[] = {
33733 (char *) "self",(char *) "self",(char *) "_class", NULL
33734 };
33735
33736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33738 if (!SWIG_IsOK(res1)) {
33739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33740 }
33741 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33742 arg2 = obj1;
33743 arg3 = obj2;
33744 {
33745 PyThreadState* __tstate = wxPyBeginAllowThreads();
33746 (arg1)->_setCallbackInfo(arg2,arg3);
33747 wxPyEndAllowThreads(__tstate);
33748 if (PyErr_Occurred()) SWIG_fail;
33749 }
33750 resultobj = SWIG_Py_Void();
33751 return resultobj;
33752 fail:
33753 return NULL;
33754 }
33755
33756
33757 SWIGINTERN PyObject *_wrap_TreeCtrl_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33758 PyObject *resultobj = 0;
33759 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33760 unsigned int result;
33761 void *argp1 = 0 ;
33762 int res1 = 0 ;
33763 PyObject *swig_obj[1] ;
33764
33765 if (!args) SWIG_fail;
33766 swig_obj[0] = args;
33767 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33768 if (!SWIG_IsOK(res1)) {
33769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33770 }
33771 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33772 {
33773 PyThreadState* __tstate = wxPyBeginAllowThreads();
33774 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetCount();
33775 wxPyEndAllowThreads(__tstate);
33776 if (PyErr_Occurred()) SWIG_fail;
33777 }
33778 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33779 return resultobj;
33780 fail:
33781 return NULL;
33782 }
33783
33784
33785 SWIGINTERN PyObject *_wrap_TreeCtrl_GetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33786 PyObject *resultobj = 0;
33787 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33788 unsigned int result;
33789 void *argp1 = 0 ;
33790 int res1 = 0 ;
33791 PyObject *swig_obj[1] ;
33792
33793 if (!args) SWIG_fail;
33794 swig_obj[0] = args;
33795 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33796 if (!SWIG_IsOK(res1)) {
33797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33798 }
33799 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33800 {
33801 PyThreadState* __tstate = wxPyBeginAllowThreads();
33802 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
33803 wxPyEndAllowThreads(__tstate);
33804 if (PyErr_Occurred()) SWIG_fail;
33805 }
33806 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33807 return resultobj;
33808 fail:
33809 return NULL;
33810 }
33811
33812
33813 SWIGINTERN PyObject *_wrap_TreeCtrl_SetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33814 PyObject *resultobj = 0;
33815 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33816 unsigned int arg2 ;
33817 void *argp1 = 0 ;
33818 int res1 = 0 ;
33819 unsigned int val2 ;
33820 int ecode2 = 0 ;
33821 PyObject * obj0 = 0 ;
33822 PyObject * obj1 = 0 ;
33823 char * kwnames[] = {
33824 (char *) "self",(char *) "indent", NULL
33825 };
33826
33827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) SWIG_fail;
33828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33829 if (!SWIG_IsOK(res1)) {
33830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33831 }
33832 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33833 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
33834 if (!SWIG_IsOK(ecode2)) {
33835 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetIndent" "', expected argument " "2"" of type '" "unsigned int""'");
33836 }
33837 arg2 = static_cast< unsigned int >(val2);
33838 {
33839 PyThreadState* __tstate = wxPyBeginAllowThreads();
33840 (arg1)->SetIndent(arg2);
33841 wxPyEndAllowThreads(__tstate);
33842 if (PyErr_Occurred()) SWIG_fail;
33843 }
33844 resultobj = SWIG_Py_Void();
33845 return resultobj;
33846 fail:
33847 return NULL;
33848 }
33849
33850
33851 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33852 PyObject *resultobj = 0;
33853 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33854 unsigned int result;
33855 void *argp1 = 0 ;
33856 int res1 = 0 ;
33857 PyObject *swig_obj[1] ;
33858
33859 if (!args) SWIG_fail;
33860 swig_obj[0] = args;
33861 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33862 if (!SWIG_IsOK(res1)) {
33863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33864 }
33865 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33866 {
33867 PyThreadState* __tstate = wxPyBeginAllowThreads();
33868 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
33869 wxPyEndAllowThreads(__tstate);
33870 if (PyErr_Occurred()) SWIG_fail;
33871 }
33872 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33873 return resultobj;
33874 fail:
33875 return NULL;
33876 }
33877
33878
33879 SWIGINTERN PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33880 PyObject *resultobj = 0;
33881 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33882 unsigned int arg2 ;
33883 void *argp1 = 0 ;
33884 int res1 = 0 ;
33885 unsigned int val2 ;
33886 int ecode2 = 0 ;
33887 PyObject * obj0 = 0 ;
33888 PyObject * obj1 = 0 ;
33889 char * kwnames[] = {
33890 (char *) "self",(char *) "spacing", NULL
33891 };
33892
33893 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) SWIG_fail;
33894 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33895 if (!SWIG_IsOK(res1)) {
33896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33897 }
33898 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33899 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
33900 if (!SWIG_IsOK(ecode2)) {
33901 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "2"" of type '" "unsigned int""'");
33902 }
33903 arg2 = static_cast< unsigned int >(val2);
33904 {
33905 PyThreadState* __tstate = wxPyBeginAllowThreads();
33906 (arg1)->SetSpacing(arg2);
33907 wxPyEndAllowThreads(__tstate);
33908 if (PyErr_Occurred()) SWIG_fail;
33909 }
33910 resultobj = SWIG_Py_Void();
33911 return resultobj;
33912 fail:
33913 return NULL;
33914 }
33915
33916
33917 SWIGINTERN PyObject *_wrap_TreeCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33918 PyObject *resultobj = 0;
33919 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33920 wxImageList *result = 0 ;
33921 void *argp1 = 0 ;
33922 int res1 = 0 ;
33923 PyObject *swig_obj[1] ;
33924
33925 if (!args) SWIG_fail;
33926 swig_obj[0] = args;
33927 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33928 if (!SWIG_IsOK(res1)) {
33929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33930 }
33931 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33932 {
33933 PyThreadState* __tstate = wxPyBeginAllowThreads();
33934 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
33935 wxPyEndAllowThreads(__tstate);
33936 if (PyErr_Occurred()) SWIG_fail;
33937 }
33938 {
33939 resultobj = wxPyMake_wxObject(result, (bool)0);
33940 }
33941 return resultobj;
33942 fail:
33943 return NULL;
33944 }
33945
33946
33947 SWIGINTERN PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33948 PyObject *resultobj = 0;
33949 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33950 wxImageList *result = 0 ;
33951 void *argp1 = 0 ;
33952 int res1 = 0 ;
33953 PyObject *swig_obj[1] ;
33954
33955 if (!args) SWIG_fail;
33956 swig_obj[0] = args;
33957 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33958 if (!SWIG_IsOK(res1)) {
33959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33960 }
33961 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33962 {
33963 PyThreadState* __tstate = wxPyBeginAllowThreads();
33964 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
33965 wxPyEndAllowThreads(__tstate);
33966 if (PyErr_Occurred()) SWIG_fail;
33967 }
33968 {
33969 resultobj = wxPyMake_wxObject(result, (bool)0);
33970 }
33971 return resultobj;
33972 fail:
33973 return NULL;
33974 }
33975
33976
33977 SWIGINTERN PyObject *_wrap_TreeCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33978 PyObject *resultobj = 0;
33979 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33980 wxImageList *arg2 = (wxImageList *) 0 ;
33981 void *argp1 = 0 ;
33982 int res1 = 0 ;
33983 void *argp2 = 0 ;
33984 int res2 = 0 ;
33985 PyObject * obj0 = 0 ;
33986 PyObject * obj1 = 0 ;
33987 char * kwnames[] = {
33988 (char *) "self",(char *) "imageList", NULL
33989 };
33990
33991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33993 if (!SWIG_IsOK(res1)) {
33994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33995 }
33996 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33997 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
33998 if (!SWIG_IsOK(res2)) {
33999 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34000 }
34001 arg2 = reinterpret_cast< wxImageList * >(argp2);
34002 {
34003 PyThreadState* __tstate = wxPyBeginAllowThreads();
34004 (arg1)->SetImageList(arg2);
34005 wxPyEndAllowThreads(__tstate);
34006 if (PyErr_Occurred()) SWIG_fail;
34007 }
34008 resultobj = SWIG_Py_Void();
34009 return resultobj;
34010 fail:
34011 return NULL;
34012 }
34013
34014
34015 SWIGINTERN PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34016 PyObject *resultobj = 0;
34017 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34018 wxImageList *arg2 = (wxImageList *) 0 ;
34019 void *argp1 = 0 ;
34020 int res1 = 0 ;
34021 void *argp2 = 0 ;
34022 int res2 = 0 ;
34023 PyObject * obj0 = 0 ;
34024 PyObject * obj1 = 0 ;
34025 char * kwnames[] = {
34026 (char *) "self",(char *) "imageList", NULL
34027 };
34028
34029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34031 if (!SWIG_IsOK(res1)) {
34032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34033 }
34034 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34035 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34036 if (!SWIG_IsOK(res2)) {
34037 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34038 }
34039 arg2 = reinterpret_cast< wxImageList * >(argp2);
34040 {
34041 PyThreadState* __tstate = wxPyBeginAllowThreads();
34042 (arg1)->SetStateImageList(arg2);
34043 wxPyEndAllowThreads(__tstate);
34044 if (PyErr_Occurred()) SWIG_fail;
34045 }
34046 resultobj = SWIG_Py_Void();
34047 return resultobj;
34048 fail:
34049 return NULL;
34050 }
34051
34052
34053 SWIGINTERN PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34054 PyObject *resultobj = 0;
34055 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34056 wxImageList *arg2 = (wxImageList *) 0 ;
34057 void *argp1 = 0 ;
34058 int res1 = 0 ;
34059 int res2 = 0 ;
34060 PyObject * obj0 = 0 ;
34061 PyObject * obj1 = 0 ;
34062 char * kwnames[] = {
34063 (char *) "self",(char *) "imageList", NULL
34064 };
34065
34066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34068 if (!SWIG_IsOK(res1)) {
34069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34070 }
34071 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34072 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34073 if (!SWIG_IsOK(res2)) {
34074 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34075 }
34076 {
34077 PyThreadState* __tstate = wxPyBeginAllowThreads();
34078 (arg1)->AssignImageList(arg2);
34079 wxPyEndAllowThreads(__tstate);
34080 if (PyErr_Occurred()) SWIG_fail;
34081 }
34082 resultobj = SWIG_Py_Void();
34083 return resultobj;
34084 fail:
34085 return NULL;
34086 }
34087
34088
34089 SWIGINTERN PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34090 PyObject *resultobj = 0;
34091 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34092 wxImageList *arg2 = (wxImageList *) 0 ;
34093 void *argp1 = 0 ;
34094 int res1 = 0 ;
34095 int res2 = 0 ;
34096 PyObject * obj0 = 0 ;
34097 PyObject * obj1 = 0 ;
34098 char * kwnames[] = {
34099 (char *) "self",(char *) "imageList", NULL
34100 };
34101
34102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34104 if (!SWIG_IsOK(res1)) {
34105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34106 }
34107 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34108 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34109 if (!SWIG_IsOK(res2)) {
34110 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34111 }
34112 {
34113 PyThreadState* __tstate = wxPyBeginAllowThreads();
34114 (arg1)->AssignStateImageList(arg2);
34115 wxPyEndAllowThreads(__tstate);
34116 if (PyErr_Occurred()) SWIG_fail;
34117 }
34118 resultobj = SWIG_Py_Void();
34119 return resultobj;
34120 fail:
34121 return NULL;
34122 }
34123
34124
34125 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34126 PyObject *resultobj = 0;
34127 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34128 wxTreeItemId *arg2 = 0 ;
34129 wxString result;
34130 void *argp1 = 0 ;
34131 int res1 = 0 ;
34132 void *argp2 = 0 ;
34133 int res2 = 0 ;
34134 PyObject * obj0 = 0 ;
34135 PyObject * obj1 = 0 ;
34136 char * kwnames[] = {
34137 (char *) "self",(char *) "item", NULL
34138 };
34139
34140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
34141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34142 if (!SWIG_IsOK(res1)) {
34143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34144 }
34145 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34146 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34147 if (!SWIG_IsOK(res2)) {
34148 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34149 }
34150 if (!argp2) {
34151 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34152 }
34153 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34154 {
34155 PyThreadState* __tstate = wxPyBeginAllowThreads();
34156 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
34157 wxPyEndAllowThreads(__tstate);
34158 if (PyErr_Occurred()) SWIG_fail;
34159 }
34160 {
34161 #if wxUSE_UNICODE
34162 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
34163 #else
34164 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
34165 #endif
34166 }
34167 return resultobj;
34168 fail:
34169 return NULL;
34170 }
34171
34172
34173 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34174 PyObject *resultobj = 0;
34175 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34176 wxTreeItemId *arg2 = 0 ;
34177 wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34178 int result;
34179 void *argp1 = 0 ;
34180 int res1 = 0 ;
34181 void *argp2 = 0 ;
34182 int res2 = 0 ;
34183 int val3 ;
34184 int ecode3 = 0 ;
34185 PyObject * obj0 = 0 ;
34186 PyObject * obj1 = 0 ;
34187 PyObject * obj2 = 0 ;
34188 char * kwnames[] = {
34189 (char *) "self",(char *) "item",(char *) "which", NULL
34190 };
34191
34192 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34193 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34194 if (!SWIG_IsOK(res1)) {
34195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34196 }
34197 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34198 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34199 if (!SWIG_IsOK(res2)) {
34200 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34201 }
34202 if (!argp2) {
34203 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34204 }
34205 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34206 if (obj2) {
34207 ecode3 = SWIG_AsVal_int(obj2, &val3);
34208 if (!SWIG_IsOK(ecode3)) {
34209 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "3"" of type '" "wxTreeItemIcon""'");
34210 }
34211 arg3 = static_cast< wxTreeItemIcon >(val3);
34212 }
34213 {
34214 PyThreadState* __tstate = wxPyBeginAllowThreads();
34215 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,arg3);
34216 wxPyEndAllowThreads(__tstate);
34217 if (PyErr_Occurred()) SWIG_fail;
34218 }
34219 resultobj = SWIG_From_int(static_cast< int >(result));
34220 return resultobj;
34221 fail:
34222 return NULL;
34223 }
34224
34225
34226 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34227 PyObject *resultobj = 0;
34228 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34229 wxTreeItemId *arg2 = 0 ;
34230 wxPyTreeItemData *result = 0 ;
34231 void *argp1 = 0 ;
34232 int res1 = 0 ;
34233 void *argp2 = 0 ;
34234 int res2 = 0 ;
34235 PyObject * obj0 = 0 ;
34236 PyObject * obj1 = 0 ;
34237 char * kwnames[] = {
34238 (char *) "self",(char *) "item", NULL
34239 };
34240
34241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
34242 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34243 if (!SWIG_IsOK(res1)) {
34244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34245 }
34246 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34247 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34248 if (!SWIG_IsOK(res2)) {
34249 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34250 }
34251 if (!argp2) {
34252 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34253 }
34254 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34255 {
34256 PyThreadState* __tstate = wxPyBeginAllowThreads();
34257 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
34258 wxPyEndAllowThreads(__tstate);
34259 if (PyErr_Occurred()) SWIG_fail;
34260 }
34261 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
34262 return resultobj;
34263 fail:
34264 return NULL;
34265 }
34266
34267
34268 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34269 PyObject *resultobj = 0;
34270 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34271 wxTreeItemId *arg2 = 0 ;
34272 PyObject *result = 0 ;
34273 void *argp1 = 0 ;
34274 int res1 = 0 ;
34275 void *argp2 = 0 ;
34276 int res2 = 0 ;
34277 PyObject * obj0 = 0 ;
34278 PyObject * obj1 = 0 ;
34279 char * kwnames[] = {
34280 (char *) "self",(char *) "item", NULL
34281 };
34282
34283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) SWIG_fail;
34284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34285 if (!SWIG_IsOK(res1)) {
34286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34287 }
34288 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34289 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34290 if (!SWIG_IsOK(res2)) {
34291 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34292 }
34293 if (!argp2) {
34294 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34295 }
34296 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34297 {
34298 PyThreadState* __tstate = wxPyBeginAllowThreads();
34299 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
34300 wxPyEndAllowThreads(__tstate);
34301 if (PyErr_Occurred()) SWIG_fail;
34302 }
34303 resultobj = result;
34304 return resultobj;
34305 fail:
34306 return NULL;
34307 }
34308
34309
34310 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34311 PyObject *resultobj = 0;
34312 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34313 wxTreeItemId *arg2 = 0 ;
34314 wxColour result;
34315 void *argp1 = 0 ;
34316 int res1 = 0 ;
34317 void *argp2 = 0 ;
34318 int res2 = 0 ;
34319 PyObject * obj0 = 0 ;
34320 PyObject * obj1 = 0 ;
34321 char * kwnames[] = {
34322 (char *) "self",(char *) "item", NULL
34323 };
34324
34325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
34326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34327 if (!SWIG_IsOK(res1)) {
34328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34329 }
34330 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34331 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34332 if (!SWIG_IsOK(res2)) {
34333 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34334 }
34335 if (!argp2) {
34336 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34337 }
34338 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34339 {
34340 PyThreadState* __tstate = wxPyBeginAllowThreads();
34341 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
34342 wxPyEndAllowThreads(__tstate);
34343 if (PyErr_Occurred()) SWIG_fail;
34344 }
34345 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34346 return resultobj;
34347 fail:
34348 return NULL;
34349 }
34350
34351
34352 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34353 PyObject *resultobj = 0;
34354 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34355 wxTreeItemId *arg2 = 0 ;
34356 wxColour result;
34357 void *argp1 = 0 ;
34358 int res1 = 0 ;
34359 void *argp2 = 0 ;
34360 int res2 = 0 ;
34361 PyObject * obj0 = 0 ;
34362 PyObject * obj1 = 0 ;
34363 char * kwnames[] = {
34364 (char *) "self",(char *) "item", NULL
34365 };
34366
34367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
34368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34369 if (!SWIG_IsOK(res1)) {
34370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34371 }
34372 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34373 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34374 if (!SWIG_IsOK(res2)) {
34375 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34376 }
34377 if (!argp2) {
34378 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34379 }
34380 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34381 {
34382 PyThreadState* __tstate = wxPyBeginAllowThreads();
34383 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
34384 wxPyEndAllowThreads(__tstate);
34385 if (PyErr_Occurred()) SWIG_fail;
34386 }
34387 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34388 return resultobj;
34389 fail:
34390 return NULL;
34391 }
34392
34393
34394 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34395 PyObject *resultobj = 0;
34396 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34397 wxTreeItemId *arg2 = 0 ;
34398 wxFont result;
34399 void *argp1 = 0 ;
34400 int res1 = 0 ;
34401 void *argp2 = 0 ;
34402 int res2 = 0 ;
34403 PyObject * obj0 = 0 ;
34404 PyObject * obj1 = 0 ;
34405 char * kwnames[] = {
34406 (char *) "self",(char *) "item", NULL
34407 };
34408
34409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
34410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34411 if (!SWIG_IsOK(res1)) {
34412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34413 }
34414 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34415 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34416 if (!SWIG_IsOK(res2)) {
34417 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34418 }
34419 if (!argp2) {
34420 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34421 }
34422 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34423 {
34424 PyThreadState* __tstate = wxPyBeginAllowThreads();
34425 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
34426 wxPyEndAllowThreads(__tstate);
34427 if (PyErr_Occurred()) SWIG_fail;
34428 }
34429 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
34430 return resultobj;
34431 fail:
34432 return NULL;
34433 }
34434
34435
34436 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34437 PyObject *resultobj = 0;
34438 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34439 wxTreeItemId *arg2 = 0 ;
34440 wxString *arg3 = 0 ;
34441 void *argp1 = 0 ;
34442 int res1 = 0 ;
34443 void *argp2 = 0 ;
34444 int res2 = 0 ;
34445 bool temp3 = false ;
34446 PyObject * obj0 = 0 ;
34447 PyObject * obj1 = 0 ;
34448 PyObject * obj2 = 0 ;
34449 char * kwnames[] = {
34450 (char *) "self",(char *) "item",(char *) "text", NULL
34451 };
34452
34453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34455 if (!SWIG_IsOK(res1)) {
34456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34457 }
34458 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34459 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34460 if (!SWIG_IsOK(res2)) {
34461 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34462 }
34463 if (!argp2) {
34464 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34465 }
34466 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34467 {
34468 arg3 = wxString_in_helper(obj2);
34469 if (arg3 == NULL) SWIG_fail;
34470 temp3 = true;
34471 }
34472 {
34473 PyThreadState* __tstate = wxPyBeginAllowThreads();
34474 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
34475 wxPyEndAllowThreads(__tstate);
34476 if (PyErr_Occurred()) SWIG_fail;
34477 }
34478 resultobj = SWIG_Py_Void();
34479 {
34480 if (temp3)
34481 delete arg3;
34482 }
34483 return resultobj;
34484 fail:
34485 {
34486 if (temp3)
34487 delete arg3;
34488 }
34489 return NULL;
34490 }
34491
34492
34493 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34494 PyObject *resultobj = 0;
34495 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34496 wxTreeItemId *arg2 = 0 ;
34497 int arg3 ;
34498 wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34499 void *argp1 = 0 ;
34500 int res1 = 0 ;
34501 void *argp2 = 0 ;
34502 int res2 = 0 ;
34503 int val3 ;
34504 int ecode3 = 0 ;
34505 int val4 ;
34506 int ecode4 = 0 ;
34507 PyObject * obj0 = 0 ;
34508 PyObject * obj1 = 0 ;
34509 PyObject * obj2 = 0 ;
34510 PyObject * obj3 = 0 ;
34511 char * kwnames[] = {
34512 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
34513 };
34514
34515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34516 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34517 if (!SWIG_IsOK(res1)) {
34518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34519 }
34520 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34521 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34522 if (!SWIG_IsOK(res2)) {
34523 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34524 }
34525 if (!argp2) {
34526 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34527 }
34528 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34529 ecode3 = SWIG_AsVal_int(obj2, &val3);
34530 if (!SWIG_IsOK(ecode3)) {
34531 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
34532 }
34533 arg3 = static_cast< int >(val3);
34534 if (obj3) {
34535 ecode4 = SWIG_AsVal_int(obj3, &val4);
34536 if (!SWIG_IsOK(ecode4)) {
34537 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "4"" of type '" "wxTreeItemIcon""'");
34538 }
34539 arg4 = static_cast< wxTreeItemIcon >(val4);
34540 }
34541 {
34542 PyThreadState* __tstate = wxPyBeginAllowThreads();
34543 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,arg4);
34544 wxPyEndAllowThreads(__tstate);
34545 if (PyErr_Occurred()) SWIG_fail;
34546 }
34547 resultobj = SWIG_Py_Void();
34548 return resultobj;
34549 fail:
34550 return NULL;
34551 }
34552
34553
34554 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34555 PyObject *resultobj = 0;
34556 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34557 wxTreeItemId *arg2 = 0 ;
34558 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
34559 void *argp1 = 0 ;
34560 int res1 = 0 ;
34561 void *argp2 = 0 ;
34562 int res2 = 0 ;
34563 int res3 = 0 ;
34564 PyObject * obj0 = 0 ;
34565 PyObject * obj1 = 0 ;
34566 PyObject * obj2 = 0 ;
34567 char * kwnames[] = {
34568 (char *) "self",(char *) "item",(char *) "data", NULL
34569 };
34570
34571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34573 if (!SWIG_IsOK(res1)) {
34574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34575 }
34576 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34577 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34578 if (!SWIG_IsOK(res2)) {
34579 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34580 }
34581 if (!argp2) {
34582 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34583 }
34584 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34585 res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
34586 if (!SWIG_IsOK(res3)) {
34587 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemData" "', expected argument " "3"" of type '" "wxPyTreeItemData *""'");
34588 }
34589 {
34590 PyThreadState* __tstate = wxPyBeginAllowThreads();
34591 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
34592 wxPyEndAllowThreads(__tstate);
34593 if (PyErr_Occurred()) SWIG_fail;
34594 }
34595 resultobj = SWIG_Py_Void();
34596 return resultobj;
34597 fail:
34598 return NULL;
34599 }
34600
34601
34602 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34603 PyObject *resultobj = 0;
34604 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34605 wxTreeItemId *arg2 = 0 ;
34606 PyObject *arg3 = (PyObject *) 0 ;
34607 void *argp1 = 0 ;
34608 int res1 = 0 ;
34609 void *argp2 = 0 ;
34610 int res2 = 0 ;
34611 PyObject * obj0 = 0 ;
34612 PyObject * obj1 = 0 ;
34613 PyObject * obj2 = 0 ;
34614 char * kwnames[] = {
34615 (char *) "self",(char *) "item",(char *) "obj", NULL
34616 };
34617
34618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34620 if (!SWIG_IsOK(res1)) {
34621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34622 }
34623 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34624 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34625 if (!SWIG_IsOK(res2)) {
34626 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34627 }
34628 if (!argp2) {
34629 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34630 }
34631 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34632 arg3 = obj2;
34633 {
34634 PyThreadState* __tstate = wxPyBeginAllowThreads();
34635 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
34636 wxPyEndAllowThreads(__tstate);
34637 if (PyErr_Occurred()) SWIG_fail;
34638 }
34639 resultobj = SWIG_Py_Void();
34640 return resultobj;
34641 fail:
34642 return NULL;
34643 }
34644
34645
34646 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34647 PyObject *resultobj = 0;
34648 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34649 wxTreeItemId *arg2 = 0 ;
34650 bool arg3 = (bool) true ;
34651 void *argp1 = 0 ;
34652 int res1 = 0 ;
34653 void *argp2 = 0 ;
34654 int res2 = 0 ;
34655 bool val3 ;
34656 int ecode3 = 0 ;
34657 PyObject * obj0 = 0 ;
34658 PyObject * obj1 = 0 ;
34659 PyObject * obj2 = 0 ;
34660 char * kwnames[] = {
34661 (char *) "self",(char *) "item",(char *) "has", NULL
34662 };
34663
34664 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34665 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34666 if (!SWIG_IsOK(res1)) {
34667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34668 }
34669 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34670 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34671 if (!SWIG_IsOK(res2)) {
34672 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34673 }
34674 if (!argp2) {
34675 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34676 }
34677 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34678 if (obj2) {
34679 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34680 if (!SWIG_IsOK(ecode3)) {
34681 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "3"" of type '" "bool""'");
34682 }
34683 arg3 = static_cast< bool >(val3);
34684 }
34685 {
34686 PyThreadState* __tstate = wxPyBeginAllowThreads();
34687 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
34688 wxPyEndAllowThreads(__tstate);
34689 if (PyErr_Occurred()) SWIG_fail;
34690 }
34691 resultobj = SWIG_Py_Void();
34692 return resultobj;
34693 fail:
34694 return NULL;
34695 }
34696
34697
34698 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34699 PyObject *resultobj = 0;
34700 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34701 wxTreeItemId *arg2 = 0 ;
34702 bool arg3 = (bool) true ;
34703 void *argp1 = 0 ;
34704 int res1 = 0 ;
34705 void *argp2 = 0 ;
34706 int res2 = 0 ;
34707 bool val3 ;
34708 int ecode3 = 0 ;
34709 PyObject * obj0 = 0 ;
34710 PyObject * obj1 = 0 ;
34711 PyObject * obj2 = 0 ;
34712 char * kwnames[] = {
34713 (char *) "self",(char *) "item",(char *) "bold", NULL
34714 };
34715
34716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34718 if (!SWIG_IsOK(res1)) {
34719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34720 }
34721 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34722 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34723 if (!SWIG_IsOK(res2)) {
34724 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34725 }
34726 if (!argp2) {
34727 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34728 }
34729 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34730 if (obj2) {
34731 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34732 if (!SWIG_IsOK(ecode3)) {
34733 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "3"" of type '" "bool""'");
34734 }
34735 arg3 = static_cast< bool >(val3);
34736 }
34737 {
34738 PyThreadState* __tstate = wxPyBeginAllowThreads();
34739 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
34740 wxPyEndAllowThreads(__tstate);
34741 if (PyErr_Occurred()) SWIG_fail;
34742 }
34743 resultobj = SWIG_Py_Void();
34744 return resultobj;
34745 fail:
34746 return NULL;
34747 }
34748
34749
34750 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34751 PyObject *resultobj = 0;
34752 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34753 wxTreeItemId *arg2 = 0 ;
34754 bool arg3 = (bool) true ;
34755 void *argp1 = 0 ;
34756 int res1 = 0 ;
34757 void *argp2 = 0 ;
34758 int res2 = 0 ;
34759 bool val3 ;
34760 int ecode3 = 0 ;
34761 PyObject * obj0 = 0 ;
34762 PyObject * obj1 = 0 ;
34763 PyObject * obj2 = 0 ;
34764 char * kwnames[] = {
34765 (char *) "self",(char *) "item",(char *) "highlight", NULL
34766 };
34767
34768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34770 if (!SWIG_IsOK(res1)) {
34771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34772 }
34773 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34774 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34775 if (!SWIG_IsOK(res2)) {
34776 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34777 }
34778 if (!argp2) {
34779 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34780 }
34781 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34782 if (obj2) {
34783 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34784 if (!SWIG_IsOK(ecode3)) {
34785 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "3"" of type '" "bool""'");
34786 }
34787 arg3 = static_cast< bool >(val3);
34788 }
34789 {
34790 PyThreadState* __tstate = wxPyBeginAllowThreads();
34791 (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3);
34792 wxPyEndAllowThreads(__tstate);
34793 if (PyErr_Occurred()) SWIG_fail;
34794 }
34795 resultobj = SWIG_Py_Void();
34796 return resultobj;
34797 fail:
34798 return NULL;
34799 }
34800
34801
34802 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34803 PyObject *resultobj = 0;
34804 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34805 wxTreeItemId *arg2 = 0 ;
34806 wxColour *arg3 = 0 ;
34807 void *argp1 = 0 ;
34808 int res1 = 0 ;
34809 void *argp2 = 0 ;
34810 int res2 = 0 ;
34811 wxColour temp3 ;
34812 PyObject * obj0 = 0 ;
34813 PyObject * obj1 = 0 ;
34814 PyObject * obj2 = 0 ;
34815 char * kwnames[] = {
34816 (char *) "self",(char *) "item",(char *) "col", NULL
34817 };
34818
34819 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34820 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34821 if (!SWIG_IsOK(res1)) {
34822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34823 }
34824 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34825 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34826 if (!SWIG_IsOK(res2)) {
34827 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34828 }
34829 if (!argp2) {
34830 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34831 }
34832 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34833 {
34834 arg3 = &temp3;
34835 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
34836 }
34837 {
34838 PyThreadState* __tstate = wxPyBeginAllowThreads();
34839 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
34840 wxPyEndAllowThreads(__tstate);
34841 if (PyErr_Occurred()) SWIG_fail;
34842 }
34843 resultobj = SWIG_Py_Void();
34844 return resultobj;
34845 fail:
34846 return NULL;
34847 }
34848
34849
34850 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34851 PyObject *resultobj = 0;
34852 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34853 wxTreeItemId *arg2 = 0 ;
34854 wxColour *arg3 = 0 ;
34855 void *argp1 = 0 ;
34856 int res1 = 0 ;
34857 void *argp2 = 0 ;
34858 int res2 = 0 ;
34859 wxColour temp3 ;
34860 PyObject * obj0 = 0 ;
34861 PyObject * obj1 = 0 ;
34862 PyObject * obj2 = 0 ;
34863 char * kwnames[] = {
34864 (char *) "self",(char *) "item",(char *) "col", NULL
34865 };
34866
34867 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34868 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34869 if (!SWIG_IsOK(res1)) {
34870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34871 }
34872 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34873 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34874 if (!SWIG_IsOK(res2)) {
34875 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34876 }
34877 if (!argp2) {
34878 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34879 }
34880 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34881 {
34882 arg3 = &temp3;
34883 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
34884 }
34885 {
34886 PyThreadState* __tstate = wxPyBeginAllowThreads();
34887 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
34888 wxPyEndAllowThreads(__tstate);
34889 if (PyErr_Occurred()) SWIG_fail;
34890 }
34891 resultobj = SWIG_Py_Void();
34892 return resultobj;
34893 fail:
34894 return NULL;
34895 }
34896
34897
34898 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34899 PyObject *resultobj = 0;
34900 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34901 wxTreeItemId *arg2 = 0 ;
34902 wxFont *arg3 = 0 ;
34903 void *argp1 = 0 ;
34904 int res1 = 0 ;
34905 void *argp2 = 0 ;
34906 int res2 = 0 ;
34907 void *argp3 = 0 ;
34908 int res3 = 0 ;
34909 PyObject * obj0 = 0 ;
34910 PyObject * obj1 = 0 ;
34911 PyObject * obj2 = 0 ;
34912 char * kwnames[] = {
34913 (char *) "self",(char *) "item",(char *) "font", NULL
34914 };
34915
34916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34917 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34918 if (!SWIG_IsOK(res1)) {
34919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34920 }
34921 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34922 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34923 if (!SWIG_IsOK(res2)) {
34924 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34925 }
34926 if (!argp2) {
34927 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34928 }
34929 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34930 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
34931 if (!SWIG_IsOK(res3)) {
34932 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
34933 }
34934 if (!argp3) {
34935 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
34936 }
34937 arg3 = reinterpret_cast< wxFont * >(argp3);
34938 {
34939 PyThreadState* __tstate = wxPyBeginAllowThreads();
34940 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
34941 wxPyEndAllowThreads(__tstate);
34942 if (PyErr_Occurred()) SWIG_fail;
34943 }
34944 resultobj = SWIG_Py_Void();
34945 return resultobj;
34946 fail:
34947 return NULL;
34948 }
34949
34950
34951 SWIGINTERN PyObject *_wrap_TreeCtrl_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34952 PyObject *resultobj = 0;
34953 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34954 wxTreeItemId *arg2 = 0 ;
34955 bool result;
34956 void *argp1 = 0 ;
34957 int res1 = 0 ;
34958 void *argp2 = 0 ;
34959 int res2 = 0 ;
34960 PyObject * obj0 = 0 ;
34961 PyObject * obj1 = 0 ;
34962 char * kwnames[] = {
34963 (char *) "self",(char *) "item", NULL
34964 };
34965
34966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail;
34967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34968 if (!SWIG_IsOK(res1)) {
34969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34970 }
34971 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34972 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34973 if (!SWIG_IsOK(res2)) {
34974 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34975 }
34976 if (!argp2) {
34977 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34978 }
34979 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34980 {
34981 PyThreadState* __tstate = wxPyBeginAllowThreads();
34982 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
34983 wxPyEndAllowThreads(__tstate);
34984 if (PyErr_Occurred()) SWIG_fail;
34985 }
34986 {
34987 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34988 }
34989 return resultobj;
34990 fail:
34991 return NULL;
34992 }
34993
34994
34995 SWIGINTERN PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34996 PyObject *resultobj = 0;
34997 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34998 wxTreeItemId *arg2 = 0 ;
34999 bool result;
35000 void *argp1 = 0 ;
35001 int res1 = 0 ;
35002 void *argp2 = 0 ;
35003 int res2 = 0 ;
35004 PyObject * obj0 = 0 ;
35005 PyObject * obj1 = 0 ;
35006 char * kwnames[] = {
35007 (char *) "self",(char *) "item", NULL
35008 };
35009
35010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) SWIG_fail;
35011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35012 if (!SWIG_IsOK(res1)) {
35013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35014 }
35015 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35016 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35017 if (!SWIG_IsOK(res2)) {
35018 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35019 }
35020 if (!argp2) {
35021 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35022 }
35023 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35024 {
35025 PyThreadState* __tstate = wxPyBeginAllowThreads();
35026 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
35027 wxPyEndAllowThreads(__tstate);
35028 if (PyErr_Occurred()) SWIG_fail;
35029 }
35030 {
35031 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35032 }
35033 return resultobj;
35034 fail:
35035 return NULL;
35036 }
35037
35038
35039 SWIGINTERN PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35040 PyObject *resultobj = 0;
35041 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35042 wxTreeItemId *arg2 = 0 ;
35043 bool result;
35044 void *argp1 = 0 ;
35045 int res1 = 0 ;
35046 void *argp2 = 0 ;
35047 int res2 = 0 ;
35048 PyObject * obj0 = 0 ;
35049 PyObject * obj1 = 0 ;
35050 char * kwnames[] = {
35051 (char *) "self",(char *) "item", NULL
35052 };
35053
35054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
35055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35056 if (!SWIG_IsOK(res1)) {
35057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35058 }
35059 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35060 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35061 if (!SWIG_IsOK(res2)) {
35062 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35063 }
35064 if (!argp2) {
35065 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35066 }
35067 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35068 {
35069 PyThreadState* __tstate = wxPyBeginAllowThreads();
35070 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
35071 wxPyEndAllowThreads(__tstate);
35072 if (PyErr_Occurred()) SWIG_fail;
35073 }
35074 {
35075 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35076 }
35077 return resultobj;
35078 fail:
35079 return NULL;
35080 }
35081
35082
35083 SWIGINTERN PyObject *_wrap_TreeCtrl_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35084 PyObject *resultobj = 0;
35085 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35086 wxTreeItemId *arg2 = 0 ;
35087 bool result;
35088 void *argp1 = 0 ;
35089 int res1 = 0 ;
35090 void *argp2 = 0 ;
35091 int res2 = 0 ;
35092 PyObject * obj0 = 0 ;
35093 PyObject * obj1 = 0 ;
35094 char * kwnames[] = {
35095 (char *) "self",(char *) "item", NULL
35096 };
35097
35098 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
35099 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35100 if (!SWIG_IsOK(res1)) {
35101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsSelected" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35102 }
35103 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35104 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35105 if (!SWIG_IsOK(res2)) {
35106 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35107 }
35108 if (!argp2) {
35109 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35110 }
35111 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35112 {
35113 PyThreadState* __tstate = wxPyBeginAllowThreads();
35114 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
35115 wxPyEndAllowThreads(__tstate);
35116 if (PyErr_Occurred()) SWIG_fail;
35117 }
35118 {
35119 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35120 }
35121 return resultobj;
35122 fail:
35123 return NULL;
35124 }
35125
35126
35127 SWIGINTERN PyObject *_wrap_TreeCtrl_IsBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35128 PyObject *resultobj = 0;
35129 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35130 wxTreeItemId *arg2 = 0 ;
35131 bool result;
35132 void *argp1 = 0 ;
35133 int res1 = 0 ;
35134 void *argp2 = 0 ;
35135 int res2 = 0 ;
35136 PyObject * obj0 = 0 ;
35137 PyObject * obj1 = 0 ;
35138 char * kwnames[] = {
35139 (char *) "self",(char *) "item", NULL
35140 };
35141
35142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) SWIG_fail;
35143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35144 if (!SWIG_IsOK(res1)) {
35145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35146 }
35147 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35148 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35149 if (!SWIG_IsOK(res2)) {
35150 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35151 }
35152 if (!argp2) {
35153 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35154 }
35155 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35156 {
35157 PyThreadState* __tstate = wxPyBeginAllowThreads();
35158 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
35159 wxPyEndAllowThreads(__tstate);
35160 if (PyErr_Occurred()) SWIG_fail;
35161 }
35162 {
35163 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35164 }
35165 return resultobj;
35166 fail:
35167 return NULL;
35168 }
35169
35170
35171 SWIGINTERN PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35172 PyObject *resultobj = 0;
35173 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35174 wxTreeItemId *arg2 = 0 ;
35175 bool arg3 = (bool) true ;
35176 size_t result;
35177 void *argp1 = 0 ;
35178 int res1 = 0 ;
35179 void *argp2 = 0 ;
35180 int res2 = 0 ;
35181 bool val3 ;
35182 int ecode3 = 0 ;
35183 PyObject * obj0 = 0 ;
35184 PyObject * obj1 = 0 ;
35185 PyObject * obj2 = 0 ;
35186 char * kwnames[] = {
35187 (char *) "self",(char *) "item",(char *) "recursively", NULL
35188 };
35189
35190 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35191 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35192 if (!SWIG_IsOK(res1)) {
35193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35194 }
35195 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35196 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35197 if (!SWIG_IsOK(res2)) {
35198 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35199 }
35200 if (!argp2) {
35201 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35202 }
35203 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35204 if (obj2) {
35205 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35206 if (!SWIG_IsOK(ecode3)) {
35207 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "3"" of type '" "bool""'");
35208 }
35209 arg3 = static_cast< bool >(val3);
35210 }
35211 {
35212 PyThreadState* __tstate = wxPyBeginAllowThreads();
35213 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
35214 wxPyEndAllowThreads(__tstate);
35215 if (PyErr_Occurred()) SWIG_fail;
35216 }
35217 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
35218 return resultobj;
35219 fail:
35220 return NULL;
35221 }
35222
35223
35224 SWIGINTERN PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35225 PyObject *resultobj = 0;
35226 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35227 wxTreeItemId result;
35228 void *argp1 = 0 ;
35229 int res1 = 0 ;
35230 PyObject *swig_obj[1] ;
35231
35232 if (!args) SWIG_fail;
35233 swig_obj[0] = args;
35234 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35235 if (!SWIG_IsOK(res1)) {
35236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetRootItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35237 }
35238 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35239 {
35240 PyThreadState* __tstate = wxPyBeginAllowThreads();
35241 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
35242 wxPyEndAllowThreads(__tstate);
35243 if (PyErr_Occurred()) SWIG_fail;
35244 }
35245 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35246 return resultobj;
35247 fail:
35248 return NULL;
35249 }
35250
35251
35252 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35253 PyObject *resultobj = 0;
35254 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35255 wxTreeItemId result;
35256 void *argp1 = 0 ;
35257 int res1 = 0 ;
35258 PyObject *swig_obj[1] ;
35259
35260 if (!args) SWIG_fail;
35261 swig_obj[0] = args;
35262 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35263 if (!SWIG_IsOK(res1)) {
35264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35265 }
35266 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35267 {
35268 PyThreadState* __tstate = wxPyBeginAllowThreads();
35269 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
35270 wxPyEndAllowThreads(__tstate);
35271 if (PyErr_Occurred()) SWIG_fail;
35272 }
35273 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35274 return resultobj;
35275 fail:
35276 return NULL;
35277 }
35278
35279
35280 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35281 PyObject *resultobj = 0;
35282 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35283 PyObject *result = 0 ;
35284 void *argp1 = 0 ;
35285 int res1 = 0 ;
35286 PyObject *swig_obj[1] ;
35287
35288 if (!args) SWIG_fail;
35289 swig_obj[0] = args;
35290 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35291 if (!SWIG_IsOK(res1)) {
35292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelections" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35293 }
35294 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35295 {
35296 PyThreadState* __tstate = wxPyBeginAllowThreads();
35297 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
35298 wxPyEndAllowThreads(__tstate);
35299 if (PyErr_Occurred()) SWIG_fail;
35300 }
35301 resultobj = result;
35302 return resultobj;
35303 fail:
35304 return NULL;
35305 }
35306
35307
35308 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35309 PyObject *resultobj = 0;
35310 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35311 wxTreeItemId *arg2 = 0 ;
35312 wxTreeItemId result;
35313 void *argp1 = 0 ;
35314 int res1 = 0 ;
35315 void *argp2 = 0 ;
35316 int res2 = 0 ;
35317 PyObject * obj0 = 0 ;
35318 PyObject * obj1 = 0 ;
35319 char * kwnames[] = {
35320 (char *) "self",(char *) "item", NULL
35321 };
35322
35323 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) SWIG_fail;
35324 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35325 if (!SWIG_IsOK(res1)) {
35326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35327 }
35328 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35329 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35330 if (!SWIG_IsOK(res2)) {
35331 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35332 }
35333 if (!argp2) {
35334 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35335 }
35336 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35337 {
35338 PyThreadState* __tstate = wxPyBeginAllowThreads();
35339 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
35340 wxPyEndAllowThreads(__tstate);
35341 if (PyErr_Occurred()) SWIG_fail;
35342 }
35343 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35344 return resultobj;
35345 fail:
35346 return NULL;
35347 }
35348
35349
35350 SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35351 PyObject *resultobj = 0;
35352 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35353 wxTreeItemId *arg2 = 0 ;
35354 PyObject *result = 0 ;
35355 void *argp1 = 0 ;
35356 int res1 = 0 ;
35357 void *argp2 = 0 ;
35358 int res2 = 0 ;
35359 PyObject * obj0 = 0 ;
35360 PyObject * obj1 = 0 ;
35361 char * kwnames[] = {
35362 (char *) "self",(char *) "item", NULL
35363 };
35364
35365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) SWIG_fail;
35366 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35367 if (!SWIG_IsOK(res1)) {
35368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35369 }
35370 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35371 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35372 if (!SWIG_IsOK(res2)) {
35373 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35374 }
35375 if (!argp2) {
35376 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35377 }
35378 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35379 {
35380 PyThreadState* __tstate = wxPyBeginAllowThreads();
35381 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
35382 wxPyEndAllowThreads(__tstate);
35383 if (PyErr_Occurred()) SWIG_fail;
35384 }
35385 resultobj = result;
35386 return resultobj;
35387 fail:
35388 return NULL;
35389 }
35390
35391
35392 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35393 PyObject *resultobj = 0;
35394 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35395 wxTreeItemId *arg2 = 0 ;
35396 void *arg3 = (void *) 0 ;
35397 PyObject *result = 0 ;
35398 void *argp1 = 0 ;
35399 int res1 = 0 ;
35400 void *argp2 = 0 ;
35401 int res2 = 0 ;
35402 int res3 ;
35403 PyObject * obj0 = 0 ;
35404 PyObject * obj1 = 0 ;
35405 PyObject * obj2 = 0 ;
35406 char * kwnames[] = {
35407 (char *) "self",(char *) "item",(char *) "cookie", NULL
35408 };
35409
35410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35412 if (!SWIG_IsOK(res1)) {
35413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35414 }
35415 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35416 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35417 if (!SWIG_IsOK(res2)) {
35418 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35419 }
35420 if (!argp2) {
35421 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35422 }
35423 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35424 res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0);
35425 if (!SWIG_IsOK(res3)) {
35426 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "3"" of type '" "void *""'");
35427 }
35428 {
35429 PyThreadState* __tstate = wxPyBeginAllowThreads();
35430 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
35431 wxPyEndAllowThreads(__tstate);
35432 if (PyErr_Occurred()) SWIG_fail;
35433 }
35434 resultobj = result;
35435 return resultobj;
35436 fail:
35437 return NULL;
35438 }
35439
35440
35441 SWIGINTERN PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35442 PyObject *resultobj = 0;
35443 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35444 wxTreeItemId *arg2 = 0 ;
35445 wxTreeItemId result;
35446 void *argp1 = 0 ;
35447 int res1 = 0 ;
35448 void *argp2 = 0 ;
35449 int res2 = 0 ;
35450 PyObject * obj0 = 0 ;
35451 PyObject * obj1 = 0 ;
35452 char * kwnames[] = {
35453 (char *) "self",(char *) "item", NULL
35454 };
35455
35456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) SWIG_fail;
35457 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35458 if (!SWIG_IsOK(res1)) {
35459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35460 }
35461 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35462 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35463 if (!SWIG_IsOK(res2)) {
35464 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35465 }
35466 if (!argp2) {
35467 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35468 }
35469 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35470 {
35471 PyThreadState* __tstate = wxPyBeginAllowThreads();
35472 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
35473 wxPyEndAllowThreads(__tstate);
35474 if (PyErr_Occurred()) SWIG_fail;
35475 }
35476 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35477 return resultobj;
35478 fail:
35479 return NULL;
35480 }
35481
35482
35483 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35484 PyObject *resultobj = 0;
35485 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35486 wxTreeItemId *arg2 = 0 ;
35487 wxTreeItemId result;
35488 void *argp1 = 0 ;
35489 int res1 = 0 ;
35490 void *argp2 = 0 ;
35491 int res2 = 0 ;
35492 PyObject * obj0 = 0 ;
35493 PyObject * obj1 = 0 ;
35494 char * kwnames[] = {
35495 (char *) "self",(char *) "item", NULL
35496 };
35497
35498 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35499 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35500 if (!SWIG_IsOK(res1)) {
35501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35502 }
35503 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35504 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35505 if (!SWIG_IsOK(res2)) {
35506 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35507 }
35508 if (!argp2) {
35509 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35510 }
35511 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35512 {
35513 PyThreadState* __tstate = wxPyBeginAllowThreads();
35514 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
35515 wxPyEndAllowThreads(__tstate);
35516 if (PyErr_Occurred()) SWIG_fail;
35517 }
35518 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35519 return resultobj;
35520 fail:
35521 return NULL;
35522 }
35523
35524
35525 SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35526 PyObject *resultobj = 0;
35527 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35528 wxTreeItemId *arg2 = 0 ;
35529 wxTreeItemId result;
35530 void *argp1 = 0 ;
35531 int res1 = 0 ;
35532 void *argp2 = 0 ;
35533 int res2 = 0 ;
35534 PyObject * obj0 = 0 ;
35535 PyObject * obj1 = 0 ;
35536 char * kwnames[] = {
35537 (char *) "self",(char *) "item", NULL
35538 };
35539
35540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35541 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35542 if (!SWIG_IsOK(res1)) {
35543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35544 }
35545 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35546 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35547 if (!SWIG_IsOK(res2)) {
35548 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35549 }
35550 if (!argp2) {
35551 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35552 }
35553 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35554 {
35555 PyThreadState* __tstate = wxPyBeginAllowThreads();
35556 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
35557 wxPyEndAllowThreads(__tstate);
35558 if (PyErr_Occurred()) SWIG_fail;
35559 }
35560 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35561 return resultobj;
35562 fail:
35563 return NULL;
35564 }
35565
35566
35567 SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35568 PyObject *resultobj = 0;
35569 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35570 wxTreeItemId result;
35571 void *argp1 = 0 ;
35572 int res1 = 0 ;
35573 PyObject *swig_obj[1] ;
35574
35575 if (!args) SWIG_fail;
35576 swig_obj[0] = args;
35577 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35578 if (!SWIG_IsOK(res1)) {
35579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstVisibleItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35580 }
35581 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35582 {
35583 PyThreadState* __tstate = wxPyBeginAllowThreads();
35584 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
35585 wxPyEndAllowThreads(__tstate);
35586 if (PyErr_Occurred()) SWIG_fail;
35587 }
35588 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35589 return resultobj;
35590 fail:
35591 return NULL;
35592 }
35593
35594
35595 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35596 PyObject *resultobj = 0;
35597 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35598 wxTreeItemId *arg2 = 0 ;
35599 wxTreeItemId result;
35600 void *argp1 = 0 ;
35601 int res1 = 0 ;
35602 void *argp2 = 0 ;
35603 int res2 = 0 ;
35604 PyObject * obj0 = 0 ;
35605 PyObject * obj1 = 0 ;
35606 char * kwnames[] = {
35607 (char *) "self",(char *) "item", NULL
35608 };
35609
35610 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35611 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35612 if (!SWIG_IsOK(res1)) {
35613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35614 }
35615 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35616 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35617 if (!SWIG_IsOK(res2)) {
35618 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35619 }
35620 if (!argp2) {
35621 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35622 }
35623 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35624 {
35625 PyThreadState* __tstate = wxPyBeginAllowThreads();
35626 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
35627 wxPyEndAllowThreads(__tstate);
35628 if (PyErr_Occurred()) SWIG_fail;
35629 }
35630 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35631 return resultobj;
35632 fail:
35633 return NULL;
35634 }
35635
35636
35637 SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35638 PyObject *resultobj = 0;
35639 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35640 wxTreeItemId *arg2 = 0 ;
35641 wxTreeItemId result;
35642 void *argp1 = 0 ;
35643 int res1 = 0 ;
35644 void *argp2 = 0 ;
35645 int res2 = 0 ;
35646 PyObject * obj0 = 0 ;
35647 PyObject * obj1 = 0 ;
35648 char * kwnames[] = {
35649 (char *) "self",(char *) "item", NULL
35650 };
35651
35652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35653 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35654 if (!SWIG_IsOK(res1)) {
35655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35656 }
35657 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35658 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35659 if (!SWIG_IsOK(res2)) {
35660 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35661 }
35662 if (!argp2) {
35663 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35664 }
35665 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35666 {
35667 PyThreadState* __tstate = wxPyBeginAllowThreads();
35668 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
35669 wxPyEndAllowThreads(__tstate);
35670 if (PyErr_Occurred()) SWIG_fail;
35671 }
35672 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35673 return resultobj;
35674 fail:
35675 return NULL;
35676 }
35677
35678
35679 SWIGINTERN PyObject *_wrap_TreeCtrl_AddRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35680 PyObject *resultobj = 0;
35681 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35682 wxString *arg2 = 0 ;
35683 int arg3 = (int) -1 ;
35684 int arg4 = (int) -1 ;
35685 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
35686 wxTreeItemId result;
35687 void *argp1 = 0 ;
35688 int res1 = 0 ;
35689 bool temp2 = false ;
35690 int val3 ;
35691 int ecode3 = 0 ;
35692 int val4 ;
35693 int ecode4 = 0 ;
35694 int res5 = 0 ;
35695 PyObject * obj0 = 0 ;
35696 PyObject * obj1 = 0 ;
35697 PyObject * obj2 = 0 ;
35698 PyObject * obj3 = 0 ;
35699 PyObject * obj4 = 0 ;
35700 char * kwnames[] = {
35701 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35702 };
35703
35704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35706 if (!SWIG_IsOK(res1)) {
35707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AddRoot" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35708 }
35709 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35710 {
35711 arg2 = wxString_in_helper(obj1);
35712 if (arg2 == NULL) SWIG_fail;
35713 temp2 = true;
35714 }
35715 if (obj2) {
35716 ecode3 = SWIG_AsVal_int(obj2, &val3);
35717 if (!SWIG_IsOK(ecode3)) {
35718 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_AddRoot" "', expected argument " "3"" of type '" "int""'");
35719 }
35720 arg3 = static_cast< int >(val3);
35721 }
35722 if (obj3) {
35723 ecode4 = SWIG_AsVal_int(obj3, &val4);
35724 if (!SWIG_IsOK(ecode4)) {
35725 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AddRoot" "', expected argument " "4"" of type '" "int""'");
35726 }
35727 arg4 = static_cast< int >(val4);
35728 }
35729 if (obj4) {
35730 res5 = SWIG_ConvertPtr(obj4, SWIG_as_voidptrptr(&arg5), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35731 if (!SWIG_IsOK(res5)) {
35732 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "TreeCtrl_AddRoot" "', expected argument " "5"" of type '" "wxPyTreeItemData *""'");
35733 }
35734 }
35735 {
35736 PyThreadState* __tstate = wxPyBeginAllowThreads();
35737 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
35738 wxPyEndAllowThreads(__tstate);
35739 if (PyErr_Occurred()) SWIG_fail;
35740 }
35741 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35742 {
35743 if (temp2)
35744 delete arg2;
35745 }
35746 return resultobj;
35747 fail:
35748 {
35749 if (temp2)
35750 delete arg2;
35751 }
35752 return NULL;
35753 }
35754
35755
35756 SWIGINTERN PyObject *_wrap_TreeCtrl_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35757 PyObject *resultobj = 0;
35758 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35759 wxTreeItemId *arg2 = 0 ;
35760 wxString *arg3 = 0 ;
35761 int arg4 = (int) -1 ;
35762 int arg5 = (int) -1 ;
35763 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
35764 wxTreeItemId result;
35765 void *argp1 = 0 ;
35766 int res1 = 0 ;
35767 void *argp2 = 0 ;
35768 int res2 = 0 ;
35769 bool temp3 = false ;
35770 int val4 ;
35771 int ecode4 = 0 ;
35772 int val5 ;
35773 int ecode5 = 0 ;
35774 int res6 = 0 ;
35775 PyObject * obj0 = 0 ;
35776 PyObject * obj1 = 0 ;
35777 PyObject * obj2 = 0 ;
35778 PyObject * obj3 = 0 ;
35779 PyObject * obj4 = 0 ;
35780 PyObject * obj5 = 0 ;
35781 char * kwnames[] = {
35782 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35783 };
35784
35785 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
35786 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35787 if (!SWIG_IsOK(res1)) {
35788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_PrependItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35789 }
35790 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35791 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35792 if (!SWIG_IsOK(res2)) {
35793 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35794 }
35795 if (!argp2) {
35796 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35797 }
35798 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35799 {
35800 arg3 = wxString_in_helper(obj2);
35801 if (arg3 == NULL) SWIG_fail;
35802 temp3 = true;
35803 }
35804 if (obj3) {
35805 ecode4 = SWIG_AsVal_int(obj3, &val4);
35806 if (!SWIG_IsOK(ecode4)) {
35807 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_PrependItem" "', expected argument " "4"" of type '" "int""'");
35808 }
35809 arg4 = static_cast< int >(val4);
35810 }
35811 if (obj4) {
35812 ecode5 = SWIG_AsVal_int(obj4, &val5);
35813 if (!SWIG_IsOK(ecode5)) {
35814 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_PrependItem" "', expected argument " "5"" of type '" "int""'");
35815 }
35816 arg5 = static_cast< int >(val5);
35817 }
35818 if (obj5) {
35819 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35820 if (!SWIG_IsOK(res6)) {
35821 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_PrependItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
35822 }
35823 }
35824 {
35825 PyThreadState* __tstate = wxPyBeginAllowThreads();
35826 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
35827 wxPyEndAllowThreads(__tstate);
35828 if (PyErr_Occurred()) SWIG_fail;
35829 }
35830 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35831 {
35832 if (temp3)
35833 delete arg3;
35834 }
35835 return resultobj;
35836 fail:
35837 {
35838 if (temp3)
35839 delete arg3;
35840 }
35841 return NULL;
35842 }
35843
35844
35845 SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35846 PyObject *resultobj = 0;
35847 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35848 wxTreeItemId *arg2 = 0 ;
35849 wxTreeItemId *arg3 = 0 ;
35850 wxString *arg4 = 0 ;
35851 int arg5 = (int) -1 ;
35852 int arg6 = (int) -1 ;
35853 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
35854 wxTreeItemId result;
35855 void *argp1 = 0 ;
35856 int res1 = 0 ;
35857 void *argp2 = 0 ;
35858 int res2 = 0 ;
35859 void *argp3 = 0 ;
35860 int res3 = 0 ;
35861 bool temp4 = false ;
35862 int val5 ;
35863 int ecode5 = 0 ;
35864 int val6 ;
35865 int ecode6 = 0 ;
35866 int res7 = 0 ;
35867 PyObject * obj0 = 0 ;
35868 PyObject * obj1 = 0 ;
35869 PyObject * obj2 = 0 ;
35870 PyObject * obj3 = 0 ;
35871 PyObject * obj4 = 0 ;
35872 PyObject * obj5 = 0 ;
35873 PyObject * obj6 = 0 ;
35874 char * kwnames[] = {
35875 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35876 };
35877
35878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35880 if (!SWIG_IsOK(res1)) {
35881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35882 }
35883 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35884 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35885 if (!SWIG_IsOK(res2)) {
35886 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35887 }
35888 if (!argp2) {
35889 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35890 }
35891 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35892 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35893 if (!SWIG_IsOK(res3)) {
35894 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
35895 }
35896 if (!argp3) {
35897 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
35898 }
35899 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
35900 {
35901 arg4 = wxString_in_helper(obj3);
35902 if (arg4 == NULL) SWIG_fail;
35903 temp4 = true;
35904 }
35905 if (obj4) {
35906 ecode5 = SWIG_AsVal_int(obj4, &val5);
35907 if (!SWIG_IsOK(ecode5)) {
35908 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItem" "', expected argument " "5"" of type '" "int""'");
35909 }
35910 arg5 = static_cast< int >(val5);
35911 }
35912 if (obj5) {
35913 ecode6 = SWIG_AsVal_int(obj5, &val6);
35914 if (!SWIG_IsOK(ecode6)) {
35915 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItem" "', expected argument " "6"" of type '" "int""'");
35916 }
35917 arg6 = static_cast< int >(val6);
35918 }
35919 if (obj6) {
35920 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35921 if (!SWIG_IsOK(res7)) {
35922 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItem" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
35923 }
35924 }
35925 {
35926 PyThreadState* __tstate = wxPyBeginAllowThreads();
35927 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
35928 wxPyEndAllowThreads(__tstate);
35929 if (PyErr_Occurred()) SWIG_fail;
35930 }
35931 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35932 {
35933 if (temp4)
35934 delete arg4;
35935 }
35936 return resultobj;
35937 fail:
35938 {
35939 if (temp4)
35940 delete arg4;
35941 }
35942 return NULL;
35943 }
35944
35945
35946 SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35947 PyObject *resultobj = 0;
35948 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35949 wxTreeItemId *arg2 = 0 ;
35950 size_t arg3 ;
35951 wxString *arg4 = 0 ;
35952 int arg5 = (int) -1 ;
35953 int arg6 = (int) -1 ;
35954 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
35955 wxTreeItemId result;
35956 void *argp1 = 0 ;
35957 int res1 = 0 ;
35958 void *argp2 = 0 ;
35959 int res2 = 0 ;
35960 size_t val3 ;
35961 int ecode3 = 0 ;
35962 bool temp4 = false ;
35963 int val5 ;
35964 int ecode5 = 0 ;
35965 int val6 ;
35966 int ecode6 = 0 ;
35967 int res7 = 0 ;
35968 PyObject * obj0 = 0 ;
35969 PyObject * obj1 = 0 ;
35970 PyObject * obj2 = 0 ;
35971 PyObject * obj3 = 0 ;
35972 PyObject * obj4 = 0 ;
35973 PyObject * obj5 = 0 ;
35974 PyObject * obj6 = 0 ;
35975 char * kwnames[] = {
35976 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35977 };
35978
35979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35981 if (!SWIG_IsOK(res1)) {
35982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35983 }
35984 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35985 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35986 if (!SWIG_IsOK(res2)) {
35987 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35988 }
35989 if (!argp2) {
35990 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35991 }
35992 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35993 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
35994 if (!SWIG_IsOK(ecode3)) {
35995 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "3"" of type '" "size_t""'");
35996 }
35997 arg3 = static_cast< size_t >(val3);
35998 {
35999 arg4 = wxString_in_helper(obj3);
36000 if (arg4 == NULL) SWIG_fail;
36001 temp4 = true;
36002 }
36003 if (obj4) {
36004 ecode5 = SWIG_AsVal_int(obj4, &val5);
36005 if (!SWIG_IsOK(ecode5)) {
36006 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "5"" of type '" "int""'");
36007 }
36008 arg5 = static_cast< int >(val5);
36009 }
36010 if (obj5) {
36011 ecode6 = SWIG_AsVal_int(obj5, &val6);
36012 if (!SWIG_IsOK(ecode6)) {
36013 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "6"" of type '" "int""'");
36014 }
36015 arg6 = static_cast< int >(val6);
36016 }
36017 if (obj6) {
36018 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36019 if (!SWIG_IsOK(res7)) {
36020 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
36021 }
36022 }
36023 {
36024 PyThreadState* __tstate = wxPyBeginAllowThreads();
36025 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36026 wxPyEndAllowThreads(__tstate);
36027 if (PyErr_Occurred()) SWIG_fail;
36028 }
36029 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36030 {
36031 if (temp4)
36032 delete arg4;
36033 }
36034 return resultobj;
36035 fail:
36036 {
36037 if (temp4)
36038 delete arg4;
36039 }
36040 return NULL;
36041 }
36042
36043
36044 SWIGINTERN PyObject *_wrap_TreeCtrl_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36045 PyObject *resultobj = 0;
36046 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36047 wxTreeItemId *arg2 = 0 ;
36048 wxString *arg3 = 0 ;
36049 int arg4 = (int) -1 ;
36050 int arg5 = (int) -1 ;
36051 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
36052 wxTreeItemId result;
36053 void *argp1 = 0 ;
36054 int res1 = 0 ;
36055 void *argp2 = 0 ;
36056 int res2 = 0 ;
36057 bool temp3 = false ;
36058 int val4 ;
36059 int ecode4 = 0 ;
36060 int val5 ;
36061 int ecode5 = 0 ;
36062 int res6 = 0 ;
36063 PyObject * obj0 = 0 ;
36064 PyObject * obj1 = 0 ;
36065 PyObject * obj2 = 0 ;
36066 PyObject * obj3 = 0 ;
36067 PyObject * obj4 = 0 ;
36068 PyObject * obj5 = 0 ;
36069 char * kwnames[] = {
36070 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36071 };
36072
36073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36075 if (!SWIG_IsOK(res1)) {
36076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AppendItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36077 }
36078 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36079 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36080 if (!SWIG_IsOK(res2)) {
36081 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36082 }
36083 if (!argp2) {
36084 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36085 }
36086 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36087 {
36088 arg3 = wxString_in_helper(obj2);
36089 if (arg3 == NULL) SWIG_fail;
36090 temp3 = true;
36091 }
36092 if (obj3) {
36093 ecode4 = SWIG_AsVal_int(obj3, &val4);
36094 if (!SWIG_IsOK(ecode4)) {
36095 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AppendItem" "', expected argument " "4"" of type '" "int""'");
36096 }
36097 arg4 = static_cast< int >(val4);
36098 }
36099 if (obj4) {
36100 ecode5 = SWIG_AsVal_int(obj4, &val5);
36101 if (!SWIG_IsOK(ecode5)) {
36102 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_AppendItem" "', expected argument " "5"" of type '" "int""'");
36103 }
36104 arg5 = static_cast< int >(val5);
36105 }
36106 if (obj5) {
36107 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36108 if (!SWIG_IsOK(res6)) {
36109 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_AppendItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
36110 }
36111 }
36112 {
36113 PyThreadState* __tstate = wxPyBeginAllowThreads();
36114 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
36115 wxPyEndAllowThreads(__tstate);
36116 if (PyErr_Occurred()) SWIG_fail;
36117 }
36118 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36119 {
36120 if (temp3)
36121 delete arg3;
36122 }
36123 return resultobj;
36124 fail:
36125 {
36126 if (temp3)
36127 delete arg3;
36128 }
36129 return NULL;
36130 }
36131
36132
36133 SWIGINTERN PyObject *_wrap_TreeCtrl_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36134 PyObject *resultobj = 0;
36135 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36136 wxTreeItemId *arg2 = 0 ;
36137 void *argp1 = 0 ;
36138 int res1 = 0 ;
36139 void *argp2 = 0 ;
36140 int res2 = 0 ;
36141 PyObject * obj0 = 0 ;
36142 PyObject * obj1 = 0 ;
36143 char * kwnames[] = {
36144 (char *) "self",(char *) "item", NULL
36145 };
36146
36147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) SWIG_fail;
36148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36149 if (!SWIG_IsOK(res1)) {
36150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Delete" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36151 }
36152 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36153 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36154 if (!SWIG_IsOK(res2)) {
36155 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36156 }
36157 if (!argp2) {
36158 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36159 }
36160 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36161 {
36162 PyThreadState* __tstate = wxPyBeginAllowThreads();
36163 (arg1)->Delete((wxTreeItemId const &)*arg2);
36164 wxPyEndAllowThreads(__tstate);
36165 if (PyErr_Occurred()) SWIG_fail;
36166 }
36167 resultobj = SWIG_Py_Void();
36168 return resultobj;
36169 fail:
36170 return NULL;
36171 }
36172
36173
36174 SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36175 PyObject *resultobj = 0;
36176 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36177 wxTreeItemId *arg2 = 0 ;
36178 void *argp1 = 0 ;
36179 int res1 = 0 ;
36180 void *argp2 = 0 ;
36181 int res2 = 0 ;
36182 PyObject * obj0 = 0 ;
36183 PyObject * obj1 = 0 ;
36184 char * kwnames[] = {
36185 (char *) "self",(char *) "item", NULL
36186 };
36187
36188 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36189 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36190 if (!SWIG_IsOK(res1)) {
36191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36192 }
36193 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36194 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36195 if (!SWIG_IsOK(res2)) {
36196 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36197 }
36198 if (!argp2) {
36199 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36200 }
36201 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36202 {
36203 PyThreadState* __tstate = wxPyBeginAllowThreads();
36204 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
36205 wxPyEndAllowThreads(__tstate);
36206 if (PyErr_Occurred()) SWIG_fail;
36207 }
36208 resultobj = SWIG_Py_Void();
36209 return resultobj;
36210 fail:
36211 return NULL;
36212 }
36213
36214
36215 SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36216 PyObject *resultobj = 0;
36217 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36218 void *argp1 = 0 ;
36219 int res1 = 0 ;
36220 PyObject *swig_obj[1] ;
36221
36222 if (!args) SWIG_fail;
36223 swig_obj[0] = args;
36224 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36225 if (!SWIG_IsOK(res1)) {
36226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36227 }
36228 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36229 {
36230 PyThreadState* __tstate = wxPyBeginAllowThreads();
36231 (arg1)->DeleteAllItems();
36232 wxPyEndAllowThreads(__tstate);
36233 if (PyErr_Occurred()) SWIG_fail;
36234 }
36235 resultobj = SWIG_Py_Void();
36236 return resultobj;
36237 fail:
36238 return NULL;
36239 }
36240
36241
36242 SWIGINTERN PyObject *_wrap_TreeCtrl_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36243 PyObject *resultobj = 0;
36244 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36245 wxTreeItemId *arg2 = 0 ;
36246 void *argp1 = 0 ;
36247 int res1 = 0 ;
36248 void *argp2 = 0 ;
36249 int res2 = 0 ;
36250 PyObject * obj0 = 0 ;
36251 PyObject * obj1 = 0 ;
36252 char * kwnames[] = {
36253 (char *) "self",(char *) "item", NULL
36254 };
36255
36256 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) SWIG_fail;
36257 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36258 if (!SWIG_IsOK(res1)) {
36259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Expand" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36260 }
36261 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36262 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36263 if (!SWIG_IsOK(res2)) {
36264 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36265 }
36266 if (!argp2) {
36267 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36268 }
36269 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36270 {
36271 PyThreadState* __tstate = wxPyBeginAllowThreads();
36272 (arg1)->Expand((wxTreeItemId const &)*arg2);
36273 wxPyEndAllowThreads(__tstate);
36274 if (PyErr_Occurred()) SWIG_fail;
36275 }
36276 resultobj = SWIG_Py_Void();
36277 return resultobj;
36278 fail:
36279 return NULL;
36280 }
36281
36282
36283 SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAllChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36284 PyObject *resultobj = 0;
36285 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36286 wxTreeItemId *arg2 = 0 ;
36287 void *argp1 = 0 ;
36288 int res1 = 0 ;
36289 void *argp2 = 0 ;
36290 int res2 = 0 ;
36291 PyObject * obj0 = 0 ;
36292 PyObject * obj1 = 0 ;
36293 char * kwnames[] = {
36294 (char *) "self",(char *) "item", NULL
36295 };
36296
36297 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ExpandAllChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36298 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36299 if (!SWIG_IsOK(res1)) {
36300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36301 }
36302 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36303 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36304 if (!SWIG_IsOK(res2)) {
36305 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36306 }
36307 if (!argp2) {
36308 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36309 }
36310 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36311 {
36312 PyThreadState* __tstate = wxPyBeginAllowThreads();
36313 (arg1)->ExpandAllChildren((wxTreeItemId const &)*arg2);
36314 wxPyEndAllowThreads(__tstate);
36315 if (PyErr_Occurred()) SWIG_fail;
36316 }
36317 resultobj = SWIG_Py_Void();
36318 return resultobj;
36319 fail:
36320 return NULL;
36321 }
36322
36323
36324 SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36325 PyObject *resultobj = 0;
36326 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36327 void *argp1 = 0 ;
36328 int res1 = 0 ;
36329 PyObject *swig_obj[1] ;
36330
36331 if (!args) SWIG_fail;
36332 swig_obj[0] = args;
36333 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36334 if (!SWIG_IsOK(res1)) {
36335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36336 }
36337 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36338 {
36339 PyThreadState* __tstate = wxPyBeginAllowThreads();
36340 (arg1)->ExpandAll();
36341 wxPyEndAllowThreads(__tstate);
36342 if (PyErr_Occurred()) SWIG_fail;
36343 }
36344 resultobj = SWIG_Py_Void();
36345 return resultobj;
36346 fail:
36347 return NULL;
36348 }
36349
36350
36351 SWIGINTERN PyObject *_wrap_TreeCtrl_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36352 PyObject *resultobj = 0;
36353 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36354 wxTreeItemId *arg2 = 0 ;
36355 void *argp1 = 0 ;
36356 int res1 = 0 ;
36357 void *argp2 = 0 ;
36358 int res2 = 0 ;
36359 PyObject * obj0 = 0 ;
36360 PyObject * obj1 = 0 ;
36361 char * kwnames[] = {
36362 (char *) "self",(char *) "item", NULL
36363 };
36364
36365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
36366 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36367 if (!SWIG_IsOK(res1)) {
36368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Collapse" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36369 }
36370 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36371 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36372 if (!SWIG_IsOK(res2)) {
36373 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36374 }
36375 if (!argp2) {
36376 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36377 }
36378 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36379 {
36380 PyThreadState* __tstate = wxPyBeginAllowThreads();
36381 (arg1)->Collapse((wxTreeItemId const &)*arg2);
36382 wxPyEndAllowThreads(__tstate);
36383 if (PyErr_Occurred()) SWIG_fail;
36384 }
36385 resultobj = SWIG_Py_Void();
36386 return resultobj;
36387 fail:
36388 return NULL;
36389 }
36390
36391
36392 SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36393 PyObject *resultobj = 0;
36394 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36395 wxTreeItemId *arg2 = 0 ;
36396 void *argp1 = 0 ;
36397 int res1 = 0 ;
36398 void *argp2 = 0 ;
36399 int res2 = 0 ;
36400 PyObject * obj0 = 0 ;
36401 PyObject * obj1 = 0 ;
36402 char * kwnames[] = {
36403 (char *) "self",(char *) "item", NULL
36404 };
36405
36406 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) SWIG_fail;
36407 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36408 if (!SWIG_IsOK(res1)) {
36409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36410 }
36411 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36412 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36413 if (!SWIG_IsOK(res2)) {
36414 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36415 }
36416 if (!argp2) {
36417 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36418 }
36419 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36420 {
36421 PyThreadState* __tstate = wxPyBeginAllowThreads();
36422 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
36423 wxPyEndAllowThreads(__tstate);
36424 if (PyErr_Occurred()) SWIG_fail;
36425 }
36426 resultobj = SWIG_Py_Void();
36427 return resultobj;
36428 fail:
36429 return NULL;
36430 }
36431
36432
36433 SWIGINTERN PyObject *_wrap_TreeCtrl_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36434 PyObject *resultobj = 0;
36435 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36436 wxTreeItemId *arg2 = 0 ;
36437 void *argp1 = 0 ;
36438 int res1 = 0 ;
36439 void *argp2 = 0 ;
36440 int res2 = 0 ;
36441 PyObject * obj0 = 0 ;
36442 PyObject * obj1 = 0 ;
36443 char * kwnames[] = {
36444 (char *) "self",(char *) "item", NULL
36445 };
36446
36447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) SWIG_fail;
36448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36449 if (!SWIG_IsOK(res1)) {
36450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Toggle" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36451 }
36452 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36453 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36454 if (!SWIG_IsOK(res2)) {
36455 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36456 }
36457 if (!argp2) {
36458 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36459 }
36460 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36461 {
36462 PyThreadState* __tstate = wxPyBeginAllowThreads();
36463 (arg1)->Toggle((wxTreeItemId const &)*arg2);
36464 wxPyEndAllowThreads(__tstate);
36465 if (PyErr_Occurred()) SWIG_fail;
36466 }
36467 resultobj = SWIG_Py_Void();
36468 return resultobj;
36469 fail:
36470 return NULL;
36471 }
36472
36473
36474 SWIGINTERN PyObject *_wrap_TreeCtrl_Unselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36475 PyObject *resultobj = 0;
36476 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36477 void *argp1 = 0 ;
36478 int res1 = 0 ;
36479 PyObject *swig_obj[1] ;
36480
36481 if (!args) SWIG_fail;
36482 swig_obj[0] = args;
36483 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36484 if (!SWIG_IsOK(res1)) {
36485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Unselect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36486 }
36487 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36488 {
36489 PyThreadState* __tstate = wxPyBeginAllowThreads();
36490 (arg1)->Unselect();
36491 wxPyEndAllowThreads(__tstate);
36492 if (PyErr_Occurred()) SWIG_fail;
36493 }
36494 resultobj = SWIG_Py_Void();
36495 return resultobj;
36496 fail:
36497 return NULL;
36498 }
36499
36500
36501 SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36502 PyObject *resultobj = 0;
36503 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36504 wxTreeItemId *arg2 = 0 ;
36505 void *argp1 = 0 ;
36506 int res1 = 0 ;
36507 void *argp2 = 0 ;
36508 int res2 = 0 ;
36509 PyObject * obj0 = 0 ;
36510 PyObject * obj1 = 0 ;
36511 char * kwnames[] = {
36512 (char *) "self",(char *) "item", NULL
36513 };
36514
36515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) SWIG_fail;
36516 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36517 if (!SWIG_IsOK(res1)) {
36518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36519 }
36520 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36521 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36522 if (!SWIG_IsOK(res2)) {
36523 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36524 }
36525 if (!argp2) {
36526 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36527 }
36528 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36529 {
36530 PyThreadState* __tstate = wxPyBeginAllowThreads();
36531 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
36532 wxPyEndAllowThreads(__tstate);
36533 if (PyErr_Occurred()) SWIG_fail;
36534 }
36535 resultobj = SWIG_Py_Void();
36536 return resultobj;
36537 fail:
36538 return NULL;
36539 }
36540
36541
36542 SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36543 PyObject *resultobj = 0;
36544 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36545 void *argp1 = 0 ;
36546 int res1 = 0 ;
36547 PyObject *swig_obj[1] ;
36548
36549 if (!args) SWIG_fail;
36550 swig_obj[0] = args;
36551 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36552 if (!SWIG_IsOK(res1)) {
36553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36554 }
36555 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36556 {
36557 PyThreadState* __tstate = wxPyBeginAllowThreads();
36558 (arg1)->UnselectAll();
36559 wxPyEndAllowThreads(__tstate);
36560 if (PyErr_Occurred()) SWIG_fail;
36561 }
36562 resultobj = SWIG_Py_Void();
36563 return resultobj;
36564 fail:
36565 return NULL;
36566 }
36567
36568
36569 SWIGINTERN PyObject *_wrap_TreeCtrl_SelectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36570 PyObject *resultobj = 0;
36571 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36572 wxTreeItemId *arg2 = 0 ;
36573 bool arg3 = (bool) true ;
36574 void *argp1 = 0 ;
36575 int res1 = 0 ;
36576 void *argp2 = 0 ;
36577 int res2 = 0 ;
36578 bool val3 ;
36579 int ecode3 = 0 ;
36580 PyObject * obj0 = 0 ;
36581 PyObject * obj1 = 0 ;
36582 PyObject * obj2 = 0 ;
36583 char * kwnames[] = {
36584 (char *) "self",(char *) "item",(char *) "select", NULL
36585 };
36586
36587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36589 if (!SWIG_IsOK(res1)) {
36590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SelectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36591 }
36592 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36593 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36594 if (!SWIG_IsOK(res2)) {
36595 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36596 }
36597 if (!argp2) {
36598 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36599 }
36600 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36601 if (obj2) {
36602 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36603 if (!SWIG_IsOK(ecode3)) {
36604 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SelectItem" "', expected argument " "3"" of type '" "bool""'");
36605 }
36606 arg3 = static_cast< bool >(val3);
36607 }
36608 {
36609 PyThreadState* __tstate = wxPyBeginAllowThreads();
36610 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
36611 wxPyEndAllowThreads(__tstate);
36612 if (PyErr_Occurred()) SWIG_fail;
36613 }
36614 resultobj = SWIG_Py_Void();
36615 return resultobj;
36616 fail:
36617 return NULL;
36618 }
36619
36620
36621 SWIGINTERN PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36622 PyObject *resultobj = 0;
36623 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36624 wxTreeItemId *arg2 = 0 ;
36625 void *argp1 = 0 ;
36626 int res1 = 0 ;
36627 void *argp2 = 0 ;
36628 int res2 = 0 ;
36629 PyObject * obj0 = 0 ;
36630 PyObject * obj1 = 0 ;
36631 char * kwnames[] = {
36632 (char *) "self",(char *) "item", NULL
36633 };
36634
36635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) SWIG_fail;
36636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36637 if (!SWIG_IsOK(res1)) {
36638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36639 }
36640 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36641 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36642 if (!SWIG_IsOK(res2)) {
36643 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36644 }
36645 if (!argp2) {
36646 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36647 }
36648 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36649 {
36650 PyThreadState* __tstate = wxPyBeginAllowThreads();
36651 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
36652 wxPyEndAllowThreads(__tstate);
36653 if (PyErr_Occurred()) SWIG_fail;
36654 }
36655 resultobj = SWIG_Py_Void();
36656 return resultobj;
36657 fail:
36658 return NULL;
36659 }
36660
36661
36662 SWIGINTERN PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36663 PyObject *resultobj = 0;
36664 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36665 wxTreeItemId *arg2 = 0 ;
36666 void *argp1 = 0 ;
36667 int res1 = 0 ;
36668 void *argp2 = 0 ;
36669 int res2 = 0 ;
36670 PyObject * obj0 = 0 ;
36671 PyObject * obj1 = 0 ;
36672 char * kwnames[] = {
36673 (char *) "self",(char *) "item", NULL
36674 };
36675
36676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
36677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36678 if (!SWIG_IsOK(res1)) {
36679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36680 }
36681 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36682 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36683 if (!SWIG_IsOK(res2)) {
36684 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36685 }
36686 if (!argp2) {
36687 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36688 }
36689 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36690 {
36691 PyThreadState* __tstate = wxPyBeginAllowThreads();
36692 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
36693 wxPyEndAllowThreads(__tstate);
36694 if (PyErr_Occurred()) SWIG_fail;
36695 }
36696 resultobj = SWIG_Py_Void();
36697 return resultobj;
36698 fail:
36699 return NULL;
36700 }
36701
36702
36703 SWIGINTERN PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36704 PyObject *resultobj = 0;
36705 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36706 wxTreeItemId *arg2 = 0 ;
36707 void *argp1 = 0 ;
36708 int res1 = 0 ;
36709 void *argp2 = 0 ;
36710 int res2 = 0 ;
36711 PyObject * obj0 = 0 ;
36712 PyObject * obj1 = 0 ;
36713 char * kwnames[] = {
36714 (char *) "self",(char *) "item", NULL
36715 };
36716
36717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) SWIG_fail;
36718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36719 if (!SWIG_IsOK(res1)) {
36720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36721 }
36722 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36723 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36724 if (!SWIG_IsOK(res2)) {
36725 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36726 }
36727 if (!argp2) {
36728 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36729 }
36730 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36731 {
36732 PyThreadState* __tstate = wxPyBeginAllowThreads();
36733 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
36734 wxPyEndAllowThreads(__tstate);
36735 if (PyErr_Occurred()) SWIG_fail;
36736 }
36737 resultobj = SWIG_Py_Void();
36738 return resultobj;
36739 fail:
36740 return NULL;
36741 }
36742
36743
36744 SWIGINTERN PyObject *_wrap_TreeCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36745 PyObject *resultobj = 0;
36746 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36747 wxTreeItemId *arg2 = 0 ;
36748 void *argp1 = 0 ;
36749 int res1 = 0 ;
36750 void *argp2 = 0 ;
36751 int res2 = 0 ;
36752 PyObject * obj0 = 0 ;
36753 PyObject * obj1 = 0 ;
36754 char * kwnames[] = {
36755 (char *) "self",(char *) "item", NULL
36756 };
36757
36758 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
36759 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36760 if (!SWIG_IsOK(res1)) {
36761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36762 }
36763 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36764 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36765 if (!SWIG_IsOK(res2)) {
36766 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36767 }
36768 if (!argp2) {
36769 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36770 }
36771 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36772 {
36773 PyThreadState* __tstate = wxPyBeginAllowThreads();
36774 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
36775 wxPyEndAllowThreads(__tstate);
36776 if (PyErr_Occurred()) SWIG_fail;
36777 }
36778 resultobj = SWIG_Py_Void();
36779 return resultobj;
36780 fail:
36781 return NULL;
36782 }
36783
36784
36785 SWIGINTERN PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36786 PyObject *resultobj = 0;
36787 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36788 wxTextCtrl *result = 0 ;
36789 void *argp1 = 0 ;
36790 int res1 = 0 ;
36791 PyObject *swig_obj[1] ;
36792
36793 if (!args) SWIG_fail;
36794 swig_obj[0] = args;
36795 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36796 if (!SWIG_IsOK(res1)) {
36797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36798 }
36799 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36800 {
36801 PyThreadState* __tstate = wxPyBeginAllowThreads();
36802 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
36803 wxPyEndAllowThreads(__tstate);
36804 if (PyErr_Occurred()) SWIG_fail;
36805 }
36806 {
36807 resultobj = wxPyMake_wxObject(result, 0);
36808 }
36809 return resultobj;
36810 fail:
36811 return NULL;
36812 }
36813
36814
36815 SWIGINTERN PyObject *_wrap_TreeCtrl_SortChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36816 PyObject *resultobj = 0;
36817 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36818 wxTreeItemId *arg2 = 0 ;
36819 void *argp1 = 0 ;
36820 int res1 = 0 ;
36821 void *argp2 = 0 ;
36822 int res2 = 0 ;
36823 PyObject * obj0 = 0 ;
36824 PyObject * obj1 = 0 ;
36825 char * kwnames[] = {
36826 (char *) "self",(char *) "item", NULL
36827 };
36828
36829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36831 if (!SWIG_IsOK(res1)) {
36832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SortChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36833 }
36834 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36835 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36836 if (!SWIG_IsOK(res2)) {
36837 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36838 }
36839 if (!argp2) {
36840 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36841 }
36842 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36843 {
36844 PyThreadState* __tstate = wxPyBeginAllowThreads();
36845 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
36846 wxPyEndAllowThreads(__tstate);
36847 if (PyErr_Occurred()) SWIG_fail;
36848 }
36849 resultobj = SWIG_Py_Void();
36850 return resultobj;
36851 fail:
36852 return NULL;
36853 }
36854
36855
36856 SWIGINTERN PyObject *_wrap_TreeCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36857 PyObject *resultobj = 0;
36858 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36859 wxPoint *arg2 = 0 ;
36860 int *arg3 = 0 ;
36861 wxTreeItemId result;
36862 void *argp1 = 0 ;
36863 int res1 = 0 ;
36864 wxPoint temp2 ;
36865 int temp3 ;
36866 int res3 = SWIG_TMPOBJ ;
36867 PyObject * obj0 = 0 ;
36868 PyObject * obj1 = 0 ;
36869 char * kwnames[] = {
36870 (char *) "self",(char *) "point", NULL
36871 };
36872
36873 arg3 = &temp3;
36874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
36875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36876 if (!SWIG_IsOK(res1)) {
36877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36878 }
36879 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36880 {
36881 arg2 = &temp2;
36882 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36883 }
36884 {
36885 PyThreadState* __tstate = wxPyBeginAllowThreads();
36886 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
36887 wxPyEndAllowThreads(__tstate);
36888 if (PyErr_Occurred()) SWIG_fail;
36889 }
36890 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36891 if (SWIG_IsTmpObj(res3)) {
36892 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
36893 } else {
36894 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
36895 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
36896 }
36897 return resultobj;
36898 fail:
36899 return NULL;
36900 }
36901
36902
36903 SWIGINTERN PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36904 PyObject *resultobj = 0;
36905 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36906 wxTreeItemId *arg2 = 0 ;
36907 bool arg3 = (bool) false ;
36908 PyObject *result = 0 ;
36909 void *argp1 = 0 ;
36910 int res1 = 0 ;
36911 void *argp2 = 0 ;
36912 int res2 = 0 ;
36913 bool val3 ;
36914 int ecode3 = 0 ;
36915 PyObject * obj0 = 0 ;
36916 PyObject * obj1 = 0 ;
36917 PyObject * obj2 = 0 ;
36918 char * kwnames[] = {
36919 (char *) "self",(char *) "item",(char *) "textOnly", NULL
36920 };
36921
36922 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36923 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36924 if (!SWIG_IsOK(res1)) {
36925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36926 }
36927 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36928 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36929 if (!SWIG_IsOK(res2)) {
36930 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36931 }
36932 if (!argp2) {
36933 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36934 }
36935 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36936 if (obj2) {
36937 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36938 if (!SWIG_IsOK(ecode3)) {
36939 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "3"" of type '" "bool""'");
36940 }
36941 arg3 = static_cast< bool >(val3);
36942 }
36943 {
36944 PyThreadState* __tstate = wxPyBeginAllowThreads();
36945 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
36946 wxPyEndAllowThreads(__tstate);
36947 if (PyErr_Occurred()) SWIG_fail;
36948 }
36949 resultobj = result;
36950 return resultobj;
36951 fail:
36952 return NULL;
36953 }
36954
36955
36956 SWIGINTERN PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36957 PyObject *resultobj = 0;
36958 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
36959 SwigValueWrapper<wxVisualAttributes > result;
36960 int val1 ;
36961 int ecode1 = 0 ;
36962 PyObject * obj0 = 0 ;
36963 char * kwnames[] = {
36964 (char *) "variant", NULL
36965 };
36966
36967 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
36968 if (obj0) {
36969 ecode1 = SWIG_AsVal_int(obj0, &val1);
36970 if (!SWIG_IsOK(ecode1)) {
36971 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TreeCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
36972 }
36973 arg1 = static_cast< wxWindowVariant >(val1);
36974 }
36975 {
36976 if (!wxPyCheckForApp()) SWIG_fail;
36977 PyThreadState* __tstate = wxPyBeginAllowThreads();
36978 result = wxPyTreeCtrl::GetClassDefaultAttributes(arg1);
36979 wxPyEndAllowThreads(__tstate);
36980 if (PyErr_Occurred()) SWIG_fail;
36981 }
36982 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
36983 return resultobj;
36984 fail:
36985 return NULL;
36986 }
36987
36988
36989 SWIGINTERN PyObject *_wrap_TreeCtrl_SetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36990 PyObject *resultobj = 0;
36991 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36992 bool arg2 ;
36993 void *argp1 = 0 ;
36994 int res1 = 0 ;
36995 bool val2 ;
36996 int ecode2 = 0 ;
36997 PyObject * obj0 = 0 ;
36998 PyObject * obj1 = 0 ;
36999 char * kwnames[] = {
37000 (char *) "self",(char *) "q", NULL
37001 };
37002
37003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetQuickBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
37004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37005 if (!SWIG_IsOK(res1)) {
37006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37007 }
37008 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37009 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37010 if (!SWIG_IsOK(ecode2)) {
37011 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "2"" of type '" "bool""'");
37012 }
37013 arg2 = static_cast< bool >(val2);
37014 {
37015 PyThreadState* __tstate = wxPyBeginAllowThreads();
37016 (arg1)->SetQuickBestSize(arg2);
37017 wxPyEndAllowThreads(__tstate);
37018 if (PyErr_Occurred()) SWIG_fail;
37019 }
37020 resultobj = SWIG_Py_Void();
37021 return resultobj;
37022 fail:
37023 return NULL;
37024 }
37025
37026
37027 SWIGINTERN PyObject *_wrap_TreeCtrl_GetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37028 PyObject *resultobj = 0;
37029 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37030 bool result;
37031 void *argp1 = 0 ;
37032 int res1 = 0 ;
37033 PyObject *swig_obj[1] ;
37034
37035 if (!args) SWIG_fail;
37036 swig_obj[0] = args;
37037 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37038 if (!SWIG_IsOK(res1)) {
37039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
37040 }
37041 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37042 {
37043 PyThreadState* __tstate = wxPyBeginAllowThreads();
37044 result = (bool)((wxPyTreeCtrl const *)arg1)->GetQuickBestSize();
37045 wxPyEndAllowThreads(__tstate);
37046 if (PyErr_Occurred()) SWIG_fail;
37047 }
37048 {
37049 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37050 }
37051 return resultobj;
37052 fail:
37053 return NULL;
37054 }
37055
37056
37057 SWIGINTERN PyObject *TreeCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37058 PyObject *obj;
37059 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37060 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeCtrl, SWIG_NewClientData(obj));
37061 return SWIG_Py_Void();
37062 }
37063
37064 SWIGINTERN PyObject *TreeCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37065 return SWIG_Python_InitShadowInstance(args);
37066 }
37067
37068 SWIGINTERN int DirDialogDefaultFolderStr_set(PyObject *) {
37069 SWIG_Error(SWIG_AttributeError,"Variable DirDialogDefaultFolderStr is read-only.");
37070 return 1;
37071 }
37072
37073
37074 SWIGINTERN PyObject *DirDialogDefaultFolderStr_get(void) {
37075 PyObject *pyobj = 0;
37076
37077 {
37078 #if wxUSE_UNICODE
37079 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37080 #else
37081 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37082 #endif
37083 }
37084 return pyobj;
37085 }
37086
37087
37088 SWIGINTERN PyObject *_wrap_new_GenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37089 PyObject *resultobj = 0;
37090 wxWindow *arg1 = (wxWindow *) 0 ;
37091 int arg2 = (int) (int)-1 ;
37092 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
37093 wxString *arg3 = (wxString *) &arg3_defvalue ;
37094 wxPoint const &arg4_defvalue = wxDefaultPosition ;
37095 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
37096 wxSize const &arg5_defvalue = wxDefaultSize ;
37097 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
37098 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37099 wxString const &arg7_defvalue = wxPyEmptyString ;
37100 wxString *arg7 = (wxString *) &arg7_defvalue ;
37101 int arg8 = (int) 0 ;
37102 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
37103 wxString *arg9 = (wxString *) &arg9_defvalue ;
37104 wxGenericDirCtrl *result = 0 ;
37105 void *argp1 = 0 ;
37106 int res1 = 0 ;
37107 int val2 ;
37108 int ecode2 = 0 ;
37109 bool temp3 = false ;
37110 wxPoint temp4 ;
37111 wxSize temp5 ;
37112 long val6 ;
37113 int ecode6 = 0 ;
37114 bool temp7 = false ;
37115 int val8 ;
37116 int ecode8 = 0 ;
37117 bool temp9 = false ;
37118 PyObject * obj0 = 0 ;
37119 PyObject * obj1 = 0 ;
37120 PyObject * obj2 = 0 ;
37121 PyObject * obj3 = 0 ;
37122 PyObject * obj4 = 0 ;
37123 PyObject * obj5 = 0 ;
37124 PyObject * obj6 = 0 ;
37125 PyObject * obj7 = 0 ;
37126 PyObject * obj8 = 0 ;
37127 char * kwnames[] = {
37128 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37129 };
37130
37131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
37132 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37133 if (!SWIG_IsOK(res1)) {
37134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GenericDirCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
37135 }
37136 arg1 = reinterpret_cast< wxWindow * >(argp1);
37137 if (obj1) {
37138 ecode2 = SWIG_AsVal_int(obj1, &val2);
37139 if (!SWIG_IsOK(ecode2)) {
37140 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GenericDirCtrl" "', expected argument " "2"" of type '" "int""'");
37141 }
37142 arg2 = static_cast< int >(val2);
37143 }
37144 if (obj2) {
37145 {
37146 arg3 = wxString_in_helper(obj2);
37147 if (arg3 == NULL) SWIG_fail;
37148 temp3 = true;
37149 }
37150 }
37151 if (obj3) {
37152 {
37153 arg4 = &temp4;
37154 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
37155 }
37156 }
37157 if (obj4) {
37158 {
37159 arg5 = &temp5;
37160 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
37161 }
37162 }
37163 if (obj5) {
37164 ecode6 = SWIG_AsVal_long(obj5, &val6);
37165 if (!SWIG_IsOK(ecode6)) {
37166 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GenericDirCtrl" "', expected argument " "6"" of type '" "long""'");
37167 }
37168 arg6 = static_cast< long >(val6);
37169 }
37170 if (obj6) {
37171 {
37172 arg7 = wxString_in_helper(obj6);
37173 if (arg7 == NULL) SWIG_fail;
37174 temp7 = true;
37175 }
37176 }
37177 if (obj7) {
37178 ecode8 = SWIG_AsVal_int(obj7, &val8);
37179 if (!SWIG_IsOK(ecode8)) {
37180 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_GenericDirCtrl" "', expected argument " "8"" of type '" "int""'");
37181 }
37182 arg8 = static_cast< int >(val8);
37183 }
37184 if (obj8) {
37185 {
37186 arg9 = wxString_in_helper(obj8);
37187 if (arg9 == NULL) SWIG_fail;
37188 temp9 = true;
37189 }
37190 }
37191 {
37192 if (!wxPyCheckForApp()) SWIG_fail;
37193 PyThreadState* __tstate = wxPyBeginAllowThreads();
37194 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
37195 wxPyEndAllowThreads(__tstate);
37196 if (PyErr_Occurred()) SWIG_fail;
37197 }
37198 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_NEW | 0 );
37199 {
37200 if (temp3)
37201 delete arg3;
37202 }
37203 {
37204 if (temp7)
37205 delete arg7;
37206 }
37207 {
37208 if (temp9)
37209 delete arg9;
37210 }
37211 return resultobj;
37212 fail:
37213 {
37214 if (temp3)
37215 delete arg3;
37216 }
37217 {
37218 if (temp7)
37219 delete arg7;
37220 }
37221 {
37222 if (temp9)
37223 delete arg9;
37224 }
37225 return NULL;
37226 }
37227
37228
37229 SWIGINTERN PyObject *_wrap_new_PreGenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37230 PyObject *resultobj = 0;
37231 wxGenericDirCtrl *result = 0 ;
37232
37233 if (!SWIG_Python_UnpackTuple(args,"new_PreGenericDirCtrl",0,0,0)) SWIG_fail;
37234 {
37235 if (!wxPyCheckForApp()) SWIG_fail;
37236 PyThreadState* __tstate = wxPyBeginAllowThreads();
37237 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
37238 wxPyEndAllowThreads(__tstate);
37239 if (PyErr_Occurred()) SWIG_fail;
37240 }
37241 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_OWN | 0 );
37242 return resultobj;
37243 fail:
37244 return NULL;
37245 }
37246
37247
37248 SWIGINTERN PyObject *_wrap_GenericDirCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37249 PyObject *resultobj = 0;
37250 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37251 wxWindow *arg2 = (wxWindow *) 0 ;
37252 int arg3 = (int) (int)-1 ;
37253 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
37254 wxString *arg4 = (wxString *) &arg4_defvalue ;
37255 wxPoint const &arg5_defvalue = wxDefaultPosition ;
37256 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
37257 wxSize const &arg6_defvalue = wxDefaultSize ;
37258 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
37259 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37260 wxString const &arg8_defvalue = wxPyEmptyString ;
37261 wxString *arg8 = (wxString *) &arg8_defvalue ;
37262 int arg9 = (int) 0 ;
37263 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
37264 wxString *arg10 = (wxString *) &arg10_defvalue ;
37265 bool result;
37266 void *argp1 = 0 ;
37267 int res1 = 0 ;
37268 void *argp2 = 0 ;
37269 int res2 = 0 ;
37270 int val3 ;
37271 int ecode3 = 0 ;
37272 bool temp4 = false ;
37273 wxPoint temp5 ;
37274 wxSize temp6 ;
37275 long val7 ;
37276 int ecode7 = 0 ;
37277 bool temp8 = false ;
37278 int val9 ;
37279 int ecode9 = 0 ;
37280 bool temp10 = false ;
37281 PyObject * obj0 = 0 ;
37282 PyObject * obj1 = 0 ;
37283 PyObject * obj2 = 0 ;
37284 PyObject * obj3 = 0 ;
37285 PyObject * obj4 = 0 ;
37286 PyObject * obj5 = 0 ;
37287 PyObject * obj6 = 0 ;
37288 PyObject * obj7 = 0 ;
37289 PyObject * obj8 = 0 ;
37290 PyObject * obj9 = 0 ;
37291 char * kwnames[] = {
37292 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37293 };
37294
37295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
37296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37297 if (!SWIG_IsOK(res1)) {
37298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_Create" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37299 }
37300 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37301 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
37302 if (!SWIG_IsOK(res2)) {
37303 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
37304 }
37305 arg2 = reinterpret_cast< wxWindow * >(argp2);
37306 if (obj2) {
37307 ecode3 = SWIG_AsVal_int(obj2, &val3);
37308 if (!SWIG_IsOK(ecode3)) {
37309 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GenericDirCtrl_Create" "', expected argument " "3"" of type '" "int""'");
37310 }
37311 arg3 = static_cast< int >(val3);
37312 }
37313 if (obj3) {
37314 {
37315 arg4 = wxString_in_helper(obj3);
37316 if (arg4 == NULL) SWIG_fail;
37317 temp4 = true;
37318 }
37319 }
37320 if (obj4) {
37321 {
37322 arg5 = &temp5;
37323 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
37324 }
37325 }
37326 if (obj5) {
37327 {
37328 arg6 = &temp6;
37329 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
37330 }
37331 }
37332 if (obj6) {
37333 ecode7 = SWIG_AsVal_long(obj6, &val7);
37334 if (!SWIG_IsOK(ecode7)) {
37335 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GenericDirCtrl_Create" "', expected argument " "7"" of type '" "long""'");
37336 }
37337 arg7 = static_cast< long >(val7);
37338 }
37339 if (obj7) {
37340 {
37341 arg8 = wxString_in_helper(obj7);
37342 if (arg8 == NULL) SWIG_fail;
37343 temp8 = true;
37344 }
37345 }
37346 if (obj8) {
37347 ecode9 = SWIG_AsVal_int(obj8, &val9);
37348 if (!SWIG_IsOK(ecode9)) {
37349 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "GenericDirCtrl_Create" "', expected argument " "9"" of type '" "int""'");
37350 }
37351 arg9 = static_cast< int >(val9);
37352 }
37353 if (obj9) {
37354 {
37355 arg10 = wxString_in_helper(obj9);
37356 if (arg10 == NULL) SWIG_fail;
37357 temp10 = true;
37358 }
37359 }
37360 {
37361 PyThreadState* __tstate = wxPyBeginAllowThreads();
37362 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
37363 wxPyEndAllowThreads(__tstate);
37364 if (PyErr_Occurred()) SWIG_fail;
37365 }
37366 {
37367 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37368 }
37369 {
37370 if (temp4)
37371 delete arg4;
37372 }
37373 {
37374 if (temp8)
37375 delete arg8;
37376 }
37377 {
37378 if (temp10)
37379 delete arg10;
37380 }
37381 return resultobj;
37382 fail:
37383 {
37384 if (temp4)
37385 delete arg4;
37386 }
37387 {
37388 if (temp8)
37389 delete arg8;
37390 }
37391 {
37392 if (temp10)
37393 delete arg10;
37394 }
37395 return NULL;
37396 }
37397
37398
37399 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37400 PyObject *resultobj = 0;
37401 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37402 wxString *arg2 = 0 ;
37403 bool result;
37404 void *argp1 = 0 ;
37405 int res1 = 0 ;
37406 bool temp2 = false ;
37407 PyObject * obj0 = 0 ;
37408 PyObject * obj1 = 0 ;
37409 char * kwnames[] = {
37410 (char *) "self",(char *) "path", NULL
37411 };
37412
37413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) SWIG_fail;
37414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37415 if (!SWIG_IsOK(res1)) {
37416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ExpandPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37417 }
37418 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37419 {
37420 arg2 = wxString_in_helper(obj1);
37421 if (arg2 == NULL) SWIG_fail;
37422 temp2 = true;
37423 }
37424 {
37425 PyThreadState* __tstate = wxPyBeginAllowThreads();
37426 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
37427 wxPyEndAllowThreads(__tstate);
37428 if (PyErr_Occurred()) SWIG_fail;
37429 }
37430 {
37431 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37432 }
37433 {
37434 if (temp2)
37435 delete arg2;
37436 }
37437 return resultobj;
37438 fail:
37439 {
37440 if (temp2)
37441 delete arg2;
37442 }
37443 return NULL;
37444 }
37445
37446
37447 SWIGINTERN PyObject *_wrap_GenericDirCtrl_CollapsePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37448 PyObject *resultobj = 0;
37449 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37450 wxString *arg2 = 0 ;
37451 bool result;
37452 void *argp1 = 0 ;
37453 int res1 = 0 ;
37454 bool temp2 = false ;
37455 PyObject * obj0 = 0 ;
37456 PyObject * obj1 = 0 ;
37457 char * kwnames[] = {
37458 (char *) "self",(char *) "path", NULL
37459 };
37460
37461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_CollapsePath",kwnames,&obj0,&obj1)) SWIG_fail;
37462 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37463 if (!SWIG_IsOK(res1)) {
37464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_CollapsePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37465 }
37466 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37467 {
37468 arg2 = wxString_in_helper(obj1);
37469 if (arg2 == NULL) SWIG_fail;
37470 temp2 = true;
37471 }
37472 {
37473 PyThreadState* __tstate = wxPyBeginAllowThreads();
37474 result = (bool)(arg1)->CollapsePath((wxString const &)*arg2);
37475 wxPyEndAllowThreads(__tstate);
37476 if (PyErr_Occurred()) SWIG_fail;
37477 }
37478 {
37479 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37480 }
37481 {
37482 if (temp2)
37483 delete arg2;
37484 }
37485 return resultobj;
37486 fail:
37487 {
37488 if (temp2)
37489 delete arg2;
37490 }
37491 return NULL;
37492 }
37493
37494
37495 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37496 PyObject *resultobj = 0;
37497 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37498 wxString result;
37499 void *argp1 = 0 ;
37500 int res1 = 0 ;
37501 PyObject *swig_obj[1] ;
37502
37503 if (!args) SWIG_fail;
37504 swig_obj[0] = args;
37505 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37506 if (!SWIG_IsOK(res1)) {
37507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37508 }
37509 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37510 {
37511 PyThreadState* __tstate = wxPyBeginAllowThreads();
37512 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
37513 wxPyEndAllowThreads(__tstate);
37514 if (PyErr_Occurred()) SWIG_fail;
37515 }
37516 {
37517 #if wxUSE_UNICODE
37518 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37519 #else
37520 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37521 #endif
37522 }
37523 return resultobj;
37524 fail:
37525 return NULL;
37526 }
37527
37528
37529 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37530 PyObject *resultobj = 0;
37531 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37532 wxString *arg2 = 0 ;
37533 void *argp1 = 0 ;
37534 int res1 = 0 ;
37535 bool temp2 = false ;
37536 PyObject * obj0 = 0 ;
37537 PyObject * obj1 = 0 ;
37538 char * kwnames[] = {
37539 (char *) "self",(char *) "path", NULL
37540 };
37541
37542 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) SWIG_fail;
37543 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37544 if (!SWIG_IsOK(res1)) {
37545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37546 }
37547 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37548 {
37549 arg2 = wxString_in_helper(obj1);
37550 if (arg2 == NULL) SWIG_fail;
37551 temp2 = true;
37552 }
37553 {
37554 PyThreadState* __tstate = wxPyBeginAllowThreads();
37555 (arg1)->SetDefaultPath((wxString const &)*arg2);
37556 wxPyEndAllowThreads(__tstate);
37557 if (PyErr_Occurred()) SWIG_fail;
37558 }
37559 resultobj = SWIG_Py_Void();
37560 {
37561 if (temp2)
37562 delete arg2;
37563 }
37564 return resultobj;
37565 fail:
37566 {
37567 if (temp2)
37568 delete arg2;
37569 }
37570 return NULL;
37571 }
37572
37573
37574 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37575 PyObject *resultobj = 0;
37576 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37577 wxString result;
37578 void *argp1 = 0 ;
37579 int res1 = 0 ;
37580 PyObject *swig_obj[1] ;
37581
37582 if (!args) SWIG_fail;
37583 swig_obj[0] = args;
37584 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37585 if (!SWIG_IsOK(res1)) {
37586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37587 }
37588 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37589 {
37590 PyThreadState* __tstate = wxPyBeginAllowThreads();
37591 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
37592 wxPyEndAllowThreads(__tstate);
37593 if (PyErr_Occurred()) SWIG_fail;
37594 }
37595 {
37596 #if wxUSE_UNICODE
37597 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37598 #else
37599 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37600 #endif
37601 }
37602 return resultobj;
37603 fail:
37604 return NULL;
37605 }
37606
37607
37608 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37609 PyObject *resultobj = 0;
37610 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37611 wxString result;
37612 void *argp1 = 0 ;
37613 int res1 = 0 ;
37614 PyObject *swig_obj[1] ;
37615
37616 if (!args) SWIG_fail;
37617 swig_obj[0] = args;
37618 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37619 if (!SWIG_IsOK(res1)) {
37620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37621 }
37622 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37623 {
37624 PyThreadState* __tstate = wxPyBeginAllowThreads();
37625 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
37626 wxPyEndAllowThreads(__tstate);
37627 if (PyErr_Occurred()) SWIG_fail;
37628 }
37629 {
37630 #if wxUSE_UNICODE
37631 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37632 #else
37633 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37634 #endif
37635 }
37636 return resultobj;
37637 fail:
37638 return NULL;
37639 }
37640
37641
37642 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37643 PyObject *resultobj = 0;
37644 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37645 wxString *arg2 = 0 ;
37646 void *argp1 = 0 ;
37647 int res1 = 0 ;
37648 bool temp2 = false ;
37649 PyObject * obj0 = 0 ;
37650 PyObject * obj1 = 0 ;
37651 char * kwnames[] = {
37652 (char *) "self",(char *) "path", NULL
37653 };
37654
37655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
37656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37657 if (!SWIG_IsOK(res1)) {
37658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37659 }
37660 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37661 {
37662 arg2 = wxString_in_helper(obj1);
37663 if (arg2 == NULL) SWIG_fail;
37664 temp2 = true;
37665 }
37666 {
37667 PyThreadState* __tstate = wxPyBeginAllowThreads();
37668 (arg1)->SetPath((wxString const &)*arg2);
37669 wxPyEndAllowThreads(__tstate);
37670 if (PyErr_Occurred()) SWIG_fail;
37671 }
37672 resultobj = SWIG_Py_Void();
37673 {
37674 if (temp2)
37675 delete arg2;
37676 }
37677 return resultobj;
37678 fail:
37679 {
37680 if (temp2)
37681 delete arg2;
37682 }
37683 return NULL;
37684 }
37685
37686
37687 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37688 PyObject *resultobj = 0;
37689 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37690 bool arg2 ;
37691 void *argp1 = 0 ;
37692 int res1 = 0 ;
37693 bool val2 ;
37694 int ecode2 = 0 ;
37695 PyObject * obj0 = 0 ;
37696 PyObject * obj1 = 0 ;
37697 char * kwnames[] = {
37698 (char *) "self",(char *) "show", NULL
37699 };
37700
37701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) SWIG_fail;
37702 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37703 if (!SWIG_IsOK(res1)) {
37704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37705 }
37706 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37707 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37708 if (!SWIG_IsOK(ecode2)) {
37709 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "2"" of type '" "bool""'");
37710 }
37711 arg2 = static_cast< bool >(val2);
37712 {
37713 PyThreadState* __tstate = wxPyBeginAllowThreads();
37714 (arg1)->ShowHidden(arg2);
37715 wxPyEndAllowThreads(__tstate);
37716 if (PyErr_Occurred()) SWIG_fail;
37717 }
37718 resultobj = SWIG_Py_Void();
37719 return resultobj;
37720 fail:
37721 return NULL;
37722 }
37723
37724
37725 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37726 PyObject *resultobj = 0;
37727 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37728 bool result;
37729 void *argp1 = 0 ;
37730 int res1 = 0 ;
37731 PyObject *swig_obj[1] ;
37732
37733 if (!args) SWIG_fail;
37734 swig_obj[0] = args;
37735 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37736 if (!SWIG_IsOK(res1)) {
37737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37738 }
37739 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37740 {
37741 PyThreadState* __tstate = wxPyBeginAllowThreads();
37742 result = (bool)(arg1)->GetShowHidden();
37743 wxPyEndAllowThreads(__tstate);
37744 if (PyErr_Occurred()) SWIG_fail;
37745 }
37746 {
37747 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37748 }
37749 return resultobj;
37750 fail:
37751 return NULL;
37752 }
37753
37754
37755 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37756 PyObject *resultobj = 0;
37757 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37758 wxString result;
37759 void *argp1 = 0 ;
37760 int res1 = 0 ;
37761 PyObject *swig_obj[1] ;
37762
37763 if (!args) SWIG_fail;
37764 swig_obj[0] = args;
37765 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37766 if (!SWIG_IsOK(res1)) {
37767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37768 }
37769 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37770 {
37771 PyThreadState* __tstate = wxPyBeginAllowThreads();
37772 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
37773 wxPyEndAllowThreads(__tstate);
37774 if (PyErr_Occurred()) SWIG_fail;
37775 }
37776 {
37777 #if wxUSE_UNICODE
37778 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37779 #else
37780 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37781 #endif
37782 }
37783 return resultobj;
37784 fail:
37785 return NULL;
37786 }
37787
37788
37789 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37790 PyObject *resultobj = 0;
37791 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37792 wxString *arg2 = 0 ;
37793 void *argp1 = 0 ;
37794 int res1 = 0 ;
37795 bool temp2 = false ;
37796 PyObject * obj0 = 0 ;
37797 PyObject * obj1 = 0 ;
37798 char * kwnames[] = {
37799 (char *) "self",(char *) "filter", NULL
37800 };
37801
37802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) SWIG_fail;
37803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37804 if (!SWIG_IsOK(res1)) {
37805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37806 }
37807 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37808 {
37809 arg2 = wxString_in_helper(obj1);
37810 if (arg2 == NULL) SWIG_fail;
37811 temp2 = true;
37812 }
37813 {
37814 PyThreadState* __tstate = wxPyBeginAllowThreads();
37815 (arg1)->SetFilter((wxString const &)*arg2);
37816 wxPyEndAllowThreads(__tstate);
37817 if (PyErr_Occurred()) SWIG_fail;
37818 }
37819 resultobj = SWIG_Py_Void();
37820 {
37821 if (temp2)
37822 delete arg2;
37823 }
37824 return resultobj;
37825 fail:
37826 {
37827 if (temp2)
37828 delete arg2;
37829 }
37830 return NULL;
37831 }
37832
37833
37834 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37835 PyObject *resultobj = 0;
37836 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37837 int result;
37838 void *argp1 = 0 ;
37839 int res1 = 0 ;
37840 PyObject *swig_obj[1] ;
37841
37842 if (!args) SWIG_fail;
37843 swig_obj[0] = args;
37844 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37845 if (!SWIG_IsOK(res1)) {
37846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37847 }
37848 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37849 {
37850 PyThreadState* __tstate = wxPyBeginAllowThreads();
37851 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
37852 wxPyEndAllowThreads(__tstate);
37853 if (PyErr_Occurred()) SWIG_fail;
37854 }
37855 resultobj = SWIG_From_int(static_cast< int >(result));
37856 return resultobj;
37857 fail:
37858 return NULL;
37859 }
37860
37861
37862 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37863 PyObject *resultobj = 0;
37864 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37865 int arg2 ;
37866 void *argp1 = 0 ;
37867 int res1 = 0 ;
37868 int val2 ;
37869 int ecode2 = 0 ;
37870 PyObject * obj0 = 0 ;
37871 PyObject * obj1 = 0 ;
37872 char * kwnames[] = {
37873 (char *) "self",(char *) "n", NULL
37874 };
37875
37876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail;
37877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37878 if (!SWIG_IsOK(res1)) {
37879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37880 }
37881 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37882 ecode2 = SWIG_AsVal_int(obj1, &val2);
37883 if (!SWIG_IsOK(ecode2)) {
37884 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "2"" of type '" "int""'");
37885 }
37886 arg2 = static_cast< int >(val2);
37887 {
37888 PyThreadState* __tstate = wxPyBeginAllowThreads();
37889 (arg1)->SetFilterIndex(arg2);
37890 wxPyEndAllowThreads(__tstate);
37891 if (PyErr_Occurred()) SWIG_fail;
37892 }
37893 resultobj = SWIG_Py_Void();
37894 return resultobj;
37895 fail:
37896 return NULL;
37897 }
37898
37899
37900 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37901 PyObject *resultobj = 0;
37902 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37903 wxTreeItemId result;
37904 void *argp1 = 0 ;
37905 int res1 = 0 ;
37906 PyObject *swig_obj[1] ;
37907
37908 if (!args) SWIG_fail;
37909 swig_obj[0] = args;
37910 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37911 if (!SWIG_IsOK(res1)) {
37912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetRootId" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37913 }
37914 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37915 {
37916 PyThreadState* __tstate = wxPyBeginAllowThreads();
37917 result = (arg1)->GetRootId();
37918 wxPyEndAllowThreads(__tstate);
37919 if (PyErr_Occurred()) SWIG_fail;
37920 }
37921 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37922 return resultobj;
37923 fail:
37924 return NULL;
37925 }
37926
37927
37928 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37929 PyObject *resultobj = 0;
37930 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37931 wxPyTreeCtrl *result = 0 ;
37932 void *argp1 = 0 ;
37933 int res1 = 0 ;
37934 PyObject *swig_obj[1] ;
37935
37936 if (!args) SWIG_fail;
37937 swig_obj[0] = args;
37938 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37939 if (!SWIG_IsOK(res1)) {
37940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetTreeCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37941 }
37942 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37943 {
37944 PyThreadState* __tstate = wxPyBeginAllowThreads();
37945 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
37946 wxPyEndAllowThreads(__tstate);
37947 if (PyErr_Occurred()) SWIG_fail;
37948 }
37949 {
37950 resultobj = wxPyMake_wxObject(result, 0);
37951 }
37952 return resultobj;
37953 fail:
37954 return NULL;
37955 }
37956
37957
37958 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37959 PyObject *resultobj = 0;
37960 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37961 wxDirFilterListCtrl *result = 0 ;
37962 void *argp1 = 0 ;
37963 int res1 = 0 ;
37964 PyObject *swig_obj[1] ;
37965
37966 if (!args) SWIG_fail;
37967 swig_obj[0] = args;
37968 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37969 if (!SWIG_IsOK(res1)) {
37970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37971 }
37972 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37973 {
37974 PyThreadState* __tstate = wxPyBeginAllowThreads();
37975 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
37976 wxPyEndAllowThreads(__tstate);
37977 if (PyErr_Occurred()) SWIG_fail;
37978 }
37979 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
37980 return resultobj;
37981 fail:
37982 return NULL;
37983 }
37984
37985
37986 SWIGINTERN PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37987 PyObject *resultobj = 0;
37988 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37989 wxTreeItemId arg2 ;
37990 wxString *arg3 = 0 ;
37991 bool *arg4 = 0 ;
37992 wxTreeItemId result;
37993 void *argp1 = 0 ;
37994 int res1 = 0 ;
37995 void *argp2 ;
37996 int res2 = 0 ;
37997 bool temp3 = false ;
37998 bool temp4 ;
37999 int res4 = SWIG_TMPOBJ ;
38000 PyObject * obj0 = 0 ;
38001 PyObject * obj1 = 0 ;
38002 PyObject * obj2 = 0 ;
38003 char * kwnames[] = {
38004 (char *) "self",(char *) "parentId",(char *) "path", NULL
38005 };
38006
38007 arg4 = &temp4;
38008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38010 if (!SWIG_IsOK(res1)) {
38011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38012 }
38013 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38014 {
38015 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
38016 if (!SWIG_IsOK(res2)) {
38017 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38018 }
38019 if (!argp2) {
38020 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38021 } else {
38022 wxTreeItemId * temp = reinterpret_cast< wxTreeItemId * >(argp2);
38023 arg2 = *temp;
38024 if (SWIG_IsNewObj(res2)) delete temp;
38025 }
38026 }
38027 {
38028 arg3 = wxString_in_helper(obj2);
38029 if (arg3 == NULL) SWIG_fail;
38030 temp3 = true;
38031 }
38032 {
38033 PyThreadState* __tstate = wxPyBeginAllowThreads();
38034 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
38035 wxPyEndAllowThreads(__tstate);
38036 if (PyErr_Occurred()) SWIG_fail;
38037 }
38038 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38039 if (SWIG_IsTmpObj(res4)) {
38040 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4)));
38041 } else {
38042 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38043 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags));
38044 }
38045 {
38046 if (temp3)
38047 delete arg3;
38048 }
38049 return resultobj;
38050 fail:
38051 {
38052 if (temp3)
38053 delete arg3;
38054 }
38055 return NULL;
38056 }
38057
38058
38059 SWIGINTERN PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38060 PyObject *resultobj = 0;
38061 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38062 void *argp1 = 0 ;
38063 int res1 = 0 ;
38064 PyObject *swig_obj[1] ;
38065
38066 if (!args) SWIG_fail;
38067 swig_obj[0] = args;
38068 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38069 if (!SWIG_IsOK(res1)) {
38070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_DoResize" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38071 }
38072 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38073 {
38074 PyThreadState* __tstate = wxPyBeginAllowThreads();
38075 (arg1)->DoResize();
38076 wxPyEndAllowThreads(__tstate);
38077 if (PyErr_Occurred()) SWIG_fail;
38078 }
38079 resultobj = SWIG_Py_Void();
38080 return resultobj;
38081 fail:
38082 return NULL;
38083 }
38084
38085
38086 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38087 PyObject *resultobj = 0;
38088 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38089 void *argp1 = 0 ;
38090 int res1 = 0 ;
38091 PyObject *swig_obj[1] ;
38092
38093 if (!args) SWIG_fail;
38094 swig_obj[0] = args;
38095 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38096 if (!SWIG_IsOK(res1)) {
38097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ReCreateTree" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38098 }
38099 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38100 {
38101 PyThreadState* __tstate = wxPyBeginAllowThreads();
38102 (arg1)->ReCreateTree();
38103 wxPyEndAllowThreads(__tstate);
38104 if (PyErr_Occurred()) SWIG_fail;
38105 }
38106 resultobj = SWIG_Py_Void();
38107 return resultobj;
38108 fail:
38109 return NULL;
38110 }
38111
38112
38113 SWIGINTERN PyObject *GenericDirCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38114 PyObject *obj;
38115 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38116 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDirCtrl, SWIG_NewClientData(obj));
38117 return SWIG_Py_Void();
38118 }
38119
38120 SWIGINTERN PyObject *GenericDirCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38121 return SWIG_Python_InitShadowInstance(args);
38122 }
38123
38124 SWIGINTERN PyObject *_wrap_new_DirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38125 PyObject *resultobj = 0;
38126 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38127 int arg2 = (int) (int)-1 ;
38128 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38129 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38130 wxSize const &arg4_defvalue = wxDefaultSize ;
38131 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38132 long arg5 = (long) 0 ;
38133 wxDirFilterListCtrl *result = 0 ;
38134 void *argp1 = 0 ;
38135 int res1 = 0 ;
38136 int val2 ;
38137 int ecode2 = 0 ;
38138 wxPoint temp3 ;
38139 wxSize temp4 ;
38140 long val5 ;
38141 int ecode5 = 0 ;
38142 PyObject * obj0 = 0 ;
38143 PyObject * obj1 = 0 ;
38144 PyObject * obj2 = 0 ;
38145 PyObject * obj3 = 0 ;
38146 PyObject * obj4 = 0 ;
38147 char * kwnames[] = {
38148 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38149 };
38150
38151 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38152 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38153 if (!SWIG_IsOK(res1)) {
38154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38155 }
38156 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38157 if (obj1) {
38158 ecode2 = SWIG_AsVal_int(obj1, &val2);
38159 if (!SWIG_IsOK(ecode2)) {
38160 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirFilterListCtrl" "', expected argument " "2"" of type '" "int""'");
38161 }
38162 arg2 = static_cast< int >(val2);
38163 }
38164 if (obj2) {
38165 {
38166 arg3 = &temp3;
38167 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38168 }
38169 }
38170 if (obj3) {
38171 {
38172 arg4 = &temp4;
38173 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
38174 }
38175 }
38176 if (obj4) {
38177 ecode5 = SWIG_AsVal_long(obj4, &val5);
38178 if (!SWIG_IsOK(ecode5)) {
38179 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DirFilterListCtrl" "', expected argument " "5"" of type '" "long""'");
38180 }
38181 arg5 = static_cast< long >(val5);
38182 }
38183 {
38184 if (!wxPyCheckForApp()) SWIG_fail;
38185 PyThreadState* __tstate = wxPyBeginAllowThreads();
38186 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
38187 wxPyEndAllowThreads(__tstate);
38188 if (PyErr_Occurred()) SWIG_fail;
38189 }
38190 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_NEW | 0 );
38191 return resultobj;
38192 fail:
38193 return NULL;
38194 }
38195
38196
38197 SWIGINTERN PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38198 PyObject *resultobj = 0;
38199 wxDirFilterListCtrl *result = 0 ;
38200
38201 if (!SWIG_Python_UnpackTuple(args,"new_PreDirFilterListCtrl",0,0,0)) SWIG_fail;
38202 {
38203 if (!wxPyCheckForApp()) SWIG_fail;
38204 PyThreadState* __tstate = wxPyBeginAllowThreads();
38205 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
38206 wxPyEndAllowThreads(__tstate);
38207 if (PyErr_Occurred()) SWIG_fail;
38208 }
38209 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_OWN | 0 );
38210 return resultobj;
38211 fail:
38212 return NULL;
38213 }
38214
38215
38216 SWIGINTERN PyObject *_wrap_DirFilterListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38217 PyObject *resultobj = 0;
38218 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38219 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
38220 int arg3 = (int) (int)-1 ;
38221 wxPoint const &arg4_defvalue = wxDefaultPosition ;
38222 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
38223 wxSize const &arg5_defvalue = wxDefaultSize ;
38224 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
38225 long arg6 = (long) 0 ;
38226 bool result;
38227 void *argp1 = 0 ;
38228 int res1 = 0 ;
38229 void *argp2 = 0 ;
38230 int res2 = 0 ;
38231 int val3 ;
38232 int ecode3 = 0 ;
38233 wxPoint temp4 ;
38234 wxSize temp5 ;
38235 long val6 ;
38236 int ecode6 = 0 ;
38237 PyObject * obj0 = 0 ;
38238 PyObject * obj1 = 0 ;
38239 PyObject * obj2 = 0 ;
38240 PyObject * obj3 = 0 ;
38241 PyObject * obj4 = 0 ;
38242 PyObject * obj5 = 0 ;
38243 char * kwnames[] = {
38244 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38245 };
38246
38247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38249 if (!SWIG_IsOK(res1)) {
38250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_Create" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38251 }
38252 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38253 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38254 if (!SWIG_IsOK(res2)) {
38255 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirFilterListCtrl_Create" "', expected argument " "2"" of type '" "wxGenericDirCtrl *""'");
38256 }
38257 arg2 = reinterpret_cast< wxGenericDirCtrl * >(argp2);
38258 if (obj2) {
38259 ecode3 = SWIG_AsVal_int(obj2, &val3);
38260 if (!SWIG_IsOK(ecode3)) {
38261 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
38262 }
38263 arg3 = static_cast< int >(val3);
38264 }
38265 if (obj3) {
38266 {
38267 arg4 = &temp4;
38268 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
38269 }
38270 }
38271 if (obj4) {
38272 {
38273 arg5 = &temp5;
38274 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
38275 }
38276 }
38277 if (obj5) {
38278 ecode6 = SWIG_AsVal_long(obj5, &val6);
38279 if (!SWIG_IsOK(ecode6)) {
38280 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DirFilterListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
38281 }
38282 arg6 = static_cast< long >(val6);
38283 }
38284 {
38285 PyThreadState* __tstate = wxPyBeginAllowThreads();
38286 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
38287 wxPyEndAllowThreads(__tstate);
38288 if (PyErr_Occurred()) SWIG_fail;
38289 }
38290 {
38291 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38292 }
38293 return resultobj;
38294 fail:
38295 return NULL;
38296 }
38297
38298
38299 SWIGINTERN PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38300 PyObject *resultobj = 0;
38301 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38302 wxString *arg2 = 0 ;
38303 int arg3 ;
38304 void *argp1 = 0 ;
38305 int res1 = 0 ;
38306 bool temp2 = false ;
38307 int val3 ;
38308 int ecode3 = 0 ;
38309 PyObject * obj0 = 0 ;
38310 PyObject * obj1 = 0 ;
38311 PyObject * obj2 = 0 ;
38312 char * kwnames[] = {
38313 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
38314 };
38315
38316 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38317 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38318 if (!SWIG_IsOK(res1)) {
38319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38320 }
38321 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38322 {
38323 arg2 = wxString_in_helper(obj1);
38324 if (arg2 == NULL) SWIG_fail;
38325 temp2 = true;
38326 }
38327 ecode3 = SWIG_AsVal_int(obj2, &val3);
38328 if (!SWIG_IsOK(ecode3)) {
38329 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "3"" of type '" "int""'");
38330 }
38331 arg3 = static_cast< int >(val3);
38332 {
38333 PyThreadState* __tstate = wxPyBeginAllowThreads();
38334 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
38335 wxPyEndAllowThreads(__tstate);
38336 if (PyErr_Occurred()) SWIG_fail;
38337 }
38338 resultobj = SWIG_Py_Void();
38339 {
38340 if (temp2)
38341 delete arg2;
38342 }
38343 return resultobj;
38344 fail:
38345 {
38346 if (temp2)
38347 delete arg2;
38348 }
38349 return NULL;
38350 }
38351
38352
38353 SWIGINTERN PyObject *DirFilterListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38354 PyObject *obj;
38355 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38356 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirFilterListCtrl, SWIG_NewClientData(obj));
38357 return SWIG_Py_Void();
38358 }
38359
38360 SWIGINTERN PyObject *DirFilterListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38361 return SWIG_Python_InitShadowInstance(args);
38362 }
38363
38364 SWIGINTERN PyObject *_wrap_new_PyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38365 PyObject *resultobj = 0;
38366 wxWindow *arg1 = (wxWindow *) 0 ;
38367 int arg2 = (int) (int)-1 ;
38368 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38369 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38370 wxSize const &arg4_defvalue = wxDefaultSize ;
38371 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38372 long arg5 = (long) 0 ;
38373 wxValidator const &arg6_defvalue = wxDefaultValidator ;
38374 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
38375 wxString const &arg7_defvalue = wxPyControlNameStr ;
38376 wxString *arg7 = (wxString *) &arg7_defvalue ;
38377 wxPyControl *result = 0 ;
38378 void *argp1 = 0 ;
38379 int res1 = 0 ;
38380 int val2 ;
38381 int ecode2 = 0 ;
38382 wxPoint temp3 ;
38383 wxSize temp4 ;
38384 long val5 ;
38385 int ecode5 = 0 ;
38386 void *argp6 = 0 ;
38387 int res6 = 0 ;
38388 bool temp7 = false ;
38389 PyObject * obj0 = 0 ;
38390 PyObject * obj1 = 0 ;
38391 PyObject * obj2 = 0 ;
38392 PyObject * obj3 = 0 ;
38393 PyObject * obj4 = 0 ;
38394 PyObject * obj5 = 0 ;
38395 PyObject * obj6 = 0 ;
38396 char * kwnames[] = {
38397 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
38398 };
38399
38400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
38401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38402 if (!SWIG_IsOK(res1)) {
38403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyControl" "', expected argument " "1"" of type '" "wxWindow *""'");
38404 }
38405 arg1 = reinterpret_cast< wxWindow * >(argp1);
38406 if (obj1) {
38407 ecode2 = SWIG_AsVal_int(obj1, &val2);
38408 if (!SWIG_IsOK(ecode2)) {
38409 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyControl" "', expected argument " "2"" of type '" "int""'");
38410 }
38411 arg2 = static_cast< int >(val2);
38412 }
38413 if (obj2) {
38414 {
38415 arg3 = &temp3;
38416 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38417 }
38418 }
38419 if (obj3) {
38420 {
38421 arg4 = &temp4;
38422 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
38423 }
38424 }
38425 if (obj4) {
38426 ecode5 = SWIG_AsVal_long(obj4, &val5);
38427 if (!SWIG_IsOK(ecode5)) {
38428 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyControl" "', expected argument " "5"" of type '" "long""'");
38429 }
38430 arg5 = static_cast< long >(val5);
38431 }
38432 if (obj5) {
38433 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
38434 if (!SWIG_IsOK(res6)) {
38435 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
38436 }
38437 if (!argp6) {
38438 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
38439 }
38440 arg6 = reinterpret_cast< wxValidator * >(argp6);
38441 }
38442 if (obj6) {
38443 {
38444 arg7 = wxString_in_helper(obj6);
38445 if (arg7 == NULL) SWIG_fail;
38446 temp7 = true;
38447 }
38448 }
38449 {
38450 if (!wxPyCheckForApp()) SWIG_fail;
38451 PyThreadState* __tstate = wxPyBeginAllowThreads();
38452 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
38453 wxPyEndAllowThreads(__tstate);
38454 if (PyErr_Occurred()) SWIG_fail;
38455 }
38456 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_NEW | 0 );
38457 {
38458 if (temp7)
38459 delete arg7;
38460 }
38461 return resultobj;
38462 fail:
38463 {
38464 if (temp7)
38465 delete arg7;
38466 }
38467 return NULL;
38468 }
38469
38470
38471 SWIGINTERN PyObject *_wrap_new_PrePyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38472 PyObject *resultobj = 0;
38473 wxPyControl *result = 0 ;
38474
38475 if (!SWIG_Python_UnpackTuple(args,"new_PrePyControl",0,0,0)) SWIG_fail;
38476 {
38477 if (!wxPyCheckForApp()) SWIG_fail;
38478 PyThreadState* __tstate = wxPyBeginAllowThreads();
38479 result = (wxPyControl *)new wxPyControl();
38480 wxPyEndAllowThreads(__tstate);
38481 if (PyErr_Occurred()) SWIG_fail;
38482 }
38483 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_OWN | 0 );
38484 return resultobj;
38485 fail:
38486 return NULL;
38487 }
38488
38489
38490 SWIGINTERN PyObject *_wrap_PyControl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38491 PyObject *resultobj = 0;
38492 wxPyControl *arg1 = (wxPyControl *) 0 ;
38493 PyObject *arg2 = (PyObject *) 0 ;
38494 PyObject *arg3 = (PyObject *) 0 ;
38495 void *argp1 = 0 ;
38496 int res1 = 0 ;
38497 PyObject * obj0 = 0 ;
38498 PyObject * obj1 = 0 ;
38499 PyObject * obj2 = 0 ;
38500 char * kwnames[] = {
38501 (char *) "self",(char *) "self",(char *) "_class", NULL
38502 };
38503
38504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38506 if (!SWIG_IsOK(res1)) {
38507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyControl *""'");
38508 }
38509 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38510 arg2 = obj1;
38511 arg3 = obj2;
38512 {
38513 PyThreadState* __tstate = wxPyBeginAllowThreads();
38514 (arg1)->_setCallbackInfo(arg2,arg3);
38515 wxPyEndAllowThreads(__tstate);
38516 if (PyErr_Occurred()) SWIG_fail;
38517 }
38518 resultobj = SWIG_Py_Void();
38519 return resultobj;
38520 fail:
38521 return NULL;
38522 }
38523
38524
38525 SWIGINTERN PyObject *_wrap_PyControl_SetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38526 PyObject *resultobj = 0;
38527 wxPyControl *arg1 = (wxPyControl *) 0 ;
38528 wxSize *arg2 = 0 ;
38529 void *argp1 = 0 ;
38530 int res1 = 0 ;
38531 wxSize temp2 ;
38532 PyObject * obj0 = 0 ;
38533 PyObject * obj1 = 0 ;
38534 char * kwnames[] = {
38535 (char *) "self",(char *) "size", NULL
38536 };
38537
38538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
38539 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38540 if (!SWIG_IsOK(res1)) {
38541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_SetBestSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38542 }
38543 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38544 {
38545 arg2 = &temp2;
38546 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
38547 }
38548 {
38549 PyThreadState* __tstate = wxPyBeginAllowThreads();
38550 (arg1)->SetBestSize((wxSize const &)*arg2);
38551 wxPyEndAllowThreads(__tstate);
38552 if (PyErr_Occurred()) SWIG_fail;
38553 }
38554 resultobj = SWIG_Py_Void();
38555 return resultobj;
38556 fail:
38557 return NULL;
38558 }
38559
38560
38561 SWIGINTERN PyObject *_wrap_PyControl_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38562 PyObject *resultobj = 0;
38563 wxPyControl *arg1 = (wxPyControl *) 0 ;
38564 wxDC *arg2 = (wxDC *) 0 ;
38565 bool result;
38566 void *argp1 = 0 ;
38567 int res1 = 0 ;
38568 void *argp2 = 0 ;
38569 int res2 = 0 ;
38570 PyObject * obj0 = 0 ;
38571 PyObject * obj1 = 0 ;
38572 char * kwnames[] = {
38573 (char *) "self",(char *) "dc", NULL
38574 };
38575
38576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38578 if (!SWIG_IsOK(res1)) {
38579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyControl *""'");
38580 }
38581 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38582 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
38583 if (!SWIG_IsOK(res2)) {
38584 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyControl_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'");
38585 }
38586 arg2 = reinterpret_cast< wxDC * >(argp2);
38587 {
38588 PyThreadState* __tstate = wxPyBeginAllowThreads();
38589 result = (bool)(arg1)->DoEraseBackground(arg2);
38590 wxPyEndAllowThreads(__tstate);
38591 if (PyErr_Occurred()) SWIG_fail;
38592 }
38593 {
38594 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38595 }
38596 return resultobj;
38597 fail:
38598 return NULL;
38599 }
38600
38601
38602 SWIGINTERN PyObject *_wrap_PyControl_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38603 PyObject *resultobj = 0;
38604 wxPyControl *arg1 = (wxPyControl *) 0 ;
38605 int arg2 ;
38606 int arg3 ;
38607 int arg4 ;
38608 int arg5 ;
38609 void *argp1 = 0 ;
38610 int res1 = 0 ;
38611 int val2 ;
38612 int ecode2 = 0 ;
38613 int val3 ;
38614 int ecode3 = 0 ;
38615 int val4 ;
38616 int ecode4 = 0 ;
38617 int val5 ;
38618 int ecode5 = 0 ;
38619 PyObject * obj0 = 0 ;
38620 PyObject * obj1 = 0 ;
38621 PyObject * obj2 = 0 ;
38622 PyObject * obj3 = 0 ;
38623 PyObject * obj4 = 0 ;
38624 char * kwnames[] = {
38625 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
38626 };
38627
38628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38630 if (!SWIG_IsOK(res1)) {
38631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyControl *""'");
38632 }
38633 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38634 ecode2 = SWIG_AsVal_int(obj1, &val2);
38635 if (!SWIG_IsOK(ecode2)) {
38636 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoMoveWindow" "', expected argument " "2"" of type '" "int""'");
38637 }
38638 arg2 = static_cast< int >(val2);
38639 ecode3 = SWIG_AsVal_int(obj2, &val3);
38640 if (!SWIG_IsOK(ecode3)) {
38641 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoMoveWindow" "', expected argument " "3"" of type '" "int""'");
38642 }
38643 arg3 = static_cast< int >(val3);
38644 ecode4 = SWIG_AsVal_int(obj3, &val4);
38645 if (!SWIG_IsOK(ecode4)) {
38646 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoMoveWindow" "', expected argument " "4"" of type '" "int""'");
38647 }
38648 arg4 = static_cast< int >(val4);
38649 ecode5 = SWIG_AsVal_int(obj4, &val5);
38650 if (!SWIG_IsOK(ecode5)) {
38651 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoMoveWindow" "', expected argument " "5"" of type '" "int""'");
38652 }
38653 arg5 = static_cast< int >(val5);
38654 {
38655 PyThreadState* __tstate = wxPyBeginAllowThreads();
38656 (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5);
38657 wxPyEndAllowThreads(__tstate);
38658 if (PyErr_Occurred()) SWIG_fail;
38659 }
38660 resultobj = SWIG_Py_Void();
38661 return resultobj;
38662 fail:
38663 return NULL;
38664 }
38665
38666
38667 SWIGINTERN PyObject *_wrap_PyControl_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38668 PyObject *resultobj = 0;
38669 wxPyControl *arg1 = (wxPyControl *) 0 ;
38670 int arg2 ;
38671 int arg3 ;
38672 int arg4 ;
38673 int arg5 ;
38674 int arg6 = (int) wxSIZE_AUTO ;
38675 void *argp1 = 0 ;
38676 int res1 = 0 ;
38677 int val2 ;
38678 int ecode2 = 0 ;
38679 int val3 ;
38680 int ecode3 = 0 ;
38681 int val4 ;
38682 int ecode4 = 0 ;
38683 int val5 ;
38684 int ecode5 = 0 ;
38685 int val6 ;
38686 int ecode6 = 0 ;
38687 PyObject * obj0 = 0 ;
38688 PyObject * obj1 = 0 ;
38689 PyObject * obj2 = 0 ;
38690 PyObject * obj3 = 0 ;
38691 PyObject * obj4 = 0 ;
38692 PyObject * obj5 = 0 ;
38693 char * kwnames[] = {
38694 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
38695 };
38696
38697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38699 if (!SWIG_IsOK(res1)) {
38700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38701 }
38702 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38703 ecode2 = SWIG_AsVal_int(obj1, &val2);
38704 if (!SWIG_IsOK(ecode2)) {
38705 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetSize" "', expected argument " "2"" of type '" "int""'");
38706 }
38707 arg2 = static_cast< int >(val2);
38708 ecode3 = SWIG_AsVal_int(obj2, &val3);
38709 if (!SWIG_IsOK(ecode3)) {
38710 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetSize" "', expected argument " "3"" of type '" "int""'");
38711 }
38712 arg3 = static_cast< int >(val3);
38713 ecode4 = SWIG_AsVal_int(obj3, &val4);
38714 if (!SWIG_IsOK(ecode4)) {
38715 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoSetSize" "', expected argument " "4"" of type '" "int""'");
38716 }
38717 arg4 = static_cast< int >(val4);
38718 ecode5 = SWIG_AsVal_int(obj4, &val5);
38719 if (!SWIG_IsOK(ecode5)) {
38720 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoSetSize" "', expected argument " "5"" of type '" "int""'");
38721 }
38722 arg5 = static_cast< int >(val5);
38723 if (obj5) {
38724 ecode6 = SWIG_AsVal_int(obj5, &val6);
38725 if (!SWIG_IsOK(ecode6)) {
38726 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyControl_DoSetSize" "', expected argument " "6"" of type '" "int""'");
38727 }
38728 arg6 = static_cast< int >(val6);
38729 }
38730 {
38731 PyThreadState* __tstate = wxPyBeginAllowThreads();
38732 (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6);
38733 wxPyEndAllowThreads(__tstate);
38734 if (PyErr_Occurred()) SWIG_fail;
38735 }
38736 resultobj = SWIG_Py_Void();
38737 return resultobj;
38738 fail:
38739 return NULL;
38740 }
38741
38742
38743 SWIGINTERN PyObject *_wrap_PyControl_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38744 PyObject *resultobj = 0;
38745 wxPyControl *arg1 = (wxPyControl *) 0 ;
38746 int arg2 ;
38747 int arg3 ;
38748 void *argp1 = 0 ;
38749 int res1 = 0 ;
38750 int val2 ;
38751 int ecode2 = 0 ;
38752 int val3 ;
38753 int ecode3 = 0 ;
38754 PyObject * obj0 = 0 ;
38755 PyObject * obj1 = 0 ;
38756 PyObject * obj2 = 0 ;
38757 char * kwnames[] = {
38758 (char *) "self",(char *) "width",(char *) "height", NULL
38759 };
38760
38761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38763 if (!SWIG_IsOK(res1)) {
38764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38765 }
38766 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38767 ecode2 = SWIG_AsVal_int(obj1, &val2);
38768 if (!SWIG_IsOK(ecode2)) {
38769 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetClientSize" "', expected argument " "2"" of type '" "int""'");
38770 }
38771 arg2 = static_cast< int >(val2);
38772 ecode3 = SWIG_AsVal_int(obj2, &val3);
38773 if (!SWIG_IsOK(ecode3)) {
38774 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetClientSize" "', expected argument " "3"" of type '" "int""'");
38775 }
38776 arg3 = static_cast< int >(val3);
38777 {
38778 PyThreadState* __tstate = wxPyBeginAllowThreads();
38779 (arg1)->DoSetClientSize(arg2,arg3);
38780 wxPyEndAllowThreads(__tstate);
38781 if (PyErr_Occurred()) SWIG_fail;
38782 }
38783 resultobj = SWIG_Py_Void();
38784 return resultobj;
38785 fail:
38786 return NULL;
38787 }
38788
38789
38790 SWIGINTERN PyObject *_wrap_PyControl_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38791 PyObject *resultobj = 0;
38792 wxPyControl *arg1 = (wxPyControl *) 0 ;
38793 int arg2 ;
38794 int arg3 ;
38795 void *argp1 = 0 ;
38796 int res1 = 0 ;
38797 int val2 ;
38798 int ecode2 = 0 ;
38799 int val3 ;
38800 int ecode3 = 0 ;
38801 PyObject * obj0 = 0 ;
38802 PyObject * obj1 = 0 ;
38803 PyObject * obj2 = 0 ;
38804 char * kwnames[] = {
38805 (char *) "self",(char *) "x",(char *) "y", NULL
38806 };
38807
38808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38809 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38810 if (!SWIG_IsOK(res1)) {
38811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38812 }
38813 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38814 ecode2 = SWIG_AsVal_int(obj1, &val2);
38815 if (!SWIG_IsOK(ecode2)) {
38816 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'");
38817 }
38818 arg2 = static_cast< int >(val2);
38819 ecode3 = SWIG_AsVal_int(obj2, &val3);
38820 if (!SWIG_IsOK(ecode3)) {
38821 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'");
38822 }
38823 arg3 = static_cast< int >(val3);
38824 {
38825 PyThreadState* __tstate = wxPyBeginAllowThreads();
38826 (arg1)->DoSetVirtualSize(arg2,arg3);
38827 wxPyEndAllowThreads(__tstate);
38828 if (PyErr_Occurred()) SWIG_fail;
38829 }
38830 resultobj = SWIG_Py_Void();
38831 return resultobj;
38832 fail:
38833 return NULL;
38834 }
38835
38836
38837 SWIGINTERN PyObject *_wrap_PyControl_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38838 PyObject *resultobj = 0;
38839 wxPyControl *arg1 = (wxPyControl *) 0 ;
38840 int *arg2 = (int *) 0 ;
38841 int *arg3 = (int *) 0 ;
38842 void *argp1 = 0 ;
38843 int res1 = 0 ;
38844 int temp2 ;
38845 int res2 = SWIG_TMPOBJ ;
38846 int temp3 ;
38847 int res3 = SWIG_TMPOBJ ;
38848 PyObject *swig_obj[1] ;
38849
38850 arg2 = &temp2;
38851 arg3 = &temp3;
38852 if (!args) SWIG_fail;
38853 swig_obj[0] = args;
38854 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38855 if (!SWIG_IsOK(res1)) {
38856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38857 }
38858 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38859 {
38860 PyThreadState* __tstate = wxPyBeginAllowThreads();
38861 ((wxPyControl const *)arg1)->DoGetSize(arg2,arg3);
38862 wxPyEndAllowThreads(__tstate);
38863 if (PyErr_Occurred()) SWIG_fail;
38864 }
38865 resultobj = SWIG_Py_Void();
38866 if (SWIG_IsTmpObj(res2)) {
38867 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38868 } else {
38869 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38870 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38871 }
38872 if (SWIG_IsTmpObj(res3)) {
38873 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38874 } else {
38875 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38876 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38877 }
38878 return resultobj;
38879 fail:
38880 return NULL;
38881 }
38882
38883
38884 SWIGINTERN PyObject *_wrap_PyControl_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38885 PyObject *resultobj = 0;
38886 wxPyControl *arg1 = (wxPyControl *) 0 ;
38887 int *arg2 = (int *) 0 ;
38888 int *arg3 = (int *) 0 ;
38889 void *argp1 = 0 ;
38890 int res1 = 0 ;
38891 int temp2 ;
38892 int res2 = SWIG_TMPOBJ ;
38893 int temp3 ;
38894 int res3 = SWIG_TMPOBJ ;
38895 PyObject *swig_obj[1] ;
38896
38897 arg2 = &temp2;
38898 arg3 = &temp3;
38899 if (!args) SWIG_fail;
38900 swig_obj[0] = args;
38901 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38902 if (!SWIG_IsOK(res1)) {
38903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38904 }
38905 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38906 {
38907 PyThreadState* __tstate = wxPyBeginAllowThreads();
38908 ((wxPyControl const *)arg1)->DoGetClientSize(arg2,arg3);
38909 wxPyEndAllowThreads(__tstate);
38910 if (PyErr_Occurred()) SWIG_fail;
38911 }
38912 resultobj = SWIG_Py_Void();
38913 if (SWIG_IsTmpObj(res2)) {
38914 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38915 } else {
38916 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38917 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38918 }
38919 if (SWIG_IsTmpObj(res3)) {
38920 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38921 } else {
38922 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38923 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38924 }
38925 return resultobj;
38926 fail:
38927 return NULL;
38928 }
38929
38930
38931 SWIGINTERN PyObject *_wrap_PyControl_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38932 PyObject *resultobj = 0;
38933 wxPyControl *arg1 = (wxPyControl *) 0 ;
38934 int *arg2 = (int *) 0 ;
38935 int *arg3 = (int *) 0 ;
38936 void *argp1 = 0 ;
38937 int res1 = 0 ;
38938 int temp2 ;
38939 int res2 = SWIG_TMPOBJ ;
38940 int temp3 ;
38941 int res3 = SWIG_TMPOBJ ;
38942 PyObject *swig_obj[1] ;
38943
38944 arg2 = &temp2;
38945 arg3 = &temp3;
38946 if (!args) SWIG_fail;
38947 swig_obj[0] = args;
38948 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38949 if (!SWIG_IsOK(res1)) {
38950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetPosition" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38951 }
38952 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38953 {
38954 PyThreadState* __tstate = wxPyBeginAllowThreads();
38955 ((wxPyControl const *)arg1)->DoGetPosition(arg2,arg3);
38956 wxPyEndAllowThreads(__tstate);
38957 if (PyErr_Occurred()) SWIG_fail;
38958 }
38959 resultobj = SWIG_Py_Void();
38960 if (SWIG_IsTmpObj(res2)) {
38961 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38962 } else {
38963 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38964 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38965 }
38966 if (SWIG_IsTmpObj(res3)) {
38967 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38968 } else {
38969 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38970 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38971 }
38972 return resultobj;
38973 fail:
38974 return NULL;
38975 }
38976
38977
38978 SWIGINTERN PyObject *_wrap_PyControl_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38979 PyObject *resultobj = 0;
38980 wxPyControl *arg1 = (wxPyControl *) 0 ;
38981 wxSize result;
38982 void *argp1 = 0 ;
38983 int res1 = 0 ;
38984 PyObject *swig_obj[1] ;
38985
38986 if (!args) SWIG_fail;
38987 swig_obj[0] = args;
38988 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38989 if (!SWIG_IsOK(res1)) {
38990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38991 }
38992 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38993 {
38994 PyThreadState* __tstate = wxPyBeginAllowThreads();
38995 result = ((wxPyControl const *)arg1)->DoGetVirtualSize();
38996 wxPyEndAllowThreads(__tstate);
38997 if (PyErr_Occurred()) SWIG_fail;
38998 }
38999 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39000 return resultobj;
39001 fail:
39002 return NULL;
39003 }
39004
39005
39006 SWIGINTERN PyObject *_wrap_PyControl_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39007 PyObject *resultobj = 0;
39008 wxPyControl *arg1 = (wxPyControl *) 0 ;
39009 wxSize result;
39010 void *argp1 = 0 ;
39011 int res1 = 0 ;
39012 PyObject *swig_obj[1] ;
39013
39014 if (!args) SWIG_fail;
39015 swig_obj[0] = args;
39016 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39017 if (!SWIG_IsOK(res1)) {
39018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39019 }
39020 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39021 {
39022 PyThreadState* __tstate = wxPyBeginAllowThreads();
39023 result = ((wxPyControl const *)arg1)->DoGetBestSize();
39024 wxPyEndAllowThreads(__tstate);
39025 if (PyErr_Occurred()) SWIG_fail;
39026 }
39027 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39028 return resultobj;
39029 fail:
39030 return NULL;
39031 }
39032
39033
39034 SWIGINTERN PyObject *_wrap_PyControl_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39035 PyObject *resultobj = 0;
39036 wxPyControl *arg1 = (wxPyControl *) 0 ;
39037 SwigValueWrapper<wxVisualAttributes > result;
39038 void *argp1 = 0 ;
39039 int res1 = 0 ;
39040 PyObject *swig_obj[1] ;
39041
39042 if (!args) SWIG_fail;
39043 swig_obj[0] = args;
39044 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39045 if (!SWIG_IsOK(res1)) {
39046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyControl *""'");
39047 }
39048 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39049 {
39050 PyThreadState* __tstate = wxPyBeginAllowThreads();
39051 result = (arg1)->GetDefaultAttributes();
39052 wxPyEndAllowThreads(__tstate);
39053 if (PyErr_Occurred()) SWIG_fail;
39054 }
39055 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
39056 return resultobj;
39057 fail:
39058 return NULL;
39059 }
39060
39061
39062 SWIGINTERN PyObject *_wrap_PyControl_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39063 PyObject *resultobj = 0;
39064 wxPyControl *arg1 = (wxPyControl *) 0 ;
39065 void *argp1 = 0 ;
39066 int res1 = 0 ;
39067 PyObject *swig_obj[1] ;
39068
39069 if (!args) SWIG_fail;
39070 swig_obj[0] = args;
39071 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39072 if (!SWIG_IsOK(res1)) {
39073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyControl *""'");
39074 }
39075 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39076 {
39077 PyThreadState* __tstate = wxPyBeginAllowThreads();
39078 (arg1)->OnInternalIdle();
39079 wxPyEndAllowThreads(__tstate);
39080 if (PyErr_Occurred()) SWIG_fail;
39081 }
39082 resultobj = SWIG_Py_Void();
39083 return resultobj;
39084 fail:
39085 return NULL;
39086 }
39087
39088
39089 SWIGINTERN PyObject *PyControl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39090 PyObject *obj;
39091 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39092 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyControl, SWIG_NewClientData(obj));
39093 return SWIG_Py_Void();
39094 }
39095
39096 SWIGINTERN PyObject *PyControl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39097 return SWIG_Python_InitShadowInstance(args);
39098 }
39099
39100 SWIGINTERN PyObject *_wrap_new_HelpEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39101 PyObject *resultobj = 0;
39102 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
39103 int arg2 = (int) 0 ;
39104 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39105 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39106 wxHelpEvent::Origin arg4 = (wxHelpEvent::Origin) wxHelpEvent::Origin_Unknown ;
39107 wxHelpEvent *result = 0 ;
39108 int val1 ;
39109 int ecode1 = 0 ;
39110 int val2 ;
39111 int ecode2 = 0 ;
39112 wxPoint temp3 ;
39113 int val4 ;
39114 int ecode4 = 0 ;
39115 PyObject * obj0 = 0 ;
39116 PyObject * obj1 = 0 ;
39117 PyObject * obj2 = 0 ;
39118 PyObject * obj3 = 0 ;
39119 char * kwnames[] = {
39120 (char *) "type",(char *) "winid",(char *) "pt",(char *) "origin", NULL
39121 };
39122
39123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
39124 if (obj0) {
39125 ecode1 = SWIG_AsVal_int(obj0, &val1);
39126 if (!SWIG_IsOK(ecode1)) {
39127 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HelpEvent" "', expected argument " "1"" of type '" "wxEventType""'");
39128 }
39129 arg1 = static_cast< wxEventType >(val1);
39130 }
39131 if (obj1) {
39132 ecode2 = SWIG_AsVal_int(obj1, &val2);
39133 if (!SWIG_IsOK(ecode2)) {
39134 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HelpEvent" "', expected argument " "2"" of type '" "int""'");
39135 }
39136 arg2 = static_cast< int >(val2);
39137 }
39138 if (obj2) {
39139 {
39140 arg3 = &temp3;
39141 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
39142 }
39143 }
39144 if (obj3) {
39145 ecode4 = SWIG_AsVal_int(obj3, &val4);
39146 if (!SWIG_IsOK(ecode4)) {
39147 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_HelpEvent" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
39148 }
39149 arg4 = static_cast< wxHelpEvent::Origin >(val4);
39150 }
39151 {
39152 PyThreadState* __tstate = wxPyBeginAllowThreads();
39153 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3,arg4);
39154 wxPyEndAllowThreads(__tstate);
39155 if (PyErr_Occurred()) SWIG_fail;
39156 }
39157 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_NEW | 0 );
39158 return resultobj;
39159 fail:
39160 return NULL;
39161 }
39162
39163
39164 SWIGINTERN PyObject *_wrap_HelpEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39165 PyObject *resultobj = 0;
39166 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39167 wxPoint result;
39168 void *argp1 = 0 ;
39169 int res1 = 0 ;
39170 PyObject *swig_obj[1] ;
39171
39172 if (!args) SWIG_fail;
39173 swig_obj[0] = args;
39174 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39175 if (!SWIG_IsOK(res1)) {
39176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetPosition" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39177 }
39178 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39179 {
39180 PyThreadState* __tstate = wxPyBeginAllowThreads();
39181 result = ((wxHelpEvent const *)arg1)->GetPosition();
39182 wxPyEndAllowThreads(__tstate);
39183 if (PyErr_Occurred()) SWIG_fail;
39184 }
39185 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
39186 return resultobj;
39187 fail:
39188 return NULL;
39189 }
39190
39191
39192 SWIGINTERN PyObject *_wrap_HelpEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39193 PyObject *resultobj = 0;
39194 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39195 wxPoint *arg2 = 0 ;
39196 void *argp1 = 0 ;
39197 int res1 = 0 ;
39198 wxPoint temp2 ;
39199 PyObject * obj0 = 0 ;
39200 PyObject * obj1 = 0 ;
39201 char * kwnames[] = {
39202 (char *) "self",(char *) "pos", NULL
39203 };
39204
39205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
39206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39207 if (!SWIG_IsOK(res1)) {
39208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetPosition" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39209 }
39210 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39211 {
39212 arg2 = &temp2;
39213 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39214 }
39215 {
39216 PyThreadState* __tstate = wxPyBeginAllowThreads();
39217 (arg1)->SetPosition((wxPoint const &)*arg2);
39218 wxPyEndAllowThreads(__tstate);
39219 if (PyErr_Occurred()) SWIG_fail;
39220 }
39221 resultobj = SWIG_Py_Void();
39222 return resultobj;
39223 fail:
39224 return NULL;
39225 }
39226
39227
39228 SWIGINTERN PyObject *_wrap_HelpEvent_GetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39229 PyObject *resultobj = 0;
39230 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39231 wxString *result = 0 ;
39232 void *argp1 = 0 ;
39233 int res1 = 0 ;
39234 PyObject *swig_obj[1] ;
39235
39236 if (!args) SWIG_fail;
39237 swig_obj[0] = args;
39238 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39239 if (!SWIG_IsOK(res1)) {
39240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetLink" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39241 }
39242 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39243 {
39244 PyThreadState* __tstate = wxPyBeginAllowThreads();
39245 {
39246 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
39247 result = (wxString *) &_result_ref;
39248 }
39249 wxPyEndAllowThreads(__tstate);
39250 if (PyErr_Occurred()) SWIG_fail;
39251 }
39252 {
39253 #if wxUSE_UNICODE
39254 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39255 #else
39256 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39257 #endif
39258 }
39259 return resultobj;
39260 fail:
39261 return NULL;
39262 }
39263
39264
39265 SWIGINTERN PyObject *_wrap_HelpEvent_SetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39266 PyObject *resultobj = 0;
39267 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39268 wxString *arg2 = 0 ;
39269 void *argp1 = 0 ;
39270 int res1 = 0 ;
39271 bool temp2 = false ;
39272 PyObject * obj0 = 0 ;
39273 PyObject * obj1 = 0 ;
39274 char * kwnames[] = {
39275 (char *) "self",(char *) "link", NULL
39276 };
39277
39278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) SWIG_fail;
39279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39280 if (!SWIG_IsOK(res1)) {
39281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetLink" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39282 }
39283 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39284 {
39285 arg2 = wxString_in_helper(obj1);
39286 if (arg2 == NULL) SWIG_fail;
39287 temp2 = true;
39288 }
39289 {
39290 PyThreadState* __tstate = wxPyBeginAllowThreads();
39291 (arg1)->SetLink((wxString const &)*arg2);
39292 wxPyEndAllowThreads(__tstate);
39293 if (PyErr_Occurred()) SWIG_fail;
39294 }
39295 resultobj = SWIG_Py_Void();
39296 {
39297 if (temp2)
39298 delete arg2;
39299 }
39300 return resultobj;
39301 fail:
39302 {
39303 if (temp2)
39304 delete arg2;
39305 }
39306 return NULL;
39307 }
39308
39309
39310 SWIGINTERN PyObject *_wrap_HelpEvent_GetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39311 PyObject *resultobj = 0;
39312 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39313 wxString *result = 0 ;
39314 void *argp1 = 0 ;
39315 int res1 = 0 ;
39316 PyObject *swig_obj[1] ;
39317
39318 if (!args) SWIG_fail;
39319 swig_obj[0] = args;
39320 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39321 if (!SWIG_IsOK(res1)) {
39322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetTarget" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39323 }
39324 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39325 {
39326 PyThreadState* __tstate = wxPyBeginAllowThreads();
39327 {
39328 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
39329 result = (wxString *) &_result_ref;
39330 }
39331 wxPyEndAllowThreads(__tstate);
39332 if (PyErr_Occurred()) SWIG_fail;
39333 }
39334 {
39335 #if wxUSE_UNICODE
39336 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39337 #else
39338 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39339 #endif
39340 }
39341 return resultobj;
39342 fail:
39343 return NULL;
39344 }
39345
39346
39347 SWIGINTERN PyObject *_wrap_HelpEvent_SetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39348 PyObject *resultobj = 0;
39349 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39350 wxString *arg2 = 0 ;
39351 void *argp1 = 0 ;
39352 int res1 = 0 ;
39353 bool temp2 = false ;
39354 PyObject * obj0 = 0 ;
39355 PyObject * obj1 = 0 ;
39356 char * kwnames[] = {
39357 (char *) "self",(char *) "target", NULL
39358 };
39359
39360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) SWIG_fail;
39361 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39362 if (!SWIG_IsOK(res1)) {
39363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetTarget" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39364 }
39365 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39366 {
39367 arg2 = wxString_in_helper(obj1);
39368 if (arg2 == NULL) SWIG_fail;
39369 temp2 = true;
39370 }
39371 {
39372 PyThreadState* __tstate = wxPyBeginAllowThreads();
39373 (arg1)->SetTarget((wxString const &)*arg2);
39374 wxPyEndAllowThreads(__tstate);
39375 if (PyErr_Occurred()) SWIG_fail;
39376 }
39377 resultobj = SWIG_Py_Void();
39378 {
39379 if (temp2)
39380 delete arg2;
39381 }
39382 return resultobj;
39383 fail:
39384 {
39385 if (temp2)
39386 delete arg2;
39387 }
39388 return NULL;
39389 }
39390
39391
39392 SWIGINTERN PyObject *_wrap_HelpEvent_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39393 PyObject *resultobj = 0;
39394 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39395 wxHelpEvent::Origin result;
39396 void *argp1 = 0 ;
39397 int res1 = 0 ;
39398 PyObject *swig_obj[1] ;
39399
39400 if (!args) SWIG_fail;
39401 swig_obj[0] = args;
39402 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39403 if (!SWIG_IsOK(res1)) {
39404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39405 }
39406 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39407 {
39408 PyThreadState* __tstate = wxPyBeginAllowThreads();
39409 result = (wxHelpEvent::Origin)((wxHelpEvent const *)arg1)->GetOrigin();
39410 wxPyEndAllowThreads(__tstate);
39411 if (PyErr_Occurred()) SWIG_fail;
39412 }
39413 resultobj = SWIG_From_int(static_cast< int >(result));
39414 return resultobj;
39415 fail:
39416 return NULL;
39417 }
39418
39419
39420 SWIGINTERN PyObject *_wrap_HelpEvent_SetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39421 PyObject *resultobj = 0;
39422 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39423 wxHelpEvent::Origin arg2 ;
39424 void *argp1 = 0 ;
39425 int res1 = 0 ;
39426 int val2 ;
39427 int ecode2 = 0 ;
39428 PyObject * obj0 = 0 ;
39429 PyObject * obj1 = 0 ;
39430 char * kwnames[] = {
39431 (char *) "self",(char *) "origin", NULL
39432 };
39433
39434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetOrigin",kwnames,&obj0,&obj1)) SWIG_fail;
39435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39436 if (!SWIG_IsOK(res1)) {
39437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39438 }
39439 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39440 ecode2 = SWIG_AsVal_int(obj1, &val2);
39441 if (!SWIG_IsOK(ecode2)) {
39442 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpEvent_SetOrigin" "', expected argument " "2"" of type '" "wxHelpEvent::Origin""'");
39443 }
39444 arg2 = static_cast< wxHelpEvent::Origin >(val2);
39445 {
39446 PyThreadState* __tstate = wxPyBeginAllowThreads();
39447 (arg1)->SetOrigin(arg2);
39448 wxPyEndAllowThreads(__tstate);
39449 if (PyErr_Occurred()) SWIG_fail;
39450 }
39451 resultobj = SWIG_Py_Void();
39452 return resultobj;
39453 fail:
39454 return NULL;
39455 }
39456
39457
39458 SWIGINTERN PyObject *HelpEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39459 PyObject *obj;
39460 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39461 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpEvent, SWIG_NewClientData(obj));
39462 return SWIG_Py_Void();
39463 }
39464
39465 SWIGINTERN PyObject *HelpEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39466 return SWIG_Python_InitShadowInstance(args);
39467 }
39468
39469 SWIGINTERN PyObject *_wrap_new_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39470 PyObject *resultobj = 0;
39471 wxWindow *arg1 = (wxWindow *) NULL ;
39472 bool arg2 = (bool) true ;
39473 wxContextHelp *result = 0 ;
39474 void *argp1 = 0 ;
39475 int res1 = 0 ;
39476 bool val2 ;
39477 int ecode2 = 0 ;
39478 PyObject * obj0 = 0 ;
39479 PyObject * obj1 = 0 ;
39480 char * kwnames[] = {
39481 (char *) "window",(char *) "doNow", NULL
39482 };
39483
39484 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39485 if (obj0) {
39486 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39487 if (!SWIG_IsOK(res1)) {
39488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelp" "', expected argument " "1"" of type '" "wxWindow *""'");
39489 }
39490 arg1 = reinterpret_cast< wxWindow * >(argp1);
39491 }
39492 if (obj1) {
39493 ecode2 = SWIG_AsVal_bool(obj1, &val2);
39494 if (!SWIG_IsOK(ecode2)) {
39495 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelp" "', expected argument " "2"" of type '" "bool""'");
39496 }
39497 arg2 = static_cast< bool >(val2);
39498 }
39499 {
39500 if (!wxPyCheckForApp()) SWIG_fail;
39501 PyThreadState* __tstate = wxPyBeginAllowThreads();
39502 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
39503 wxPyEndAllowThreads(__tstate);
39504 if (PyErr_Occurred()) SWIG_fail;
39505 }
39506 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelp, SWIG_POINTER_NEW | 0 );
39507 return resultobj;
39508 fail:
39509 return NULL;
39510 }
39511
39512
39513 SWIGINTERN PyObject *_wrap_delete_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39514 PyObject *resultobj = 0;
39515 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39516 void *argp1 = 0 ;
39517 int res1 = 0 ;
39518 PyObject *swig_obj[1] ;
39519
39520 if (!args) SWIG_fail;
39521 swig_obj[0] = args;
39522 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, SWIG_POINTER_DISOWN | 0 );
39523 if (!SWIG_IsOK(res1)) {
39524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39525 }
39526 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39527 {
39528 PyThreadState* __tstate = wxPyBeginAllowThreads();
39529 delete arg1;
39530
39531 wxPyEndAllowThreads(__tstate);
39532 if (PyErr_Occurred()) SWIG_fail;
39533 }
39534 resultobj = SWIG_Py_Void();
39535 return resultobj;
39536 fail:
39537 return NULL;
39538 }
39539
39540
39541 SWIGINTERN PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39542 PyObject *resultobj = 0;
39543 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39544 wxWindow *arg2 = (wxWindow *) NULL ;
39545 bool result;
39546 void *argp1 = 0 ;
39547 int res1 = 0 ;
39548 void *argp2 = 0 ;
39549 int res2 = 0 ;
39550 PyObject * obj0 = 0 ;
39551 PyObject * obj1 = 0 ;
39552 char * kwnames[] = {
39553 (char *) "self",(char *) "window", NULL
39554 };
39555
39556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39558 if (!SWIG_IsOK(res1)) {
39559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39560 }
39561 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39562 if (obj1) {
39563 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39564 if (!SWIG_IsOK(res2)) {
39565 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39566 }
39567 arg2 = reinterpret_cast< wxWindow * >(argp2);
39568 }
39569 {
39570 PyThreadState* __tstate = wxPyBeginAllowThreads();
39571 result = (bool)(arg1)->BeginContextHelp(arg2);
39572 wxPyEndAllowThreads(__tstate);
39573 if (PyErr_Occurred()) SWIG_fail;
39574 }
39575 {
39576 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39577 }
39578 return resultobj;
39579 fail:
39580 return NULL;
39581 }
39582
39583
39584 SWIGINTERN PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39585 PyObject *resultobj = 0;
39586 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39587 bool result;
39588 void *argp1 = 0 ;
39589 int res1 = 0 ;
39590 PyObject *swig_obj[1] ;
39591
39592 if (!args) SWIG_fail;
39593 swig_obj[0] = args;
39594 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39595 if (!SWIG_IsOK(res1)) {
39596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_EndContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39597 }
39598 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39599 {
39600 PyThreadState* __tstate = wxPyBeginAllowThreads();
39601 result = (bool)(arg1)->EndContextHelp();
39602 wxPyEndAllowThreads(__tstate);
39603 if (PyErr_Occurred()) SWIG_fail;
39604 }
39605 {
39606 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39607 }
39608 return resultobj;
39609 fail:
39610 return NULL;
39611 }
39612
39613
39614 SWIGINTERN PyObject *ContextHelp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39615 PyObject *obj;
39616 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39617 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelp, SWIG_NewClientData(obj));
39618 return SWIG_Py_Void();
39619 }
39620
39621 SWIGINTERN PyObject *ContextHelp_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39622 return SWIG_Python_InitShadowInstance(args);
39623 }
39624
39625 SWIGINTERN PyObject *_wrap_new_ContextHelpButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39626 PyObject *resultobj = 0;
39627 wxWindow *arg1 = (wxWindow *) 0 ;
39628 int arg2 = (int) wxID_CONTEXT_HELP ;
39629 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39630 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39631 wxSize const &arg4_defvalue = wxDefaultSize ;
39632 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
39633 long arg5 = (long) wxBU_AUTODRAW ;
39634 wxContextHelpButton *result = 0 ;
39635 void *argp1 = 0 ;
39636 int res1 = 0 ;
39637 int val2 ;
39638 int ecode2 = 0 ;
39639 wxPoint temp3 ;
39640 wxSize temp4 ;
39641 long val5 ;
39642 int ecode5 = 0 ;
39643 PyObject * obj0 = 0 ;
39644 PyObject * obj1 = 0 ;
39645 PyObject * obj2 = 0 ;
39646 PyObject * obj3 = 0 ;
39647 PyObject * obj4 = 0 ;
39648 char * kwnames[] = {
39649 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
39650 };
39651
39652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39653 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39654 if (!SWIG_IsOK(res1)) {
39655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelpButton" "', expected argument " "1"" of type '" "wxWindow *""'");
39656 }
39657 arg1 = reinterpret_cast< wxWindow * >(argp1);
39658 if (obj1) {
39659 ecode2 = SWIG_AsVal_int(obj1, &val2);
39660 if (!SWIG_IsOK(ecode2)) {
39661 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelpButton" "', expected argument " "2"" of type '" "int""'");
39662 }
39663 arg2 = static_cast< int >(val2);
39664 }
39665 if (obj2) {
39666 {
39667 arg3 = &temp3;
39668 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
39669 }
39670 }
39671 if (obj3) {
39672 {
39673 arg4 = &temp4;
39674 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
39675 }
39676 }
39677 if (obj4) {
39678 ecode5 = SWIG_AsVal_long(obj4, &val5);
39679 if (!SWIG_IsOK(ecode5)) {
39680 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ContextHelpButton" "', expected argument " "5"" of type '" "long""'");
39681 }
39682 arg5 = static_cast< long >(val5);
39683 }
39684 {
39685 if (!wxPyCheckForApp()) SWIG_fail;
39686 PyThreadState* __tstate = wxPyBeginAllowThreads();
39687 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
39688 wxPyEndAllowThreads(__tstate);
39689 if (PyErr_Occurred()) SWIG_fail;
39690 }
39691 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelpButton, SWIG_POINTER_NEW | 0 );
39692 return resultobj;
39693 fail:
39694 return NULL;
39695 }
39696
39697
39698 SWIGINTERN PyObject *ContextHelpButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39699 PyObject *obj;
39700 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39701 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelpButton, SWIG_NewClientData(obj));
39702 return SWIG_Py_Void();
39703 }
39704
39705 SWIGINTERN PyObject *ContextHelpButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39706 return SWIG_Python_InitShadowInstance(args);
39707 }
39708
39709 SWIGINTERN PyObject *_wrap_delete_HelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39710 PyObject *resultobj = 0;
39711 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39712 void *argp1 = 0 ;
39713 int res1 = 0 ;
39714 PyObject *swig_obj[1] ;
39715
39716 if (!args) SWIG_fail;
39717 swig_obj[0] = args;
39718 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
39719 if (!SWIG_IsOK(res1)) {
39720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HelpProvider" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39721 }
39722 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39723 {
39724 PyThreadState* __tstate = wxPyBeginAllowThreads();
39725 delete arg1;
39726
39727 wxPyEndAllowThreads(__tstate);
39728 if (PyErr_Occurred()) SWIG_fail;
39729 }
39730 resultobj = SWIG_Py_Void();
39731 return resultobj;
39732 fail:
39733 return NULL;
39734 }
39735
39736
39737 SWIGINTERN PyObject *_wrap_HelpProvider_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39738 PyObject *resultobj = 0;
39739 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39740 wxHelpProvider *result = 0 ;
39741 int res1 = 0 ;
39742 PyObject * obj0 = 0 ;
39743 char * kwnames[] = {
39744 (char *) "helpProvider", NULL
39745 };
39746
39747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) SWIG_fail;
39748 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
39749 if (!SWIG_IsOK(res1)) {
39750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Set" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39751 }
39752 {
39753 PyThreadState* __tstate = wxPyBeginAllowThreads();
39754 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
39755 wxPyEndAllowThreads(__tstate);
39756 if (PyErr_Occurred()) SWIG_fail;
39757 }
39758 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_OWN | 0 );
39759 return resultobj;
39760 fail:
39761 return NULL;
39762 }
39763
39764
39765 SWIGINTERN PyObject *_wrap_HelpProvider_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39766 PyObject *resultobj = 0;
39767 wxHelpProvider *result = 0 ;
39768
39769 if (!SWIG_Python_UnpackTuple(args,"HelpProvider_Get",0,0,0)) SWIG_fail;
39770 {
39771 PyThreadState* __tstate = wxPyBeginAllowThreads();
39772 result = (wxHelpProvider *)wxHelpProvider::Get();
39773 wxPyEndAllowThreads(__tstate);
39774 if (PyErr_Occurred()) SWIG_fail;
39775 }
39776 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39777 return resultobj;
39778 fail:
39779 return NULL;
39780 }
39781
39782
39783 SWIGINTERN PyObject *_wrap_HelpProvider_GetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39784 PyObject *resultobj = 0;
39785 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39786 wxWindow *arg2 = (wxWindow *) 0 ;
39787 wxString result;
39788 void *argp1 = 0 ;
39789 int res1 = 0 ;
39790 void *argp2 = 0 ;
39791 int res2 = 0 ;
39792 PyObject * obj0 = 0 ;
39793 PyObject * obj1 = 0 ;
39794 char * kwnames[] = {
39795 (char *) "self",(char *) "window", NULL
39796 };
39797
39798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39800 if (!SWIG_IsOK(res1)) {
39801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_GetHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39802 }
39803 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39804 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39805 if (!SWIG_IsOK(res2)) {
39806 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_GetHelp" "', expected argument " "2"" of type '" "wxWindow const *""'");
39807 }
39808 arg2 = reinterpret_cast< wxWindow * >(argp2);
39809 {
39810 PyThreadState* __tstate = wxPyBeginAllowThreads();
39811 result = (arg1)->GetHelp((wxWindow const *)arg2);
39812 wxPyEndAllowThreads(__tstate);
39813 if (PyErr_Occurred()) SWIG_fail;
39814 }
39815 {
39816 #if wxUSE_UNICODE
39817 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
39818 #else
39819 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
39820 #endif
39821 }
39822 return resultobj;
39823 fail:
39824 return NULL;
39825 }
39826
39827
39828 SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39829 PyObject *resultobj = 0;
39830 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39831 wxWindow *arg2 = (wxWindow *) 0 ;
39832 bool result;
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 *) "window", NULL
39841 };
39842
39843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39844 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39845 if (!SWIG_IsOK(res1)) {
39846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39847 }
39848 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39849 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39850 if (!SWIG_IsOK(res2)) {
39851 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39852 }
39853 arg2 = reinterpret_cast< wxWindow * >(argp2);
39854 {
39855 PyThreadState* __tstate = wxPyBeginAllowThreads();
39856 result = (bool)(arg1)->ShowHelp(arg2);
39857 wxPyEndAllowThreads(__tstate);
39858 if (PyErr_Occurred()) SWIG_fail;
39859 }
39860 {
39861 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39862 }
39863 return resultobj;
39864 fail:
39865 return NULL;
39866 }
39867
39868
39869 SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelpAtPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39870 PyObject *resultobj = 0;
39871 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39872 wxWindowBase *arg2 = (wxWindowBase *) 0 ;
39873 wxPoint *arg3 = 0 ;
39874 wxHelpEvent::Origin arg4 ;
39875 bool result;
39876 void *argp1 = 0 ;
39877 int res1 = 0 ;
39878 void *argp2 = 0 ;
39879 int res2 = 0 ;
39880 wxPoint temp3 ;
39881 int val4 ;
39882 int ecode4 = 0 ;
39883 PyObject * obj0 = 0 ;
39884 PyObject * obj1 = 0 ;
39885 PyObject * obj2 = 0 ;
39886 PyObject * obj3 = 0 ;
39887 char * kwnames[] = {
39888 (char *) "self",(char *) "window",(char *) "pt",(char *) "origin", NULL
39889 };
39890
39891 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:HelpProvider_ShowHelpAtPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
39892 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39893 if (!SWIG_IsOK(res1)) {
39894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39895 }
39896 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39897 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindowBase, 0 | 0 );
39898 if (!SWIG_IsOK(res2)) {
39899 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "2"" of type '" "wxWindowBase *""'");
39900 }
39901 arg2 = reinterpret_cast< wxWindowBase * >(argp2);
39902 {
39903 arg3 = &temp3;
39904 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
39905 }
39906 ecode4 = SWIG_AsVal_int(obj3, &val4);
39907 if (!SWIG_IsOK(ecode4)) {
39908 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
39909 }
39910 arg4 = static_cast< wxHelpEvent::Origin >(val4);
39911 {
39912 PyThreadState* __tstate = wxPyBeginAllowThreads();
39913 result = (bool)(arg1)->ShowHelpAtPoint(arg2,(wxPoint const &)*arg3,arg4);
39914 wxPyEndAllowThreads(__tstate);
39915 if (PyErr_Occurred()) SWIG_fail;
39916 }
39917 {
39918 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39919 }
39920 return resultobj;
39921 fail:
39922 return NULL;
39923 }
39924
39925
39926 SWIGINTERN PyObject *_wrap_HelpProvider_AddHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39927 PyObject *resultobj = 0;
39928 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39929 wxWindow *arg2 = (wxWindow *) 0 ;
39930 wxString *arg3 = 0 ;
39931 void *argp1 = 0 ;
39932 int res1 = 0 ;
39933 void *argp2 = 0 ;
39934 int res2 = 0 ;
39935 bool temp3 = false ;
39936 PyObject * obj0 = 0 ;
39937 PyObject * obj1 = 0 ;
39938 PyObject * obj2 = 0 ;
39939 char * kwnames[] = {
39940 (char *) "self",(char *) "window",(char *) "text", NULL
39941 };
39942
39943 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39944 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39945 if (!SWIG_IsOK(res1)) {
39946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39947 }
39948 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39949 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39950 if (!SWIG_IsOK(res2)) {
39951 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_AddHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39952 }
39953 arg2 = reinterpret_cast< wxWindow * >(argp2);
39954 {
39955 arg3 = wxString_in_helper(obj2);
39956 if (arg3 == NULL) SWIG_fail;
39957 temp3 = true;
39958 }
39959 {
39960 PyThreadState* __tstate = wxPyBeginAllowThreads();
39961 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
39962 wxPyEndAllowThreads(__tstate);
39963 if (PyErr_Occurred()) SWIG_fail;
39964 }
39965 resultobj = SWIG_Py_Void();
39966 {
39967 if (temp3)
39968 delete arg3;
39969 }
39970 return resultobj;
39971 fail:
39972 {
39973 if (temp3)
39974 delete arg3;
39975 }
39976 return NULL;
39977 }
39978
39979
39980 SWIGINTERN PyObject *_wrap_HelpProvider_AddHelpById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39981 PyObject *resultobj = 0;
39982 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39983 int arg2 ;
39984 wxString *arg3 = 0 ;
39985 void *argp1 = 0 ;
39986 int res1 = 0 ;
39987 int val2 ;
39988 int ecode2 = 0 ;
39989 bool temp3 = false ;
39990 PyObject * obj0 = 0 ;
39991 PyObject * obj1 = 0 ;
39992 PyObject * obj2 = 0 ;
39993 char * kwnames[] = {
39994 (char *) "self",(char *) "id",(char *) "text", NULL
39995 };
39996
39997 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39998 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39999 if (!SWIG_IsOK(res1)) {
40000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelpById" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40001 }
40002 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40003 ecode2 = SWIG_AsVal_int(obj1, &val2);
40004 if (!SWIG_IsOK(ecode2)) {
40005 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpProvider_AddHelpById" "', expected argument " "2"" of type '" "int""'");
40006 }
40007 arg2 = static_cast< int >(val2);
40008 {
40009 arg3 = wxString_in_helper(obj2);
40010 if (arg3 == NULL) SWIG_fail;
40011 temp3 = true;
40012 }
40013 {
40014 PyThreadState* __tstate = wxPyBeginAllowThreads();
40015 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40016 wxPyEndAllowThreads(__tstate);
40017 if (PyErr_Occurred()) SWIG_fail;
40018 }
40019 resultobj = SWIG_Py_Void();
40020 {
40021 if (temp3)
40022 delete arg3;
40023 }
40024 return resultobj;
40025 fail:
40026 {
40027 if (temp3)
40028 delete arg3;
40029 }
40030 return NULL;
40031 }
40032
40033
40034 SWIGINTERN PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40035 PyObject *resultobj = 0;
40036 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40037 wxWindow *arg2 = (wxWindow *) 0 ;
40038 void *argp1 = 0 ;
40039 int res1 = 0 ;
40040 void *argp2 = 0 ;
40041 int res2 = 0 ;
40042 PyObject * obj0 = 0 ;
40043 PyObject * obj1 = 0 ;
40044 char * kwnames[] = {
40045 (char *) "self",(char *) "window", NULL
40046 };
40047
40048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40050 if (!SWIG_IsOK(res1)) {
40051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40052 }
40053 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40054 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40055 if (!SWIG_IsOK(res2)) {
40056 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40057 }
40058 arg2 = reinterpret_cast< wxWindow * >(argp2);
40059 {
40060 PyThreadState* __tstate = wxPyBeginAllowThreads();
40061 (arg1)->RemoveHelp(arg2);
40062 wxPyEndAllowThreads(__tstate);
40063 if (PyErr_Occurred()) SWIG_fail;
40064 }
40065 resultobj = SWIG_Py_Void();
40066 return resultobj;
40067 fail:
40068 return NULL;
40069 }
40070
40071
40072 SWIGINTERN PyObject *_wrap_HelpProvider_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40073 PyObject *resultobj = 0;
40074 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40075 void *argp1 = 0 ;
40076 int res1 = 0 ;
40077 PyObject *swig_obj[1] ;
40078
40079 if (!args) SWIG_fail;
40080 swig_obj[0] = args;
40081 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40082 if (!SWIG_IsOK(res1)) {
40083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Destroy" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40084 }
40085 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40086 {
40087 PyThreadState* __tstate = wxPyBeginAllowThreads();
40088 wxHelpProvider_Destroy(arg1);
40089 wxPyEndAllowThreads(__tstate);
40090 if (PyErr_Occurred()) SWIG_fail;
40091 }
40092 resultobj = SWIG_Py_Void();
40093 return resultobj;
40094 fail:
40095 return NULL;
40096 }
40097
40098
40099 SWIGINTERN PyObject *HelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40100 PyObject *obj;
40101 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40102 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpProvider, SWIG_NewClientData(obj));
40103 return SWIG_Py_Void();
40104 }
40105
40106 SWIGINTERN PyObject *_wrap_new_SimpleHelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40107 PyObject *resultobj = 0;
40108 wxSimpleHelpProvider *result = 0 ;
40109
40110 if (!SWIG_Python_UnpackTuple(args,"new_SimpleHelpProvider",0,0,0)) SWIG_fail;
40111 {
40112 PyThreadState* __tstate = wxPyBeginAllowThreads();
40113 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
40114 wxPyEndAllowThreads(__tstate);
40115 if (PyErr_Occurred()) SWIG_fail;
40116 }
40117 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSimpleHelpProvider, SWIG_POINTER_NEW | 0 );
40118 return resultobj;
40119 fail:
40120 return NULL;
40121 }
40122
40123
40124 SWIGINTERN PyObject *SimpleHelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40125 PyObject *obj;
40126 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40127 SWIG_TypeNewClientData(SWIGTYPE_p_wxSimpleHelpProvider, SWIG_NewClientData(obj));
40128 return SWIG_Py_Void();
40129 }
40130
40131 SWIGINTERN PyObject *SimpleHelpProvider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40132 return SWIG_Python_InitShadowInstance(args);
40133 }
40134
40135 SWIGINTERN PyObject *_wrap_new_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40136 PyObject *resultobj = 0;
40137 wxBitmap *arg1 = 0 ;
40138 wxCursor const &arg2_defvalue = wxNullCursor ;
40139 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40140 wxGenericDragImage *result = 0 ;
40141 void *argp1 = 0 ;
40142 int res1 = 0 ;
40143 void *argp2 = 0 ;
40144 int res2 = 0 ;
40145 PyObject * obj0 = 0 ;
40146 PyObject * obj1 = 0 ;
40147 char * kwnames[] = {
40148 (char *) "image",(char *) "cursor", NULL
40149 };
40150
40151 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) SWIG_fail;
40152 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
40153 if (!SWIG_IsOK(res1)) {
40154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40155 }
40156 if (!argp1) {
40157 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40158 }
40159 arg1 = reinterpret_cast< wxBitmap * >(argp1);
40160 if (obj1) {
40161 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40162 if (!SWIG_IsOK(res2)) {
40163 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
40164 }
40165 if (!argp2) {
40166 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
40167 }
40168 arg2 = reinterpret_cast< wxCursor * >(argp2);
40169 }
40170 {
40171 if (!wxPyCheckForApp()) SWIG_fail;
40172 PyThreadState* __tstate = wxPyBeginAllowThreads();
40173 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
40174 wxPyEndAllowThreads(__tstate);
40175 if (PyErr_Occurred()) SWIG_fail;
40176 }
40177 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_NEW | 0 );
40178 return resultobj;
40179 fail:
40180 return NULL;
40181 }
40182
40183
40184 SWIGINTERN PyObject *_wrap_new_DragIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40185 PyObject *resultobj = 0;
40186 wxIcon *arg1 = 0 ;
40187 wxCursor const &arg2_defvalue = wxNullCursor ;
40188 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40189 wxGenericDragImage *result = 0 ;
40190 void *argp1 = 0 ;
40191 int res1 = 0 ;
40192 void *argp2 = 0 ;
40193 int res2 = 0 ;
40194 PyObject * obj0 = 0 ;
40195 PyObject * obj1 = 0 ;
40196 char * kwnames[] = {
40197 (char *) "image",(char *) "cursor", NULL
40198 };
40199
40200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) SWIG_fail;
40201 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
40202 if (!SWIG_IsOK(res1)) {
40203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40204 }
40205 if (!argp1) {
40206 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40207 }
40208 arg1 = reinterpret_cast< wxIcon * >(argp1);
40209 if (obj1) {
40210 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40211 if (!SWIG_IsOK(res2)) {
40212 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
40213 }
40214 if (!argp2) {
40215 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
40216 }
40217 arg2 = reinterpret_cast< wxCursor * >(argp2);
40218 }
40219 {
40220 if (!wxPyCheckForApp()) SWIG_fail;
40221 PyThreadState* __tstate = wxPyBeginAllowThreads();
40222 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
40223 wxPyEndAllowThreads(__tstate);
40224 if (PyErr_Occurred()) SWIG_fail;
40225 }
40226 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40227 return resultobj;
40228 fail:
40229 return NULL;
40230 }
40231
40232
40233 SWIGINTERN PyObject *_wrap_new_DragString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40234 PyObject *resultobj = 0;
40235 wxString *arg1 = 0 ;
40236 wxCursor const &arg2_defvalue = wxNullCursor ;
40237 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40238 wxGenericDragImage *result = 0 ;
40239 bool temp1 = false ;
40240 void *argp2 = 0 ;
40241 int res2 = 0 ;
40242 PyObject * obj0 = 0 ;
40243 PyObject * obj1 = 0 ;
40244 char * kwnames[] = {
40245 (char *) "str",(char *) "cursor", NULL
40246 };
40247
40248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) SWIG_fail;
40249 {
40250 arg1 = wxString_in_helper(obj0);
40251 if (arg1 == NULL) SWIG_fail;
40252 temp1 = true;
40253 }
40254 if (obj1) {
40255 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40256 if (!SWIG_IsOK(res2)) {
40257 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
40258 }
40259 if (!argp2) {
40260 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
40261 }
40262 arg2 = reinterpret_cast< wxCursor * >(argp2);
40263 }
40264 {
40265 if (!wxPyCheckForApp()) SWIG_fail;
40266 PyThreadState* __tstate = wxPyBeginAllowThreads();
40267 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
40268 wxPyEndAllowThreads(__tstate);
40269 if (PyErr_Occurred()) SWIG_fail;
40270 }
40271 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40272 {
40273 if (temp1)
40274 delete arg1;
40275 }
40276 return resultobj;
40277 fail:
40278 {
40279 if (temp1)
40280 delete arg1;
40281 }
40282 return NULL;
40283 }
40284
40285
40286 SWIGINTERN PyObject *_wrap_new_DragTreeItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40287 PyObject *resultobj = 0;
40288 wxPyTreeCtrl *arg1 = 0 ;
40289 wxTreeItemId *arg2 = 0 ;
40290 wxGenericDragImage *result = 0 ;
40291 void *argp1 = 0 ;
40292 int res1 = 0 ;
40293 void *argp2 = 0 ;
40294 int res2 = 0 ;
40295 PyObject * obj0 = 0 ;
40296 PyObject * obj1 = 0 ;
40297 char * kwnames[] = {
40298 (char *) "treeCtrl",(char *) "id", NULL
40299 };
40300
40301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) SWIG_fail;
40302 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyTreeCtrl, 0 | 0);
40303 if (!SWIG_IsOK(res1)) {
40304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40305 }
40306 if (!argp1) {
40307 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40308 }
40309 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
40310 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 );
40311 if (!SWIG_IsOK(res2)) {
40312 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40313 }
40314 if (!argp2) {
40315 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40316 }
40317 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
40318 {
40319 if (!wxPyCheckForApp()) SWIG_fail;
40320 PyThreadState* __tstate = wxPyBeginAllowThreads();
40321 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
40322 wxPyEndAllowThreads(__tstate);
40323 if (PyErr_Occurred()) SWIG_fail;
40324 }
40325 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40326 return resultobj;
40327 fail:
40328 return NULL;
40329 }
40330
40331
40332 SWIGINTERN PyObject *_wrap_new_DragListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40333 PyObject *resultobj = 0;
40334 wxPyListCtrl *arg1 = 0 ;
40335 long arg2 ;
40336 wxGenericDragImage *result = 0 ;
40337 void *argp1 = 0 ;
40338 int res1 = 0 ;
40339 long val2 ;
40340 int ecode2 = 0 ;
40341 PyObject * obj0 = 0 ;
40342 PyObject * obj1 = 0 ;
40343 char * kwnames[] = {
40344 (char *) "listCtrl",(char *) "id", NULL
40345 };
40346
40347 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) SWIG_fail;
40348 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyListCtrl, 0 | 0);
40349 if (!SWIG_IsOK(res1)) {
40350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40351 }
40352 if (!argp1) {
40353 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40354 }
40355 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
40356 ecode2 = SWIG_AsVal_long(obj1, &val2);
40357 if (!SWIG_IsOK(ecode2)) {
40358 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DragListItem" "', expected argument " "2"" of type '" "long""'");
40359 }
40360 arg2 = static_cast< long >(val2);
40361 {
40362 if (!wxPyCheckForApp()) SWIG_fail;
40363 PyThreadState* __tstate = wxPyBeginAllowThreads();
40364 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
40365 wxPyEndAllowThreads(__tstate);
40366 if (PyErr_Occurred()) SWIG_fail;
40367 }
40368 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40369 return resultobj;
40370 fail:
40371 return NULL;
40372 }
40373
40374
40375 SWIGINTERN PyObject *_wrap_delete_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40376 PyObject *resultobj = 0;
40377 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40378 void *argp1 = 0 ;
40379 int res1 = 0 ;
40380 PyObject *swig_obj[1] ;
40381
40382 if (!args) SWIG_fail;
40383 swig_obj[0] = args;
40384 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_DISOWN | 0 );
40385 if (!SWIG_IsOK(res1)) {
40386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DragImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40387 }
40388 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40389 {
40390 PyThreadState* __tstate = wxPyBeginAllowThreads();
40391 delete arg1;
40392
40393 wxPyEndAllowThreads(__tstate);
40394 if (PyErr_Occurred()) SWIG_fail;
40395 }
40396 resultobj = SWIG_Py_Void();
40397 return resultobj;
40398 fail:
40399 return NULL;
40400 }
40401
40402
40403 SWIGINTERN PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40404 PyObject *resultobj = 0;
40405 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40406 wxBitmap *arg2 = (wxBitmap *) 0 ;
40407 void *argp1 = 0 ;
40408 int res1 = 0 ;
40409 void *argp2 = 0 ;
40410 int res2 = 0 ;
40411 PyObject * obj0 = 0 ;
40412 PyObject * obj1 = 0 ;
40413 char * kwnames[] = {
40414 (char *) "self",(char *) "bitmap", NULL
40415 };
40416
40417 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
40418 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40419 if (!SWIG_IsOK(res1)) {
40420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40421 }
40422 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40423 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
40424 if (!SWIG_IsOK(res2)) {
40425 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "2"" of type '" "wxBitmap *""'");
40426 }
40427 arg2 = reinterpret_cast< wxBitmap * >(argp2);
40428 {
40429 PyThreadState* __tstate = wxPyBeginAllowThreads();
40430 (arg1)->SetBackingBitmap(arg2);
40431 wxPyEndAllowThreads(__tstate);
40432 if (PyErr_Occurred()) SWIG_fail;
40433 }
40434 resultobj = SWIG_Py_Void();
40435 return resultobj;
40436 fail:
40437 return NULL;
40438 }
40439
40440
40441 SWIGINTERN PyObject *_wrap_DragImage_BeginDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40442 PyObject *resultobj = 0;
40443 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40444 wxPoint *arg2 = 0 ;
40445 wxWindow *arg3 = (wxWindow *) 0 ;
40446 bool arg4 = (bool) false ;
40447 wxRect *arg5 = (wxRect *) NULL ;
40448 bool result;
40449 void *argp1 = 0 ;
40450 int res1 = 0 ;
40451 wxPoint temp2 ;
40452 void *argp3 = 0 ;
40453 int res3 = 0 ;
40454 bool val4 ;
40455 int ecode4 = 0 ;
40456 void *argp5 = 0 ;
40457 int res5 = 0 ;
40458 PyObject * obj0 = 0 ;
40459 PyObject * obj1 = 0 ;
40460 PyObject * obj2 = 0 ;
40461 PyObject * obj3 = 0 ;
40462 PyObject * obj4 = 0 ;
40463 char * kwnames[] = {
40464 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
40465 };
40466
40467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40468 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40469 if (!SWIG_IsOK(res1)) {
40470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40471 }
40472 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40473 {
40474 arg2 = &temp2;
40475 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40476 }
40477 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40478 if (!SWIG_IsOK(res3)) {
40479 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDrag" "', expected argument " "3"" of type '" "wxWindow *""'");
40480 }
40481 arg3 = reinterpret_cast< wxWindow * >(argp3);
40482 if (obj3) {
40483 ecode4 = SWIG_AsVal_bool(obj3, &val4);
40484 if (!SWIG_IsOK(ecode4)) {
40485 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_BeginDrag" "', expected argument " "4"" of type '" "bool""'");
40486 }
40487 arg4 = static_cast< bool >(val4);
40488 }
40489 if (obj4) {
40490 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxRect, 0 | 0 );
40491 if (!SWIG_IsOK(res5)) {
40492 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DragImage_BeginDrag" "', expected argument " "5"" of type '" "wxRect *""'");
40493 }
40494 arg5 = reinterpret_cast< wxRect * >(argp5);
40495 }
40496 {
40497 PyThreadState* __tstate = wxPyBeginAllowThreads();
40498 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
40499 wxPyEndAllowThreads(__tstate);
40500 if (PyErr_Occurred()) SWIG_fail;
40501 }
40502 {
40503 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40504 }
40505 return resultobj;
40506 fail:
40507 return NULL;
40508 }
40509
40510
40511 SWIGINTERN PyObject *_wrap_DragImage_BeginDragBounded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40512 PyObject *resultobj = 0;
40513 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40514 wxPoint *arg2 = 0 ;
40515 wxWindow *arg3 = (wxWindow *) 0 ;
40516 wxWindow *arg4 = (wxWindow *) 0 ;
40517 bool result;
40518 void *argp1 = 0 ;
40519 int res1 = 0 ;
40520 wxPoint temp2 ;
40521 void *argp3 = 0 ;
40522 int res3 = 0 ;
40523 void *argp4 = 0 ;
40524 int res4 = 0 ;
40525 PyObject * obj0 = 0 ;
40526 PyObject * obj1 = 0 ;
40527 PyObject * obj2 = 0 ;
40528 PyObject * obj3 = 0 ;
40529 char * kwnames[] = {
40530 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
40531 };
40532
40533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40535 if (!SWIG_IsOK(res1)) {
40536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDragBounded" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40537 }
40538 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40539 {
40540 arg2 = &temp2;
40541 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40542 }
40543 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40544 if (!SWIG_IsOK(res3)) {
40545 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDragBounded" "', expected argument " "3"" of type '" "wxWindow *""'");
40546 }
40547 arg3 = reinterpret_cast< wxWindow * >(argp3);
40548 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
40549 if (!SWIG_IsOK(res4)) {
40550 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DragImage_BeginDragBounded" "', expected argument " "4"" of type '" "wxWindow *""'");
40551 }
40552 arg4 = reinterpret_cast< wxWindow * >(argp4);
40553 {
40554 PyThreadState* __tstate = wxPyBeginAllowThreads();
40555 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
40556 wxPyEndAllowThreads(__tstate);
40557 if (PyErr_Occurred()) SWIG_fail;
40558 }
40559 {
40560 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40561 }
40562 return resultobj;
40563 fail:
40564 return NULL;
40565 }
40566
40567
40568 SWIGINTERN PyObject *_wrap_DragImage_EndDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40569 PyObject *resultobj = 0;
40570 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40571 bool result;
40572 void *argp1 = 0 ;
40573 int res1 = 0 ;
40574 PyObject *swig_obj[1] ;
40575
40576 if (!args) SWIG_fail;
40577 swig_obj[0] = args;
40578 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40579 if (!SWIG_IsOK(res1)) {
40580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_EndDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40581 }
40582 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40583 {
40584 PyThreadState* __tstate = wxPyBeginAllowThreads();
40585 result = (bool)(arg1)->EndDrag();
40586 wxPyEndAllowThreads(__tstate);
40587 if (PyErr_Occurred()) SWIG_fail;
40588 }
40589 {
40590 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40591 }
40592 return resultobj;
40593 fail:
40594 return NULL;
40595 }
40596
40597
40598 SWIGINTERN PyObject *_wrap_DragImage_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40599 PyObject *resultobj = 0;
40600 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40601 wxPoint *arg2 = 0 ;
40602 bool result;
40603 void *argp1 = 0 ;
40604 int res1 = 0 ;
40605 wxPoint temp2 ;
40606 PyObject * obj0 = 0 ;
40607 PyObject * obj1 = 0 ;
40608 char * kwnames[] = {
40609 (char *) "self",(char *) "pt", NULL
40610 };
40611
40612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) SWIG_fail;
40613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40614 if (!SWIG_IsOK(res1)) {
40615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Move" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40616 }
40617 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40618 {
40619 arg2 = &temp2;
40620 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40621 }
40622 {
40623 PyThreadState* __tstate = wxPyBeginAllowThreads();
40624 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
40625 wxPyEndAllowThreads(__tstate);
40626 if (PyErr_Occurred()) SWIG_fail;
40627 }
40628 {
40629 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40630 }
40631 return resultobj;
40632 fail:
40633 return NULL;
40634 }
40635
40636
40637 SWIGINTERN PyObject *_wrap_DragImage_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40638 PyObject *resultobj = 0;
40639 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40640 bool result;
40641 void *argp1 = 0 ;
40642 int res1 = 0 ;
40643 PyObject *swig_obj[1] ;
40644
40645 if (!args) SWIG_fail;
40646 swig_obj[0] = args;
40647 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40648 if (!SWIG_IsOK(res1)) {
40649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Show" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40650 }
40651 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40652 {
40653 PyThreadState* __tstate = wxPyBeginAllowThreads();
40654 result = (bool)(arg1)->Show();
40655 wxPyEndAllowThreads(__tstate);
40656 if (PyErr_Occurred()) SWIG_fail;
40657 }
40658 {
40659 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40660 }
40661 return resultobj;
40662 fail:
40663 return NULL;
40664 }
40665
40666
40667 SWIGINTERN PyObject *_wrap_DragImage_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40668 PyObject *resultobj = 0;
40669 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40670 bool result;
40671 void *argp1 = 0 ;
40672 int res1 = 0 ;
40673 PyObject *swig_obj[1] ;
40674
40675 if (!args) SWIG_fail;
40676 swig_obj[0] = args;
40677 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40678 if (!SWIG_IsOK(res1)) {
40679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Hide" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40680 }
40681 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40682 {
40683 PyThreadState* __tstate = wxPyBeginAllowThreads();
40684 result = (bool)(arg1)->Hide();
40685 wxPyEndAllowThreads(__tstate);
40686 if (PyErr_Occurred()) SWIG_fail;
40687 }
40688 {
40689 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40690 }
40691 return resultobj;
40692 fail:
40693 return NULL;
40694 }
40695
40696
40697 SWIGINTERN PyObject *_wrap_DragImage_GetImageRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40698 PyObject *resultobj = 0;
40699 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40700 wxPoint *arg2 = 0 ;
40701 wxRect result;
40702 void *argp1 = 0 ;
40703 int res1 = 0 ;
40704 wxPoint temp2 ;
40705 PyObject * obj0 = 0 ;
40706 PyObject * obj1 = 0 ;
40707 char * kwnames[] = {
40708 (char *) "self",(char *) "pos", NULL
40709 };
40710
40711 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) SWIG_fail;
40712 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40713 if (!SWIG_IsOK(res1)) {
40714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_GetImageRect" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40715 }
40716 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40717 {
40718 arg2 = &temp2;
40719 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40720 }
40721 {
40722 PyThreadState* __tstate = wxPyBeginAllowThreads();
40723 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
40724 wxPyEndAllowThreads(__tstate);
40725 if (PyErr_Occurred()) SWIG_fail;
40726 }
40727 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
40728 return resultobj;
40729 fail:
40730 return NULL;
40731 }
40732
40733
40734 SWIGINTERN PyObject *_wrap_DragImage_DoDrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40735 PyObject *resultobj = 0;
40736 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40737 wxDC *arg2 = 0 ;
40738 wxPoint *arg3 = 0 ;
40739 bool result;
40740 void *argp1 = 0 ;
40741 int res1 = 0 ;
40742 void *argp2 = 0 ;
40743 int res2 = 0 ;
40744 wxPoint temp3 ;
40745 PyObject * obj0 = 0 ;
40746 PyObject * obj1 = 0 ;
40747 PyObject * obj2 = 0 ;
40748 char * kwnames[] = {
40749 (char *) "self",(char *) "dc",(char *) "pos", NULL
40750 };
40751
40752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40754 if (!SWIG_IsOK(res1)) {
40755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_DoDrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40756 }
40757 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40758 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
40759 if (!SWIG_IsOK(res2)) {
40760 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
40761 }
40762 if (!argp2) {
40763 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
40764 }
40765 arg2 = reinterpret_cast< wxDC * >(argp2);
40766 {
40767 arg3 = &temp3;
40768 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40769 }
40770 {
40771 PyThreadState* __tstate = wxPyBeginAllowThreads();
40772 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
40773 wxPyEndAllowThreads(__tstate);
40774 if (PyErr_Occurred()) SWIG_fail;
40775 }
40776 {
40777 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40778 }
40779 return resultobj;
40780 fail:
40781 return NULL;
40782 }
40783
40784
40785 SWIGINTERN PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40786 PyObject *resultobj = 0;
40787 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40788 wxDC *arg2 = 0 ;
40789 wxMemoryDC *arg3 = 0 ;
40790 wxRect *arg4 = 0 ;
40791 wxRect *arg5 = 0 ;
40792 bool result;
40793 void *argp1 = 0 ;
40794 int res1 = 0 ;
40795 void *argp2 = 0 ;
40796 int res2 = 0 ;
40797 void *argp3 = 0 ;
40798 int res3 = 0 ;
40799 wxRect temp4 ;
40800 wxRect temp5 ;
40801 PyObject * obj0 = 0 ;
40802 PyObject * obj1 = 0 ;
40803 PyObject * obj2 = 0 ;
40804 PyObject * obj3 = 0 ;
40805 PyObject * obj4 = 0 ;
40806 char * kwnames[] = {
40807 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
40808 };
40809
40810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40812 if (!SWIG_IsOK(res1)) {
40813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40814 }
40815 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40816 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
40817 if (!SWIG_IsOK(res2)) {
40818 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
40819 }
40820 if (!argp2) {
40821 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
40822 }
40823 arg2 = reinterpret_cast< wxDC * >(argp2);
40824 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxMemoryDC, 0 );
40825 if (!SWIG_IsOK(res3)) {
40826 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
40827 }
40828 if (!argp3) {
40829 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
40830 }
40831 arg3 = reinterpret_cast< wxMemoryDC * >(argp3);
40832 {
40833 arg4 = &temp4;
40834 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
40835 }
40836 {
40837 arg5 = &temp5;
40838 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
40839 }
40840 {
40841 PyThreadState* __tstate = wxPyBeginAllowThreads();
40842 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
40843 wxPyEndAllowThreads(__tstate);
40844 if (PyErr_Occurred()) SWIG_fail;
40845 }
40846 {
40847 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40848 }
40849 return resultobj;
40850 fail:
40851 return NULL;
40852 }
40853
40854
40855 SWIGINTERN PyObject *_wrap_DragImage_RedrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40856 PyObject *resultobj = 0;
40857 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40858 wxPoint *arg2 = 0 ;
40859 wxPoint *arg3 = 0 ;
40860 bool arg4 ;
40861 bool arg5 ;
40862 bool result;
40863 void *argp1 = 0 ;
40864 int res1 = 0 ;
40865 wxPoint temp2 ;
40866 wxPoint temp3 ;
40867 bool val4 ;
40868 int ecode4 = 0 ;
40869 bool val5 ;
40870 int ecode5 = 0 ;
40871 PyObject * obj0 = 0 ;
40872 PyObject * obj1 = 0 ;
40873 PyObject * obj2 = 0 ;
40874 PyObject * obj3 = 0 ;
40875 PyObject * obj4 = 0 ;
40876 char * kwnames[] = {
40877 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
40878 };
40879
40880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40882 if (!SWIG_IsOK(res1)) {
40883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_RedrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40884 }
40885 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40886 {
40887 arg2 = &temp2;
40888 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40889 }
40890 {
40891 arg3 = &temp3;
40892 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40893 }
40894 ecode4 = SWIG_AsVal_bool(obj3, &val4);
40895 if (!SWIG_IsOK(ecode4)) {
40896 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_RedrawImage" "', expected argument " "4"" of type '" "bool""'");
40897 }
40898 arg4 = static_cast< bool >(val4);
40899 ecode5 = SWIG_AsVal_bool(obj4, &val5);
40900 if (!SWIG_IsOK(ecode5)) {
40901 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DragImage_RedrawImage" "', expected argument " "5"" of type '" "bool""'");
40902 }
40903 arg5 = static_cast< bool >(val5);
40904 {
40905 PyThreadState* __tstate = wxPyBeginAllowThreads();
40906 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
40907 wxPyEndAllowThreads(__tstate);
40908 if (PyErr_Occurred()) SWIG_fail;
40909 }
40910 {
40911 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40912 }
40913 return resultobj;
40914 fail:
40915 return NULL;
40916 }
40917
40918
40919 SWIGINTERN PyObject *DragImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40920 PyObject *obj;
40921 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40922 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDragImage, SWIG_NewClientData(obj));
40923 return SWIG_Py_Void();
40924 }
40925
40926 SWIGINTERN PyObject *DragImage_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40927 return SWIG_Python_InitShadowInstance(args);
40928 }
40929
40930 SWIGINTERN int DatePickerCtrlNameStr_set(PyObject *) {
40931 SWIG_Error(SWIG_AttributeError,"Variable DatePickerCtrlNameStr is read-only.");
40932 return 1;
40933 }
40934
40935
40936 SWIGINTERN PyObject *DatePickerCtrlNameStr_get(void) {
40937 PyObject *pyobj = 0;
40938
40939 {
40940 #if wxUSE_UNICODE
40941 pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
40942 #else
40943 pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
40944 #endif
40945 }
40946 return pyobj;
40947 }
40948
40949
40950 SWIGINTERN PyObject *_wrap_new_DatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40951 PyObject *resultobj = 0;
40952 wxWindow *arg1 = (wxWindow *) 0 ;
40953 int arg2 = (int) -1 ;
40954 wxDateTime const &arg3_defvalue = wxDefaultDateTime ;
40955 wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ;
40956 wxPoint const &arg4_defvalue = wxDefaultPosition ;
40957 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
40958 wxSize const &arg5_defvalue = wxDefaultSize ;
40959 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
40960 long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
40961 wxValidator const &arg7_defvalue = wxDefaultValidator ;
40962 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
40963 wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ;
40964 wxString *arg8 = (wxString *) &arg8_defvalue ;
40965 wxDatePickerCtrl *result = 0 ;
40966 void *argp1 = 0 ;
40967 int res1 = 0 ;
40968 int val2 ;
40969 int ecode2 = 0 ;
40970 void *argp3 = 0 ;
40971 int res3 = 0 ;
40972 wxPoint temp4 ;
40973 wxSize temp5 ;
40974 long val6 ;
40975 int ecode6 = 0 ;
40976 void *argp7 = 0 ;
40977 int res7 = 0 ;
40978 bool temp8 = false ;
40979 PyObject * obj0 = 0 ;
40980 PyObject * obj1 = 0 ;
40981 PyObject * obj2 = 0 ;
40982 PyObject * obj3 = 0 ;
40983 PyObject * obj4 = 0 ;
40984 PyObject * obj5 = 0 ;
40985 PyObject * obj6 = 0 ;
40986 PyObject * obj7 = 0 ;
40987 char * kwnames[] = {
40988 (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
40989 };
40990
40991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
40992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40993 if (!SWIG_IsOK(res1)) {
40994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
40995 }
40996 arg1 = reinterpret_cast< wxWindow * >(argp1);
40997 if (obj1) {
40998 ecode2 = SWIG_AsVal_int(obj1, &val2);
40999 if (!SWIG_IsOK(ecode2)) {
41000 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatePickerCtrl" "', expected argument " "2"" of type '" "int""'");
41001 }
41002 arg2 = static_cast< int >(val2);
41003 }
41004 if (obj2) {
41005 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41006 if (!SWIG_IsOK(res3)) {
41007 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41008 }
41009 if (!argp3) {
41010 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41011 }
41012 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41013 }
41014 if (obj3) {
41015 {
41016 arg4 = &temp4;
41017 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
41018 }
41019 }
41020 if (obj4) {
41021 {
41022 arg5 = &temp5;
41023 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
41024 }
41025 }
41026 if (obj5) {
41027 ecode6 = SWIG_AsVal_long(obj5, &val6);
41028 if (!SWIG_IsOK(ecode6)) {
41029 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DatePickerCtrl" "', expected argument " "6"" of type '" "long""'");
41030 }
41031 arg6 = static_cast< long >(val6);
41032 }
41033 if (obj6) {
41034 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
41035 if (!SWIG_IsOK(res7)) {
41036 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
41037 }
41038 if (!argp7) {
41039 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
41040 }
41041 arg7 = reinterpret_cast< wxValidator * >(argp7);
41042 }
41043 if (obj7) {
41044 {
41045 arg8 = wxString_in_helper(obj7);
41046 if (arg8 == NULL) SWIG_fail;
41047 temp8 = true;
41048 }
41049 }
41050 {
41051 if (!wxPyCheckForApp()) SWIG_fail;
41052 PyThreadState* __tstate = wxPyBeginAllowThreads();
41053 result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
41054 wxPyEndAllowThreads(__tstate);
41055 if (PyErr_Occurred()) SWIG_fail;
41056 }
41057 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_NEW | 0 );
41058 {
41059 if (temp8)
41060 delete arg8;
41061 }
41062 return resultobj;
41063 fail:
41064 {
41065 if (temp8)
41066 delete arg8;
41067 }
41068 return NULL;
41069 }
41070
41071
41072 SWIGINTERN PyObject *_wrap_new_PreDatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41073 PyObject *resultobj = 0;
41074 wxDatePickerCtrl *result = 0 ;
41075
41076 if (!SWIG_Python_UnpackTuple(args,"new_PreDatePickerCtrl",0,0,0)) SWIG_fail;
41077 {
41078 if (!wxPyCheckForApp()) SWIG_fail;
41079 PyThreadState* __tstate = wxPyBeginAllowThreads();
41080 result = (wxDatePickerCtrl *)new wxDatePickerCtrl();
41081 wxPyEndAllowThreads(__tstate);
41082 if (PyErr_Occurred()) SWIG_fail;
41083 }
41084 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_OWN | 0 );
41085 return resultobj;
41086 fail:
41087 return NULL;
41088 }
41089
41090
41091 SWIGINTERN PyObject *_wrap_DatePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41092 PyObject *resultobj = 0;
41093 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41094 wxWindow *arg2 = (wxWindow *) 0 ;
41095 int arg3 = (int) -1 ;
41096 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
41097 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
41098 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41099 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41100 wxSize const &arg6_defvalue = wxDefaultSize ;
41101 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41102 long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41103 wxValidator const &arg8_defvalue = wxDefaultValidator ;
41104 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
41105 wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ;
41106 wxString *arg9 = (wxString *) &arg9_defvalue ;
41107 bool result;
41108 void *argp1 = 0 ;
41109 int res1 = 0 ;
41110 void *argp2 = 0 ;
41111 int res2 = 0 ;
41112 int val3 ;
41113 int ecode3 = 0 ;
41114 void *argp4 = 0 ;
41115 int res4 = 0 ;
41116 wxPoint temp5 ;
41117 wxSize temp6 ;
41118 long val7 ;
41119 int ecode7 = 0 ;
41120 void *argp8 = 0 ;
41121 int res8 = 0 ;
41122 bool temp9 = false ;
41123 PyObject * obj0 = 0 ;
41124 PyObject * obj1 = 0 ;
41125 PyObject * obj2 = 0 ;
41126 PyObject * obj3 = 0 ;
41127 PyObject * obj4 = 0 ;
41128 PyObject * obj5 = 0 ;
41129 PyObject * obj6 = 0 ;
41130 PyObject * obj7 = 0 ;
41131 PyObject * obj8 = 0 ;
41132 char * kwnames[] = {
41133 (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41134 };
41135
41136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41138 if (!SWIG_IsOK(res1)) {
41139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_Create" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41140 }
41141 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41142 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41143 if (!SWIG_IsOK(res2)) {
41144 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41145 }
41146 arg2 = reinterpret_cast< wxWindow * >(argp2);
41147 if (obj2) {
41148 ecode3 = SWIG_AsVal_int(obj2, &val3);
41149 if (!SWIG_IsOK(ecode3)) {
41150 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DatePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41151 }
41152 arg3 = static_cast< int >(val3);
41153 }
41154 if (obj3) {
41155 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDateTime, 0 | 0);
41156 if (!SWIG_IsOK(res4)) {
41157 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
41158 }
41159 if (!argp4) {
41160 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
41161 }
41162 arg4 = reinterpret_cast< wxDateTime * >(argp4);
41163 }
41164 if (obj4) {
41165 {
41166 arg5 = &temp5;
41167 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
41168 }
41169 }
41170 if (obj5) {
41171 {
41172 arg6 = &temp6;
41173 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
41174 }
41175 }
41176 if (obj6) {
41177 ecode7 = SWIG_AsVal_long(obj6, &val7);
41178 if (!SWIG_IsOK(ecode7)) {
41179 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DatePickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
41180 }
41181 arg7 = static_cast< long >(val7);
41182 }
41183 if (obj7) {
41184 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
41185 if (!SWIG_IsOK(res8)) {
41186 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
41187 }
41188 if (!argp8) {
41189 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
41190 }
41191 arg8 = reinterpret_cast< wxValidator * >(argp8);
41192 }
41193 if (obj8) {
41194 {
41195 arg9 = wxString_in_helper(obj8);
41196 if (arg9 == NULL) SWIG_fail;
41197 temp9 = true;
41198 }
41199 }
41200 {
41201 PyThreadState* __tstate = wxPyBeginAllowThreads();
41202 result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
41203 wxPyEndAllowThreads(__tstate);
41204 if (PyErr_Occurred()) SWIG_fail;
41205 }
41206 {
41207 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41208 }
41209 {
41210 if (temp9)
41211 delete arg9;
41212 }
41213 return resultobj;
41214 fail:
41215 {
41216 if (temp9)
41217 delete arg9;
41218 }
41219 return NULL;
41220 }
41221
41222
41223 SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41224 PyObject *resultobj = 0;
41225 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41226 wxDateTime *arg2 = 0 ;
41227 void *argp1 = 0 ;
41228 int res1 = 0 ;
41229 void *argp2 = 0 ;
41230 int res2 = 0 ;
41231 PyObject * obj0 = 0 ;
41232 PyObject * obj1 = 0 ;
41233 char * kwnames[] = {
41234 (char *) "self",(char *) "dt", NULL
41235 };
41236
41237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
41238 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41239 if (!SWIG_IsOK(res1)) {
41240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41241 }
41242 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41243 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41244 if (!SWIG_IsOK(res2)) {
41245 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41246 }
41247 if (!argp2) {
41248 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41249 }
41250 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41251 {
41252 PyThreadState* __tstate = wxPyBeginAllowThreads();
41253 (arg1)->SetValue((wxDateTime const &)*arg2);
41254 wxPyEndAllowThreads(__tstate);
41255 if (PyErr_Occurred()) SWIG_fail;
41256 }
41257 resultobj = SWIG_Py_Void();
41258 return resultobj;
41259 fail:
41260 return NULL;
41261 }
41262
41263
41264 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41265 PyObject *resultobj = 0;
41266 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41267 wxDateTime result;
41268 void *argp1 = 0 ;
41269 int res1 = 0 ;
41270 PyObject *swig_obj[1] ;
41271
41272 if (!args) SWIG_fail;
41273 swig_obj[0] = args;
41274 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41275 if (!SWIG_IsOK(res1)) {
41276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl const *""'");
41277 }
41278 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41279 {
41280 PyThreadState* __tstate = wxPyBeginAllowThreads();
41281 result = ((wxDatePickerCtrl const *)arg1)->GetValue();
41282 wxPyEndAllowThreads(__tstate);
41283 if (PyErr_Occurred()) SWIG_fail;
41284 }
41285 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41286 return resultobj;
41287 fail:
41288 return NULL;
41289 }
41290
41291
41292 SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41293 PyObject *resultobj = 0;
41294 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41295 wxDateTime *arg2 = 0 ;
41296 wxDateTime *arg3 = 0 ;
41297 void *argp1 = 0 ;
41298 int res1 = 0 ;
41299 void *argp2 = 0 ;
41300 int res2 = 0 ;
41301 void *argp3 = 0 ;
41302 int res3 = 0 ;
41303 PyObject * obj0 = 0 ;
41304 PyObject * obj1 = 0 ;
41305 PyObject * obj2 = 0 ;
41306 char * kwnames[] = {
41307 (char *) "self",(char *) "dt1",(char *) "dt2", NULL
41308 };
41309
41310 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
41311 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41312 if (!SWIG_IsOK(res1)) {
41313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41314 }
41315 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41316 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41317 if (!SWIG_IsOK(res2)) {
41318 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41319 }
41320 if (!argp2) {
41321 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41322 }
41323 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41324 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41325 if (!SWIG_IsOK(res3)) {
41326 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41327 }
41328 if (!argp3) {
41329 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41330 }
41331 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41332 {
41333 PyThreadState* __tstate = wxPyBeginAllowThreads();
41334 (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
41335 wxPyEndAllowThreads(__tstate);
41336 if (PyErr_Occurred()) SWIG_fail;
41337 }
41338 resultobj = SWIG_Py_Void();
41339 return resultobj;
41340 fail:
41341 return NULL;
41342 }
41343
41344
41345 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41346 PyObject *resultobj = 0;
41347 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41348 wxDateTime result;
41349 void *argp1 = 0 ;
41350 int res1 = 0 ;
41351 PyObject *swig_obj[1] ;
41352
41353 if (!args) SWIG_fail;
41354 swig_obj[0] = args;
41355 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41356 if (!SWIG_IsOK(res1)) {
41357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetLowerLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41358 }
41359 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41360 {
41361 PyThreadState* __tstate = wxPyBeginAllowThreads();
41362 result = wxDatePickerCtrl_GetLowerLimit(arg1);
41363 wxPyEndAllowThreads(__tstate);
41364 if (PyErr_Occurred()) SWIG_fail;
41365 }
41366 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41367 return resultobj;
41368 fail:
41369 return NULL;
41370 }
41371
41372
41373 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41374 PyObject *resultobj = 0;
41375 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41376 wxDateTime result;
41377 void *argp1 = 0 ;
41378 int res1 = 0 ;
41379 PyObject *swig_obj[1] ;
41380
41381 if (!args) SWIG_fail;
41382 swig_obj[0] = args;
41383 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41384 if (!SWIG_IsOK(res1)) {
41385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetUpperLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41386 }
41387 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41388 {
41389 PyThreadState* __tstate = wxPyBeginAllowThreads();
41390 result = wxDatePickerCtrl_GetUpperLimit(arg1);
41391 wxPyEndAllowThreads(__tstate);
41392 if (PyErr_Occurred()) SWIG_fail;
41393 }
41394 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41395 return resultobj;
41396 fail:
41397 return NULL;
41398 }
41399
41400
41401 SWIGINTERN PyObject *DatePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41402 PyObject *obj;
41403 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41404 SWIG_TypeNewClientData(SWIGTYPE_p_wxDatePickerCtrl, SWIG_NewClientData(obj));
41405 return SWIG_Py_Void();
41406 }
41407
41408 SWIGINTERN PyObject *DatePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41409 return SWIG_Python_InitShadowInstance(args);
41410 }
41411
41412 SWIGINTERN int HyperlinkCtrlNameStr_set(PyObject *) {
41413 SWIG_Error(SWIG_AttributeError,"Variable HyperlinkCtrlNameStr is read-only.");
41414 return 1;
41415 }
41416
41417
41418 SWIGINTERN PyObject *HyperlinkCtrlNameStr_get(void) {
41419 PyObject *pyobj = 0;
41420
41421 {
41422 #if wxUSE_UNICODE
41423 pyobj = PyUnicode_FromWideChar((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41424 #else
41425 pyobj = PyString_FromStringAndSize((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41426 #endif
41427 }
41428 return pyobj;
41429 }
41430
41431
41432 SWIGINTERN PyObject *_wrap_new_HyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41433 PyObject *resultobj = 0;
41434 wxWindow *arg1 = (wxWindow *) 0 ;
41435 int arg2 ;
41436 wxString *arg3 = 0 ;
41437 wxString *arg4 = 0 ;
41438 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41439 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41440 wxSize const &arg6_defvalue = wxDefaultSize ;
41441 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41442 long arg7 = (long) wxHL_DEFAULT_STYLE ;
41443 wxString const &arg8_defvalue = wxPyHyperlinkCtrlNameStr ;
41444 wxString *arg8 = (wxString *) &arg8_defvalue ;
41445 wxHyperlinkCtrl *result = 0 ;
41446 void *argp1 = 0 ;
41447 int res1 = 0 ;
41448 int val2 ;
41449 int ecode2 = 0 ;
41450 bool temp3 = false ;
41451 bool temp4 = false ;
41452 wxPoint temp5 ;
41453 wxSize temp6 ;
41454 long val7 ;
41455 int ecode7 = 0 ;
41456 bool temp8 = false ;
41457 PyObject * obj0 = 0 ;
41458 PyObject * obj1 = 0 ;
41459 PyObject * obj2 = 0 ;
41460 PyObject * obj3 = 0 ;
41461 PyObject * obj4 = 0 ;
41462 PyObject * obj5 = 0 ;
41463 PyObject * obj6 = 0 ;
41464 PyObject * obj7 = 0 ;
41465 char * kwnames[] = {
41466 (char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41467 };
41468
41469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:new_HyperlinkCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41471 if (!SWIG_IsOK(res1)) {
41472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41473 }
41474 arg1 = reinterpret_cast< wxWindow * >(argp1);
41475 ecode2 = SWIG_AsVal_int(obj1, &val2);
41476 if (!SWIG_IsOK(ecode2)) {
41477 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkCtrl" "', expected argument " "2"" of type '" "int""'");
41478 }
41479 arg2 = static_cast< int >(val2);
41480 {
41481 arg3 = wxString_in_helper(obj2);
41482 if (arg3 == NULL) SWIG_fail;
41483 temp3 = true;
41484 }
41485 {
41486 arg4 = wxString_in_helper(obj3);
41487 if (arg4 == NULL) SWIG_fail;
41488 temp4 = true;
41489 }
41490 if (obj4) {
41491 {
41492 arg5 = &temp5;
41493 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
41494 }
41495 }
41496 if (obj5) {
41497 {
41498 arg6 = &temp6;
41499 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
41500 }
41501 }
41502 if (obj6) {
41503 ecode7 = SWIG_AsVal_long(obj6, &val7);
41504 if (!SWIG_IsOK(ecode7)) {
41505 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_HyperlinkCtrl" "', expected argument " "7"" of type '" "long""'");
41506 }
41507 arg7 = static_cast< long >(val7);
41508 }
41509 if (obj7) {
41510 {
41511 arg8 = wxString_in_helper(obj7);
41512 if (arg8 == NULL) SWIG_fail;
41513 temp8 = true;
41514 }
41515 }
41516 {
41517 if (!wxPyCheckForApp()) SWIG_fail;
41518 PyThreadState* __tstate = wxPyBeginAllowThreads();
41519 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
41520 wxPyEndAllowThreads(__tstate);
41521 if (PyErr_Occurred()) SWIG_fail;
41522 }
41523 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_NEW | 0 );
41524 {
41525 if (temp3)
41526 delete arg3;
41527 }
41528 {
41529 if (temp4)
41530 delete arg4;
41531 }
41532 {
41533 if (temp8)
41534 delete arg8;
41535 }
41536 return resultobj;
41537 fail:
41538 {
41539 if (temp3)
41540 delete arg3;
41541 }
41542 {
41543 if (temp4)
41544 delete arg4;
41545 }
41546 {
41547 if (temp8)
41548 delete arg8;
41549 }
41550 return NULL;
41551 }
41552
41553
41554 SWIGINTERN PyObject *_wrap_new_PreHyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41555 PyObject *resultobj = 0;
41556 wxHyperlinkCtrl *result = 0 ;
41557
41558 if (!SWIG_Python_UnpackTuple(args,"new_PreHyperlinkCtrl",0,0,0)) SWIG_fail;
41559 {
41560 if (!wxPyCheckForApp()) SWIG_fail;
41561 PyThreadState* __tstate = wxPyBeginAllowThreads();
41562 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl();
41563 wxPyEndAllowThreads(__tstate);
41564 if (PyErr_Occurred()) SWIG_fail;
41565 }
41566 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_OWN | 0 );
41567 return resultobj;
41568 fail:
41569 return NULL;
41570 }
41571
41572
41573 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41574 PyObject *resultobj = 0;
41575 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41576 wxWindow *arg2 = (wxWindow *) 0 ;
41577 int arg3 ;
41578 wxString *arg4 = 0 ;
41579 wxString *arg5 = 0 ;
41580 wxPoint const &arg6_defvalue = wxDefaultPosition ;
41581 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
41582 wxSize const &arg7_defvalue = wxDefaultSize ;
41583 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
41584 long arg8 = (long) wxHL_DEFAULT_STYLE ;
41585 wxString const &arg9_defvalue = wxPyHyperlinkCtrlNameStr ;
41586 wxString *arg9 = (wxString *) &arg9_defvalue ;
41587 bool result;
41588 void *argp1 = 0 ;
41589 int res1 = 0 ;
41590 void *argp2 = 0 ;
41591 int res2 = 0 ;
41592 int val3 ;
41593 int ecode3 = 0 ;
41594 bool temp4 = false ;
41595 bool temp5 = false ;
41596 wxPoint temp6 ;
41597 wxSize temp7 ;
41598 long val8 ;
41599 int ecode8 = 0 ;
41600 bool temp9 = false ;
41601 PyObject * obj0 = 0 ;
41602 PyObject * obj1 = 0 ;
41603 PyObject * obj2 = 0 ;
41604 PyObject * obj3 = 0 ;
41605 PyObject * obj4 = 0 ;
41606 PyObject * obj5 = 0 ;
41607 PyObject * obj6 = 0 ;
41608 PyObject * obj7 = 0 ;
41609 PyObject * obj8 = 0 ;
41610 char * kwnames[] = {
41611 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41612 };
41613
41614 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOO:HyperlinkCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41616 if (!SWIG_IsOK(res1)) {
41617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_Create" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41618 }
41619 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41620 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41621 if (!SWIG_IsOK(res2)) {
41622 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HyperlinkCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41623 }
41624 arg2 = reinterpret_cast< wxWindow * >(argp2);
41625 ecode3 = SWIG_AsVal_int(obj2, &val3);
41626 if (!SWIG_IsOK(ecode3)) {
41627 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HyperlinkCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41628 }
41629 arg3 = static_cast< int >(val3);
41630 {
41631 arg4 = wxString_in_helper(obj3);
41632 if (arg4 == NULL) SWIG_fail;
41633 temp4 = true;
41634 }
41635 {
41636 arg5 = wxString_in_helper(obj4);
41637 if (arg5 == NULL) SWIG_fail;
41638 temp5 = true;
41639 }
41640 if (obj5) {
41641 {
41642 arg6 = &temp6;
41643 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
41644 }
41645 }
41646 if (obj6) {
41647 {
41648 arg7 = &temp7;
41649 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
41650 }
41651 }
41652 if (obj7) {
41653 ecode8 = SWIG_AsVal_long(obj7, &val8);
41654 if (!SWIG_IsOK(ecode8)) {
41655 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "HyperlinkCtrl_Create" "', expected argument " "8"" of type '" "long""'");
41656 }
41657 arg8 = static_cast< long >(val8);
41658 }
41659 if (obj8) {
41660 {
41661 arg9 = wxString_in_helper(obj8);
41662 if (arg9 == NULL) SWIG_fail;
41663 temp9 = true;
41664 }
41665 }
41666 {
41667 PyThreadState* __tstate = wxPyBeginAllowThreads();
41668 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxString const &)*arg9);
41669 wxPyEndAllowThreads(__tstate);
41670 if (PyErr_Occurred()) SWIG_fail;
41671 }
41672 {
41673 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41674 }
41675 {
41676 if (temp4)
41677 delete arg4;
41678 }
41679 {
41680 if (temp5)
41681 delete arg5;
41682 }
41683 {
41684 if (temp9)
41685 delete arg9;
41686 }
41687 return resultobj;
41688 fail:
41689 {
41690 if (temp4)
41691 delete arg4;
41692 }
41693 {
41694 if (temp5)
41695 delete arg5;
41696 }
41697 {
41698 if (temp9)
41699 delete arg9;
41700 }
41701 return NULL;
41702 }
41703
41704
41705 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41706 PyObject *resultobj = 0;
41707 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41708 wxColour result;
41709 void *argp1 = 0 ;
41710 int res1 = 0 ;
41711 PyObject *swig_obj[1] ;
41712
41713 if (!args) SWIG_fail;
41714 swig_obj[0] = args;
41715 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41716 if (!SWIG_IsOK(res1)) {
41717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41718 }
41719 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41720 {
41721 PyThreadState* __tstate = wxPyBeginAllowThreads();
41722 result = ((wxHyperlinkCtrl const *)arg1)->GetHoverColour();
41723 wxPyEndAllowThreads(__tstate);
41724 if (PyErr_Occurred()) SWIG_fail;
41725 }
41726 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
41727 return resultobj;
41728 fail:
41729 return NULL;
41730 }
41731
41732
41733 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41734 PyObject *resultobj = 0;
41735 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41736 wxColour *arg2 = 0 ;
41737 void *argp1 = 0 ;
41738 int res1 = 0 ;
41739 wxColour temp2 ;
41740 PyObject * obj0 = 0 ;
41741 PyObject * obj1 = 0 ;
41742 char * kwnames[] = {
41743 (char *) "self",(char *) "colour", NULL
41744 };
41745
41746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetHoverColour",kwnames,&obj0,&obj1)) SWIG_fail;
41747 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41748 if (!SWIG_IsOK(res1)) {
41749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41750 }
41751 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41752 {
41753 arg2 = &temp2;
41754 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
41755 }
41756 {
41757 PyThreadState* __tstate = wxPyBeginAllowThreads();
41758 (arg1)->SetHoverColour((wxColour const &)*arg2);
41759 wxPyEndAllowThreads(__tstate);
41760 if (PyErr_Occurred()) SWIG_fail;
41761 }
41762 resultobj = SWIG_Py_Void();
41763 return resultobj;
41764 fail:
41765 return NULL;
41766 }
41767
41768
41769 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41770 PyObject *resultobj = 0;
41771 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41772 wxColour result;
41773 void *argp1 = 0 ;
41774 int res1 = 0 ;
41775 PyObject *swig_obj[1] ;
41776
41777 if (!args) SWIG_fail;
41778 swig_obj[0] = args;
41779 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41780 if (!SWIG_IsOK(res1)) {
41781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41782 }
41783 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41784 {
41785 PyThreadState* __tstate = wxPyBeginAllowThreads();
41786 result = ((wxHyperlinkCtrl const *)arg1)->GetNormalColour();
41787 wxPyEndAllowThreads(__tstate);
41788 if (PyErr_Occurred()) SWIG_fail;
41789 }
41790 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
41791 return resultobj;
41792 fail:
41793 return NULL;
41794 }
41795
41796
41797 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41798 PyObject *resultobj = 0;
41799 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41800 wxColour *arg2 = 0 ;
41801 void *argp1 = 0 ;
41802 int res1 = 0 ;
41803 wxColour temp2 ;
41804 PyObject * obj0 = 0 ;
41805 PyObject * obj1 = 0 ;
41806 char * kwnames[] = {
41807 (char *) "self",(char *) "colour", NULL
41808 };
41809
41810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetNormalColour",kwnames,&obj0,&obj1)) SWIG_fail;
41811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41812 if (!SWIG_IsOK(res1)) {
41813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41814 }
41815 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41816 {
41817 arg2 = &temp2;
41818 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
41819 }
41820 {
41821 PyThreadState* __tstate = wxPyBeginAllowThreads();
41822 (arg1)->SetNormalColour((wxColour const &)*arg2);
41823 wxPyEndAllowThreads(__tstate);
41824 if (PyErr_Occurred()) SWIG_fail;
41825 }
41826 resultobj = SWIG_Py_Void();
41827 return resultobj;
41828 fail:
41829 return NULL;
41830 }
41831
41832
41833 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41834 PyObject *resultobj = 0;
41835 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41836 wxColour result;
41837 void *argp1 = 0 ;
41838 int res1 = 0 ;
41839 PyObject *swig_obj[1] ;
41840
41841 if (!args) SWIG_fail;
41842 swig_obj[0] = args;
41843 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41844 if (!SWIG_IsOK(res1)) {
41845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41846 }
41847 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41848 {
41849 PyThreadState* __tstate = wxPyBeginAllowThreads();
41850 result = ((wxHyperlinkCtrl const *)arg1)->GetVisitedColour();
41851 wxPyEndAllowThreads(__tstate);
41852 if (PyErr_Occurred()) SWIG_fail;
41853 }
41854 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
41855 return resultobj;
41856 fail:
41857 return NULL;
41858 }
41859
41860
41861 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41862 PyObject *resultobj = 0;
41863 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41864 wxColour *arg2 = 0 ;
41865 void *argp1 = 0 ;
41866 int res1 = 0 ;
41867 wxColour temp2 ;
41868 PyObject * obj0 = 0 ;
41869 PyObject * obj1 = 0 ;
41870 char * kwnames[] = {
41871 (char *) "self",(char *) "colour", NULL
41872 };
41873
41874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetVisitedColour",kwnames,&obj0,&obj1)) SWIG_fail;
41875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41876 if (!SWIG_IsOK(res1)) {
41877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41878 }
41879 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41880 {
41881 arg2 = &temp2;
41882 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
41883 }
41884 {
41885 PyThreadState* __tstate = wxPyBeginAllowThreads();
41886 (arg1)->SetVisitedColour((wxColour const &)*arg2);
41887 wxPyEndAllowThreads(__tstate);
41888 if (PyErr_Occurred()) SWIG_fail;
41889 }
41890 resultobj = SWIG_Py_Void();
41891 return resultobj;
41892 fail:
41893 return NULL;
41894 }
41895
41896
41897 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41898 PyObject *resultobj = 0;
41899 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41900 wxString result;
41901 void *argp1 = 0 ;
41902 int res1 = 0 ;
41903 PyObject *swig_obj[1] ;
41904
41905 if (!args) SWIG_fail;
41906 swig_obj[0] = args;
41907 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41908 if (!SWIG_IsOK(res1)) {
41909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41910 }
41911 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41912 {
41913 PyThreadState* __tstate = wxPyBeginAllowThreads();
41914 result = ((wxHyperlinkCtrl const *)arg1)->GetURL();
41915 wxPyEndAllowThreads(__tstate);
41916 if (PyErr_Occurred()) SWIG_fail;
41917 }
41918 {
41919 #if wxUSE_UNICODE
41920 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
41921 #else
41922 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
41923 #endif
41924 }
41925 return resultobj;
41926 fail:
41927 return NULL;
41928 }
41929
41930
41931 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41932 PyObject *resultobj = 0;
41933 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41934 wxString *arg2 = 0 ;
41935 void *argp1 = 0 ;
41936 int res1 = 0 ;
41937 bool temp2 = false ;
41938 PyObject * obj0 = 0 ;
41939 PyObject * obj1 = 0 ;
41940 char * kwnames[] = {
41941 (char *) "self",(char *) "url", NULL
41942 };
41943
41944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
41945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41946 if (!SWIG_IsOK(res1)) {
41947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41948 }
41949 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41950 {
41951 arg2 = wxString_in_helper(obj1);
41952 if (arg2 == NULL) SWIG_fail;
41953 temp2 = true;
41954 }
41955 {
41956 PyThreadState* __tstate = wxPyBeginAllowThreads();
41957 (arg1)->SetURL((wxString const &)*arg2);
41958 wxPyEndAllowThreads(__tstate);
41959 if (PyErr_Occurred()) SWIG_fail;
41960 }
41961 resultobj = SWIG_Py_Void();
41962 {
41963 if (temp2)
41964 delete arg2;
41965 }
41966 return resultobj;
41967 fail:
41968 {
41969 if (temp2)
41970 delete arg2;
41971 }
41972 return NULL;
41973 }
41974
41975
41976 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41977 PyObject *resultobj = 0;
41978 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41979 bool arg2 = (bool) true ;
41980 void *argp1 = 0 ;
41981 int res1 = 0 ;
41982 bool val2 ;
41983 int ecode2 = 0 ;
41984 PyObject * obj0 = 0 ;
41985 PyObject * obj1 = 0 ;
41986 char * kwnames[] = {
41987 (char *) "self",(char *) "visited", NULL
41988 };
41989
41990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:HyperlinkCtrl_SetVisited",kwnames,&obj0,&obj1)) SWIG_fail;
41991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41992 if (!SWIG_IsOK(res1)) {
41993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41994 }
41995 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41996 if (obj1) {
41997 ecode2 = SWIG_AsVal_bool(obj1, &val2);
41998 if (!SWIG_IsOK(ecode2)) {
41999 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "2"" of type '" "bool""'");
42000 }
42001 arg2 = static_cast< bool >(val2);
42002 }
42003 {
42004 PyThreadState* __tstate = wxPyBeginAllowThreads();
42005 (arg1)->SetVisited(arg2);
42006 wxPyEndAllowThreads(__tstate);
42007 if (PyErr_Occurred()) SWIG_fail;
42008 }
42009 resultobj = SWIG_Py_Void();
42010 return resultobj;
42011 fail:
42012 return NULL;
42013 }
42014
42015
42016 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42017 PyObject *resultobj = 0;
42018 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42019 bool result;
42020 void *argp1 = 0 ;
42021 int res1 = 0 ;
42022 PyObject *swig_obj[1] ;
42023
42024 if (!args) SWIG_fail;
42025 swig_obj[0] = args;
42026 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42027 if (!SWIG_IsOK(res1)) {
42028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42029 }
42030 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42031 {
42032 PyThreadState* __tstate = wxPyBeginAllowThreads();
42033 result = (bool)((wxHyperlinkCtrl const *)arg1)->GetVisited();
42034 wxPyEndAllowThreads(__tstate);
42035 if (PyErr_Occurred()) SWIG_fail;
42036 }
42037 {
42038 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42039 }
42040 return resultobj;
42041 fail:
42042 return NULL;
42043 }
42044
42045
42046 SWIGINTERN PyObject *HyperlinkCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42047 PyObject *obj;
42048 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42049 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkCtrl, SWIG_NewClientData(obj));
42050 return SWIG_Py_Void();
42051 }
42052
42053 SWIGINTERN PyObject *HyperlinkCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42054 return SWIG_Python_InitShadowInstance(args);
42055 }
42056
42057 SWIGINTERN PyObject *_wrap_new_HyperlinkEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42058 PyObject *resultobj = 0;
42059 wxObject *arg1 = (wxObject *) 0 ;
42060 int arg2 ;
42061 wxString *arg3 = 0 ;
42062 wxHyperlinkEvent *result = 0 ;
42063 void *argp1 = 0 ;
42064 int res1 = 0 ;
42065 int val2 ;
42066 int ecode2 = 0 ;
42067 bool temp3 = false ;
42068 PyObject * obj0 = 0 ;
42069 PyObject * obj1 = 0 ;
42070 PyObject * obj2 = 0 ;
42071 char * kwnames[] = {
42072 (char *) "generator",(char *) "id",(char *) "url", NULL
42073 };
42074
42075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_HyperlinkEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
42076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
42077 if (!SWIG_IsOK(res1)) {
42078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkEvent" "', expected argument " "1"" of type '" "wxObject *""'");
42079 }
42080 arg1 = reinterpret_cast< wxObject * >(argp1);
42081 ecode2 = SWIG_AsVal_int(obj1, &val2);
42082 if (!SWIG_IsOK(ecode2)) {
42083 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkEvent" "', expected argument " "2"" of type '" "int""'");
42084 }
42085 arg2 = static_cast< int >(val2);
42086 {
42087 arg3 = wxString_in_helper(obj2);
42088 if (arg3 == NULL) SWIG_fail;
42089 temp3 = true;
42090 }
42091 {
42092 PyThreadState* __tstate = wxPyBeginAllowThreads();
42093 result = (wxHyperlinkEvent *)new wxHyperlinkEvent(arg1,arg2,(wxString const &)*arg3);
42094 wxPyEndAllowThreads(__tstate);
42095 if (PyErr_Occurred()) SWIG_fail;
42096 }
42097 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkEvent, SWIG_POINTER_NEW | 0 );
42098 {
42099 if (temp3)
42100 delete arg3;
42101 }
42102 return resultobj;
42103 fail:
42104 {
42105 if (temp3)
42106 delete arg3;
42107 }
42108 return NULL;
42109 }
42110
42111
42112 SWIGINTERN PyObject *_wrap_HyperlinkEvent_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42113 PyObject *resultobj = 0;
42114 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42115 wxString result;
42116 void *argp1 = 0 ;
42117 int res1 = 0 ;
42118 PyObject *swig_obj[1] ;
42119
42120 if (!args) SWIG_fail;
42121 swig_obj[0] = args;
42122 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42123 if (!SWIG_IsOK(res1)) {
42124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent const *""'");
42125 }
42126 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42127 {
42128 PyThreadState* __tstate = wxPyBeginAllowThreads();
42129 result = ((wxHyperlinkEvent const *)arg1)->GetURL();
42130 wxPyEndAllowThreads(__tstate);
42131 if (PyErr_Occurred()) SWIG_fail;
42132 }
42133 {
42134 #if wxUSE_UNICODE
42135 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42136 #else
42137 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42138 #endif
42139 }
42140 return resultobj;
42141 fail:
42142 return NULL;
42143 }
42144
42145
42146 SWIGINTERN PyObject *_wrap_HyperlinkEvent_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42147 PyObject *resultobj = 0;
42148 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42149 wxString *arg2 = 0 ;
42150 void *argp1 = 0 ;
42151 int res1 = 0 ;
42152 bool temp2 = false ;
42153 PyObject * obj0 = 0 ;
42154 PyObject * obj1 = 0 ;
42155 char * kwnames[] = {
42156 (char *) "self",(char *) "url", NULL
42157 };
42158
42159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkEvent_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42161 if (!SWIG_IsOK(res1)) {
42162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent *""'");
42163 }
42164 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42165 {
42166 arg2 = wxString_in_helper(obj1);
42167 if (arg2 == NULL) SWIG_fail;
42168 temp2 = true;
42169 }
42170 {
42171 PyThreadState* __tstate = wxPyBeginAllowThreads();
42172 (arg1)->SetURL((wxString const &)*arg2);
42173 wxPyEndAllowThreads(__tstate);
42174 if (PyErr_Occurred()) SWIG_fail;
42175 }
42176 resultobj = SWIG_Py_Void();
42177 {
42178 if (temp2)
42179 delete arg2;
42180 }
42181 return resultobj;
42182 fail:
42183 {
42184 if (temp2)
42185 delete arg2;
42186 }
42187 return NULL;
42188 }
42189
42190
42191 SWIGINTERN PyObject *HyperlinkEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42192 PyObject *obj;
42193 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42194 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkEvent, SWIG_NewClientData(obj));
42195 return SWIG_Py_Void();
42196 }
42197
42198 SWIGINTERN PyObject *HyperlinkEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42199 return SWIG_Python_InitShadowInstance(args);
42200 }
42201
42202 SWIGINTERN PyObject *_wrap_PickerBase_CreateBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42203 PyObject *resultobj = 0;
42204 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42205 wxWindow *arg2 = (wxWindow *) 0 ;
42206 int arg3 ;
42207 wxString const &arg4_defvalue = wxEmptyString ;
42208 wxString *arg4 = (wxString *) &arg4_defvalue ;
42209 wxPoint const &arg5_defvalue = wxDefaultPosition ;
42210 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
42211 wxSize const &arg6_defvalue = wxDefaultSize ;
42212 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
42213 long arg7 = (long) 0 ;
42214 wxValidator const &arg8_defvalue = wxDefaultValidator ;
42215 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
42216 wxString const &arg9_defvalue = wxButtonNameStr ;
42217 wxString *arg9 = (wxString *) &arg9_defvalue ;
42218 bool result;
42219 void *argp1 = 0 ;
42220 int res1 = 0 ;
42221 void *argp2 = 0 ;
42222 int res2 = 0 ;
42223 int val3 ;
42224 int ecode3 = 0 ;
42225 bool temp4 = false ;
42226 wxPoint temp5 ;
42227 wxSize temp6 ;
42228 long val7 ;
42229 int ecode7 = 0 ;
42230 void *argp8 = 0 ;
42231 int res8 = 0 ;
42232 bool temp9 = false ;
42233 PyObject * obj0 = 0 ;
42234 PyObject * obj1 = 0 ;
42235 PyObject * obj2 = 0 ;
42236 PyObject * obj3 = 0 ;
42237 PyObject * obj4 = 0 ;
42238 PyObject * obj5 = 0 ;
42239 PyObject * obj6 = 0 ;
42240 PyObject * obj7 = 0 ;
42241 PyObject * obj8 = 0 ;
42242 char * kwnames[] = {
42243 (char *) "self",(char *) "parent",(char *) "id",(char *) "text",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
42244 };
42245
42246 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:PickerBase_CreateBase",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
42247 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42248 if (!SWIG_IsOK(res1)) {
42249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_CreateBase" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42250 }
42251 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42252 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
42253 if (!SWIG_IsOK(res2)) {
42254 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PickerBase_CreateBase" "', expected argument " "2"" of type '" "wxWindow *""'");
42255 }
42256 arg2 = reinterpret_cast< wxWindow * >(argp2);
42257 ecode3 = SWIG_AsVal_int(obj2, &val3);
42258 if (!SWIG_IsOK(ecode3)) {
42259 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PickerBase_CreateBase" "', expected argument " "3"" of type '" "int""'");
42260 }
42261 arg3 = static_cast< int >(val3);
42262 if (obj3) {
42263 {
42264 arg4 = wxString_in_helper(obj3);
42265 if (arg4 == NULL) SWIG_fail;
42266 temp4 = true;
42267 }
42268 }
42269 if (obj4) {
42270 {
42271 arg5 = &temp5;
42272 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
42273 }
42274 }
42275 if (obj5) {
42276 {
42277 arg6 = &temp6;
42278 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
42279 }
42280 }
42281 if (obj6) {
42282 ecode7 = SWIG_AsVal_long(obj6, &val7);
42283 if (!SWIG_IsOK(ecode7)) {
42284 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PickerBase_CreateBase" "', expected argument " "7"" of type '" "long""'");
42285 }
42286 arg7 = static_cast< long >(val7);
42287 }
42288 if (obj7) {
42289 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
42290 if (!SWIG_IsOK(res8)) {
42291 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42292 }
42293 if (!argp8) {
42294 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42295 }
42296 arg8 = reinterpret_cast< wxValidator * >(argp8);
42297 }
42298 if (obj8) {
42299 {
42300 arg9 = wxString_in_helper(obj8);
42301 if (arg9 == NULL) SWIG_fail;
42302 temp9 = true;
42303 }
42304 }
42305 {
42306 PyThreadState* __tstate = wxPyBeginAllowThreads();
42307 result = (bool)(arg1)->CreateBase(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
42308 wxPyEndAllowThreads(__tstate);
42309 if (PyErr_Occurred()) SWIG_fail;
42310 }
42311 {
42312 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42313 }
42314 {
42315 if (temp4)
42316 delete arg4;
42317 }
42318 {
42319 if (temp9)
42320 delete arg9;
42321 }
42322 return resultobj;
42323 fail:
42324 {
42325 if (temp4)
42326 delete arg4;
42327 }
42328 {
42329 if (temp9)
42330 delete arg9;
42331 }
42332 return NULL;
42333 }
42334
42335
42336 SWIGINTERN PyObject *_wrap_PickerBase_SetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42337 PyObject *resultobj = 0;
42338 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42339 int arg2 ;
42340 void *argp1 = 0 ;
42341 int res1 = 0 ;
42342 int val2 ;
42343 int ecode2 = 0 ;
42344 PyObject * obj0 = 0 ;
42345 PyObject * obj1 = 0 ;
42346 char * kwnames[] = {
42347 (char *) "self",(char *) "newmargin", NULL
42348 };
42349
42350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetInternalMargin",kwnames,&obj0,&obj1)) SWIG_fail;
42351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42352 if (!SWIG_IsOK(res1)) {
42353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42354 }
42355 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42356 ecode2 = SWIG_AsVal_int(obj1, &val2);
42357 if (!SWIG_IsOK(ecode2)) {
42358 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "2"" of type '" "int""'");
42359 }
42360 arg2 = static_cast< int >(val2);
42361 {
42362 PyThreadState* __tstate = wxPyBeginAllowThreads();
42363 (arg1)->SetInternalMargin(arg2);
42364 wxPyEndAllowThreads(__tstate);
42365 if (PyErr_Occurred()) SWIG_fail;
42366 }
42367 resultobj = SWIG_Py_Void();
42368 return resultobj;
42369 fail:
42370 return NULL;
42371 }
42372
42373
42374 SWIGINTERN PyObject *_wrap_PickerBase_GetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42375 PyObject *resultobj = 0;
42376 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42377 int result;
42378 void *argp1 = 0 ;
42379 int res1 = 0 ;
42380 PyObject *swig_obj[1] ;
42381
42382 if (!args) SWIG_fail;
42383 swig_obj[0] = args;
42384 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42385 if (!SWIG_IsOK(res1)) {
42386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42387 }
42388 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42389 {
42390 PyThreadState* __tstate = wxPyBeginAllowThreads();
42391 result = (int)((wxPickerBase const *)arg1)->GetInternalMargin();
42392 wxPyEndAllowThreads(__tstate);
42393 if (PyErr_Occurred()) SWIG_fail;
42394 }
42395 resultobj = SWIG_From_int(static_cast< int >(result));
42396 return resultobj;
42397 fail:
42398 return NULL;
42399 }
42400
42401
42402 SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42403 PyObject *resultobj = 0;
42404 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42405 int arg2 ;
42406 void *argp1 = 0 ;
42407 int res1 = 0 ;
42408 int val2 ;
42409 int ecode2 = 0 ;
42410 PyObject * obj0 = 0 ;
42411 PyObject * obj1 = 0 ;
42412 char * kwnames[] = {
42413 (char *) "self",(char *) "prop", NULL
42414 };
42415
42416 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetTextCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
42417 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42418 if (!SWIG_IsOK(res1)) {
42419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42420 }
42421 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42422 ecode2 = SWIG_AsVal_int(obj1, &val2);
42423 if (!SWIG_IsOK(ecode2)) {
42424 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "2"" of type '" "int""'");
42425 }
42426 arg2 = static_cast< int >(val2);
42427 {
42428 PyThreadState* __tstate = wxPyBeginAllowThreads();
42429 (arg1)->SetTextCtrlProportion(arg2);
42430 wxPyEndAllowThreads(__tstate);
42431 if (PyErr_Occurred()) SWIG_fail;
42432 }
42433 resultobj = SWIG_Py_Void();
42434 return resultobj;
42435 fail:
42436 return NULL;
42437 }
42438
42439
42440 SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42441 PyObject *resultobj = 0;
42442 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42443 int result;
42444 void *argp1 = 0 ;
42445 int res1 = 0 ;
42446 PyObject *swig_obj[1] ;
42447
42448 if (!args) SWIG_fail;
42449 swig_obj[0] = args;
42450 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42451 if (!SWIG_IsOK(res1)) {
42452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42453 }
42454 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42455 {
42456 PyThreadState* __tstate = wxPyBeginAllowThreads();
42457 result = (int)((wxPickerBase const *)arg1)->GetTextCtrlProportion();
42458 wxPyEndAllowThreads(__tstate);
42459 if (PyErr_Occurred()) SWIG_fail;
42460 }
42461 resultobj = SWIG_From_int(static_cast< int >(result));
42462 return resultobj;
42463 fail:
42464 return NULL;
42465 }
42466
42467
42468 SWIGINTERN PyObject *_wrap_PickerBase_IsTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42469 PyObject *resultobj = 0;
42470 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42471 bool result;
42472 void *argp1 = 0 ;
42473 int res1 = 0 ;
42474 PyObject *swig_obj[1] ;
42475
42476 if (!args) SWIG_fail;
42477 swig_obj[0] = args;
42478 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42479 if (!SWIG_IsOK(res1)) {
42480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42481 }
42482 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42483 {
42484 PyThreadState* __tstate = wxPyBeginAllowThreads();
42485 result = (bool)((wxPickerBase const *)arg1)->IsTextCtrlGrowable();
42486 wxPyEndAllowThreads(__tstate);
42487 if (PyErr_Occurred()) SWIG_fail;
42488 }
42489 {
42490 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42491 }
42492 return resultobj;
42493 fail:
42494 return NULL;
42495 }
42496
42497
42498 SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42499 PyObject *resultobj = 0;
42500 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42501 bool arg2 = (bool) true ;
42502 void *argp1 = 0 ;
42503 int res1 = 0 ;
42504 bool val2 ;
42505 int ecode2 = 0 ;
42506 PyObject * obj0 = 0 ;
42507 PyObject * obj1 = 0 ;
42508 char * kwnames[] = {
42509 (char *) "self",(char *) "grow", NULL
42510 };
42511
42512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetTextCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
42513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42514 if (!SWIG_IsOK(res1)) {
42515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42516 }
42517 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42518 if (obj1) {
42519 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42520 if (!SWIG_IsOK(ecode2)) {
42521 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
42522 }
42523 arg2 = static_cast< bool >(val2);
42524 }
42525 {
42526 PyThreadState* __tstate = wxPyBeginAllowThreads();
42527 (arg1)->SetTextCtrlGrowable(arg2);
42528 wxPyEndAllowThreads(__tstate);
42529 if (PyErr_Occurred()) SWIG_fail;
42530 }
42531 resultobj = SWIG_Py_Void();
42532 return resultobj;
42533 fail:
42534 return NULL;
42535 }
42536
42537
42538 SWIGINTERN PyObject *_wrap_PickerBase_IsPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42539 PyObject *resultobj = 0;
42540 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42541 bool result;
42542 void *argp1 = 0 ;
42543 int res1 = 0 ;
42544 PyObject *swig_obj[1] ;
42545
42546 if (!args) SWIG_fail;
42547 swig_obj[0] = args;
42548 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42549 if (!SWIG_IsOK(res1)) {
42550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42551 }
42552 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42553 {
42554 PyThreadState* __tstate = wxPyBeginAllowThreads();
42555 result = (bool)((wxPickerBase const *)arg1)->IsPickerCtrlGrowable();
42556 wxPyEndAllowThreads(__tstate);
42557 if (PyErr_Occurred()) SWIG_fail;
42558 }
42559 {
42560 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42561 }
42562 return resultobj;
42563 fail:
42564 return NULL;
42565 }
42566
42567
42568 SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42569 PyObject *resultobj = 0;
42570 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42571 bool arg2 = (bool) true ;
42572 void *argp1 = 0 ;
42573 int res1 = 0 ;
42574 bool val2 ;
42575 int ecode2 = 0 ;
42576 PyObject * obj0 = 0 ;
42577 PyObject * obj1 = 0 ;
42578 char * kwnames[] = {
42579 (char *) "self",(char *) "grow", NULL
42580 };
42581
42582 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetPickerCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
42583 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42584 if (!SWIG_IsOK(res1)) {
42585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42586 }
42587 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42588 if (obj1) {
42589 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42590 if (!SWIG_IsOK(ecode2)) {
42591 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
42592 }
42593 arg2 = static_cast< bool >(val2);
42594 }
42595 {
42596 PyThreadState* __tstate = wxPyBeginAllowThreads();
42597 (arg1)->SetPickerCtrlGrowable(arg2);
42598 wxPyEndAllowThreads(__tstate);
42599 if (PyErr_Occurred()) SWIG_fail;
42600 }
42601 resultobj = SWIG_Py_Void();
42602 return resultobj;
42603 fail:
42604 return NULL;
42605 }
42606
42607
42608 SWIGINTERN PyObject *_wrap_PickerBase_HasTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42609 PyObject *resultobj = 0;
42610 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42611 bool result;
42612 void *argp1 = 0 ;
42613 int res1 = 0 ;
42614 PyObject *swig_obj[1] ;
42615
42616 if (!args) SWIG_fail;
42617 swig_obj[0] = args;
42618 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42619 if (!SWIG_IsOK(res1)) {
42620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_HasTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42621 }
42622 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42623 {
42624 PyThreadState* __tstate = wxPyBeginAllowThreads();
42625 result = (bool)((wxPickerBase const *)arg1)->HasTextCtrl();
42626 wxPyEndAllowThreads(__tstate);
42627 if (PyErr_Occurred()) SWIG_fail;
42628 }
42629 {
42630 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42631 }
42632 return resultobj;
42633 fail:
42634 return NULL;
42635 }
42636
42637
42638 SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42639 PyObject *resultobj = 0;
42640 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42641 wxTextCtrl *result = 0 ;
42642 void *argp1 = 0 ;
42643 int res1 = 0 ;
42644 PyObject *swig_obj[1] ;
42645
42646 if (!args) SWIG_fail;
42647 swig_obj[0] = args;
42648 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42649 if (!SWIG_IsOK(res1)) {
42650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42651 }
42652 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42653 {
42654 PyThreadState* __tstate = wxPyBeginAllowThreads();
42655 result = (wxTextCtrl *)(arg1)->GetTextCtrl();
42656 wxPyEndAllowThreads(__tstate);
42657 if (PyErr_Occurred()) SWIG_fail;
42658 }
42659 {
42660 resultobj = wxPyMake_wxObject(result, 0);
42661 }
42662 return resultobj;
42663 fail:
42664 return NULL;
42665 }
42666
42667
42668 SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42669 PyObject *resultobj = 0;
42670 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42671 wxControl *result = 0 ;
42672 void *argp1 = 0 ;
42673 int res1 = 0 ;
42674 PyObject *swig_obj[1] ;
42675
42676 if (!args) SWIG_fail;
42677 swig_obj[0] = args;
42678 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42679 if (!SWIG_IsOK(res1)) {
42680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42681 }
42682 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42683 {
42684 PyThreadState* __tstate = wxPyBeginAllowThreads();
42685 result = (wxControl *)(arg1)->GetPickerCtrl();
42686 wxPyEndAllowThreads(__tstate);
42687 if (PyErr_Occurred()) SWIG_fail;
42688 }
42689 {
42690 resultobj = wxPyMake_wxObject(result, 0);
42691 }
42692 return resultobj;
42693 fail:
42694 return NULL;
42695 }
42696
42697
42698 SWIGINTERN PyObject *PickerBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42699 PyObject *obj;
42700 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42701 SWIG_TypeNewClientData(SWIGTYPE_p_wxPickerBase, SWIG_NewClientData(obj));
42702 return SWIG_Py_Void();
42703 }
42704
42705 SWIGINTERN int ColourPickerCtrlNameStr_set(PyObject *) {
42706 SWIG_Error(SWIG_AttributeError,"Variable ColourPickerCtrlNameStr is read-only.");
42707 return 1;
42708 }
42709
42710
42711 SWIGINTERN PyObject *ColourPickerCtrlNameStr_get(void) {
42712 PyObject *pyobj = 0;
42713
42714 {
42715 #if wxUSE_UNICODE
42716 pyobj = PyUnicode_FromWideChar((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
42717 #else
42718 pyobj = PyString_FromStringAndSize((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
42719 #endif
42720 }
42721 return pyobj;
42722 }
42723
42724
42725 SWIGINTERN PyObject *_wrap_new_ColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42726 PyObject *resultobj = 0;
42727 wxWindow *arg1 = (wxWindow *) 0 ;
42728 int arg2 = (int) -1 ;
42729 wxColour const &arg3_defvalue = *wxBLACK ;
42730 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
42731 wxPoint const &arg4_defvalue = wxDefaultPosition ;
42732 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
42733 wxSize const &arg5_defvalue = wxDefaultSize ;
42734 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
42735 long arg6 = (long) wxCLRP_DEFAULT_STYLE ;
42736 wxValidator const &arg7_defvalue = wxDefaultValidator ;
42737 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
42738 wxString const &arg8_defvalue = wxPyColourPickerCtrlNameStr ;
42739 wxString *arg8 = (wxString *) &arg8_defvalue ;
42740 wxColourPickerCtrl *result = 0 ;
42741 void *argp1 = 0 ;
42742 int res1 = 0 ;
42743 int val2 ;
42744 int ecode2 = 0 ;
42745 wxColour temp3 ;
42746 wxPoint temp4 ;
42747 wxSize temp5 ;
42748 long val6 ;
42749 int ecode6 = 0 ;
42750 void *argp7 = 0 ;
42751 int res7 = 0 ;
42752 bool temp8 = false ;
42753 PyObject * obj0 = 0 ;
42754 PyObject * obj1 = 0 ;
42755 PyObject * obj2 = 0 ;
42756 PyObject * obj3 = 0 ;
42757 PyObject * obj4 = 0 ;
42758 PyObject * obj5 = 0 ;
42759 PyObject * obj6 = 0 ;
42760 PyObject * obj7 = 0 ;
42761 char * kwnames[] = {
42762 (char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
42763 };
42764
42765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ColourPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
42766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
42767 if (!SWIG_IsOK(res1)) {
42768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
42769 }
42770 arg1 = reinterpret_cast< wxWindow * >(argp1);
42771 if (obj1) {
42772 ecode2 = SWIG_AsVal_int(obj1, &val2);
42773 if (!SWIG_IsOK(ecode2)) {
42774 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerCtrl" "', expected argument " "2"" of type '" "int""'");
42775 }
42776 arg2 = static_cast< int >(val2);
42777 }
42778 if (obj2) {
42779 {
42780 arg3 = &temp3;
42781 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
42782 }
42783 }
42784 if (obj3) {
42785 {
42786 arg4 = &temp4;
42787 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
42788 }
42789 }
42790 if (obj4) {
42791 {
42792 arg5 = &temp5;
42793 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
42794 }
42795 }
42796 if (obj5) {
42797 ecode6 = SWIG_AsVal_long(obj5, &val6);
42798 if (!SWIG_IsOK(ecode6)) {
42799 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ColourPickerCtrl" "', expected argument " "6"" of type '" "long""'");
42800 }
42801 arg6 = static_cast< long >(val6);
42802 }
42803 if (obj6) {
42804 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
42805 if (!SWIG_IsOK(res7)) {
42806 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
42807 }
42808 if (!argp7) {
42809 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
42810 }
42811 arg7 = reinterpret_cast< wxValidator * >(argp7);
42812 }
42813 if (obj7) {
42814 {
42815 arg8 = wxString_in_helper(obj7);
42816 if (arg8 == NULL) SWIG_fail;
42817 temp8 = true;
42818 }
42819 }
42820 {
42821 if (!wxPyCheckForApp()) SWIG_fail;
42822 PyThreadState* __tstate = wxPyBeginAllowThreads();
42823 result = (wxColourPickerCtrl *)new wxColourPickerCtrl(arg1,arg2,(wxColour const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
42824 wxPyEndAllowThreads(__tstate);
42825 if (PyErr_Occurred()) SWIG_fail;
42826 }
42827 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_NEW | 0 );
42828 {
42829 if (temp8)
42830 delete arg8;
42831 }
42832 return resultobj;
42833 fail:
42834 {
42835 if (temp8)
42836 delete arg8;
42837 }
42838 return NULL;
42839 }
42840
42841
42842 SWIGINTERN PyObject *_wrap_new_PreColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42843 PyObject *resultobj = 0;
42844 wxColourPickerCtrl *result = 0 ;
42845
42846 if (!SWIG_Python_UnpackTuple(args,"new_PreColourPickerCtrl",0,0,0)) SWIG_fail;
42847 {
42848 if (!wxPyCheckForApp()) SWIG_fail;
42849 PyThreadState* __tstate = wxPyBeginAllowThreads();
42850 result = (wxColourPickerCtrl *)new wxColourPickerCtrl();
42851 wxPyEndAllowThreads(__tstate);
42852 if (PyErr_Occurred()) SWIG_fail;
42853 }
42854 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_OWN | 0 );
42855 return resultobj;
42856 fail:
42857 return NULL;
42858 }
42859
42860
42861 SWIGINTERN PyObject *_wrap_ColourPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42862 PyObject *resultobj = 0;
42863 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
42864 wxWindow *arg2 = (wxWindow *) 0 ;
42865 int arg3 ;
42866 wxColour const &arg4_defvalue = *wxBLACK ;
42867 wxColour *arg4 = (wxColour *) &arg4_defvalue ;
42868 wxPoint const &arg5_defvalue = wxDefaultPosition ;
42869 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
42870 wxSize const &arg6_defvalue = wxDefaultSize ;
42871 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
42872 long arg7 = (long) wxCLRP_DEFAULT_STYLE ;
42873 wxValidator const &arg8_defvalue = wxDefaultValidator ;
42874 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
42875 wxString const &arg9_defvalue = wxPyColourPickerCtrlNameStr ;
42876 wxString *arg9 = (wxString *) &arg9_defvalue ;
42877 bool result;
42878 void *argp1 = 0 ;
42879 int res1 = 0 ;
42880 void *argp2 = 0 ;
42881 int res2 = 0 ;
42882 int val3 ;
42883 int ecode3 = 0 ;
42884 wxColour temp4 ;
42885 wxPoint temp5 ;
42886 wxSize temp6 ;
42887 long val7 ;
42888 int ecode7 = 0 ;
42889 void *argp8 = 0 ;
42890 int res8 = 0 ;
42891 bool temp9 = false ;
42892 PyObject * obj0 = 0 ;
42893 PyObject * obj1 = 0 ;
42894 PyObject * obj2 = 0 ;
42895 PyObject * obj3 = 0 ;
42896 PyObject * obj4 = 0 ;
42897 PyObject * obj5 = 0 ;
42898 PyObject * obj6 = 0 ;
42899 PyObject * obj7 = 0 ;
42900 PyObject * obj8 = 0 ;
42901 char * kwnames[] = {
42902 (char *) "self",(char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
42903 };
42904
42905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ColourPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
42906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
42907 if (!SWIG_IsOK(res1)) {
42908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_Create" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
42909 }
42910 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
42911 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
42912 if (!SWIG_IsOK(res2)) {
42913 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ColourPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
42914 }
42915 arg2 = reinterpret_cast< wxWindow * >(argp2);
42916 ecode3 = SWIG_AsVal_int(obj2, &val3);
42917 if (!SWIG_IsOK(ecode3)) {
42918 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
42919 }
42920 arg3 = static_cast< int >(val3);
42921 if (obj3) {
42922 {
42923 arg4 = &temp4;
42924 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
42925 }
42926 }
42927 if (obj4) {
42928 {
42929 arg5 = &temp5;
42930 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
42931 }
42932 }
42933 if (obj5) {
42934 {
42935 arg6 = &temp6;
42936 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
42937 }
42938 }
42939 if (obj6) {
42940 ecode7 = SWIG_AsVal_long(obj6, &val7);
42941 if (!SWIG_IsOK(ecode7)) {
42942 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ColourPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
42943 }
42944 arg7 = static_cast< long >(val7);
42945 }
42946 if (obj7) {
42947 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
42948 if (!SWIG_IsOK(res8)) {
42949 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
42950 }
42951 if (!argp8) {
42952 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
42953 }
42954 arg8 = reinterpret_cast< wxValidator * >(argp8);
42955 }
42956 if (obj8) {
42957 {
42958 arg9 = wxString_in_helper(obj8);
42959 if (arg9 == NULL) SWIG_fail;
42960 temp9 = true;
42961 }
42962 }
42963 {
42964 PyThreadState* __tstate = wxPyBeginAllowThreads();
42965 result = (bool)(arg1)->Create(arg2,arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
42966 wxPyEndAllowThreads(__tstate);
42967 if (PyErr_Occurred()) SWIG_fail;
42968 }
42969 {
42970 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42971 }
42972 {
42973 if (temp9)
42974 delete arg9;
42975 }
42976 return resultobj;
42977 fail:
42978 {
42979 if (temp9)
42980 delete arg9;
42981 }
42982 return NULL;
42983 }
42984
42985
42986 SWIGINTERN PyObject *_wrap_ColourPickerCtrl_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42987 PyObject *resultobj = 0;
42988 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
42989 wxColour result;
42990 void *argp1 = 0 ;
42991 int res1 = 0 ;
42992 PyObject *swig_obj[1] ;
42993
42994 if (!args) SWIG_fail;
42995 swig_obj[0] = args;
42996 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
42997 if (!SWIG_IsOK(res1)) {
42998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_GetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl const *""'");
42999 }
43000 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43001 {
43002 PyThreadState* __tstate = wxPyBeginAllowThreads();
43003 result = ((wxColourPickerCtrl const *)arg1)->GetColour();
43004 wxPyEndAllowThreads(__tstate);
43005 if (PyErr_Occurred()) SWIG_fail;
43006 }
43007 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43008 return resultobj;
43009 fail:
43010 return NULL;
43011 }
43012
43013
43014 SWIGINTERN PyObject *_wrap_ColourPickerCtrl_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43015 PyObject *resultobj = 0;
43016 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43017 wxColour *arg2 = 0 ;
43018 void *argp1 = 0 ;
43019 int res1 = 0 ;
43020 wxColour temp2 ;
43021 PyObject * obj0 = 0 ;
43022 PyObject * obj1 = 0 ;
43023 char * kwnames[] = {
43024 (char *) "self",(char *) "col", NULL
43025 };
43026
43027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerCtrl_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43029 if (!SWIG_IsOK(res1)) {
43030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_SetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43031 }
43032 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43033 {
43034 arg2 = &temp2;
43035 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43036 }
43037 {
43038 PyThreadState* __tstate = wxPyBeginAllowThreads();
43039 (arg1)->SetColour((wxColour const &)*arg2);
43040 wxPyEndAllowThreads(__tstate);
43041 if (PyErr_Occurred()) SWIG_fail;
43042 }
43043 resultobj = SWIG_Py_Void();
43044 return resultobj;
43045 fail:
43046 return NULL;
43047 }
43048
43049
43050 SWIGINTERN PyObject *ColourPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43051 PyObject *obj;
43052 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43053 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerCtrl, SWIG_NewClientData(obj));
43054 return SWIG_Py_Void();
43055 }
43056
43057 SWIGINTERN PyObject *ColourPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43058 return SWIG_Python_InitShadowInstance(args);
43059 }
43060
43061 SWIGINTERN PyObject *_wrap_new_ColourPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43062 PyObject *resultobj = 0;
43063 wxObject *arg1 = (wxObject *) 0 ;
43064 int arg2 ;
43065 wxColour *arg3 = 0 ;
43066 wxColourPickerEvent *result = 0 ;
43067 void *argp1 = 0 ;
43068 int res1 = 0 ;
43069 int val2 ;
43070 int ecode2 = 0 ;
43071 wxColour temp3 ;
43072 PyObject * obj0 = 0 ;
43073 PyObject * obj1 = 0 ;
43074 PyObject * obj2 = 0 ;
43075 char * kwnames[] = {
43076 (char *) "generator",(char *) "id",(char *) "col", NULL
43077 };
43078
43079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ColourPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
43080 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
43081 if (!SWIG_IsOK(res1)) {
43082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
43083 }
43084 arg1 = reinterpret_cast< wxObject * >(argp1);
43085 ecode2 = SWIG_AsVal_int(obj1, &val2);
43086 if (!SWIG_IsOK(ecode2)) {
43087 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerEvent" "', expected argument " "2"" of type '" "int""'");
43088 }
43089 arg2 = static_cast< int >(val2);
43090 {
43091 arg3 = &temp3;
43092 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
43093 }
43094 {
43095 PyThreadState* __tstate = wxPyBeginAllowThreads();
43096 result = (wxColourPickerEvent *)new wxColourPickerEvent(arg1,arg2,(wxColour const &)*arg3);
43097 wxPyEndAllowThreads(__tstate);
43098 if (PyErr_Occurred()) SWIG_fail;
43099 }
43100 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerEvent, SWIG_POINTER_NEW | 0 );
43101 return resultobj;
43102 fail:
43103 return NULL;
43104 }
43105
43106
43107 SWIGINTERN PyObject *_wrap_ColourPickerEvent_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43108 PyObject *resultobj = 0;
43109 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43110 wxColour result;
43111 void *argp1 = 0 ;
43112 int res1 = 0 ;
43113 PyObject *swig_obj[1] ;
43114
43115 if (!args) SWIG_fail;
43116 swig_obj[0] = args;
43117 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43118 if (!SWIG_IsOK(res1)) {
43119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_GetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent const *""'");
43120 }
43121 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43122 {
43123 PyThreadState* __tstate = wxPyBeginAllowThreads();
43124 result = ((wxColourPickerEvent const *)arg1)->GetColour();
43125 wxPyEndAllowThreads(__tstate);
43126 if (PyErr_Occurred()) SWIG_fail;
43127 }
43128 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43129 return resultobj;
43130 fail:
43131 return NULL;
43132 }
43133
43134
43135 SWIGINTERN PyObject *_wrap_ColourPickerEvent_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43136 PyObject *resultobj = 0;
43137 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43138 wxColour *arg2 = 0 ;
43139 void *argp1 = 0 ;
43140 int res1 = 0 ;
43141 wxColour temp2 ;
43142 PyObject * obj0 = 0 ;
43143 PyObject * obj1 = 0 ;
43144 char * kwnames[] = {
43145 (char *) "self",(char *) "c", NULL
43146 };
43147
43148 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerEvent_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43149 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43150 if (!SWIG_IsOK(res1)) {
43151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_SetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent *""'");
43152 }
43153 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43154 {
43155 arg2 = &temp2;
43156 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43157 }
43158 {
43159 PyThreadState* __tstate = wxPyBeginAllowThreads();
43160 (arg1)->SetColour((wxColour const &)*arg2);
43161 wxPyEndAllowThreads(__tstate);
43162 if (PyErr_Occurred()) SWIG_fail;
43163 }
43164 resultobj = SWIG_Py_Void();
43165 return resultobj;
43166 fail:
43167 return NULL;
43168 }
43169
43170
43171 SWIGINTERN PyObject *ColourPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43172 PyObject *obj;
43173 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43174 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerEvent, SWIG_NewClientData(obj));
43175 return SWIG_Py_Void();
43176 }
43177
43178 SWIGINTERN PyObject *ColourPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43179 return SWIG_Python_InitShadowInstance(args);
43180 }
43181
43182 SWIGINTERN int FilePickerCtrlNameStr_set(PyObject *) {
43183 SWIG_Error(SWIG_AttributeError,"Variable FilePickerCtrlNameStr is read-only.");
43184 return 1;
43185 }
43186
43187
43188 SWIGINTERN PyObject *FilePickerCtrlNameStr_get(void) {
43189 PyObject *pyobj = 0;
43190
43191 {
43192 #if wxUSE_UNICODE
43193 pyobj = PyUnicode_FromWideChar((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43194 #else
43195 pyobj = PyString_FromStringAndSize((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43196 #endif
43197 }
43198 return pyobj;
43199 }
43200
43201
43202 SWIGINTERN int FileSelectorPromptStr_set(PyObject *) {
43203 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorPromptStr is read-only.");
43204 return 1;
43205 }
43206
43207
43208 SWIGINTERN PyObject *FileSelectorPromptStr_get(void) {
43209 PyObject *pyobj = 0;
43210
43211 {
43212 #if wxUSE_UNICODE
43213 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43214 #else
43215 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43216 #endif
43217 }
43218 return pyobj;
43219 }
43220
43221
43222 SWIGINTERN int DirPickerCtrlNameStr_set(PyObject *) {
43223 SWIG_Error(SWIG_AttributeError,"Variable DirPickerCtrlNameStr is read-only.");
43224 return 1;
43225 }
43226
43227
43228 SWIGINTERN PyObject *DirPickerCtrlNameStr_get(void) {
43229 PyObject *pyobj = 0;
43230
43231 {
43232 #if wxUSE_UNICODE
43233 pyobj = PyUnicode_FromWideChar((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43234 #else
43235 pyobj = PyString_FromStringAndSize((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43236 #endif
43237 }
43238 return pyobj;
43239 }
43240
43241
43242 SWIGINTERN int DirSelectorPromptStr_set(PyObject *) {
43243 SWIG_Error(SWIG_AttributeError,"Variable DirSelectorPromptStr is read-only.");
43244 return 1;
43245 }
43246
43247
43248 SWIGINTERN PyObject *DirSelectorPromptStr_get(void) {
43249 PyObject *pyobj = 0;
43250
43251 {
43252 #if wxUSE_UNICODE
43253 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
43254 #else
43255 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
43256 #endif
43257 }
43258 return pyobj;
43259 }
43260
43261
43262 SWIGINTERN int FileSelectorDefaultWildcardStr_set(PyObject *) {
43263 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
43264 return 1;
43265 }
43266
43267
43268 SWIGINTERN PyObject *FileSelectorDefaultWildcardStr_get(void) {
43269 PyObject *pyobj = 0;
43270
43271 {
43272 #if wxUSE_UNICODE
43273 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
43274 #else
43275 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
43276 #endif
43277 }
43278 return pyobj;
43279 }
43280
43281
43282 SWIGINTERN PyObject *_wrap_new_FilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43283 PyObject *resultobj = 0;
43284 wxWindow *arg1 = (wxWindow *) 0 ;
43285 int arg2 = (int) -1 ;
43286 wxString const &arg3_defvalue = wxPyEmptyString ;
43287 wxString *arg3 = (wxString *) &arg3_defvalue ;
43288 wxString const &arg4_defvalue = wxPyFileSelectorPromptStr ;
43289 wxString *arg4 = (wxString *) &arg4_defvalue ;
43290 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
43291 wxString *arg5 = (wxString *) &arg5_defvalue ;
43292 wxPoint const &arg6_defvalue = wxDefaultPosition ;
43293 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
43294 wxSize const &arg7_defvalue = wxDefaultSize ;
43295 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
43296 long arg8 = (long) wxFLP_DEFAULT_STYLE ;
43297 wxValidator const &arg9_defvalue = wxDefaultValidator ;
43298 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
43299 wxString const &arg10_defvalue = wxPyFilePickerCtrlNameStr ;
43300 wxString *arg10 = (wxString *) &arg10_defvalue ;
43301 wxFilePickerCtrl *result = 0 ;
43302 void *argp1 = 0 ;
43303 int res1 = 0 ;
43304 int val2 ;
43305 int ecode2 = 0 ;
43306 bool temp3 = false ;
43307 bool temp4 = false ;
43308 bool temp5 = false ;
43309 wxPoint temp6 ;
43310 wxSize temp7 ;
43311 long val8 ;
43312 int ecode8 = 0 ;
43313 void *argp9 = 0 ;
43314 int res9 = 0 ;
43315 bool temp10 = false ;
43316 PyObject * obj0 = 0 ;
43317 PyObject * obj1 = 0 ;
43318 PyObject * obj2 = 0 ;
43319 PyObject * obj3 = 0 ;
43320 PyObject * obj4 = 0 ;
43321 PyObject * obj5 = 0 ;
43322 PyObject * obj6 = 0 ;
43323 PyObject * obj7 = 0 ;
43324 PyObject * obj8 = 0 ;
43325 PyObject * obj9 = 0 ;
43326 char * kwnames[] = {
43327 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43328 };
43329
43330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_FilePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
43331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43332 if (!SWIG_IsOK(res1)) {
43333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FilePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43334 }
43335 arg1 = reinterpret_cast< wxWindow * >(argp1);
43336 if (obj1) {
43337 ecode2 = SWIG_AsVal_int(obj1, &val2);
43338 if (!SWIG_IsOK(ecode2)) {
43339 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FilePickerCtrl" "', expected argument " "2"" of type '" "int""'");
43340 }
43341 arg2 = static_cast< int >(val2);
43342 }
43343 if (obj2) {
43344 {
43345 arg3 = wxString_in_helper(obj2);
43346 if (arg3 == NULL) SWIG_fail;
43347 temp3 = true;
43348 }
43349 }
43350 if (obj3) {
43351 {
43352 arg4 = wxString_in_helper(obj3);
43353 if (arg4 == NULL) SWIG_fail;
43354 temp4 = true;
43355 }
43356 }
43357 if (obj4) {
43358 {
43359 arg5 = wxString_in_helper(obj4);
43360 if (arg5 == NULL) SWIG_fail;
43361 temp5 = true;
43362 }
43363 }
43364 if (obj5) {
43365 {
43366 arg6 = &temp6;
43367 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
43368 }
43369 }
43370 if (obj6) {
43371 {
43372 arg7 = &temp7;
43373 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
43374 }
43375 }
43376 if (obj7) {
43377 ecode8 = SWIG_AsVal_long(obj7, &val8);
43378 if (!SWIG_IsOK(ecode8)) {
43379 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_FilePickerCtrl" "', expected argument " "8"" of type '" "long""'");
43380 }
43381 arg8 = static_cast< long >(val8);
43382 }
43383 if (obj8) {
43384 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
43385 if (!SWIG_IsOK(res9)) {
43386 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
43387 }
43388 if (!argp9) {
43389 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
43390 }
43391 arg9 = reinterpret_cast< wxValidator * >(argp9);
43392 }
43393 if (obj9) {
43394 {
43395 arg10 = wxString_in_helper(obj9);
43396 if (arg10 == NULL) SWIG_fail;
43397 temp10 = true;
43398 }
43399 }
43400 {
43401 if (!wxPyCheckForApp()) SWIG_fail;
43402 PyThreadState* __tstate = wxPyBeginAllowThreads();
43403 result = (wxFilePickerCtrl *)new wxFilePickerCtrl(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
43404 wxPyEndAllowThreads(__tstate);
43405 if (PyErr_Occurred()) SWIG_fail;
43406 }
43407 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_NEW | 0 );
43408 {
43409 if (temp3)
43410 delete arg3;
43411 }
43412 {
43413 if (temp4)
43414 delete arg4;
43415 }
43416 {
43417 if (temp5)
43418 delete arg5;
43419 }
43420 {
43421 if (temp10)
43422 delete arg10;
43423 }
43424 return resultobj;
43425 fail:
43426 {
43427 if (temp3)
43428 delete arg3;
43429 }
43430 {
43431 if (temp4)
43432 delete arg4;
43433 }
43434 {
43435 if (temp5)
43436 delete arg5;
43437 }
43438 {
43439 if (temp10)
43440 delete arg10;
43441 }
43442 return NULL;
43443 }
43444
43445
43446 SWIGINTERN PyObject *_wrap_new_PreFilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43447 PyObject *resultobj = 0;
43448 wxFilePickerCtrl *result = 0 ;
43449
43450 if (!SWIG_Python_UnpackTuple(args,"new_PreFilePickerCtrl",0,0,0)) SWIG_fail;
43451 {
43452 if (!wxPyCheckForApp()) SWIG_fail;
43453 PyThreadState* __tstate = wxPyBeginAllowThreads();
43454 result = (wxFilePickerCtrl *)new wxFilePickerCtrl();
43455 wxPyEndAllowThreads(__tstate);
43456 if (PyErr_Occurred()) SWIG_fail;
43457 }
43458 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_OWN | 0 );
43459 return resultobj;
43460 fail:
43461 return NULL;
43462 }
43463
43464
43465 SWIGINTERN PyObject *_wrap_FilePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43466 PyObject *resultobj = 0;
43467 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43468 wxWindow *arg2 = (wxWindow *) 0 ;
43469 int arg3 = (int) -1 ;
43470 wxString const &arg4_defvalue = wxPyEmptyString ;
43471 wxString *arg4 = (wxString *) &arg4_defvalue ;
43472 wxString const &arg5_defvalue = wxPyFileSelectorPromptStr ;
43473 wxString *arg5 = (wxString *) &arg5_defvalue ;
43474 wxString const &arg6_defvalue = wxPyFileSelectorDefaultWildcardStr ;
43475 wxString *arg6 = (wxString *) &arg6_defvalue ;
43476 wxPoint const &arg7_defvalue = wxDefaultPosition ;
43477 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
43478 wxSize const &arg8_defvalue = wxDefaultSize ;
43479 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
43480 long arg9 = (long) wxFLP_DEFAULT_STYLE ;
43481 wxValidator const &arg10_defvalue = wxDefaultValidator ;
43482 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
43483 wxString const &arg11_defvalue = wxPyFilePickerCtrlNameStr ;
43484 wxString *arg11 = (wxString *) &arg11_defvalue ;
43485 bool result;
43486 void *argp1 = 0 ;
43487 int res1 = 0 ;
43488 void *argp2 = 0 ;
43489 int res2 = 0 ;
43490 int val3 ;
43491 int ecode3 = 0 ;
43492 bool temp4 = false ;
43493 bool temp5 = false ;
43494 bool temp6 = false ;
43495 wxPoint temp7 ;
43496 wxSize temp8 ;
43497 long val9 ;
43498 int ecode9 = 0 ;
43499 void *argp10 = 0 ;
43500 int res10 = 0 ;
43501 bool temp11 = false ;
43502 PyObject * obj0 = 0 ;
43503 PyObject * obj1 = 0 ;
43504 PyObject * obj2 = 0 ;
43505 PyObject * obj3 = 0 ;
43506 PyObject * obj4 = 0 ;
43507 PyObject * obj5 = 0 ;
43508 PyObject * obj6 = 0 ;
43509 PyObject * obj7 = 0 ;
43510 PyObject * obj8 = 0 ;
43511 PyObject * obj9 = 0 ;
43512 PyObject * obj10 = 0 ;
43513 char * kwnames[] = {
43514 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43515 };
43516
43517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:FilePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
43518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43519 if (!SWIG_IsOK(res1)) {
43520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_Create" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
43521 }
43522 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43523 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
43524 if (!SWIG_IsOK(res2)) {
43525 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FilePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
43526 }
43527 arg2 = reinterpret_cast< wxWindow * >(argp2);
43528 if (obj2) {
43529 ecode3 = SWIG_AsVal_int(obj2, &val3);
43530 if (!SWIG_IsOK(ecode3)) {
43531 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FilePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
43532 }
43533 arg3 = static_cast< int >(val3);
43534 }
43535 if (obj3) {
43536 {
43537 arg4 = wxString_in_helper(obj3);
43538 if (arg4 == NULL) SWIG_fail;
43539 temp4 = true;
43540 }
43541 }
43542 if (obj4) {
43543 {
43544 arg5 = wxString_in_helper(obj4);
43545 if (arg5 == NULL) SWIG_fail;
43546 temp5 = true;
43547 }
43548 }
43549 if (obj5) {
43550 {
43551 arg6 = wxString_in_helper(obj5);
43552 if (arg6 == NULL) SWIG_fail;
43553 temp6 = true;
43554 }
43555 }
43556 if (obj6) {
43557 {
43558 arg7 = &temp7;
43559 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
43560 }
43561 }
43562 if (obj7) {
43563 {
43564 arg8 = &temp8;
43565 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
43566 }
43567 }
43568 if (obj8) {
43569 ecode9 = SWIG_AsVal_long(obj8, &val9);
43570 if (!SWIG_IsOK(ecode9)) {
43571 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "FilePickerCtrl_Create" "', expected argument " "9"" of type '" "long""'");
43572 }
43573 arg9 = static_cast< long >(val9);
43574 }
43575 if (obj9) {
43576 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
43577 if (!SWIG_IsOK(res10)) {
43578 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
43579 }
43580 if (!argp10) {
43581 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
43582 }
43583 arg10 = reinterpret_cast< wxValidator * >(argp10);
43584 }
43585 if (obj10) {
43586 {
43587 arg11 = wxString_in_helper(obj10);
43588 if (arg11 == NULL) SWIG_fail;
43589 temp11 = true;
43590 }
43591 }
43592 {
43593 PyThreadState* __tstate = wxPyBeginAllowThreads();
43594 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxString const &)*arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
43595 wxPyEndAllowThreads(__tstate);
43596 if (PyErr_Occurred()) SWIG_fail;
43597 }
43598 {
43599 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43600 }
43601 {
43602 if (temp4)
43603 delete arg4;
43604 }
43605 {
43606 if (temp5)
43607 delete arg5;
43608 }
43609 {
43610 if (temp6)
43611 delete arg6;
43612 }
43613 {
43614 if (temp11)
43615 delete arg11;
43616 }
43617 return resultobj;
43618 fail:
43619 {
43620 if (temp4)
43621 delete arg4;
43622 }
43623 {
43624 if (temp5)
43625 delete arg5;
43626 }
43627 {
43628 if (temp6)
43629 delete arg6;
43630 }
43631 {
43632 if (temp11)
43633 delete arg11;
43634 }
43635 return NULL;
43636 }
43637
43638
43639 SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43640 PyObject *resultobj = 0;
43641 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43642 wxString result;
43643 void *argp1 = 0 ;
43644 int res1 = 0 ;
43645 PyObject *swig_obj[1] ;
43646
43647 if (!args) SWIG_fail;
43648 swig_obj[0] = args;
43649 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43650 if (!SWIG_IsOK(res1)) {
43651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
43652 }
43653 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43654 {
43655 PyThreadState* __tstate = wxPyBeginAllowThreads();
43656 result = ((wxFilePickerCtrl const *)arg1)->GetPath();
43657 wxPyEndAllowThreads(__tstate);
43658 if (PyErr_Occurred()) SWIG_fail;
43659 }
43660 {
43661 #if wxUSE_UNICODE
43662 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
43663 #else
43664 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
43665 #endif
43666 }
43667 return resultobj;
43668 fail:
43669 return NULL;
43670 }
43671
43672
43673 SWIGINTERN PyObject *_wrap_FilePickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43674 PyObject *resultobj = 0;
43675 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43676 wxString *arg2 = 0 ;
43677 void *argp1 = 0 ;
43678 int res1 = 0 ;
43679 bool temp2 = false ;
43680 PyObject * obj0 = 0 ;
43681 PyObject * obj1 = 0 ;
43682 char * kwnames[] = {
43683 (char *) "self",(char *) "str", NULL
43684 };
43685
43686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
43687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43688 if (!SWIG_IsOK(res1)) {
43689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
43690 }
43691 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43692 {
43693 arg2 = wxString_in_helper(obj1);
43694 if (arg2 == NULL) SWIG_fail;
43695 temp2 = true;
43696 }
43697 {
43698 PyThreadState* __tstate = wxPyBeginAllowThreads();
43699 (arg1)->SetPath((wxString const &)*arg2);
43700 wxPyEndAllowThreads(__tstate);
43701 if (PyErr_Occurred()) SWIG_fail;
43702 }
43703 resultobj = SWIG_Py_Void();
43704 {
43705 if (temp2)
43706 delete arg2;
43707 }
43708 return resultobj;
43709 fail:
43710 {
43711 if (temp2)
43712 delete arg2;
43713 }
43714 return NULL;
43715 }
43716
43717
43718 SWIGINTERN PyObject *_wrap_FilePickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43719 PyObject *resultobj = 0;
43720 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43721 wxString *arg2 = 0 ;
43722 bool result;
43723 void *argp1 = 0 ;
43724 int res1 = 0 ;
43725 bool temp2 = false ;
43726 PyObject * obj0 = 0 ;
43727 PyObject * obj1 = 0 ;
43728 char * kwnames[] = {
43729 (char *) "self",(char *) "path", NULL
43730 };
43731
43732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
43733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43734 if (!SWIG_IsOK(res1)) {
43735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
43736 }
43737 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43738 {
43739 arg2 = wxString_in_helper(obj1);
43740 if (arg2 == NULL) SWIG_fail;
43741 temp2 = true;
43742 }
43743 {
43744 PyThreadState* __tstate = wxPyBeginAllowThreads();
43745 result = (bool)((wxFilePickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
43746 wxPyEndAllowThreads(__tstate);
43747 if (PyErr_Occurred()) SWIG_fail;
43748 }
43749 {
43750 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43751 }
43752 {
43753 if (temp2)
43754 delete arg2;
43755 }
43756 return resultobj;
43757 fail:
43758 {
43759 if (temp2)
43760 delete arg2;
43761 }
43762 return NULL;
43763 }
43764
43765
43766 SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43767 PyObject *resultobj = 0;
43768 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43769 wxString result;
43770 void *argp1 = 0 ;
43771 int res1 = 0 ;
43772 PyObject *swig_obj[1] ;
43773
43774 if (!args) SWIG_fail;
43775 swig_obj[0] = args;
43776 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43777 if (!SWIG_IsOK(res1)) {
43778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
43779 }
43780 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43781 {
43782 PyThreadState* __tstate = wxPyBeginAllowThreads();
43783 result = ((wxFilePickerCtrl const *)arg1)->GetTextCtrlValue();
43784 wxPyEndAllowThreads(__tstate);
43785 if (PyErr_Occurred()) SWIG_fail;
43786 }
43787 {
43788 #if wxUSE_UNICODE
43789 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
43790 #else
43791 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
43792 #endif
43793 }
43794 return resultobj;
43795 fail:
43796 return NULL;
43797 }
43798
43799
43800 SWIGINTERN PyObject *FilePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43801 PyObject *obj;
43802 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43803 SWIG_TypeNewClientData(SWIGTYPE_p_wxFilePickerCtrl, SWIG_NewClientData(obj));
43804 return SWIG_Py_Void();
43805 }
43806
43807 SWIGINTERN PyObject *FilePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43808 return SWIG_Python_InitShadowInstance(args);
43809 }
43810
43811 SWIGINTERN PyObject *_wrap_new_DirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43812 PyObject *resultobj = 0;
43813 wxWindow *arg1 = (wxWindow *) 0 ;
43814 int arg2 = (int) -1 ;
43815 wxString const &arg3_defvalue = wxPyEmptyString ;
43816 wxString *arg3 = (wxString *) &arg3_defvalue ;
43817 wxString const &arg4_defvalue = wxPyDirSelectorPromptStr ;
43818 wxString *arg4 = (wxString *) &arg4_defvalue ;
43819 wxPoint const &arg5_defvalue = wxDefaultPosition ;
43820 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
43821 wxSize const &arg6_defvalue = wxDefaultSize ;
43822 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
43823 long arg7 = (long) wxDIRP_DEFAULT_STYLE ;
43824 wxValidator const &arg8_defvalue = wxDefaultValidator ;
43825 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
43826 wxString const &arg9_defvalue = wxPyDirPickerCtrlNameStr ;
43827 wxString *arg9 = (wxString *) &arg9_defvalue ;
43828 wxDirPickerCtrl *result = 0 ;
43829 void *argp1 = 0 ;
43830 int res1 = 0 ;
43831 int val2 ;
43832 int ecode2 = 0 ;
43833 bool temp3 = false ;
43834 bool temp4 = false ;
43835 wxPoint temp5 ;
43836 wxSize temp6 ;
43837 long val7 ;
43838 int ecode7 = 0 ;
43839 void *argp8 = 0 ;
43840 int res8 = 0 ;
43841 bool temp9 = false ;
43842 PyObject * obj0 = 0 ;
43843 PyObject * obj1 = 0 ;
43844 PyObject * obj2 = 0 ;
43845 PyObject * obj3 = 0 ;
43846 PyObject * obj4 = 0 ;
43847 PyObject * obj5 = 0 ;
43848 PyObject * obj6 = 0 ;
43849 PyObject * obj7 = 0 ;
43850 PyObject * obj8 = 0 ;
43851 char * kwnames[] = {
43852 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43853 };
43854
43855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_DirPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
43856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43857 if (!SWIG_IsOK(res1)) {
43858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43859 }
43860 arg1 = reinterpret_cast< wxWindow * >(argp1);
43861 if (obj1) {
43862 ecode2 = SWIG_AsVal_int(obj1, &val2);
43863 if (!SWIG_IsOK(ecode2)) {
43864 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirPickerCtrl" "', expected argument " "2"" of type '" "int""'");
43865 }
43866 arg2 = static_cast< int >(val2);
43867 }
43868 if (obj2) {
43869 {
43870 arg3 = wxString_in_helper(obj2);
43871 if (arg3 == NULL) SWIG_fail;
43872 temp3 = true;
43873 }
43874 }
43875 if (obj3) {
43876 {
43877 arg4 = wxString_in_helper(obj3);
43878 if (arg4 == NULL) SWIG_fail;
43879 temp4 = true;
43880 }
43881 }
43882 if (obj4) {
43883 {
43884 arg5 = &temp5;
43885 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
43886 }
43887 }
43888 if (obj5) {
43889 {
43890 arg6 = &temp6;
43891 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
43892 }
43893 }
43894 if (obj6) {
43895 ecode7 = SWIG_AsVal_long(obj6, &val7);
43896 if (!SWIG_IsOK(ecode7)) {
43897 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_DirPickerCtrl" "', expected argument " "7"" of type '" "long""'");
43898 }
43899 arg7 = static_cast< long >(val7);
43900 }
43901 if (obj7) {
43902 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
43903 if (!SWIG_IsOK(res8)) {
43904 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
43905 }
43906 if (!argp8) {
43907 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
43908 }
43909 arg8 = reinterpret_cast< wxValidator * >(argp8);
43910 }
43911 if (obj8) {
43912 {
43913 arg9 = wxString_in_helper(obj8);
43914 if (arg9 == NULL) SWIG_fail;
43915 temp9 = true;
43916 }
43917 }
43918 {
43919 if (!wxPyCheckForApp()) SWIG_fail;
43920 PyThreadState* __tstate = wxPyBeginAllowThreads();
43921 result = (wxDirPickerCtrl *)new wxDirPickerCtrl(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
43922 wxPyEndAllowThreads(__tstate);
43923 if (PyErr_Occurred()) SWIG_fail;
43924 }
43925 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_NEW | 0 );
43926 {
43927 if (temp3)
43928 delete arg3;
43929 }
43930 {
43931 if (temp4)
43932 delete arg4;
43933 }
43934 {
43935 if (temp9)
43936 delete arg9;
43937 }
43938 return resultobj;
43939 fail:
43940 {
43941 if (temp3)
43942 delete arg3;
43943 }
43944 {
43945 if (temp4)
43946 delete arg4;
43947 }
43948 {
43949 if (temp9)
43950 delete arg9;
43951 }
43952 return NULL;
43953 }
43954
43955
43956 SWIGINTERN PyObject *_wrap_new_PreDirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43957 PyObject *resultobj = 0;
43958 wxDirPickerCtrl *result = 0 ;
43959
43960 if (!SWIG_Python_UnpackTuple(args,"new_PreDirPickerCtrl",0,0,0)) SWIG_fail;
43961 {
43962 if (!wxPyCheckForApp()) SWIG_fail;
43963 PyThreadState* __tstate = wxPyBeginAllowThreads();
43964 result = (wxDirPickerCtrl *)new wxDirPickerCtrl();
43965 wxPyEndAllowThreads(__tstate);
43966 if (PyErr_Occurred()) SWIG_fail;
43967 }
43968 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_OWN | 0 );
43969 return resultobj;
43970 fail:
43971 return NULL;
43972 }
43973
43974
43975 SWIGINTERN PyObject *_wrap_DirPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43976 PyObject *resultobj = 0;
43977 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
43978 wxWindow *arg2 = (wxWindow *) 0 ;
43979 int arg3 = (int) -1 ;
43980 wxString const &arg4_defvalue = wxPyEmptyString ;
43981 wxString *arg4 = (wxString *) &arg4_defvalue ;
43982 wxString const &arg5_defvalue = wxPyDirSelectorPromptStr ;
43983 wxString *arg5 = (wxString *) &arg5_defvalue ;
43984 wxPoint const &arg6_defvalue = wxDefaultPosition ;
43985 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
43986 wxSize const &arg7_defvalue = wxDefaultSize ;
43987 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
43988 long arg8 = (long) wxDIRP_DEFAULT_STYLE ;
43989 wxValidator const &arg9_defvalue = wxDefaultValidator ;
43990 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
43991 wxString const &arg10_defvalue = wxPyDirPickerCtrlNameStr ;
43992 wxString *arg10 = (wxString *) &arg10_defvalue ;
43993 bool result;
43994 void *argp1 = 0 ;
43995 int res1 = 0 ;
43996 void *argp2 = 0 ;
43997 int res2 = 0 ;
43998 int val3 ;
43999 int ecode3 = 0 ;
44000 bool temp4 = false ;
44001 bool temp5 = false ;
44002 wxPoint temp6 ;
44003 wxSize temp7 ;
44004 long val8 ;
44005 int ecode8 = 0 ;
44006 void *argp9 = 0 ;
44007 int res9 = 0 ;
44008 bool temp10 = false ;
44009 PyObject * obj0 = 0 ;
44010 PyObject * obj1 = 0 ;
44011 PyObject * obj2 = 0 ;
44012 PyObject * obj3 = 0 ;
44013 PyObject * obj4 = 0 ;
44014 PyObject * obj5 = 0 ;
44015 PyObject * obj6 = 0 ;
44016 PyObject * obj7 = 0 ;
44017 PyObject * obj8 = 0 ;
44018 PyObject * obj9 = 0 ;
44019 char * kwnames[] = {
44020 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44021 };
44022
44023 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:DirPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
44024 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44025 if (!SWIG_IsOK(res1)) {
44026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_Create" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44027 }
44028 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44029 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44030 if (!SWIG_IsOK(res2)) {
44031 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44032 }
44033 arg2 = reinterpret_cast< wxWindow * >(argp2);
44034 if (obj2) {
44035 ecode3 = SWIG_AsVal_int(obj2, &val3);
44036 if (!SWIG_IsOK(ecode3)) {
44037 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44038 }
44039 arg3 = static_cast< int >(val3);
44040 }
44041 if (obj3) {
44042 {
44043 arg4 = wxString_in_helper(obj3);
44044 if (arg4 == NULL) SWIG_fail;
44045 temp4 = true;
44046 }
44047 }
44048 if (obj4) {
44049 {
44050 arg5 = wxString_in_helper(obj4);
44051 if (arg5 == NULL) SWIG_fail;
44052 temp5 = true;
44053 }
44054 }
44055 if (obj5) {
44056 {
44057 arg6 = &temp6;
44058 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
44059 }
44060 }
44061 if (obj6) {
44062 {
44063 arg7 = &temp7;
44064 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
44065 }
44066 }
44067 if (obj7) {
44068 ecode8 = SWIG_AsVal_long(obj7, &val8);
44069 if (!SWIG_IsOK(ecode8)) {
44070 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DirPickerCtrl_Create" "', expected argument " "8"" of type '" "long""'");
44071 }
44072 arg8 = static_cast< long >(val8);
44073 }
44074 if (obj8) {
44075 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
44076 if (!SWIG_IsOK(res9)) {
44077 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44078 }
44079 if (!argp9) {
44080 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44081 }
44082 arg9 = reinterpret_cast< wxValidator * >(argp9);
44083 }
44084 if (obj9) {
44085 {
44086 arg10 = wxString_in_helper(obj9);
44087 if (arg10 == NULL) SWIG_fail;
44088 temp10 = true;
44089 }
44090 }
44091 {
44092 PyThreadState* __tstate = wxPyBeginAllowThreads();
44093 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
44094 wxPyEndAllowThreads(__tstate);
44095 if (PyErr_Occurred()) SWIG_fail;
44096 }
44097 {
44098 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44099 }
44100 {
44101 if (temp4)
44102 delete arg4;
44103 }
44104 {
44105 if (temp5)
44106 delete arg5;
44107 }
44108 {
44109 if (temp10)
44110 delete arg10;
44111 }
44112 return resultobj;
44113 fail:
44114 {
44115 if (temp4)
44116 delete arg4;
44117 }
44118 {
44119 if (temp5)
44120 delete arg5;
44121 }
44122 {
44123 if (temp10)
44124 delete arg10;
44125 }
44126 return NULL;
44127 }
44128
44129
44130 SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44131 PyObject *resultobj = 0;
44132 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44133 wxString result;
44134 void *argp1 = 0 ;
44135 int res1 = 0 ;
44136 PyObject *swig_obj[1] ;
44137
44138 if (!args) SWIG_fail;
44139 swig_obj[0] = args;
44140 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44141 if (!SWIG_IsOK(res1)) {
44142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44143 }
44144 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44145 {
44146 PyThreadState* __tstate = wxPyBeginAllowThreads();
44147 result = ((wxDirPickerCtrl const *)arg1)->GetPath();
44148 wxPyEndAllowThreads(__tstate);
44149 if (PyErr_Occurred()) SWIG_fail;
44150 }
44151 {
44152 #if wxUSE_UNICODE
44153 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44154 #else
44155 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44156 #endif
44157 }
44158 return resultobj;
44159 fail:
44160 return NULL;
44161 }
44162
44163
44164 SWIGINTERN PyObject *_wrap_DirPickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44165 PyObject *resultobj = 0;
44166 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44167 wxString *arg2 = 0 ;
44168 void *argp1 = 0 ;
44169 int res1 = 0 ;
44170 bool temp2 = false ;
44171 PyObject * obj0 = 0 ;
44172 PyObject * obj1 = 0 ;
44173 char * kwnames[] = {
44174 (char *) "self",(char *) "str", NULL
44175 };
44176
44177 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44178 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44179 if (!SWIG_IsOK(res1)) {
44180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44181 }
44182 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44183 {
44184 arg2 = wxString_in_helper(obj1);
44185 if (arg2 == NULL) SWIG_fail;
44186 temp2 = true;
44187 }
44188 {
44189 PyThreadState* __tstate = wxPyBeginAllowThreads();
44190 (arg1)->SetPath((wxString const &)*arg2);
44191 wxPyEndAllowThreads(__tstate);
44192 if (PyErr_Occurred()) SWIG_fail;
44193 }
44194 resultobj = SWIG_Py_Void();
44195 {
44196 if (temp2)
44197 delete arg2;
44198 }
44199 return resultobj;
44200 fail:
44201 {
44202 if (temp2)
44203 delete arg2;
44204 }
44205 return NULL;
44206 }
44207
44208
44209 SWIGINTERN PyObject *_wrap_DirPickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44210 PyObject *resultobj = 0;
44211 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44212 wxString *arg2 = 0 ;
44213 bool result;
44214 void *argp1 = 0 ;
44215 int res1 = 0 ;
44216 bool temp2 = false ;
44217 PyObject * obj0 = 0 ;
44218 PyObject * obj1 = 0 ;
44219 char * kwnames[] = {
44220 (char *) "self",(char *) "path", NULL
44221 };
44222
44223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
44224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44225 if (!SWIG_IsOK(res1)) {
44226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44227 }
44228 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44229 {
44230 arg2 = wxString_in_helper(obj1);
44231 if (arg2 == NULL) SWIG_fail;
44232 temp2 = true;
44233 }
44234 {
44235 PyThreadState* __tstate = wxPyBeginAllowThreads();
44236 result = (bool)((wxDirPickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
44237 wxPyEndAllowThreads(__tstate);
44238 if (PyErr_Occurred()) SWIG_fail;
44239 }
44240 {
44241 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44242 }
44243 {
44244 if (temp2)
44245 delete arg2;
44246 }
44247 return resultobj;
44248 fail:
44249 {
44250 if (temp2)
44251 delete arg2;
44252 }
44253 return NULL;
44254 }
44255
44256
44257 SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44258 PyObject *resultobj = 0;
44259 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44260 wxString result;
44261 void *argp1 = 0 ;
44262 int res1 = 0 ;
44263 PyObject *swig_obj[1] ;
44264
44265 if (!args) SWIG_fail;
44266 swig_obj[0] = args;
44267 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44268 if (!SWIG_IsOK(res1)) {
44269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44270 }
44271 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44272 {
44273 PyThreadState* __tstate = wxPyBeginAllowThreads();
44274 result = ((wxDirPickerCtrl const *)arg1)->GetTextCtrlValue();
44275 wxPyEndAllowThreads(__tstate);
44276 if (PyErr_Occurred()) SWIG_fail;
44277 }
44278 {
44279 #if wxUSE_UNICODE
44280 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44281 #else
44282 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44283 #endif
44284 }
44285 return resultobj;
44286 fail:
44287 return NULL;
44288 }
44289
44290
44291 SWIGINTERN PyObject *DirPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44292 PyObject *obj;
44293 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44294 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirPickerCtrl, SWIG_NewClientData(obj));
44295 return SWIG_Py_Void();
44296 }
44297
44298 SWIGINTERN PyObject *DirPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44299 return SWIG_Python_InitShadowInstance(args);
44300 }
44301
44302 SWIGINTERN PyObject *_wrap_new_FileDirPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44303 PyObject *resultobj = 0;
44304 wxEventType arg1 ;
44305 wxObject *arg2 = (wxObject *) 0 ;
44306 int arg3 ;
44307 wxString *arg4 = 0 ;
44308 wxFileDirPickerEvent *result = 0 ;
44309 int val1 ;
44310 int ecode1 = 0 ;
44311 void *argp2 = 0 ;
44312 int res2 = 0 ;
44313 int val3 ;
44314 int ecode3 = 0 ;
44315 bool temp4 = false ;
44316 PyObject * obj0 = 0 ;
44317 PyObject * obj1 = 0 ;
44318 PyObject * obj2 = 0 ;
44319 PyObject * obj3 = 0 ;
44320 char * kwnames[] = {
44321 (char *) "type",(char *) "generator",(char *) "id",(char *) "path", NULL
44322 };
44323
44324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileDirPickerEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
44325 ecode1 = SWIG_AsVal_int(obj0, &val1);
44326 if (!SWIG_IsOK(ecode1)) {
44327 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FileDirPickerEvent" "', expected argument " "1"" of type '" "wxEventType""'");
44328 }
44329 arg1 = static_cast< wxEventType >(val1);
44330 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxObject, 0 | 0 );
44331 if (!SWIG_IsOK(res2)) {
44332 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FileDirPickerEvent" "', expected argument " "2"" of type '" "wxObject *""'");
44333 }
44334 arg2 = reinterpret_cast< wxObject * >(argp2);
44335 ecode3 = SWIG_AsVal_int(obj2, &val3);
44336 if (!SWIG_IsOK(ecode3)) {
44337 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FileDirPickerEvent" "', expected argument " "3"" of type '" "int""'");
44338 }
44339 arg3 = static_cast< int >(val3);
44340 {
44341 arg4 = wxString_in_helper(obj3);
44342 if (arg4 == NULL) SWIG_fail;
44343 temp4 = true;
44344 }
44345 {
44346 PyThreadState* __tstate = wxPyBeginAllowThreads();
44347 result = (wxFileDirPickerEvent *)new wxFileDirPickerEvent(arg1,arg2,arg3,(wxString const &)*arg4);
44348 wxPyEndAllowThreads(__tstate);
44349 if (PyErr_Occurred()) SWIG_fail;
44350 }
44351 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileDirPickerEvent, SWIG_POINTER_NEW | 0 );
44352 {
44353 if (temp4)
44354 delete arg4;
44355 }
44356 return resultobj;
44357 fail:
44358 {
44359 if (temp4)
44360 delete arg4;
44361 }
44362 return NULL;
44363 }
44364
44365
44366 SWIGINTERN PyObject *_wrap_FileDirPickerEvent_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44367 PyObject *resultobj = 0;
44368 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
44369 wxString result;
44370 void *argp1 = 0 ;
44371 int res1 = 0 ;
44372 PyObject *swig_obj[1] ;
44373
44374 if (!args) SWIG_fail;
44375 swig_obj[0] = args;
44376 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
44377 if (!SWIG_IsOK(res1)) {
44378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_GetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent const *""'");
44379 }
44380 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
44381 {
44382 PyThreadState* __tstate = wxPyBeginAllowThreads();
44383 result = ((wxFileDirPickerEvent const *)arg1)->GetPath();
44384 wxPyEndAllowThreads(__tstate);
44385 if (PyErr_Occurred()) SWIG_fail;
44386 }
44387 {
44388 #if wxUSE_UNICODE
44389 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44390 #else
44391 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44392 #endif
44393 }
44394 return resultobj;
44395 fail:
44396 return NULL;
44397 }
44398
44399
44400 SWIGINTERN PyObject *_wrap_FileDirPickerEvent_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44401 PyObject *resultobj = 0;
44402 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
44403 wxString *arg2 = 0 ;
44404 void *argp1 = 0 ;
44405 int res1 = 0 ;
44406 bool temp2 = false ;
44407 PyObject * obj0 = 0 ;
44408 PyObject * obj1 = 0 ;
44409 char * kwnames[] = {
44410 (char *) "self",(char *) "p", NULL
44411 };
44412
44413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDirPickerEvent_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
44415 if (!SWIG_IsOK(res1)) {
44416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_SetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent *""'");
44417 }
44418 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
44419 {
44420 arg2 = wxString_in_helper(obj1);
44421 if (arg2 == NULL) SWIG_fail;
44422 temp2 = true;
44423 }
44424 {
44425 PyThreadState* __tstate = wxPyBeginAllowThreads();
44426 (arg1)->SetPath((wxString const &)*arg2);
44427 wxPyEndAllowThreads(__tstate);
44428 if (PyErr_Occurred()) SWIG_fail;
44429 }
44430 resultobj = SWIG_Py_Void();
44431 {
44432 if (temp2)
44433 delete arg2;
44434 }
44435 return resultobj;
44436 fail:
44437 {
44438 if (temp2)
44439 delete arg2;
44440 }
44441 return NULL;
44442 }
44443
44444
44445 SWIGINTERN PyObject *FileDirPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44446 PyObject *obj;
44447 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44448 SWIG_TypeNewClientData(SWIGTYPE_p_wxFileDirPickerEvent, SWIG_NewClientData(obj));
44449 return SWIG_Py_Void();
44450 }
44451
44452 SWIGINTERN PyObject *FileDirPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44453 return SWIG_Python_InitShadowInstance(args);
44454 }
44455
44456 SWIGINTERN int FontPickerCtrlNameStr_set(PyObject *) {
44457 SWIG_Error(SWIG_AttributeError,"Variable FontPickerCtrlNameStr is read-only.");
44458 return 1;
44459 }
44460
44461
44462 SWIGINTERN PyObject *FontPickerCtrlNameStr_get(void) {
44463 PyObject *pyobj = 0;
44464
44465 {
44466 #if wxUSE_UNICODE
44467 pyobj = PyUnicode_FromWideChar((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
44468 #else
44469 pyobj = PyString_FromStringAndSize((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
44470 #endif
44471 }
44472 return pyobj;
44473 }
44474
44475
44476 SWIGINTERN PyObject *_wrap_new_FontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44477 PyObject *resultobj = 0;
44478 wxWindow *arg1 = (wxWindow *) 0 ;
44479 int arg2 = (int) -1 ;
44480 wxFont const &arg3_defvalue = *wxNORMAL_FONT ;
44481 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
44482 wxPoint const &arg4_defvalue = wxDefaultPosition ;
44483 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
44484 wxSize const &arg5_defvalue = wxDefaultSize ;
44485 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
44486 long arg6 = (long) wxFNTP_DEFAULT_STYLE ;
44487 wxValidator const &arg7_defvalue = wxDefaultValidator ;
44488 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
44489 wxString const &arg8_defvalue = wxPyFontPickerCtrlNameStr ;
44490 wxString *arg8 = (wxString *) &arg8_defvalue ;
44491 wxFontPickerCtrl *result = 0 ;
44492 void *argp1 = 0 ;
44493 int res1 = 0 ;
44494 int val2 ;
44495 int ecode2 = 0 ;
44496 void *argp3 = 0 ;
44497 int res3 = 0 ;
44498 wxPoint temp4 ;
44499 wxSize temp5 ;
44500 long val6 ;
44501 int ecode6 = 0 ;
44502 void *argp7 = 0 ;
44503 int res7 = 0 ;
44504 bool temp8 = false ;
44505 PyObject * obj0 = 0 ;
44506 PyObject * obj1 = 0 ;
44507 PyObject * obj2 = 0 ;
44508 PyObject * obj3 = 0 ;
44509 PyObject * obj4 = 0 ;
44510 PyObject * obj5 = 0 ;
44511 PyObject * obj6 = 0 ;
44512 PyObject * obj7 = 0 ;
44513 char * kwnames[] = {
44514 (char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44515 };
44516
44517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_FontPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
44518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
44519 if (!SWIG_IsOK(res1)) {
44520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
44521 }
44522 arg1 = reinterpret_cast< wxWindow * >(argp1);
44523 if (obj1) {
44524 ecode2 = SWIG_AsVal_int(obj1, &val2);
44525 if (!SWIG_IsOK(ecode2)) {
44526 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerCtrl" "', expected argument " "2"" of type '" "int""'");
44527 }
44528 arg2 = static_cast< int >(val2);
44529 }
44530 if (obj2) {
44531 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
44532 if (!SWIG_IsOK(res3)) {
44533 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
44534 }
44535 if (!argp3) {
44536 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
44537 }
44538 arg3 = reinterpret_cast< wxFont * >(argp3);
44539 }
44540 if (obj3) {
44541 {
44542 arg4 = &temp4;
44543 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
44544 }
44545 }
44546 if (obj4) {
44547 {
44548 arg5 = &temp5;
44549 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
44550 }
44551 }
44552 if (obj5) {
44553 ecode6 = SWIG_AsVal_long(obj5, &val6);
44554 if (!SWIG_IsOK(ecode6)) {
44555 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FontPickerCtrl" "', expected argument " "6"" of type '" "long""'");
44556 }
44557 arg6 = static_cast< long >(val6);
44558 }
44559 if (obj6) {
44560 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
44561 if (!SWIG_IsOK(res7)) {
44562 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
44563 }
44564 if (!argp7) {
44565 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
44566 }
44567 arg7 = reinterpret_cast< wxValidator * >(argp7);
44568 }
44569 if (obj7) {
44570 {
44571 arg8 = wxString_in_helper(obj7);
44572 if (arg8 == NULL) SWIG_fail;
44573 temp8 = true;
44574 }
44575 }
44576 {
44577 if (!wxPyCheckForApp()) SWIG_fail;
44578 PyThreadState* __tstate = wxPyBeginAllowThreads();
44579 result = (wxFontPickerCtrl *)new wxFontPickerCtrl(arg1,arg2,(wxFont const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
44580 wxPyEndAllowThreads(__tstate);
44581 if (PyErr_Occurred()) SWIG_fail;
44582 }
44583 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_NEW | 0 );
44584 {
44585 if (temp8)
44586 delete arg8;
44587 }
44588 return resultobj;
44589 fail:
44590 {
44591 if (temp8)
44592 delete arg8;
44593 }
44594 return NULL;
44595 }
44596
44597
44598 SWIGINTERN PyObject *_wrap_new_PreFontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44599 PyObject *resultobj = 0;
44600 wxFontPickerCtrl *result = 0 ;
44601
44602 if (!SWIG_Python_UnpackTuple(args,"new_PreFontPickerCtrl",0,0,0)) SWIG_fail;
44603 {
44604 if (!wxPyCheckForApp()) SWIG_fail;
44605 PyThreadState* __tstate = wxPyBeginAllowThreads();
44606 result = (wxFontPickerCtrl *)new wxFontPickerCtrl();
44607 wxPyEndAllowThreads(__tstate);
44608 if (PyErr_Occurred()) SWIG_fail;
44609 }
44610 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_OWN | 0 );
44611 return resultobj;
44612 fail:
44613 return NULL;
44614 }
44615
44616
44617 SWIGINTERN PyObject *_wrap_FontPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44618 PyObject *resultobj = 0;
44619 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44620 wxWindow *arg2 = (wxWindow *) 0 ;
44621 int arg3 = (int) -1 ;
44622 wxFont const &arg4_defvalue = *wxNORMAL_FONT ;
44623 wxFont *arg4 = (wxFont *) &arg4_defvalue ;
44624 wxPoint const &arg5_defvalue = wxDefaultPosition ;
44625 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
44626 wxSize const &arg6_defvalue = wxDefaultSize ;
44627 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
44628 long arg7 = (long) wxFNTP_DEFAULT_STYLE ;
44629 wxValidator const &arg8_defvalue = wxDefaultValidator ;
44630 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
44631 wxString const &arg9_defvalue = wxPyFontPickerCtrlNameStr ;
44632 wxString *arg9 = (wxString *) &arg9_defvalue ;
44633 bool result;
44634 void *argp1 = 0 ;
44635 int res1 = 0 ;
44636 void *argp2 = 0 ;
44637 int res2 = 0 ;
44638 int val3 ;
44639 int ecode3 = 0 ;
44640 void *argp4 = 0 ;
44641 int res4 = 0 ;
44642 wxPoint temp5 ;
44643 wxSize temp6 ;
44644 long val7 ;
44645 int ecode7 = 0 ;
44646 void *argp8 = 0 ;
44647 int res8 = 0 ;
44648 bool temp9 = false ;
44649 PyObject * obj0 = 0 ;
44650 PyObject * obj1 = 0 ;
44651 PyObject * obj2 = 0 ;
44652 PyObject * obj3 = 0 ;
44653 PyObject * obj4 = 0 ;
44654 PyObject * obj5 = 0 ;
44655 PyObject * obj6 = 0 ;
44656 PyObject * obj7 = 0 ;
44657 PyObject * obj8 = 0 ;
44658 char * kwnames[] = {
44659 (char *) "self",(char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44660 };
44661
44662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:FontPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
44663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
44664 if (!SWIG_IsOK(res1)) {
44665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_Create" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
44666 }
44667 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
44668 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44669 if (!SWIG_IsOK(res2)) {
44670 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44671 }
44672 arg2 = reinterpret_cast< wxWindow * >(argp2);
44673 if (obj2) {
44674 ecode3 = SWIG_AsVal_int(obj2, &val3);
44675 if (!SWIG_IsOK(ecode3)) {
44676 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44677 }
44678 arg3 = static_cast< int >(val3);
44679 }
44680 if (obj3) {
44681 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxFont, 0 | 0);
44682 if (!SWIG_IsOK(res4)) {
44683 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
44684 }
44685 if (!argp4) {
44686 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
44687 }
44688 arg4 = reinterpret_cast< wxFont * >(argp4);
44689 }
44690 if (obj4) {
44691 {
44692 arg5 = &temp5;
44693 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
44694 }
44695 }
44696 if (obj5) {
44697 {
44698 arg6 = &temp6;
44699 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
44700 }
44701 }
44702 if (obj6) {
44703 ecode7 = SWIG_AsVal_long(obj6, &val7);
44704 if (!SWIG_IsOK(ecode7)) {
44705 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "FontPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
44706 }
44707 arg7 = static_cast< long >(val7);
44708 }
44709 if (obj7) {
44710 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
44711 if (!SWIG_IsOK(res8)) {
44712 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
44713 }
44714 if (!argp8) {
44715 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
44716 }
44717 arg8 = reinterpret_cast< wxValidator * >(argp8);
44718 }
44719 if (obj8) {
44720 {
44721 arg9 = wxString_in_helper(obj8);
44722 if (arg9 == NULL) SWIG_fail;
44723 temp9 = true;
44724 }
44725 }
44726 {
44727 PyThreadState* __tstate = wxPyBeginAllowThreads();
44728 result = (bool)(arg1)->Create(arg2,arg3,(wxFont const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
44729 wxPyEndAllowThreads(__tstate);
44730 if (PyErr_Occurred()) SWIG_fail;
44731 }
44732 {
44733 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44734 }
44735 {
44736 if (temp9)
44737 delete arg9;
44738 }
44739 return resultobj;
44740 fail:
44741 {
44742 if (temp9)
44743 delete arg9;
44744 }
44745 return NULL;
44746 }
44747
44748
44749 SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44750 PyObject *resultobj = 0;
44751 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44752 wxFont result;
44753 void *argp1 = 0 ;
44754 int res1 = 0 ;
44755 PyObject *swig_obj[1] ;
44756
44757 if (!args) SWIG_fail;
44758 swig_obj[0] = args;
44759 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
44760 if (!SWIG_IsOK(res1)) {
44761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
44762 }
44763 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
44764 {
44765 PyThreadState* __tstate = wxPyBeginAllowThreads();
44766 result = ((wxFontPickerCtrl const *)arg1)->GetSelectedFont();
44767 wxPyEndAllowThreads(__tstate);
44768 if (PyErr_Occurred()) SWIG_fail;
44769 }
44770 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
44771 return resultobj;
44772 fail:
44773 return NULL;
44774 }
44775
44776
44777 SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44778 PyObject *resultobj = 0;
44779 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44780 wxFont *arg2 = 0 ;
44781 void *argp1 = 0 ;
44782 int res1 = 0 ;
44783 void *argp2 = 0 ;
44784 int res2 = 0 ;
44785 PyObject * obj0 = 0 ;
44786 PyObject * obj1 = 0 ;
44787 char * kwnames[] = {
44788 (char *) "self",(char *) "f", NULL
44789 };
44790
44791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetSelectedFont",kwnames,&obj0,&obj1)) SWIG_fail;
44792 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
44793 if (!SWIG_IsOK(res1)) {
44794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
44795 }
44796 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
44797 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
44798 if (!SWIG_IsOK(res2)) {
44799 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
44800 }
44801 if (!argp2) {
44802 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
44803 }
44804 arg2 = reinterpret_cast< wxFont * >(argp2);
44805 {
44806 PyThreadState* __tstate = wxPyBeginAllowThreads();
44807 (arg1)->SetSelectedFont((wxFont const &)*arg2);
44808 wxPyEndAllowThreads(__tstate);
44809 if (PyErr_Occurred()) SWIG_fail;
44810 }
44811 resultobj = SWIG_Py_Void();
44812 return resultobj;
44813 fail:
44814 return NULL;
44815 }
44816
44817
44818 SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44819 PyObject *resultobj = 0;
44820 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44821 unsigned int arg2 ;
44822 void *argp1 = 0 ;
44823 int res1 = 0 ;
44824 unsigned int val2 ;
44825 int ecode2 = 0 ;
44826 PyObject * obj0 = 0 ;
44827 PyObject * obj1 = 0 ;
44828 char * kwnames[] = {
44829 (char *) "self",(char *) "max", NULL
44830 };
44831
44832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetMaxPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
44833 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
44834 if (!SWIG_IsOK(res1)) {
44835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
44836 }
44837 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
44838 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
44839 if (!SWIG_IsOK(ecode2)) {
44840 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "2"" of type '" "unsigned int""'");
44841 }
44842 arg2 = static_cast< unsigned int >(val2);
44843 {
44844 PyThreadState* __tstate = wxPyBeginAllowThreads();
44845 (arg1)->SetMaxPointSize(arg2);
44846 wxPyEndAllowThreads(__tstate);
44847 if (PyErr_Occurred()) SWIG_fail;
44848 }
44849 resultobj = SWIG_Py_Void();
44850 return resultobj;
44851 fail:
44852 return NULL;
44853 }
44854
44855
44856 SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44857 PyObject *resultobj = 0;
44858 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44859 unsigned int result;
44860 void *argp1 = 0 ;
44861 int res1 = 0 ;
44862 PyObject *swig_obj[1] ;
44863
44864 if (!args) SWIG_fail;
44865 swig_obj[0] = args;
44866 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
44867 if (!SWIG_IsOK(res1)) {
44868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
44869 }
44870 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
44871 {
44872 PyThreadState* __tstate = wxPyBeginAllowThreads();
44873 result = (unsigned int)((wxFontPickerCtrl const *)arg1)->GetMaxPointSize();
44874 wxPyEndAllowThreads(__tstate);
44875 if (PyErr_Occurred()) SWIG_fail;
44876 }
44877 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
44878 return resultobj;
44879 fail:
44880 return NULL;
44881 }
44882
44883
44884 SWIGINTERN PyObject *FontPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44885 PyObject *obj;
44886 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44887 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerCtrl, SWIG_NewClientData(obj));
44888 return SWIG_Py_Void();
44889 }
44890
44891 SWIGINTERN PyObject *FontPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44892 return SWIG_Python_InitShadowInstance(args);
44893 }
44894
44895 SWIGINTERN PyObject *_wrap_new_FontPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44896 PyObject *resultobj = 0;
44897 wxObject *arg1 = (wxObject *) 0 ;
44898 int arg2 ;
44899 wxFont *arg3 = 0 ;
44900 wxFontPickerEvent *result = 0 ;
44901 void *argp1 = 0 ;
44902 int res1 = 0 ;
44903 int val2 ;
44904 int ecode2 = 0 ;
44905 void *argp3 = 0 ;
44906 int res3 = 0 ;
44907 PyObject * obj0 = 0 ;
44908 PyObject * obj1 = 0 ;
44909 PyObject * obj2 = 0 ;
44910 char * kwnames[] = {
44911 (char *) "generator",(char *) "id",(char *) "f", NULL
44912 };
44913
44914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_FontPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
44915 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
44916 if (!SWIG_IsOK(res1)) {
44917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
44918 }
44919 arg1 = reinterpret_cast< wxObject * >(argp1);
44920 ecode2 = SWIG_AsVal_int(obj1, &val2);
44921 if (!SWIG_IsOK(ecode2)) {
44922 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerEvent" "', expected argument " "2"" of type '" "int""'");
44923 }
44924 arg2 = static_cast< int >(val2);
44925 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
44926 if (!SWIG_IsOK(res3)) {
44927 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
44928 }
44929 if (!argp3) {
44930 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
44931 }
44932 arg3 = reinterpret_cast< wxFont * >(argp3);
44933 {
44934 PyThreadState* __tstate = wxPyBeginAllowThreads();
44935 result = (wxFontPickerEvent *)new wxFontPickerEvent(arg1,arg2,(wxFont const &)*arg3);
44936 wxPyEndAllowThreads(__tstate);
44937 if (PyErr_Occurred()) SWIG_fail;
44938 }
44939 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerEvent, SWIG_POINTER_NEW | 0 );
44940 return resultobj;
44941 fail:
44942 return NULL;
44943 }
44944
44945
44946 SWIGINTERN PyObject *_wrap_FontPickerEvent_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44947 PyObject *resultobj = 0;
44948 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
44949 wxFont result;
44950 void *argp1 = 0 ;
44951 int res1 = 0 ;
44952 PyObject *swig_obj[1] ;
44953
44954 if (!args) SWIG_fail;
44955 swig_obj[0] = args;
44956 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
44957 if (!SWIG_IsOK(res1)) {
44958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_GetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent const *""'");
44959 }
44960 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
44961 {
44962 PyThreadState* __tstate = wxPyBeginAllowThreads();
44963 result = ((wxFontPickerEvent const *)arg1)->GetFont();
44964 wxPyEndAllowThreads(__tstate);
44965 if (PyErr_Occurred()) SWIG_fail;
44966 }
44967 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
44968 return resultobj;
44969 fail:
44970 return NULL;
44971 }
44972
44973
44974 SWIGINTERN PyObject *_wrap_FontPickerEvent_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44975 PyObject *resultobj = 0;
44976 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
44977 wxFont *arg2 = 0 ;
44978 void *argp1 = 0 ;
44979 int res1 = 0 ;
44980 void *argp2 = 0 ;
44981 int res2 = 0 ;
44982 PyObject * obj0 = 0 ;
44983 PyObject * obj1 = 0 ;
44984 char * kwnames[] = {
44985 (char *) "self",(char *) "c", NULL
44986 };
44987
44988 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerEvent_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
44989 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
44990 if (!SWIG_IsOK(res1)) {
44991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_SetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent *""'");
44992 }
44993 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
44994 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
44995 if (!SWIG_IsOK(res2)) {
44996 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
44997 }
44998 if (!argp2) {
44999 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45000 }
45001 arg2 = reinterpret_cast< wxFont * >(argp2);
45002 {
45003 PyThreadState* __tstate = wxPyBeginAllowThreads();
45004 (arg1)->SetFont((wxFont const &)*arg2);
45005 wxPyEndAllowThreads(__tstate);
45006 if (PyErr_Occurred()) SWIG_fail;
45007 }
45008 resultobj = SWIG_Py_Void();
45009 return resultobj;
45010 fail:
45011 return NULL;
45012 }
45013
45014
45015 SWIGINTERN PyObject *FontPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45016 PyObject *obj;
45017 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45018 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerEvent, SWIG_NewClientData(obj));
45019 return SWIG_Py_Void();
45020 }
45021
45022 SWIGINTERN PyObject *FontPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45023 return SWIG_Python_InitShadowInstance(args);
45024 }
45025
45026 static PyMethodDef SwigMethods[] = {
45027 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL},
45028 { (char *)"new_PreButton", (PyCFunction)_wrap_new_PreButton, METH_NOARGS, NULL},
45029 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45030 { (char *)"Button_SetDefault", (PyCFunction)_wrap_Button_SetDefault, METH_O, NULL},
45031 { (char *)"Button_GetDefaultSize", (PyCFunction)_wrap_Button_GetDefaultSize, METH_NOARGS, NULL},
45032 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45033 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL},
45034 { (char *)"Button_swiginit", Button_swiginit, METH_VARARGS, NULL},
45035 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL},
45036 { (char *)"new_PreBitmapButton", (PyCFunction)_wrap_new_PreBitmapButton, METH_NOARGS, NULL},
45037 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45038 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction)_wrap_BitmapButton_GetBitmapLabel, METH_O, NULL},
45039 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction)_wrap_BitmapButton_GetBitmapDisabled, METH_O, NULL},
45040 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction)_wrap_BitmapButton_GetBitmapFocus, METH_O, NULL},
45041 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction)_wrap_BitmapButton_GetBitmapSelected, METH_O, NULL},
45042 { (char *)"BitmapButton_GetBitmapHover", (PyCFunction)_wrap_BitmapButton_GetBitmapHover, METH_O, NULL},
45043 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL},
45044 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL},
45045 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45046 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45047 { (char *)"BitmapButton_SetBitmapHover", (PyCFunction) _wrap_BitmapButton_SetBitmapHover, METH_VARARGS | METH_KEYWORDS, NULL},
45048 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
45049 { (char *)"BitmapButton_GetMarginX", (PyCFunction)_wrap_BitmapButton_GetMarginX, METH_O, NULL},
45050 { (char *)"BitmapButton_GetMarginY", (PyCFunction)_wrap_BitmapButton_GetMarginY, METH_O, NULL},
45051 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL},
45052 { (char *)"BitmapButton_swiginit", BitmapButton_swiginit, METH_VARARGS, NULL},
45053 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
45054 { (char *)"new_PreCheckBox", (PyCFunction)_wrap_new_PreCheckBox, METH_NOARGS, NULL},
45055 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45056 { (char *)"CheckBox_GetValue", (PyCFunction)_wrap_CheckBox_GetValue, METH_O, NULL},
45057 { (char *)"CheckBox_IsChecked", (PyCFunction)_wrap_CheckBox_IsChecked, METH_O, NULL},
45058 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45059 { (char *)"CheckBox_Get3StateValue", (PyCFunction)_wrap_CheckBox_Get3StateValue, METH_O, NULL},
45060 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL},
45061 { (char *)"CheckBox_Is3State", (PyCFunction)_wrap_CheckBox_Is3State, METH_O, NULL},
45062 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction)_wrap_CheckBox_Is3rdStateAllowedForUser, METH_O, NULL},
45063 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45064 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL},
45065 { (char *)"CheckBox_swiginit", CheckBox_swiginit, METH_VARARGS, NULL},
45066 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL},
45067 { (char *)"new_PreChoice", (PyCFunction)_wrap_new_PreChoice, METH_NOARGS, NULL},
45068 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45069 { (char *)"Choice_GetCurrentSelection", (PyCFunction)_wrap_Choice_GetCurrentSelection, METH_O, NULL},
45070 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45071 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL},
45072 { (char *)"Choice_swiginit", Choice_swiginit, METH_VARARGS, NULL},
45073 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL},
45074 { (char *)"new_PreComboBox", (PyCFunction)_wrap_new_PreComboBox, METH_NOARGS, NULL},
45075 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45076 { (char *)"ComboBox_GetValue", (PyCFunction)_wrap_ComboBox_GetValue, METH_O, NULL},
45077 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45078 { (char *)"ComboBox_Copy", (PyCFunction)_wrap_ComboBox_Copy, METH_O, NULL},
45079 { (char *)"ComboBox_Cut", (PyCFunction)_wrap_ComboBox_Cut, METH_O, NULL},
45080 { (char *)"ComboBox_Paste", (PyCFunction)_wrap_ComboBox_Paste, METH_O, NULL},
45081 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
45082 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction)_wrap_ComboBox_GetInsertionPoint, METH_O, NULL},
45083 { (char *)"ComboBox_GetLastPosition", (PyCFunction)_wrap_ComboBox_GetLastPosition, METH_O, NULL},
45084 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
45085 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL},
45086 { (char *)"ComboBox_GetCurrentSelection", (PyCFunction)_wrap_ComboBox_GetCurrentSelection, METH_O, NULL},
45087 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45088 { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
45089 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
45090 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction)_wrap_ComboBox_SetInsertionPointEnd, METH_O, NULL},
45091 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
45092 { (char *)"ComboBox_IsEditable", (PyCFunction)_wrap_ComboBox_IsEditable, METH_O, NULL},
45093 { (char *)"ComboBox_Undo", (PyCFunction)_wrap_ComboBox_Undo, METH_O, NULL},
45094 { (char *)"ComboBox_Redo", (PyCFunction)_wrap_ComboBox_Redo, METH_O, NULL},
45095 { (char *)"ComboBox_SelectAll", (PyCFunction)_wrap_ComboBox_SelectAll, METH_O, NULL},
45096 { (char *)"ComboBox_CanCopy", (PyCFunction)_wrap_ComboBox_CanCopy, METH_O, NULL},
45097 { (char *)"ComboBox_CanCut", (PyCFunction)_wrap_ComboBox_CanCut, METH_O, NULL},
45098 { (char *)"ComboBox_CanPaste", (PyCFunction)_wrap_ComboBox_CanPaste, METH_O, NULL},
45099 { (char *)"ComboBox_CanUndo", (PyCFunction)_wrap_ComboBox_CanUndo, METH_O, NULL},
45100 { (char *)"ComboBox_CanRedo", (PyCFunction)_wrap_ComboBox_CanRedo, METH_O, NULL},
45101 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45102 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL},
45103 { (char *)"ComboBox_swiginit", ComboBox_swiginit, METH_VARARGS, NULL},
45104 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL},
45105 { (char *)"new_PreGauge", (PyCFunction)_wrap_new_PreGauge, METH_NOARGS, NULL},
45106 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45107 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45108 { (char *)"Gauge_GetRange", (PyCFunction)_wrap_Gauge_GetRange, METH_O, NULL},
45109 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45110 { (char *)"Gauge_GetValue", (PyCFunction)_wrap_Gauge_GetValue, METH_O, NULL},
45111 { (char *)"Gauge_IsVertical", (PyCFunction)_wrap_Gauge_IsVertical, METH_O, NULL},
45112 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45113 { (char *)"Gauge_GetShadowWidth", (PyCFunction)_wrap_Gauge_GetShadowWidth, METH_O, NULL},
45114 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL},
45115 { (char *)"Gauge_GetBezelFace", (PyCFunction)_wrap_Gauge_GetBezelFace, METH_O, NULL},
45116 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45117 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL},
45118 { (char *)"Gauge_swiginit", Gauge_swiginit, METH_VARARGS, NULL},
45119 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL},
45120 { (char *)"new_PreStaticBox", (PyCFunction)_wrap_new_PreStaticBox, METH_NOARGS, NULL},
45121 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45122 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45123 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL},
45124 { (char *)"StaticBox_swiginit", StaticBox_swiginit, METH_VARARGS, NULL},
45125 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL},
45126 { (char *)"new_PreStaticLine", (PyCFunction)_wrap_new_PreStaticLine, METH_NOARGS, NULL},
45127 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45128 { (char *)"StaticLine_IsVertical", (PyCFunction)_wrap_StaticLine_IsVertical, METH_O, NULL},
45129 { (char *)"StaticLine_GetDefaultSize", (PyCFunction)_wrap_StaticLine_GetDefaultSize, METH_NOARGS, NULL},
45130 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45131 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL},
45132 { (char *)"StaticLine_swiginit", StaticLine_swiginit, METH_VARARGS, NULL},
45133 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL},
45134 { (char *)"new_PreStaticText", (PyCFunction)_wrap_new_PreStaticText, METH_NOARGS, NULL},
45135 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45136 { (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL},
45137 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45138 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL},
45139 { (char *)"StaticText_swiginit", StaticText_swiginit, METH_VARARGS, NULL},
45140 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45141 { (char *)"new_PreStaticBitmap", (PyCFunction)_wrap_new_PreStaticBitmap, METH_NOARGS, NULL},
45142 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45143 { (char *)"StaticBitmap_GetBitmap", (PyCFunction)_wrap_StaticBitmap_GetBitmap, METH_O, NULL},
45144 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45145 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
45146 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45147 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL},
45148 { (char *)"StaticBitmap_swiginit", StaticBitmap_swiginit, METH_VARARGS, NULL},
45149 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL},
45150 { (char *)"new_PreListBox", (PyCFunction)_wrap_new_PreListBox, METH_NOARGS, NULL},
45151 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45152 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
45153 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL},
45154 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL},
45155 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45156 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45157 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL},
45158 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL},
45159 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL},
45160 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45161 { (char *)"ListBox_GetSelections", (PyCFunction)_wrap_ListBox_GetSelections, METH_O, NULL},
45162 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL},
45163 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL},
45164 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45165 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45166 { (char *)"ListBox_IsSorted", (PyCFunction)_wrap_ListBox_IsSorted, METH_O, NULL},
45167 { (char *)"ListBox_HitTest", (PyCFunction) _wrap_ListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
45168 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45169 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45170 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
45171 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45172 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL},
45173 { (char *)"ListBox_swiginit", ListBox_swiginit, METH_VARARGS, NULL},
45174 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL},
45175 { (char *)"new_PreCheckListBox", (PyCFunction)_wrap_new_PreCheckListBox, METH_NOARGS, NULL},
45176 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45177 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL},
45178 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL},
45179 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL},
45180 { (char *)"CheckListBox_swiginit", CheckListBox_swiginit, METH_VARARGS, NULL},
45181 { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL},
45182 { (char *)"delete_TextAttr", (PyCFunction)_wrap_delete_TextAttr, METH_O, NULL},
45183 { (char *)"TextAttr_Init", (PyCFunction)_wrap_TextAttr_Init, METH_O, NULL},
45184 { (char *)"TextAttr_Merge", (PyCFunction) _wrap_TextAttr_Merge, METH_VARARGS | METH_KEYWORDS, NULL},
45185 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45186 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45187 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
45188 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL},
45189 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL},
45190 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL},
45191 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL},
45192 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
45193 { (char *)"TextAttr_HasTextColour", (PyCFunction)_wrap_TextAttr_HasTextColour, METH_O, NULL},
45194 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction)_wrap_TextAttr_HasBackgroundColour, METH_O, NULL},
45195 { (char *)"TextAttr_HasFont", (PyCFunction)_wrap_TextAttr_HasFont, METH_O, NULL},
45196 { (char *)"TextAttr_HasAlignment", (PyCFunction)_wrap_TextAttr_HasAlignment, METH_O, NULL},
45197 { (char *)"TextAttr_HasTabs", (PyCFunction)_wrap_TextAttr_HasTabs, METH_O, NULL},
45198 { (char *)"TextAttr_HasLeftIndent", (PyCFunction)_wrap_TextAttr_HasLeftIndent, METH_O, NULL},
45199 { (char *)"TextAttr_HasRightIndent", (PyCFunction)_wrap_TextAttr_HasRightIndent, METH_O, NULL},
45200 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL},
45201 { (char *)"TextAttr_GetTextColour", (PyCFunction)_wrap_TextAttr_GetTextColour, METH_O, NULL},
45202 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction)_wrap_TextAttr_GetBackgroundColour, METH_O, NULL},
45203 { (char *)"TextAttr_GetFont", (PyCFunction)_wrap_TextAttr_GetFont, METH_O, NULL},
45204 { (char *)"TextAttr_GetAlignment", (PyCFunction)_wrap_TextAttr_GetAlignment, METH_O, NULL},
45205 { (char *)"TextAttr_GetTabs", (PyCFunction)_wrap_TextAttr_GetTabs, METH_O, NULL},
45206 { (char *)"TextAttr_GetLeftIndent", (PyCFunction)_wrap_TextAttr_GetLeftIndent, METH_O, NULL},
45207 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction)_wrap_TextAttr_GetLeftSubIndent, METH_O, NULL},
45208 { (char *)"TextAttr_GetRightIndent", (PyCFunction)_wrap_TextAttr_GetRightIndent, METH_O, NULL},
45209 { (char *)"TextAttr_GetFlags", (PyCFunction)_wrap_TextAttr_GetFlags, METH_O, NULL},
45210 { (char *)"TextAttr_IsDefault", (PyCFunction)_wrap_TextAttr_IsDefault, METH_O, NULL},
45211 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL},
45212 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL},
45213 { (char *)"TextAttr_swiginit", TextAttr_swiginit, METH_VARARGS, NULL},
45214 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45215 { (char *)"new_PreTextCtrl", (PyCFunction)_wrap_new_PreTextCtrl, METH_NOARGS, NULL},
45216 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45217 { (char *)"TextCtrl_GetValue", (PyCFunction)_wrap_TextCtrl_GetValue, METH_O, NULL},
45218 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45219 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45220 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL},
45221 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL},
45222 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction)_wrap_TextCtrl_GetNumberOfLines, METH_O, NULL},
45223 { (char *)"TextCtrl_IsModified", (PyCFunction)_wrap_TextCtrl_IsModified, METH_O, NULL},
45224 { (char *)"TextCtrl_IsEditable", (PyCFunction)_wrap_TextCtrl_IsEditable, METH_O, NULL},
45225 { (char *)"TextCtrl_IsSingleLine", (PyCFunction)_wrap_TextCtrl_IsSingleLine, METH_O, NULL},
45226 { (char *)"TextCtrl_IsMultiLine", (PyCFunction)_wrap_TextCtrl_IsMultiLine, METH_O, NULL},
45227 { (char *)"TextCtrl_GetSelection", (PyCFunction)_wrap_TextCtrl_GetSelection, METH_O, NULL},
45228 { (char *)"TextCtrl_GetStringSelection", (PyCFunction)_wrap_TextCtrl_GetStringSelection, METH_O, NULL},
45229 { (char *)"TextCtrl_Clear", (PyCFunction)_wrap_TextCtrl_Clear, METH_O, NULL},
45230 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
45231 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
45232 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
45233 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
45234 { (char *)"TextCtrl_MarkDirty", (PyCFunction)_wrap_TextCtrl_MarkDirty, METH_O, NULL},
45235 { (char *)"TextCtrl_DiscardEdits", (PyCFunction)_wrap_TextCtrl_DiscardEdits, METH_O, NULL},
45236 { (char *)"TextCtrl_SetModified", (PyCFunction) _wrap_TextCtrl_SetModified, METH_VARARGS | METH_KEYWORDS, NULL},
45237 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL},
45238 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL},
45239 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL},
45240 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL},
45241 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45242 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45243 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45244 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction)_wrap_TextCtrl_GetDefaultStyle, METH_O, NULL},
45245 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45246 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL},
45247 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45248 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
45249 { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL},
45250 { (char *)"TextCtrl_Copy", (PyCFunction)_wrap_TextCtrl_Copy, METH_O, NULL},
45251 { (char *)"TextCtrl_Cut", (PyCFunction)_wrap_TextCtrl_Cut, METH_O, NULL},
45252 { (char *)"TextCtrl_Paste", (PyCFunction)_wrap_TextCtrl_Paste, METH_O, NULL},
45253 { (char *)"TextCtrl_CanCopy", (PyCFunction)_wrap_TextCtrl_CanCopy, METH_O, NULL},
45254 { (char *)"TextCtrl_CanCut", (PyCFunction)_wrap_TextCtrl_CanCut, METH_O, NULL},
45255 { (char *)"TextCtrl_CanPaste", (PyCFunction)_wrap_TextCtrl_CanPaste, METH_O, NULL},
45256 { (char *)"TextCtrl_Undo", (PyCFunction)_wrap_TextCtrl_Undo, METH_O, NULL},
45257 { (char *)"TextCtrl_Redo", (PyCFunction)_wrap_TextCtrl_Redo, METH_O, NULL},
45258 { (char *)"TextCtrl_CanUndo", (PyCFunction)_wrap_TextCtrl_CanUndo, METH_O, NULL},
45259 { (char *)"TextCtrl_CanRedo", (PyCFunction)_wrap_TextCtrl_CanRedo, METH_O, NULL},
45260 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
45261 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_TextCtrl_SetInsertionPointEnd, METH_O, NULL},
45262 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction)_wrap_TextCtrl_GetInsertionPoint, METH_O, NULL},
45263 { (char *)"TextCtrl_GetLastPosition", (PyCFunction)_wrap_TextCtrl_GetLastPosition, METH_O, NULL},
45264 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45265 { (char *)"TextCtrl_SelectAll", (PyCFunction)_wrap_TextCtrl_SelectAll, METH_O, NULL},
45266 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
45267 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL},
45268 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
45269 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45270 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL},
45271 { (char *)"TextCtrl_swiginit", TextCtrl_swiginit, METH_VARARGS, NULL},
45272 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45273 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction)_wrap_TextUrlEvent_GetMouseEvent, METH_O, NULL},
45274 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction)_wrap_TextUrlEvent_GetURLStart, METH_O, NULL},
45275 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction)_wrap_TextUrlEvent_GetURLEnd, METH_O, NULL},
45276 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL},
45277 { (char *)"TextUrlEvent_swiginit", TextUrlEvent_swiginit, METH_VARARGS, NULL},
45278 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL},
45279 { (char *)"new_PreScrollBar", (PyCFunction)_wrap_new_PreScrollBar, METH_NOARGS, NULL},
45280 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45281 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction)_wrap_ScrollBar_GetThumbPosition, METH_O, NULL},
45282 { (char *)"ScrollBar_GetThumbSize", (PyCFunction)_wrap_ScrollBar_GetThumbSize, METH_O, NULL},
45283 { (char *)"ScrollBar_GetPageSize", (PyCFunction)_wrap_ScrollBar_GetPageSize, METH_O, NULL},
45284 { (char *)"ScrollBar_GetRange", (PyCFunction)_wrap_ScrollBar_GetRange, METH_O, NULL},
45285 { (char *)"ScrollBar_IsVertical", (PyCFunction)_wrap_ScrollBar_IsVertical, METH_O, NULL},
45286 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45287 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45288 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL},
45289 { (char *)"ScrollBar_swiginit", ScrollBar_swiginit, METH_VARARGS, NULL},
45290 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL},
45291 { (char *)"new_PreSpinButton", (PyCFunction)_wrap_new_PreSpinButton, METH_NOARGS, NULL},
45292 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45293 { (char *)"SpinButton_GetValue", (PyCFunction)_wrap_SpinButton_GetValue, METH_O, NULL},
45294 { (char *)"SpinButton_GetMin", (PyCFunction)_wrap_SpinButton_GetMin, METH_O, NULL},
45295 { (char *)"SpinButton_GetMax", (PyCFunction)_wrap_SpinButton_GetMax, METH_O, NULL},
45296 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45297 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
45298 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
45299 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45300 { (char *)"SpinButton_IsVertical", (PyCFunction)_wrap_SpinButton_IsVertical, METH_O, NULL},
45301 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45302 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL},
45303 { (char *)"SpinButton_swiginit", SpinButton_swiginit, METH_VARARGS, NULL},
45304 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45305 { (char *)"new_PreSpinCtrl", (PyCFunction)_wrap_new_PreSpinCtrl, METH_NOARGS, NULL},
45306 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45307 { (char *)"SpinCtrl_GetValue", (PyCFunction)_wrap_SpinCtrl_GetValue, METH_O, NULL},
45308 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45309 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL},
45310 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45311 { (char *)"SpinCtrl_GetMin", (PyCFunction)_wrap_SpinCtrl_GetMin, METH_O, NULL},
45312 { (char *)"SpinCtrl_GetMax", (PyCFunction)_wrap_SpinCtrl_GetMax, METH_O, NULL},
45313 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45314 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45315 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL},
45316 { (char *)"SpinCtrl_swiginit", SpinCtrl_swiginit, METH_VARARGS, NULL},
45317 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45318 { (char *)"SpinEvent_GetPosition", (PyCFunction)_wrap_SpinEvent_GetPosition, METH_O, NULL},
45319 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45320 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL},
45321 { (char *)"SpinEvent_swiginit", SpinEvent_swiginit, METH_VARARGS, NULL},
45322 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL},
45323 { (char *)"new_PreRadioBox", (PyCFunction)_wrap_new_PreRadioBox, METH_NOARGS, NULL},
45324 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45325 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45326 { (char *)"RadioBox_GetSelection", (PyCFunction)_wrap_RadioBox_GetSelection, METH_O, NULL},
45327 { (char *)"RadioBox_GetStringSelection", (PyCFunction)_wrap_RadioBox_GetStringSelection, METH_O, NULL},
45328 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45329 { (char *)"RadioBox_GetCount", (PyCFunction)_wrap_RadioBox_GetCount, METH_O, NULL},
45330 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL},
45331 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
45332 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
45333 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL},
45334 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL},
45335 { (char *)"RadioBox_IsItemEnabled", (PyCFunction) _wrap_RadioBox_IsItemEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
45336 { (char *)"RadioBox_IsItemShown", (PyCFunction) _wrap_RadioBox_IsItemShown, METH_VARARGS | METH_KEYWORDS, NULL},
45337 { (char *)"RadioBox_GetColumnCount", (PyCFunction)_wrap_RadioBox_GetColumnCount, METH_O, NULL},
45338 { (char *)"RadioBox_GetRowCount", (PyCFunction)_wrap_RadioBox_GetRowCount, METH_O, NULL},
45339 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
45340 { (char *)"RadioBox_SetItemToolTip", (PyCFunction) _wrap_RadioBox_SetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
45341 { (char *)"RadioBox_GetItemToolTip", (PyCFunction) _wrap_RadioBox_GetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
45342 { (char *)"RadioBox_SetItemHelpText", (PyCFunction) _wrap_RadioBox_SetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
45343 { (char *)"RadioBox_GetItemHelpText", (PyCFunction) _wrap_RadioBox_GetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
45344 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45345 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL},
45346 { (char *)"RadioBox_swiginit", RadioBox_swiginit, METH_VARARGS, NULL},
45347 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL},
45348 { (char *)"new_PreRadioButton", (PyCFunction)_wrap_new_PreRadioButton, METH_NOARGS, NULL},
45349 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45350 { (char *)"RadioButton_GetValue", (PyCFunction)_wrap_RadioButton_GetValue, METH_O, NULL},
45351 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45352 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45353 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL},
45354 { (char *)"RadioButton_swiginit", RadioButton_swiginit, METH_VARARGS, NULL},
45355 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL},
45356 { (char *)"new_PreSlider", (PyCFunction)_wrap_new_PreSlider, METH_NOARGS, NULL},
45357 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45358 { (char *)"Slider_GetValue", (PyCFunction)_wrap_Slider_GetValue, METH_O, NULL},
45359 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45360 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45361 { (char *)"Slider_GetMin", (PyCFunction)_wrap_Slider_GetMin, METH_O, NULL},
45362 { (char *)"Slider_GetMax", (PyCFunction)_wrap_Slider_GetMax, METH_O, NULL},
45363 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
45364 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
45365 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL},
45366 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
45367 { (char *)"Slider_GetLineSize", (PyCFunction)_wrap_Slider_GetLineSize, METH_O, NULL},
45368 { (char *)"Slider_GetPageSize", (PyCFunction)_wrap_Slider_GetPageSize, METH_O, NULL},
45369 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL},
45370 { (char *)"Slider_GetThumbLength", (PyCFunction)_wrap_Slider_GetThumbLength, METH_O, NULL},
45371 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL},
45372 { (char *)"Slider_GetTickFreq", (PyCFunction)_wrap_Slider_GetTickFreq, METH_O, NULL},
45373 { (char *)"Slider_ClearTicks", (PyCFunction)_wrap_Slider_ClearTicks, METH_O, NULL},
45374 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL},
45375 { (char *)"Slider_ClearSel", (PyCFunction)_wrap_Slider_ClearSel, METH_O, NULL},
45376 { (char *)"Slider_GetSelEnd", (PyCFunction)_wrap_Slider_GetSelEnd, METH_O, NULL},
45377 { (char *)"Slider_GetSelStart", (PyCFunction)_wrap_Slider_GetSelStart, METH_O, NULL},
45378 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45379 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45380 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL},
45381 { (char *)"Slider_swiginit", Slider_swiginit, METH_VARARGS, NULL},
45382 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL},
45383 { (char *)"new_PreToggleButton", (PyCFunction)_wrap_new_PreToggleButton, METH_NOARGS, NULL},
45384 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45385 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45386 { (char *)"ToggleButton_GetValue", (PyCFunction)_wrap_ToggleButton_GetValue, METH_O, NULL},
45387 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45388 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL},
45389 { (char *)"ToggleButton_swiginit", ToggleButton_swiginit, METH_VARARGS, NULL},
45390 { (char *)"BookCtrlBase_GetPageCount", (PyCFunction)_wrap_BookCtrlBase_GetPageCount, METH_O, NULL},
45391 { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL},
45392 { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetCurrentPage, METH_O, NULL},
45393 { (char *)"BookCtrlBase_GetSelection", (PyCFunction)_wrap_BookCtrlBase_GetSelection, METH_O, NULL},
45394 { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
45395 { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
45396 { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45397 { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45398 { (char *)"BookCtrlBase_GetImageList", (PyCFunction)_wrap_BookCtrlBase_GetImageList, METH_O, NULL},
45399 { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
45400 { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
45401 { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
45402 { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL},
45403 { (char *)"BookCtrlBase_GetInternalBorder", (PyCFunction)_wrap_BookCtrlBase_GetInternalBorder, METH_O, NULL},
45404 { (char *)"BookCtrlBase_SetInternalBorder", (PyCFunction) _wrap_BookCtrlBase_SetInternalBorder, METH_VARARGS | METH_KEYWORDS, NULL},
45405 { (char *)"BookCtrlBase_IsVertical", (PyCFunction)_wrap_BookCtrlBase_IsVertical, METH_O, NULL},
45406 { (char *)"BookCtrlBase_SetControlMargin", (PyCFunction) _wrap_BookCtrlBase_SetControlMargin, METH_VARARGS | METH_KEYWORDS, NULL},
45407 { (char *)"BookCtrlBase_GetControlMargin", (PyCFunction)_wrap_BookCtrlBase_GetControlMargin, METH_O, NULL},
45408 { (char *)"BookCtrlBase_SetFitToCurrentPage", (PyCFunction) _wrap_BookCtrlBase_SetFitToCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL},
45409 { (char *)"BookCtrlBase_GetFitToCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetFitToCurrentPage, METH_O, NULL},
45410 { (char *)"BookCtrlBase_GetControlSizer", (PyCFunction)_wrap_BookCtrlBase_GetControlSizer, METH_O, NULL},
45411 { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL},
45412 { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL},
45413 { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction)_wrap_BookCtrlBase_DeleteAllPages, METH_O, NULL},
45414 { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL},
45415 { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL},
45416 { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45417 { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45418 { (char *)"BookCtrlBase_HitTest", (PyCFunction) _wrap_BookCtrlBase_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
45419 { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45420 { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL},
45421 { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45422 { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetSelection, METH_O, NULL},
45423 { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45424 { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetOldSelection, METH_O, NULL},
45425 { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45426 { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL},
45427 { (char *)"BookCtrlBaseEvent_swiginit", BookCtrlBaseEvent_swiginit, METH_VARARGS, NULL},
45428 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL},
45429 { (char *)"new_PreNotebook", (PyCFunction)_wrap_new_PreNotebook, METH_NOARGS, NULL},
45430 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45431 { (char *)"Notebook_GetRowCount", (PyCFunction)_wrap_Notebook_GetRowCount, METH_O, NULL},
45432 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL},
45433 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL},
45434 { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction)_wrap_Notebook_GetThemeBackgroundColour, METH_O, NULL},
45435 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45436 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL},
45437 { (char *)"Notebook_swiginit", Notebook_swiginit, METH_VARARGS, NULL},
45438 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45439 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL},
45440 { (char *)"NotebookEvent_swiginit", NotebookEvent_swiginit, METH_VARARGS, NULL},
45441 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL},
45442 { (char *)"new_PreListbook", (PyCFunction)_wrap_new_PreListbook, METH_NOARGS, NULL},
45443 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45444 { (char *)"Listbook_GetListView", (PyCFunction)_wrap_Listbook_GetListView, METH_O, NULL},
45445 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL},
45446 { (char *)"Listbook_swiginit", Listbook_swiginit, METH_VARARGS, NULL},
45447 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45448 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL},
45449 { (char *)"ListbookEvent_swiginit", ListbookEvent_swiginit, METH_VARARGS, NULL},
45450 { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL},
45451 { (char *)"new_PreChoicebook", (PyCFunction)_wrap_new_PreChoicebook, METH_NOARGS, NULL},
45452 { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45453 { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction)_wrap_Choicebook_GetChoiceCtrl, METH_O, NULL},
45454 { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL},
45455 { (char *)"Choicebook_swiginit", Choicebook_swiginit, METH_VARARGS, NULL},
45456 { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45457 { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL},
45458 { (char *)"ChoicebookEvent_swiginit", ChoicebookEvent_swiginit, METH_VARARGS, NULL},
45459 { (char *)"new_Treebook", (PyCFunction) _wrap_new_Treebook, METH_VARARGS | METH_KEYWORDS, NULL},
45460 { (char *)"new_PreTreebook", (PyCFunction)_wrap_new_PreTreebook, METH_NOARGS, NULL},
45461 { (char *)"Treebook_Create", (PyCFunction) _wrap_Treebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45462 { (char *)"Treebook_InsertSubPage", (PyCFunction) _wrap_Treebook_InsertSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
45463 { (char *)"Treebook_AddSubPage", (PyCFunction) _wrap_Treebook_AddSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
45464 { (char *)"Treebook_IsNodeExpanded", (PyCFunction) _wrap_Treebook_IsNodeExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
45465 { (char *)"Treebook_ExpandNode", (PyCFunction) _wrap_Treebook_ExpandNode, METH_VARARGS | METH_KEYWORDS, NULL},
45466 { (char *)"Treebook_CollapseNode", (PyCFunction) _wrap_Treebook_CollapseNode, METH_VARARGS | METH_KEYWORDS, NULL},
45467 { (char *)"Treebook_GetPageParent", (PyCFunction) _wrap_Treebook_GetPageParent, METH_VARARGS | METH_KEYWORDS, NULL},
45468 { (char *)"Treebook_GetTreeCtrl", (PyCFunction)_wrap_Treebook_GetTreeCtrl, METH_O, NULL},
45469 { (char *)"Treebook_swigregister", Treebook_swigregister, METH_VARARGS, NULL},
45470 { (char *)"Treebook_swiginit", Treebook_swiginit, METH_VARARGS, NULL},
45471 { (char *)"new_TreebookEvent", (PyCFunction) _wrap_new_TreebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45472 { (char *)"TreebookEvent_swigregister", TreebookEvent_swigregister, METH_VARARGS, NULL},
45473 { (char *)"TreebookEvent_swiginit", TreebookEvent_swiginit, METH_VARARGS, NULL},
45474 { (char *)"new_Toolbook", (PyCFunction) _wrap_new_Toolbook, METH_VARARGS | METH_KEYWORDS, NULL},
45475 { (char *)"new_PreToolbook", (PyCFunction)_wrap_new_PreToolbook, METH_NOARGS, NULL},
45476 { (char *)"Toolbook_Create", (PyCFunction) _wrap_Toolbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45477 { (char *)"Toolbook_GetToolBar", (PyCFunction)_wrap_Toolbook_GetToolBar, METH_O, NULL},
45478 { (char *)"Toolbook_Realize", (PyCFunction)_wrap_Toolbook_Realize, METH_O, NULL},
45479 { (char *)"Toolbook_swigregister", Toolbook_swigregister, METH_VARARGS, NULL},
45480 { (char *)"Toolbook_swiginit", Toolbook_swiginit, METH_VARARGS, NULL},
45481 { (char *)"new_ToolbookEvent", (PyCFunction) _wrap_new_ToolbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45482 { (char *)"ToolbookEvent_swigregister", ToolbookEvent_swigregister, METH_VARARGS, NULL},
45483 { (char *)"ToolbookEvent_swiginit", ToolbookEvent_swiginit, METH_VARARGS, NULL},
45484 { (char *)"ToolBarToolBase_GetId", (PyCFunction)_wrap_ToolBarToolBase_GetId, METH_O, NULL},
45485 { (char *)"ToolBarToolBase_GetControl", (PyCFunction)_wrap_ToolBarToolBase_GetControl, METH_O, NULL},
45486 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction)_wrap_ToolBarToolBase_GetToolBar, METH_O, NULL},
45487 { (char *)"ToolBarToolBase_IsButton", (PyCFunction)_wrap_ToolBarToolBase_IsButton, METH_O, NULL},
45488 { (char *)"ToolBarToolBase_IsControl", (PyCFunction)_wrap_ToolBarToolBase_IsControl, METH_O, NULL},
45489 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction)_wrap_ToolBarToolBase_IsSeparator, METH_O, NULL},
45490 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction)_wrap_ToolBarToolBase_GetStyle, METH_O, NULL},
45491 { (char *)"ToolBarToolBase_GetKind", (PyCFunction)_wrap_ToolBarToolBase_GetKind, METH_O, NULL},
45492 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction)_wrap_ToolBarToolBase_IsEnabled, METH_O, NULL},
45493 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction)_wrap_ToolBarToolBase_IsToggled, METH_O, NULL},
45494 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction)_wrap_ToolBarToolBase_CanBeToggled, METH_O, NULL},
45495 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetNormalBitmap, METH_O, NULL},
45496 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetDisabledBitmap, METH_O, NULL},
45497 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetBitmap, METH_O, NULL},
45498 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction)_wrap_ToolBarToolBase_GetLabel, METH_O, NULL},
45499 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction)_wrap_ToolBarToolBase_GetShortHelp, METH_O, NULL},
45500 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction)_wrap_ToolBarToolBase_GetLongHelp, METH_O, NULL},
45501 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
45502 { (char *)"ToolBarToolBase_Toggle", (PyCFunction)_wrap_ToolBarToolBase_Toggle, METH_O, NULL},
45503 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
45504 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45505 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45506 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45507 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45508 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45509 { (char *)"ToolBarToolBase_Detach", (PyCFunction)_wrap_ToolBarToolBase_Detach, METH_O, NULL},
45510 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL},
45511 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction)_wrap_ToolBarToolBase_GetClientData, METH_O, NULL},
45512 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
45513 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL},
45514 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL},
45515 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL},
45516 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
45517 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
45518 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL},
45519 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL},
45520 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL},
45521 { (char *)"ToolBarBase_AddSeparator", (PyCFunction)_wrap_ToolBarBase_AddSeparator, METH_O, NULL},
45522 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL},
45523 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL},
45524 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL},
45525 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL},
45526 { (char *)"ToolBarBase_ClearTools", (PyCFunction)_wrap_ToolBarBase_ClearTools, METH_O, NULL},
45527 { (char *)"ToolBarBase_Realize", (PyCFunction)_wrap_ToolBarBase_Realize, METH_O, NULL},
45528 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL},
45529 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL},
45530 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
45531 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
45532 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
45533 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL},
45534 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL},
45535 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
45536 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45537 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45538 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45539 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45540 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL},
45541 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
45542 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL},
45543 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL},
45544 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction)_wrap_ToolBarBase_GetToolMargins, METH_O, NULL},
45545 { (char *)"ToolBarBase_GetMargins", (PyCFunction)_wrap_ToolBarBase_GetMargins, METH_O, NULL},
45546 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction)_wrap_ToolBarBase_GetToolPacking, METH_O, NULL},
45547 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction)_wrap_ToolBarBase_GetToolSeparation, METH_O, NULL},
45548 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL},
45549 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL},
45550 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction)_wrap_ToolBarBase_GetMaxRows, METH_O, NULL},
45551 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction)_wrap_ToolBarBase_GetMaxCols, METH_O, NULL},
45552 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL},
45553 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction)_wrap_ToolBarBase_GetToolBitmapSize, METH_O, NULL},
45554 { (char *)"ToolBarBase_GetToolSize", (PyCFunction)_wrap_ToolBarBase_GetToolSize, METH_O, NULL},
45555 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45556 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL},
45557 { (char *)"ToolBarBase_IsVertical", (PyCFunction)_wrap_ToolBarBase_IsVertical, METH_O, NULL},
45558 { (char *)"ToolBarBase_GetToolsCount", (PyCFunction)_wrap_ToolBarBase_GetToolsCount, METH_O, NULL},
45559 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL},
45560 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL},
45561 { (char *)"new_PreToolBar", (PyCFunction)_wrap_new_PreToolBar, METH_NOARGS, NULL},
45562 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45563 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45564 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL},
45565 { (char *)"ToolBar_swiginit", ToolBar_swiginit, METH_VARARGS, NULL},
45566 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL},
45567 { (char *)"delete_ListItemAttr", (PyCFunction)_wrap_delete_ListItemAttr, METH_O, NULL},
45568 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45569 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45570 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
45571 { (char *)"ListItemAttr_HasTextColour", (PyCFunction)_wrap_ListItemAttr_HasTextColour, METH_O, NULL},
45572 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction)_wrap_ListItemAttr_HasBackgroundColour, METH_O, NULL},
45573 { (char *)"ListItemAttr_HasFont", (PyCFunction)_wrap_ListItemAttr_HasFont, METH_O, NULL},
45574 { (char *)"ListItemAttr_GetTextColour", (PyCFunction)_wrap_ListItemAttr_GetTextColour, METH_O, NULL},
45575 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction)_wrap_ListItemAttr_GetBackgroundColour, METH_O, NULL},
45576 { (char *)"ListItemAttr_GetFont", (PyCFunction)_wrap_ListItemAttr_GetFont, METH_O, NULL},
45577 { (char *)"ListItemAttr_AssignFrom", (PyCFunction) _wrap_ListItemAttr_AssignFrom, METH_VARARGS | METH_KEYWORDS, NULL},
45578 { (char *)"ListItemAttr_Destroy", (PyCFunction)_wrap_ListItemAttr_Destroy, METH_O, NULL},
45579 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL},
45580 { (char *)"ListItemAttr_swiginit", ListItemAttr_swiginit, METH_VARARGS, NULL},
45581 { (char *)"new_ListItem", (PyCFunction)_wrap_new_ListItem, METH_NOARGS, NULL},
45582 { (char *)"delete_ListItem", (PyCFunction)_wrap_delete_ListItem, METH_O, NULL},
45583 { (char *)"ListItem_Clear", (PyCFunction)_wrap_ListItem_Clear, METH_O, NULL},
45584 { (char *)"ListItem_ClearAttributes", (PyCFunction)_wrap_ListItem_ClearAttributes, METH_O, NULL},
45585 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
45586 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
45587 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45588 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
45589 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL},
45590 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
45591 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL},
45592 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
45593 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45594 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL},
45595 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45596 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45597 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
45598 { (char *)"ListItem_GetMask", (PyCFunction)_wrap_ListItem_GetMask, METH_O, NULL},
45599 { (char *)"ListItem_GetId", (PyCFunction)_wrap_ListItem_GetId, METH_O, NULL},
45600 { (char *)"ListItem_GetColumn", (PyCFunction)_wrap_ListItem_GetColumn, METH_O, NULL},
45601 { (char *)"ListItem_GetState", (PyCFunction)_wrap_ListItem_GetState, METH_O, NULL},
45602 { (char *)"ListItem_GetText", (PyCFunction)_wrap_ListItem_GetText, METH_O, NULL},
45603 { (char *)"ListItem_GetImage", (PyCFunction)_wrap_ListItem_GetImage, METH_O, NULL},
45604 { (char *)"ListItem_GetData", (PyCFunction)_wrap_ListItem_GetData, METH_O, NULL},
45605 { (char *)"ListItem_GetWidth", (PyCFunction)_wrap_ListItem_GetWidth, METH_O, NULL},
45606 { (char *)"ListItem_GetAlign", (PyCFunction)_wrap_ListItem_GetAlign, METH_O, NULL},
45607 { (char *)"ListItem_GetAttributes", (PyCFunction)_wrap_ListItem_GetAttributes, METH_O, NULL},
45608 { (char *)"ListItem_HasAttributes", (PyCFunction)_wrap_ListItem_HasAttributes, METH_O, NULL},
45609 { (char *)"ListItem_GetTextColour", (PyCFunction)_wrap_ListItem_GetTextColour, METH_O, NULL},
45610 { (char *)"ListItem_GetBackgroundColour", (PyCFunction)_wrap_ListItem_GetBackgroundColour, METH_O, NULL},
45611 { (char *)"ListItem_GetFont", (PyCFunction)_wrap_ListItem_GetFont, METH_O, NULL},
45612 { (char *)"ListItem_m_mask_set", _wrap_ListItem_m_mask_set, METH_VARARGS, NULL},
45613 { (char *)"ListItem_m_mask_get", (PyCFunction)_wrap_ListItem_m_mask_get, METH_O, NULL},
45614 { (char *)"ListItem_m_itemId_set", _wrap_ListItem_m_itemId_set, METH_VARARGS, NULL},
45615 { (char *)"ListItem_m_itemId_get", (PyCFunction)_wrap_ListItem_m_itemId_get, METH_O, NULL},
45616 { (char *)"ListItem_m_col_set", _wrap_ListItem_m_col_set, METH_VARARGS, NULL},
45617 { (char *)"ListItem_m_col_get", (PyCFunction)_wrap_ListItem_m_col_get, METH_O, NULL},
45618 { (char *)"ListItem_m_state_set", _wrap_ListItem_m_state_set, METH_VARARGS, NULL},
45619 { (char *)"ListItem_m_state_get", (PyCFunction)_wrap_ListItem_m_state_get, METH_O, NULL},
45620 { (char *)"ListItem_m_stateMask_set", _wrap_ListItem_m_stateMask_set, METH_VARARGS, NULL},
45621 { (char *)"ListItem_m_stateMask_get", (PyCFunction)_wrap_ListItem_m_stateMask_get, METH_O, NULL},
45622 { (char *)"ListItem_m_text_set", _wrap_ListItem_m_text_set, METH_VARARGS, NULL},
45623 { (char *)"ListItem_m_text_get", (PyCFunction)_wrap_ListItem_m_text_get, METH_O, NULL},
45624 { (char *)"ListItem_m_image_set", _wrap_ListItem_m_image_set, METH_VARARGS, NULL},
45625 { (char *)"ListItem_m_image_get", (PyCFunction)_wrap_ListItem_m_image_get, METH_O, NULL},
45626 { (char *)"ListItem_m_data_set", _wrap_ListItem_m_data_set, METH_VARARGS, NULL},
45627 { (char *)"ListItem_m_data_get", (PyCFunction)_wrap_ListItem_m_data_get, METH_O, NULL},
45628 { (char *)"ListItem_m_format_set", _wrap_ListItem_m_format_set, METH_VARARGS, NULL},
45629 { (char *)"ListItem_m_format_get", (PyCFunction)_wrap_ListItem_m_format_get, METH_O, NULL},
45630 { (char *)"ListItem_m_width_set", _wrap_ListItem_m_width_set, METH_VARARGS, NULL},
45631 { (char *)"ListItem_m_width_get", (PyCFunction)_wrap_ListItem_m_width_get, METH_O, NULL},
45632 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL},
45633 { (char *)"ListItem_swiginit", ListItem_swiginit, METH_VARARGS, NULL},
45634 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45635 { (char *)"ListEvent_m_code_set", _wrap_ListEvent_m_code_set, METH_VARARGS, NULL},
45636 { (char *)"ListEvent_m_code_get", (PyCFunction)_wrap_ListEvent_m_code_get, METH_O, NULL},
45637 { (char *)"ListEvent_m_oldItemIndex_set", _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS, NULL},
45638 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction)_wrap_ListEvent_m_oldItemIndex_get, METH_O, NULL},
45639 { (char *)"ListEvent_m_itemIndex_set", _wrap_ListEvent_m_itemIndex_set, METH_VARARGS, NULL},
45640 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction)_wrap_ListEvent_m_itemIndex_get, METH_O, NULL},
45641 { (char *)"ListEvent_m_col_set", _wrap_ListEvent_m_col_set, METH_VARARGS, NULL},
45642 { (char *)"ListEvent_m_col_get", (PyCFunction)_wrap_ListEvent_m_col_get, METH_O, NULL},
45643 { (char *)"ListEvent_m_pointDrag_set", _wrap_ListEvent_m_pointDrag_set, METH_VARARGS, NULL},
45644 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction)_wrap_ListEvent_m_pointDrag_get, METH_O, NULL},
45645 { (char *)"ListEvent_m_item_get", (PyCFunction)_wrap_ListEvent_m_item_get, METH_O, NULL},
45646 { (char *)"ListEvent_GetKeyCode", (PyCFunction)_wrap_ListEvent_GetKeyCode, METH_O, NULL},
45647 { (char *)"ListEvent_GetIndex", (PyCFunction)_wrap_ListEvent_GetIndex, METH_O, NULL},
45648 { (char *)"ListEvent_GetColumn", (PyCFunction)_wrap_ListEvent_GetColumn, METH_O, NULL},
45649 { (char *)"ListEvent_GetPoint", (PyCFunction)_wrap_ListEvent_GetPoint, METH_O, NULL},
45650 { (char *)"ListEvent_GetLabel", (PyCFunction)_wrap_ListEvent_GetLabel, METH_O, NULL},
45651 { (char *)"ListEvent_GetText", (PyCFunction)_wrap_ListEvent_GetText, METH_O, NULL},
45652 { (char *)"ListEvent_GetImage", (PyCFunction)_wrap_ListEvent_GetImage, METH_O, NULL},
45653 { (char *)"ListEvent_GetData", (PyCFunction)_wrap_ListEvent_GetData, METH_O, NULL},
45654 { (char *)"ListEvent_GetMask", (PyCFunction)_wrap_ListEvent_GetMask, METH_O, NULL},
45655 { (char *)"ListEvent_GetItem", (PyCFunction)_wrap_ListEvent_GetItem, METH_O, NULL},
45656 { (char *)"ListEvent_GetCacheFrom", (PyCFunction)_wrap_ListEvent_GetCacheFrom, METH_O, NULL},
45657 { (char *)"ListEvent_GetCacheTo", (PyCFunction)_wrap_ListEvent_GetCacheTo, METH_O, NULL},
45658 { (char *)"ListEvent_IsEditCancelled", (PyCFunction)_wrap_ListEvent_IsEditCancelled, METH_O, NULL},
45659 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
45660 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL},
45661 { (char *)"ListEvent_swiginit", ListEvent_swiginit, METH_VARARGS, NULL},
45662 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45663 { (char *)"new_PreListCtrl", (PyCFunction)_wrap_new_PreListCtrl, METH_NOARGS, NULL},
45664 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45665 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
45666 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45667 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45668 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45669 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45670 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction)_wrap_ListCtrl_GetCountPerPage, METH_O, NULL},
45671 { (char *)"ListCtrl_GetViewRect", (PyCFunction)_wrap_ListCtrl_GetViewRect, METH_O, NULL},
45672 { (char *)"ListCtrl_GetEditControl", (PyCFunction)_wrap_ListCtrl_GetEditControl, METH_O, NULL},
45673 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL},
45674 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
45675 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
45676 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
45677 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
45678 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
45679 { (char *)"ListCtrl_SetItemColumnImage", (PyCFunction) _wrap_ListCtrl_SetItemColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
45680 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
45681 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
45682 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45683 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45684 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45685 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL},
45686 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45687 { (char *)"ListCtrl_GetItemCount", (PyCFunction)_wrap_ListCtrl_GetItemCount, METH_O, NULL},
45688 { (char *)"ListCtrl_GetColumnCount", (PyCFunction)_wrap_ListCtrl_GetColumnCount, METH_O, NULL},
45689 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction)_wrap_ListCtrl_GetItemSpacing, METH_O, NULL},
45690 { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
45691 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction)_wrap_ListCtrl_GetSelectedItemCount, METH_O, NULL},
45692 { (char *)"ListCtrl_GetTextColour", (PyCFunction)_wrap_ListCtrl_GetTextColour, METH_O, NULL},
45693 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45694 { (char *)"ListCtrl_GetTopItem", (PyCFunction)_wrap_ListCtrl_GetTopItem, METH_O, NULL},
45695 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45696 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
45697 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45698 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45699 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45700 { (char *)"ListCtrl_InReportView", (PyCFunction)_wrap_ListCtrl_InReportView, METH_O, NULL},
45701 { (char *)"ListCtrl_IsVirtual", (PyCFunction)_wrap_ListCtrl_IsVirtual, METH_O, NULL},
45702 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL},
45703 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL},
45704 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL},
45705 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL},
45706 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction)_wrap_ListCtrl_DeleteAllItems, METH_O, NULL},
45707 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45708 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction)_wrap_ListCtrl_DeleteAllColumns, METH_O, NULL},
45709 { (char *)"ListCtrl_ClearAll", (PyCFunction)_wrap_ListCtrl_ClearAll, METH_O, NULL},
45710 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45711 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45712 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL},
45713 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45714 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL},
45715 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
45716 { (char *)"ListCtrl_HitTestSubItem", (PyCFunction) _wrap_ListCtrl_HitTestSubItem, METH_VARARGS | METH_KEYWORDS, NULL},
45717 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
45718 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
45719 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL},
45720 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
45721 { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL},
45722 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45723 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL},
45724 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL},
45725 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45726 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45727 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45728 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45729 { (char *)"ListCtrl_SetItemFont", (PyCFunction) _wrap_ListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
45730 { (char *)"ListCtrl_GetItemFont", (PyCFunction) _wrap_ListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
45731 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL},
45732 { (char *)"ListCtrl_GetMainWindow", (PyCFunction)_wrap_ListCtrl_GetMainWindow, METH_O, NULL},
45733 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45734 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL},
45735 { (char *)"ListCtrl_swiginit", ListCtrl_swiginit, METH_VARARGS, NULL},
45736 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL},
45737 { (char *)"new_PreListView", (PyCFunction)_wrap_new_PreListView, METH_NOARGS, NULL},
45738 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45739 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL},
45740 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL},
45741 { (char *)"ListView_GetFocusedItem", (PyCFunction)_wrap_ListView_GetFocusedItem, METH_O, NULL},
45742 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45743 { (char *)"ListView_GetFirstSelected", (PyCFunction)_wrap_ListView_GetFirstSelected, METH_O, NULL},
45744 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45745 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
45746 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
45747 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL},
45748 { (char *)"ListView_swiginit", ListView_swiginit, METH_VARARGS, NULL},
45749 { (char *)"new_TreeItemId", (PyCFunction)_wrap_new_TreeItemId, METH_NOARGS, NULL},
45750 { (char *)"delete_TreeItemId", (PyCFunction)_wrap_delete_TreeItemId, METH_O, NULL},
45751 { (char *)"TreeItemId_IsOk", (PyCFunction)_wrap_TreeItemId_IsOk, METH_O, NULL},
45752 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
45753 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
45754 { (char *)"TreeItemId_m_pItem_set", _wrap_TreeItemId_m_pItem_set, METH_VARARGS, NULL},
45755 { (char *)"TreeItemId_m_pItem_get", (PyCFunction)_wrap_TreeItemId_m_pItem_get, METH_O, NULL},
45756 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL},
45757 { (char *)"TreeItemId_swiginit", TreeItemId_swiginit, METH_VARARGS, NULL},
45758 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45759 { (char *)"delete_TreeItemData", (PyCFunction)_wrap_delete_TreeItemData, METH_O, NULL},
45760 { (char *)"TreeItemData_GetData", (PyCFunction)_wrap_TreeItemData_GetData, METH_O, NULL},
45761 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
45762 { (char *)"TreeItemData_GetId", (PyCFunction)_wrap_TreeItemData_GetId, METH_O, NULL},
45763 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
45764 { (char *)"TreeItemData_Destroy", (PyCFunction)_wrap_TreeItemData_Destroy, METH_O, NULL},
45765 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL},
45766 { (char *)"TreeItemData_swiginit", TreeItemData_swiginit, METH_VARARGS, NULL},
45767 { (char *)"new_TreeEvent", _wrap_new_TreeEvent, METH_VARARGS, NULL},
45768 { (char *)"TreeEvent_GetItem", (PyCFunction)_wrap_TreeEvent_GetItem, METH_O, NULL},
45769 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
45770 { (char *)"TreeEvent_GetOldItem", (PyCFunction)_wrap_TreeEvent_GetOldItem, METH_O, NULL},
45771 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL},
45772 { (char *)"TreeEvent_GetPoint", (PyCFunction)_wrap_TreeEvent_GetPoint, METH_O, NULL},
45773 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL},
45774 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction)_wrap_TreeEvent_GetKeyEvent, METH_O, NULL},
45775 { (char *)"TreeEvent_GetKeyCode", (PyCFunction)_wrap_TreeEvent_GetKeyCode, METH_O, NULL},
45776 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45777 { (char *)"TreeEvent_GetLabel", (PyCFunction)_wrap_TreeEvent_GetLabel, METH_O, NULL},
45778 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45779 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction)_wrap_TreeEvent_IsEditCancelled, METH_O, NULL},
45780 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
45781 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
45782 { (char *)"TreeEvent_GetToolTip", (PyCFunction)_wrap_TreeEvent_GetToolTip, METH_O, NULL},
45783 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL},
45784 { (char *)"TreeEvent_swiginit", TreeEvent_swiginit, METH_VARARGS, NULL},
45785 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45786 { (char *)"new_PreTreeCtrl", (PyCFunction)_wrap_new_PreTreeCtrl, METH_NOARGS, NULL},
45787 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45788 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
45789 { (char *)"TreeCtrl_GetCount", (PyCFunction)_wrap_TreeCtrl_GetCount, METH_O, NULL},
45790 { (char *)"TreeCtrl_GetIndent", (PyCFunction)_wrap_TreeCtrl_GetIndent, METH_O, NULL},
45791 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL},
45792 { (char *)"TreeCtrl_GetSpacing", (PyCFunction)_wrap_TreeCtrl_GetSpacing, METH_O, NULL},
45793 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
45794 { (char *)"TreeCtrl_GetImageList", (PyCFunction)_wrap_TreeCtrl_GetImageList, METH_O, NULL},
45795 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction)_wrap_TreeCtrl_GetStateImageList, METH_O, NULL},
45796 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45797 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45798 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45799 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45800 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
45801 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
45802 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45803 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
45804 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45805 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45806 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
45807 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
45808 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
45809 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45810 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
45811 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
45812 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL},
45813 { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL},
45814 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45815 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45816 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
45817 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45818 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
45819 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
45820 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45821 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL},
45822 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL},
45823 { (char *)"TreeCtrl_GetRootItem", (PyCFunction)_wrap_TreeCtrl_GetRootItem, METH_O, NULL},
45824 { (char *)"TreeCtrl_GetSelection", (PyCFunction)_wrap_TreeCtrl_GetSelection, METH_O, NULL},
45825 { (char *)"TreeCtrl_GetSelections", (PyCFunction)_wrap_TreeCtrl_GetSelections, METH_O, NULL},
45826 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL},
45827 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL},
45828 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL},
45829 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL},
45830 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL},
45831 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL},
45832 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction)_wrap_TreeCtrl_GetFirstVisibleItem, METH_O, NULL},
45833 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45834 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45835 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL},
45836 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL},
45837 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
45838 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL},
45839 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL},
45840 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
45841 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL},
45842 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction)_wrap_TreeCtrl_DeleteAllItems, METH_O, NULL},
45843 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL},
45844 { (char *)"TreeCtrl_ExpandAllChildren", (PyCFunction) _wrap_TreeCtrl_ExpandAllChildren, METH_VARARGS | METH_KEYWORDS, NULL},
45845 { (char *)"TreeCtrl_ExpandAll", (PyCFunction)_wrap_TreeCtrl_ExpandAll, METH_O, NULL},
45846 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
45847 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL},
45848 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL},
45849 { (char *)"TreeCtrl_Unselect", (PyCFunction)_wrap_TreeCtrl_Unselect, METH_O, NULL},
45850 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL},
45851 { (char *)"TreeCtrl_UnselectAll", (PyCFunction)_wrap_TreeCtrl_UnselectAll, METH_O, NULL},
45852 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL},
45853 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45854 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45855 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL},
45856 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45857 { (char *)"TreeCtrl_GetEditControl", (PyCFunction)_wrap_TreeCtrl_GetEditControl, METH_O, NULL},
45858 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL},
45859 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
45860 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL},
45861 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45862 { (char *)"TreeCtrl_SetQuickBestSize", (PyCFunction) _wrap_TreeCtrl_SetQuickBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
45863 { (char *)"TreeCtrl_GetQuickBestSize", (PyCFunction)_wrap_TreeCtrl_GetQuickBestSize, METH_O, NULL},
45864 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL},
45865 { (char *)"TreeCtrl_swiginit", TreeCtrl_swiginit, METH_VARARGS, NULL},
45866 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45867 { (char *)"new_PreGenericDirCtrl", (PyCFunction)_wrap_new_PreGenericDirCtrl, METH_NOARGS, NULL},
45868 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45869 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL},
45870 { (char *)"GenericDirCtrl_CollapsePath", (PyCFunction) _wrap_GenericDirCtrl_CollapsePath, METH_VARARGS | METH_KEYWORDS, NULL},
45871 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction)_wrap_GenericDirCtrl_GetDefaultPath, METH_O, NULL},
45872 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL},
45873 { (char *)"GenericDirCtrl_GetPath", (PyCFunction)_wrap_GenericDirCtrl_GetPath, METH_O, NULL},
45874 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction)_wrap_GenericDirCtrl_GetFilePath, METH_O, NULL},
45875 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
45876 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL},
45877 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction)_wrap_GenericDirCtrl_GetShowHidden, METH_O, NULL},
45878 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction)_wrap_GenericDirCtrl_GetFilter, METH_O, NULL},
45879 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL},
45880 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction)_wrap_GenericDirCtrl_GetFilterIndex, METH_O, NULL},
45881 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL},
45882 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction)_wrap_GenericDirCtrl_GetRootId, METH_O, NULL},
45883 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetTreeCtrl, METH_O, NULL},
45884 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetFilterListCtrl, METH_O, NULL},
45885 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL},
45886 { (char *)"GenericDirCtrl_DoResize", (PyCFunction)_wrap_GenericDirCtrl_DoResize, METH_O, NULL},
45887 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction)_wrap_GenericDirCtrl_ReCreateTree, METH_O, NULL},
45888 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL},
45889 { (char *)"GenericDirCtrl_swiginit", GenericDirCtrl_swiginit, METH_VARARGS, NULL},
45890 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45891 { (char *)"new_PreDirFilterListCtrl", (PyCFunction)_wrap_new_PreDirFilterListCtrl, METH_NOARGS, NULL},
45892 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45893 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL},
45894 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL},
45895 { (char *)"DirFilterListCtrl_swiginit", DirFilterListCtrl_swiginit, METH_VARARGS, NULL},
45896 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL},
45897 { (char *)"new_PrePyControl", (PyCFunction)_wrap_new_PrePyControl, METH_NOARGS, NULL},
45898 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
45899 { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
45900 { (char *)"PyControl_DoEraseBackground", (PyCFunction) _wrap_PyControl_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL},
45901 { (char *)"PyControl_DoMoveWindow", (PyCFunction) _wrap_PyControl_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL},
45902 { (char *)"PyControl_DoSetSize", (PyCFunction) _wrap_PyControl_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL},
45903 { (char *)"PyControl_DoSetClientSize", (PyCFunction) _wrap_PyControl_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL},
45904 { (char *)"PyControl_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL},
45905 { (char *)"PyControl_DoGetSize", (PyCFunction)_wrap_PyControl_DoGetSize, METH_O, NULL},
45906 { (char *)"PyControl_DoGetClientSize", (PyCFunction)_wrap_PyControl_DoGetClientSize, METH_O, NULL},
45907 { (char *)"PyControl_DoGetPosition", (PyCFunction)_wrap_PyControl_DoGetPosition, METH_O, NULL},
45908 { (char *)"PyControl_DoGetVirtualSize", (PyCFunction)_wrap_PyControl_DoGetVirtualSize, METH_O, NULL},
45909 { (char *)"PyControl_DoGetBestSize", (PyCFunction)_wrap_PyControl_DoGetBestSize, METH_O, NULL},
45910 { (char *)"PyControl_GetDefaultAttributes", (PyCFunction)_wrap_PyControl_GetDefaultAttributes, METH_O, NULL},
45911 { (char *)"PyControl_OnInternalIdle", (PyCFunction)_wrap_PyControl_OnInternalIdle, METH_O, NULL},
45912 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL},
45913 { (char *)"PyControl_swiginit", PyControl_swiginit, METH_VARARGS, NULL},
45914 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45915 { (char *)"HelpEvent_GetPosition", (PyCFunction)_wrap_HelpEvent_GetPosition, METH_O, NULL},
45916 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45917 { (char *)"HelpEvent_GetLink", (PyCFunction)_wrap_HelpEvent_GetLink, METH_O, NULL},
45918 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL},
45919 { (char *)"HelpEvent_GetTarget", (PyCFunction)_wrap_HelpEvent_GetTarget, METH_O, NULL},
45920 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL},
45921 { (char *)"HelpEvent_GetOrigin", (PyCFunction)_wrap_HelpEvent_GetOrigin, METH_O, NULL},
45922 { (char *)"HelpEvent_SetOrigin", (PyCFunction) _wrap_HelpEvent_SetOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
45923 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL},
45924 { (char *)"HelpEvent_swiginit", HelpEvent_swiginit, METH_VARARGS, NULL},
45925 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45926 { (char *)"delete_ContextHelp", (PyCFunction)_wrap_delete_ContextHelp, METH_O, NULL},
45927 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45928 { (char *)"ContextHelp_EndContextHelp", (PyCFunction)_wrap_ContextHelp_EndContextHelp, METH_O, NULL},
45929 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL},
45930 { (char *)"ContextHelp_swiginit", ContextHelp_swiginit, METH_VARARGS, NULL},
45931 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL},
45932 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL},
45933 { (char *)"ContextHelpButton_swiginit", ContextHelpButton_swiginit, METH_VARARGS, NULL},
45934 { (char *)"delete_HelpProvider", (PyCFunction)_wrap_delete_HelpProvider, METH_O, NULL},
45935 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL},
45936 { (char *)"HelpProvider_Get", (PyCFunction)_wrap_HelpProvider_Get, METH_NOARGS, NULL},
45937 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45938 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45939 { (char *)"HelpProvider_ShowHelpAtPoint", (PyCFunction) _wrap_HelpProvider_ShowHelpAtPoint, METH_VARARGS | METH_KEYWORDS, NULL},
45940 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45941 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL},
45942 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45943 { (char *)"HelpProvider_Destroy", (PyCFunction)_wrap_HelpProvider_Destroy, METH_O, NULL},
45944 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL},
45945 { (char *)"new_SimpleHelpProvider", (PyCFunction)_wrap_new_SimpleHelpProvider, METH_NOARGS, NULL},
45946 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL},
45947 { (char *)"SimpleHelpProvider_swiginit", SimpleHelpProvider_swiginit, METH_VARARGS, NULL},
45948 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL},
45949 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL},
45950 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL},
45951 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL},
45952 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL},
45953 { (char *)"delete_DragImage", (PyCFunction)_wrap_delete_DragImage, METH_O, NULL},
45954 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45955 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL},
45956 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL},
45957 { (char *)"DragImage_EndDrag", (PyCFunction)_wrap_DragImage_EndDrag, METH_O, NULL},
45958 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL},
45959 { (char *)"DragImage_Show", (PyCFunction)_wrap_DragImage_Show, METH_O, NULL},
45960 { (char *)"DragImage_Hide", (PyCFunction)_wrap_DragImage_Hide, METH_O, NULL},
45961 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL},
45962 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
45963 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL},
45964 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
45965 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL},
45966 { (char *)"DragImage_swiginit", DragImage_swiginit, METH_VARARGS, NULL},
45967 { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45968 { (char *)"new_PreDatePickerCtrl", (PyCFunction)_wrap_new_PreDatePickerCtrl, METH_NOARGS, NULL},
45969 { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45970 { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45971 { (char *)"DatePickerCtrl_GetValue", (PyCFunction)_wrap_DatePickerCtrl_GetValue, METH_O, NULL},
45972 { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45973 { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction)_wrap_DatePickerCtrl_GetLowerLimit, METH_O, NULL},
45974 { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction)_wrap_DatePickerCtrl_GetUpperLimit, METH_O, NULL},
45975 { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL},
45976 { (char *)"DatePickerCtrl_swiginit", DatePickerCtrl_swiginit, METH_VARARGS, NULL},
45977 { (char *)"new_HyperlinkCtrl", (PyCFunction) _wrap_new_HyperlinkCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45978 { (char *)"new_PreHyperlinkCtrl", (PyCFunction)_wrap_new_PreHyperlinkCtrl, METH_NOARGS, NULL},
45979 { (char *)"HyperlinkCtrl_Create", (PyCFunction) _wrap_HyperlinkCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45980 { (char *)"HyperlinkCtrl_GetHoverColour", (PyCFunction)_wrap_HyperlinkCtrl_GetHoverColour, METH_O, NULL},
45981 { (char *)"HyperlinkCtrl_SetHoverColour", (PyCFunction) _wrap_HyperlinkCtrl_SetHoverColour, METH_VARARGS | METH_KEYWORDS, NULL},
45982 { (char *)"HyperlinkCtrl_GetNormalColour", (PyCFunction)_wrap_HyperlinkCtrl_GetNormalColour, METH_O, NULL},
45983 { (char *)"HyperlinkCtrl_SetNormalColour", (PyCFunction) _wrap_HyperlinkCtrl_SetNormalColour, METH_VARARGS | METH_KEYWORDS, NULL},
45984 { (char *)"HyperlinkCtrl_GetVisitedColour", (PyCFunction)_wrap_HyperlinkCtrl_GetVisitedColour, METH_O, NULL},
45985 { (char *)"HyperlinkCtrl_SetVisitedColour", (PyCFunction) _wrap_HyperlinkCtrl_SetVisitedColour, METH_VARARGS | METH_KEYWORDS, NULL},
45986 { (char *)"HyperlinkCtrl_GetURL", (PyCFunction)_wrap_HyperlinkCtrl_GetURL, METH_O, NULL},
45987 { (char *)"HyperlinkCtrl_SetURL", (PyCFunction) _wrap_HyperlinkCtrl_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
45988 { (char *)"HyperlinkCtrl_SetVisited", (PyCFunction) _wrap_HyperlinkCtrl_SetVisited, METH_VARARGS | METH_KEYWORDS, NULL},
45989 { (char *)"HyperlinkCtrl_GetVisited", (PyCFunction)_wrap_HyperlinkCtrl_GetVisited, METH_O, NULL},
45990 { (char *)"HyperlinkCtrl_swigregister", HyperlinkCtrl_swigregister, METH_VARARGS, NULL},
45991 { (char *)"HyperlinkCtrl_swiginit", HyperlinkCtrl_swiginit, METH_VARARGS, NULL},
45992 { (char *)"new_HyperlinkEvent", (PyCFunction) _wrap_new_HyperlinkEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45993 { (char *)"HyperlinkEvent_GetURL", (PyCFunction)_wrap_HyperlinkEvent_GetURL, METH_O, NULL},
45994 { (char *)"HyperlinkEvent_SetURL", (PyCFunction) _wrap_HyperlinkEvent_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
45995 { (char *)"HyperlinkEvent_swigregister", HyperlinkEvent_swigregister, METH_VARARGS, NULL},
45996 { (char *)"HyperlinkEvent_swiginit", HyperlinkEvent_swiginit, METH_VARARGS, NULL},
45997 { (char *)"PickerBase_CreateBase", (PyCFunction) _wrap_PickerBase_CreateBase, METH_VARARGS | METH_KEYWORDS, NULL},
45998 { (char *)"PickerBase_SetInternalMargin", (PyCFunction) _wrap_PickerBase_SetInternalMargin, METH_VARARGS | METH_KEYWORDS, NULL},
45999 { (char *)"PickerBase_GetInternalMargin", (PyCFunction)_wrap_PickerBase_GetInternalMargin, METH_O, NULL},
46000 { (char *)"PickerBase_SetTextCtrlProportion", (PyCFunction) _wrap_PickerBase_SetTextCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
46001 { (char *)"PickerBase_GetTextCtrlProportion", (PyCFunction)_wrap_PickerBase_GetTextCtrlProportion, METH_O, NULL},
46002 { (char *)"PickerBase_IsTextCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsTextCtrlGrowable, METH_O, NULL},
46003 { (char *)"PickerBase_SetTextCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetTextCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
46004 { (char *)"PickerBase_IsPickerCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsPickerCtrlGrowable, METH_O, NULL},
46005 { (char *)"PickerBase_SetPickerCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetPickerCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
46006 { (char *)"PickerBase_HasTextCtrl", (PyCFunction)_wrap_PickerBase_HasTextCtrl, METH_O, NULL},
46007 { (char *)"PickerBase_GetTextCtrl", (PyCFunction)_wrap_PickerBase_GetTextCtrl, METH_O, NULL},
46008 { (char *)"PickerBase_GetPickerCtrl", (PyCFunction)_wrap_PickerBase_GetPickerCtrl, METH_O, NULL},
46009 { (char *)"PickerBase_swigregister", PickerBase_swigregister, METH_VARARGS, NULL},
46010 { (char *)"new_ColourPickerCtrl", (PyCFunction) _wrap_new_ColourPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46011 { (char *)"new_PreColourPickerCtrl", (PyCFunction)_wrap_new_PreColourPickerCtrl, METH_NOARGS, NULL},
46012 { (char *)"ColourPickerCtrl_Create", (PyCFunction) _wrap_ColourPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46013 { (char *)"ColourPickerCtrl_GetColour", (PyCFunction)_wrap_ColourPickerCtrl_GetColour, METH_O, NULL},
46014 { (char *)"ColourPickerCtrl_SetColour", (PyCFunction) _wrap_ColourPickerCtrl_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
46015 { (char *)"ColourPickerCtrl_swigregister", ColourPickerCtrl_swigregister, METH_VARARGS, NULL},
46016 { (char *)"ColourPickerCtrl_swiginit", ColourPickerCtrl_swiginit, METH_VARARGS, NULL},
46017 { (char *)"new_ColourPickerEvent", (PyCFunction) _wrap_new_ColourPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46018 { (char *)"ColourPickerEvent_GetColour", (PyCFunction)_wrap_ColourPickerEvent_GetColour, METH_O, NULL},
46019 { (char *)"ColourPickerEvent_SetColour", (PyCFunction) _wrap_ColourPickerEvent_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
46020 { (char *)"ColourPickerEvent_swigregister", ColourPickerEvent_swigregister, METH_VARARGS, NULL},
46021 { (char *)"ColourPickerEvent_swiginit", ColourPickerEvent_swiginit, METH_VARARGS, NULL},
46022 { (char *)"new_FilePickerCtrl", (PyCFunction) _wrap_new_FilePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46023 { (char *)"new_PreFilePickerCtrl", (PyCFunction)_wrap_new_PreFilePickerCtrl, METH_NOARGS, NULL},
46024 { (char *)"FilePickerCtrl_Create", (PyCFunction) _wrap_FilePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46025 { (char *)"FilePickerCtrl_GetPath", (PyCFunction)_wrap_FilePickerCtrl_GetPath, METH_O, NULL},
46026 { (char *)"FilePickerCtrl_SetPath", (PyCFunction) _wrap_FilePickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
46027 { (char *)"FilePickerCtrl_CheckPath", (PyCFunction) _wrap_FilePickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
46028 { (char *)"FilePickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_FilePickerCtrl_GetTextCtrlValue, METH_O, NULL},
46029 { (char *)"FilePickerCtrl_swigregister", FilePickerCtrl_swigregister, METH_VARARGS, NULL},
46030 { (char *)"FilePickerCtrl_swiginit", FilePickerCtrl_swiginit, METH_VARARGS, NULL},
46031 { (char *)"new_DirPickerCtrl", (PyCFunction) _wrap_new_DirPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46032 { (char *)"new_PreDirPickerCtrl", (PyCFunction)_wrap_new_PreDirPickerCtrl, METH_NOARGS, NULL},
46033 { (char *)"DirPickerCtrl_Create", (PyCFunction) _wrap_DirPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46034 { (char *)"DirPickerCtrl_GetPath", (PyCFunction)_wrap_DirPickerCtrl_GetPath, METH_O, NULL},
46035 { (char *)"DirPickerCtrl_SetPath", (PyCFunction) _wrap_DirPickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
46036 { (char *)"DirPickerCtrl_CheckPath", (PyCFunction) _wrap_DirPickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
46037 { (char *)"DirPickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_DirPickerCtrl_GetTextCtrlValue, METH_O, NULL},
46038 { (char *)"DirPickerCtrl_swigregister", DirPickerCtrl_swigregister, METH_VARARGS, NULL},
46039 { (char *)"DirPickerCtrl_swiginit", DirPickerCtrl_swiginit, METH_VARARGS, NULL},
46040 { (char *)"new_FileDirPickerEvent", (PyCFunction) _wrap_new_FileDirPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46041 { (char *)"FileDirPickerEvent_GetPath", (PyCFunction)_wrap_FileDirPickerEvent_GetPath, METH_O, NULL},
46042 { (char *)"FileDirPickerEvent_SetPath", (PyCFunction) _wrap_FileDirPickerEvent_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
46043 { (char *)"FileDirPickerEvent_swigregister", FileDirPickerEvent_swigregister, METH_VARARGS, NULL},
46044 { (char *)"FileDirPickerEvent_swiginit", FileDirPickerEvent_swiginit, METH_VARARGS, NULL},
46045 { (char *)"new_FontPickerCtrl", (PyCFunction) _wrap_new_FontPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46046 { (char *)"new_PreFontPickerCtrl", (PyCFunction)_wrap_new_PreFontPickerCtrl, METH_NOARGS, NULL},
46047 { (char *)"FontPickerCtrl_Create", (PyCFunction) _wrap_FontPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46048 { (char *)"FontPickerCtrl_GetSelectedFont", (PyCFunction)_wrap_FontPickerCtrl_GetSelectedFont, METH_O, NULL},
46049 { (char *)"FontPickerCtrl_SetSelectedFont", (PyCFunction) _wrap_FontPickerCtrl_SetSelectedFont, METH_VARARGS | METH_KEYWORDS, NULL},
46050 { (char *)"FontPickerCtrl_SetMaxPointSize", (PyCFunction) _wrap_FontPickerCtrl_SetMaxPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
46051 { (char *)"FontPickerCtrl_GetMaxPointSize", (PyCFunction)_wrap_FontPickerCtrl_GetMaxPointSize, METH_O, NULL},
46052 { (char *)"FontPickerCtrl_swigregister", FontPickerCtrl_swigregister, METH_VARARGS, NULL},
46053 { (char *)"FontPickerCtrl_swiginit", FontPickerCtrl_swiginit, METH_VARARGS, NULL},
46054 { (char *)"new_FontPickerEvent", (PyCFunction) _wrap_new_FontPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46055 { (char *)"FontPickerEvent_GetFont", (PyCFunction)_wrap_FontPickerEvent_GetFont, METH_O, NULL},
46056 { (char *)"FontPickerEvent_SetFont", (PyCFunction) _wrap_FontPickerEvent_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
46057 { (char *)"FontPickerEvent_swigregister", FontPickerEvent_swigregister, METH_VARARGS, NULL},
46058 { (char *)"FontPickerEvent_swiginit", FontPickerEvent_swiginit, METH_VARARGS, NULL},
46059 { NULL, NULL, 0, NULL }
46060 };
46061
46062
46063 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
46064
46065 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
46066 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
46067 }
46068 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
46069 return (void *)((wxEvent *) ((wxMenuEvent *) x));
46070 }
46071 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
46072 return (void *)((wxEvent *) ((wxCloseEvent *) x));
46073 }
46074 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
46075 return (void *)((wxEvent *) ((wxMouseEvent *) x));
46076 }
46077 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
46078 return (void *)((wxEvent *) ((wxEraseEvent *) x));
46079 }
46080 static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) {
46081 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
46082 }
46083 static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
46084 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
46085 }
46086 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
46087 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
46088 }
46089 static void *_p_wxColourPickerEventTo_p_wxEvent(void *x) {
46090 return (void *)((wxEvent *) (wxCommandEvent *) ((wxColourPickerEvent *) x));
46091 }
46092 static void *_p_wxFileDirPickerEventTo_p_wxEvent(void *x) {
46093 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFileDirPickerEvent *) x));
46094 }
46095 static void *_p_wxFontPickerEventTo_p_wxEvent(void *x) {
46096 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFontPickerEvent *) x));
46097 }
46098 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
46099 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
46100 }
46101 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
46102 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
46103 }
46104 static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
46105 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
46106 }
46107 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
46108 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
46109 }
46110 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
46111 return (void *)((wxEvent *) ((wxPyEvent *) x));
46112 }
46113 static void *_p_wxListEventTo_p_wxEvent(void *x) {
46114 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
46115 }
46116 static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
46117 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
46118 }
46119 static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
46120 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
46121 }
46122 static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) {
46123 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
46124 }
46125 static void *_p_wxTreebookEventTo_p_wxEvent(void *x) {
46126 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
46127 }
46128 static void *_p_wxToolbookEventTo_p_wxEvent(void *x) {
46129 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
46130 }
46131 static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
46132 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
46133 }
46134 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
46135 return (void *)((wxEvent *) ((wxIdleEvent *) x));
46136 }
46137 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
46138 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
46139 }
46140 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
46141 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
46142 }
46143 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
46144 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
46145 }
46146 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
46147 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
46148 }
46149 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
46150 return (void *)((wxEvent *) ((wxActivateEvent *) x));
46151 }
46152 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
46153 return (void *)((wxEvent *) ((wxSizeEvent *) x));
46154 }
46155 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
46156 return (void *)((wxEvent *) ((wxMoveEvent *) x));
46157 }
46158 static void *_p_wxDateEventTo_p_wxEvent(void *x) {
46159 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
46160 }
46161 static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) {
46162 return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x));
46163 }
46164 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
46165 return (void *)((wxEvent *) ((wxPaintEvent *) x));
46166 }
46167 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
46168 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
46169 }
46170 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
46171 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
46172 }
46173 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
46174 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
46175 }
46176 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
46177 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
46178 }
46179 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
46180 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
46181 }
46182 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
46183 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
46184 }
46185 static void *_p_wxHyperlinkEventTo_p_wxEvent(void *x) {
46186 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHyperlinkEvent *) x));
46187 }
46188 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
46189 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
46190 }
46191 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
46192 return (void *)((wxEvent *) ((wxFocusEvent *) x));
46193 }
46194 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
46195 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
46196 }
46197 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
46198 return (void *)((wxEvent *) ((wxShowEvent *) x));
46199 }
46200 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
46201 return (void *)((wxEvent *) ((wxCommandEvent *) x));
46202 }
46203 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
46204 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
46205 }
46206 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
46207 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
46208 }
46209 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
46210 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
46211 }
46212 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
46213 return (void *)((wxEvent *) ((wxKeyEvent *) x));
46214 }
46215 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
46216 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
46217 }
46218 static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
46219 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
46220 }
46221 static void *_p_wxColourPickerCtrlTo_p_wxPickerBase(void *x) {
46222 return (void *)((wxPickerBase *) ((wxColourPickerCtrl *) x));
46223 }
46224 static void *_p_wxFilePickerCtrlTo_p_wxPickerBase(void *x) {
46225 return (void *)((wxPickerBase *) ((wxFilePickerCtrl *) x));
46226 }
46227 static void *_p_wxDirPickerCtrlTo_p_wxPickerBase(void *x) {
46228 return (void *)((wxPickerBase *) ((wxDirPickerCtrl *) x));
46229 }
46230 static void *_p_wxFontPickerCtrlTo_p_wxPickerBase(void *x) {
46231 return (void *)((wxPickerBase *) ((wxFontPickerCtrl *) x));
46232 }
46233 static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
46234 return (void *)((wxItemContainer *) ((wxComboBox *) x));
46235 }
46236 static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
46237 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46238 }
46239 static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
46240 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
46241 }
46242 static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
46243 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
46244 }
46245 static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
46246 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
46247 }
46248 static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
46249 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
46250 }
46251 static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
46252 return (void *)((wxPyListCtrl *) ((wxListView *) x));
46253 }
46254 static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) {
46255 return (void *)((wxControl *) ((wxBookCtrlBase *) x));
46256 }
46257 static void *_p_wxToolBarTo_p_wxControl(void *x) {
46258 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
46259 }
46260 static void *_p_wxPickerBaseTo_p_wxControl(void *x) {
46261 return (void *)((wxControl *) ((wxPickerBase *) x));
46262 }
46263 static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
46264 return (void *)((wxControl *) ((wxToggleButton *) x));
46265 }
46266 static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
46267 return (void *)((wxControl *) ((wxRadioButton *) x));
46268 }
46269 static void *_p_wxToolbookTo_p_wxControl(void *x) {
46270 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxToolbook *) x));
46271 }
46272 static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
46273 return (void *)((wxControl *) ((wxToolBarBase *) x));
46274 }
46275 static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
46276 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46277 }
46278 static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
46279 return (void *)((wxControl *) ((wxPyListCtrl *) x));
46280 }
46281 static void *_p_wxComboBoxTo_p_wxControl(void *x) {
46282 return (void *)((wxControl *) ((wxComboBox *) x));
46283 }
46284 static void *_p_wxPyControlTo_p_wxControl(void *x) {
46285 return (void *)((wxControl *) ((wxPyControl *) x));
46286 }
46287 static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
46288 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
46289 }
46290 static void *_p_wxScrollBarTo_p_wxControl(void *x) {
46291 return (void *)((wxControl *) ((wxScrollBar *) x));
46292 }
46293 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
46294 return (void *)((wxControl *) ((wxControlWithItems *) x));
46295 }
46296 static void *_p_wxGaugeTo_p_wxControl(void *x) {
46297 return (void *)((wxControl *) ((wxGauge *) x));
46298 }
46299 static void *_p_wxStaticLineTo_p_wxControl(void *x) {
46300 return (void *)((wxControl *) ((wxStaticLine *) x));
46301 }
46302 static void *_p_wxChoicebookTo_p_wxControl(void *x) {
46303 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x));
46304 }
46305 static void *_p_wxListbookTo_p_wxControl(void *x) {
46306 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x));
46307 }
46308 static void *_p_wxHyperlinkCtrlTo_p_wxControl(void *x) {
46309 return (void *)((wxControl *) ((wxHyperlinkCtrl *) x));
46310 }
46311 static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
46312 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
46313 }
46314 static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
46315 return (void *)((wxControl *) ((wxCheckBox *) x));
46316 }
46317 static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
46318 return (void *)((wxControl *) ((wxRadioBox *) x));
46319 }
46320 static void *_p_wxChoiceTo_p_wxControl(void *x) {
46321 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
46322 }
46323 static void *_p_wxListBoxTo_p_wxControl(void *x) {
46324 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
46325 }
46326 static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
46327 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
46328 }
46329 static void *_p_wxListViewTo_p_wxControl(void *x) {
46330 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
46331 }
46332 static void *_p_wxNotebookTo_p_wxControl(void *x) {
46333 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x));
46334 }
46335 static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
46336 return (void *)((wxControl *) ((wxStaticBitmap *) x));
46337 }
46338 static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
46339 return (void *)((wxControl *) ((wxSpinCtrl *) x));
46340 }
46341 static void *_p_wxStaticTextTo_p_wxControl(void *x) {
46342 return (void *)((wxControl *) ((wxStaticText *) x));
46343 }
46344 static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
46345 return (void *)((wxControl *) ((wxStaticBox *) x));
46346 }
46347 static void *_p_wxSliderTo_p_wxControl(void *x) {
46348 return (void *)((wxControl *) ((wxSlider *) x));
46349 }
46350 static void *_p_wxTreebookTo_p_wxControl(void *x) {
46351 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxTreebook *) x));
46352 }
46353 static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
46354 return (void *)((wxControl *) ((wxSpinButton *) x));
46355 }
46356 static void *_p_wxButtonTo_p_wxControl(void *x) {
46357 return (void *)((wxControl *) ((wxButton *) x));
46358 }
46359 static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
46360 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
46361 }
46362 static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
46363 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
46364 }
46365 static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) {
46366 return (void *)((wxControl *) ((wxDatePickerCtrl *) x));
46367 }
46368 static void *_p_wxColourPickerCtrlTo_p_wxControl(void *x) {
46369 return (void *)((wxControl *) (wxPickerBase *) ((wxColourPickerCtrl *) x));
46370 }
46371 static void *_p_wxFilePickerCtrlTo_p_wxControl(void *x) {
46372 return (void *)((wxControl *) (wxPickerBase *) ((wxFilePickerCtrl *) x));
46373 }
46374 static void *_p_wxDirPickerCtrlTo_p_wxControl(void *x) {
46375 return (void *)((wxControl *) (wxPickerBase *) ((wxDirPickerCtrl *) x));
46376 }
46377 static void *_p_wxFontPickerCtrlTo_p_wxControl(void *x) {
46378 return (void *)((wxControl *) (wxPickerBase *) ((wxFontPickerCtrl *) x));
46379 }
46380 static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
46381 return (void *)((wxControl *) ((wxTextCtrl *) x));
46382 }
46383 static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
46384 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
46385 }
46386 static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
46387 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
46388 }
46389 static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) {
46390 return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
46391 }
46392 static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
46393 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
46394 }
46395 static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
46396 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
46397 }
46398 static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
46399 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
46400 }
46401 static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
46402 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
46403 }
46404 static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
46405 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
46406 }
46407 static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) {
46408 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
46409 }
46410 static void *_p_wxTreebookEventTo_p_wxNotifyEvent(void *x) {
46411 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
46412 }
46413 static void *_p_wxToolbookEventTo_p_wxNotifyEvent(void *x) {
46414 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
46415 }
46416 static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) {
46417 return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x));
46418 }
46419 static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) {
46420 return (void *)((wxBookCtrlBase *) ((wxListbook *) x));
46421 }
46422 static void *_p_wxToolbookTo_p_wxBookCtrlBase(void *x) {
46423 return (void *)((wxBookCtrlBase *) ((wxToolbook *) x));
46424 }
46425 static void *_p_wxTreebookTo_p_wxBookCtrlBase(void *x) {
46426 return (void *)((wxBookCtrlBase *) ((wxTreebook *) x));
46427 }
46428 static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) {
46429 return (void *)((wxBookCtrlBase *) ((wxNotebook *) x));
46430 }
46431 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
46432 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
46433 }
46434 static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) {
46435 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
46436 }
46437 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
46438 return (void *)((wxEvtHandler *) ((wxValidator *) x));
46439 }
46440 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
46441 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
46442 }
46443 static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
46444 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
46445 }
46446 static void *_p_wxPickerBaseTo_p_wxEvtHandler(void *x) {
46447 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPickerBase *) x));
46448 }
46449 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
46450 return (void *)((wxEvtHandler *) ((wxMenu *) x));
46451 }
46452 static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
46453 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
46454 }
46455 static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
46456 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
46457 }
46458 static void *_p_wxToolbookTo_p_wxEvtHandler(void *x) {
46459 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
46460 }
46461 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
46462 return (void *)((wxEvtHandler *) ((wxWindow *) x));
46463 }
46464 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
46465 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
46466 }
46467 static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
46468 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x));
46469 }
46470 static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
46471 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
46472 }
46473 static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
46474 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
46475 }
46476 static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
46477 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46478 }
46479 static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
46480 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
46481 }
46482 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
46483 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
46484 }
46485 static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
46486 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
46487 }
46488 static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
46489 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
46490 }
46491 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
46492 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
46493 }
46494 static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
46495 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
46496 }
46497 static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
46498 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
46499 }
46500 static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) {
46501 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
46502 }
46503 static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
46504 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
46505 }
46506 static void *_p_wxHyperlinkCtrlTo_p_wxEvtHandler(void *x) {
46507 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
46508 }
46509 static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
46510 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
46511 }
46512 static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
46513 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
46514 }
46515 static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
46516 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
46517 }
46518 static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
46519 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
46520 }
46521 static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
46522 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
46523 }
46524 static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
46525 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
46526 }
46527 static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
46528 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
46529 }
46530 static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
46531 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
46532 }
46533 static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
46534 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
46535 }
46536 static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
46537 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
46538 }
46539 static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
46540 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
46541 }
46542 static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
46543 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
46544 }
46545 static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
46546 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
46547 }
46548 static void *_p_wxTreebookTo_p_wxEvtHandler(void *x) {
46549 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
46550 }
46551 static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
46552 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
46553 }
46554 static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
46555 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
46556 }
46557 static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
46558 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
46559 }
46560 static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
46561 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
46562 }
46563 static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) {
46564 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
46565 }
46566 static void *_p_wxColourPickerCtrlTo_p_wxEvtHandler(void *x) {
46567 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
46568 }
46569 static void *_p_wxFilePickerCtrlTo_p_wxEvtHandler(void *x) {
46570 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
46571 }
46572 static void *_p_wxDirPickerCtrlTo_p_wxEvtHandler(void *x) {
46573 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
46574 }
46575 static void *_p_wxFontPickerCtrlTo_p_wxEvtHandler(void *x) {
46576 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
46577 }
46578 static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
46579 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
46580 }
46581 static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
46582 return (void *)((wxListBox *) ((wxCheckListBox *) x));
46583 }
46584 static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
46585 return (void *)((wxButton *) ((wxBitmapButton *) x));
46586 }
46587 static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
46588 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
46589 }
46590 static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
46591 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
46592 }
46593 static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
46594 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
46595 }
46596 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
46597 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
46598 }
46599 static void *_p_wxToolbookTo_p_wxObject(void *x) {
46600 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
46601 }
46602 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
46603 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
46604 }
46605 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
46606 return (void *)((wxObject *) ((wxSizerItem *) x));
46607 }
46608 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
46609 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
46610 }
46611 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
46612 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
46613 }
46614 static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
46615 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
46616 }
46617 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
46618 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
46619 }
46620 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
46621 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
46622 }
46623 static void *_p_wxSizerTo_p_wxObject(void *x) {
46624 return (void *)((wxObject *) ((wxSizer *) x));
46625 }
46626 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
46627 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
46628 }
46629 static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
46630 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
46631 }
46632 static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
46633 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
46634 }
46635 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
46636 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
46637 }
46638 static void *_p_wxEventTo_p_wxObject(void *x) {
46639 return (void *)((wxObject *) ((wxEvent *) x));
46640 }
46641 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
46642 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
46643 }
46644 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
46645 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
46646 }
46647 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
46648 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
46649 }
46650 static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
46651 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
46652 }
46653 static void *_p_wxPickerBaseTo_p_wxObject(void *x) {
46654 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPickerBase *) x));
46655 }
46656 static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
46657 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
46658 }
46659 static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
46660 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46661 }
46662 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
46663 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
46664 }
46665 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
46666 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
46667 }
46668 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
46669 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
46670 }
46671 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
46672 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
46673 }
46674 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
46675 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
46676 }
46677 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
46678 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
46679 }
46680 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
46681 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
46682 }
46683 static void *_p_wxStaticLineTo_p_wxObject(void *x) {
46684 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
46685 }
46686 static void *_p_wxControlTo_p_wxObject(void *x) {
46687 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
46688 }
46689 static void *_p_wxPyControlTo_p_wxObject(void *x) {
46690 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
46691 }
46692 static void *_p_wxGaugeTo_p_wxObject(void *x) {
46693 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
46694 }
46695 static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
46696 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
46697 }
46698 static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
46699 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
46700 }
46701 static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
46702 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
46703 }
46704 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
46705 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
46706 }
46707 static void *_p_wxColourPickerEventTo_p_wxObject(void *x) {
46708 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxColourPickerEvent *) x));
46709 }
46710 static void *_p_wxFileDirPickerEventTo_p_wxObject(void *x) {
46711 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFileDirPickerEvent *) x));
46712 }
46713 static void *_p_wxFontPickerEventTo_p_wxObject(void *x) {
46714 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFontPickerEvent *) x));
46715 }
46716 static void *_p_wxChoiceTo_p_wxObject(void *x) {
46717 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
46718 }
46719 static void *_p_wxFSFileTo_p_wxObject(void *x) {
46720 return (void *)((wxObject *) ((wxFSFile *) x));
46721 }
46722 static void *_p_wxPySizerTo_p_wxObject(void *x) {
46723 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
46724 }
46725 static void *_p_wxTreebookTo_p_wxObject(void *x) {
46726 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
46727 }
46728 static void *_p_wxListViewTo_p_wxObject(void *x) {
46729 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
46730 }
46731 static void *_p_wxHyperlinkEventTo_p_wxObject(void *x) {
46732 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHyperlinkEvent *) x));
46733 }
46734 static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
46735 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
46736 }
46737 static void *_p_wxNotebookTo_p_wxObject(void *x) {
46738 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
46739 }
46740 static void *_p_wxPyEventTo_p_wxObject(void *x) {
46741 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
46742 }
46743 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
46744 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
46745 }
46746 static void *_p_wxChoicebookTo_p_wxObject(void *x) {
46747 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
46748 }
46749 static void *_p_wxListbookTo_p_wxObject(void *x) {
46750 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
46751 }
46752 static void *_p_wxShowEventTo_p_wxObject(void *x) {
46753 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
46754 }
46755 static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
46756 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
46757 }
46758 static void *_p_wxSliderTo_p_wxObject(void *x) {
46759 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
46760 }
46761 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
46762 return (void *)((wxObject *) ((wxMenuItem *) x));
46763 }
46764 static void *_p_wxDateEventTo_p_wxObject(void *x) {
46765 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
46766 }
46767 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
46768 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
46769 }
46770 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
46771 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
46772 }
46773 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
46774 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
46775 }
46776 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
46777 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
46778 }
46779 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
46780 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
46781 }
46782 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
46783 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
46784 }
46785 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
46786 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
46787 }
46788 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
46789 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
46790 }
46791 static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
46792 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
46793 }
46794 static void *_p_wxContextHelpTo_p_wxObject(void *x) {
46795 return (void *)((wxObject *) ((wxContextHelp *) x));
46796 }
46797 static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) {
46798 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
46799 }
46800 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
46801 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
46802 }
46803 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
46804 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
46805 }
46806 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
46807 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
46808 }
46809 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
46810 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
46811 }
46812 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
46813 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
46814 }
46815 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
46816 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
46817 }
46818 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
46819 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
46820 }
46821 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
46822 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
46823 }
46824 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
46825 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
46826 }
46827 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
46828 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
46829 }
46830 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
46831 return (void *)((wxObject *) ((wxImageHandler *) x));
46832 }
46833 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
46834 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
46835 }
46836 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
46837 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
46838 }
46839 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
46840 return (void *)((wxObject *) ((wxEvtHandler *) x));
46841 }
46842 static void *_p_wxListEventTo_p_wxObject(void *x) {
46843 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
46844 }
46845 static void *_p_wxListBoxTo_p_wxObject(void *x) {
46846 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
46847 }
46848 static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
46849 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
46850 }
46851 static void *_p_wxButtonTo_p_wxObject(void *x) {
46852 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
46853 }
46854 static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
46855 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
46856 }
46857 static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
46858 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
46859 }
46860 static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
46861 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
46862 }
46863 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
46864 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
46865 }
46866 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
46867 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
46868 }
46869 static void *_p_wxScrollBarTo_p_wxObject(void *x) {
46870 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
46871 }
46872 static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
46873 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
46874 }
46875 static void *_p_wxComboBoxTo_p_wxObject(void *x) {
46876 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x));
46877 }
46878 static void *_p_wxHelpEventTo_p_wxObject(void *x) {
46879 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
46880 }
46881 static void *_p_wxListItemTo_p_wxObject(void *x) {
46882 return (void *)((wxObject *) ((wxListItem *) x));
46883 }
46884 static void *_p_wxImageTo_p_wxObject(void *x) {
46885 return (void *)((wxObject *) ((wxImage *) x));
46886 }
46887 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
46888 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
46889 }
46890 static void *_p_wxSpinEventTo_p_wxObject(void *x) {
46891 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
46892 }
46893 static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
46894 return (void *)((wxObject *) ((wxGenericDragImage *) x));
46895 }
46896 static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
46897 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
46898 }
46899 static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
46900 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
46901 }
46902 static void *_p_wxListbookEventTo_p_wxObject(void *x) {
46903 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
46904 }
46905 static void *_p_wxChoicebookEventTo_p_wxObject(void *x) {
46906 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
46907 }
46908 static void *_p_wxTreebookEventTo_p_wxObject(void *x) {
46909 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
46910 }
46911 static void *_p_wxToolbookEventTo_p_wxObject(void *x) {
46912 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
46913 }
46914 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
46915 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
46916 }
46917 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
46918 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
46919 }
46920 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
46921 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
46922 }
46923 static void *_p_wxWindowTo_p_wxObject(void *x) {
46924 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
46925 }
46926 static void *_p_wxMenuTo_p_wxObject(void *x) {
46927 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
46928 }
46929 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
46930 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
46931 }
46932 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
46933 return (void *)((wxObject *) ((wxFileSystem *) x));
46934 }
46935 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
46936 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
46937 }
46938 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
46939 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
46940 }
46941 static void *_p_wxPyAppTo_p_wxObject(void *x) {
46942 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
46943 }
46944 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
46945 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
46946 }
46947 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
46948 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
46949 }
46950 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
46951 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
46952 }
46953 static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) {
46954 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
46955 }
46956 static void *_p_wxTreeEventTo_p_wxObject(void *x) {
46957 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
46958 }
46959 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
46960 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
46961 }
46962 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
46963 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
46964 }
46965 static void *_p_wxStaticTextTo_p_wxObject(void *x) {
46966 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
46967 }
46968 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
46969 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
46970 }
46971 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
46972 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
46973 }
46974 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
46975 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
46976 }
46977 static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) {
46978 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
46979 }
46980 static void *_p_wxColourPickerCtrlTo_p_wxObject(void *x) {
46981 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
46982 }
46983 static void *_p_wxFilePickerCtrlTo_p_wxObject(void *x) {
46984 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
46985 }
46986 static void *_p_wxDirPickerCtrlTo_p_wxObject(void *x) {
46987 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
46988 }
46989 static void *_p_wxFontPickerCtrlTo_p_wxObject(void *x) {
46990 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
46991 }
46992 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
46993 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
46994 }
46995 static void *_p_wxHyperlinkCtrlTo_p_wxObject(void *x) {
46996 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
46997 }
46998 static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
46999 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
47000 }
47001 static void *_p_wxToolBarTo_p_wxObject(void *x) {
47002 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
47003 }
47004 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
47005 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
47006 }
47007 static void *_p_wxValidatorTo_p_wxObject(void *x) {
47008 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
47009 }
47010 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
47011 return (void *)((wxWindow *) ((wxMenuBar *) x));
47012 }
47013 static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) {
47014 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x));
47015 }
47016 static void *_p_wxToolBarTo_p_wxWindow(void *x) {
47017 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
47018 }
47019 static void *_p_wxPickerBaseTo_p_wxWindow(void *x) {
47020 return (void *)((wxWindow *) (wxControl *) ((wxPickerBase *) x));
47021 }
47022 static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
47023 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
47024 }
47025 static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
47026 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
47027 }
47028 static void *_p_wxToolbookTo_p_wxWindow(void *x) {
47029 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
47030 }
47031 static void *_p_wxControlTo_p_wxWindow(void *x) {
47032 return (void *)((wxWindow *) ((wxControl *) x));
47033 }
47034 static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
47035 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
47036 }
47037 static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
47038 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
47039 }
47040 static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
47041 return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x));
47042 }
47043 static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
47044 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
47045 }
47046 static void *_p_wxPyControlTo_p_wxWindow(void *x) {
47047 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
47048 }
47049 static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
47050 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
47051 }
47052 static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
47053 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
47054 }
47055 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
47056 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
47057 }
47058 static void *_p_wxGaugeTo_p_wxWindow(void *x) {
47059 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
47060 }
47061 static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
47062 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
47063 }
47064 static void *_p_wxChoicebookTo_p_wxWindow(void *x) {
47065 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
47066 }
47067 static void *_p_wxListbookTo_p_wxWindow(void *x) {
47068 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
47069 }
47070 static void *_p_wxHyperlinkCtrlTo_p_wxWindow(void *x) {
47071 return (void *)((wxWindow *) (wxControl *) ((wxHyperlinkCtrl *) x));
47072 }
47073 static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
47074 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
47075 }
47076 static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
47077 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
47078 }
47079 static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
47080 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
47081 }
47082 static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
47083 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
47084 }
47085 static void *_p_wxChoiceTo_p_wxWindow(void *x) {
47086 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
47087 }
47088 static void *_p_wxListBoxTo_p_wxWindow(void *x) {
47089 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
47090 }
47091 static void *_p_wxListViewTo_p_wxWindow(void *x) {
47092 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
47093 }
47094 static void *_p_wxNotebookTo_p_wxWindow(void *x) {
47095 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
47096 }
47097 static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
47098 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
47099 }
47100 static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
47101 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
47102 }
47103 static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
47104 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
47105 }
47106 static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
47107 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
47108 }
47109 static void *_p_wxSliderTo_p_wxWindow(void *x) {
47110 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
47111 }
47112 static void *_p_wxTreebookTo_p_wxWindow(void *x) {
47113 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
47114 }
47115 static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
47116 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
47117 }
47118 static void *_p_wxButtonTo_p_wxWindow(void *x) {
47119 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
47120 }
47121 static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
47122 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
47123 }
47124 static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
47125 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
47126 }
47127 static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) {
47128 return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x));
47129 }
47130 static void *_p_wxColourPickerCtrlTo_p_wxWindow(void *x) {
47131 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
47132 }
47133 static void *_p_wxFilePickerCtrlTo_p_wxWindow(void *x) {
47134 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
47135 }
47136 static void *_p_wxDirPickerCtrlTo_p_wxWindow(void *x) {
47137 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
47138 }
47139 static void *_p_wxFontPickerCtrlTo_p_wxWindow(void *x) {
47140 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
47141 }
47142 static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
47143 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
47144 }
47145 static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47146 return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47147 }
47148 static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47149 return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47150 }
47151 static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47152 return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47153 }
47154 static void *_p_wxTreebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47155 return (void *)((wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47156 }
47157 static void *_p_wxToolbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47158 return (void *)((wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47159 }
47160 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
47161 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
47162 }
47163 static void *_p_wxHyperlinkEventTo_p_wxCommandEvent(void *x) {
47164 return (void *)((wxCommandEvent *) ((wxHyperlinkEvent *) x));
47165 }
47166 static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) {
47167 return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x));
47168 }
47169 static void *_p_wxColourPickerEventTo_p_wxCommandEvent(void *x) {
47170 return (void *)((wxCommandEvent *) ((wxColourPickerEvent *) x));
47171 }
47172 static void *_p_wxFileDirPickerEventTo_p_wxCommandEvent(void *x) {
47173 return (void *)((wxCommandEvent *) ((wxFileDirPickerEvent *) x));
47174 }
47175 static void *_p_wxFontPickerEventTo_p_wxCommandEvent(void *x) {
47176 return (void *)((wxCommandEvent *) ((wxFontPickerEvent *) x));
47177 }
47178 static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
47179 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
47180 }
47181 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
47182 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
47183 }
47184 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
47185 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
47186 }
47187 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
47188 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
47189 }
47190 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
47191 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
47192 }
47193 static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
47194 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47195 }
47196 static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
47197 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47198 }
47199 static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) {
47200 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47201 }
47202 static void *_p_wxTreebookEventTo_p_wxCommandEvent(void *x) {
47203 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47204 }
47205 static void *_p_wxToolbookEventTo_p_wxCommandEvent(void *x) {
47206 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47207 }
47208 static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
47209 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
47210 }
47211 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
47212 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
47213 }
47214 static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
47215 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
47216 }
47217 static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) {
47218 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
47219 }
47220 static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
47221 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
47222 }
47223 static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
47224 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
47225 }
47226 static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
47227 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
47228 }
47229 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
47230 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
47231 }
47232 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
47233 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
47234 }
47235 static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
47236 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
47237 }
47238 static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
47239 return (void *)((wxControlWithItems *) ((wxChoice *) x));
47240 }
47241 static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
47242 return (void *)((wxControlWithItems *) ((wxListBox *) x));
47243 }
47244 static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
47245 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
47246 }
47247 static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
47248 return (void *)((wxValidator *) ((wxPyValidator *) x));
47249 }
47250 static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0};
47251 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
47252 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};
47253 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
47254 static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
47255 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
47256 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
47257 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
47258 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
47259 static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0};
47260 static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0};
47261 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
47262 static swig_type_info _swigt__p_wxBitmapButton = {"_p_wxBitmapButton", "wxBitmapButton *", 0, 0, (void*)0, 0};
47263 static swig_type_info _swigt__p_wxBookCtrlBase = {"_p_wxBookCtrlBase", "wxBookCtrlBase *", 0, 0, (void*)0, 0};
47264 static swig_type_info _swigt__p_wxBookCtrlBaseEvent = {"_p_wxBookCtrlBaseEvent", "wxBookCtrlBaseEvent *", 0, 0, (void*)0, 0};
47265 static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, (void*)0, 0};
47266 static swig_type_info _swigt__p_wxCheckBox = {"_p_wxCheckBox", "wxCheckBox *", 0, 0, (void*)0, 0};
47267 static swig_type_info _swigt__p_wxCheckListBox = {"_p_wxCheckListBox", "wxCheckListBox *", 0, 0, (void*)0, 0};
47268 static swig_type_info _swigt__p_wxChoice = {"_p_wxChoice", "wxChoice *", 0, 0, (void*)0, 0};
47269 static swig_type_info _swigt__p_wxChoicebook = {"_p_wxChoicebook", "wxChoicebook *", 0, 0, (void*)0, 0};
47270 static swig_type_info _swigt__p_wxChoicebookEvent = {"_p_wxChoicebookEvent", "wxChoicebookEvent *", 0, 0, (void*)0, 0};
47271 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
47272 static swig_type_info _swigt__p_wxColourPickerCtrl = {"_p_wxColourPickerCtrl", "wxColourPickerCtrl *", 0, 0, (void*)0, 0};
47273 static swig_type_info _swigt__p_wxColourPickerEvent = {"_p_wxColourPickerEvent", "wxColourPickerEvent *", 0, 0, (void*)0, 0};
47274 static swig_type_info _swigt__p_wxComboBox = {"_p_wxComboBox", "wxComboBox *", 0, 0, (void*)0, 0};
47275 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0};
47276 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
47277 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
47278 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
47279 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
47280 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
47281 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
47282 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
47283 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
47284 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
47285 static swig_type_info _swigt__p_wxContextHelp = {"_p_wxContextHelp", "wxContextHelp *", 0, 0, (void*)0, 0};
47286 static swig_type_info _swigt__p_wxContextHelpButton = {"_p_wxContextHelpButton", "wxContextHelpButton *", 0, 0, (void*)0, 0};
47287 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, (void*)0, 0};
47288 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, (void*)0, 0};
47289 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
47290 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
47291 static swig_type_info _swigt__p_wxDatePickerCtrl = {"_p_wxDatePickerCtrl", "wxDatePickerCtrl *", 0, 0, (void*)0, 0};
47292 static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0};
47293 static swig_type_info _swigt__p_wxDirFilterListCtrl = {"_p_wxDirFilterListCtrl", "wxDirFilterListCtrl *", 0, 0, (void*)0, 0};
47294 static swig_type_info _swigt__p_wxDirPickerCtrl = {"_p_wxDirPickerCtrl", "wxDirPickerCtrl *", 0, 0, (void*)0, 0};
47295 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
47296 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0};
47297 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
47298 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
47299 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
47300 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
47301 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
47302 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
47303 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
47304 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
47305 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
47306 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
47307 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
47308 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
47309 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
47310 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
47311 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
47312 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
47313 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
47314 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
47315 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
47316 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
47317 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
47318 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
47319 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
47320 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
47321 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0};
47322 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
47323 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
47324 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
47325 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
47326 static swig_type_info _swigt__p_wxFileDirPickerEvent = {"_p_wxFileDirPickerEvent", "wxFileDirPickerEvent *", 0, 0, (void*)0, 0};
47327 static swig_type_info _swigt__p_wxFilePickerCtrl = {"_p_wxFilePickerCtrl", "wxFilePickerCtrl *", 0, 0, (void*)0, 0};
47328 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
47329 static swig_type_info _swigt__p_wxFontPickerCtrl = {"_p_wxFontPickerCtrl", "wxFontPickerCtrl *", 0, 0, (void*)0, 0};
47330 static swig_type_info _swigt__p_wxFontPickerEvent = {"_p_wxFontPickerEvent", "wxFontPickerEvent *", 0, 0, (void*)0, 0};
47331 static swig_type_info _swigt__p_wxGauge = {"_p_wxGauge", "wxGauge *", 0, 0, (void*)0, 0};
47332 static swig_type_info _swigt__p_wxGenericDirCtrl = {"_p_wxGenericDirCtrl", "wxGenericDirCtrl *", 0, 0, (void*)0, 0};
47333 static swig_type_info _swigt__p_wxGenericDragImage = {"_p_wxGenericDragImage", "wxGenericDragImage *", 0, 0, (void*)0, 0};
47334 static swig_type_info _swigt__p_wxHelpEvent = {"_p_wxHelpEvent", "wxHelpEvent *", 0, 0, (void*)0, 0};
47335 static swig_type_info _swigt__p_wxHelpProvider = {"_p_wxHelpProvider", "wxHelpProvider *", 0, 0, (void*)0, 0};
47336 static swig_type_info _swigt__p_wxHyperlinkCtrl = {"_p_wxHyperlinkCtrl", "wxHyperlinkCtrl *", 0, 0, (void*)0, 0};
47337 static swig_type_info _swigt__p_wxHyperlinkEvent = {"_p_wxHyperlinkEvent", "wxHyperlinkEvent *", 0, 0, (void*)0, 0};
47338 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
47339 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
47340 static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, (void*)0, 0};
47341 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, (void*)0, 0};
47342 static swig_type_info _swigt__p_wxListBox = {"_p_wxListBox", "wxListBox *", 0, 0, (void*)0, 0};
47343 static swig_type_info _swigt__p_wxListEvent = {"_p_wxListEvent", "wxListEvent *", 0, 0, (void*)0, 0};
47344 static swig_type_info _swigt__p_wxListItem = {"_p_wxListItem", "wxListItem *", 0, 0, (void*)0, 0};
47345 static swig_type_info _swigt__p_wxListItemAttr = {"_p_wxListItemAttr", "wxListItemAttr *", 0, 0, (void*)0, 0};
47346 static swig_type_info _swigt__p_wxListView = {"_p_wxListView", "wxListView *", 0, 0, (void*)0, 0};
47347 static swig_type_info _swigt__p_wxListbook = {"_p_wxListbook", "wxListbook *", 0, 0, (void*)0, 0};
47348 static swig_type_info _swigt__p_wxListbookEvent = {"_p_wxListbookEvent", "wxListbookEvent *", 0, 0, (void*)0, 0};
47349 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
47350 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, (void*)0, 0};
47351 static swig_type_info _swigt__p_wxNotebook = {"_p_wxNotebook", "wxNotebook *", 0, 0, (void*)0, 0};
47352 static swig_type_info _swigt__p_wxNotebookEvent = {"_p_wxNotebookEvent", "wxNotebookEvent *", 0, 0, (void*)0, 0};
47353 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0};
47354 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
47355 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
47356 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
47357 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
47358 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
47359 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
47360 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
47361 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
47362 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
47363 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
47364 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
47365 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
47366 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
47367 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
47368 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
47369 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
47370 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
47371 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
47372 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
47373 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
47374 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
47375 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
47376 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
47377 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
47378 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
47379 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
47380 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
47381 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
47382 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
47383 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0};
47384 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
47385 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
47386 static swig_type_info _swigt__p_wxPickerBase = {"_p_wxPickerBase", "wxPickerBase *", 0, 0, (void*)0, 0};
47387 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
47388 static swig_type_info _swigt__p_wxPyControl = {"_p_wxPyControl", "wxPyControl *", 0, 0, (void*)0, 0};
47389 static swig_type_info _swigt__p_wxPyListCtrl = {"_p_wxPyListCtrl", "wxPyListCtrl *", 0, 0, (void*)0, 0};
47390 static swig_type_info _swigt__p_wxPyTreeCtrl = {"_p_wxPyTreeCtrl", "wxPyTreeCtrl *", 0, 0, (void*)0, 0};
47391 static swig_type_info _swigt__p_wxPyTreeItemData = {"_p_wxPyTreeItemData", "wxPyTreeItemData *", 0, 0, (void*)0, 0};
47392 static swig_type_info _swigt__p_wxRadioBox = {"_p_wxRadioBox", "wxRadioBox *", 0, 0, (void*)0, 0};
47393 static swig_type_info _swigt__p_wxRadioButton = {"_p_wxRadioButton", "wxRadioButton *", 0, 0, (void*)0, 0};
47394 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
47395 static swig_type_info _swigt__p_wxScrollBar = {"_p_wxScrollBar", "wxScrollBar *", 0, 0, (void*)0, 0};
47396 static swig_type_info _swigt__p_wxSimpleHelpProvider = {"_p_wxSimpleHelpProvider", "wxSimpleHelpProvider *", 0, 0, (void*)0, 0};
47397 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
47398 static swig_type_info _swigt__p_wxSlider = {"_p_wxSlider", "wxSlider *", 0, 0, (void*)0, 0};
47399 static swig_type_info _swigt__p_wxSpinButton = {"_p_wxSpinButton", "wxSpinButton *", 0, 0, (void*)0, 0};
47400 static swig_type_info _swigt__p_wxSpinCtrl = {"_p_wxSpinCtrl", "wxSpinCtrl *", 0, 0, (void*)0, 0};
47401 static swig_type_info _swigt__p_wxSpinEvent = {"_p_wxSpinEvent", "wxSpinEvent *", 0, 0, (void*)0, 0};
47402 static swig_type_info _swigt__p_wxStaticBitmap = {"_p_wxStaticBitmap", "wxStaticBitmap *", 0, 0, (void*)0, 0};
47403 static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, (void*)0, 0};
47404 static swig_type_info _swigt__p_wxStaticLine = {"_p_wxStaticLine", "wxStaticLine *", 0, 0, (void*)0, 0};
47405 static swig_type_info _swigt__p_wxStaticText = {"_p_wxStaticText", "wxStaticText *", 0, 0, (void*)0, 0};
47406 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
47407 static swig_type_info _swigt__p_wxTextAttr = {"_p_wxTextAttr", "wxTextAttr *", 0, 0, (void*)0, 0};
47408 static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, (void*)0, 0};
47409 static swig_type_info _swigt__p_wxTextUrlEvent = {"_p_wxTextUrlEvent", "wxTextUrlEvent *", 0, 0, (void*)0, 0};
47410 static swig_type_info _swigt__p_wxToggleButton = {"_p_wxToggleButton", "wxToggleButton *", 0, 0, (void*)0, 0};
47411 static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0};
47412 static swig_type_info _swigt__p_wxToolBarBase = {"_p_wxToolBarBase", "wxToolBarBase *", 0, 0, (void*)0, 0};
47413 static swig_type_info _swigt__p_wxToolBarToolBase = {"_p_wxToolBarToolBase", "wxToolBarToolBase *", 0, 0, (void*)0, 0};
47414 static swig_type_info _swigt__p_wxToolbook = {"_p_wxToolbook", "wxToolbook *", 0, 0, (void*)0, 0};
47415 static swig_type_info _swigt__p_wxToolbookEvent = {"_p_wxToolbookEvent", "wxToolbookEvent *", 0, 0, (void*)0, 0};
47416 static swig_type_info _swigt__p_wxTreeCtrl = {"_p_wxTreeCtrl", "wxTreeCtrl *", 0, 0, (void*)0, 0};
47417 static swig_type_info _swigt__p_wxTreeEvent = {"_p_wxTreeEvent", "wxTreeEvent *", 0, 0, (void*)0, 0};
47418 static swig_type_info _swigt__p_wxTreeItemId = {"_p_wxTreeItemId", "wxTreeItemId *", 0, 0, (void*)0, 0};
47419 static swig_type_info _swigt__p_wxTreebook = {"_p_wxTreebook", "wxTreebook *", 0, 0, (void*)0, 0};
47420 static swig_type_info _swigt__p_wxTreebookEvent = {"_p_wxTreebookEvent", "wxTreebookEvent *", 0, 0, (void*)0, 0};
47421 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, (void*)0, 0};
47422 static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0};
47423 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
47424 static swig_type_info _swigt__p_wxWindowBase = {"_p_wxWindowBase", "wxWindowBase *", 0, 0, (void*)0, 0};
47425
47426 static swig_type_info *swig_type_initial[] = {
47427 &_swigt__p_bool,
47428 &_swigt__p_char,
47429 &_swigt__p_form_ops_t,
47430 &_swigt__p_int,
47431 &_swigt__p_long,
47432 &_swigt__p_unsigned_char,
47433 &_swigt__p_unsigned_int,
47434 &_swigt__p_unsigned_long,
47435 &_swigt__p_void,
47436 &_swigt__p_wxANIHandler,
47437 &_swigt__p_wxAcceleratorTable,
47438 &_swigt__p_wxActivateEvent,
47439 &_swigt__p_wxArrayInt,
47440 &_swigt__p_wxArrayString,
47441 &_swigt__p_wxBMPHandler,
47442 &_swigt__p_wxBitmap,
47443 &_swigt__p_wxBitmapButton,
47444 &_swigt__p_wxBookCtrlBase,
47445 &_swigt__p_wxBookCtrlBaseEvent,
47446 &_swigt__p_wxBoxSizer,
47447 &_swigt__p_wxButton,
47448 &_swigt__p_wxCURHandler,
47449 &_swigt__p_wxCheckBox,
47450 &_swigt__p_wxCheckListBox,
47451 &_swigt__p_wxChildFocusEvent,
47452 &_swigt__p_wxChoice,
47453 &_swigt__p_wxChoicebook,
47454 &_swigt__p_wxChoicebookEvent,
47455 &_swigt__p_wxClipboardTextEvent,
47456 &_swigt__p_wxCloseEvent,
47457 &_swigt__p_wxColour,
47458 &_swigt__p_wxColourPickerCtrl,
47459 &_swigt__p_wxColourPickerEvent,
47460 &_swigt__p_wxComboBox,
47461 &_swigt__p_wxCommandEvent,
47462 &_swigt__p_wxContextHelp,
47463 &_swigt__p_wxContextHelpButton,
47464 &_swigt__p_wxContextMenuEvent,
47465 &_swigt__p_wxControl,
47466 &_swigt__p_wxControlWithItems,
47467 &_swigt__p_wxCursor,
47468 &_swigt__p_wxDC,
47469 &_swigt__p_wxDateEvent,
47470 &_swigt__p_wxDatePickerCtrl,
47471 &_swigt__p_wxDateTime,
47472 &_swigt__p_wxDirFilterListCtrl,
47473 &_swigt__p_wxDirPickerCtrl,
47474 &_swigt__p_wxDisplayChangedEvent,
47475 &_swigt__p_wxDropFilesEvent,
47476 &_swigt__p_wxDuplexMode,
47477 &_swigt__p_wxEraseEvent,
47478 &_swigt__p_wxEvent,
47479 &_swigt__p_wxEvtHandler,
47480 &_swigt__p_wxFSFile,
47481 &_swigt__p_wxFileDirPickerEvent,
47482 &_swigt__p_wxFilePickerCtrl,
47483 &_swigt__p_wxFileSystem,
47484 &_swigt__p_wxFlexGridSizer,
47485 &_swigt__p_wxFocusEvent,
47486 &_swigt__p_wxFont,
47487 &_swigt__p_wxFontPickerCtrl,
47488 &_swigt__p_wxFontPickerEvent,
47489 &_swigt__p_wxGBSizerItem,
47490 &_swigt__p_wxGIFHandler,
47491 &_swigt__p_wxGauge,
47492 &_swigt__p_wxGenericDirCtrl,
47493 &_swigt__p_wxGenericDragImage,
47494 &_swigt__p_wxGridBagSizer,
47495 &_swigt__p_wxGridSizer,
47496 &_swigt__p_wxHelpEvent,
47497 &_swigt__p_wxHelpProvider,
47498 &_swigt__p_wxHyperlinkCtrl,
47499 &_swigt__p_wxHyperlinkEvent,
47500 &_swigt__p_wxICOHandler,
47501 &_swigt__p_wxIcon,
47502 &_swigt__p_wxIconizeEvent,
47503 &_swigt__p_wxIdleEvent,
47504 &_swigt__p_wxImage,
47505 &_swigt__p_wxImageHandler,
47506 &_swigt__p_wxImageList,
47507 &_swigt__p_wxIndividualLayoutConstraint,
47508 &_swigt__p_wxInitDialogEvent,
47509 &_swigt__p_wxItemContainer,
47510 &_swigt__p_wxJPEGHandler,
47511 &_swigt__p_wxKeyEvent,
47512 &_swigt__p_wxLayoutConstraints,
47513 &_swigt__p_wxListBox,
47514 &_swigt__p_wxListEvent,
47515 &_swigt__p_wxListItem,
47516 &_swigt__p_wxListItemAttr,
47517 &_swigt__p_wxListView,
47518 &_swigt__p_wxListbook,
47519 &_swigt__p_wxListbookEvent,
47520 &_swigt__p_wxMaximizeEvent,
47521 &_swigt__p_wxMemoryDC,
47522 &_swigt__p_wxMenu,
47523 &_swigt__p_wxMenuBar,
47524 &_swigt__p_wxMenuEvent,
47525 &_swigt__p_wxMenuItem,
47526 &_swigt__p_wxMouseCaptureChangedEvent,
47527 &_swigt__p_wxMouseEvent,
47528 &_swigt__p_wxMoveEvent,
47529 &_swigt__p_wxNavigationKeyEvent,
47530 &_swigt__p_wxNcPaintEvent,
47531 &_swigt__p_wxNotebook,
47532 &_swigt__p_wxNotebookEvent,
47533 &_swigt__p_wxNotifyEvent,
47534 &_swigt__p_wxObject,
47535 &_swigt__p_wxPCXHandler,
47536 &_swigt__p_wxPNGHandler,
47537 &_swigt__p_wxPNMHandler,
47538 &_swigt__p_wxPaintEvent,
47539 &_swigt__p_wxPaletteChangedEvent,
47540 &_swigt__p_wxPaperSize,
47541 &_swigt__p_wxPickerBase,
47542 &_swigt__p_wxPoint,
47543 &_swigt__p_wxPyApp,
47544 &_swigt__p_wxPyCommandEvent,
47545 &_swigt__p_wxPyControl,
47546 &_swigt__p_wxPyEvent,
47547 &_swigt__p_wxPyImageHandler,
47548 &_swigt__p_wxPyListCtrl,
47549 &_swigt__p_wxPySizer,
47550 &_swigt__p_wxPyTreeCtrl,
47551 &_swigt__p_wxPyTreeItemData,
47552 &_swigt__p_wxPyValidator,
47553 &_swigt__p_wxQueryNewPaletteEvent,
47554 &_swigt__p_wxRadioBox,
47555 &_swigt__p_wxRadioButton,
47556 &_swigt__p_wxRect,
47557 &_swigt__p_wxScrollBar,
47558 &_swigt__p_wxScrollEvent,
47559 &_swigt__p_wxScrollWinEvent,
47560 &_swigt__p_wxSetCursorEvent,
47561 &_swigt__p_wxShowEvent,
47562 &_swigt__p_wxSimpleHelpProvider,
47563 &_swigt__p_wxSize,
47564 &_swigt__p_wxSizeEvent,
47565 &_swigt__p_wxSizer,
47566 &_swigt__p_wxSizerItem,
47567 &_swigt__p_wxSlider,
47568 &_swigt__p_wxSpinButton,
47569 &_swigt__p_wxSpinCtrl,
47570 &_swigt__p_wxSpinEvent,
47571 &_swigt__p_wxStaticBitmap,
47572 &_swigt__p_wxStaticBox,
47573 &_swigt__p_wxStaticBoxSizer,
47574 &_swigt__p_wxStaticLine,
47575 &_swigt__p_wxStaticText,
47576 &_swigt__p_wxStdDialogButtonSizer,
47577 &_swigt__p_wxString,
47578 &_swigt__p_wxSysColourChangedEvent,
47579 &_swigt__p_wxTIFFHandler,
47580 &_swigt__p_wxTextAttr,
47581 &_swigt__p_wxTextCtrl,
47582 &_swigt__p_wxTextUrlEvent,
47583 &_swigt__p_wxToggleButton,
47584 &_swigt__p_wxToolBar,
47585 &_swigt__p_wxToolBarBase,
47586 &_swigt__p_wxToolBarToolBase,
47587 &_swigt__p_wxToolbook,
47588 &_swigt__p_wxToolbookEvent,
47589 &_swigt__p_wxTreeCtrl,
47590 &_swigt__p_wxTreeEvent,
47591 &_swigt__p_wxTreeItemId,
47592 &_swigt__p_wxTreebook,
47593 &_swigt__p_wxTreebookEvent,
47594 &_swigt__p_wxUpdateUIEvent,
47595 &_swigt__p_wxValidator,
47596 &_swigt__p_wxVisualAttributes,
47597 &_swigt__p_wxWindow,
47598 &_swigt__p_wxWindowBase,
47599 &_swigt__p_wxWindowCreateEvent,
47600 &_swigt__p_wxWindowDestroyEvent,
47601 &_swigt__p_wxXPMHandler,
47602 };
47603
47604 static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}};
47605 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
47606 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
47607 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
47608 static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
47609 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
47610 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
47611 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
47612 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
47613 static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}};
47614 static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}};
47615 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
47616 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}};
47617 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}};
47618 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}};
47619 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}};
47620 static swig_cast_info _swigc__p_wxCheckBox[] = { {&_swigt__p_wxCheckBox, 0, 0, 0},{0, 0, 0, 0}};
47621 static swig_cast_info _swigc__p_wxCheckListBox[] = { {&_swigt__p_wxCheckListBox, 0, 0, 0},{0, 0, 0, 0}};
47622 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}};
47623 static swig_cast_info _swigc__p_wxChoicebook[] = { {&_swigt__p_wxChoicebook, 0, 0, 0},{0, 0, 0, 0}};
47624 static swig_cast_info _swigc__p_wxChoicebookEvent[] = { {&_swigt__p_wxChoicebookEvent, 0, 0, 0},{0, 0, 0, 0}};
47625 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
47626 static swig_cast_info _swigc__p_wxColourPickerCtrl[] = { {&_swigt__p_wxColourPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
47627 static swig_cast_info _swigc__p_wxColourPickerEvent[] = { {&_swigt__p_wxColourPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
47628 static swig_cast_info _swigc__p_wxComboBox[] = { {&_swigt__p_wxComboBox, 0, 0, 0},{0, 0, 0, 0}};
47629 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
47630 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
47631 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
47632 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
47633 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
47634 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
47635 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
47636 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
47637 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
47638 static swig_cast_info _swigc__p_wxCommandEvent[] = { {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxCommandEvent, 0, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0},{0, 0, 0, 0}};
47639 static swig_cast_info _swigc__p_wxContextHelp[] = { {&_swigt__p_wxContextHelp, 0, 0, 0},{0, 0, 0, 0}};
47640 static swig_cast_info _swigc__p_wxContextHelpButton[] = { {&_swigt__p_wxContextHelpButton, 0, 0, 0},{0, 0, 0, 0}};
47641 static swig_cast_info _swigc__p_wxControl[] = { {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxControl, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxControl, 0, 0}, {&_swigt__p_wxControl, 0, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxControl, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxControl, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxControl, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxControl, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxControl, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxControl, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxControl, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxControl, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxControl, 0, 0},{0, 0, 0, 0}};
47642 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}};
47643 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
47644 static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}};
47645 static swig_cast_info _swigc__p_wxDatePickerCtrl[] = { {&_swigt__p_wxDatePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
47646 static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}};
47647 static swig_cast_info _swigc__p_wxDirFilterListCtrl[] = { {&_swigt__p_wxDirFilterListCtrl, 0, 0, 0},{0, 0, 0, 0}};
47648 static swig_cast_info _swigc__p_wxDirPickerCtrl[] = { {&_swigt__p_wxDirPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
47649 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
47650 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
47651 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
47652 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
47653 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
47654 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
47655 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
47656 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
47657 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
47658 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
47659 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
47660 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
47661 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
47662 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
47663 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
47664 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
47665 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
47666 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
47667 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
47668 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
47669 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
47670 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
47671 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
47672 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
47673 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
47674 static swig_cast_info _swigc__p_wxEvent[] = { {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEvent, 0, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxEvent, 0, 0},{0, 0, 0, 0}};
47675 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
47676 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
47677 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
47678 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
47679 static swig_cast_info _swigc__p_wxEvtHandler[] = { {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxEvtHandler, 0, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxEvtHandler, 0, 0},{0, 0, 0, 0}};
47680 static swig_cast_info _swigc__p_wxFileDirPickerEvent[] = { {&_swigt__p_wxFileDirPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
47681 static swig_cast_info _swigc__p_wxFilePickerCtrl[] = { {&_swigt__p_wxFilePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
47682 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
47683 static swig_cast_info _swigc__p_wxFontPickerCtrl[] = { {&_swigt__p_wxFontPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
47684 static swig_cast_info _swigc__p_wxFontPickerEvent[] = { {&_swigt__p_wxFontPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
47685 static swig_cast_info _swigc__p_wxGauge[] = { {&_swigt__p_wxGauge, 0, 0, 0},{0, 0, 0, 0}};
47686 static swig_cast_info _swigc__p_wxGenericDirCtrl[] = { {&_swigt__p_wxGenericDirCtrl, 0, 0, 0},{0, 0, 0, 0}};
47687 static swig_cast_info _swigc__p_wxGenericDragImage[] = { {&_swigt__p_wxGenericDragImage, 0, 0, 0},{0, 0, 0, 0}};
47688 static swig_cast_info _swigc__p_wxHelpEvent[] = { {&_swigt__p_wxHelpEvent, 0, 0, 0},{0, 0, 0, 0}};
47689 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}};
47690 static swig_cast_info _swigc__p_wxHyperlinkCtrl[] = { {&_swigt__p_wxHyperlinkCtrl, 0, 0, 0},{0, 0, 0, 0}};
47691 static swig_cast_info _swigc__p_wxHyperlinkEvent[] = { {&_swigt__p_wxHyperlinkEvent, 0, 0, 0},{0, 0, 0, 0}};
47692 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
47693 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
47694 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}};
47695 static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
47696 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}};
47697 static swig_cast_info _swigc__p_wxListEvent[] = { {&_swigt__p_wxListEvent, 0, 0, 0},{0, 0, 0, 0}};
47698 static swig_cast_info _swigc__p_wxListItem[] = { {&_swigt__p_wxListItem, 0, 0, 0},{0, 0, 0, 0}};
47699 static swig_cast_info _swigc__p_wxListItemAttr[] = { {&_swigt__p_wxListItemAttr, 0, 0, 0},{0, 0, 0, 0}};
47700 static swig_cast_info _swigc__p_wxListView[] = { {&_swigt__p_wxListView, 0, 0, 0},{0, 0, 0, 0}};
47701 static swig_cast_info _swigc__p_wxListbook[] = { {&_swigt__p_wxListbook, 0, 0, 0},{0, 0, 0, 0}};
47702 static swig_cast_info _swigc__p_wxListbookEvent[] = { {&_swigt__p_wxListbookEvent, 0, 0, 0},{0, 0, 0, 0}};
47703 static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}};
47704 static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
47705 static swig_cast_info _swigc__p_wxNotebook[] = { {&_swigt__p_wxNotebook, 0, 0, 0},{0, 0, 0, 0}};
47706 static swig_cast_info _swigc__p_wxNotebookEvent[] = { {&_swigt__p_wxNotebookEvent, 0, 0, 0},{0, 0, 0, 0}};
47707 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}};
47708 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
47709 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
47710 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
47711 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
47712 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
47713 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
47714 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
47715 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
47716 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
47717 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
47718 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
47719 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
47720 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
47721 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
47722 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
47723 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
47724 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
47725 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
47726 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
47727 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
47728 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
47729 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
47730 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
47731 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
47732 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
47733 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
47734 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
47735 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
47736 static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
47737 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
47738 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_wxPickerBase, _p_wxPickerBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxObject, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextHelp, _p_wxContextHelpTo_p_wxObject, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxListItem, _p_wxListItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGenericDragImage, _p_wxGenericDragImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBarToolBase, _p_wxToolBarToolBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
47739 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
47740 static swig_cast_info _swigc__p_wxPickerBase[] = { {&_swigt__p_wxPickerBase, 0, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxPickerBase, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxPickerBase, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxPickerBase, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxPickerBase, 0, 0},{0, 0, 0, 0}};
47741 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
47742 static swig_cast_info _swigc__p_wxPyControl[] = { {&_swigt__p_wxPyControl, 0, 0, 0},{0, 0, 0, 0}};
47743 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}};
47744 static swig_cast_info _swigc__p_wxPyTreeCtrl[] = { {&_swigt__p_wxPyTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
47745 static swig_cast_info _swigc__p_wxPyTreeItemData[] = { {&_swigt__p_wxPyTreeItemData, 0, 0, 0},{0, 0, 0, 0}};
47746 static swig_cast_info _swigc__p_wxRadioBox[] = { {&_swigt__p_wxRadioBox, 0, 0, 0},{0, 0, 0, 0}};
47747 static swig_cast_info _swigc__p_wxRadioButton[] = { {&_swigt__p_wxRadioButton, 0, 0, 0},{0, 0, 0, 0}};
47748 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
47749 static swig_cast_info _swigc__p_wxScrollBar[] = { {&_swigt__p_wxScrollBar, 0, 0, 0},{0, 0, 0, 0}};
47750 static swig_cast_info _swigc__p_wxSimpleHelpProvider[] = { {&_swigt__p_wxSimpleHelpProvider, 0, 0, 0},{0, 0, 0, 0}};
47751 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
47752 static swig_cast_info _swigc__p_wxSlider[] = { {&_swigt__p_wxSlider, 0, 0, 0},{0, 0, 0, 0}};
47753 static swig_cast_info _swigc__p_wxSpinButton[] = { {&_swigt__p_wxSpinButton, 0, 0, 0},{0, 0, 0, 0}};
47754 static swig_cast_info _swigc__p_wxSpinCtrl[] = { {&_swigt__p_wxSpinCtrl, 0, 0, 0},{0, 0, 0, 0}};
47755 static swig_cast_info _swigc__p_wxSpinEvent[] = { {&_swigt__p_wxSpinEvent, 0, 0, 0},{0, 0, 0, 0}};
47756 static swig_cast_info _swigc__p_wxStaticBitmap[] = { {&_swigt__p_wxStaticBitmap, 0, 0, 0},{0, 0, 0, 0}};
47757 static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}};
47758 static swig_cast_info _swigc__p_wxStaticLine[] = { {&_swigt__p_wxStaticLine, 0, 0, 0},{0, 0, 0, 0}};
47759 static swig_cast_info _swigc__p_wxStaticText[] = { {&_swigt__p_wxStaticText, 0, 0, 0},{0, 0, 0, 0}};
47760 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
47761 static swig_cast_info _swigc__p_wxTextAttr[] = { {&_swigt__p_wxTextAttr, 0, 0, 0},{0, 0, 0, 0}};
47762 static swig_cast_info _swigc__p_wxTextCtrl[] = { {&_swigt__p_wxTextCtrl, 0, 0, 0},{0, 0, 0, 0}};
47763 static swig_cast_info _swigc__p_wxTextUrlEvent[] = { {&_swigt__p_wxTextUrlEvent, 0, 0, 0},{0, 0, 0, 0}};
47764 static swig_cast_info _swigc__p_wxToggleButton[] = { {&_swigt__p_wxToggleButton, 0, 0, 0},{0, 0, 0, 0}};
47765 static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}};
47766 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}};
47767 static swig_cast_info _swigc__p_wxToolBarToolBase[] = { {&_swigt__p_wxToolBarToolBase, 0, 0, 0},{0, 0, 0, 0}};
47768 static swig_cast_info _swigc__p_wxToolbook[] = { {&_swigt__p_wxToolbook, 0, 0, 0},{0, 0, 0, 0}};
47769 static swig_cast_info _swigc__p_wxToolbookEvent[] = { {&_swigt__p_wxToolbookEvent, 0, 0, 0},{0, 0, 0, 0}};
47770 static swig_cast_info _swigc__p_wxTreeCtrl[] = { {&_swigt__p_wxTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
47771 static swig_cast_info _swigc__p_wxTreeEvent[] = { {&_swigt__p_wxTreeEvent, 0, 0, 0},{0, 0, 0, 0}};
47772 static swig_cast_info _swigc__p_wxTreeItemId[] = { {&_swigt__p_wxTreeItemId, 0, 0, 0},{0, 0, 0, 0}};
47773 static swig_cast_info _swigc__p_wxTreebook[] = { {&_swigt__p_wxTreebook, 0, 0, 0},{0, 0, 0, 0}};
47774 static swig_cast_info _swigc__p_wxTreebookEvent[] = { {&_swigt__p_wxTreebookEvent, 0, 0, 0},{0, 0, 0, 0}};
47775 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}};
47776 static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}};
47777 static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWindow, 0, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxWindow, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxWindow, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxWindow, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxWindow, 0, 0},{0, 0, 0, 0}};
47778 static swig_cast_info _swigc__p_wxWindowBase[] = { {&_swigt__p_wxWindowBase, 0, 0, 0},{0, 0, 0, 0}};
47779
47780 static swig_cast_info *swig_cast_initial[] = {
47781 _swigc__p_bool,
47782 _swigc__p_char,
47783 _swigc__p_form_ops_t,
47784 _swigc__p_int,
47785 _swigc__p_long,
47786 _swigc__p_unsigned_char,
47787 _swigc__p_unsigned_int,
47788 _swigc__p_unsigned_long,
47789 _swigc__p_void,
47790 _swigc__p_wxANIHandler,
47791 _swigc__p_wxAcceleratorTable,
47792 _swigc__p_wxActivateEvent,
47793 _swigc__p_wxArrayInt,
47794 _swigc__p_wxArrayString,
47795 _swigc__p_wxBMPHandler,
47796 _swigc__p_wxBitmap,
47797 _swigc__p_wxBitmapButton,
47798 _swigc__p_wxBookCtrlBase,
47799 _swigc__p_wxBookCtrlBaseEvent,
47800 _swigc__p_wxBoxSizer,
47801 _swigc__p_wxButton,
47802 _swigc__p_wxCURHandler,
47803 _swigc__p_wxCheckBox,
47804 _swigc__p_wxCheckListBox,
47805 _swigc__p_wxChildFocusEvent,
47806 _swigc__p_wxChoice,
47807 _swigc__p_wxChoicebook,
47808 _swigc__p_wxChoicebookEvent,
47809 _swigc__p_wxClipboardTextEvent,
47810 _swigc__p_wxCloseEvent,
47811 _swigc__p_wxColour,
47812 _swigc__p_wxColourPickerCtrl,
47813 _swigc__p_wxColourPickerEvent,
47814 _swigc__p_wxComboBox,
47815 _swigc__p_wxCommandEvent,
47816 _swigc__p_wxContextHelp,
47817 _swigc__p_wxContextHelpButton,
47818 _swigc__p_wxContextMenuEvent,
47819 _swigc__p_wxControl,
47820 _swigc__p_wxControlWithItems,
47821 _swigc__p_wxCursor,
47822 _swigc__p_wxDC,
47823 _swigc__p_wxDateEvent,
47824 _swigc__p_wxDatePickerCtrl,
47825 _swigc__p_wxDateTime,
47826 _swigc__p_wxDirFilterListCtrl,
47827 _swigc__p_wxDirPickerCtrl,
47828 _swigc__p_wxDisplayChangedEvent,
47829 _swigc__p_wxDropFilesEvent,
47830 _swigc__p_wxDuplexMode,
47831 _swigc__p_wxEraseEvent,
47832 _swigc__p_wxEvent,
47833 _swigc__p_wxEvtHandler,
47834 _swigc__p_wxFSFile,
47835 _swigc__p_wxFileDirPickerEvent,
47836 _swigc__p_wxFilePickerCtrl,
47837 _swigc__p_wxFileSystem,
47838 _swigc__p_wxFlexGridSizer,
47839 _swigc__p_wxFocusEvent,
47840 _swigc__p_wxFont,
47841 _swigc__p_wxFontPickerCtrl,
47842 _swigc__p_wxFontPickerEvent,
47843 _swigc__p_wxGBSizerItem,
47844 _swigc__p_wxGIFHandler,
47845 _swigc__p_wxGauge,
47846 _swigc__p_wxGenericDirCtrl,
47847 _swigc__p_wxGenericDragImage,
47848 _swigc__p_wxGridBagSizer,
47849 _swigc__p_wxGridSizer,
47850 _swigc__p_wxHelpEvent,
47851 _swigc__p_wxHelpProvider,
47852 _swigc__p_wxHyperlinkCtrl,
47853 _swigc__p_wxHyperlinkEvent,
47854 _swigc__p_wxICOHandler,
47855 _swigc__p_wxIcon,
47856 _swigc__p_wxIconizeEvent,
47857 _swigc__p_wxIdleEvent,
47858 _swigc__p_wxImage,
47859 _swigc__p_wxImageHandler,
47860 _swigc__p_wxImageList,
47861 _swigc__p_wxIndividualLayoutConstraint,
47862 _swigc__p_wxInitDialogEvent,
47863 _swigc__p_wxItemContainer,
47864 _swigc__p_wxJPEGHandler,
47865 _swigc__p_wxKeyEvent,
47866 _swigc__p_wxLayoutConstraints,
47867 _swigc__p_wxListBox,
47868 _swigc__p_wxListEvent,
47869 _swigc__p_wxListItem,
47870 _swigc__p_wxListItemAttr,
47871 _swigc__p_wxListView,
47872 _swigc__p_wxListbook,
47873 _swigc__p_wxListbookEvent,
47874 _swigc__p_wxMaximizeEvent,
47875 _swigc__p_wxMemoryDC,
47876 _swigc__p_wxMenu,
47877 _swigc__p_wxMenuBar,
47878 _swigc__p_wxMenuEvent,
47879 _swigc__p_wxMenuItem,
47880 _swigc__p_wxMouseCaptureChangedEvent,
47881 _swigc__p_wxMouseEvent,
47882 _swigc__p_wxMoveEvent,
47883 _swigc__p_wxNavigationKeyEvent,
47884 _swigc__p_wxNcPaintEvent,
47885 _swigc__p_wxNotebook,
47886 _swigc__p_wxNotebookEvent,
47887 _swigc__p_wxNotifyEvent,
47888 _swigc__p_wxObject,
47889 _swigc__p_wxPCXHandler,
47890 _swigc__p_wxPNGHandler,
47891 _swigc__p_wxPNMHandler,
47892 _swigc__p_wxPaintEvent,
47893 _swigc__p_wxPaletteChangedEvent,
47894 _swigc__p_wxPaperSize,
47895 _swigc__p_wxPickerBase,
47896 _swigc__p_wxPoint,
47897 _swigc__p_wxPyApp,
47898 _swigc__p_wxPyCommandEvent,
47899 _swigc__p_wxPyControl,
47900 _swigc__p_wxPyEvent,
47901 _swigc__p_wxPyImageHandler,
47902 _swigc__p_wxPyListCtrl,
47903 _swigc__p_wxPySizer,
47904 _swigc__p_wxPyTreeCtrl,
47905 _swigc__p_wxPyTreeItemData,
47906 _swigc__p_wxPyValidator,
47907 _swigc__p_wxQueryNewPaletteEvent,
47908 _swigc__p_wxRadioBox,
47909 _swigc__p_wxRadioButton,
47910 _swigc__p_wxRect,
47911 _swigc__p_wxScrollBar,
47912 _swigc__p_wxScrollEvent,
47913 _swigc__p_wxScrollWinEvent,
47914 _swigc__p_wxSetCursorEvent,
47915 _swigc__p_wxShowEvent,
47916 _swigc__p_wxSimpleHelpProvider,
47917 _swigc__p_wxSize,
47918 _swigc__p_wxSizeEvent,
47919 _swigc__p_wxSizer,
47920 _swigc__p_wxSizerItem,
47921 _swigc__p_wxSlider,
47922 _swigc__p_wxSpinButton,
47923 _swigc__p_wxSpinCtrl,
47924 _swigc__p_wxSpinEvent,
47925 _swigc__p_wxStaticBitmap,
47926 _swigc__p_wxStaticBox,
47927 _swigc__p_wxStaticBoxSizer,
47928 _swigc__p_wxStaticLine,
47929 _swigc__p_wxStaticText,
47930 _swigc__p_wxStdDialogButtonSizer,
47931 _swigc__p_wxString,
47932 _swigc__p_wxSysColourChangedEvent,
47933 _swigc__p_wxTIFFHandler,
47934 _swigc__p_wxTextAttr,
47935 _swigc__p_wxTextCtrl,
47936 _swigc__p_wxTextUrlEvent,
47937 _swigc__p_wxToggleButton,
47938 _swigc__p_wxToolBar,
47939 _swigc__p_wxToolBarBase,
47940 _swigc__p_wxToolBarToolBase,
47941 _swigc__p_wxToolbook,
47942 _swigc__p_wxToolbookEvent,
47943 _swigc__p_wxTreeCtrl,
47944 _swigc__p_wxTreeEvent,
47945 _swigc__p_wxTreeItemId,
47946 _swigc__p_wxTreebook,
47947 _swigc__p_wxTreebookEvent,
47948 _swigc__p_wxUpdateUIEvent,
47949 _swigc__p_wxValidator,
47950 _swigc__p_wxVisualAttributes,
47951 _swigc__p_wxWindow,
47952 _swigc__p_wxWindowBase,
47953 _swigc__p_wxWindowCreateEvent,
47954 _swigc__p_wxWindowDestroyEvent,
47955 _swigc__p_wxXPMHandler,
47956 };
47957
47958
47959 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
47960
47961 static swig_const_info swig_const_table[] = {
47962 {0, 0, 0, 0.0, 0, 0}};
47963
47964 #ifdef __cplusplus
47965 }
47966 #endif
47967 /* -----------------------------------------------------------------------------
47968 * Type initialization:
47969 * This problem is tough by the requirement that no dynamic
47970 * memory is used. Also, since swig_type_info structures store pointers to
47971 * swig_cast_info structures and swig_cast_info structures store pointers back
47972 * to swig_type_info structures, we need some lookup code at initialization.
47973 * The idea is that swig generates all the structures that are needed.
47974 * The runtime then collects these partially filled structures.
47975 * The SWIG_InitializeModule function takes these initial arrays out of
47976 * swig_module, and does all the lookup, filling in the swig_module.types
47977 * array with the correct data and linking the correct swig_cast_info
47978 * structures together.
47979 *
47980 * The generated swig_type_info structures are assigned staticly to an initial
47981 * array. We just loop though that array, and handle each type individually.
47982 * First we lookup if this type has been already loaded, and if so, use the
47983 * loaded structure instead of the generated one. Then we have to fill in the
47984 * cast linked list. The cast data is initially stored in something like a
47985 * two-dimensional array. Each row corresponds to a type (there are the same
47986 * number of rows as there are in the swig_type_initial array). Each entry in
47987 * a column is one of the swig_cast_info structures for that type.
47988 * The cast_initial array is actually an array of arrays, because each row has
47989 * a variable number of columns. So to actually build the cast linked list,
47990 * we find the array of casts associated with the type, and loop through it
47991 * adding the casts to the list. The one last trick we need to do is making
47992 * sure the type pointer in the swig_cast_info struct is correct.
47993 *
47994 * First off, we lookup the cast->type name to see if it is already loaded.
47995 * There are three cases to handle:
47996 * 1) If the cast->type has already been loaded AND the type we are adding
47997 * casting info to has not been loaded (it is in this module), THEN we
47998 * replace the cast->type pointer with the type pointer that has already
47999 * been loaded.
48000 * 2) If BOTH types (the one we are adding casting info to, and the
48001 * cast->type) are loaded, THEN the cast info has already been loaded by
48002 * the previous module so we just ignore it.
48003 * 3) Finally, if cast->type has not already been loaded, then we add that
48004 * swig_cast_info to the linked list (because the cast->type) pointer will
48005 * be correct.
48006 * ----------------------------------------------------------------------------- */
48007
48008 #ifdef __cplusplus
48009 extern "C" {
48010 #if 0
48011 } /* c-mode */
48012 #endif
48013 #endif
48014
48015 #if 0
48016 #define SWIGRUNTIME_DEBUG
48017 #endif
48018
48019 SWIGRUNTIME void
48020 SWIG_InitializeModule(void *clientdata) {
48021 size_t i;
48022 swig_module_info *module_head;
48023 static int init_run = 0;
48024
48025 clientdata = clientdata;
48026
48027 if (init_run) return;
48028 init_run = 1;
48029
48030 /* Initialize the swig_module */
48031 swig_module.type_initial = swig_type_initial;
48032 swig_module.cast_initial = swig_cast_initial;
48033
48034 /* Try and load any already created modules */
48035 module_head = SWIG_GetModule(clientdata);
48036 if (module_head) {
48037 swig_module.next = module_head->next;
48038 module_head->next = &swig_module;
48039 } else {
48040 /* This is the first module loaded */
48041 swig_module.next = &swig_module;
48042 SWIG_SetModule(clientdata, &swig_module);
48043 }
48044
48045 /* Now work on filling in swig_module.types */
48046 #ifdef SWIGRUNTIME_DEBUG
48047 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
48048 #endif
48049 for (i = 0; i < swig_module.size; ++i) {
48050 swig_type_info *type = 0;
48051 swig_type_info *ret;
48052 swig_cast_info *cast;
48053
48054 #ifdef SWIGRUNTIME_DEBUG
48055 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
48056 #endif
48057
48058 /* if there is another module already loaded */
48059 if (swig_module.next != &swig_module) {
48060 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
48061 }
48062 if (type) {
48063 /* Overwrite clientdata field */
48064 #ifdef SWIGRUNTIME_DEBUG
48065 printf("SWIG_InitializeModule: found type %s\n", type->name);
48066 #endif
48067 if (swig_module.type_initial[i]->clientdata) {
48068 type->clientdata = swig_module.type_initial[i]->clientdata;
48069 #ifdef SWIGRUNTIME_DEBUG
48070 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
48071 #endif
48072 }
48073 } else {
48074 type = swig_module.type_initial[i];
48075 }
48076
48077 /* Insert casting types */
48078 cast = swig_module.cast_initial[i];
48079 while (cast->type) {
48080 /* Don't need to add information already in the list */
48081 ret = 0;
48082 #ifdef SWIGRUNTIME_DEBUG
48083 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
48084 #endif
48085 if (swig_module.next != &swig_module) {
48086 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
48087 #ifdef SWIGRUNTIME_DEBUG
48088 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
48089 #endif
48090 }
48091 if (ret) {
48092 if (type == swig_module.type_initial[i]) {
48093 #ifdef SWIGRUNTIME_DEBUG
48094 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
48095 #endif
48096 cast->type = ret;
48097 ret = 0;
48098 } else {
48099 /* Check for casting already in the list */
48100 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
48101 #ifdef SWIGRUNTIME_DEBUG
48102 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
48103 #endif
48104 if (!ocast) ret = 0;
48105 }
48106 }
48107
48108 if (!ret) {
48109 #ifdef SWIGRUNTIME_DEBUG
48110 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
48111 #endif
48112 if (type->cast) {
48113 type->cast->prev = cast;
48114 cast->next = type->cast;
48115 }
48116 type->cast = cast;
48117 }
48118 cast++;
48119 }
48120 /* Set entry in modules->types array equal to the type */
48121 swig_module.types[i] = type;
48122 }
48123 swig_module.types[i] = 0;
48124
48125 #ifdef SWIGRUNTIME_DEBUG
48126 printf("**** SWIG_InitializeModule: Cast List ******\n");
48127 for (i = 0; i < swig_module.size; ++i) {
48128 int j = 0;
48129 swig_cast_info *cast = swig_module.cast_initial[i];
48130 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
48131 while (cast->type) {
48132 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
48133 cast++;
48134 ++j;
48135 }
48136 printf("---- Total casts: %d\n",j);
48137 }
48138 printf("**** SWIG_InitializeModule: Cast List ******\n");
48139 #endif
48140 }
48141
48142 /* This function will propagate the clientdata field of type to
48143 * any new swig_type_info structures that have been added into the list
48144 * of equivalent types. It is like calling
48145 * SWIG_TypeClientData(type, clientdata) a second time.
48146 */
48147 SWIGRUNTIME void
48148 SWIG_PropagateClientData(void) {
48149 size_t i;
48150 swig_cast_info *equiv;
48151 static int init_run = 0;
48152
48153 if (init_run) return;
48154 init_run = 1;
48155
48156 for (i = 0; i < swig_module.size; i++) {
48157 if (swig_module.types[i]->clientdata) {
48158 equiv = swig_module.types[i]->cast;
48159 while (equiv) {
48160 if (!equiv->converter) {
48161 if (equiv->type && !equiv->type->clientdata)
48162 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
48163 }
48164 equiv = equiv->next;
48165 }
48166 }
48167 }
48168 }
48169
48170 #ifdef __cplusplus
48171 #if 0
48172 {
48173 /* c-mode */
48174 #endif
48175 }
48176 #endif
48177
48178
48179
48180 #ifdef __cplusplus
48181 extern "C" {
48182 #endif
48183
48184 /* Python-specific SWIG API */
48185 #define SWIG_newvarlink() SWIG_Python_newvarlink()
48186 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
48187 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
48188
48189 /* -----------------------------------------------------------------------------
48190 * global variable support code.
48191 * ----------------------------------------------------------------------------- */
48192
48193 typedef struct swig_globalvar {
48194 char *name; /* Name of global variable */
48195 PyObject *(*get_attr)(void); /* Return the current value */
48196 int (*set_attr)(PyObject *); /* Set the value */
48197 struct swig_globalvar *next;
48198 } swig_globalvar;
48199
48200 typedef struct swig_varlinkobject {
48201 PyObject_HEAD
48202 swig_globalvar *vars;
48203 } swig_varlinkobject;
48204
48205 SWIGINTERN PyObject *
48206 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
48207 return PyString_FromString("<Swig global variables>");
48208 }
48209
48210 SWIGINTERN PyObject *
48211 swig_varlink_str(swig_varlinkobject *v) {
48212 PyObject *str = PyString_FromString("(");
48213 swig_globalvar *var;
48214 for (var = v->vars; var; var=var->next) {
48215 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
48216 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
48217 }
48218 PyString_ConcatAndDel(&str,PyString_FromString(")"));
48219 return str;
48220 }
48221
48222 SWIGINTERN int
48223 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
48224 PyObject *str = swig_varlink_str(v);
48225 fprintf(fp,"Swig global variables ");
48226 fprintf(fp,"%s\n", PyString_AsString(str));
48227 Py_DECREF(str);
48228 return 0;
48229 }
48230
48231 SWIGINTERN void
48232 swig_varlink_dealloc(swig_varlinkobject *v) {
48233 swig_globalvar *var = v->vars;
48234 while (var) {
48235 swig_globalvar *n = var->next;
48236 free(var->name);
48237 free(var);
48238 var = n;
48239 }
48240 }
48241
48242 SWIGINTERN PyObject *
48243 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
48244 PyObject *res = NULL;
48245 swig_globalvar *var = v->vars;
48246 while (var) {
48247 if (strcmp(var->name,n) == 0) {
48248 res = (*var->get_attr)();
48249 break;
48250 }
48251 var = var->next;
48252 }
48253 if (res == NULL && !PyErr_Occurred()) {
48254 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
48255 }
48256 return res;
48257 }
48258
48259 SWIGINTERN int
48260 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
48261 int res = 1;
48262 swig_globalvar *var = v->vars;
48263 while (var) {
48264 if (strcmp(var->name,n) == 0) {
48265 res = (*var->set_attr)(p);
48266 break;
48267 }
48268 var = var->next;
48269 }
48270 if (res == 1 && !PyErr_Occurred()) {
48271 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
48272 }
48273 return res;
48274 }
48275
48276 SWIGINTERN PyTypeObject*
48277 swig_varlink_type(void) {
48278 static char varlink__doc__[] = "Swig var link object";
48279 static PyTypeObject varlink_type;
48280 static int type_init = 0;
48281 if (!type_init) {
48282 const PyTypeObject tmp
48283 = {
48284 PyObject_HEAD_INIT(NULL)
48285 0, /* Number of items in variable part (ob_size) */
48286 (char *)"swigvarlink", /* Type name (tp_name) */
48287 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
48288 0, /* Itemsize (tp_itemsize) */
48289 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
48290 (printfunc) swig_varlink_print, /* Print (tp_print) */
48291 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
48292 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
48293 0, /* tp_compare */
48294 (reprfunc) swig_varlink_repr, /* tp_repr */
48295 0, /* tp_as_number */
48296 0, /* tp_as_sequence */
48297 0, /* tp_as_mapping */
48298 0, /* tp_hash */
48299 0, /* tp_call */
48300 (reprfunc)swig_varlink_str, /* tp_str */
48301 0, /* tp_getattro */
48302 0, /* tp_setattro */
48303 0, /* tp_as_buffer */
48304 0, /* tp_flags */
48305 varlink__doc__, /* tp_doc */
48306 0, /* tp_traverse */
48307 0, /* tp_clear */
48308 0, /* tp_richcompare */
48309 0, /* tp_weaklistoffset */
48310 #if PY_VERSION_HEX >= 0x02020000
48311 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
48312 #endif
48313 #if PY_VERSION_HEX >= 0x02030000
48314 0, /* tp_del */
48315 #endif
48316 #ifdef COUNT_ALLOCS
48317 0,0,0,0 /* tp_alloc -> tp_next */
48318 #endif
48319 };
48320 varlink_type = tmp;
48321 varlink_type.ob_type = &PyType_Type;
48322 type_init = 1;
48323 }
48324 return &varlink_type;
48325 }
48326
48327 /* Create a variable linking object for use later */
48328 SWIGINTERN PyObject *
48329 SWIG_Python_newvarlink(void) {
48330 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
48331 if (result) {
48332 result->vars = 0;
48333 }
48334 return ((PyObject*) result);
48335 }
48336
48337 SWIGINTERN void
48338 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
48339 swig_varlinkobject *v = (swig_varlinkobject *) p;
48340 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
48341 if (gv) {
48342 size_t size = strlen(name)+1;
48343 gv->name = (char *)malloc(size);
48344 if (gv->name) {
48345 strncpy(gv->name,name,size);
48346 gv->get_attr = get_attr;
48347 gv->set_attr = set_attr;
48348 gv->next = v->vars;
48349 }
48350 }
48351 v->vars = gv;
48352 }
48353
48354 SWIGINTERN PyObject *
48355 SWIG_globals() {
48356 static PyObject *_SWIG_globals = 0;
48357 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
48358 return _SWIG_globals;
48359 }
48360
48361 /* -----------------------------------------------------------------------------
48362 * constants/methods manipulation
48363 * ----------------------------------------------------------------------------- */
48364
48365 /* Install Constants */
48366 SWIGINTERN void
48367 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
48368 PyObject *obj = 0;
48369 size_t i;
48370 for (i = 0; constants[i].type; ++i) {
48371 switch(constants[i].type) {
48372 case SWIG_PY_POINTER:
48373 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
48374 break;
48375 case SWIG_PY_BINARY:
48376 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
48377 break;
48378 default:
48379 obj = 0;
48380 break;
48381 }
48382 if (obj) {
48383 PyDict_SetItemString(d, constants[i].name, obj);
48384 Py_DECREF(obj);
48385 }
48386 }
48387 }
48388
48389 /* -----------------------------------------------------------------------------*/
48390 /* Fix SwigMethods to carry the callback ptrs when needed */
48391 /* -----------------------------------------------------------------------------*/
48392
48393 SWIGINTERN void
48394 SWIG_Python_FixMethods(PyMethodDef *methods,
48395 swig_const_info *const_table,
48396 swig_type_info **types,
48397 swig_type_info **types_initial) {
48398 size_t i;
48399 for (i = 0; methods[i].ml_name; ++i) {
48400 const char *c = methods[i].ml_doc;
48401 if (c && (c = strstr(c, "swig_ptr: "))) {
48402 int j;
48403 swig_const_info *ci = 0;
48404 const char *name = c + 10;
48405 for (j = 0; const_table[j].type; ++j) {
48406 if (strncmp(const_table[j].name, name,
48407 strlen(const_table[j].name)) == 0) {
48408 ci = &(const_table[j]);
48409 break;
48410 }
48411 }
48412 if (ci) {
48413 size_t shift = (ci->ptype) - types;
48414 swig_type_info *ty = types_initial[shift];
48415 size_t ldoc = (c - methods[i].ml_doc);
48416 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
48417 char *ndoc = (char*)malloc(ldoc + lptr + 10);
48418 if (ndoc) {
48419 char *buff = ndoc;
48420 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
48421 if (ptr) {
48422 strncpy(buff, methods[i].ml_doc, ldoc);
48423 buff += ldoc;
48424 strncpy(buff, "swig_ptr: ", 10);
48425 buff += 10;
48426 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
48427 methods[i].ml_doc = ndoc;
48428 }
48429 }
48430 }
48431 }
48432 }
48433 }
48434
48435 #ifdef __cplusplus
48436 }
48437 #endif
48438
48439 /* -----------------------------------------------------------------------------*
48440 * Partial Init method
48441 * -----------------------------------------------------------------------------*/
48442
48443 #ifdef __cplusplus
48444 extern "C"
48445 #endif
48446 SWIGEXPORT void SWIG_init(void) {
48447 PyObject *m, *d;
48448
48449 /* Fix SwigMethods to carry the callback ptrs when needed */
48450 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
48451
48452 m = Py_InitModule((char *) SWIG_name, SwigMethods);
48453 d = PyModule_GetDict(m);
48454
48455 SWIG_InitializeModule(0);
48456 SWIG_InstallConstants(d,swig_const_table);
48457
48458
48459 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
48460 SWIG_addvarlink(SWIG_globals(),(char*)"ButtonNameStr",ButtonNameStr_get, ButtonNameStr_set);
48461 SWIG_Python_SetConstant(d, "BU_LEFT",SWIG_From_int(static_cast< int >(wxBU_LEFT)));
48462 SWIG_Python_SetConstant(d, "BU_TOP",SWIG_From_int(static_cast< int >(wxBU_TOP)));
48463 SWIG_Python_SetConstant(d, "BU_RIGHT",SWIG_From_int(static_cast< int >(wxBU_RIGHT)));
48464 SWIG_Python_SetConstant(d, "BU_BOTTOM",SWIG_From_int(static_cast< int >(wxBU_BOTTOM)));
48465 SWIG_Python_SetConstant(d, "BU_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBU_ALIGN_MASK)));
48466 SWIG_Python_SetConstant(d, "BU_EXACTFIT",SWIG_From_int(static_cast< int >(wxBU_EXACTFIT)));
48467 SWIG_Python_SetConstant(d, "BU_AUTODRAW",SWIG_From_int(static_cast< int >(wxBU_AUTODRAW)));
48468 SWIG_addvarlink(SWIG_globals(),(char*)"CheckBoxNameStr",CheckBoxNameStr_get, CheckBoxNameStr_set);
48469 SWIG_Python_SetConstant(d, "CHK_2STATE",SWIG_From_int(static_cast< int >(wxCHK_2STATE)));
48470 SWIG_Python_SetConstant(d, "CHK_3STATE",SWIG_From_int(static_cast< int >(wxCHK_3STATE)));
48471 SWIG_Python_SetConstant(d, "CHK_ALLOW_3RD_STATE_FOR_USER",SWIG_From_int(static_cast< int >(wxCHK_ALLOW_3RD_STATE_FOR_USER)));
48472 SWIG_Python_SetConstant(d, "CHK_UNCHECKED",SWIG_From_int(static_cast< int >(wxCHK_UNCHECKED)));
48473 SWIG_Python_SetConstant(d, "CHK_CHECKED",SWIG_From_int(static_cast< int >(wxCHK_CHECKED)));
48474 SWIG_Python_SetConstant(d, "CHK_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCHK_UNDETERMINED)));
48475 SWIG_addvarlink(SWIG_globals(),(char*)"ChoiceNameStr",ChoiceNameStr_get, ChoiceNameStr_set);
48476 SWIG_addvarlink(SWIG_globals(),(char*)"ComboBoxNameStr",ComboBoxNameStr_get, ComboBoxNameStr_set);
48477 SWIG_addvarlink(SWIG_globals(),(char*)"GaugeNameStr",GaugeNameStr_get, GaugeNameStr_set);
48478 SWIG_Python_SetConstant(d, "GA_HORIZONTAL",SWIG_From_int(static_cast< int >(wxGA_HORIZONTAL)));
48479 SWIG_Python_SetConstant(d, "GA_VERTICAL",SWIG_From_int(static_cast< int >(wxGA_VERTICAL)));
48480 SWIG_Python_SetConstant(d, "GA_SMOOTH",SWIG_From_int(static_cast< int >(wxGA_SMOOTH)));
48481 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBitmapNameStr",StaticBitmapNameStr_get, StaticBitmapNameStr_set);
48482 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBoxNameStr",StaticBoxNameStr_get, StaticBoxNameStr_set);
48483 SWIG_addvarlink(SWIG_globals(),(char*)"StaticTextNameStr",StaticTextNameStr_get, StaticTextNameStr_set);
48484 SWIG_addvarlink(SWIG_globals(),(char*)"ListBoxNameStr",ListBoxNameStr_get, ListBoxNameStr_set);
48485 SWIG_addvarlink(SWIG_globals(),(char*)"TextCtrlNameStr",TextCtrlNameStr_get, TextCtrlNameStr_set);
48486 SWIG_Python_SetConstant(d, "TE_NO_VSCROLL",SWIG_From_int(static_cast< int >(wxTE_NO_VSCROLL)));
48487 SWIG_Python_SetConstant(d, "TE_AUTO_SCROLL",SWIG_From_int(static_cast< int >(wxTE_AUTO_SCROLL)));
48488 SWIG_Python_SetConstant(d, "TE_READONLY",SWIG_From_int(static_cast< int >(wxTE_READONLY)));
48489 SWIG_Python_SetConstant(d, "TE_MULTILINE",SWIG_From_int(static_cast< int >(wxTE_MULTILINE)));
48490 SWIG_Python_SetConstant(d, "TE_PROCESS_TAB",SWIG_From_int(static_cast< int >(wxTE_PROCESS_TAB)));
48491 SWIG_Python_SetConstant(d, "TE_LEFT",SWIG_From_int(static_cast< int >(wxTE_LEFT)));
48492 SWIG_Python_SetConstant(d, "TE_CENTER",SWIG_From_int(static_cast< int >(wxTE_CENTER)));
48493 SWIG_Python_SetConstant(d, "TE_RIGHT",SWIG_From_int(static_cast< int >(wxTE_RIGHT)));
48494 SWIG_Python_SetConstant(d, "TE_CENTRE",SWIG_From_int(static_cast< int >(wxTE_CENTRE)));
48495 SWIG_Python_SetConstant(d, "TE_RICH",SWIG_From_int(static_cast< int >(wxTE_RICH)));
48496 SWIG_Python_SetConstant(d, "TE_PROCESS_ENTER",SWIG_From_int(static_cast< int >(wxTE_PROCESS_ENTER)));
48497 SWIG_Python_SetConstant(d, "TE_PASSWORD",SWIG_From_int(static_cast< int >(wxTE_PASSWORD)));
48498 SWIG_Python_SetConstant(d, "TE_AUTO_URL",SWIG_From_int(static_cast< int >(wxTE_AUTO_URL)));
48499 SWIG_Python_SetConstant(d, "TE_NOHIDESEL",SWIG_From_int(static_cast< int >(wxTE_NOHIDESEL)));
48500 SWIG_Python_SetConstant(d, "TE_DONTWRAP",SWIG_From_int(static_cast< int >(wxTE_DONTWRAP)));
48501 SWIG_Python_SetConstant(d, "TE_CHARWRAP",SWIG_From_int(static_cast< int >(wxTE_CHARWRAP)));
48502 SWIG_Python_SetConstant(d, "TE_WORDWRAP",SWIG_From_int(static_cast< int >(wxTE_WORDWRAP)));
48503 SWIG_Python_SetConstant(d, "TE_BESTWRAP",SWIG_From_int(static_cast< int >(wxTE_BESTWRAP)));
48504 SWIG_Python_SetConstant(d, "TE_RICH2",SWIG_From_int(static_cast< int >(wxTE_RICH2)));
48505 SWIG_Python_SetConstant(d, "TE_CAPITALIZE",SWIG_From_int(static_cast< int >(wxTE_CAPITALIZE)));
48506 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT)));
48507 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT)));
48508 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE)));
48509 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER)));
48510 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT)));
48511 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED)));
48512 SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR)));
48513 SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR)));
48514 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE)));
48515 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE)));
48516 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT)));
48517 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC)));
48518 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE)));
48519 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT)));
48520 SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT)));
48521 SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT)));
48522 SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT)));
48523 SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS)));
48524 SWIG_Python_SetConstant(d, "TE_HT_UNKNOWN",SWIG_From_int(static_cast< int >(wxTE_HT_UNKNOWN)));
48525 SWIG_Python_SetConstant(d, "TE_HT_BEFORE",SWIG_From_int(static_cast< int >(wxTE_HT_BEFORE)));
48526 SWIG_Python_SetConstant(d, "TE_HT_ON_TEXT",SWIG_From_int(static_cast< int >(wxTE_HT_ON_TEXT)));
48527 SWIG_Python_SetConstant(d, "TE_HT_BELOW",SWIG_From_int(static_cast< int >(wxTE_HT_BELOW)));
48528 SWIG_Python_SetConstant(d, "TE_HT_BEYOND",SWIG_From_int(static_cast< int >(wxTE_HT_BEYOND)));
48529 SWIG_Python_SetConstant(d, "OutOfRangeTextCoord",SWIG_From_int(static_cast< int >(wxOutOfRangeTextCoord)));
48530 SWIG_Python_SetConstant(d, "InvalidTextCoord",SWIG_From_int(static_cast< int >(wxInvalidTextCoord)));
48531 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
48532 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
48533 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
48534 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
48535 SWIG_addvarlink(SWIG_globals(),(char*)"ScrollBarNameStr",ScrollBarNameStr_get, ScrollBarNameStr_set);
48536 SWIG_addvarlink(SWIG_globals(),(char*)"SPIN_BUTTON_NAME",SPIN_BUTTON_NAME_get, SPIN_BUTTON_NAME_set);
48537 SWIG_addvarlink(SWIG_globals(),(char*)"SpinCtrlNameStr",SpinCtrlNameStr_get, SpinCtrlNameStr_set);
48538 SWIG_Python_SetConstant(d, "SP_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSP_HORIZONTAL)));
48539 SWIG_Python_SetConstant(d, "SP_VERTICAL",SWIG_From_int(static_cast< int >(wxSP_VERTICAL)));
48540 SWIG_Python_SetConstant(d, "SP_ARROW_KEYS",SWIG_From_int(static_cast< int >(wxSP_ARROW_KEYS)));
48541 SWIG_Python_SetConstant(d, "SP_WRAP",SWIG_From_int(static_cast< int >(wxSP_WRAP)));
48542 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
48543 SWIG_addvarlink(SWIG_globals(),(char*)"RadioBoxNameStr",RadioBoxNameStr_get, RadioBoxNameStr_set);
48544 SWIG_addvarlink(SWIG_globals(),(char*)"RadioButtonNameStr",RadioButtonNameStr_get, RadioButtonNameStr_set);
48545 SWIG_addvarlink(SWIG_globals(),(char*)"SliderNameStr",SliderNameStr_get, SliderNameStr_set);
48546 SWIG_Python_SetConstant(d, "SL_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSL_HORIZONTAL)));
48547 SWIG_Python_SetConstant(d, "SL_VERTICAL",SWIG_From_int(static_cast< int >(wxSL_VERTICAL)));
48548 SWIG_Python_SetConstant(d, "SL_TICKS",SWIG_From_int(static_cast< int >(wxSL_TICKS)));
48549 SWIG_Python_SetConstant(d, "SL_AUTOTICKS",SWIG_From_int(static_cast< int >(wxSL_AUTOTICKS)));
48550 SWIG_Python_SetConstant(d, "SL_LABELS",SWIG_From_int(static_cast< int >(wxSL_LABELS)));
48551 SWIG_Python_SetConstant(d, "SL_LEFT",SWIG_From_int(static_cast< int >(wxSL_LEFT)));
48552 SWIG_Python_SetConstant(d, "SL_TOP",SWIG_From_int(static_cast< int >(wxSL_TOP)));
48553 SWIG_Python_SetConstant(d, "SL_RIGHT",SWIG_From_int(static_cast< int >(wxSL_RIGHT)));
48554 SWIG_Python_SetConstant(d, "SL_BOTTOM",SWIG_From_int(static_cast< int >(wxSL_BOTTOM)));
48555 SWIG_Python_SetConstant(d, "SL_BOTH",SWIG_From_int(static_cast< int >(wxSL_BOTH)));
48556 SWIG_Python_SetConstant(d, "SL_SELRANGE",SWIG_From_int(static_cast< int >(wxSL_SELRANGE)));
48557 SWIG_Python_SetConstant(d, "SL_INVERSE",SWIG_From_int(static_cast< int >(wxSL_INVERSE)));
48558 SWIG_addvarlink(SWIG_globals(),(char*)"ToggleButtonNameStr",ToggleButtonNameStr_get, ToggleButtonNameStr_set);
48559 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
48560 SWIG_addvarlink(SWIG_globals(),(char*)"NotebookNameStr",NotebookNameStr_get, NotebookNameStr_set);
48561 SWIG_Python_SetConstant(d, "BK_DEFAULT",SWIG_From_int(static_cast< int >(wxBK_DEFAULT)));
48562 SWIG_Python_SetConstant(d, "BK_TOP",SWIG_From_int(static_cast< int >(wxBK_TOP)));
48563 SWIG_Python_SetConstant(d, "BK_BOTTOM",SWIG_From_int(static_cast< int >(wxBK_BOTTOM)));
48564 SWIG_Python_SetConstant(d, "BK_LEFT",SWIG_From_int(static_cast< int >(wxBK_LEFT)));
48565 SWIG_Python_SetConstant(d, "BK_RIGHT",SWIG_From_int(static_cast< int >(wxBK_RIGHT)));
48566 SWIG_Python_SetConstant(d, "BK_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBK_ALIGN_MASK)));
48567 SWIG_Python_SetConstant(d, "BK_BUTTONBAR",SWIG_From_int(static_cast< int >(wxBK_BUTTONBAR)));
48568 SWIG_Python_SetConstant(d, "BK_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_NOWHERE)));
48569 SWIG_Python_SetConstant(d, "BK_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONICON)));
48570 SWIG_Python_SetConstant(d, "BK_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONLABEL)));
48571 SWIG_Python_SetConstant(d, "BK_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONITEM)));
48572 SWIG_Python_SetConstant(d, "BK_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONPAGE)));
48573 SWIG_Python_SetConstant(d, "NB_FIXEDWIDTH",SWIG_From_int(static_cast< int >(wxNB_FIXEDWIDTH)));
48574 SWIG_Python_SetConstant(d, "NB_TOP",SWIG_From_int(static_cast< int >(wxNB_TOP)));
48575 SWIG_Python_SetConstant(d, "NB_LEFT",SWIG_From_int(static_cast< int >(wxNB_LEFT)));
48576 SWIG_Python_SetConstant(d, "NB_RIGHT",SWIG_From_int(static_cast< int >(wxNB_RIGHT)));
48577 SWIG_Python_SetConstant(d, "NB_BOTTOM",SWIG_From_int(static_cast< int >(wxNB_BOTTOM)));
48578 SWIG_Python_SetConstant(d, "NB_MULTILINE",SWIG_From_int(static_cast< int >(wxNB_MULTILINE)));
48579 SWIG_Python_SetConstant(d, "NB_NOPAGETHEME",SWIG_From_int(static_cast< int >(wxNB_NOPAGETHEME)));
48580 SWIG_Python_SetConstant(d, "NB_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_NOWHERE)));
48581 SWIG_Python_SetConstant(d, "NB_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONICON)));
48582 SWIG_Python_SetConstant(d, "NB_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONLABEL)));
48583 SWIG_Python_SetConstant(d, "NB_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONITEM)));
48584 SWIG_Python_SetConstant(d, "NB_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONPAGE)));
48585 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
48586 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
48587 SWIG_Python_SetConstant(d, "LB_DEFAULT",SWIG_From_int(static_cast< int >(wxLB_DEFAULT)));
48588 SWIG_Python_SetConstant(d, "LB_TOP",SWIG_From_int(static_cast< int >(wxLB_TOP)));
48589 SWIG_Python_SetConstant(d, "LB_BOTTOM",SWIG_From_int(static_cast< int >(wxLB_BOTTOM)));
48590 SWIG_Python_SetConstant(d, "LB_LEFT",SWIG_From_int(static_cast< int >(wxLB_LEFT)));
48591 SWIG_Python_SetConstant(d, "LB_RIGHT",SWIG_From_int(static_cast< int >(wxLB_RIGHT)));
48592 SWIG_Python_SetConstant(d, "LB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxLB_ALIGN_MASK)));
48593 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
48594 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
48595 SWIG_Python_SetConstant(d, "CHB_DEFAULT",SWIG_From_int(static_cast< int >(wxCHB_DEFAULT)));
48596 SWIG_Python_SetConstant(d, "CHB_TOP",SWIG_From_int(static_cast< int >(wxCHB_TOP)));
48597 SWIG_Python_SetConstant(d, "CHB_BOTTOM",SWIG_From_int(static_cast< int >(wxCHB_BOTTOM)));
48598 SWIG_Python_SetConstant(d, "CHB_LEFT",SWIG_From_int(static_cast< int >(wxCHB_LEFT)));
48599 SWIG_Python_SetConstant(d, "CHB_RIGHT",SWIG_From_int(static_cast< int >(wxCHB_RIGHT)));
48600 SWIG_Python_SetConstant(d, "CHB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxCHB_ALIGN_MASK)));
48601 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED));
48602 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING));
48603 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED));
48604 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING));
48605 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED));
48606 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED));
48607 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED));
48608 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING));
48609 SWIG_Python_SetConstant(d, "TOOL_STYLE_BUTTON",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_BUTTON)));
48610 SWIG_Python_SetConstant(d, "TOOL_STYLE_SEPARATOR",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_SEPARATOR)));
48611 SWIG_Python_SetConstant(d, "TOOL_STYLE_CONTROL",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_CONTROL)));
48612 SWIG_Python_SetConstant(d, "TB_HORIZONTAL",SWIG_From_int(static_cast< int >(wxTB_HORIZONTAL)));
48613 SWIG_Python_SetConstant(d, "TB_VERTICAL",SWIG_From_int(static_cast< int >(wxTB_VERTICAL)));
48614 SWIG_Python_SetConstant(d, "TB_3DBUTTONS",SWIG_From_int(static_cast< int >(wxTB_3DBUTTONS)));
48615 SWIG_Python_SetConstant(d, "TB_FLAT",SWIG_From_int(static_cast< int >(wxTB_FLAT)));
48616 SWIG_Python_SetConstant(d, "TB_DOCKABLE",SWIG_From_int(static_cast< int >(wxTB_DOCKABLE)));
48617 SWIG_Python_SetConstant(d, "TB_NOICONS",SWIG_From_int(static_cast< int >(wxTB_NOICONS)));
48618 SWIG_Python_SetConstant(d, "TB_TEXT",SWIG_From_int(static_cast< int >(wxTB_TEXT)));
48619 SWIG_Python_SetConstant(d, "TB_NODIVIDER",SWIG_From_int(static_cast< int >(wxTB_NODIVIDER)));
48620 SWIG_Python_SetConstant(d, "TB_NOALIGN",SWIG_From_int(static_cast< int >(wxTB_NOALIGN)));
48621 SWIG_Python_SetConstant(d, "TB_HORZ_LAYOUT",SWIG_From_int(static_cast< int >(wxTB_HORZ_LAYOUT)));
48622 SWIG_Python_SetConstant(d, "TB_HORZ_TEXT",SWIG_From_int(static_cast< int >(wxTB_HORZ_TEXT)));
48623 SWIG_Python_SetConstant(d, "TB_NO_TOOLTIPS",SWIG_From_int(static_cast< int >(wxTB_NO_TOOLTIPS)));
48624 SWIG_addvarlink(SWIG_globals(),(char*)"ListCtrlNameStr",ListCtrlNameStr_get, ListCtrlNameStr_set);
48625 SWIG_Python_SetConstant(d, "LC_VRULES",SWIG_From_int(static_cast< int >(wxLC_VRULES)));
48626 SWIG_Python_SetConstant(d, "LC_HRULES",SWIG_From_int(static_cast< int >(wxLC_HRULES)));
48627 SWIG_Python_SetConstant(d, "LC_ICON",SWIG_From_int(static_cast< int >(wxLC_ICON)));
48628 SWIG_Python_SetConstant(d, "LC_SMALL_ICON",SWIG_From_int(static_cast< int >(wxLC_SMALL_ICON)));
48629 SWIG_Python_SetConstant(d, "LC_LIST",SWIG_From_int(static_cast< int >(wxLC_LIST)));
48630 SWIG_Python_SetConstant(d, "LC_REPORT",SWIG_From_int(static_cast< int >(wxLC_REPORT)));
48631 SWIG_Python_SetConstant(d, "LC_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLC_ALIGN_TOP)));
48632 SWIG_Python_SetConstant(d, "LC_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLC_ALIGN_LEFT)));
48633 SWIG_Python_SetConstant(d, "LC_AUTOARRANGE",SWIG_From_int(static_cast< int >(wxLC_AUTOARRANGE)));
48634 SWIG_Python_SetConstant(d, "LC_VIRTUAL",SWIG_From_int(static_cast< int >(wxLC_VIRTUAL)));
48635 SWIG_Python_SetConstant(d, "LC_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxLC_EDIT_LABELS)));
48636 SWIG_Python_SetConstant(d, "LC_NO_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_HEADER)));
48637 SWIG_Python_SetConstant(d, "LC_NO_SORT_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_SORT_HEADER)));
48638 SWIG_Python_SetConstant(d, "LC_SINGLE_SEL",SWIG_From_int(static_cast< int >(wxLC_SINGLE_SEL)));
48639 SWIG_Python_SetConstant(d, "LC_SORT_ASCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_ASCENDING)));
48640 SWIG_Python_SetConstant(d, "LC_SORT_DESCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_DESCENDING)));
48641 SWIG_Python_SetConstant(d, "LC_MASK_TYPE",SWIG_From_int(static_cast< int >(wxLC_MASK_TYPE)));
48642 SWIG_Python_SetConstant(d, "LC_MASK_ALIGN",SWIG_From_int(static_cast< int >(wxLC_MASK_ALIGN)));
48643 SWIG_Python_SetConstant(d, "LC_MASK_SORT",SWIG_From_int(static_cast< int >(wxLC_MASK_SORT)));
48644 SWIG_Python_SetConstant(d, "LIST_MASK_STATE",SWIG_From_int(static_cast< int >(wxLIST_MASK_STATE)));
48645 SWIG_Python_SetConstant(d, "LIST_MASK_TEXT",SWIG_From_int(static_cast< int >(wxLIST_MASK_TEXT)));
48646 SWIG_Python_SetConstant(d, "LIST_MASK_IMAGE",SWIG_From_int(static_cast< int >(wxLIST_MASK_IMAGE)));
48647 SWIG_Python_SetConstant(d, "LIST_MASK_DATA",SWIG_From_int(static_cast< int >(wxLIST_MASK_DATA)));
48648 SWIG_Python_SetConstant(d, "LIST_SET_ITEM",SWIG_From_int(static_cast< int >(wxLIST_SET_ITEM)));
48649 SWIG_Python_SetConstant(d, "LIST_MASK_WIDTH",SWIG_From_int(static_cast< int >(wxLIST_MASK_WIDTH)));
48650 SWIG_Python_SetConstant(d, "LIST_MASK_FORMAT",SWIG_From_int(static_cast< int >(wxLIST_MASK_FORMAT)));
48651 SWIG_Python_SetConstant(d, "LIST_STATE_DONTCARE",SWIG_From_int(static_cast< int >(wxLIST_STATE_DONTCARE)));
48652 SWIG_Python_SetConstant(d, "LIST_STATE_DROPHILITED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DROPHILITED)));
48653 SWIG_Python_SetConstant(d, "LIST_STATE_FOCUSED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FOCUSED)));
48654 SWIG_Python_SetConstant(d, "LIST_STATE_SELECTED",SWIG_From_int(static_cast< int >(wxLIST_STATE_SELECTED)));
48655 SWIG_Python_SetConstant(d, "LIST_STATE_CUT",SWIG_From_int(static_cast< int >(wxLIST_STATE_CUT)));
48656 SWIG_Python_SetConstant(d, "LIST_STATE_DISABLED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DISABLED)));
48657 SWIG_Python_SetConstant(d, "LIST_STATE_FILTERED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FILTERED)));
48658 SWIG_Python_SetConstant(d, "LIST_STATE_INUSE",SWIG_From_int(static_cast< int >(wxLIST_STATE_INUSE)));
48659 SWIG_Python_SetConstant(d, "LIST_STATE_PICKED",SWIG_From_int(static_cast< int >(wxLIST_STATE_PICKED)));
48660 SWIG_Python_SetConstant(d, "LIST_STATE_SOURCE",SWIG_From_int(static_cast< int >(wxLIST_STATE_SOURCE)));
48661 SWIG_Python_SetConstant(d, "LIST_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ABOVE)));
48662 SWIG_Python_SetConstant(d, "LIST_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_BELOW)));
48663 SWIG_Python_SetConstant(d, "LIST_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_NOWHERE)));
48664 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMICON)));
48665 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMLABEL)));
48666 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMRIGHT)));
48667 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMSTATEICON)));
48668 SWIG_Python_SetConstant(d, "LIST_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TOLEFT)));
48669 SWIG_Python_SetConstant(d, "LIST_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TORIGHT)));
48670 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEM)));
48671 SWIG_Python_SetConstant(d, "LIST_GETSUBITEMRECT_WHOLEITEM",SWIG_From_int(static_cast< int >(wxLIST_GETSUBITEMRECT_WHOLEITEM)));
48672 SWIG_Python_SetConstant(d, "LIST_NEXT_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ABOVE)));
48673 SWIG_Python_SetConstant(d, "LIST_NEXT_ALL",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ALL)));
48674 SWIG_Python_SetConstant(d, "LIST_NEXT_BELOW",SWIG_From_int(static_cast< int >(wxLIST_NEXT_BELOW)));
48675 SWIG_Python_SetConstant(d, "LIST_NEXT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_LEFT)));
48676 SWIG_Python_SetConstant(d, "LIST_NEXT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_RIGHT)));
48677 SWIG_Python_SetConstant(d, "LIST_ALIGN_DEFAULT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_DEFAULT)));
48678 SWIG_Python_SetConstant(d, "LIST_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_LEFT)));
48679 SWIG_Python_SetConstant(d, "LIST_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_TOP)));
48680 SWIG_Python_SetConstant(d, "LIST_ALIGN_SNAP_TO_GRID",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_SNAP_TO_GRID)));
48681 SWIG_Python_SetConstant(d, "LIST_FORMAT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_LEFT)));
48682 SWIG_Python_SetConstant(d, "LIST_FORMAT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_RIGHT)));
48683 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTRE",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTRE)));
48684 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTER",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTER)));
48685 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE)));
48686 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE_USEHEADER",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE_USEHEADER)));
48687 SWIG_Python_SetConstant(d, "LIST_RECT_BOUNDS",SWIG_From_int(static_cast< int >(wxLIST_RECT_BOUNDS)));
48688 SWIG_Python_SetConstant(d, "LIST_RECT_ICON",SWIG_From_int(static_cast< int >(wxLIST_RECT_ICON)));
48689 SWIG_Python_SetConstant(d, "LIST_RECT_LABEL",SWIG_From_int(static_cast< int >(wxLIST_RECT_LABEL)));
48690 SWIG_Python_SetConstant(d, "LIST_FIND_UP",SWIG_From_int(static_cast< int >(wxLIST_FIND_UP)));
48691 SWIG_Python_SetConstant(d, "LIST_FIND_DOWN",SWIG_From_int(static_cast< int >(wxLIST_FIND_DOWN)));
48692 SWIG_Python_SetConstant(d, "LIST_FIND_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FIND_LEFT)));
48693 SWIG_Python_SetConstant(d, "LIST_FIND_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FIND_RIGHT)));
48694 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
48695 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
48696 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
48697 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
48698 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
48699 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
48700 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
48701 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
48702 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
48703 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
48704 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
48705 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
48706 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
48707 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
48708 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
48709 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
48710 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
48711 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
48712 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
48713 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
48714
48715 // Map renamed classes back to their common name for OOR
48716 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
48717
48718 SWIG_addvarlink(SWIG_globals(),(char*)"TreeCtrlNameStr",TreeCtrlNameStr_get, TreeCtrlNameStr_set);
48719 SWIG_Python_SetConstant(d, "TR_NO_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_NO_BUTTONS)));
48720 SWIG_Python_SetConstant(d, "TR_HAS_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_HAS_BUTTONS)));
48721 SWIG_Python_SetConstant(d, "TR_NO_LINES",SWIG_From_int(static_cast< int >(wxTR_NO_LINES)));
48722 SWIG_Python_SetConstant(d, "TR_LINES_AT_ROOT",SWIG_From_int(static_cast< int >(wxTR_LINES_AT_ROOT)));
48723 SWIG_Python_SetConstant(d, "TR_SINGLE",SWIG_From_int(static_cast< int >(wxTR_SINGLE)));
48724 SWIG_Python_SetConstant(d, "TR_MULTIPLE",SWIG_From_int(static_cast< int >(wxTR_MULTIPLE)));
48725 SWIG_Python_SetConstant(d, "TR_EXTENDED",SWIG_From_int(static_cast< int >(wxTR_EXTENDED)));
48726 SWIG_Python_SetConstant(d, "TR_HAS_VARIABLE_ROW_HEIGHT",SWIG_From_int(static_cast< int >(wxTR_HAS_VARIABLE_ROW_HEIGHT)));
48727 SWIG_Python_SetConstant(d, "TR_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxTR_EDIT_LABELS)));
48728 SWIG_Python_SetConstant(d, "TR_HIDE_ROOT",SWIG_From_int(static_cast< int >(wxTR_HIDE_ROOT)));
48729 SWIG_Python_SetConstant(d, "TR_ROW_LINES",SWIG_From_int(static_cast< int >(wxTR_ROW_LINES)));
48730 SWIG_Python_SetConstant(d, "TR_FULL_ROW_HIGHLIGHT",SWIG_From_int(static_cast< int >(wxTR_FULL_ROW_HIGHLIGHT)));
48731 SWIG_Python_SetConstant(d, "TR_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxTR_DEFAULT_STYLE)));
48732 SWIG_Python_SetConstant(d, "TR_TWIST_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_TWIST_BUTTONS)));
48733 SWIG_Python_SetConstant(d, "TreeItemIcon_Normal",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Normal)));
48734 SWIG_Python_SetConstant(d, "TreeItemIcon_Selected",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Selected)));
48735 SWIG_Python_SetConstant(d, "TreeItemIcon_Expanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Expanded)));
48736 SWIG_Python_SetConstant(d, "TreeItemIcon_SelectedExpanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_SelectedExpanded)));
48737 SWIG_Python_SetConstant(d, "TreeItemIcon_Max",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Max)));
48738 SWIG_Python_SetConstant(d, "TREE_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ABOVE)));
48739 SWIG_Python_SetConstant(d, "TREE_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_BELOW)));
48740 SWIG_Python_SetConstant(d, "TREE_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_NOWHERE)));
48741 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMBUTTON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMBUTTON)));
48742 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMICON)));
48743 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMINDENT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMINDENT)));
48744 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLABEL)));
48745 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMRIGHT)));
48746 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMSTATEICON)));
48747 SWIG_Python_SetConstant(d, "TREE_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TOLEFT)));
48748 SWIG_Python_SetConstant(d, "TREE_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TORIGHT)));
48749 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMUPPERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMUPPERPART)));
48750 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLOWERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLOWERPART)));
48751 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEM)));
48752 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
48753 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
48754 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
48755 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
48756 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
48757 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
48758 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
48759 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
48760 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
48761 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
48762 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
48763 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
48764 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
48765 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
48766 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
48767 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
48768 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
48769 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
48770 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
48771 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
48772 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU));
48773 SWIG_addvarlink(SWIG_globals(),(char*)"NullTreeItemId",NullTreeItemId_get, NullTreeItemId_set);
48774
48775 // Map renamed classes back to their common name for OOR
48776 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
48777 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
48778
48779 SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogDefaultFolderStr",DirDialogDefaultFolderStr_get, DirDialogDefaultFolderStr_set);
48780 SWIG_Python_SetConstant(d, "DIRCTRL_DIR_ONLY",SWIG_From_int(static_cast< int >(wxDIRCTRL_DIR_ONLY)));
48781 SWIG_Python_SetConstant(d, "DIRCTRL_SELECT_FIRST",SWIG_From_int(static_cast< int >(wxDIRCTRL_SELECT_FIRST)));
48782 SWIG_Python_SetConstant(d, "DIRCTRL_SHOW_FILTERS",SWIG_From_int(static_cast< int >(wxDIRCTRL_SHOW_FILTERS)));
48783 SWIG_Python_SetConstant(d, "DIRCTRL_3D_INTERNAL",SWIG_From_int(static_cast< int >(wxDIRCTRL_3D_INTERNAL)));
48784 SWIG_Python_SetConstant(d, "DIRCTRL_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxDIRCTRL_EDIT_LABELS)));
48785 SWIG_Python_SetConstant(d, "FRAME_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxFRAME_EX_CONTEXTHELP)));
48786 SWIG_Python_SetConstant(d, "DIALOG_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxDIALOG_EX_CONTEXTHELP)));
48787 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
48788 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
48789 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Unknown",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Unknown)));
48790 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Keyboard",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Keyboard)));
48791 SWIG_Python_SetConstant(d, "HelpEvent_Origin_HelpButton",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_HelpButton)));
48792
48793 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
48794
48795 SWIG_addvarlink(SWIG_globals(),(char*)"DatePickerCtrlNameStr",DatePickerCtrlNameStr_get, DatePickerCtrlNameStr_set);
48796 SWIG_Python_SetConstant(d, "DP_DEFAULT",SWIG_From_int(static_cast< int >(wxDP_DEFAULT)));
48797 SWIG_Python_SetConstant(d, "DP_SPIN",SWIG_From_int(static_cast< int >(wxDP_SPIN)));
48798 SWIG_Python_SetConstant(d, "DP_DROPDOWN",SWIG_From_int(static_cast< int >(wxDP_DROPDOWN)));
48799 SWIG_Python_SetConstant(d, "DP_SHOWCENTURY",SWIG_From_int(static_cast< int >(wxDP_SHOWCENTURY)));
48800 SWIG_Python_SetConstant(d, "DP_ALLOWNONE",SWIG_From_int(static_cast< int >(wxDP_ALLOWNONE)));
48801 SWIG_addvarlink(SWIG_globals(),(char*)"HyperlinkCtrlNameStr",HyperlinkCtrlNameStr_get, HyperlinkCtrlNameStr_set);
48802 SWIG_Python_SetConstant(d, "HL_CONTEXTMENU",SWIG_From_int(static_cast< int >(wxHL_CONTEXTMENU)));
48803 SWIG_Python_SetConstant(d, "HL_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxHL_DEFAULT_STYLE)));
48804 PyDict_SetItemString(d, "wxEVT_COMMAND_HYPERLINK", PyInt_FromLong(wxEVT_COMMAND_HYPERLINK));
48805 SWIG_Python_SetConstant(d, "PB_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxPB_USE_TEXTCTRL)));
48806 SWIG_addvarlink(SWIG_globals(),(char*)"ColourPickerCtrlNameStr",ColourPickerCtrlNameStr_get, ColourPickerCtrlNameStr_set);
48807 SWIG_Python_SetConstant(d, "CLRP_SHOW_LABEL",SWIG_From_int(static_cast< int >(wxCLRP_SHOW_LABEL)));
48808 SWIG_Python_SetConstant(d, "CLRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxCLRP_USE_TEXTCTRL)));
48809 SWIG_Python_SetConstant(d, "CLRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxCLRP_DEFAULT_STYLE)));
48810 PyDict_SetItemString(d, "wxEVT_COMMAND_COLOURPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_COLOURPICKER_CHANGED));
48811 SWIG_addvarlink(SWIG_globals(),(char*)"FilePickerCtrlNameStr",FilePickerCtrlNameStr_get, FilePickerCtrlNameStr_set);
48812 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorPromptStr",FileSelectorPromptStr_get, FileSelectorPromptStr_set);
48813 SWIG_addvarlink(SWIG_globals(),(char*)"DirPickerCtrlNameStr",DirPickerCtrlNameStr_get, DirPickerCtrlNameStr_set);
48814 SWIG_addvarlink(SWIG_globals(),(char*)"DirSelectorPromptStr",DirSelectorPromptStr_get, DirSelectorPromptStr_set);
48815 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorDefaultWildcardStr",FileSelectorDefaultWildcardStr_get, FileSelectorDefaultWildcardStr_set);
48816 SWIG_Python_SetConstant(d, "FLP_OPEN",SWIG_From_int(static_cast< int >(wxFLP_OPEN)));
48817 SWIG_Python_SetConstant(d, "FLP_SAVE",SWIG_From_int(static_cast< int >(wxFLP_SAVE)));
48818 SWIG_Python_SetConstant(d, "FLP_OVERWRITE_PROMPT",SWIG_From_int(static_cast< int >(wxFLP_OVERWRITE_PROMPT)));
48819 SWIG_Python_SetConstant(d, "FLP_FILE_MUST_EXIST",SWIG_From_int(static_cast< int >(wxFLP_FILE_MUST_EXIST)));
48820 SWIG_Python_SetConstant(d, "FLP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxFLP_CHANGE_DIR)));
48821 SWIG_Python_SetConstant(d, "DIRP_DIR_MUST_EXIST",SWIG_From_int(static_cast< int >(wxDIRP_DIR_MUST_EXIST)));
48822 SWIG_Python_SetConstant(d, "DIRP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxDIRP_CHANGE_DIR)));
48823 SWIG_Python_SetConstant(d, "FLP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFLP_USE_TEXTCTRL)));
48824 SWIG_Python_SetConstant(d, "FLP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFLP_DEFAULT_STYLE)));
48825 SWIG_Python_SetConstant(d, "DIRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxDIRP_USE_TEXTCTRL)));
48826 SWIG_Python_SetConstant(d, "DIRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxDIRP_DEFAULT_STYLE)));
48827 PyDict_SetItemString(d, "wxEVT_COMMAND_FILEPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FILEPICKER_CHANGED));
48828 PyDict_SetItemString(d, "wxEVT_COMMAND_DIRPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_DIRPICKER_CHANGED));
48829 SWIG_addvarlink(SWIG_globals(),(char*)"FontPickerCtrlNameStr",FontPickerCtrlNameStr_get, FontPickerCtrlNameStr_set);
48830 SWIG_Python_SetConstant(d, "FNTP_FONTDESC_AS_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_FONTDESC_AS_LABEL)));
48831 SWIG_Python_SetConstant(d, "FNTP_USEFONT_FOR_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_USEFONT_FOR_LABEL)));
48832 SWIG_Python_SetConstant(d, "FNTP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFNTP_USE_TEXTCTRL)));
48833 SWIG_Python_SetConstant(d, "FNTP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFNTP_DEFAULT_STYLE)));
48834 PyDict_SetItemString(d, "wxEVT_COMMAND_FONTPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FONTPICKER_CHANGED));
48835 }
48836