]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/_controls_wrap.cpp
reSWIGged
[wxWidgets.git] / wxPython / src / mac / _controls_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.29
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30 /* -----------------------------------------------------------------------------
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 * ----------------------------------------------------------------------------- */
34
35 /* template workaround for compilers that cannot correctly implement the C++ standard */
36 #ifndef SWIGTEMPLATEDISAMBIGUATOR
37 # if defined(__SUNPRO_CC)
38 # if (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 # else
44 # define SWIGTEMPLATEDISAMBIGUATOR
45 # endif
46 #endif
47
48 /* inline attribute */
49 #ifndef SWIGINLINE
50 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51 # define SWIGINLINE inline
52 # else
53 # define SWIGINLINE
54 # endif
55 #endif
56
57 /* attribute recognised by some compilers to avoid 'unused' warnings */
58 #ifndef SWIGUNUSED
59 # if defined(__GNUC__)
60 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61 # define SWIGUNUSED __attribute__ ((__unused__))
62 # else
63 # define SWIGUNUSED
64 # endif
65 # elif defined(__ICC)
66 # define SWIGUNUSED __attribute__ ((__unused__))
67 # else
68 # define SWIGUNUSED
69 # endif
70 #endif
71
72 #ifndef SWIGUNUSEDPARM
73 # ifdef __cplusplus
74 # define SWIGUNUSEDPARM(p)
75 # else
76 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
77 # endif
78 #endif
79
80 /* internal SWIG method */
81 #ifndef SWIGINTERN
82 # define SWIGINTERN static SWIGUNUSED
83 #endif
84
85 /* internal inline SWIG method */
86 #ifndef SWIGINTERNINLINE
87 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88 #endif
89
90 /* exporting methods */
91 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92 # ifndef GCC_HASCLASSVISIBILITY
93 # define GCC_HASCLASSVISIBILITY
94 # endif
95 #endif
96
97 #ifndef SWIGEXPORT
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # if defined(STATIC_LINKED)
100 # define SWIGEXPORT
101 # else
102 # define SWIGEXPORT __declspec(dllexport)
103 # endif
104 # else
105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106 # define SWIGEXPORT __attribute__ ((visibility("default")))
107 # else
108 # define SWIGEXPORT
109 # endif
110 # endif
111 #endif
112
113 /* calling conventions for Windows */
114 #ifndef SWIGSTDCALL
115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116 # define SWIGSTDCALL __stdcall
117 # else
118 # define SWIGSTDCALL
119 # endif
120 #endif
121
122 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124 # define _CRT_SECURE_NO_DEPRECATE
125 #endif
126
127
128 /* Python.h has to appear first */
129 #include <Python.h>
130
131 /* -----------------------------------------------------------------------------
132 * swigrun.swg
133 *
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
137
138 /* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
140 #define SWIG_RUNTIME_VERSION "2"
141
142 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143 #ifdef SWIG_TYPE_TABLE
144 # define SWIG_QUOTE_STRING(x) #x
145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
147 #else
148 # define SWIG_TYPE_TABLE_NAME
149 #endif
150
151 /*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158 */
159
160 #ifndef SWIGRUNTIME
161 # define SWIGRUNTIME SWIGINTERN
162 #endif
163
164 #ifndef SWIGRUNTIMEINLINE
165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
166 #endif
167
168 /* Generic buffer size */
169 #ifndef SWIG_BUFFER_SIZE
170 # define SWIG_BUFFER_SIZE 1024
171 #endif
172
173 /* Flags for pointer conversions */
174 #define SWIG_POINTER_DISOWN 0x1
175
176 /* Flags for new pointer objects */
177 #define SWIG_POINTER_OWN 0x1
178
179
180 /*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260 #define SWIG_OK (0)
261 #define SWIG_ERROR (-1)
262 #define SWIG_IsOK(r) (r >= 0)
263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265 /* The CastRankLimit says how many bits are used for the cast rank */
266 #define SWIG_CASTRANKLIMIT (1 << 8)
267 /* The NewMask denotes the object was created (using new/malloc) */
268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269 /* The TmpMask is for in/out typemaps that use temporal objects */
270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271 /* Simple returning values */
272 #define SWIG_BADOBJ (SWIG_ERROR)
273 #define SWIG_OLDOBJ (SWIG_OK)
274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276 /* Check, add and del mask methods */
277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285 /* Cast-Rank Mode */
286 #if defined(SWIG_CASTRANK_MODE)
287 # ifndef SWIG_TypeRank
288 # define SWIG_TypeRank unsigned long
289 # endif
290 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291 # define SWIG_MAXCASTRANK (2)
292 # endif
293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295 SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297 }
298 SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300 }
301 #else /* no cast-rank mode */
302 # define SWIG_AddCast
303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304 #endif
305
306
307
308
309 #include <string.h>
310
311 #ifdef __cplusplus
312 extern "C" {
313 #endif
314
315 typedef void *(*swig_converter_func)(void *);
316 typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
318 /* Structure to store inforomation on one type */
319 typedef struct swig_type_info {
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
325 int owndata; /* flag if the structure owns the clientdata */
326 } swig_type_info;
327
328 /* Structure to store a type and conversion function used for casting */
329 typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334 } swig_cast_info;
335
336 /* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339 typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346 } swig_module_info;
347
348 /*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354 */
355 SWIGRUNTIME int
356 SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
362 }
363 return (l1 - f1) - (l2 - f2);
364 }
365
366 /*
367 Check type equivalence in a name list like <name1>|<name2>|...
368 Return 0 if not equal, 1 if equal
369 */
370 SWIGRUNTIME int
371 SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
380 if (*ne) ++ne;
381 }
382 return equiv;
383 }
384
385 /*
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
388 */
389 SWIGRUNTIME int
390 SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
397 }
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
400 }
401 return equiv;
402 }
403
404
405 /* think of this as a c++ template<> or a scheme macro */
406 #define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
427 /*
428 Check the typename
429 */
430 SWIGRUNTIME swig_cast_info *
431 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433 }
434
435 /* Same as previous function, except strcmp is replaced with a pointer comparison */
436 SWIGRUNTIME swig_cast_info *
437 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
439 }
440
441 /*
442 Cast a pointer up an inheritance hierarchy
443 */
444 SWIGRUNTIMEINLINE void *
445 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447 }
448
449 /*
450 Dynamic pointer casting. Down an inheritance hierarchy
451 */
452 SWIGRUNTIME swig_type_info *
453 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461 }
462
463 /*
464 Return the name associated with this type
465 */
466 SWIGRUNTIMEINLINE const char *
467 SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469 }
470
471 /*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474 */
475 SWIGRUNTIME const char *
476 SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
481 if (!type) return NULL;
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491 }
492
493 /*
494 Set the clientdata field for a type
495 */
496 SWIGRUNTIME void
497 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
507 }
508 }
509 cast = cast->next;
510 }
511 }
512 SWIGRUNTIME void
513 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516 }
517
518 /*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525 */
526 SWIGRUNTIME swig_type_info *
527 SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
556 }
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560 }
561
562 /*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570 */
571 SWIGRUNTIME swig_type_info *
572 SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
591 }
592
593 /* neither found a match */
594 return 0;
595 }
596
597 /*
598 Pack binary data into a string
599 */
600 SWIGRUNTIME char *
601 SWIG_PackData(char *c, void *ptr, size_t sz) {
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
605 for (; u != eu; ++u) {
606 register unsigned char uu = *u;
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611 }
612
613 /*
614 Unpack binary data from a string
615 */
616 SWIGRUNTIME const char *
617 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
619 register const unsigned char *eu = u + sz;
620 for (; u != eu; ++u) {
621 register char d = *(c++);
622 register unsigned char uu;
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639 }
640
641 /*
642 Pack 'void *' into a string buffer.
643 */
644 SWIGRUNTIME char *
645 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653 }
654
655 SWIGRUNTIME const char *
656 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666 }
667
668 SWIGRUNTIME char *
669 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681 }
682
683 SWIGRUNTIME const char *
684 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694 }
695
696 #ifdef __cplusplus
697 }
698 #endif
699
700 /* Errors in SWIG */
701 #define SWIG_UnknownError -1
702 #define SWIG_IOError -2
703 #define SWIG_RuntimeError -3
704 #define SWIG_IndexError -4
705 #define SWIG_TypeError -5
706 #define SWIG_DivisionByZero -6
707 #define SWIG_OverflowError -7
708 #define SWIG_SyntaxError -8
709 #define SWIG_ValueError -9
710 #define SWIG_SystemError -10
711 #define SWIG_AttributeError -11
712 #define SWIG_MemoryError -12
713 #define SWIG_NullReferenceError -13
714
715
716
717 /* Python.h has to appear first */
718 #include <Python.h>
719
720 /* Add PyOS_snprintf for old Pythons */
721 #if PY_VERSION_HEX < 0x02020000
722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723 # define PyOS_snprintf _snprintf
724 # else
725 # define PyOS_snprintf snprintf
726 # endif
727 #endif
728
729 /* A crude PyString_FromFormat implementation for old Pythons */
730 #if PY_VERSION_HEX < 0x02020000
731
732 #ifndef SWIG_PYBUFFER_SIZE
733 # define SWIG_PYBUFFER_SIZE 1024
734 #endif
735
736 static PyObject *
737 PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745 }
746 #endif
747
748 /* Add PyObject_Del for old Pythons */
749 #if PY_VERSION_HEX < 0x01060000
750 # define PyObject_Del(op) PyMem_DEL((op))
751 #endif
752 #ifndef PyObject_DEL
753 # define PyObject_DEL PyObject_Del
754 #endif
755
756 /* A crude PyExc_StopIteration exception for old Pythons */
757 #if PY_VERSION_HEX < 0x02020000
758 # ifndef PyExc_StopIteration
759 # define PyExc_StopIteration PyExc_RuntimeError
760 # endif
761 # ifndef PyObject_GenericGetAttr
762 # define PyObject_GenericGetAttr 0
763 # endif
764 #endif
765 /* Py_NotImplemented is defined in 2.1 and up. */
766 #if PY_VERSION_HEX < 0x02010000
767 # ifndef Py_NotImplemented
768 # define Py_NotImplemented PyExc_RuntimeError
769 # endif
770 #endif
771
772
773 /* A crude PyString_AsStringAndSize implementation for old Pythons */
774 #if PY_VERSION_HEX < 0x02010000
775 # ifndef PyString_AsStringAndSize
776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777 # endif
778 #endif
779
780 /* PySequence_Size for old Pythons */
781 #if PY_VERSION_HEX < 0x02000000
782 # ifndef PySequence_Size
783 # define PySequence_Size PySequence_Length
784 # endif
785 #endif
786
787
788 /* PyBool_FromLong for old Pythons */
789 #if PY_VERSION_HEX < 0x02030000
790 static
791 PyObject *PyBool_FromLong(long ok)
792 {
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796 }
797 #endif
798
799
800 /* -----------------------------------------------------------------------------
801 * error manipulation
802 * ----------------------------------------------------------------------------- */
803
804 SWIGRUNTIME PyObject*
805 SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845 }
846
847
848 SWIGRUNTIME void
849 SWIG_Python_AddErrorMsg(const char* mesg)
850 {
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866 }
867
868
869
870 #if defined(SWIG_PYTHON_NO_THREADS)
871 # if defined(SWIG_PYTHON_THREADS)
872 # undef SWIG_PYTHON_THREADS
873 # endif
874 #endif
875 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878 # define SWIG_PYTHON_USE_GIL
879 # endif
880 # endif
881 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884 # endif
885 # ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906 # else /* C code */
907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911 # endif
912 # else /* Old thread way, not implemented, user must provide it */
913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914 # define SWIG_PYTHON_INITIALIZE_THREADS
915 # endif
916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918 # endif
919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920 # define SWIG_PYTHON_THREAD_END_BLOCK
921 # endif
922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924 # endif
925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926 # define SWIG_PYTHON_THREAD_END_ALLOW
927 # endif
928 # endif
929 #else /* No thread support */
930 # define SWIG_PYTHON_INITIALIZE_THREADS
931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932 # define SWIG_PYTHON_THREAD_END_BLOCK
933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934 # define SWIG_PYTHON_THREAD_END_ALLOW
935 #endif
936
937 /* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
940
941 #ifdef __cplusplus
942 extern "C" {
943 #if 0
944 } /* cc-mode */
945 #endif
946 #endif
947
948 /* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
951
952 /* Constant Types */
953 #define SWIG_PY_POINTER 4
954 #define SWIG_PY_BINARY 5
955
956 /* Constant information structure */
957 typedef struct swig_const_info {
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
964 } swig_const_info;
965
966 #ifdef __cplusplus
967 #if 0
968 { /* cc-mode */
969 #endif
970 }
971 #endif
972
973
974 /* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
978 * pyrun.swg
979 *
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
983 *
984 * ----------------------------------------------------------------------------- */
985
986 /* Common SWIG API */
987
988 #if PY_VERSION_HEX < 0x02050000
989 typedef int Py_ssize_t;
990 #endif
991
992 /* for raw pointers */
993 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999 #define swig_owntype int
1000
1001 /* for raw packed data */
1002 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1004
1005 /* for class or struct pointers */
1006 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1008
1009 /* for C or C++ function pointers */
1010 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
1012
1013 /* for C++ member pointers, ie, member methods */
1014 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1016
1017
1018 /* Runtime API */
1019
1020 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022 #define SWIG_NewClientData(obj) PySwigClientData_New(obj)
1023
1024 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028 #define SWIG_fail goto fail
1029
1030
1031 /* Runtime API implementation */
1032
1033 /* Error manipulation */
1034
1035 SWIGINTERN void
1036 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
1041 }
1042
1043 SWIGINTERN void
1044 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
1048 }
1049
1050 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1051
1052 /* Set a constant value */
1053
1054 SWIGINTERN void
1055 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
1058 }
1059
1060 /* Append a value to the result obj */
1061
1062 SWIGINTERN PyObject*
1063 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080 #else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
1088 } else {
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
1100 }
1101 return result;
1102 #endif
1103 }
1104
1105 /* Unpack the argument tuple */
1106
1107 SWIGINTERN int
1108 SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109 {
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143 }
1144
1145 /* A functor is a function object with one single object argument */
1146 #if PY_VERSION_HEX >= 0x02020000
1147 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148 #else
1149 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150 #endif
1151
1152 /*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155 */
1156 #ifdef __cplusplus
1157 #define SWIG_STATIC_POINTER(var) var
1158 #else
1159 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160 #endif
1161
1162 /* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166 /* Flags for new pointer objects */
1167 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172 #ifdef __cplusplus
1173 extern "C" {
1174 #if 0
1175 } /* cc-mode */
1176 #endif
1177 #endif
1178
1179 /* How to access Py_None */
1180 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1182 # ifndef SWIG_PYTHON_BUILD_NONE
1183 # define SWIG_PYTHON_BUILD_NONE
1184 # endif
1185 # endif
1186 #endif
1187
1188 #ifdef SWIG_PYTHON_BUILD_NONE
1189 # ifdef Py_None
1190 # undef Py_None
1191 # define Py_None SWIG_Py_None()
1192 # endif
1193 SWIGRUNTIMEINLINE PyObject *
1194 _SWIG_Py_None(void)
1195 {
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199 }
1200 SWIGRUNTIME PyObject *
1201 SWIG_Py_None(void)
1202 {
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205 }
1206 #endif
1207
1208 /* The python void return value */
1209
1210 SWIGRUNTIMEINLINE PyObject *
1211 SWIG_Py_Void(void)
1212 {
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216 }
1217
1218 /* PySwigClientData */
1219
1220 typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227 } PySwigClientData;
1228
1229 SWIGRUNTIMEINLINE int
1230 SWIG_Python_CheckImplicit(swig_type_info *ty)
1231 {
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234 }
1235
1236 SWIGRUNTIMEINLINE PyObject *
1237 SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241 }
1242
1243
1244 SWIGRUNTIME PySwigClientData *
1245 PySwigClientData_New(PyObject* obj)
1246 {
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260 #if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262 #else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264 #endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284 #ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286 #else
1287 data->delargs = 0;
1288 #endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295 }
1296
1297 SWIGRUNTIME void
1298 PySwigClientData_Del(PySwigClientData* data)
1299 {
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303 }
1304
1305 /* =============== PySwigObject =====================*/
1306
1307 typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313 } PySwigObject;
1314
1315 SWIGRUNTIME PyObject *
1316 PySwigObject_long(PySwigObject *v)
1317 {
1318 return PyLong_FromVoidPtr(v->ptr);
1319 }
1320
1321 SWIGRUNTIME PyObject *
1322 PySwigObject_format(const char* fmt, PySwigObject *v)
1323 {
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337 }
1338
1339 SWIGRUNTIME PyObject *
1340 PySwigObject_oct(PySwigObject *v)
1341 {
1342 return PySwigObject_format("%o",v);
1343 }
1344
1345 SWIGRUNTIME PyObject *
1346 PySwigObject_hex(PySwigObject *v)
1347 {
1348 return PySwigObject_format("%x",v);
1349 }
1350
1351 SWIGRUNTIME PyObject *
1352 #ifdef METH_NOARGS
1353 PySwigObject_repr(PySwigObject *v)
1354 #else
1355 PySwigObject_repr(PySwigObject *v, PyObject *args)
1356 #endif
1357 {
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363 #ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365 #else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367 #endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371 }
1372
1373 SWIGRUNTIME int
1374 PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375 {
1376 #ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378 #else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380 #endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388 }
1389
1390 SWIGRUNTIME PyObject *
1391 PySwigObject_str(PySwigObject *v)
1392 {
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396 }
1397
1398 SWIGRUNTIME int
1399 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400 {
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404 }
1405
1406 SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408 SWIGRUNTIME PyTypeObject*
1409 PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412 }
1413
1414 SWIGRUNTIMEINLINE int
1415 PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418 }
1419
1420 SWIGRUNTIME PyObject *
1421 PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423 SWIGRUNTIME void
1424 PySwigObject_dealloc(PyObject *v)
1425 {
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450 #endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455 }
1456
1457 SWIGRUNTIME PyObject*
1458 PySwigObject_append(PyObject* v, PyObject* next)
1459 {
1460 PySwigObject *sobj = (PySwigObject *) v;
1461 #ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465 #endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472 }
1473
1474 SWIGRUNTIME PyObject*
1475 #ifdef METH_NOARGS
1476 PySwigObject_next(PyObject* v)
1477 #else
1478 PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479 #endif
1480 {
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488 }
1489
1490 SWIGINTERN PyObject*
1491 #ifdef METH_NOARGS
1492 PySwigObject_disown(PyObject *v)
1493 #else
1494 PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495 #endif
1496 {
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500 }
1501
1502 SWIGINTERN PyObject*
1503 #ifdef METH_NOARGS
1504 PySwigObject_acquire(PyObject *v)
1505 #else
1506 PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507 #endif
1508 {
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512 }
1513
1514 SWIGINTERN PyObject*
1515 PySwigObject_own(PyObject *v, PyObject *args)
1516 {
1517 PyObject *val = 0;
1518 #if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520 #else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522 #endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531 #ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537 #else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543 #endif
1544 }
1545 return obj;
1546 }
1547 }
1548
1549 #ifdef METH_O
1550 static PyMethodDef
1551 swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559 };
1560 #else
1561 static PyMethodDef
1562 swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570 };
1571 #endif
1572
1573 #if PY_VERSION_HEX < 0x02020000
1574 SWIGINTERN PyObject *
1575 PySwigObject_getattr(PySwigObject *sobj,char *name)
1576 {
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578 }
1579 #endif
1580
1581 SWIGRUNTIME PyTypeObject*
1582 _PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
1609 #if PY_VERSION_HEX >= 0x02020000
1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1611 #elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1613 #endif
1614 };
1615
1616 static PyTypeObject pyswigobject_type;
1617 static int type_init = 0;
1618 if (!type_init) {
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628 #if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630 #else
1631 (getattrfunc)0, /* tp_getattr */
1632 #endif
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
1651 #if PY_VERSION_HEX >= 0x02020000
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
1672 #endif
1673 #if PY_VERSION_HEX >= 0x02030000
1674 0, /* tp_del */
1675 #endif
1676 #ifdef COUNT_ALLOCS
1677 0,0,0,0 /* tp_alloc -> tp_next */
1678 #endif
1679 };
1680 pyswigobject_type = tmp;
1681 pyswigobject_type.ob_type = &PyType_Type;
1682 type_init = 1;
1683 }
1684 return &pyswigobject_type;
1685 }
1686
1687 SWIGRUNTIME PyObject *
1688 PySwigObject_New(void *ptr, swig_type_info *ty, int own)
1689 {
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
1696 }
1697 return (PyObject *)sobj;
1698 }
1699
1700 /* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704 typedef struct {
1705 PyObject_HEAD
1706 void *pack;
1707 swig_type_info *ty;
1708 size_t size;
1709 } PySwigPacked;
1710
1711 SWIGRUNTIME int
1712 PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1713 {
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
1719 }
1720 fputs(v->ty->name,fp);
1721 fputs(">", fp);
1722 return 0;
1723 }
1724
1725 SWIGRUNTIME PyObject *
1726 PySwigPacked_repr(PySwigPacked *v)
1727 {
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1731 } else {
1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
1733 }
1734 }
1735
1736 SWIGRUNTIME PyObject *
1737 PySwigPacked_str(PySwigPacked *v)
1738 {
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1741 return PyString_FromFormat("%s%s", result, v->ty->name);
1742 } else {
1743 return PyString_FromString(v->ty->name);
1744 }
1745 }
1746
1747 SWIGRUNTIME int
1748 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1749 {
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
1754 }
1755
1756 SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
1757
1758 SWIGRUNTIME PyTypeObject*
1759 PySwigPacked_type(void) {
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762 }
1763
1764 SWIGRUNTIMEINLINE int
1765 PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768 }
1769
1770 SWIGRUNTIME void
1771 PySwigPacked_dealloc(PyObject *v)
1772 {
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778 }
1779
1780 SWIGRUNTIME PyTypeObject*
1781 _PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814 #if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
1835 #endif
1836 #if PY_VERSION_HEX >= 0x02030000
1837 0, /* tp_del */
1838 #endif
1839 #ifdef COUNT_ALLOCS
1840 0,0,0,0 /* tp_alloc -> tp_next */
1841 #endif
1842 };
1843 pyswigpacked_type = tmp;
1844 pyswigpacked_type.ob_type = &PyType_Type;
1845 type_init = 1;
1846 }
1847 return &pyswigpacked_type;
1848 }
1849
1850 SWIGRUNTIME PyObject *
1851 PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
1852 {
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
1855 void *pack = malloc(size);
1856 if (pack) {
1857 memcpy(pack, ptr, size);
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
1864 }
1865 }
1866 return (PyObject *) sobj;
1867 }
1868
1869 SWIGRUNTIME swig_type_info *
1870 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871 {
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
1880 }
1881
1882 /* -----------------------------------------------------------------------------
1883 * pointers/data manipulation
1884 * ----------------------------------------------------------------------------- */
1885
1886 SWIGRUNTIMEINLINE PyObject *
1887 _SWIG_This(void)
1888 {
1889 return PyString_FromString("this");
1890 }
1891
1892 SWIGRUNTIME PyObject *
1893 SWIG_This(void)
1894 {
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897 }
1898
1899 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1900
1901 SWIGRUNTIME PySwigObject *
1902 SWIG_Python_GetSwigThis(PyObject *pyobj)
1903 {
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917 #ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922 #endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
1926 } else {
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
1929 }
1930 }
1931 }
1932 #else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940 #endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
1947 }
1948 }
1949
1950 /* Acquire a pointer value */
1951
1952 SWIGRUNTIME int
1953 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
1961 }
1962 return 0;
1963 }
1964
1965 /* Convert a pointer value */
1966
1967 SWIGRUNTIME int
1968 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
1992 } else {
1993 if (ptr) *ptr = vptr;
1994 break;
1995 }
1996 }
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
2042 }
2043 }
2044
2045 /* Convert a function ptr value */
2046
2047 SWIGRUNTIME int
2048 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2051 } else {
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
2069 }
2070 }
2071
2072 /* Convert a packed value value */
2073
2074 SWIGRUNTIME int
2075 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
2084 }
2085 return SWIG_OK;
2086 }
2087
2088 /* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
2091
2092 /*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095 */
2096
2097 SWIGRUNTIME PyObject*
2098 SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099 {
2100 #if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
2115 }
2116 #else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119 #endif
2120 }
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
2126 }
2127 return inst;
2128 #else
2129 #if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136 #else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
2140 }
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
2147 }
2148 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150 #endif
2151 #ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153 #endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156 #endif
2157 #endif
2158 }
2159
2160 SWIGRUNTIME void
2161 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162 {
2163 PyObject *dict;
2164 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
2175 #endif
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179 }
2180
2181
2182 SWIGINTERN PyObject *
2183 SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
2191 } else {
2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2193 }
2194 return SWIG_Py_Void();
2195 }
2196 }
2197
2198 /* Create a new pointer object */
2199
2200 SWIGRUNTIME PyObject *
2201 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
2202 if (!ptr) {
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
2213 }
2214 }
2215 return robj;
2216 }
2217 }
2218
2219 /* Create a new packed object */
2220
2221 SWIGRUNTIMEINLINE PyObject *
2222 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2224 }
2225
2226 /* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230 #ifdef SWIG_LINK_RUNTIME
2231 void *SWIG_ReturnGlobalTypeList(void *);
2232 #endif
2233
2234 SWIGRUNTIME swig_module_info *
2235 SWIG_Python_GetModule(void) {
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239 #ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2241 #else
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
2248 #endif
2249 }
2250 return (swig_module_info *) type_pointer;
2251 }
2252
2253 #if PY_MAJOR_VERSION < 2
2254 /* PyModule_AddObject function was introduced in Python 2.0. The following function
2255 is copied out of Python/modsupport.c in python version 2.3.4 */
2256 SWIGINTERN int
2257 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258 {
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
2263 return SWIG_ERROR;
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
2268 return SWIG_ERROR;
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
2276 return SWIG_ERROR;
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
2279 return SWIG_ERROR;
2280 Py_DECREF(o);
2281 return SWIG_OK;
2282 }
2283 #endif
2284
2285 SWIGRUNTIME void
2286 SWIG_Python_DestroyModule(void *vptr)
2287 {
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299 }
2300
2301 SWIGRUNTIME void
2302 SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2310 } else {
2311 Py_XDECREF(pointer);
2312 }
2313 }
2314
2315 /* The python cached type query */
2316 SWIGRUNTIME PyObject *
2317 SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
2320 }
2321
2322 SWIGRUNTIME swig_type_info *
2323 SWIG_Python_TypeQuery(const char *type)
2324 {
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342 }
2343
2344 /*
2345 For backward compatibility only
2346 */
2347 #define SWIG_POINTER_EXCEPTION 0
2348 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351 SWIGRUNTIME int
2352 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353 {
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374 }
2375
2376 SWIGRUNTIME int
2377 SWIG_Python_ArgFail(int argnum)
2378 {
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387 }
2388
2389 SWIGRUNTIMEINLINE const char *
2390 PySwigObject_GetDesc(PyObject *self)
2391 {
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395 }
2396
2397 SWIGRUNTIME void
2398 SWIG_Python_TypeError(const char *type, PyObject *obj)
2399 {
2400 if (type) {
2401 #if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410 #endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431 }
2432
2433
2434 /* Convert a pointer value, signal an exception on a type mismatch */
2435 SWIGRUNTIME void *
2436 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446 }
2447
2448
2449 #ifdef __cplusplus
2450 #if 0
2451 { /* cc-mode */
2452 #endif
2453 }
2454 #endif
2455
2456
2457
2458 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464 /* -------- TYPES TABLE (BEGIN) -------- */
2465
2466 #define SWIGTYPE_p_bool swig_types[0]
2467 #define SWIGTYPE_p_char swig_types[1]
2468 #define SWIGTYPE_p_form_ops_t swig_types[2]
2469 #define SWIGTYPE_p_int swig_types[3]
2470 #define SWIGTYPE_p_long swig_types[4]
2471 #define SWIGTYPE_p_unsigned_char swig_types[5]
2472 #define SWIGTYPE_p_unsigned_int swig_types[6]
2473 #define SWIGTYPE_p_unsigned_long swig_types[7]
2474 #define SWIGTYPE_p_void swig_types[8]
2475 #define SWIGTYPE_p_wxANIHandler swig_types[9]
2476 #define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2477 #define SWIGTYPE_p_wxActivateEvent swig_types[11]
2478 #define SWIGTYPE_p_wxArrayInt swig_types[12]
2479 #define SWIGTYPE_p_wxArrayString swig_types[13]
2480 #define SWIGTYPE_p_wxBMPHandler swig_types[14]
2481 #define SWIGTYPE_p_wxBitmap swig_types[15]
2482 #define SWIGTYPE_p_wxBitmapButton swig_types[16]
2483 #define SWIGTYPE_p_wxBookCtrlBase swig_types[17]
2484 #define SWIGTYPE_p_wxBookCtrlBaseEvent swig_types[18]
2485 #define SWIGTYPE_p_wxBoxSizer swig_types[19]
2486 #define SWIGTYPE_p_wxButton swig_types[20]
2487 #define SWIGTYPE_p_wxCURHandler swig_types[21]
2488 #define SWIGTYPE_p_wxCheckBox swig_types[22]
2489 #define SWIGTYPE_p_wxCheckListBox swig_types[23]
2490 #define SWIGTYPE_p_wxChildFocusEvent swig_types[24]
2491 #define SWIGTYPE_p_wxChoice swig_types[25]
2492 #define SWIGTYPE_p_wxChoicebook swig_types[26]
2493 #define SWIGTYPE_p_wxChoicebookEvent swig_types[27]
2494 #define SWIGTYPE_p_wxClipboardTextEvent swig_types[28]
2495 #define SWIGTYPE_p_wxCloseEvent swig_types[29]
2496 #define SWIGTYPE_p_wxColour swig_types[30]
2497 #define SWIGTYPE_p_wxColourPickerCtrl swig_types[31]
2498 #define SWIGTYPE_p_wxColourPickerEvent swig_types[32]
2499 #define SWIGTYPE_p_wxComboBox swig_types[33]
2500 #define SWIGTYPE_p_wxCommandEvent swig_types[34]
2501 #define SWIGTYPE_p_wxContextHelp swig_types[35]
2502 #define SWIGTYPE_p_wxContextHelpButton swig_types[36]
2503 #define SWIGTYPE_p_wxContextMenuEvent swig_types[37]
2504 #define SWIGTYPE_p_wxControl swig_types[38]
2505 #define SWIGTYPE_p_wxControlWithItems swig_types[39]
2506 #define SWIGTYPE_p_wxCursor swig_types[40]
2507 #define SWIGTYPE_p_wxDC swig_types[41]
2508 #define SWIGTYPE_p_wxDateEvent swig_types[42]
2509 #define SWIGTYPE_p_wxDatePickerCtrl swig_types[43]
2510 #define SWIGTYPE_p_wxDateTime swig_types[44]
2511 #define SWIGTYPE_p_wxDirFilterListCtrl swig_types[45]
2512 #define SWIGTYPE_p_wxDirPickerCtrl swig_types[46]
2513 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[47]
2514 #define SWIGTYPE_p_wxDropFilesEvent swig_types[48]
2515 #define SWIGTYPE_p_wxDuplexMode swig_types[49]
2516 #define SWIGTYPE_p_wxEraseEvent swig_types[50]
2517 #define SWIGTYPE_p_wxEvent swig_types[51]
2518 #define SWIGTYPE_p_wxEvtHandler swig_types[52]
2519 #define SWIGTYPE_p_wxFSFile swig_types[53]
2520 #define SWIGTYPE_p_wxFileDirPickerEvent swig_types[54]
2521 #define SWIGTYPE_p_wxFilePickerCtrl swig_types[55]
2522 #define SWIGTYPE_p_wxFileSystem swig_types[56]
2523 #define SWIGTYPE_p_wxFlexGridSizer swig_types[57]
2524 #define SWIGTYPE_p_wxFocusEvent swig_types[58]
2525 #define SWIGTYPE_p_wxFont swig_types[59]
2526 #define SWIGTYPE_p_wxFontPickerCtrl swig_types[60]
2527 #define SWIGTYPE_p_wxFontPickerEvent swig_types[61]
2528 #define SWIGTYPE_p_wxGBSizerItem swig_types[62]
2529 #define SWIGTYPE_p_wxGIFHandler swig_types[63]
2530 #define SWIGTYPE_p_wxGauge swig_types[64]
2531 #define SWIGTYPE_p_wxGenericDirCtrl swig_types[65]
2532 #define SWIGTYPE_p_wxGenericDragImage swig_types[66]
2533 #define SWIGTYPE_p_wxGridBagSizer swig_types[67]
2534 #define SWIGTYPE_p_wxGridSizer swig_types[68]
2535 #define SWIGTYPE_p_wxHelpEvent swig_types[69]
2536 #define SWIGTYPE_p_wxHelpProvider swig_types[70]
2537 #define SWIGTYPE_p_wxHyperlinkCtrl swig_types[71]
2538 #define SWIGTYPE_p_wxHyperlinkEvent swig_types[72]
2539 #define SWIGTYPE_p_wxICOHandler swig_types[73]
2540 #define SWIGTYPE_p_wxIcon swig_types[74]
2541 #define SWIGTYPE_p_wxIconizeEvent swig_types[75]
2542 #define SWIGTYPE_p_wxIdleEvent swig_types[76]
2543 #define SWIGTYPE_p_wxImage swig_types[77]
2544 #define SWIGTYPE_p_wxImageHandler swig_types[78]
2545 #define SWIGTYPE_p_wxImageList swig_types[79]
2546 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[80]
2547 #define SWIGTYPE_p_wxInitDialogEvent swig_types[81]
2548 #define SWIGTYPE_p_wxItemContainer swig_types[82]
2549 #define SWIGTYPE_p_wxJPEGHandler swig_types[83]
2550 #define SWIGTYPE_p_wxKeyEvent swig_types[84]
2551 #define SWIGTYPE_p_wxLayoutConstraints swig_types[85]
2552 #define SWIGTYPE_p_wxListBox swig_types[86]
2553 #define SWIGTYPE_p_wxListEvent swig_types[87]
2554 #define SWIGTYPE_p_wxListItem swig_types[88]
2555 #define SWIGTYPE_p_wxListItemAttr swig_types[89]
2556 #define SWIGTYPE_p_wxListView swig_types[90]
2557 #define SWIGTYPE_p_wxListbook swig_types[91]
2558 #define SWIGTYPE_p_wxListbookEvent swig_types[92]
2559 #define SWIGTYPE_p_wxMaximizeEvent swig_types[93]
2560 #define SWIGTYPE_p_wxMemoryDC swig_types[94]
2561 #define SWIGTYPE_p_wxMenu swig_types[95]
2562 #define SWIGTYPE_p_wxMenuBar swig_types[96]
2563 #define SWIGTYPE_p_wxMenuEvent swig_types[97]
2564 #define SWIGTYPE_p_wxMenuItem swig_types[98]
2565 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[99]
2566 #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[100]
2567 #define SWIGTYPE_p_wxMouseEvent swig_types[101]
2568 #define SWIGTYPE_p_wxMoveEvent swig_types[102]
2569 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[103]
2570 #define SWIGTYPE_p_wxNcPaintEvent swig_types[104]
2571 #define SWIGTYPE_p_wxNotebook swig_types[105]
2572 #define SWIGTYPE_p_wxNotebookEvent swig_types[106]
2573 #define SWIGTYPE_p_wxNotifyEvent swig_types[107]
2574 #define SWIGTYPE_p_wxObject swig_types[108]
2575 #define SWIGTYPE_p_wxPCXHandler swig_types[109]
2576 #define SWIGTYPE_p_wxPNGHandler swig_types[110]
2577 #define SWIGTYPE_p_wxPNMHandler swig_types[111]
2578 #define SWIGTYPE_p_wxPaintEvent swig_types[112]
2579 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[113]
2580 #define SWIGTYPE_p_wxPaperSize swig_types[114]
2581 #define SWIGTYPE_p_wxPickerBase swig_types[115]
2582 #define SWIGTYPE_p_wxPoint swig_types[116]
2583 #define SWIGTYPE_p_wxPyApp swig_types[117]
2584 #define SWIGTYPE_p_wxPyCommandEvent swig_types[118]
2585 #define SWIGTYPE_p_wxPyControl swig_types[119]
2586 #define SWIGTYPE_p_wxPyEvent swig_types[120]
2587 #define SWIGTYPE_p_wxPyImageHandler swig_types[121]
2588 #define SWIGTYPE_p_wxPyListCtrl swig_types[122]
2589 #define SWIGTYPE_p_wxPySizer swig_types[123]
2590 #define SWIGTYPE_p_wxPyTreeCtrl swig_types[124]
2591 #define SWIGTYPE_p_wxPyTreeItemData swig_types[125]
2592 #define SWIGTYPE_p_wxPyValidator swig_types[126]
2593 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[127]
2594 #define SWIGTYPE_p_wxRadioBox swig_types[128]
2595 #define SWIGTYPE_p_wxRadioButton swig_types[129]
2596 #define SWIGTYPE_p_wxRect swig_types[130]
2597 #define SWIGTYPE_p_wxScrollBar swig_types[131]
2598 #define SWIGTYPE_p_wxScrollEvent swig_types[132]
2599 #define SWIGTYPE_p_wxScrollWinEvent swig_types[133]
2600 #define SWIGTYPE_p_wxSetCursorEvent swig_types[134]
2601 #define SWIGTYPE_p_wxShowEvent swig_types[135]
2602 #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[136]
2603 #define SWIGTYPE_p_wxSize swig_types[137]
2604 #define SWIGTYPE_p_wxSizeEvent swig_types[138]
2605 #define SWIGTYPE_p_wxSizer swig_types[139]
2606 #define SWIGTYPE_p_wxSizerItem swig_types[140]
2607 #define SWIGTYPE_p_wxSlider swig_types[141]
2608 #define SWIGTYPE_p_wxSpinButton swig_types[142]
2609 #define SWIGTYPE_p_wxSpinCtrl swig_types[143]
2610 #define SWIGTYPE_p_wxSpinEvent swig_types[144]
2611 #define SWIGTYPE_p_wxStaticBitmap swig_types[145]
2612 #define SWIGTYPE_p_wxStaticBox swig_types[146]
2613 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[147]
2614 #define SWIGTYPE_p_wxStaticLine swig_types[148]
2615 #define SWIGTYPE_p_wxStaticText swig_types[149]
2616 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[150]
2617 #define SWIGTYPE_p_wxString swig_types[151]
2618 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[152]
2619 #define SWIGTYPE_p_wxTIFFHandler swig_types[153]
2620 #define SWIGTYPE_p_wxTextAttr swig_types[154]
2621 #define SWIGTYPE_p_wxTextCtrl swig_types[155]
2622 #define SWIGTYPE_p_wxTextUrlEvent swig_types[156]
2623 #define SWIGTYPE_p_wxToggleButton swig_types[157]
2624 #define SWIGTYPE_p_wxToolBar swig_types[158]
2625 #define SWIGTYPE_p_wxToolBarBase swig_types[159]
2626 #define SWIGTYPE_p_wxToolBarToolBase swig_types[160]
2627 #define SWIGTYPE_p_wxToolbook swig_types[161]
2628 #define SWIGTYPE_p_wxToolbookEvent swig_types[162]
2629 #define SWIGTYPE_p_wxTreeEvent swig_types[163]
2630 #define SWIGTYPE_p_wxTreeItemId swig_types[164]
2631 #define SWIGTYPE_p_wxTreebook swig_types[165]
2632 #define SWIGTYPE_p_wxTreebookEvent swig_types[166]
2633 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[167]
2634 #define SWIGTYPE_p_wxValidator swig_types[168]
2635 #define SWIGTYPE_p_wxVisualAttributes swig_types[169]
2636 #define SWIGTYPE_p_wxWindow swig_types[170]
2637 #define SWIGTYPE_p_wxWindowBase swig_types[171]
2638 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[172]
2639 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[173]
2640 #define SWIGTYPE_p_wxXPMHandler swig_types[174]
2641 static swig_type_info *swig_types[176];
2642 static swig_module_info swig_module = {swig_types, 175, 0, 0, 0, 0};
2643 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2644 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2645
2646 /* -------- TYPES TABLE (END) -------- */
2647
2648 #if (PY_VERSION_HEX <= 0x02000000)
2649 # if !defined(SWIG_PYTHON_CLASSIC)
2650 # error "This python version requires to use swig with the '-classic' option"
2651 # endif
2652 #endif
2653 #if (PY_VERSION_HEX <= 0x02020000)
2654 # error "This python version requires to use swig with the '-nomodern' option"
2655 #endif
2656 #if (PY_VERSION_HEX <= 0x02020000)
2657 # error "This python version requires to use swig with the '-nomodernargs' option"
2658 #endif
2659 #ifndef METH_O
2660 # error "This python version requires to use swig with the '-nofastunpack' option"
2661 #endif
2662
2663 /*-----------------------------------------------
2664 @(target):= _controls_.so
2665 ------------------------------------------------*/
2666 #define SWIG_init init_controls_
2667
2668 #define SWIG_name "_controls_"
2669
2670 #define SWIGVERSION 0x010329
2671
2672
2673 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2674 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2675
2676
2677 #include <stdexcept>
2678
2679
2680 namespace swig {
2681 class PyObject_ptr {
2682 protected:
2683 PyObject *_obj;
2684
2685 public:
2686 PyObject_ptr() :_obj(0)
2687 {
2688 }
2689
2690 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2691 {
2692 Py_XINCREF(_obj);
2693 }
2694
2695 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2696 {
2697 if (initial_ref) Py_XINCREF(_obj);
2698 }
2699
2700 PyObject_ptr & operator=(const PyObject_ptr& item)
2701 {
2702 Py_XINCREF(item._obj);
2703 Py_XDECREF(_obj);
2704 _obj = item._obj;
2705 return *this;
2706 }
2707
2708 ~PyObject_ptr()
2709 {
2710 Py_XDECREF(_obj);
2711 }
2712
2713 operator PyObject *() const
2714 {
2715 return _obj;
2716 }
2717
2718 PyObject *operator->() const
2719 {
2720 return _obj;
2721 }
2722 };
2723 }
2724
2725
2726 namespace swig {
2727 struct PyObject_var : PyObject_ptr {
2728 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2729
2730 PyObject_var & operator = (PyObject* obj)
2731 {
2732 Py_XDECREF(_obj);
2733 _obj = obj;
2734 return *this;
2735 }
2736 };
2737 }
2738
2739
2740 #include "wx/wxPython/wxPython.h"
2741 #include "wx/wxPython/pyclasses.h"
2742
2743 static const wxString wxPyPanelNameStr(wxPanelNameStr);
2744 static const wxString wxPyEmptyString(wxEmptyString);
2745 static const wxString wxPyControlNameStr(wxControlNameStr);
2746
2747 const wxArrayString wxPyEmptyStringArray;
2748
2749 static const wxString wxPyButtonNameStr(wxButtonNameStr);
2750
2751 #define SWIG_From_long PyInt_FromLong
2752
2753
2754 SWIGINTERNINLINE PyObject *
2755 SWIG_From_int (int value)
2756 {
2757 return SWIG_From_long (value);
2758 }
2759
2760
2761 #include <limits.h>
2762 #ifndef LLONG_MIN
2763 # define LLONG_MIN LONG_LONG_MIN
2764 #endif
2765 #ifndef LLONG_MAX
2766 # define LLONG_MAX LONG_LONG_MAX
2767 #endif
2768 #ifndef ULLONG_MAX
2769 # define ULLONG_MAX ULONG_LONG_MAX
2770 #endif
2771
2772
2773 SWIGINTERN int
2774 SWIG_AsVal_long (PyObject* obj, long* val)
2775 {
2776 if (PyNumber_Check(obj)) {
2777 if (val) *val = PyInt_AsLong(obj);
2778 return SWIG_OK;
2779 }
2780 return SWIG_TypeError;
2781 }
2782
2783
2784 SWIGINTERN int
2785 SWIG_AsVal_int (PyObject * obj, int *val)
2786 {
2787 long v;
2788 int res = SWIG_AsVal_long (obj, &v);
2789 if (SWIG_IsOK(res)) {
2790 if ((v < INT_MIN || v > INT_MAX)) {
2791 return SWIG_OverflowError;
2792 } else {
2793 if (val) *val = static_cast< int >(v);
2794 }
2795 }
2796 return res;
2797 }
2798
2799 static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr);
2800
2801 SWIGINTERN int
2802 SWIG_AsVal_bool (PyObject *obj, bool *val)
2803 {
2804 if (obj == Py_True) {
2805 if (val) *val = true;
2806 return SWIG_OK;
2807 } else if (obj == Py_False) {
2808 if (val) *val = false;
2809 return SWIG_OK;
2810 } else {
2811 long v = 0;
2812 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2813 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2814 return res;
2815 }
2816 }
2817
2818 static const wxString wxPyChoiceNameStr(wxChoiceNameStr);
2819 static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr);
2820 static const wxString wxPyGaugeNameStr(wxGaugeNameStr);
2821 static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr);
2822 static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr);
2823 static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr);
2824
2825 #include <wx/checklst.h>
2826
2827 static const wxString wxPyListBoxNameStr(wxListBoxNameStr);
2828 SWIGINTERN void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData=NULL){
2829 if (clientData)
2830 {
2831 wxPyClientData* data = new wxPyClientData(clientData);
2832 self->Insert(item, pos, data);
2833 }
2834 else
2835 self->Insert(item, pos);
2836 }
2837
2838 SWIGINTERN int
2839 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2840 {
2841 long v = 0;
2842 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2843 return SWIG_TypeError;
2844 }
2845 else if (val)
2846 *val = (unsigned long)v;
2847 return SWIG_OK;
2848 }
2849
2850
2851 SWIGINTERN int
2852 SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
2853 {
2854 unsigned long v;
2855 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2856 if (SWIG_IsOK(res)) {
2857 if ((v > UINT_MAX)) {
2858 return SWIG_OverflowError;
2859 } else {
2860 if (val) *val = static_cast< unsigned int >(v);
2861 }
2862 }
2863 return res;
2864 }
2865
2866 SWIGINTERN PyObject *wxListBox_GetSelections(wxListBox *self){
2867 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2868 wxArrayInt lst;
2869 self->GetSelections(lst);
2870 PyObject *tup = PyTuple_New(lst.GetCount());
2871 for (size_t i=0; i<lst.GetCount(); i++)
2872 {
2873 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
2874 }
2875 wxPyEndBlockThreads(blocked);
2876 return tup;
2877 }
2878 SWIGINTERN void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){
2879 #ifdef __WXMSW__
2880 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2881 self->GetItem(item)->SetTextColour(c);
2882 #endif
2883 }
2884 SWIGINTERN void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){
2885 #ifdef __WXMSW__
2886 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2887 self->GetItem(item)->SetBackgroundColour(c);
2888 #endif
2889 }
2890 SWIGINTERN void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){
2891 #ifdef __WXMSW__
2892 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2893 self->GetItem(item)->SetFont(f);
2894 #endif
2895 }
2896 static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr);
2897 SWIGINTERN void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
2898 self->AppendText(text);
2899 }
2900 SWIGINTERN wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
2901 return self->GetValue().Mid(from, to - from);
2902 }
2903 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
2904 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
2905 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
2906 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
2907 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
2908
2909 SWIGINTERNINLINE PyObject*
2910 SWIG_From_unsigned_SS_long (unsigned long value)
2911 {
2912 return (value > LONG_MAX) ?
2913 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2914 }
2915
2916
2917 SWIGINTERNINLINE PyObject *
2918 SWIG_From_size_t (size_t value)
2919 {
2920 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
2921 }
2922
2923
2924 SWIGINTERNINLINE PyObject *
2925 SWIG_From_unsigned_SS_int (unsigned int value)
2926 {
2927 return SWIG_From_unsigned_SS_long (value);
2928 }
2929
2930
2931 #include <wx/slider.h>
2932
2933
2934 static const wxString wxPySliderNameStr(wxSliderNameStr);
2935 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
2936
2937 #if !wxUSE_TOGGLEBTN
2938 // implement dummy items for platforms that don't have this class
2939
2940 #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
2941
2942 class wxToggleButton : public wxControl
2943 {
2944 public:
2945 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
2946 const wxPoint&, const wxSize&, long,
2947 const wxValidator&, const wxString&)
2948 { wxPyRaiseNotImplemented(); }
2949
2950 wxToggleButton()
2951 { wxPyRaiseNotImplemented(); }
2952 };
2953 #endif
2954
2955 static const wxString wxPyNotebookNameStr(wxNotebookNameStr);
2956
2957 SWIGINTERNINLINE int
2958 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
2959 {
2960 unsigned long v;
2961 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
2962 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
2963 return res;
2964 }
2965
2966 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
2967 SWIGINTERN PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
2968 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
2969 if (udata) {
2970 Py_INCREF(udata->m_obj);
2971 return udata->m_obj;
2972 } else {
2973 Py_INCREF(Py_None);
2974 return Py_None;
2975 }
2976 }
2977 SWIGINTERN void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
2978 self->SetClientData(new wxPyUserData(clientData));
2979 }
2980 SWIGINTERN wxToolBarToolBase *wxToolBarBase_DoAddTool(wxToolBarBase *self,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled=wxNullBitmap,wxItemKind kind=wxITEM_NORMAL,wxString const &shortHelp=wxPyEmptyString,wxString const &longHelp=wxPyEmptyString,PyObject *clientData=NULL){
2981 wxPyUserData* udata = NULL;
2982 if (clientData && clientData != Py_None)
2983 udata = new wxPyUserData(clientData);
2984 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
2985 shortHelp, longHelp, udata);
2986 }
2987 SWIGINTERN wxToolBarToolBase *wxToolBarBase_DoInsertTool(wxToolBarBase *self,size_t pos,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled=wxNullBitmap,wxItemKind kind=wxITEM_NORMAL,wxString const &shortHelp=wxPyEmptyString,wxString const &longHelp=wxPyEmptyString,PyObject *clientData=NULL){
2988 wxPyUserData* udata = NULL;
2989 if (clientData && clientData != Py_None)
2990 udata = new wxPyUserData(clientData);
2991 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
2992 shortHelp, longHelp, udata);
2993 }
2994 SWIGINTERN PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
2995 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
2996 if (udata) {
2997 Py_INCREF(udata->m_obj);
2998 return udata->m_obj;
2999 } else {
3000 Py_INCREF(Py_None);
3001 return Py_None;
3002 }
3003 }
3004 SWIGINTERN void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
3005 self->SetToolClientData(id, new wxPyUserData(clientData));
3006 }
3007
3008 #include <wx/listctrl.h>
3009
3010 static const wxString wxPyListCtrlNameStr(wxListCtrlNameStr);
3011 SWIGINTERN void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
3012 // Python aware sorting function for wxPyListCtrl
3013 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
3014 int retval = 0;
3015 PyObject* func = (PyObject*)funcPtr;
3016 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3017
3018 PyObject* args = Py_BuildValue("(ii)", item1, item2);
3019 PyObject* result = PyEval_CallObject(func, args);
3020 Py_DECREF(args);
3021 if (result) {
3022 retval = PyInt_AsLong(result);
3023 Py_DECREF(result);
3024 }
3025
3026 wxPyEndBlockThreads(blocked);
3027 return retval;
3028 }
3029
3030 // C++ Version of a Python aware class
3031 class wxPyListCtrl : public wxListCtrl {
3032 DECLARE_ABSTRACT_CLASS(wxPyListCtrl)
3033 public:
3034 wxPyListCtrl() : wxListCtrl() {}
3035 wxPyListCtrl(wxWindow* parent, wxWindowID id,
3036 const wxPoint& pos,
3037 const wxSize& size,
3038 long style,
3039 const wxValidator& validator,
3040 const wxString& name) :
3041 wxListCtrl(parent, id, pos, size, style, validator, name) {}
3042
3043 bool Create(wxWindow* parent, wxWindowID id,
3044 const wxPoint& pos,
3045 const wxSize& size,
3046 long style,
3047 const wxValidator& validator,
3048 const wxString& name) {
3049 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
3050 }
3051
3052 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
3053 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
3054
3055 // use the virtual version to avoid a confusing assert in the base class
3056 DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage);
3057 DEC_PYCALLBACK_INT_LONGLONG(OnGetItemColumnImage);
3058
3059 PYPRIVATE;
3060 };
3061
3062 IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
3063
3064 IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
3065 IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
3066 IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage);
3067 IMP_PYCALLBACK_INT_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemColumnImage);
3068
3069
3070 SWIGINTERN wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
3071 wxListItem item;
3072 item.SetMask( wxLIST_MASK_STATE |
3073 wxLIST_MASK_TEXT |
3074 wxLIST_MASK_IMAGE |
3075 wxLIST_MASK_DATA |
3076 wxLIST_SET_ITEM |
3077 wxLIST_MASK_WIDTH |
3078 wxLIST_MASK_FORMAT
3079 );
3080 if (self->GetColumn(col, item))
3081 return new wxListItem(item);
3082 else
3083 return NULL;
3084 }
3085 SWIGINTERN wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col=0){
3086 wxListItem* info = new wxListItem;
3087 info->m_itemId = itemId;
3088 info->m_col = col;
3089 info->m_mask = 0xFFFF;
3090 self->GetItem(*info);
3091 return info;
3092 }
3093 SWIGINTERN wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
3094 wxPoint pos;
3095 self->GetItemPosition(item, pos);
3096 return pos;
3097 }
3098 SWIGINTERN wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code=wxLIST_RECT_BOUNDS){
3099 wxRect rect;
3100 self->GetItemRect(item, rect, code);
3101 return rect;
3102 }
3103 SWIGINTERN bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
3104 if (!PyCallable_Check(func))
3105 return false;
3106 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
3107 }
3108 SWIGINTERN wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
3109
3110
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_Pulse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7150 PyObject *resultobj = 0;
7151 wxGauge *arg1 = (wxGauge *) 0 ;
7152 void *argp1 = 0 ;
7153 int res1 = 0 ;
7154 PyObject *swig_obj[1] ;
7155
7156 if (!args) SWIG_fail;
7157 swig_obj[0] = args;
7158 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7159 if (!SWIG_IsOK(res1)) {
7160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Pulse" "', expected argument " "1"" of type '" "wxGauge *""'");
7161 }
7162 arg1 = reinterpret_cast< wxGauge * >(argp1);
7163 {
7164 PyThreadState* __tstate = wxPyBeginAllowThreads();
7165 (arg1)->Pulse();
7166 wxPyEndAllowThreads(__tstate);
7167 if (PyErr_Occurred()) SWIG_fail;
7168 }
7169 resultobj = SWIG_Py_Void();
7170 return resultobj;
7171 fail:
7172 return NULL;
7173 }
7174
7175
7176 SWIGINTERN PyObject *_wrap_Gauge_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7177 PyObject *resultobj = 0;
7178 wxGauge *arg1 = (wxGauge *) 0 ;
7179 bool result;
7180 void *argp1 = 0 ;
7181 int res1 = 0 ;
7182 PyObject *swig_obj[1] ;
7183
7184 if (!args) SWIG_fail;
7185 swig_obj[0] = args;
7186 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7187 if (!SWIG_IsOK(res1)) {
7188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_IsVertical" "', expected argument " "1"" of type '" "wxGauge const *""'");
7189 }
7190 arg1 = reinterpret_cast< wxGauge * >(argp1);
7191 {
7192 PyThreadState* __tstate = wxPyBeginAllowThreads();
7193 result = (bool)((wxGauge const *)arg1)->IsVertical();
7194 wxPyEndAllowThreads(__tstate);
7195 if (PyErr_Occurred()) SWIG_fail;
7196 }
7197 {
7198 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7199 }
7200 return resultobj;
7201 fail:
7202 return NULL;
7203 }
7204
7205
7206 SWIGINTERN PyObject *_wrap_Gauge_SetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7207 PyObject *resultobj = 0;
7208 wxGauge *arg1 = (wxGauge *) 0 ;
7209 int arg2 ;
7210 void *argp1 = 0 ;
7211 int res1 = 0 ;
7212 int val2 ;
7213 int ecode2 = 0 ;
7214 PyObject * obj0 = 0 ;
7215 PyObject * obj1 = 0 ;
7216 char * kwnames[] = {
7217 (char *) "self",(char *) "w", NULL
7218 };
7219
7220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7221 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7222 if (!SWIG_IsOK(res1)) {
7223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetShadowWidth" "', expected argument " "1"" of type '" "wxGauge *""'");
7224 }
7225 arg1 = reinterpret_cast< wxGauge * >(argp1);
7226 ecode2 = SWIG_AsVal_int(obj1, &val2);
7227 if (!SWIG_IsOK(ecode2)) {
7228 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetShadowWidth" "', expected argument " "2"" of type '" "int""'");
7229 }
7230 arg2 = static_cast< int >(val2);
7231 {
7232 PyThreadState* __tstate = wxPyBeginAllowThreads();
7233 (arg1)->SetShadowWidth(arg2);
7234 wxPyEndAllowThreads(__tstate);
7235 if (PyErr_Occurred()) SWIG_fail;
7236 }
7237 resultobj = SWIG_Py_Void();
7238 return resultobj;
7239 fail:
7240 return NULL;
7241 }
7242
7243
7244 SWIGINTERN PyObject *_wrap_Gauge_GetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7245 PyObject *resultobj = 0;
7246 wxGauge *arg1 = (wxGauge *) 0 ;
7247 int result;
7248 void *argp1 = 0 ;
7249 int res1 = 0 ;
7250 PyObject *swig_obj[1] ;
7251
7252 if (!args) SWIG_fail;
7253 swig_obj[0] = args;
7254 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7255 if (!SWIG_IsOK(res1)) {
7256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetShadowWidth" "', expected argument " "1"" of type '" "wxGauge const *""'");
7257 }
7258 arg1 = reinterpret_cast< wxGauge * >(argp1);
7259 {
7260 PyThreadState* __tstate = wxPyBeginAllowThreads();
7261 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
7262 wxPyEndAllowThreads(__tstate);
7263 if (PyErr_Occurred()) SWIG_fail;
7264 }
7265 resultobj = SWIG_From_int(static_cast< int >(result));
7266 return resultobj;
7267 fail:
7268 return NULL;
7269 }
7270
7271
7272 SWIGINTERN PyObject *_wrap_Gauge_SetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7273 PyObject *resultobj = 0;
7274 wxGauge *arg1 = (wxGauge *) 0 ;
7275 int arg2 ;
7276 void *argp1 = 0 ;
7277 int res1 = 0 ;
7278 int val2 ;
7279 int ecode2 = 0 ;
7280 PyObject * obj0 = 0 ;
7281 PyObject * obj1 = 0 ;
7282 char * kwnames[] = {
7283 (char *) "self",(char *) "w", NULL
7284 };
7285
7286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) SWIG_fail;
7287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7288 if (!SWIG_IsOK(res1)) {
7289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetBezelFace" "', expected argument " "1"" of type '" "wxGauge *""'");
7290 }
7291 arg1 = reinterpret_cast< wxGauge * >(argp1);
7292 ecode2 = SWIG_AsVal_int(obj1, &val2);
7293 if (!SWIG_IsOK(ecode2)) {
7294 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetBezelFace" "', expected argument " "2"" of type '" "int""'");
7295 }
7296 arg2 = static_cast< int >(val2);
7297 {
7298 PyThreadState* __tstate = wxPyBeginAllowThreads();
7299 (arg1)->SetBezelFace(arg2);
7300 wxPyEndAllowThreads(__tstate);
7301 if (PyErr_Occurred()) SWIG_fail;
7302 }
7303 resultobj = SWIG_Py_Void();
7304 return resultobj;
7305 fail:
7306 return NULL;
7307 }
7308
7309
7310 SWIGINTERN PyObject *_wrap_Gauge_GetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7311 PyObject *resultobj = 0;
7312 wxGauge *arg1 = (wxGauge *) 0 ;
7313 int result;
7314 void *argp1 = 0 ;
7315 int res1 = 0 ;
7316 PyObject *swig_obj[1] ;
7317
7318 if (!args) SWIG_fail;
7319 swig_obj[0] = args;
7320 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7321 if (!SWIG_IsOK(res1)) {
7322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetBezelFace" "', expected argument " "1"" of type '" "wxGauge const *""'");
7323 }
7324 arg1 = reinterpret_cast< wxGauge * >(argp1);
7325 {
7326 PyThreadState* __tstate = wxPyBeginAllowThreads();
7327 result = (int)((wxGauge const *)arg1)->GetBezelFace();
7328 wxPyEndAllowThreads(__tstate);
7329 if (PyErr_Occurred()) SWIG_fail;
7330 }
7331 resultobj = SWIG_From_int(static_cast< int >(result));
7332 return resultobj;
7333 fail:
7334 return NULL;
7335 }
7336
7337
7338 SWIGINTERN PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7339 PyObject *resultobj = 0;
7340 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7341 SwigValueWrapper<wxVisualAttributes > result;
7342 int val1 ;
7343 int ecode1 = 0 ;
7344 PyObject * obj0 = 0 ;
7345 char * kwnames[] = {
7346 (char *) "variant", NULL
7347 };
7348
7349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7350 if (obj0) {
7351 ecode1 = SWIG_AsVal_int(obj0, &val1);
7352 if (!SWIG_IsOK(ecode1)) {
7353 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Gauge_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7354 }
7355 arg1 = static_cast< wxWindowVariant >(val1);
7356 }
7357 {
7358 if (!wxPyCheckForApp()) SWIG_fail;
7359 PyThreadState* __tstate = wxPyBeginAllowThreads();
7360 result = wxGauge::GetClassDefaultAttributes(arg1);
7361 wxPyEndAllowThreads(__tstate);
7362 if (PyErr_Occurred()) SWIG_fail;
7363 }
7364 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7365 return resultobj;
7366 fail:
7367 return NULL;
7368 }
7369
7370
7371 SWIGINTERN PyObject *Gauge_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7372 PyObject *obj;
7373 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7374 SWIG_TypeNewClientData(SWIGTYPE_p_wxGauge, SWIG_NewClientData(obj));
7375 return SWIG_Py_Void();
7376 }
7377
7378 SWIGINTERN PyObject *Gauge_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7379 return SWIG_Python_InitShadowInstance(args);
7380 }
7381
7382 SWIGINTERN int StaticBitmapNameStr_set(PyObject *) {
7383 SWIG_Error(SWIG_AttributeError,"Variable StaticBitmapNameStr is read-only.");
7384 return 1;
7385 }
7386
7387
7388 SWIGINTERN PyObject *StaticBitmapNameStr_get(void) {
7389 PyObject *pyobj = 0;
7390
7391 {
7392 #if wxUSE_UNICODE
7393 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7394 #else
7395 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7396 #endif
7397 }
7398 return pyobj;
7399 }
7400
7401
7402 SWIGINTERN int StaticBoxNameStr_set(PyObject *) {
7403 SWIG_Error(SWIG_AttributeError,"Variable StaticBoxNameStr is read-only.");
7404 return 1;
7405 }
7406
7407
7408 SWIGINTERN PyObject *StaticBoxNameStr_get(void) {
7409 PyObject *pyobj = 0;
7410
7411 {
7412 #if wxUSE_UNICODE
7413 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7414 #else
7415 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7416 #endif
7417 }
7418 return pyobj;
7419 }
7420
7421
7422 SWIGINTERN int StaticTextNameStr_set(PyObject *) {
7423 SWIG_Error(SWIG_AttributeError,"Variable StaticTextNameStr is read-only.");
7424 return 1;
7425 }
7426
7427
7428 SWIGINTERN PyObject *StaticTextNameStr_get(void) {
7429 PyObject *pyobj = 0;
7430
7431 {
7432 #if wxUSE_UNICODE
7433 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7434 #else
7435 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7436 #endif
7437 }
7438 return pyobj;
7439 }
7440
7441
7442 SWIGINTERN PyObject *_wrap_new_StaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7443 PyObject *resultobj = 0;
7444 wxWindow *arg1 = (wxWindow *) 0 ;
7445 int arg2 = (int) -1 ;
7446 wxString const &arg3_defvalue = wxPyEmptyString ;
7447 wxString *arg3 = (wxString *) &arg3_defvalue ;
7448 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7449 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7450 wxSize const &arg5_defvalue = wxDefaultSize ;
7451 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7452 long arg6 = (long) 0 ;
7453 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
7454 wxString *arg7 = (wxString *) &arg7_defvalue ;
7455 wxStaticBox *result = 0 ;
7456 void *argp1 = 0 ;
7457 int res1 = 0 ;
7458 int val2 ;
7459 int ecode2 = 0 ;
7460 bool temp3 = false ;
7461 wxPoint temp4 ;
7462 wxSize temp5 ;
7463 long val6 ;
7464 int ecode6 = 0 ;
7465 bool temp7 = false ;
7466 PyObject * obj0 = 0 ;
7467 PyObject * obj1 = 0 ;
7468 PyObject * obj2 = 0 ;
7469 PyObject * obj3 = 0 ;
7470 PyObject * obj4 = 0 ;
7471 PyObject * obj5 = 0 ;
7472 PyObject * obj6 = 0 ;
7473 char * kwnames[] = {
7474 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7475 };
7476
7477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7479 if (!SWIG_IsOK(res1)) {
7480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBox" "', expected argument " "1"" of type '" "wxWindow *""'");
7481 }
7482 arg1 = reinterpret_cast< wxWindow * >(argp1);
7483 if (obj1) {
7484 ecode2 = SWIG_AsVal_int(obj1, &val2);
7485 if (!SWIG_IsOK(ecode2)) {
7486 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBox" "', expected argument " "2"" of type '" "int""'");
7487 }
7488 arg2 = static_cast< int >(val2);
7489 }
7490 if (obj2) {
7491 {
7492 arg3 = wxString_in_helper(obj2);
7493 if (arg3 == NULL) SWIG_fail;
7494 temp3 = true;
7495 }
7496 }
7497 if (obj3) {
7498 {
7499 arg4 = &temp4;
7500 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7501 }
7502 }
7503 if (obj4) {
7504 {
7505 arg5 = &temp5;
7506 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7507 }
7508 }
7509 if (obj5) {
7510 ecode6 = SWIG_AsVal_long(obj5, &val6);
7511 if (!SWIG_IsOK(ecode6)) {
7512 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBox" "', expected argument " "6"" of type '" "long""'");
7513 }
7514 arg6 = static_cast< long >(val6);
7515 }
7516 if (obj6) {
7517 {
7518 arg7 = wxString_in_helper(obj6);
7519 if (arg7 == NULL) SWIG_fail;
7520 temp7 = true;
7521 }
7522 }
7523 {
7524 if (!wxPyCheckForApp()) SWIG_fail;
7525 PyThreadState* __tstate = wxPyBeginAllowThreads();
7526 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7527 wxPyEndAllowThreads(__tstate);
7528 if (PyErr_Occurred()) SWIG_fail;
7529 }
7530 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_NEW | 0 );
7531 {
7532 if (temp3)
7533 delete arg3;
7534 }
7535 {
7536 if (temp7)
7537 delete arg7;
7538 }
7539 return resultobj;
7540 fail:
7541 {
7542 if (temp3)
7543 delete arg3;
7544 }
7545 {
7546 if (temp7)
7547 delete arg7;
7548 }
7549 return NULL;
7550 }
7551
7552
7553 SWIGINTERN PyObject *_wrap_new_PreStaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7554 PyObject *resultobj = 0;
7555 wxStaticBox *result = 0 ;
7556
7557 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBox",0,0,0)) SWIG_fail;
7558 {
7559 if (!wxPyCheckForApp()) SWIG_fail;
7560 PyThreadState* __tstate = wxPyBeginAllowThreads();
7561 result = (wxStaticBox *)new wxStaticBox();
7562 wxPyEndAllowThreads(__tstate);
7563 if (PyErr_Occurred()) SWIG_fail;
7564 }
7565 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_OWN | 0 );
7566 return resultobj;
7567 fail:
7568 return NULL;
7569 }
7570
7571
7572 SWIGINTERN PyObject *_wrap_StaticBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7573 PyObject *resultobj = 0;
7574 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
7575 wxWindow *arg2 = (wxWindow *) 0 ;
7576 int arg3 = (int) -1 ;
7577 wxString const &arg4_defvalue = wxPyEmptyString ;
7578 wxString *arg4 = (wxString *) &arg4_defvalue ;
7579 wxPoint const &arg5_defvalue = wxDefaultPosition ;
7580 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
7581 wxSize const &arg6_defvalue = wxDefaultSize ;
7582 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
7583 long arg7 = (long) 0 ;
7584 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
7585 wxString *arg8 = (wxString *) &arg8_defvalue ;
7586 bool result;
7587 void *argp1 = 0 ;
7588 int res1 = 0 ;
7589 void *argp2 = 0 ;
7590 int res2 = 0 ;
7591 int val3 ;
7592 int ecode3 = 0 ;
7593 bool temp4 = false ;
7594 wxPoint temp5 ;
7595 wxSize temp6 ;
7596 long val7 ;
7597 int ecode7 = 0 ;
7598 bool temp8 = false ;
7599 PyObject * obj0 = 0 ;
7600 PyObject * obj1 = 0 ;
7601 PyObject * obj2 = 0 ;
7602 PyObject * obj3 = 0 ;
7603 PyObject * obj4 = 0 ;
7604 PyObject * obj5 = 0 ;
7605 PyObject * obj6 = 0 ;
7606 PyObject * obj7 = 0 ;
7607 char * kwnames[] = {
7608 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7609 };
7610
7611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
7612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBox, 0 | 0 );
7613 if (!SWIG_IsOK(res1)) {
7614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBox_Create" "', expected argument " "1"" of type '" "wxStaticBox *""'");
7615 }
7616 arg1 = reinterpret_cast< wxStaticBox * >(argp1);
7617 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7618 if (!SWIG_IsOK(res2)) {
7619 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7620 }
7621 arg2 = reinterpret_cast< wxWindow * >(argp2);
7622 if (obj2) {
7623 ecode3 = SWIG_AsVal_int(obj2, &val3);
7624 if (!SWIG_IsOK(ecode3)) {
7625 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBox_Create" "', expected argument " "3"" of type '" "int""'");
7626 }
7627 arg3 = static_cast< int >(val3);
7628 }
7629 if (obj3) {
7630 {
7631 arg4 = wxString_in_helper(obj3);
7632 if (arg4 == NULL) SWIG_fail;
7633 temp4 = true;
7634 }
7635 }
7636 if (obj4) {
7637 {
7638 arg5 = &temp5;
7639 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
7640 }
7641 }
7642 if (obj5) {
7643 {
7644 arg6 = &temp6;
7645 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
7646 }
7647 }
7648 if (obj6) {
7649 ecode7 = SWIG_AsVal_long(obj6, &val7);
7650 if (!SWIG_IsOK(ecode7)) {
7651 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBox_Create" "', expected argument " "7"" of type '" "long""'");
7652 }
7653 arg7 = static_cast< long >(val7);
7654 }
7655 if (obj7) {
7656 {
7657 arg8 = wxString_in_helper(obj7);
7658 if (arg8 == NULL) SWIG_fail;
7659 temp8 = true;
7660 }
7661 }
7662 {
7663 PyThreadState* __tstate = wxPyBeginAllowThreads();
7664 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
7665 wxPyEndAllowThreads(__tstate);
7666 if (PyErr_Occurred()) SWIG_fail;
7667 }
7668 {
7669 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7670 }
7671 {
7672 if (temp4)
7673 delete arg4;
7674 }
7675 {
7676 if (temp8)
7677 delete arg8;
7678 }
7679 return resultobj;
7680 fail:
7681 {
7682 if (temp4)
7683 delete arg4;
7684 }
7685 {
7686 if (temp8)
7687 delete arg8;
7688 }
7689 return NULL;
7690 }
7691
7692
7693 SWIGINTERN PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7694 PyObject *resultobj = 0;
7695 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7696 SwigValueWrapper<wxVisualAttributes > result;
7697 int val1 ;
7698 int ecode1 = 0 ;
7699 PyObject * obj0 = 0 ;
7700 char * kwnames[] = {
7701 (char *) "variant", NULL
7702 };
7703
7704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7705 if (obj0) {
7706 ecode1 = SWIG_AsVal_int(obj0, &val1);
7707 if (!SWIG_IsOK(ecode1)) {
7708 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7709 }
7710 arg1 = static_cast< wxWindowVariant >(val1);
7711 }
7712 {
7713 if (!wxPyCheckForApp()) SWIG_fail;
7714 PyThreadState* __tstate = wxPyBeginAllowThreads();
7715 result = wxStaticBox::GetClassDefaultAttributes(arg1);
7716 wxPyEndAllowThreads(__tstate);
7717 if (PyErr_Occurred()) SWIG_fail;
7718 }
7719 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7720 return resultobj;
7721 fail:
7722 return NULL;
7723 }
7724
7725
7726 SWIGINTERN PyObject *StaticBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7727 PyObject *obj;
7728 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7729 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBox, SWIG_NewClientData(obj));
7730 return SWIG_Py_Void();
7731 }
7732
7733 SWIGINTERN PyObject *StaticBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7734 return SWIG_Python_InitShadowInstance(args);
7735 }
7736
7737 SWIGINTERN PyObject *_wrap_new_StaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7738 PyObject *resultobj = 0;
7739 wxWindow *arg1 = (wxWindow *) 0 ;
7740 int arg2 = (int) -1 ;
7741 wxPoint const &arg3_defvalue = wxDefaultPosition ;
7742 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
7743 wxSize const &arg4_defvalue = wxDefaultSize ;
7744 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
7745 long arg5 = (long) wxLI_HORIZONTAL ;
7746 wxString const &arg6_defvalue = wxPyStaticTextNameStr ;
7747 wxString *arg6 = (wxString *) &arg6_defvalue ;
7748 wxStaticLine *result = 0 ;
7749 void *argp1 = 0 ;
7750 int res1 = 0 ;
7751 int val2 ;
7752 int ecode2 = 0 ;
7753 wxPoint temp3 ;
7754 wxSize temp4 ;
7755 long val5 ;
7756 int ecode5 = 0 ;
7757 bool temp6 = false ;
7758 PyObject * obj0 = 0 ;
7759 PyObject * obj1 = 0 ;
7760 PyObject * obj2 = 0 ;
7761 PyObject * obj3 = 0 ;
7762 PyObject * obj4 = 0 ;
7763 PyObject * obj5 = 0 ;
7764 char * kwnames[] = {
7765 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7766 };
7767
7768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
7769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7770 if (!SWIG_IsOK(res1)) {
7771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticLine" "', expected argument " "1"" of type '" "wxWindow *""'");
7772 }
7773 arg1 = reinterpret_cast< wxWindow * >(argp1);
7774 if (obj1) {
7775 ecode2 = SWIG_AsVal_int(obj1, &val2);
7776 if (!SWIG_IsOK(ecode2)) {
7777 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticLine" "', expected argument " "2"" of type '" "int""'");
7778 }
7779 arg2 = static_cast< int >(val2);
7780 }
7781 if (obj2) {
7782 {
7783 arg3 = &temp3;
7784 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
7785 }
7786 }
7787 if (obj3) {
7788 {
7789 arg4 = &temp4;
7790 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
7791 }
7792 }
7793 if (obj4) {
7794 ecode5 = SWIG_AsVal_long(obj4, &val5);
7795 if (!SWIG_IsOK(ecode5)) {
7796 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_StaticLine" "', expected argument " "5"" of type '" "long""'");
7797 }
7798 arg5 = static_cast< long >(val5);
7799 }
7800 if (obj5) {
7801 {
7802 arg6 = wxString_in_helper(obj5);
7803 if (arg6 == NULL) SWIG_fail;
7804 temp6 = true;
7805 }
7806 }
7807 {
7808 if (!wxPyCheckForApp()) SWIG_fail;
7809 PyThreadState* __tstate = wxPyBeginAllowThreads();
7810 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
7811 wxPyEndAllowThreads(__tstate);
7812 if (PyErr_Occurred()) SWIG_fail;
7813 }
7814 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_NEW | 0 );
7815 {
7816 if (temp6)
7817 delete arg6;
7818 }
7819 return resultobj;
7820 fail:
7821 {
7822 if (temp6)
7823 delete arg6;
7824 }
7825 return NULL;
7826 }
7827
7828
7829 SWIGINTERN PyObject *_wrap_new_PreStaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7830 PyObject *resultobj = 0;
7831 wxStaticLine *result = 0 ;
7832
7833 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticLine",0,0,0)) SWIG_fail;
7834 {
7835 if (!wxPyCheckForApp()) SWIG_fail;
7836 PyThreadState* __tstate = wxPyBeginAllowThreads();
7837 result = (wxStaticLine *)new wxStaticLine();
7838 wxPyEndAllowThreads(__tstate);
7839 if (PyErr_Occurred()) SWIG_fail;
7840 }
7841 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_OWN | 0 );
7842 return resultobj;
7843 fail:
7844 return NULL;
7845 }
7846
7847
7848 SWIGINTERN PyObject *_wrap_StaticLine_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7849 PyObject *resultobj = 0;
7850 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7851 wxWindow *arg2 = (wxWindow *) 0 ;
7852 int arg3 = (int) -1 ;
7853 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7854 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7855 wxSize const &arg5_defvalue = wxDefaultSize ;
7856 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7857 long arg6 = (long) wxLI_HORIZONTAL ;
7858 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
7859 wxString *arg7 = (wxString *) &arg7_defvalue ;
7860 bool result;
7861 void *argp1 = 0 ;
7862 int res1 = 0 ;
7863 void *argp2 = 0 ;
7864 int res2 = 0 ;
7865 int val3 ;
7866 int ecode3 = 0 ;
7867 wxPoint temp4 ;
7868 wxSize temp5 ;
7869 long val6 ;
7870 int ecode6 = 0 ;
7871 bool temp7 = false ;
7872 PyObject * obj0 = 0 ;
7873 PyObject * obj1 = 0 ;
7874 PyObject * obj2 = 0 ;
7875 PyObject * obj3 = 0 ;
7876 PyObject * obj4 = 0 ;
7877 PyObject * obj5 = 0 ;
7878 PyObject * obj6 = 0 ;
7879 char * kwnames[] = {
7880 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7881 };
7882
7883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7885 if (!SWIG_IsOK(res1)) {
7886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_Create" "', expected argument " "1"" of type '" "wxStaticLine *""'");
7887 }
7888 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7889 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7890 if (!SWIG_IsOK(res2)) {
7891 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticLine_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7892 }
7893 arg2 = reinterpret_cast< wxWindow * >(argp2);
7894 if (obj2) {
7895 ecode3 = SWIG_AsVal_int(obj2, &val3);
7896 if (!SWIG_IsOK(ecode3)) {
7897 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticLine_Create" "', expected argument " "3"" of type '" "int""'");
7898 }
7899 arg3 = static_cast< int >(val3);
7900 }
7901 if (obj3) {
7902 {
7903 arg4 = &temp4;
7904 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7905 }
7906 }
7907 if (obj4) {
7908 {
7909 arg5 = &temp5;
7910 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7911 }
7912 }
7913 if (obj5) {
7914 ecode6 = SWIG_AsVal_long(obj5, &val6);
7915 if (!SWIG_IsOK(ecode6)) {
7916 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "StaticLine_Create" "', expected argument " "6"" of type '" "long""'");
7917 }
7918 arg6 = static_cast< long >(val6);
7919 }
7920 if (obj6) {
7921 {
7922 arg7 = wxString_in_helper(obj6);
7923 if (arg7 == NULL) SWIG_fail;
7924 temp7 = true;
7925 }
7926 }
7927 {
7928 PyThreadState* __tstate = wxPyBeginAllowThreads();
7929 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7930 wxPyEndAllowThreads(__tstate);
7931 if (PyErr_Occurred()) SWIG_fail;
7932 }
7933 {
7934 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7935 }
7936 {
7937 if (temp7)
7938 delete arg7;
7939 }
7940 return resultobj;
7941 fail:
7942 {
7943 if (temp7)
7944 delete arg7;
7945 }
7946 return NULL;
7947 }
7948
7949
7950 SWIGINTERN PyObject *_wrap_StaticLine_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7951 PyObject *resultobj = 0;
7952 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7953 bool result;
7954 void *argp1 = 0 ;
7955 int res1 = 0 ;
7956 PyObject *swig_obj[1] ;
7957
7958 if (!args) SWIG_fail;
7959 swig_obj[0] = args;
7960 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7961 if (!SWIG_IsOK(res1)) {
7962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_IsVertical" "', expected argument " "1"" of type '" "wxStaticLine const *""'");
7963 }
7964 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7965 {
7966 PyThreadState* __tstate = wxPyBeginAllowThreads();
7967 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
7968 wxPyEndAllowThreads(__tstate);
7969 if (PyErr_Occurred()) SWIG_fail;
7970 }
7971 {
7972 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7973 }
7974 return resultobj;
7975 fail:
7976 return NULL;
7977 }
7978
7979
7980 SWIGINTERN PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7981 PyObject *resultobj = 0;
7982 int result;
7983
7984 if (!SWIG_Python_UnpackTuple(args,"StaticLine_GetDefaultSize",0,0,0)) SWIG_fail;
7985 {
7986 PyThreadState* __tstate = wxPyBeginAllowThreads();
7987 result = (int)wxStaticLine::GetDefaultSize();
7988 wxPyEndAllowThreads(__tstate);
7989 if (PyErr_Occurred()) SWIG_fail;
7990 }
7991 resultobj = SWIG_From_int(static_cast< int >(result));
7992 return resultobj;
7993 fail:
7994 return NULL;
7995 }
7996
7997
7998 SWIGINTERN PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7999 PyObject *resultobj = 0;
8000 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8001 SwigValueWrapper<wxVisualAttributes > result;
8002 int val1 ;
8003 int ecode1 = 0 ;
8004 PyObject * obj0 = 0 ;
8005 char * kwnames[] = {
8006 (char *) "variant", NULL
8007 };
8008
8009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8010 if (obj0) {
8011 ecode1 = SWIG_AsVal_int(obj0, &val1);
8012 if (!SWIG_IsOK(ecode1)) {
8013 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticLine_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8014 }
8015 arg1 = static_cast< wxWindowVariant >(val1);
8016 }
8017 {
8018 if (!wxPyCheckForApp()) SWIG_fail;
8019 PyThreadState* __tstate = wxPyBeginAllowThreads();
8020 result = wxStaticLine::GetClassDefaultAttributes(arg1);
8021 wxPyEndAllowThreads(__tstate);
8022 if (PyErr_Occurred()) SWIG_fail;
8023 }
8024 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8025 return resultobj;
8026 fail:
8027 return NULL;
8028 }
8029
8030
8031 SWIGINTERN PyObject *StaticLine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8032 PyObject *obj;
8033 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8034 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticLine, SWIG_NewClientData(obj));
8035 return SWIG_Py_Void();
8036 }
8037
8038 SWIGINTERN PyObject *StaticLine_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8039 return SWIG_Python_InitShadowInstance(args);
8040 }
8041
8042 SWIGINTERN PyObject *_wrap_new_StaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8043 PyObject *resultobj = 0;
8044 wxWindow *arg1 = (wxWindow *) 0 ;
8045 int arg2 = (int) -1 ;
8046 wxString const &arg3_defvalue = wxPyEmptyString ;
8047 wxString *arg3 = (wxString *) &arg3_defvalue ;
8048 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8049 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8050 wxSize const &arg5_defvalue = wxDefaultSize ;
8051 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8052 long arg6 = (long) 0 ;
8053 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
8054 wxString *arg7 = (wxString *) &arg7_defvalue ;
8055 wxStaticText *result = 0 ;
8056 void *argp1 = 0 ;
8057 int res1 = 0 ;
8058 int val2 ;
8059 int ecode2 = 0 ;
8060 bool temp3 = false ;
8061 wxPoint temp4 ;
8062 wxSize temp5 ;
8063 long val6 ;
8064 int ecode6 = 0 ;
8065 bool temp7 = false ;
8066 PyObject * obj0 = 0 ;
8067 PyObject * obj1 = 0 ;
8068 PyObject * obj2 = 0 ;
8069 PyObject * obj3 = 0 ;
8070 PyObject * obj4 = 0 ;
8071 PyObject * obj5 = 0 ;
8072 PyObject * obj6 = 0 ;
8073 char * kwnames[] = {
8074 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8075 };
8076
8077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8079 if (!SWIG_IsOK(res1)) {
8080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticText" "', expected argument " "1"" of type '" "wxWindow *""'");
8081 }
8082 arg1 = reinterpret_cast< wxWindow * >(argp1);
8083 if (obj1) {
8084 ecode2 = SWIG_AsVal_int(obj1, &val2);
8085 if (!SWIG_IsOK(ecode2)) {
8086 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticText" "', expected argument " "2"" of type '" "int""'");
8087 }
8088 arg2 = static_cast< int >(val2);
8089 }
8090 if (obj2) {
8091 {
8092 arg3 = wxString_in_helper(obj2);
8093 if (arg3 == NULL) SWIG_fail;
8094 temp3 = true;
8095 }
8096 }
8097 if (obj3) {
8098 {
8099 arg4 = &temp4;
8100 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8101 }
8102 }
8103 if (obj4) {
8104 {
8105 arg5 = &temp5;
8106 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8107 }
8108 }
8109 if (obj5) {
8110 ecode6 = SWIG_AsVal_long(obj5, &val6);
8111 if (!SWIG_IsOK(ecode6)) {
8112 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticText" "', expected argument " "6"" of type '" "long""'");
8113 }
8114 arg6 = static_cast< long >(val6);
8115 }
8116 if (obj6) {
8117 {
8118 arg7 = wxString_in_helper(obj6);
8119 if (arg7 == NULL) SWIG_fail;
8120 temp7 = true;
8121 }
8122 }
8123 {
8124 if (!wxPyCheckForApp()) SWIG_fail;
8125 PyThreadState* __tstate = wxPyBeginAllowThreads();
8126 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8127 wxPyEndAllowThreads(__tstate);
8128 if (PyErr_Occurred()) SWIG_fail;
8129 }
8130 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_NEW | 0 );
8131 {
8132 if (temp3)
8133 delete arg3;
8134 }
8135 {
8136 if (temp7)
8137 delete arg7;
8138 }
8139 return resultobj;
8140 fail:
8141 {
8142 if (temp3)
8143 delete arg3;
8144 }
8145 {
8146 if (temp7)
8147 delete arg7;
8148 }
8149 return NULL;
8150 }
8151
8152
8153 SWIGINTERN PyObject *_wrap_new_PreStaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8154 PyObject *resultobj = 0;
8155 wxStaticText *result = 0 ;
8156
8157 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticText",0,0,0)) SWIG_fail;
8158 {
8159 if (!wxPyCheckForApp()) SWIG_fail;
8160 PyThreadState* __tstate = wxPyBeginAllowThreads();
8161 result = (wxStaticText *)new wxStaticText();
8162 wxPyEndAllowThreads(__tstate);
8163 if (PyErr_Occurred()) SWIG_fail;
8164 }
8165 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_OWN | 0 );
8166 return resultobj;
8167 fail:
8168 return NULL;
8169 }
8170
8171
8172 SWIGINTERN PyObject *_wrap_StaticText_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8173 PyObject *resultobj = 0;
8174 wxStaticText *arg1 = (wxStaticText *) 0 ;
8175 wxWindow *arg2 = (wxWindow *) 0 ;
8176 int arg3 = (int) -1 ;
8177 wxString const &arg4_defvalue = wxPyEmptyString ;
8178 wxString *arg4 = (wxString *) &arg4_defvalue ;
8179 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8180 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8181 wxSize const &arg6_defvalue = wxDefaultSize ;
8182 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8183 long arg7 = (long) 0 ;
8184 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
8185 wxString *arg8 = (wxString *) &arg8_defvalue ;
8186 bool result;
8187 void *argp1 = 0 ;
8188 int res1 = 0 ;
8189 void *argp2 = 0 ;
8190 int res2 = 0 ;
8191 int val3 ;
8192 int ecode3 = 0 ;
8193 bool temp4 = false ;
8194 wxPoint temp5 ;
8195 wxSize temp6 ;
8196 long val7 ;
8197 int ecode7 = 0 ;
8198 bool temp8 = false ;
8199 PyObject * obj0 = 0 ;
8200 PyObject * obj1 = 0 ;
8201 PyObject * obj2 = 0 ;
8202 PyObject * obj3 = 0 ;
8203 PyObject * obj4 = 0 ;
8204 PyObject * obj5 = 0 ;
8205 PyObject * obj6 = 0 ;
8206 PyObject * obj7 = 0 ;
8207 char * kwnames[] = {
8208 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8209 };
8210
8211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8213 if (!SWIG_IsOK(res1)) {
8214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Create" "', expected argument " "1"" of type '" "wxStaticText *""'");
8215 }
8216 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8217 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8218 if (!SWIG_IsOK(res2)) {
8219 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticText_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8220 }
8221 arg2 = reinterpret_cast< wxWindow * >(argp2);
8222 if (obj2) {
8223 ecode3 = SWIG_AsVal_int(obj2, &val3);
8224 if (!SWIG_IsOK(ecode3)) {
8225 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticText_Create" "', expected argument " "3"" of type '" "int""'");
8226 }
8227 arg3 = static_cast< int >(val3);
8228 }
8229 if (obj3) {
8230 {
8231 arg4 = wxString_in_helper(obj3);
8232 if (arg4 == NULL) SWIG_fail;
8233 temp4 = true;
8234 }
8235 }
8236 if (obj4) {
8237 {
8238 arg5 = &temp5;
8239 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8240 }
8241 }
8242 if (obj5) {
8243 {
8244 arg6 = &temp6;
8245 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8246 }
8247 }
8248 if (obj6) {
8249 ecode7 = SWIG_AsVal_long(obj6, &val7);
8250 if (!SWIG_IsOK(ecode7)) {
8251 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticText_Create" "', expected argument " "7"" of type '" "long""'");
8252 }
8253 arg7 = static_cast< long >(val7);
8254 }
8255 if (obj7) {
8256 {
8257 arg8 = wxString_in_helper(obj7);
8258 if (arg8 == NULL) SWIG_fail;
8259 temp8 = true;
8260 }
8261 }
8262 {
8263 PyThreadState* __tstate = wxPyBeginAllowThreads();
8264 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8265 wxPyEndAllowThreads(__tstate);
8266 if (PyErr_Occurred()) SWIG_fail;
8267 }
8268 {
8269 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8270 }
8271 {
8272 if (temp4)
8273 delete arg4;
8274 }
8275 {
8276 if (temp8)
8277 delete arg8;
8278 }
8279 return resultobj;
8280 fail:
8281 {
8282 if (temp4)
8283 delete arg4;
8284 }
8285 {
8286 if (temp8)
8287 delete arg8;
8288 }
8289 return NULL;
8290 }
8291
8292
8293 SWIGINTERN PyObject *_wrap_StaticText_Wrap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8294 PyObject *resultobj = 0;
8295 wxStaticText *arg1 = (wxStaticText *) 0 ;
8296 int arg2 ;
8297 void *argp1 = 0 ;
8298 int res1 = 0 ;
8299 int val2 ;
8300 int ecode2 = 0 ;
8301 PyObject * obj0 = 0 ;
8302 PyObject * obj1 = 0 ;
8303 char * kwnames[] = {
8304 (char *) "self",(char *) "width", NULL
8305 };
8306
8307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticText_Wrap",kwnames,&obj0,&obj1)) SWIG_fail;
8308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8309 if (!SWIG_IsOK(res1)) {
8310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Wrap" "', expected argument " "1"" of type '" "wxStaticText *""'");
8311 }
8312 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8313 ecode2 = SWIG_AsVal_int(obj1, &val2);
8314 if (!SWIG_IsOK(ecode2)) {
8315 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StaticText_Wrap" "', expected argument " "2"" of type '" "int""'");
8316 }
8317 arg2 = static_cast< int >(val2);
8318 {
8319 PyThreadState* __tstate = wxPyBeginAllowThreads();
8320 (arg1)->Wrap(arg2);
8321 wxPyEndAllowThreads(__tstate);
8322 if (PyErr_Occurred()) SWIG_fail;
8323 }
8324 resultobj = SWIG_Py_Void();
8325 return resultobj;
8326 fail:
8327 return NULL;
8328 }
8329
8330
8331 SWIGINTERN PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8332 PyObject *resultobj = 0;
8333 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8334 SwigValueWrapper<wxVisualAttributes > result;
8335 int val1 ;
8336 int ecode1 = 0 ;
8337 PyObject * obj0 = 0 ;
8338 char * kwnames[] = {
8339 (char *) "variant", NULL
8340 };
8341
8342 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8343 if (obj0) {
8344 ecode1 = SWIG_AsVal_int(obj0, &val1);
8345 if (!SWIG_IsOK(ecode1)) {
8346 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticText_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8347 }
8348 arg1 = static_cast< wxWindowVariant >(val1);
8349 }
8350 {
8351 if (!wxPyCheckForApp()) SWIG_fail;
8352 PyThreadState* __tstate = wxPyBeginAllowThreads();
8353 result = wxStaticText::GetClassDefaultAttributes(arg1);
8354 wxPyEndAllowThreads(__tstate);
8355 if (PyErr_Occurred()) SWIG_fail;
8356 }
8357 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8358 return resultobj;
8359 fail:
8360 return NULL;
8361 }
8362
8363
8364 SWIGINTERN PyObject *StaticText_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8365 PyObject *obj;
8366 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8367 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticText, SWIG_NewClientData(obj));
8368 return SWIG_Py_Void();
8369 }
8370
8371 SWIGINTERN PyObject *StaticText_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8372 return SWIG_Python_InitShadowInstance(args);
8373 }
8374
8375 SWIGINTERN PyObject *_wrap_new_StaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8376 PyObject *resultobj = 0;
8377 wxWindow *arg1 = (wxWindow *) 0 ;
8378 int arg2 = (int) -1 ;
8379 wxBitmap const &arg3_defvalue = wxNullBitmap ;
8380 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
8381 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8382 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8383 wxSize const &arg5_defvalue = wxDefaultSize ;
8384 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8385 long arg6 = (long) 0 ;
8386 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
8387 wxString *arg7 = (wxString *) &arg7_defvalue ;
8388 wxStaticBitmap *result = 0 ;
8389 void *argp1 = 0 ;
8390 int res1 = 0 ;
8391 int val2 ;
8392 int ecode2 = 0 ;
8393 void *argp3 = 0 ;
8394 int res3 = 0 ;
8395 wxPoint temp4 ;
8396 wxSize temp5 ;
8397 long val6 ;
8398 int ecode6 = 0 ;
8399 bool temp7 = false ;
8400 PyObject * obj0 = 0 ;
8401 PyObject * obj1 = 0 ;
8402 PyObject * obj2 = 0 ;
8403 PyObject * obj3 = 0 ;
8404 PyObject * obj4 = 0 ;
8405 PyObject * obj5 = 0 ;
8406 PyObject * obj6 = 0 ;
8407 char * kwnames[] = {
8408 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8409 };
8410
8411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8413 if (!SWIG_IsOK(res1)) {
8414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBitmap" "', expected argument " "1"" of type '" "wxWindow *""'");
8415 }
8416 arg1 = reinterpret_cast< wxWindow * >(argp1);
8417 if (obj1) {
8418 ecode2 = SWIG_AsVal_int(obj1, &val2);
8419 if (!SWIG_IsOK(ecode2)) {
8420 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBitmap" "', expected argument " "2"" of type '" "int""'");
8421 }
8422 arg2 = static_cast< int >(val2);
8423 }
8424 if (obj2) {
8425 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
8426 if (!SWIG_IsOK(res3)) {
8427 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8428 }
8429 if (!argp3) {
8430 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8431 }
8432 arg3 = reinterpret_cast< wxBitmap * >(argp3);
8433 }
8434 if (obj3) {
8435 {
8436 arg4 = &temp4;
8437 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8438 }
8439 }
8440 if (obj4) {
8441 {
8442 arg5 = &temp5;
8443 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8444 }
8445 }
8446 if (obj5) {
8447 ecode6 = SWIG_AsVal_long(obj5, &val6);
8448 if (!SWIG_IsOK(ecode6)) {
8449 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBitmap" "', expected argument " "6"" of type '" "long""'");
8450 }
8451 arg6 = static_cast< long >(val6);
8452 }
8453 if (obj6) {
8454 {
8455 arg7 = wxString_in_helper(obj6);
8456 if (arg7 == NULL) SWIG_fail;
8457 temp7 = true;
8458 }
8459 }
8460 {
8461 if (!wxPyCheckForApp()) SWIG_fail;
8462 PyThreadState* __tstate = wxPyBeginAllowThreads();
8463 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8464 wxPyEndAllowThreads(__tstate);
8465 if (PyErr_Occurred()) SWIG_fail;
8466 }
8467 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_NEW | 0 );
8468 {
8469 if (temp7)
8470 delete arg7;
8471 }
8472 return resultobj;
8473 fail:
8474 {
8475 if (temp7)
8476 delete arg7;
8477 }
8478 return NULL;
8479 }
8480
8481
8482 SWIGINTERN PyObject *_wrap_new_PreStaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8483 PyObject *resultobj = 0;
8484 wxStaticBitmap *result = 0 ;
8485
8486 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBitmap",0,0,0)) SWIG_fail;
8487 {
8488 if (!wxPyCheckForApp()) SWIG_fail;
8489 PyThreadState* __tstate = wxPyBeginAllowThreads();
8490 result = (wxStaticBitmap *)new wxStaticBitmap();
8491 wxPyEndAllowThreads(__tstate);
8492 if (PyErr_Occurred()) SWIG_fail;
8493 }
8494 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_OWN | 0 );
8495 return resultobj;
8496 fail:
8497 return NULL;
8498 }
8499
8500
8501 SWIGINTERN PyObject *_wrap_StaticBitmap_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8502 PyObject *resultobj = 0;
8503 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8504 wxWindow *arg2 = (wxWindow *) 0 ;
8505 int arg3 = (int) -1 ;
8506 wxBitmap const &arg4_defvalue = wxNullBitmap ;
8507 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
8508 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8509 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8510 wxSize const &arg6_defvalue = wxDefaultSize ;
8511 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8512 long arg7 = (long) 0 ;
8513 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
8514 wxString *arg8 = (wxString *) &arg8_defvalue ;
8515 bool result;
8516 void *argp1 = 0 ;
8517 int res1 = 0 ;
8518 void *argp2 = 0 ;
8519 int res2 = 0 ;
8520 int val3 ;
8521 int ecode3 = 0 ;
8522 void *argp4 = 0 ;
8523 int res4 = 0 ;
8524 wxPoint temp5 ;
8525 wxSize temp6 ;
8526 long val7 ;
8527 int ecode7 = 0 ;
8528 bool temp8 = false ;
8529 PyObject * obj0 = 0 ;
8530 PyObject * obj1 = 0 ;
8531 PyObject * obj2 = 0 ;
8532 PyObject * obj3 = 0 ;
8533 PyObject * obj4 = 0 ;
8534 PyObject * obj5 = 0 ;
8535 PyObject * obj6 = 0 ;
8536 PyObject * obj7 = 0 ;
8537 char * kwnames[] = {
8538 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8539 };
8540
8541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8542 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8543 if (!SWIG_IsOK(res1)) {
8544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_Create" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8545 }
8546 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8547 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8548 if (!SWIG_IsOK(res2)) {
8549 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8550 }
8551 arg2 = reinterpret_cast< wxWindow * >(argp2);
8552 if (obj2) {
8553 ecode3 = SWIG_AsVal_int(obj2, &val3);
8554 if (!SWIG_IsOK(ecode3)) {
8555 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBitmap_Create" "', expected argument " "3"" of type '" "int""'");
8556 }
8557 arg3 = static_cast< int >(val3);
8558 }
8559 if (obj3) {
8560 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
8561 if (!SWIG_IsOK(res4)) {
8562 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8563 }
8564 if (!argp4) {
8565 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8566 }
8567 arg4 = reinterpret_cast< wxBitmap * >(argp4);
8568 }
8569 if (obj4) {
8570 {
8571 arg5 = &temp5;
8572 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8573 }
8574 }
8575 if (obj5) {
8576 {
8577 arg6 = &temp6;
8578 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8579 }
8580 }
8581 if (obj6) {
8582 ecode7 = SWIG_AsVal_long(obj6, &val7);
8583 if (!SWIG_IsOK(ecode7)) {
8584 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBitmap_Create" "', expected argument " "7"" of type '" "long""'");
8585 }
8586 arg7 = static_cast< long >(val7);
8587 }
8588 if (obj7) {
8589 {
8590 arg8 = wxString_in_helper(obj7);
8591 if (arg8 == NULL) SWIG_fail;
8592 temp8 = true;
8593 }
8594 }
8595 {
8596 PyThreadState* __tstate = wxPyBeginAllowThreads();
8597 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8598 wxPyEndAllowThreads(__tstate);
8599 if (PyErr_Occurred()) SWIG_fail;
8600 }
8601 {
8602 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8603 }
8604 {
8605 if (temp8)
8606 delete arg8;
8607 }
8608 return resultobj;
8609 fail:
8610 {
8611 if (temp8)
8612 delete arg8;
8613 }
8614 return NULL;
8615 }
8616
8617
8618 SWIGINTERN PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8619 PyObject *resultobj = 0;
8620 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8621 wxBitmap result;
8622 void *argp1 = 0 ;
8623 int res1 = 0 ;
8624 PyObject *swig_obj[1] ;
8625
8626 if (!args) SWIG_fail;
8627 swig_obj[0] = args;
8628 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8629 if (!SWIG_IsOK(res1)) {
8630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_GetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8631 }
8632 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8633 {
8634 PyThreadState* __tstate = wxPyBeginAllowThreads();
8635 result = (arg1)->GetBitmap();
8636 wxPyEndAllowThreads(__tstate);
8637 if (PyErr_Occurred()) SWIG_fail;
8638 }
8639 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8640 return resultobj;
8641 fail:
8642 return NULL;
8643 }
8644
8645
8646 SWIGINTERN PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8647 PyObject *resultobj = 0;
8648 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8649 wxBitmap *arg2 = 0 ;
8650 void *argp1 = 0 ;
8651 int res1 = 0 ;
8652 void *argp2 = 0 ;
8653 int res2 = 0 ;
8654 PyObject * obj0 = 0 ;
8655 PyObject * obj1 = 0 ;
8656 char * kwnames[] = {
8657 (char *) "self",(char *) "bitmap", NULL
8658 };
8659
8660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
8661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8662 if (!SWIG_IsOK(res1)) {
8663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8664 }
8665 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8666 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8667 if (!SWIG_IsOK(res2)) {
8668 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8669 }
8670 if (!argp2) {
8671 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8672 }
8673 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8674 {
8675 PyThreadState* __tstate = wxPyBeginAllowThreads();
8676 (arg1)->SetBitmap((wxBitmap const &)*arg2);
8677 wxPyEndAllowThreads(__tstate);
8678 if (PyErr_Occurred()) SWIG_fail;
8679 }
8680 resultobj = SWIG_Py_Void();
8681 return resultobj;
8682 fail:
8683 return NULL;
8684 }
8685
8686
8687 SWIGINTERN PyObject *_wrap_StaticBitmap_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8688 PyObject *resultobj = 0;
8689 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8690 wxIcon *arg2 = 0 ;
8691 void *argp1 = 0 ;
8692 int res1 = 0 ;
8693 void *argp2 = 0 ;
8694 int res2 = 0 ;
8695 PyObject * obj0 = 0 ;
8696 PyObject * obj1 = 0 ;
8697 char * kwnames[] = {
8698 (char *) "self",(char *) "icon", NULL
8699 };
8700
8701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
8702 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8703 if (!SWIG_IsOK(res1)) {
8704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetIcon" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8705 }
8706 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8707 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
8708 if (!SWIG_IsOK(res2)) {
8709 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8710 }
8711 if (!argp2) {
8712 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8713 }
8714 arg2 = reinterpret_cast< wxIcon * >(argp2);
8715 {
8716 PyThreadState* __tstate = wxPyBeginAllowThreads();
8717 (arg1)->SetIcon((wxIcon const &)*arg2);
8718 wxPyEndAllowThreads(__tstate);
8719 if (PyErr_Occurred()) SWIG_fail;
8720 }
8721 resultobj = SWIG_Py_Void();
8722 return resultobj;
8723 fail:
8724 return NULL;
8725 }
8726
8727
8728 SWIGINTERN PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8729 PyObject *resultobj = 0;
8730 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8731 SwigValueWrapper<wxVisualAttributes > result;
8732 int val1 ;
8733 int ecode1 = 0 ;
8734 PyObject * obj0 = 0 ;
8735 char * kwnames[] = {
8736 (char *) "variant", NULL
8737 };
8738
8739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8740 if (obj0) {
8741 ecode1 = SWIG_AsVal_int(obj0, &val1);
8742 if (!SWIG_IsOK(ecode1)) {
8743 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBitmap_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8744 }
8745 arg1 = static_cast< wxWindowVariant >(val1);
8746 }
8747 {
8748 if (!wxPyCheckForApp()) SWIG_fail;
8749 PyThreadState* __tstate = wxPyBeginAllowThreads();
8750 result = wxStaticBitmap::GetClassDefaultAttributes(arg1);
8751 wxPyEndAllowThreads(__tstate);
8752 if (PyErr_Occurred()) SWIG_fail;
8753 }
8754 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8755 return resultobj;
8756 fail:
8757 return NULL;
8758 }
8759
8760
8761 SWIGINTERN PyObject *StaticBitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8762 PyObject *obj;
8763 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8764 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBitmap, SWIG_NewClientData(obj));
8765 return SWIG_Py_Void();
8766 }
8767
8768 SWIGINTERN PyObject *StaticBitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8769 return SWIG_Python_InitShadowInstance(args);
8770 }
8771
8772 SWIGINTERN int ListBoxNameStr_set(PyObject *) {
8773 SWIG_Error(SWIG_AttributeError,"Variable ListBoxNameStr is read-only.");
8774 return 1;
8775 }
8776
8777
8778 SWIGINTERN PyObject *ListBoxNameStr_get(void) {
8779 PyObject *pyobj = 0;
8780
8781 {
8782 #if wxUSE_UNICODE
8783 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8784 #else
8785 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8786 #endif
8787 }
8788 return pyobj;
8789 }
8790
8791
8792 SWIGINTERN PyObject *_wrap_new_ListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8793 PyObject *resultobj = 0;
8794 wxWindow *arg1 = (wxWindow *) 0 ;
8795 int arg2 = (int) -1 ;
8796 wxPoint const &arg3_defvalue = wxDefaultPosition ;
8797 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
8798 wxSize const &arg4_defvalue = wxDefaultSize ;
8799 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
8800 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
8801 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
8802 long arg6 = (long) 0 ;
8803 wxValidator const &arg7_defvalue = wxDefaultValidator ;
8804 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
8805 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
8806 wxString *arg8 = (wxString *) &arg8_defvalue ;
8807 wxListBox *result = 0 ;
8808 void *argp1 = 0 ;
8809 int res1 = 0 ;
8810 int val2 ;
8811 int ecode2 = 0 ;
8812 wxPoint temp3 ;
8813 wxSize temp4 ;
8814 bool temp5 = false ;
8815 long val6 ;
8816 int ecode6 = 0 ;
8817 void *argp7 = 0 ;
8818 int res7 = 0 ;
8819 bool temp8 = false ;
8820 PyObject * obj0 = 0 ;
8821 PyObject * obj1 = 0 ;
8822 PyObject * obj2 = 0 ;
8823 PyObject * obj3 = 0 ;
8824 PyObject * obj4 = 0 ;
8825 PyObject * obj5 = 0 ;
8826 PyObject * obj6 = 0 ;
8827 PyObject * obj7 = 0 ;
8828 char * kwnames[] = {
8829 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8830 };
8831
8832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8833 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8834 if (!SWIG_IsOK(res1)) {
8835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
8836 }
8837 arg1 = reinterpret_cast< wxWindow * >(argp1);
8838 if (obj1) {
8839 ecode2 = SWIG_AsVal_int(obj1, &val2);
8840 if (!SWIG_IsOK(ecode2)) {
8841 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListBox" "', expected argument " "2"" of type '" "int""'");
8842 }
8843 arg2 = static_cast< int >(val2);
8844 }
8845 if (obj2) {
8846 {
8847 arg3 = &temp3;
8848 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
8849 }
8850 }
8851 if (obj3) {
8852 {
8853 arg4 = &temp4;
8854 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
8855 }
8856 }
8857 if (obj4) {
8858 {
8859 if (! PySequence_Check(obj4)) {
8860 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
8861 SWIG_fail;
8862 }
8863 arg5 = new wxArrayString;
8864 temp5 = true;
8865 int i, len=PySequence_Length(obj4);
8866 for (i=0; i<len; i++) {
8867 PyObject* item = PySequence_GetItem(obj4, i);
8868 wxString* s = wxString_in_helper(item);
8869 if (PyErr_Occurred()) SWIG_fail;
8870 arg5->Add(*s);
8871 delete s;
8872 Py_DECREF(item);
8873 }
8874 }
8875 }
8876 if (obj5) {
8877 ecode6 = SWIG_AsVal_long(obj5, &val6);
8878 if (!SWIG_IsOK(ecode6)) {
8879 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ListBox" "', expected argument " "6"" of type '" "long""'");
8880 }
8881 arg6 = static_cast< long >(val6);
8882 }
8883 if (obj6) {
8884 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
8885 if (!SWIG_IsOK(res7)) {
8886 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
8887 }
8888 if (!argp7) {
8889 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
8890 }
8891 arg7 = reinterpret_cast< wxValidator * >(argp7);
8892 }
8893 if (obj7) {
8894 {
8895 arg8 = wxString_in_helper(obj7);
8896 if (arg8 == NULL) SWIG_fail;
8897 temp8 = true;
8898 }
8899 }
8900 {
8901 if (!wxPyCheckForApp()) SWIG_fail;
8902 PyThreadState* __tstate = wxPyBeginAllowThreads();
8903 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
8904 wxPyEndAllowThreads(__tstate);
8905 if (PyErr_Occurred()) SWIG_fail;
8906 }
8907 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_NEW | 0 );
8908 {
8909 if (temp5) delete arg5;
8910 }
8911 {
8912 if (temp8)
8913 delete arg8;
8914 }
8915 return resultobj;
8916 fail:
8917 {
8918 if (temp5) delete arg5;
8919 }
8920 {
8921 if (temp8)
8922 delete arg8;
8923 }
8924 return NULL;
8925 }
8926
8927
8928 SWIGINTERN PyObject *_wrap_new_PreListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8929 PyObject *resultobj = 0;
8930 wxListBox *result = 0 ;
8931
8932 if (!SWIG_Python_UnpackTuple(args,"new_PreListBox",0,0,0)) SWIG_fail;
8933 {
8934 if (!wxPyCheckForApp()) SWIG_fail;
8935 PyThreadState* __tstate = wxPyBeginAllowThreads();
8936 result = (wxListBox *)new wxListBox();
8937 wxPyEndAllowThreads(__tstate);
8938 if (PyErr_Occurred()) SWIG_fail;
8939 }
8940 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_OWN | 0 );
8941 return resultobj;
8942 fail:
8943 return NULL;
8944 }
8945
8946
8947 SWIGINTERN PyObject *_wrap_ListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8948 PyObject *resultobj = 0;
8949 wxListBox *arg1 = (wxListBox *) 0 ;
8950 wxWindow *arg2 = (wxWindow *) 0 ;
8951 int arg3 = (int) -1 ;
8952 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8953 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8954 wxSize const &arg5_defvalue = wxDefaultSize ;
8955 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8956 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
8957 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
8958 long arg7 = (long) 0 ;
8959 wxValidator const &arg8_defvalue = wxDefaultValidator ;
8960 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
8961 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
8962 wxString *arg9 = (wxString *) &arg9_defvalue ;
8963 bool result;
8964 void *argp1 = 0 ;
8965 int res1 = 0 ;
8966 void *argp2 = 0 ;
8967 int res2 = 0 ;
8968 int val3 ;
8969 int ecode3 = 0 ;
8970 wxPoint temp4 ;
8971 wxSize temp5 ;
8972 bool temp6 = false ;
8973 long val7 ;
8974 int ecode7 = 0 ;
8975 void *argp8 = 0 ;
8976 int res8 = 0 ;
8977 bool temp9 = false ;
8978 PyObject * obj0 = 0 ;
8979 PyObject * obj1 = 0 ;
8980 PyObject * obj2 = 0 ;
8981 PyObject * obj3 = 0 ;
8982 PyObject * obj4 = 0 ;
8983 PyObject * obj5 = 0 ;
8984 PyObject * obj6 = 0 ;
8985 PyObject * obj7 = 0 ;
8986 PyObject * obj8 = 0 ;
8987 char * kwnames[] = {
8988 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8989 };
8990
8991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
8992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
8993 if (!SWIG_IsOK(res1)) {
8994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Create" "', expected argument " "1"" of type '" "wxListBox *""'");
8995 }
8996 arg1 = reinterpret_cast< wxListBox * >(argp1);
8997 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8998 if (!SWIG_IsOK(res2)) {
8999 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
9000 }
9001 arg2 = reinterpret_cast< wxWindow * >(argp2);
9002 if (obj2) {
9003 ecode3 = SWIG_AsVal_int(obj2, &val3);
9004 if (!SWIG_IsOK(ecode3)) {
9005 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Create" "', expected argument " "3"" of type '" "int""'");
9006 }
9007 arg3 = static_cast< int >(val3);
9008 }
9009 if (obj3) {
9010 {
9011 arg4 = &temp4;
9012 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
9013 }
9014 }
9015 if (obj4) {
9016 {
9017 arg5 = &temp5;
9018 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
9019 }
9020 }
9021 if (obj5) {
9022 {
9023 if (! PySequence_Check(obj5)) {
9024 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9025 SWIG_fail;
9026 }
9027 arg6 = new wxArrayString;
9028 temp6 = true;
9029 int i, len=PySequence_Length(obj5);
9030 for (i=0; i<len; i++) {
9031 PyObject* item = PySequence_GetItem(obj5, i);
9032 wxString* s = wxString_in_helper(item);
9033 if (PyErr_Occurred()) SWIG_fail;
9034 arg6->Add(*s);
9035 delete s;
9036 Py_DECREF(item);
9037 }
9038 }
9039 }
9040 if (obj6) {
9041 ecode7 = SWIG_AsVal_long(obj6, &val7);
9042 if (!SWIG_IsOK(ecode7)) {
9043 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ListBox_Create" "', expected argument " "7"" of type '" "long""'");
9044 }
9045 arg7 = static_cast< long >(val7);
9046 }
9047 if (obj7) {
9048 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
9049 if (!SWIG_IsOK(res8)) {
9050 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
9051 }
9052 if (!argp8) {
9053 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
9054 }
9055 arg8 = reinterpret_cast< wxValidator * >(argp8);
9056 }
9057 if (obj8) {
9058 {
9059 arg9 = wxString_in_helper(obj8);
9060 if (arg9 == NULL) SWIG_fail;
9061 temp9 = true;
9062 }
9063 }
9064 {
9065 PyThreadState* __tstate = wxPyBeginAllowThreads();
9066 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
9067 wxPyEndAllowThreads(__tstate);
9068 if (PyErr_Occurred()) SWIG_fail;
9069 }
9070 {
9071 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9072 }
9073 {
9074 if (temp6) delete arg6;
9075 }
9076 {
9077 if (temp9)
9078 delete arg9;
9079 }
9080 return resultobj;
9081 fail:
9082 {
9083 if (temp6) delete arg6;
9084 }
9085 {
9086 if (temp9)
9087 delete arg9;
9088 }
9089 return NULL;
9090 }
9091
9092
9093 SWIGINTERN PyObject *_wrap_ListBox_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9094 PyObject *resultobj = 0;
9095 wxListBox *arg1 = (wxListBox *) 0 ;
9096 wxString *arg2 = 0 ;
9097 int arg3 ;
9098 PyObject *arg4 = (PyObject *) NULL ;
9099 void *argp1 = 0 ;
9100 int res1 = 0 ;
9101 bool temp2 = false ;
9102 int val3 ;
9103 int ecode3 = 0 ;
9104 PyObject * obj0 = 0 ;
9105 PyObject * obj1 = 0 ;
9106 PyObject * obj2 = 0 ;
9107 PyObject * obj3 = 0 ;
9108 char * kwnames[] = {
9109 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
9110 };
9111
9112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9114 if (!SWIG_IsOK(res1)) {
9115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Insert" "', expected argument " "1"" of type '" "wxListBox *""'");
9116 }
9117 arg1 = reinterpret_cast< wxListBox * >(argp1);
9118 {
9119 arg2 = wxString_in_helper(obj1);
9120 if (arg2 == NULL) SWIG_fail;
9121 temp2 = true;
9122 }
9123 ecode3 = SWIG_AsVal_int(obj2, &val3);
9124 if (!SWIG_IsOK(ecode3)) {
9125 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Insert" "', expected argument " "3"" of type '" "int""'");
9126 }
9127 arg3 = static_cast< int >(val3);
9128 if (obj3) {
9129 arg4 = obj3;
9130 }
9131 {
9132 PyThreadState* __tstate = wxPyBeginAllowThreads();
9133 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
9134 wxPyEndAllowThreads(__tstate);
9135 if (PyErr_Occurred()) SWIG_fail;
9136 }
9137 resultobj = SWIG_Py_Void();
9138 {
9139 if (temp2)
9140 delete arg2;
9141 }
9142 return resultobj;
9143 fail:
9144 {
9145 if (temp2)
9146 delete arg2;
9147 }
9148 return NULL;
9149 }
9150
9151
9152 SWIGINTERN PyObject *_wrap_ListBox_InsertItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9153 PyObject *resultobj = 0;
9154 wxListBox *arg1 = (wxListBox *) 0 ;
9155 wxArrayString *arg2 = 0 ;
9156 unsigned int arg3 ;
9157 void *argp1 = 0 ;
9158 int res1 = 0 ;
9159 bool temp2 = false ;
9160 unsigned int val3 ;
9161 int ecode3 = 0 ;
9162 PyObject * obj0 = 0 ;
9163 PyObject * obj1 = 0 ;
9164 PyObject * obj2 = 0 ;
9165 char * kwnames[] = {
9166 (char *) "self",(char *) "items",(char *) "pos", NULL
9167 };
9168
9169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9171 if (!SWIG_IsOK(res1)) {
9172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_InsertItems" "', expected argument " "1"" of type '" "wxListBox *""'");
9173 }
9174 arg1 = reinterpret_cast< wxListBox * >(argp1);
9175 {
9176 if (! PySequence_Check(obj1)) {
9177 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9178 SWIG_fail;
9179 }
9180 arg2 = new wxArrayString;
9181 temp2 = true;
9182 int i, len=PySequence_Length(obj1);
9183 for (i=0; i<len; i++) {
9184 PyObject* item = PySequence_GetItem(obj1, i);
9185 wxString* s = wxString_in_helper(item);
9186 if (PyErr_Occurred()) SWIG_fail;
9187 arg2->Add(*s);
9188 delete s;
9189 Py_DECREF(item);
9190 }
9191 }
9192 ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
9193 if (!SWIG_IsOK(ecode3)) {
9194 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_InsertItems" "', expected argument " "3"" of type '" "unsigned int""'");
9195 }
9196 arg3 = static_cast< unsigned int >(val3);
9197 {
9198 PyThreadState* __tstate = wxPyBeginAllowThreads();
9199 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
9200 wxPyEndAllowThreads(__tstate);
9201 if (PyErr_Occurred()) SWIG_fail;
9202 }
9203 resultobj = SWIG_Py_Void();
9204 {
9205 if (temp2) delete arg2;
9206 }
9207 return resultobj;
9208 fail:
9209 {
9210 if (temp2) delete arg2;
9211 }
9212 return NULL;
9213 }
9214
9215
9216 SWIGINTERN PyObject *_wrap_ListBox_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9217 PyObject *resultobj = 0;
9218 wxListBox *arg1 = (wxListBox *) 0 ;
9219 wxArrayString *arg2 = 0 ;
9220 void *argp1 = 0 ;
9221 int res1 = 0 ;
9222 bool temp2 = false ;
9223 PyObject * obj0 = 0 ;
9224 PyObject * obj1 = 0 ;
9225 char * kwnames[] = {
9226 (char *) "self",(char *) "items", NULL
9227 };
9228
9229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) SWIG_fail;
9230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9231 if (!SWIG_IsOK(res1)) {
9232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Set" "', expected argument " "1"" of type '" "wxListBox *""'");
9233 }
9234 arg1 = reinterpret_cast< wxListBox * >(argp1);
9235 {
9236 if (! PySequence_Check(obj1)) {
9237 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9238 SWIG_fail;
9239 }
9240 arg2 = new wxArrayString;
9241 temp2 = true;
9242 int i, len=PySequence_Length(obj1);
9243 for (i=0; i<len; i++) {
9244 PyObject* item = PySequence_GetItem(obj1, i);
9245 wxString* s = wxString_in_helper(item);
9246 if (PyErr_Occurred()) SWIG_fail;
9247 arg2->Add(*s);
9248 delete s;
9249 Py_DECREF(item);
9250 }
9251 }
9252 {
9253 PyThreadState* __tstate = wxPyBeginAllowThreads();
9254 (arg1)->Set((wxArrayString const &)*arg2);
9255 wxPyEndAllowThreads(__tstate);
9256 if (PyErr_Occurred()) SWIG_fail;
9257 }
9258 resultobj = SWIG_Py_Void();
9259 {
9260 if (temp2) delete arg2;
9261 }
9262 return resultobj;
9263 fail:
9264 {
9265 if (temp2) delete arg2;
9266 }
9267 return NULL;
9268 }
9269
9270
9271 SWIGINTERN PyObject *_wrap_ListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9272 PyObject *resultobj = 0;
9273 wxListBox *arg1 = (wxListBox *) 0 ;
9274 int arg2 ;
9275 bool result;
9276 void *argp1 = 0 ;
9277 int res1 = 0 ;
9278 int val2 ;
9279 int ecode2 = 0 ;
9280 PyObject * obj0 = 0 ;
9281 PyObject * obj1 = 0 ;
9282 char * kwnames[] = {
9283 (char *) "self",(char *) "n", NULL
9284 };
9285
9286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
9287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9288 if (!SWIG_IsOK(res1)) {
9289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSelected" "', expected argument " "1"" of type '" "wxListBox const *""'");
9290 }
9291 arg1 = reinterpret_cast< wxListBox * >(argp1);
9292 ecode2 = SWIG_AsVal_int(obj1, &val2);
9293 if (!SWIG_IsOK(ecode2)) {
9294 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_IsSelected" "', expected argument " "2"" of type '" "int""'");
9295 }
9296 arg2 = static_cast< int >(val2);
9297 {
9298 PyThreadState* __tstate = wxPyBeginAllowThreads();
9299 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
9300 wxPyEndAllowThreads(__tstate);
9301 if (PyErr_Occurred()) SWIG_fail;
9302 }
9303 {
9304 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9305 }
9306 return resultobj;
9307 fail:
9308 return NULL;
9309 }
9310
9311
9312 SWIGINTERN PyObject *_wrap_ListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9313 PyObject *resultobj = 0;
9314 wxListBox *arg1 = (wxListBox *) 0 ;
9315 int arg2 ;
9316 bool arg3 = (bool) true ;
9317 void *argp1 = 0 ;
9318 int res1 = 0 ;
9319 int val2 ;
9320 int ecode2 = 0 ;
9321 bool val3 ;
9322 int ecode3 = 0 ;
9323 PyObject * obj0 = 0 ;
9324 PyObject * obj1 = 0 ;
9325 PyObject * obj2 = 0 ;
9326 char * kwnames[] = {
9327 (char *) "self",(char *) "n",(char *) "select", NULL
9328 };
9329
9330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9332 if (!SWIG_IsOK(res1)) {
9333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9334 }
9335 arg1 = reinterpret_cast< wxListBox * >(argp1);
9336 ecode2 = SWIG_AsVal_int(obj1, &val2);
9337 if (!SWIG_IsOK(ecode2)) {
9338 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
9339 }
9340 arg2 = static_cast< int >(val2);
9341 if (obj2) {
9342 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9343 if (!SWIG_IsOK(ecode3)) {
9344 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetSelection" "', expected argument " "3"" of type '" "bool""'");
9345 }
9346 arg3 = static_cast< bool >(val3);
9347 }
9348 {
9349 PyThreadState* __tstate = wxPyBeginAllowThreads();
9350 (arg1)->SetSelection(arg2,arg3);
9351 wxPyEndAllowThreads(__tstate);
9352 if (PyErr_Occurred()) SWIG_fail;
9353 }
9354 resultobj = SWIG_Py_Void();
9355 return resultobj;
9356 fail:
9357 return NULL;
9358 }
9359
9360
9361 SWIGINTERN PyObject *_wrap_ListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9362 PyObject *resultobj = 0;
9363 wxListBox *arg1 = (wxListBox *) 0 ;
9364 int arg2 ;
9365 void *argp1 = 0 ;
9366 int res1 = 0 ;
9367 int val2 ;
9368 int ecode2 = 0 ;
9369 PyObject * obj0 = 0 ;
9370 PyObject * obj1 = 0 ;
9371 char * kwnames[] = {
9372 (char *) "self",(char *) "n", NULL
9373 };
9374
9375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) SWIG_fail;
9376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9377 if (!SWIG_IsOK(res1)) {
9378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Select" "', expected argument " "1"" of type '" "wxListBox *""'");
9379 }
9380 arg1 = reinterpret_cast< wxListBox * >(argp1);
9381 ecode2 = SWIG_AsVal_int(obj1, &val2);
9382 if (!SWIG_IsOK(ecode2)) {
9383 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Select" "', expected argument " "2"" of type '" "int""'");
9384 }
9385 arg2 = static_cast< int >(val2);
9386 {
9387 PyThreadState* __tstate = wxPyBeginAllowThreads();
9388 (arg1)->Select(arg2);
9389 wxPyEndAllowThreads(__tstate);
9390 if (PyErr_Occurred()) SWIG_fail;
9391 }
9392 resultobj = SWIG_Py_Void();
9393 return resultobj;
9394 fail:
9395 return NULL;
9396 }
9397
9398
9399 SWIGINTERN PyObject *_wrap_ListBox_Deselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9400 PyObject *resultobj = 0;
9401 wxListBox *arg1 = (wxListBox *) 0 ;
9402 int arg2 ;
9403 void *argp1 = 0 ;
9404 int res1 = 0 ;
9405 int val2 ;
9406 int ecode2 = 0 ;
9407 PyObject * obj0 = 0 ;
9408 PyObject * obj1 = 0 ;
9409 char * kwnames[] = {
9410 (char *) "self",(char *) "n", NULL
9411 };
9412
9413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) SWIG_fail;
9414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9415 if (!SWIG_IsOK(res1)) {
9416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Deselect" "', expected argument " "1"" of type '" "wxListBox *""'");
9417 }
9418 arg1 = reinterpret_cast< wxListBox * >(argp1);
9419 ecode2 = SWIG_AsVal_int(obj1, &val2);
9420 if (!SWIG_IsOK(ecode2)) {
9421 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Deselect" "', expected argument " "2"" of type '" "int""'");
9422 }
9423 arg2 = static_cast< int >(val2);
9424 {
9425 PyThreadState* __tstate = wxPyBeginAllowThreads();
9426 (arg1)->Deselect(arg2);
9427 wxPyEndAllowThreads(__tstate);
9428 if (PyErr_Occurred()) SWIG_fail;
9429 }
9430 resultobj = SWIG_Py_Void();
9431 return resultobj;
9432 fail:
9433 return NULL;
9434 }
9435
9436
9437 SWIGINTERN PyObject *_wrap_ListBox_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9438 PyObject *resultobj = 0;
9439 wxListBox *arg1 = (wxListBox *) 0 ;
9440 int arg2 = (int) -1 ;
9441 void *argp1 = 0 ;
9442 int res1 = 0 ;
9443 int val2 ;
9444 int ecode2 = 0 ;
9445 PyObject * obj0 = 0 ;
9446 PyObject * obj1 = 0 ;
9447 char * kwnames[] = {
9448 (char *) "self",(char *) "itemToLeaveSelected", NULL
9449 };
9450
9451 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) SWIG_fail;
9452 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9453 if (!SWIG_IsOK(res1)) {
9454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_DeselectAll" "', expected argument " "1"" of type '" "wxListBox *""'");
9455 }
9456 arg1 = reinterpret_cast< wxListBox * >(argp1);
9457 if (obj1) {
9458 ecode2 = SWIG_AsVal_int(obj1, &val2);
9459 if (!SWIG_IsOK(ecode2)) {
9460 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_DeselectAll" "', expected argument " "2"" of type '" "int""'");
9461 }
9462 arg2 = static_cast< int >(val2);
9463 }
9464 {
9465 PyThreadState* __tstate = wxPyBeginAllowThreads();
9466 (arg1)->DeselectAll(arg2);
9467 wxPyEndAllowThreads(__tstate);
9468 if (PyErr_Occurred()) SWIG_fail;
9469 }
9470 resultobj = SWIG_Py_Void();
9471 return resultobj;
9472 fail:
9473 return NULL;
9474 }
9475
9476
9477 SWIGINTERN PyObject *_wrap_ListBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9478 PyObject *resultobj = 0;
9479 wxListBox *arg1 = (wxListBox *) 0 ;
9480 wxString *arg2 = 0 ;
9481 bool arg3 = (bool) true ;
9482 bool result;
9483 void *argp1 = 0 ;
9484 int res1 = 0 ;
9485 bool temp2 = false ;
9486 bool val3 ;
9487 int ecode3 = 0 ;
9488 PyObject * obj0 = 0 ;
9489 PyObject * obj1 = 0 ;
9490 PyObject * obj2 = 0 ;
9491 char * kwnames[] = {
9492 (char *) "self",(char *) "s",(char *) "select", NULL
9493 };
9494
9495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9497 if (!SWIG_IsOK(res1)) {
9498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetStringSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9499 }
9500 arg1 = reinterpret_cast< wxListBox * >(argp1);
9501 {
9502 arg2 = wxString_in_helper(obj1);
9503 if (arg2 == NULL) SWIG_fail;
9504 temp2 = true;
9505 }
9506 if (obj2) {
9507 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9508 if (!SWIG_IsOK(ecode3)) {
9509 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetStringSelection" "', expected argument " "3"" of type '" "bool""'");
9510 }
9511 arg3 = static_cast< bool >(val3);
9512 }
9513 {
9514 PyThreadState* __tstate = wxPyBeginAllowThreads();
9515 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
9516 wxPyEndAllowThreads(__tstate);
9517 if (PyErr_Occurred()) SWIG_fail;
9518 }
9519 {
9520 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9521 }
9522 {
9523 if (temp2)
9524 delete arg2;
9525 }
9526 return resultobj;
9527 fail:
9528 {
9529 if (temp2)
9530 delete arg2;
9531 }
9532 return NULL;
9533 }
9534
9535
9536 SWIGINTERN PyObject *_wrap_ListBox_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9537 PyObject *resultobj = 0;
9538 wxListBox *arg1 = (wxListBox *) 0 ;
9539 PyObject *result = 0 ;
9540 void *argp1 = 0 ;
9541 int res1 = 0 ;
9542 PyObject *swig_obj[1] ;
9543
9544 if (!args) SWIG_fail;
9545 swig_obj[0] = args;
9546 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9547 if (!SWIG_IsOK(res1)) {
9548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_GetSelections" "', expected argument " "1"" of type '" "wxListBox *""'");
9549 }
9550 arg1 = reinterpret_cast< wxListBox * >(argp1);
9551 {
9552 PyThreadState* __tstate = wxPyBeginAllowThreads();
9553 result = (PyObject *)wxListBox_GetSelections(arg1);
9554 wxPyEndAllowThreads(__tstate);
9555 if (PyErr_Occurred()) SWIG_fail;
9556 }
9557 resultobj = result;
9558 return resultobj;
9559 fail:
9560 return NULL;
9561 }
9562
9563
9564 SWIGINTERN PyObject *_wrap_ListBox_SetFirstItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9565 PyObject *resultobj = 0;
9566 wxListBox *arg1 = (wxListBox *) 0 ;
9567 int arg2 ;
9568 void *argp1 = 0 ;
9569 int res1 = 0 ;
9570 int val2 ;
9571 int ecode2 = 0 ;
9572 PyObject * obj0 = 0 ;
9573 PyObject * obj1 = 0 ;
9574 char * kwnames[] = {
9575 (char *) "self",(char *) "n", NULL
9576 };
9577
9578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) SWIG_fail;
9579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9580 if (!SWIG_IsOK(res1)) {
9581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItem" "', expected argument " "1"" of type '" "wxListBox *""'");
9582 }
9583 arg1 = reinterpret_cast< wxListBox * >(argp1);
9584 ecode2 = SWIG_AsVal_int(obj1, &val2);
9585 if (!SWIG_IsOK(ecode2)) {
9586 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetFirstItem" "', expected argument " "2"" of type '" "int""'");
9587 }
9588 arg2 = static_cast< int >(val2);
9589 {
9590 PyThreadState* __tstate = wxPyBeginAllowThreads();
9591 (arg1)->SetFirstItem(arg2);
9592 wxPyEndAllowThreads(__tstate);
9593 if (PyErr_Occurred()) SWIG_fail;
9594 }
9595 resultobj = SWIG_Py_Void();
9596 return resultobj;
9597 fail:
9598 return NULL;
9599 }
9600
9601
9602 SWIGINTERN PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9603 PyObject *resultobj = 0;
9604 wxListBox *arg1 = (wxListBox *) 0 ;
9605 wxString *arg2 = 0 ;
9606 void *argp1 = 0 ;
9607 int res1 = 0 ;
9608 bool temp2 = false ;
9609 PyObject * obj0 = 0 ;
9610 PyObject * obj1 = 0 ;
9611 char * kwnames[] = {
9612 (char *) "self",(char *) "s", NULL
9613 };
9614
9615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) SWIG_fail;
9616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9617 if (!SWIG_IsOK(res1)) {
9618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItemStr" "', expected argument " "1"" of type '" "wxListBox *""'");
9619 }
9620 arg1 = reinterpret_cast< wxListBox * >(argp1);
9621 {
9622 arg2 = wxString_in_helper(obj1);
9623 if (arg2 == NULL) SWIG_fail;
9624 temp2 = true;
9625 }
9626 {
9627 PyThreadState* __tstate = wxPyBeginAllowThreads();
9628 (arg1)->SetFirstItem((wxString const &)*arg2);
9629 wxPyEndAllowThreads(__tstate);
9630 if (PyErr_Occurred()) SWIG_fail;
9631 }
9632 resultobj = SWIG_Py_Void();
9633 {
9634 if (temp2)
9635 delete arg2;
9636 }
9637 return resultobj;
9638 fail:
9639 {
9640 if (temp2)
9641 delete arg2;
9642 }
9643 return NULL;
9644 }
9645
9646
9647 SWIGINTERN PyObject *_wrap_ListBox_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9648 PyObject *resultobj = 0;
9649 wxListBox *arg1 = (wxListBox *) 0 ;
9650 int arg2 ;
9651 void *argp1 = 0 ;
9652 int res1 = 0 ;
9653 int val2 ;
9654 int ecode2 = 0 ;
9655 PyObject * obj0 = 0 ;
9656 PyObject * obj1 = 0 ;
9657 char * kwnames[] = {
9658 (char *) "self",(char *) "n", NULL
9659 };
9660
9661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9663 if (!SWIG_IsOK(res1)) {
9664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_EnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9665 }
9666 arg1 = reinterpret_cast< wxListBox * >(argp1);
9667 ecode2 = SWIG_AsVal_int(obj1, &val2);
9668 if (!SWIG_IsOK(ecode2)) {
9669 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_EnsureVisible" "', expected argument " "2"" of type '" "int""'");
9670 }
9671 arg2 = static_cast< int >(val2);
9672 {
9673 PyThreadState* __tstate = wxPyBeginAllowThreads();
9674 (arg1)->EnsureVisible(arg2);
9675 wxPyEndAllowThreads(__tstate);
9676 if (PyErr_Occurred()) SWIG_fail;
9677 }
9678 resultobj = SWIG_Py_Void();
9679 return resultobj;
9680 fail:
9681 return NULL;
9682 }
9683
9684
9685 SWIGINTERN PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9686 PyObject *resultobj = 0;
9687 wxListBox *arg1 = (wxListBox *) 0 ;
9688 wxString *arg2 = 0 ;
9689 void *argp1 = 0 ;
9690 int res1 = 0 ;
9691 bool temp2 = false ;
9692 PyObject * obj0 = 0 ;
9693 PyObject * obj1 = 0 ;
9694 char * kwnames[] = {
9695 (char *) "self",(char *) "s", NULL
9696 };
9697
9698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9699 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9700 if (!SWIG_IsOK(res1)) {
9701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_AppendAndEnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9702 }
9703 arg1 = reinterpret_cast< wxListBox * >(argp1);
9704 {
9705 arg2 = wxString_in_helper(obj1);
9706 if (arg2 == NULL) SWIG_fail;
9707 temp2 = true;
9708 }
9709 {
9710 PyThreadState* __tstate = wxPyBeginAllowThreads();
9711 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
9712 wxPyEndAllowThreads(__tstate);
9713 if (PyErr_Occurred()) SWIG_fail;
9714 }
9715 resultobj = SWIG_Py_Void();
9716 {
9717 if (temp2)
9718 delete arg2;
9719 }
9720 return resultobj;
9721 fail:
9722 {
9723 if (temp2)
9724 delete arg2;
9725 }
9726 return NULL;
9727 }
9728
9729
9730 SWIGINTERN PyObject *_wrap_ListBox_IsSorted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9731 PyObject *resultobj = 0;
9732 wxListBox *arg1 = (wxListBox *) 0 ;
9733 bool result;
9734 void *argp1 = 0 ;
9735 int res1 = 0 ;
9736 PyObject *swig_obj[1] ;
9737
9738 if (!args) SWIG_fail;
9739 swig_obj[0] = args;
9740 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9741 if (!SWIG_IsOK(res1)) {
9742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSorted" "', expected argument " "1"" of type '" "wxListBox const *""'");
9743 }
9744 arg1 = reinterpret_cast< wxListBox * >(argp1);
9745 {
9746 PyThreadState* __tstate = wxPyBeginAllowThreads();
9747 result = (bool)((wxListBox const *)arg1)->IsSorted();
9748 wxPyEndAllowThreads(__tstate);
9749 if (PyErr_Occurred()) SWIG_fail;
9750 }
9751 {
9752 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9753 }
9754 return resultobj;
9755 fail:
9756 return NULL;
9757 }
9758
9759
9760 SWIGINTERN PyObject *_wrap_ListBox_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9761 PyObject *resultobj = 0;
9762 wxListBox *arg1 = (wxListBox *) 0 ;
9763 wxPoint *arg2 = 0 ;
9764 int result;
9765 void *argp1 = 0 ;
9766 int res1 = 0 ;
9767 wxPoint temp2 ;
9768 PyObject * obj0 = 0 ;
9769 PyObject * obj1 = 0 ;
9770 char * kwnames[] = {
9771 (char *) "self",(char *) "pt", NULL
9772 };
9773
9774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
9775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9776 if (!SWIG_IsOK(res1)) {
9777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_HitTest" "', expected argument " "1"" of type '" "wxListBox const *""'");
9778 }
9779 arg1 = reinterpret_cast< wxListBox * >(argp1);
9780 {
9781 arg2 = &temp2;
9782 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9783 }
9784 {
9785 PyThreadState* __tstate = wxPyBeginAllowThreads();
9786 result = (int)((wxListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
9787 wxPyEndAllowThreads(__tstate);
9788 if (PyErr_Occurred()) SWIG_fail;
9789 }
9790 resultobj = SWIG_From_int(static_cast< int >(result));
9791 return resultobj;
9792 fail:
9793 return NULL;
9794 }
9795
9796
9797 SWIGINTERN PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9798 PyObject *resultobj = 0;
9799 wxListBox *arg1 = (wxListBox *) 0 ;
9800 int arg2 ;
9801 wxColour *arg3 = 0 ;
9802 void *argp1 = 0 ;
9803 int res1 = 0 ;
9804 int val2 ;
9805 int ecode2 = 0 ;
9806 wxColour temp3 ;
9807 PyObject * obj0 = 0 ;
9808 PyObject * obj1 = 0 ;
9809 PyObject * obj2 = 0 ;
9810 char * kwnames[] = {
9811 (char *) "self",(char *) "item",(char *) "c", NULL
9812 };
9813
9814 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9815 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9816 if (!SWIG_IsOK(res1)) {
9817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9818 }
9819 arg1 = reinterpret_cast< wxListBox * >(argp1);
9820 ecode2 = SWIG_AsVal_int(obj1, &val2);
9821 if (!SWIG_IsOK(ecode2)) {
9822 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "2"" of type '" "int""'");
9823 }
9824 arg2 = static_cast< int >(val2);
9825 {
9826 arg3 = &temp3;
9827 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9828 }
9829 {
9830 PyThreadState* __tstate = wxPyBeginAllowThreads();
9831 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
9832 wxPyEndAllowThreads(__tstate);
9833 if (PyErr_Occurred()) SWIG_fail;
9834 }
9835 resultobj = SWIG_Py_Void();
9836 return resultobj;
9837 fail:
9838 return NULL;
9839 }
9840
9841
9842 SWIGINTERN PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9843 PyObject *resultobj = 0;
9844 wxListBox *arg1 = (wxListBox *) 0 ;
9845 int arg2 ;
9846 wxColour *arg3 = 0 ;
9847 void *argp1 = 0 ;
9848 int res1 = 0 ;
9849 int val2 ;
9850 int ecode2 = 0 ;
9851 wxColour temp3 ;
9852 PyObject * obj0 = 0 ;
9853 PyObject * obj1 = 0 ;
9854 PyObject * obj2 = 0 ;
9855 char * kwnames[] = {
9856 (char *) "self",(char *) "item",(char *) "c", NULL
9857 };
9858
9859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9861 if (!SWIG_IsOK(res1)) {
9862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9863 }
9864 arg1 = reinterpret_cast< wxListBox * >(argp1);
9865 ecode2 = SWIG_AsVal_int(obj1, &val2);
9866 if (!SWIG_IsOK(ecode2)) {
9867 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "2"" of type '" "int""'");
9868 }
9869 arg2 = static_cast< int >(val2);
9870 {
9871 arg3 = &temp3;
9872 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9873 }
9874 {
9875 PyThreadState* __tstate = wxPyBeginAllowThreads();
9876 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
9877 wxPyEndAllowThreads(__tstate);
9878 if (PyErr_Occurred()) SWIG_fail;
9879 }
9880 resultobj = SWIG_Py_Void();
9881 return resultobj;
9882 fail:
9883 return NULL;
9884 }
9885
9886
9887 SWIGINTERN PyObject *_wrap_ListBox_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9888 PyObject *resultobj = 0;
9889 wxListBox *arg1 = (wxListBox *) 0 ;
9890 int arg2 ;
9891 wxFont *arg3 = 0 ;
9892 void *argp1 = 0 ;
9893 int res1 = 0 ;
9894 int val2 ;
9895 int ecode2 = 0 ;
9896 void *argp3 = 0 ;
9897 int res3 = 0 ;
9898 PyObject * obj0 = 0 ;
9899 PyObject * obj1 = 0 ;
9900 PyObject * obj2 = 0 ;
9901 char * kwnames[] = {
9902 (char *) "self",(char *) "item",(char *) "f", NULL
9903 };
9904
9905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9907 if (!SWIG_IsOK(res1)) {
9908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemFont" "', expected argument " "1"" of type '" "wxListBox *""'");
9909 }
9910 arg1 = reinterpret_cast< wxListBox * >(argp1);
9911 ecode2 = SWIG_AsVal_int(obj1, &val2);
9912 if (!SWIG_IsOK(ecode2)) {
9913 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemFont" "', expected argument " "2"" of type '" "int""'");
9914 }
9915 arg2 = static_cast< int >(val2);
9916 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
9917 if (!SWIG_IsOK(res3)) {
9918 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9919 }
9920 if (!argp3) {
9921 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9922 }
9923 arg3 = reinterpret_cast< wxFont * >(argp3);
9924 {
9925 PyThreadState* __tstate = wxPyBeginAllowThreads();
9926 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
9927 wxPyEndAllowThreads(__tstate);
9928 if (PyErr_Occurred()) SWIG_fail;
9929 }
9930 resultobj = SWIG_Py_Void();
9931 return resultobj;
9932 fail:
9933 return NULL;
9934 }
9935
9936
9937 SWIGINTERN PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9938 PyObject *resultobj = 0;
9939 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
9940 SwigValueWrapper<wxVisualAttributes > result;
9941 int val1 ;
9942 int ecode1 = 0 ;
9943 PyObject * obj0 = 0 ;
9944 char * kwnames[] = {
9945 (char *) "variant", NULL
9946 };
9947
9948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
9949 if (obj0) {
9950 ecode1 = SWIG_AsVal_int(obj0, &val1);
9951 if (!SWIG_IsOK(ecode1)) {
9952 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
9953 }
9954 arg1 = static_cast< wxWindowVariant >(val1);
9955 }
9956 {
9957 if (!wxPyCheckForApp()) SWIG_fail;
9958 PyThreadState* __tstate = wxPyBeginAllowThreads();
9959 result = wxListBox::GetClassDefaultAttributes(arg1);
9960 wxPyEndAllowThreads(__tstate);
9961 if (PyErr_Occurred()) SWIG_fail;
9962 }
9963 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
9964 return resultobj;
9965 fail:
9966 return NULL;
9967 }
9968
9969
9970 SWIGINTERN PyObject *ListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9971 PyObject *obj;
9972 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9973 SWIG_TypeNewClientData(SWIGTYPE_p_wxListBox, SWIG_NewClientData(obj));
9974 return SWIG_Py_Void();
9975 }
9976
9977 SWIGINTERN PyObject *ListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9978 return SWIG_Python_InitShadowInstance(args);
9979 }
9980
9981 SWIGINTERN PyObject *_wrap_new_CheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9982 PyObject *resultobj = 0;
9983 wxWindow *arg1 = (wxWindow *) 0 ;
9984 int arg2 = (int) -1 ;
9985 wxPoint const &arg3_defvalue = wxDefaultPosition ;
9986 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
9987 wxSize const &arg4_defvalue = wxDefaultSize ;
9988 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
9989 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
9990 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
9991 long arg6 = (long) 0 ;
9992 wxValidator const &arg7_defvalue = wxDefaultValidator ;
9993 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
9994 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
9995 wxString *arg8 = (wxString *) &arg8_defvalue ;
9996 wxCheckListBox *result = 0 ;
9997 void *argp1 = 0 ;
9998 int res1 = 0 ;
9999 int val2 ;
10000 int ecode2 = 0 ;
10001 wxPoint temp3 ;
10002 wxSize temp4 ;
10003 bool temp5 = false ;
10004 long val6 ;
10005 int ecode6 = 0 ;
10006 void *argp7 = 0 ;
10007 int res7 = 0 ;
10008 bool temp8 = false ;
10009 PyObject * obj0 = 0 ;
10010 PyObject * obj1 = 0 ;
10011 PyObject * obj2 = 0 ;
10012 PyObject * obj3 = 0 ;
10013 PyObject * obj4 = 0 ;
10014 PyObject * obj5 = 0 ;
10015 PyObject * obj6 = 0 ;
10016 PyObject * obj7 = 0 ;
10017 char * kwnames[] = {
10018 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10019 };
10020
10021 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
10022 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
10023 if (!SWIG_IsOK(res1)) {
10024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
10025 }
10026 arg1 = reinterpret_cast< wxWindow * >(argp1);
10027 if (obj1) {
10028 ecode2 = SWIG_AsVal_int(obj1, &val2);
10029 if (!SWIG_IsOK(ecode2)) {
10030 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckListBox" "', expected argument " "2"" of type '" "int""'");
10031 }
10032 arg2 = static_cast< int >(val2);
10033 }
10034 if (obj2) {
10035 {
10036 arg3 = &temp3;
10037 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10038 }
10039 }
10040 if (obj3) {
10041 {
10042 arg4 = &temp4;
10043 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
10044 }
10045 }
10046 if (obj4) {
10047 {
10048 if (! PySequence_Check(obj4)) {
10049 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10050 SWIG_fail;
10051 }
10052 arg5 = new wxArrayString;
10053 temp5 = true;
10054 int i, len=PySequence_Length(obj4);
10055 for (i=0; i<len; i++) {
10056 PyObject* item = PySequence_GetItem(obj4, i);
10057 wxString* s = wxString_in_helper(item);
10058 if (PyErr_Occurred()) SWIG_fail;
10059 arg5->Add(*s);
10060 delete s;
10061 Py_DECREF(item);
10062 }
10063 }
10064 }
10065 if (obj5) {
10066 ecode6 = SWIG_AsVal_long(obj5, &val6);
10067 if (!SWIG_IsOK(ecode6)) {
10068 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckListBox" "', expected argument " "6"" of type '" "long""'");
10069 }
10070 arg6 = static_cast< long >(val6);
10071 }
10072 if (obj6) {
10073 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
10074 if (!SWIG_IsOK(res7)) {
10075 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
10076 }
10077 if (!argp7) {
10078 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
10079 }
10080 arg7 = reinterpret_cast< wxValidator * >(argp7);
10081 }
10082 if (obj7) {
10083 {
10084 arg8 = wxString_in_helper(obj7);
10085 if (arg8 == NULL) SWIG_fail;
10086 temp8 = true;
10087 }
10088 }
10089 {
10090 if (!wxPyCheckForApp()) SWIG_fail;
10091 PyThreadState* __tstate = wxPyBeginAllowThreads();
10092 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10093 wxPyEndAllowThreads(__tstate);
10094 if (PyErr_Occurred()) SWIG_fail;
10095 }
10096 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_NEW | 0 );
10097 {
10098 if (temp5) delete arg5;
10099 }
10100 {
10101 if (temp8)
10102 delete arg8;
10103 }
10104 return resultobj;
10105 fail:
10106 {
10107 if (temp5) delete arg5;
10108 }
10109 {
10110 if (temp8)
10111 delete arg8;
10112 }
10113 return NULL;
10114 }
10115
10116
10117 SWIGINTERN PyObject *_wrap_new_PreCheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10118 PyObject *resultobj = 0;
10119 wxCheckListBox *result = 0 ;
10120
10121 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckListBox",0,0,0)) SWIG_fail;
10122 {
10123 if (!wxPyCheckForApp()) SWIG_fail;
10124 PyThreadState* __tstate = wxPyBeginAllowThreads();
10125 result = (wxCheckListBox *)new wxCheckListBox();
10126 wxPyEndAllowThreads(__tstate);
10127 if (PyErr_Occurred()) SWIG_fail;
10128 }
10129 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_OWN | 0 );
10130 return resultobj;
10131 fail:
10132 return NULL;
10133 }
10134
10135
10136 SWIGINTERN PyObject *_wrap_CheckListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10137 PyObject *resultobj = 0;
10138 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10139 wxWindow *arg2 = (wxWindow *) 0 ;
10140 int arg3 = (int) -1 ;
10141 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10142 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10143 wxSize const &arg5_defvalue = wxDefaultSize ;
10144 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10145 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
10146 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
10147 long arg7 = (long) 0 ;
10148 wxValidator const &arg8_defvalue = wxDefaultValidator ;
10149 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
10150 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
10151 wxString *arg9 = (wxString *) &arg9_defvalue ;
10152 bool result;
10153 void *argp1 = 0 ;
10154 int res1 = 0 ;
10155 void *argp2 = 0 ;
10156 int res2 = 0 ;
10157 int val3 ;
10158 int ecode3 = 0 ;
10159 wxPoint temp4 ;
10160 wxSize temp5 ;
10161 bool temp6 = false ;
10162 long val7 ;
10163 int ecode7 = 0 ;
10164 void *argp8 = 0 ;
10165 int res8 = 0 ;
10166 bool temp9 = false ;
10167 PyObject * obj0 = 0 ;
10168 PyObject * obj1 = 0 ;
10169 PyObject * obj2 = 0 ;
10170 PyObject * obj3 = 0 ;
10171 PyObject * obj4 = 0 ;
10172 PyObject * obj5 = 0 ;
10173 PyObject * obj6 = 0 ;
10174 PyObject * obj7 = 0 ;
10175 PyObject * obj8 = 0 ;
10176 char * kwnames[] = {
10177 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10178 };
10179
10180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
10181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10182 if (!SWIG_IsOK(res1)) {
10183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Create" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10184 }
10185 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10186 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
10187 if (!SWIG_IsOK(res2)) {
10188 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
10189 }
10190 arg2 = reinterpret_cast< wxWindow * >(argp2);
10191 if (obj2) {
10192 ecode3 = SWIG_AsVal_int(obj2, &val3);
10193 if (!SWIG_IsOK(ecode3)) {
10194 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Create" "', expected argument " "3"" of type '" "int""'");
10195 }
10196 arg3 = static_cast< int >(val3);
10197 }
10198 if (obj3) {
10199 {
10200 arg4 = &temp4;
10201 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10202 }
10203 }
10204 if (obj4) {
10205 {
10206 arg5 = &temp5;
10207 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10208 }
10209 }
10210 if (obj5) {
10211 {
10212 if (! PySequence_Check(obj5)) {
10213 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10214 SWIG_fail;
10215 }
10216 arg6 = new wxArrayString;
10217 temp6 = true;
10218 int i, len=PySequence_Length(obj5);
10219 for (i=0; i<len; i++) {
10220 PyObject* item = PySequence_GetItem(obj5, i);
10221 wxString* s = wxString_in_helper(item);
10222 if (PyErr_Occurred()) SWIG_fail;
10223 arg6->Add(*s);
10224 delete s;
10225 Py_DECREF(item);
10226 }
10227 }
10228 }
10229 if (obj6) {
10230 ecode7 = SWIG_AsVal_long(obj6, &val7);
10231 if (!SWIG_IsOK(ecode7)) {
10232 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckListBox_Create" "', expected argument " "7"" of type '" "long""'");
10233 }
10234 arg7 = static_cast< long >(val7);
10235 }
10236 if (obj7) {
10237 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
10238 if (!SWIG_IsOK(res8)) {
10239 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10240 }
10241 if (!argp8) {
10242 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10243 }
10244 arg8 = reinterpret_cast< wxValidator * >(argp8);
10245 }
10246 if (obj8) {
10247 {
10248 arg9 = wxString_in_helper(obj8);
10249 if (arg9 == NULL) SWIG_fail;
10250 temp9 = true;
10251 }
10252 }
10253 {
10254 PyThreadState* __tstate = wxPyBeginAllowThreads();
10255 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
10256 wxPyEndAllowThreads(__tstate);
10257 if (PyErr_Occurred()) SWIG_fail;
10258 }
10259 {
10260 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10261 }
10262 {
10263 if (temp6) delete arg6;
10264 }
10265 {
10266 if (temp9)
10267 delete arg9;
10268 }
10269 return resultobj;
10270 fail:
10271 {
10272 if (temp6) delete arg6;
10273 }
10274 {
10275 if (temp9)
10276 delete arg9;
10277 }
10278 return NULL;
10279 }
10280
10281
10282 SWIGINTERN PyObject *_wrap_CheckListBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10283 PyObject *resultobj = 0;
10284 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10285 unsigned int arg2 ;
10286 bool result;
10287 void *argp1 = 0 ;
10288 int res1 = 0 ;
10289 unsigned int val2 ;
10290 int ecode2 = 0 ;
10291 PyObject * obj0 = 0 ;
10292 PyObject * obj1 = 0 ;
10293 char * kwnames[] = {
10294 (char *) "self",(char *) "index", NULL
10295 };
10296
10297 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) SWIG_fail;
10298 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10299 if (!SWIG_IsOK(res1)) {
10300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10301 }
10302 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10303 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
10304 if (!SWIG_IsOK(ecode2)) {
10305 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_IsChecked" "', expected argument " "2"" of type '" "unsigned int""'");
10306 }
10307 arg2 = static_cast< unsigned int >(val2);
10308 {
10309 PyThreadState* __tstate = wxPyBeginAllowThreads();
10310 result = (bool)(arg1)->IsChecked(arg2);
10311 wxPyEndAllowThreads(__tstate);
10312 if (PyErr_Occurred()) SWIG_fail;
10313 }
10314 {
10315 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10316 }
10317 return resultobj;
10318 fail:
10319 return NULL;
10320 }
10321
10322
10323 SWIGINTERN PyObject *_wrap_CheckListBox_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10324 PyObject *resultobj = 0;
10325 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10326 unsigned int arg2 ;
10327 int arg3 = (int) true ;
10328 void *argp1 = 0 ;
10329 int res1 = 0 ;
10330 unsigned int val2 ;
10331 int ecode2 = 0 ;
10332 int val3 ;
10333 int ecode3 = 0 ;
10334 PyObject * obj0 = 0 ;
10335 PyObject * obj1 = 0 ;
10336 PyObject * obj2 = 0 ;
10337 char * kwnames[] = {
10338 (char *) "self",(char *) "index",(char *) "check", NULL
10339 };
10340
10341 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10342 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10343 if (!SWIG_IsOK(res1)) {
10344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Check" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10345 }
10346 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10347 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
10348 if (!SWIG_IsOK(ecode2)) {
10349 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_Check" "', expected argument " "2"" of type '" "unsigned int""'");
10350 }
10351 arg2 = static_cast< unsigned int >(val2);
10352 if (obj2) {
10353 ecode3 = SWIG_AsVal_int(obj2, &val3);
10354 if (!SWIG_IsOK(ecode3)) {
10355 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Check" "', expected argument " "3"" of type '" "int""'");
10356 }
10357 arg3 = static_cast< int >(val3);
10358 }
10359 {
10360 PyThreadState* __tstate = wxPyBeginAllowThreads();
10361 (arg1)->Check(arg2,arg3);
10362 wxPyEndAllowThreads(__tstate);
10363 if (PyErr_Occurred()) SWIG_fail;
10364 }
10365 resultobj = SWIG_Py_Void();
10366 return resultobj;
10367 fail:
10368 return NULL;
10369 }
10370
10371
10372 SWIGINTERN PyObject *CheckListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10373 PyObject *obj;
10374 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10375 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckListBox, SWIG_NewClientData(obj));
10376 return SWIG_Py_Void();
10377 }
10378
10379 SWIGINTERN PyObject *CheckListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10380 return SWIG_Python_InitShadowInstance(args);
10381 }
10382
10383 SWIGINTERN int TextCtrlNameStr_set(PyObject *) {
10384 SWIG_Error(SWIG_AttributeError,"Variable TextCtrlNameStr is read-only.");
10385 return 1;
10386 }
10387
10388
10389 SWIGINTERN PyObject *TextCtrlNameStr_get(void) {
10390 PyObject *pyobj = 0;
10391
10392 {
10393 #if wxUSE_UNICODE
10394 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10395 #else
10396 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10397 #endif
10398 }
10399 return pyobj;
10400 }
10401
10402
10403 SWIGINTERN PyObject *_wrap_new_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10404 PyObject *resultobj = 0;
10405 wxColour const &arg1_defvalue = wxNullColour ;
10406 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
10407 wxColour const &arg2_defvalue = wxNullColour ;
10408 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
10409 wxFont const &arg3_defvalue = wxNullFont ;
10410 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
10411 wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ;
10412 wxTextAttr *result = 0 ;
10413 wxColour temp1 ;
10414 wxColour temp2 ;
10415 void *argp3 = 0 ;
10416 int res3 = 0 ;
10417 int val4 ;
10418 int ecode4 = 0 ;
10419 PyObject * obj0 = 0 ;
10420 PyObject * obj1 = 0 ;
10421 PyObject * obj2 = 0 ;
10422 PyObject * obj3 = 0 ;
10423 char * kwnames[] = {
10424 (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL
10425 };
10426
10427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10428 if (obj0) {
10429 {
10430 arg1 = &temp1;
10431 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
10432 }
10433 }
10434 if (obj1) {
10435 {
10436 arg2 = &temp2;
10437 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10438 }
10439 }
10440 if (obj2) {
10441 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
10442 if (!SWIG_IsOK(res3)) {
10443 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10444 }
10445 if (!argp3) {
10446 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10447 }
10448 arg3 = reinterpret_cast< wxFont * >(argp3);
10449 }
10450 if (obj3) {
10451 ecode4 = SWIG_AsVal_int(obj3, &val4);
10452 if (!SWIG_IsOK(ecode4)) {
10453 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextAttr" "', expected argument " "4"" of type '" "wxTextAttrAlignment""'");
10454 }
10455 arg4 = static_cast< wxTextAttrAlignment >(val4);
10456 }
10457 {
10458 PyThreadState* __tstate = wxPyBeginAllowThreads();
10459 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,arg4);
10460 wxPyEndAllowThreads(__tstate);
10461 if (PyErr_Occurred()) SWIG_fail;
10462 }
10463 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_NEW | 0 );
10464 return resultobj;
10465 fail:
10466 return NULL;
10467 }
10468
10469
10470 SWIGINTERN PyObject *_wrap_delete_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10471 PyObject *resultobj = 0;
10472 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10473 void *argp1 = 0 ;
10474 int res1 = 0 ;
10475 PyObject *swig_obj[1] ;
10476
10477 if (!args) SWIG_fail;
10478 swig_obj[0] = args;
10479 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, SWIG_POINTER_DISOWN | 0 );
10480 if (!SWIG_IsOK(res1)) {
10481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TextAttr" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10482 }
10483 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10484 {
10485 PyThreadState* __tstate = wxPyBeginAllowThreads();
10486 delete arg1;
10487
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_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10499 PyObject *resultobj = 0;
10500 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10501 void *argp1 = 0 ;
10502 int res1 = 0 ;
10503 PyObject *swig_obj[1] ;
10504
10505 if (!args) SWIG_fail;
10506 swig_obj[0] = args;
10507 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10508 if (!SWIG_IsOK(res1)) {
10509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Init" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10510 }
10511 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10512 {
10513 PyThreadState* __tstate = wxPyBeginAllowThreads();
10514 (arg1)->Init();
10515 wxPyEndAllowThreads(__tstate);
10516 if (PyErr_Occurred()) SWIG_fail;
10517 }
10518 resultobj = SWIG_Py_Void();
10519 return resultobj;
10520 fail:
10521 return NULL;
10522 }
10523
10524
10525 SWIGINTERN PyObject *_wrap_TextAttr_Merge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10526 PyObject *resultobj = 0;
10527 wxTextAttr *arg1 = 0 ;
10528 wxTextAttr *arg2 = 0 ;
10529 wxTextAttr result;
10530 void *argp1 = 0 ;
10531 int res1 = 0 ;
10532 void *argp2 = 0 ;
10533 int res2 = 0 ;
10534 PyObject * obj0 = 0 ;
10535 PyObject * obj1 = 0 ;
10536 char * kwnames[] = {
10537 (char *) "base",(char *) "overlay", NULL
10538 };
10539
10540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_Merge",kwnames,&obj0,&obj1)) SWIG_fail;
10541 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
10542 if (!SWIG_IsOK(res1)) {
10543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10544 }
10545 if (!argp1) {
10546 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10547 }
10548 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10549 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
10550 if (!SWIG_IsOK(res2)) {
10551 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10552 }
10553 if (!argp2) {
10554 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10555 }
10556 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
10557 {
10558 PyThreadState* __tstate = wxPyBeginAllowThreads();
10559 result = wxTextAttr::Merge((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2);
10560 wxPyEndAllowThreads(__tstate);
10561 if (PyErr_Occurred()) SWIG_fail;
10562 }
10563 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
10564 return resultobj;
10565 fail:
10566 return NULL;
10567 }
10568
10569
10570 SWIGINTERN PyObject *_wrap_TextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10571 PyObject *resultobj = 0;
10572 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10573 wxColour *arg2 = 0 ;
10574 void *argp1 = 0 ;
10575 int res1 = 0 ;
10576 wxColour temp2 ;
10577 PyObject * obj0 = 0 ;
10578 PyObject * obj1 = 0 ;
10579 char * kwnames[] = {
10580 (char *) "self",(char *) "colText", NULL
10581 };
10582
10583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
10584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10585 if (!SWIG_IsOK(res1)) {
10586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10587 }
10588 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10589 {
10590 arg2 = &temp2;
10591 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10592 }
10593 {
10594 PyThreadState* __tstate = wxPyBeginAllowThreads();
10595 (arg1)->SetTextColour((wxColour const &)*arg2);
10596 wxPyEndAllowThreads(__tstate);
10597 if (PyErr_Occurred()) SWIG_fail;
10598 }
10599 resultobj = SWIG_Py_Void();
10600 return resultobj;
10601 fail:
10602 return NULL;
10603 }
10604
10605
10606 SWIGINTERN PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10607 PyObject *resultobj = 0;
10608 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10609 wxColour *arg2 = 0 ;
10610 void *argp1 = 0 ;
10611 int res1 = 0 ;
10612 wxColour temp2 ;
10613 PyObject * obj0 = 0 ;
10614 PyObject * obj1 = 0 ;
10615 char * kwnames[] = {
10616 (char *) "self",(char *) "colBack", NULL
10617 };
10618
10619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
10620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10621 if (!SWIG_IsOK(res1)) {
10622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10623 }
10624 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10625 {
10626 arg2 = &temp2;
10627 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10628 }
10629 {
10630 PyThreadState* __tstate = wxPyBeginAllowThreads();
10631 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
10632 wxPyEndAllowThreads(__tstate);
10633 if (PyErr_Occurred()) SWIG_fail;
10634 }
10635 resultobj = SWIG_Py_Void();
10636 return resultobj;
10637 fail:
10638 return NULL;
10639 }
10640
10641
10642 SWIGINTERN PyObject *_wrap_TextAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10643 PyObject *resultobj = 0;
10644 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10645 wxFont *arg2 = 0 ;
10646 long arg3 = (long) wxTEXT_ATTR_FONT ;
10647 void *argp1 = 0 ;
10648 int res1 = 0 ;
10649 void *argp2 = 0 ;
10650 int res2 = 0 ;
10651 long val3 ;
10652 int ecode3 = 0 ;
10653 PyObject * obj0 = 0 ;
10654 PyObject * obj1 = 0 ;
10655 PyObject * obj2 = 0 ;
10656 char * kwnames[] = {
10657 (char *) "self",(char *) "font",(char *) "flags", NULL
10658 };
10659
10660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10662 if (!SWIG_IsOK(res1)) {
10663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFont" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10664 }
10665 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10666 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
10667 if (!SWIG_IsOK(res2)) {
10668 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10669 }
10670 if (!argp2) {
10671 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10672 }
10673 arg2 = reinterpret_cast< wxFont * >(argp2);
10674 if (obj2) {
10675 ecode3 = SWIG_AsVal_long(obj2, &val3);
10676 if (!SWIG_IsOK(ecode3)) {
10677 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetFont" "', expected argument " "3"" of type '" "long""'");
10678 }
10679 arg3 = static_cast< long >(val3);
10680 }
10681 {
10682 PyThreadState* __tstate = wxPyBeginAllowThreads();
10683 (arg1)->SetFont((wxFont const &)*arg2,arg3);
10684 wxPyEndAllowThreads(__tstate);
10685 if (PyErr_Occurred()) SWIG_fail;
10686 }
10687 resultobj = SWIG_Py_Void();
10688 return resultobj;
10689 fail:
10690 return NULL;
10691 }
10692
10693
10694 SWIGINTERN PyObject *_wrap_TextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10695 PyObject *resultobj = 0;
10696 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10697 wxTextAttrAlignment arg2 ;
10698 void *argp1 = 0 ;
10699 int res1 = 0 ;
10700 int val2 ;
10701 int ecode2 = 0 ;
10702 PyObject * obj0 = 0 ;
10703 PyObject * obj1 = 0 ;
10704 char * kwnames[] = {
10705 (char *) "self",(char *) "alignment", NULL
10706 };
10707
10708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail;
10709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10710 if (!SWIG_IsOK(res1)) {
10711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10712 }
10713 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10714 ecode2 = SWIG_AsVal_int(obj1, &val2);
10715 if (!SWIG_IsOK(ecode2)) {
10716 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
10717 }
10718 arg2 = static_cast< wxTextAttrAlignment >(val2);
10719 {
10720 PyThreadState* __tstate = wxPyBeginAllowThreads();
10721 (arg1)->SetAlignment(arg2);
10722 wxPyEndAllowThreads(__tstate);
10723 if (PyErr_Occurred()) SWIG_fail;
10724 }
10725 resultobj = SWIG_Py_Void();
10726 return resultobj;
10727 fail:
10728 return NULL;
10729 }
10730
10731
10732 SWIGINTERN PyObject *_wrap_TextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10733 PyObject *resultobj = 0;
10734 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10735 wxArrayInt *arg2 = 0 ;
10736 void *argp1 = 0 ;
10737 int res1 = 0 ;
10738 bool temp2 = false ;
10739 PyObject * obj0 = 0 ;
10740 PyObject * obj1 = 0 ;
10741 char * kwnames[] = {
10742 (char *) "self",(char *) "tabs", NULL
10743 };
10744
10745 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail;
10746 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10747 if (!SWIG_IsOK(res1)) {
10748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTabs" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10749 }
10750 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10751 {
10752 if (! PySequence_Check(obj1)) {
10753 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10754 SWIG_fail;
10755 }
10756 arg2 = new wxArrayInt;
10757 temp2 = true;
10758 int i, len=PySequence_Length(obj1);
10759 for (i=0; i<len; i++) {
10760 PyObject* item = PySequence_GetItem(obj1, i);
10761 PyObject* number = PyNumber_Int(item);
10762 arg2->Add(PyInt_AS_LONG(number));
10763 Py_DECREF(item);
10764 Py_DECREF(number);
10765 }
10766 }
10767 {
10768 PyThreadState* __tstate = wxPyBeginAllowThreads();
10769 (arg1)->SetTabs((wxArrayInt const &)*arg2);
10770 wxPyEndAllowThreads(__tstate);
10771 if (PyErr_Occurred()) SWIG_fail;
10772 }
10773 resultobj = SWIG_Py_Void();
10774 {
10775 if (temp2) delete arg2;
10776 }
10777 return resultobj;
10778 fail:
10779 {
10780 if (temp2) delete arg2;
10781 }
10782 return NULL;
10783 }
10784
10785
10786 SWIGINTERN PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10787 PyObject *resultobj = 0;
10788 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10789 int arg2 ;
10790 int arg3 = (int) 0 ;
10791 void *argp1 = 0 ;
10792 int res1 = 0 ;
10793 int val2 ;
10794 int ecode2 = 0 ;
10795 int val3 ;
10796 int ecode3 = 0 ;
10797 PyObject * obj0 = 0 ;
10798 PyObject * obj1 = 0 ;
10799 PyObject * obj2 = 0 ;
10800 char * kwnames[] = {
10801 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
10802 };
10803
10804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10806 if (!SWIG_IsOK(res1)) {
10807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10808 }
10809 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10810 ecode2 = SWIG_AsVal_int(obj1, &val2);
10811 if (!SWIG_IsOK(ecode2)) {
10812 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'");
10813 }
10814 arg2 = static_cast< int >(val2);
10815 if (obj2) {
10816 ecode3 = SWIG_AsVal_int(obj2, &val3);
10817 if (!SWIG_IsOK(ecode3)) {
10818 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'");
10819 }
10820 arg3 = static_cast< int >(val3);
10821 }
10822 {
10823 PyThreadState* __tstate = wxPyBeginAllowThreads();
10824 (arg1)->SetLeftIndent(arg2,arg3);
10825 wxPyEndAllowThreads(__tstate);
10826 if (PyErr_Occurred()) SWIG_fail;
10827 }
10828 resultobj = SWIG_Py_Void();
10829 return resultobj;
10830 fail:
10831 return NULL;
10832 }
10833
10834
10835 SWIGINTERN PyObject *_wrap_TextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10836 PyObject *resultobj = 0;
10837 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10838 int arg2 ;
10839 void *argp1 = 0 ;
10840 int res1 = 0 ;
10841 int val2 ;
10842 int ecode2 = 0 ;
10843 PyObject * obj0 = 0 ;
10844 PyObject * obj1 = 0 ;
10845 char * kwnames[] = {
10846 (char *) "self",(char *) "indent", NULL
10847 };
10848
10849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail;
10850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10851 if (!SWIG_IsOK(res1)) {
10852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10853 }
10854 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10855 ecode2 = SWIG_AsVal_int(obj1, &val2);
10856 if (!SWIG_IsOK(ecode2)) {
10857 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'");
10858 }
10859 arg2 = static_cast< int >(val2);
10860 {
10861 PyThreadState* __tstate = wxPyBeginAllowThreads();
10862 (arg1)->SetRightIndent(arg2);
10863 wxPyEndAllowThreads(__tstate);
10864 if (PyErr_Occurred()) SWIG_fail;
10865 }
10866 resultobj = SWIG_Py_Void();
10867 return resultobj;
10868 fail:
10869 return NULL;
10870 }
10871
10872
10873 SWIGINTERN PyObject *_wrap_TextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10874 PyObject *resultobj = 0;
10875 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10876 long arg2 ;
10877 void *argp1 = 0 ;
10878 int res1 = 0 ;
10879 long val2 ;
10880 int ecode2 = 0 ;
10881 PyObject * obj0 = 0 ;
10882 PyObject * obj1 = 0 ;
10883 char * kwnames[] = {
10884 (char *) "self",(char *) "flags", NULL
10885 };
10886
10887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
10888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10889 if (!SWIG_IsOK(res1)) {
10890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFlags" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10891 }
10892 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10893 ecode2 = SWIG_AsVal_long(obj1, &val2);
10894 if (!SWIG_IsOK(ecode2)) {
10895 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'");
10896 }
10897 arg2 = static_cast< long >(val2);
10898 {
10899 PyThreadState* __tstate = wxPyBeginAllowThreads();
10900 (arg1)->SetFlags(arg2);
10901 wxPyEndAllowThreads(__tstate);
10902 if (PyErr_Occurred()) SWIG_fail;
10903 }
10904 resultobj = SWIG_Py_Void();
10905 return resultobj;
10906 fail:
10907 return NULL;
10908 }
10909
10910
10911 SWIGINTERN PyObject *_wrap_TextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10912 PyObject *resultobj = 0;
10913 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10914 bool result;
10915 void *argp1 = 0 ;
10916 int res1 = 0 ;
10917 PyObject *swig_obj[1] ;
10918
10919 if (!args) SWIG_fail;
10920 swig_obj[0] = args;
10921 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10922 if (!SWIG_IsOK(res1)) {
10923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10924 }
10925 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10926 {
10927 PyThreadState* __tstate = wxPyBeginAllowThreads();
10928 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
10929 wxPyEndAllowThreads(__tstate);
10930 if (PyErr_Occurred()) SWIG_fail;
10931 }
10932 {
10933 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10934 }
10935 return resultobj;
10936 fail:
10937 return NULL;
10938 }
10939
10940
10941 SWIGINTERN PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10942 PyObject *resultobj = 0;
10943 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10944 bool result;
10945 void *argp1 = 0 ;
10946 int res1 = 0 ;
10947 PyObject *swig_obj[1] ;
10948
10949 if (!args) SWIG_fail;
10950 swig_obj[0] = args;
10951 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10952 if (!SWIG_IsOK(res1)) {
10953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10954 }
10955 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10956 {
10957 PyThreadState* __tstate = wxPyBeginAllowThreads();
10958 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
10959 wxPyEndAllowThreads(__tstate);
10960 if (PyErr_Occurred()) SWIG_fail;
10961 }
10962 {
10963 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10964 }
10965 return resultobj;
10966 fail:
10967 return NULL;
10968 }
10969
10970
10971 SWIGINTERN PyObject *_wrap_TextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10972 PyObject *resultobj = 0;
10973 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10974 bool result;
10975 void *argp1 = 0 ;
10976 int res1 = 0 ;
10977 PyObject *swig_obj[1] ;
10978
10979 if (!args) SWIG_fail;
10980 swig_obj[0] = args;
10981 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10982 if (!SWIG_IsOK(res1)) {
10983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10984 }
10985 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10986 {
10987 PyThreadState* __tstate = wxPyBeginAllowThreads();
10988 result = (bool)((wxTextAttr const *)arg1)->HasFont();
10989 wxPyEndAllowThreads(__tstate);
10990 if (PyErr_Occurred()) SWIG_fail;
10991 }
10992 {
10993 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10994 }
10995 return resultobj;
10996 fail:
10997 return NULL;
10998 }
10999
11000
11001 SWIGINTERN PyObject *_wrap_TextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11002 PyObject *resultobj = 0;
11003 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11004 bool result;
11005 void *argp1 = 0 ;
11006 int res1 = 0 ;
11007 PyObject *swig_obj[1] ;
11008
11009 if (!args) SWIG_fail;
11010 swig_obj[0] = args;
11011 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11012 if (!SWIG_IsOK(res1)) {
11013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11014 }
11015 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11016 {
11017 PyThreadState* __tstate = wxPyBeginAllowThreads();
11018 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
11019 wxPyEndAllowThreads(__tstate);
11020 if (PyErr_Occurred()) SWIG_fail;
11021 }
11022 {
11023 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11024 }
11025 return resultobj;
11026 fail:
11027 return NULL;
11028 }
11029
11030
11031 SWIGINTERN PyObject *_wrap_TextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11032 PyObject *resultobj = 0;
11033 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11034 bool result;
11035 void *argp1 = 0 ;
11036 int res1 = 0 ;
11037 PyObject *swig_obj[1] ;
11038
11039 if (!args) SWIG_fail;
11040 swig_obj[0] = args;
11041 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11042 if (!SWIG_IsOK(res1)) {
11043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11044 }
11045 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11046 {
11047 PyThreadState* __tstate = wxPyBeginAllowThreads();
11048 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
11049 wxPyEndAllowThreads(__tstate);
11050 if (PyErr_Occurred()) SWIG_fail;
11051 }
11052 {
11053 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11054 }
11055 return resultobj;
11056 fail:
11057 return NULL;
11058 }
11059
11060
11061 SWIGINTERN PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11062 PyObject *resultobj = 0;
11063 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11064 bool result;
11065 void *argp1 = 0 ;
11066 int res1 = 0 ;
11067 PyObject *swig_obj[1] ;
11068
11069 if (!args) SWIG_fail;
11070 swig_obj[0] = args;
11071 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11072 if (!SWIG_IsOK(res1)) {
11073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11074 }
11075 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11076 {
11077 PyThreadState* __tstate = wxPyBeginAllowThreads();
11078 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
11079 wxPyEndAllowThreads(__tstate);
11080 if (PyErr_Occurred()) SWIG_fail;
11081 }
11082 {
11083 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11084 }
11085 return resultobj;
11086 fail:
11087 return NULL;
11088 }
11089
11090
11091 SWIGINTERN PyObject *_wrap_TextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11092 PyObject *resultobj = 0;
11093 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11094 bool result;
11095 void *argp1 = 0 ;
11096 int res1 = 0 ;
11097 PyObject *swig_obj[1] ;
11098
11099 if (!args) SWIG_fail;
11100 swig_obj[0] = args;
11101 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11102 if (!SWIG_IsOK(res1)) {
11103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11104 }
11105 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11106 {
11107 PyThreadState* __tstate = wxPyBeginAllowThreads();
11108 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
11109 wxPyEndAllowThreads(__tstate);
11110 if (PyErr_Occurred()) SWIG_fail;
11111 }
11112 {
11113 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11114 }
11115 return resultobj;
11116 fail:
11117 return NULL;
11118 }
11119
11120
11121 SWIGINTERN PyObject *_wrap_TextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11122 PyObject *resultobj = 0;
11123 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11124 long arg2 ;
11125 bool result;
11126 void *argp1 = 0 ;
11127 int res1 = 0 ;
11128 long val2 ;
11129 int ecode2 = 0 ;
11130 PyObject * obj0 = 0 ;
11131 PyObject * obj1 = 0 ;
11132 char * kwnames[] = {
11133 (char *) "self",(char *) "flag", NULL
11134 };
11135
11136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail;
11137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11138 if (!SWIG_IsOK(res1)) {
11139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFlag" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11140 }
11141 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11142 ecode2 = SWIG_AsVal_long(obj1, &val2);
11143 if (!SWIG_IsOK(ecode2)) {
11144 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'");
11145 }
11146 arg2 = static_cast< long >(val2);
11147 {
11148 PyThreadState* __tstate = wxPyBeginAllowThreads();
11149 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
11150 wxPyEndAllowThreads(__tstate);
11151 if (PyErr_Occurred()) SWIG_fail;
11152 }
11153 {
11154 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11155 }
11156 return resultobj;
11157 fail:
11158 return NULL;
11159 }
11160
11161
11162 SWIGINTERN PyObject *_wrap_TextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11163 PyObject *resultobj = 0;
11164 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11165 wxColour *result = 0 ;
11166 void *argp1 = 0 ;
11167 int res1 = 0 ;
11168 PyObject *swig_obj[1] ;
11169
11170 if (!args) SWIG_fail;
11171 swig_obj[0] = args;
11172 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11173 if (!SWIG_IsOK(res1)) {
11174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11175 }
11176 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11177 {
11178 PyThreadState* __tstate = wxPyBeginAllowThreads();
11179 {
11180 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
11181 result = (wxColour *) &_result_ref;
11182 }
11183 wxPyEndAllowThreads(__tstate);
11184 if (PyErr_Occurred()) SWIG_fail;
11185 }
11186 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11187 return resultobj;
11188 fail:
11189 return NULL;
11190 }
11191
11192
11193 SWIGINTERN PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11194 PyObject *resultobj = 0;
11195 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11196 wxColour *result = 0 ;
11197 void *argp1 = 0 ;
11198 int res1 = 0 ;
11199 PyObject *swig_obj[1] ;
11200
11201 if (!args) SWIG_fail;
11202 swig_obj[0] = args;
11203 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11204 if (!SWIG_IsOK(res1)) {
11205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11206 }
11207 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11208 {
11209 PyThreadState* __tstate = wxPyBeginAllowThreads();
11210 {
11211 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
11212 result = (wxColour *) &_result_ref;
11213 }
11214 wxPyEndAllowThreads(__tstate);
11215 if (PyErr_Occurred()) SWIG_fail;
11216 }
11217 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11218 return resultobj;
11219 fail:
11220 return NULL;
11221 }
11222
11223
11224 SWIGINTERN PyObject *_wrap_TextAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11225 PyObject *resultobj = 0;
11226 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11227 wxFont *result = 0 ;
11228 void *argp1 = 0 ;
11229 int res1 = 0 ;
11230 PyObject *swig_obj[1] ;
11231
11232 if (!args) SWIG_fail;
11233 swig_obj[0] = args;
11234 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11235 if (!SWIG_IsOK(res1)) {
11236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11237 }
11238 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11239 {
11240 PyThreadState* __tstate = wxPyBeginAllowThreads();
11241 {
11242 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
11243 result = (wxFont *) &_result_ref;
11244 }
11245 wxPyEndAllowThreads(__tstate);
11246 if (PyErr_Occurred()) SWIG_fail;
11247 }
11248 {
11249 wxFont* resultptr = new wxFont(*result);
11250 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
11251 }
11252 return resultobj;
11253 fail:
11254 return NULL;
11255 }
11256
11257
11258 SWIGINTERN PyObject *_wrap_TextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11259 PyObject *resultobj = 0;
11260 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11261 wxTextAttrAlignment result;
11262 void *argp1 = 0 ;
11263 int res1 = 0 ;
11264 PyObject *swig_obj[1] ;
11265
11266 if (!args) SWIG_fail;
11267 swig_obj[0] = args;
11268 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11269 if (!SWIG_IsOK(res1)) {
11270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11271 }
11272 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11273 {
11274 PyThreadState* __tstate = wxPyBeginAllowThreads();
11275 result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment();
11276 wxPyEndAllowThreads(__tstate);
11277 if (PyErr_Occurred()) SWIG_fail;
11278 }
11279 resultobj = SWIG_From_int(static_cast< int >(result));
11280 return resultobj;
11281 fail:
11282 return NULL;
11283 }
11284
11285
11286 SWIGINTERN PyObject *_wrap_TextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11287 PyObject *resultobj = 0;
11288 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11289 wxArrayInt *result = 0 ;
11290 void *argp1 = 0 ;
11291 int res1 = 0 ;
11292 PyObject *swig_obj[1] ;
11293
11294 if (!args) SWIG_fail;
11295 swig_obj[0] = args;
11296 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11297 if (!SWIG_IsOK(res1)) {
11298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11299 }
11300 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11301 {
11302 PyThreadState* __tstate = wxPyBeginAllowThreads();
11303 {
11304 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
11305 result = (wxArrayInt *) &_result_ref;
11306 }
11307 wxPyEndAllowThreads(__tstate);
11308 if (PyErr_Occurred()) SWIG_fail;
11309 }
11310 {
11311 resultobj = PyList_New(0);
11312 size_t idx;
11313 for (idx = 0; idx < result->GetCount(); idx += 1) {
11314 PyObject* val = PyInt_FromLong( result->Item(idx) );
11315 PyList_Append(resultobj, val);
11316 Py_DECREF(val);
11317 }
11318 }
11319 return resultobj;
11320 fail:
11321 return NULL;
11322 }
11323
11324
11325 SWIGINTERN PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11326 PyObject *resultobj = 0;
11327 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11328 long result;
11329 void *argp1 = 0 ;
11330 int res1 = 0 ;
11331 PyObject *swig_obj[1] ;
11332
11333 if (!args) SWIG_fail;
11334 swig_obj[0] = args;
11335 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11336 if (!SWIG_IsOK(res1)) {
11337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11338 }
11339 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11340 {
11341 PyThreadState* __tstate = wxPyBeginAllowThreads();
11342 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
11343 wxPyEndAllowThreads(__tstate);
11344 if (PyErr_Occurred()) SWIG_fail;
11345 }
11346 resultobj = SWIG_From_long(static_cast< long >(result));
11347 return resultobj;
11348 fail:
11349 return NULL;
11350 }
11351
11352
11353 SWIGINTERN PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11354 PyObject *resultobj = 0;
11355 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11356 long result;
11357 void *argp1 = 0 ;
11358 int res1 = 0 ;
11359 PyObject *swig_obj[1] ;
11360
11361 if (!args) SWIG_fail;
11362 swig_obj[0] = args;
11363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11364 if (!SWIG_IsOK(res1)) {
11365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11366 }
11367 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11368 {
11369 PyThreadState* __tstate = wxPyBeginAllowThreads();
11370 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
11371 wxPyEndAllowThreads(__tstate);
11372 if (PyErr_Occurred()) SWIG_fail;
11373 }
11374 resultobj = SWIG_From_long(static_cast< long >(result));
11375 return resultobj;
11376 fail:
11377 return NULL;
11378 }
11379
11380
11381 SWIGINTERN PyObject *_wrap_TextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11382 PyObject *resultobj = 0;
11383 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11384 long result;
11385 void *argp1 = 0 ;
11386 int res1 = 0 ;
11387 PyObject *swig_obj[1] ;
11388
11389 if (!args) SWIG_fail;
11390 swig_obj[0] = args;
11391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11392 if (!SWIG_IsOK(res1)) {
11393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11394 }
11395 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11396 {
11397 PyThreadState* __tstate = wxPyBeginAllowThreads();
11398 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
11399 wxPyEndAllowThreads(__tstate);
11400 if (PyErr_Occurred()) SWIG_fail;
11401 }
11402 resultobj = SWIG_From_long(static_cast< long >(result));
11403 return resultobj;
11404 fail:
11405 return NULL;
11406 }
11407
11408
11409 SWIGINTERN PyObject *_wrap_TextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11410 PyObject *resultobj = 0;
11411 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11412 long result;
11413 void *argp1 = 0 ;
11414 int res1 = 0 ;
11415 PyObject *swig_obj[1] ;
11416
11417 if (!args) SWIG_fail;
11418 swig_obj[0] = args;
11419 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11420 if (!SWIG_IsOK(res1)) {
11421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFlags" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11422 }
11423 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11424 {
11425 PyThreadState* __tstate = wxPyBeginAllowThreads();
11426 result = (long)((wxTextAttr const *)arg1)->GetFlags();
11427 wxPyEndAllowThreads(__tstate);
11428 if (PyErr_Occurred()) SWIG_fail;
11429 }
11430 resultobj = SWIG_From_long(static_cast< long >(result));
11431 return resultobj;
11432 fail:
11433 return NULL;
11434 }
11435
11436
11437 SWIGINTERN PyObject *_wrap_TextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11438 PyObject *resultobj = 0;
11439 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11440 bool result;
11441 void *argp1 = 0 ;
11442 int res1 = 0 ;
11443 PyObject *swig_obj[1] ;
11444
11445 if (!args) SWIG_fail;
11446 swig_obj[0] = args;
11447 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11448 if (!SWIG_IsOK(res1)) {
11449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_IsDefault" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11450 }
11451 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11452 {
11453 PyThreadState* __tstate = wxPyBeginAllowThreads();
11454 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
11455 wxPyEndAllowThreads(__tstate);
11456 if (PyErr_Occurred()) SWIG_fail;
11457 }
11458 {
11459 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11460 }
11461 return resultobj;
11462 fail:
11463 return NULL;
11464 }
11465
11466
11467 SWIGINTERN PyObject *_wrap_TextAttr_Combine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11468 PyObject *resultobj = 0;
11469 wxTextAttr *arg1 = 0 ;
11470 wxTextAttr *arg2 = 0 ;
11471 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
11472 wxTextAttr result;
11473 void *argp1 = 0 ;
11474 int res1 = 0 ;
11475 void *argp2 = 0 ;
11476 int res2 = 0 ;
11477 void *argp3 = 0 ;
11478 int res3 = 0 ;
11479 PyObject * obj0 = 0 ;
11480 PyObject * obj1 = 0 ;
11481 PyObject * obj2 = 0 ;
11482 char * kwnames[] = {
11483 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
11484 };
11485
11486 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11487 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
11488 if (!SWIG_IsOK(res1)) {
11489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11490 }
11491 if (!argp1) {
11492 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11493 }
11494 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11495 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
11496 if (!SWIG_IsOK(res2)) {
11497 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11498 }
11499 if (!argp2) {
11500 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11501 }
11502 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
11503 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11504 if (!SWIG_IsOK(res3)) {
11505 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextAttr_Combine" "', expected argument " "3"" of type '" "wxTextCtrl const *""'");
11506 }
11507 arg3 = reinterpret_cast< wxTextCtrl * >(argp3);
11508 {
11509 PyThreadState* __tstate = wxPyBeginAllowThreads();
11510 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
11511 wxPyEndAllowThreads(__tstate);
11512 if (PyErr_Occurred()) SWIG_fail;
11513 }
11514 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
11515 return resultobj;
11516 fail:
11517 return NULL;
11518 }
11519
11520
11521 SWIGINTERN PyObject *TextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11522 PyObject *obj;
11523 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11524 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextAttr, SWIG_NewClientData(obj));
11525 return SWIG_Py_Void();
11526 }
11527
11528 SWIGINTERN PyObject *TextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11529 return SWIG_Python_InitShadowInstance(args);
11530 }
11531
11532 SWIGINTERN PyObject *_wrap_new_TextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11533 PyObject *resultobj = 0;
11534 wxWindow *arg1 = (wxWindow *) 0 ;
11535 int arg2 = (int) -1 ;
11536 wxString const &arg3_defvalue = wxPyEmptyString ;
11537 wxString *arg3 = (wxString *) &arg3_defvalue ;
11538 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11539 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11540 wxSize const &arg5_defvalue = wxDefaultSize ;
11541 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11542 long arg6 = (long) 0 ;
11543 wxValidator const &arg7_defvalue = wxDefaultValidator ;
11544 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
11545 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
11546 wxString *arg8 = (wxString *) &arg8_defvalue ;
11547 wxTextCtrl *result = 0 ;
11548 void *argp1 = 0 ;
11549 int res1 = 0 ;
11550 int val2 ;
11551 int ecode2 = 0 ;
11552 bool temp3 = false ;
11553 wxPoint temp4 ;
11554 wxSize temp5 ;
11555 long val6 ;
11556 int ecode6 = 0 ;
11557 void *argp7 = 0 ;
11558 int res7 = 0 ;
11559 bool temp8 = false ;
11560 PyObject * obj0 = 0 ;
11561 PyObject * obj1 = 0 ;
11562 PyObject * obj2 = 0 ;
11563 PyObject * obj3 = 0 ;
11564 PyObject * obj4 = 0 ;
11565 PyObject * obj5 = 0 ;
11566 PyObject * obj6 = 0 ;
11567 PyObject * obj7 = 0 ;
11568 char * kwnames[] = {
11569 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11570 };
11571
11572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
11573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
11574 if (!SWIG_IsOK(res1)) {
11575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
11576 }
11577 arg1 = reinterpret_cast< wxWindow * >(argp1);
11578 if (obj1) {
11579 ecode2 = SWIG_AsVal_int(obj1, &val2);
11580 if (!SWIG_IsOK(ecode2)) {
11581 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TextCtrl" "', expected argument " "2"" of type '" "int""'");
11582 }
11583 arg2 = static_cast< int >(val2);
11584 }
11585 if (obj2) {
11586 {
11587 arg3 = wxString_in_helper(obj2);
11588 if (arg3 == NULL) SWIG_fail;
11589 temp3 = true;
11590 }
11591 }
11592 if (obj3) {
11593 {
11594 arg4 = &temp4;
11595 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11596 }
11597 }
11598 if (obj4) {
11599 {
11600 arg5 = &temp5;
11601 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11602 }
11603 }
11604 if (obj5) {
11605 ecode6 = SWIG_AsVal_long(obj5, &val6);
11606 if (!SWIG_IsOK(ecode6)) {
11607 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_TextCtrl" "', expected argument " "6"" of type '" "long""'");
11608 }
11609 arg6 = static_cast< long >(val6);
11610 }
11611 if (obj6) {
11612 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
11613 if (!SWIG_IsOK(res7)) {
11614 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
11615 }
11616 if (!argp7) {
11617 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
11618 }
11619 arg7 = reinterpret_cast< wxValidator * >(argp7);
11620 }
11621 if (obj7) {
11622 {
11623 arg8 = wxString_in_helper(obj7);
11624 if (arg8 == NULL) SWIG_fail;
11625 temp8 = true;
11626 }
11627 }
11628 {
11629 if (!wxPyCheckForApp()) SWIG_fail;
11630 PyThreadState* __tstate = wxPyBeginAllowThreads();
11631 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
11632 wxPyEndAllowThreads(__tstate);
11633 if (PyErr_Occurred()) SWIG_fail;
11634 }
11635 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_NEW | 0 );
11636 {
11637 if (temp3)
11638 delete arg3;
11639 }
11640 {
11641 if (temp8)
11642 delete arg8;
11643 }
11644 return resultobj;
11645 fail:
11646 {
11647 if (temp3)
11648 delete arg3;
11649 }
11650 {
11651 if (temp8)
11652 delete arg8;
11653 }
11654 return NULL;
11655 }
11656
11657
11658 SWIGINTERN PyObject *_wrap_new_PreTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11659 PyObject *resultobj = 0;
11660 wxTextCtrl *result = 0 ;
11661
11662 if (!SWIG_Python_UnpackTuple(args,"new_PreTextCtrl",0,0,0)) SWIG_fail;
11663 {
11664 if (!wxPyCheckForApp()) SWIG_fail;
11665 PyThreadState* __tstate = wxPyBeginAllowThreads();
11666 result = (wxTextCtrl *)new wxTextCtrl();
11667 wxPyEndAllowThreads(__tstate);
11668 if (PyErr_Occurred()) SWIG_fail;
11669 }
11670 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_OWN | 0 );
11671 return resultobj;
11672 fail:
11673 return NULL;
11674 }
11675
11676
11677 SWIGINTERN PyObject *_wrap_TextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11678 PyObject *resultobj = 0;
11679 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11680 wxWindow *arg2 = (wxWindow *) 0 ;
11681 int arg3 = (int) -1 ;
11682 wxString const &arg4_defvalue = wxPyEmptyString ;
11683 wxString *arg4 = (wxString *) &arg4_defvalue ;
11684 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11685 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11686 wxSize const &arg6_defvalue = wxDefaultSize ;
11687 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11688 long arg7 = (long) 0 ;
11689 wxValidator const &arg8_defvalue = wxDefaultValidator ;
11690 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
11691 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
11692 wxString *arg9 = (wxString *) &arg9_defvalue ;
11693 bool result;
11694 void *argp1 = 0 ;
11695 int res1 = 0 ;
11696 void *argp2 = 0 ;
11697 int res2 = 0 ;
11698 int val3 ;
11699 int ecode3 = 0 ;
11700 bool temp4 = false ;
11701 wxPoint temp5 ;
11702 wxSize temp6 ;
11703 long val7 ;
11704 int ecode7 = 0 ;
11705 void *argp8 = 0 ;
11706 int res8 = 0 ;
11707 bool temp9 = false ;
11708 PyObject * obj0 = 0 ;
11709 PyObject * obj1 = 0 ;
11710 PyObject * obj2 = 0 ;
11711 PyObject * obj3 = 0 ;
11712 PyObject * obj4 = 0 ;
11713 PyObject * obj5 = 0 ;
11714 PyObject * obj6 = 0 ;
11715 PyObject * obj7 = 0 ;
11716 PyObject * obj8 = 0 ;
11717 char * kwnames[] = {
11718 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11719 };
11720
11721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
11722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11723 if (!SWIG_IsOK(res1)) {
11724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Create" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11725 }
11726 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11727 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11728 if (!SWIG_IsOK(res2)) {
11729 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
11730 }
11731 arg2 = reinterpret_cast< wxWindow * >(argp2);
11732 if (obj2) {
11733 ecode3 = SWIG_AsVal_int(obj2, &val3);
11734 if (!SWIG_IsOK(ecode3)) {
11735 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Create" "', expected argument " "3"" of type '" "int""'");
11736 }
11737 arg3 = static_cast< int >(val3);
11738 }
11739 if (obj3) {
11740 {
11741 arg4 = wxString_in_helper(obj3);
11742 if (arg4 == NULL) SWIG_fail;
11743 temp4 = true;
11744 }
11745 }
11746 if (obj4) {
11747 {
11748 arg5 = &temp5;
11749 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11750 }
11751 }
11752 if (obj5) {
11753 {
11754 arg6 = &temp6;
11755 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11756 }
11757 }
11758 if (obj6) {
11759 ecode7 = SWIG_AsVal_long(obj6, &val7);
11760 if (!SWIG_IsOK(ecode7)) {
11761 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "TextCtrl_Create" "', expected argument " "7"" of type '" "long""'");
11762 }
11763 arg7 = static_cast< long >(val7);
11764 }
11765 if (obj7) {
11766 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
11767 if (!SWIG_IsOK(res8)) {
11768 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11769 }
11770 if (!argp8) {
11771 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11772 }
11773 arg8 = reinterpret_cast< wxValidator * >(argp8);
11774 }
11775 if (obj8) {
11776 {
11777 arg9 = wxString_in_helper(obj8);
11778 if (arg9 == NULL) SWIG_fail;
11779 temp9 = true;
11780 }
11781 }
11782 {
11783 PyThreadState* __tstate = wxPyBeginAllowThreads();
11784 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
11785 wxPyEndAllowThreads(__tstate);
11786 if (PyErr_Occurred()) SWIG_fail;
11787 }
11788 {
11789 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11790 }
11791 {
11792 if (temp4)
11793 delete arg4;
11794 }
11795 {
11796 if (temp9)
11797 delete arg9;
11798 }
11799 return resultobj;
11800 fail:
11801 {
11802 if (temp4)
11803 delete arg4;
11804 }
11805 {
11806 if (temp9)
11807 delete arg9;
11808 }
11809 return NULL;
11810 }
11811
11812
11813 SWIGINTERN PyObject *_wrap_TextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11814 PyObject *resultobj = 0;
11815 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11816 wxString result;
11817 void *argp1 = 0 ;
11818 int res1 = 0 ;
11819 PyObject *swig_obj[1] ;
11820
11821 if (!args) SWIG_fail;
11822 swig_obj[0] = args;
11823 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11824 if (!SWIG_IsOK(res1)) {
11825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetValue" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11826 }
11827 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11828 {
11829 PyThreadState* __tstate = wxPyBeginAllowThreads();
11830 result = ((wxTextCtrl const *)arg1)->GetValue();
11831 wxPyEndAllowThreads(__tstate);
11832 if (PyErr_Occurred()) SWIG_fail;
11833 }
11834 {
11835 #if wxUSE_UNICODE
11836 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11837 #else
11838 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11839 #endif
11840 }
11841 return resultobj;
11842 fail:
11843 return NULL;
11844 }
11845
11846
11847 SWIGINTERN PyObject *_wrap_TextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11848 PyObject *resultobj = 0;
11849 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11850 wxString *arg2 = 0 ;
11851 void *argp1 = 0 ;
11852 int res1 = 0 ;
11853 bool temp2 = false ;
11854 PyObject * obj0 = 0 ;
11855 PyObject * obj1 = 0 ;
11856 char * kwnames[] = {
11857 (char *) "self",(char *) "value", NULL
11858 };
11859
11860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
11861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11862 if (!SWIG_IsOK(res1)) {
11863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11864 }
11865 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11866 {
11867 arg2 = wxString_in_helper(obj1);
11868 if (arg2 == NULL) SWIG_fail;
11869 temp2 = true;
11870 }
11871 {
11872 PyThreadState* __tstate = wxPyBeginAllowThreads();
11873 (arg1)->SetValue((wxString const &)*arg2);
11874 wxPyEndAllowThreads(__tstate);
11875 if (PyErr_Occurred()) SWIG_fail;
11876 }
11877 resultobj = SWIG_Py_Void();
11878 {
11879 if (temp2)
11880 delete arg2;
11881 }
11882 return resultobj;
11883 fail:
11884 {
11885 if (temp2)
11886 delete arg2;
11887 }
11888 return NULL;
11889 }
11890
11891
11892 SWIGINTERN PyObject *_wrap_TextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11893 PyObject *resultobj = 0;
11894 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11895 long arg2 ;
11896 long arg3 ;
11897 wxString result;
11898 void *argp1 = 0 ;
11899 int res1 = 0 ;
11900 long val2 ;
11901 int ecode2 = 0 ;
11902 long val3 ;
11903 int ecode3 = 0 ;
11904 PyObject * obj0 = 0 ;
11905 PyObject * obj1 = 0 ;
11906 PyObject * obj2 = 0 ;
11907 char * kwnames[] = {
11908 (char *) "self",(char *) "from",(char *) "to", NULL
11909 };
11910
11911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11913 if (!SWIG_IsOK(res1)) {
11914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetRange" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11915 }
11916 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11917 ecode2 = SWIG_AsVal_long(obj1, &val2);
11918 if (!SWIG_IsOK(ecode2)) {
11919 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'");
11920 }
11921 arg2 = static_cast< long >(val2);
11922 ecode3 = SWIG_AsVal_long(obj2, &val3);
11923 if (!SWIG_IsOK(ecode3)) {
11924 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'");
11925 }
11926 arg3 = static_cast< long >(val3);
11927 {
11928 PyThreadState* __tstate = wxPyBeginAllowThreads();
11929 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
11930 wxPyEndAllowThreads(__tstate);
11931 if (PyErr_Occurred()) SWIG_fail;
11932 }
11933 {
11934 #if wxUSE_UNICODE
11935 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11936 #else
11937 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11938 #endif
11939 }
11940 return resultobj;
11941 fail:
11942 return NULL;
11943 }
11944
11945
11946 SWIGINTERN PyObject *_wrap_TextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11947 PyObject *resultobj = 0;
11948 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11949 long arg2 ;
11950 int result;
11951 void *argp1 = 0 ;
11952 int res1 = 0 ;
11953 long val2 ;
11954 int ecode2 = 0 ;
11955 PyObject * obj0 = 0 ;
11956 PyObject * obj1 = 0 ;
11957 char * kwnames[] = {
11958 (char *) "self",(char *) "lineNo", NULL
11959 };
11960
11961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail;
11962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11963 if (!SWIG_IsOK(res1)) {
11964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11965 }
11966 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11967 ecode2 = SWIG_AsVal_long(obj1, &val2);
11968 if (!SWIG_IsOK(ecode2)) {
11969 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'");
11970 }
11971 arg2 = static_cast< long >(val2);
11972 {
11973 PyThreadState* __tstate = wxPyBeginAllowThreads();
11974 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
11975 wxPyEndAllowThreads(__tstate);
11976 if (PyErr_Occurred()) SWIG_fail;
11977 }
11978 resultobj = SWIG_From_int(static_cast< int >(result));
11979 return resultobj;
11980 fail:
11981 return NULL;
11982 }
11983
11984
11985 SWIGINTERN PyObject *_wrap_TextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11986 PyObject *resultobj = 0;
11987 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11988 long arg2 ;
11989 wxString result;
11990 void *argp1 = 0 ;
11991 int res1 = 0 ;
11992 long val2 ;
11993 int ecode2 = 0 ;
11994 PyObject * obj0 = 0 ;
11995 PyObject * obj1 = 0 ;
11996 char * kwnames[] = {
11997 (char *) "self",(char *) "lineNo", NULL
11998 };
11999
12000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail;
12001 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12002 if (!SWIG_IsOK(res1)) {
12003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12004 }
12005 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12006 ecode2 = SWIG_AsVal_long(obj1, &val2);
12007 if (!SWIG_IsOK(ecode2)) {
12008 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'");
12009 }
12010 arg2 = static_cast< long >(val2);
12011 {
12012 PyThreadState* __tstate = wxPyBeginAllowThreads();
12013 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
12014 wxPyEndAllowThreads(__tstate);
12015 if (PyErr_Occurred()) SWIG_fail;
12016 }
12017 {
12018 #if wxUSE_UNICODE
12019 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12020 #else
12021 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12022 #endif
12023 }
12024 return resultobj;
12025 fail:
12026 return NULL;
12027 }
12028
12029
12030 SWIGINTERN PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12031 PyObject *resultobj = 0;
12032 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12033 int result;
12034 void *argp1 = 0 ;
12035 int res1 = 0 ;
12036 PyObject *swig_obj[1] ;
12037
12038 if (!args) SWIG_fail;
12039 swig_obj[0] = args;
12040 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12041 if (!SWIG_IsOK(res1)) {
12042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12043 }
12044 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12045 {
12046 PyThreadState* __tstate = wxPyBeginAllowThreads();
12047 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
12048 wxPyEndAllowThreads(__tstate);
12049 if (PyErr_Occurred()) SWIG_fail;
12050 }
12051 resultobj = SWIG_From_int(static_cast< int >(result));
12052 return resultobj;
12053 fail:
12054 return NULL;
12055 }
12056
12057
12058 SWIGINTERN PyObject *_wrap_TextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12059 PyObject *resultobj = 0;
12060 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12061 bool result;
12062 void *argp1 = 0 ;
12063 int res1 = 0 ;
12064 PyObject *swig_obj[1] ;
12065
12066 if (!args) SWIG_fail;
12067 swig_obj[0] = args;
12068 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12069 if (!SWIG_IsOK(res1)) {
12070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsModified" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12071 }
12072 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12073 {
12074 PyThreadState* __tstate = wxPyBeginAllowThreads();
12075 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
12076 wxPyEndAllowThreads(__tstate);
12077 if (PyErr_Occurred()) SWIG_fail;
12078 }
12079 {
12080 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12081 }
12082 return resultobj;
12083 fail:
12084 return NULL;
12085 }
12086
12087
12088 SWIGINTERN PyObject *_wrap_TextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12089 PyObject *resultobj = 0;
12090 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12091 bool result;
12092 void *argp1 = 0 ;
12093 int res1 = 0 ;
12094 PyObject *swig_obj[1] ;
12095
12096 if (!args) SWIG_fail;
12097 swig_obj[0] = args;
12098 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12099 if (!SWIG_IsOK(res1)) {
12100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12101 }
12102 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12103 {
12104 PyThreadState* __tstate = wxPyBeginAllowThreads();
12105 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
12106 wxPyEndAllowThreads(__tstate);
12107 if (PyErr_Occurred()) SWIG_fail;
12108 }
12109 {
12110 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12111 }
12112 return resultobj;
12113 fail:
12114 return NULL;
12115 }
12116
12117
12118 SWIGINTERN PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12119 PyObject *resultobj = 0;
12120 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12121 bool result;
12122 void *argp1 = 0 ;
12123 int res1 = 0 ;
12124 PyObject *swig_obj[1] ;
12125
12126 if (!args) SWIG_fail;
12127 swig_obj[0] = args;
12128 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12129 if (!SWIG_IsOK(res1)) {
12130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12131 }
12132 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12133 {
12134 PyThreadState* __tstate = wxPyBeginAllowThreads();
12135 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
12136 wxPyEndAllowThreads(__tstate);
12137 if (PyErr_Occurred()) SWIG_fail;
12138 }
12139 {
12140 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12141 }
12142 return resultobj;
12143 fail:
12144 return NULL;
12145 }
12146
12147
12148 SWIGINTERN PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12149 PyObject *resultobj = 0;
12150 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12151 bool result;
12152 void *argp1 = 0 ;
12153 int res1 = 0 ;
12154 PyObject *swig_obj[1] ;
12155
12156 if (!args) SWIG_fail;
12157 swig_obj[0] = args;
12158 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12159 if (!SWIG_IsOK(res1)) {
12160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12161 }
12162 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12163 {
12164 PyThreadState* __tstate = wxPyBeginAllowThreads();
12165 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
12166 wxPyEndAllowThreads(__tstate);
12167 if (PyErr_Occurred()) SWIG_fail;
12168 }
12169 {
12170 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12171 }
12172 return resultobj;
12173 fail:
12174 return NULL;
12175 }
12176
12177
12178 SWIGINTERN PyObject *_wrap_TextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12179 PyObject *resultobj = 0;
12180 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12181 long *arg2 = (long *) 0 ;
12182 long *arg3 = (long *) 0 ;
12183 void *argp1 = 0 ;
12184 int res1 = 0 ;
12185 long temp2 ;
12186 int res2 = SWIG_TMPOBJ ;
12187 long temp3 ;
12188 int res3 = SWIG_TMPOBJ ;
12189 PyObject *swig_obj[1] ;
12190
12191 arg2 = &temp2;
12192 arg3 = &temp3;
12193 if (!args) SWIG_fail;
12194 swig_obj[0] = args;
12195 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12196 if (!SWIG_IsOK(res1)) {
12197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12198 }
12199 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12200 {
12201 PyThreadState* __tstate = wxPyBeginAllowThreads();
12202 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
12203 wxPyEndAllowThreads(__tstate);
12204 if (PyErr_Occurred()) SWIG_fail;
12205 }
12206 resultobj = SWIG_Py_Void();
12207 if (SWIG_IsTmpObj(res2)) {
12208 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
12209 } else {
12210 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12211 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
12212 }
12213 if (SWIG_IsTmpObj(res3)) {
12214 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
12215 } else {
12216 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12217 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
12218 }
12219 return resultobj;
12220 fail:
12221 return NULL;
12222 }
12223
12224
12225 SWIGINTERN PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12226 PyObject *resultobj = 0;
12227 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12228 wxString result;
12229 void *argp1 = 0 ;
12230 int res1 = 0 ;
12231 PyObject *swig_obj[1] ;
12232
12233 if (!args) SWIG_fail;
12234 swig_obj[0] = args;
12235 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12236 if (!SWIG_IsOK(res1)) {
12237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12238 }
12239 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12240 {
12241 PyThreadState* __tstate = wxPyBeginAllowThreads();
12242 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
12243 wxPyEndAllowThreads(__tstate);
12244 if (PyErr_Occurred()) SWIG_fail;
12245 }
12246 {
12247 #if wxUSE_UNICODE
12248 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12249 #else
12250 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12251 #endif
12252 }
12253 return resultobj;
12254 fail:
12255 return NULL;
12256 }
12257
12258
12259 SWIGINTERN PyObject *_wrap_TextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12260 PyObject *resultobj = 0;
12261 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12262 void *argp1 = 0 ;
12263 int res1 = 0 ;
12264 PyObject *swig_obj[1] ;
12265
12266 if (!args) SWIG_fail;
12267 swig_obj[0] = args;
12268 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12269 if (!SWIG_IsOK(res1)) {
12270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Clear" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12271 }
12272 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12273 {
12274 PyThreadState* __tstate = wxPyBeginAllowThreads();
12275 (arg1)->Clear();
12276 wxPyEndAllowThreads(__tstate);
12277 if (PyErr_Occurred()) SWIG_fail;
12278 }
12279 resultobj = SWIG_Py_Void();
12280 return resultobj;
12281 fail:
12282 return NULL;
12283 }
12284
12285
12286 SWIGINTERN PyObject *_wrap_TextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12287 PyObject *resultobj = 0;
12288 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12289 long arg2 ;
12290 long arg3 ;
12291 wxString *arg4 = 0 ;
12292 void *argp1 = 0 ;
12293 int res1 = 0 ;
12294 long val2 ;
12295 int ecode2 = 0 ;
12296 long val3 ;
12297 int ecode3 = 0 ;
12298 bool temp4 = false ;
12299 PyObject * obj0 = 0 ;
12300 PyObject * obj1 = 0 ;
12301 PyObject * obj2 = 0 ;
12302 PyObject * obj3 = 0 ;
12303 char * kwnames[] = {
12304 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
12305 };
12306
12307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12309 if (!SWIG_IsOK(res1)) {
12310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Replace" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12311 }
12312 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12313 ecode2 = SWIG_AsVal_long(obj1, &val2);
12314 if (!SWIG_IsOK(ecode2)) {
12315 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Replace" "', expected argument " "2"" of type '" "long""'");
12316 }
12317 arg2 = static_cast< long >(val2);
12318 ecode3 = SWIG_AsVal_long(obj2, &val3);
12319 if (!SWIG_IsOK(ecode3)) {
12320 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Replace" "', expected argument " "3"" of type '" "long""'");
12321 }
12322 arg3 = static_cast< long >(val3);
12323 {
12324 arg4 = wxString_in_helper(obj3);
12325 if (arg4 == NULL) SWIG_fail;
12326 temp4 = true;
12327 }
12328 {
12329 PyThreadState* __tstate = wxPyBeginAllowThreads();
12330 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
12331 wxPyEndAllowThreads(__tstate);
12332 if (PyErr_Occurred()) SWIG_fail;
12333 }
12334 resultobj = SWIG_Py_Void();
12335 {
12336 if (temp4)
12337 delete arg4;
12338 }
12339 return resultobj;
12340 fail:
12341 {
12342 if (temp4)
12343 delete arg4;
12344 }
12345 return NULL;
12346 }
12347
12348
12349 SWIGINTERN PyObject *_wrap_TextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12350 PyObject *resultobj = 0;
12351 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12352 long arg2 ;
12353 long arg3 ;
12354 void *argp1 = 0 ;
12355 int res1 = 0 ;
12356 long val2 ;
12357 int ecode2 = 0 ;
12358 long val3 ;
12359 int ecode3 = 0 ;
12360 PyObject * obj0 = 0 ;
12361 PyObject * obj1 = 0 ;
12362 PyObject * obj2 = 0 ;
12363 char * kwnames[] = {
12364 (char *) "self",(char *) "from",(char *) "to", NULL
12365 };
12366
12367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12369 if (!SWIG_IsOK(res1)) {
12370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Remove" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12371 }
12372 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12373 ecode2 = SWIG_AsVal_long(obj1, &val2);
12374 if (!SWIG_IsOK(ecode2)) {
12375 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Remove" "', expected argument " "2"" of type '" "long""'");
12376 }
12377 arg2 = static_cast< long >(val2);
12378 ecode3 = SWIG_AsVal_long(obj2, &val3);
12379 if (!SWIG_IsOK(ecode3)) {
12380 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Remove" "', expected argument " "3"" of type '" "long""'");
12381 }
12382 arg3 = static_cast< long >(val3);
12383 {
12384 PyThreadState* __tstate = wxPyBeginAllowThreads();
12385 (arg1)->Remove(arg2,arg3);
12386 wxPyEndAllowThreads(__tstate);
12387 if (PyErr_Occurred()) SWIG_fail;
12388 }
12389 resultobj = SWIG_Py_Void();
12390 return resultobj;
12391 fail:
12392 return NULL;
12393 }
12394
12395
12396 SWIGINTERN PyObject *_wrap_TextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12397 PyObject *resultobj = 0;
12398 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12399 wxString *arg2 = 0 ;
12400 bool result;
12401 void *argp1 = 0 ;
12402 int res1 = 0 ;
12403 bool temp2 = false ;
12404 PyObject * obj0 = 0 ;
12405 PyObject * obj1 = 0 ;
12406 char * kwnames[] = {
12407 (char *) "self",(char *) "file", NULL
12408 };
12409
12410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) SWIG_fail;
12411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12412 if (!SWIG_IsOK(res1)) {
12413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12414 }
12415 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12416 {
12417 arg2 = wxString_in_helper(obj1);
12418 if (arg2 == NULL) SWIG_fail;
12419 temp2 = true;
12420 }
12421 {
12422 PyThreadState* __tstate = wxPyBeginAllowThreads();
12423 result = (bool)(arg1)->LoadFile((wxString const &)*arg2);
12424 wxPyEndAllowThreads(__tstate);
12425 if (PyErr_Occurred()) SWIG_fail;
12426 }
12427 {
12428 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12429 }
12430 {
12431 if (temp2)
12432 delete arg2;
12433 }
12434 return resultobj;
12435 fail:
12436 {
12437 if (temp2)
12438 delete arg2;
12439 }
12440 return NULL;
12441 }
12442
12443
12444 SWIGINTERN PyObject *_wrap_TextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12445 PyObject *resultobj = 0;
12446 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12447 wxString const &arg2_defvalue = wxPyEmptyString ;
12448 wxString *arg2 = (wxString *) &arg2_defvalue ;
12449 bool result;
12450 void *argp1 = 0 ;
12451 int res1 = 0 ;
12452 bool temp2 = false ;
12453 PyObject * obj0 = 0 ;
12454 PyObject * obj1 = 0 ;
12455 char * kwnames[] = {
12456 (char *) "self",(char *) "file", NULL
12457 };
12458
12459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) SWIG_fail;
12460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12461 if (!SWIG_IsOK(res1)) {
12462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12463 }
12464 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12465 if (obj1) {
12466 {
12467 arg2 = wxString_in_helper(obj1);
12468 if (arg2 == NULL) SWIG_fail;
12469 temp2 = true;
12470 }
12471 }
12472 {
12473 PyThreadState* __tstate = wxPyBeginAllowThreads();
12474 result = (bool)(arg1)->SaveFile((wxString const &)*arg2);
12475 wxPyEndAllowThreads(__tstate);
12476 if (PyErr_Occurred()) SWIG_fail;
12477 }
12478 {
12479 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12480 }
12481 {
12482 if (temp2)
12483 delete arg2;
12484 }
12485 return resultobj;
12486 fail:
12487 {
12488 if (temp2)
12489 delete arg2;
12490 }
12491 return NULL;
12492 }
12493
12494
12495 SWIGINTERN PyObject *_wrap_TextCtrl_MarkDirty(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_MarkDirty" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12507 }
12508 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12509 {
12510 PyThreadState* __tstate = wxPyBeginAllowThreads();
12511 (arg1)->MarkDirty();
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_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12523 PyObject *resultobj = 0;
12524 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12525 void *argp1 = 0 ;
12526 int res1 = 0 ;
12527 PyObject *swig_obj[1] ;
12528
12529 if (!args) SWIG_fail;
12530 swig_obj[0] = args;
12531 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12532 if (!SWIG_IsOK(res1)) {
12533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12534 }
12535 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12536 {
12537 PyThreadState* __tstate = wxPyBeginAllowThreads();
12538 (arg1)->DiscardEdits();
12539 wxPyEndAllowThreads(__tstate);
12540 if (PyErr_Occurred()) SWIG_fail;
12541 }
12542 resultobj = SWIG_Py_Void();
12543 return resultobj;
12544 fail:
12545 return NULL;
12546 }
12547
12548
12549 SWIGINTERN PyObject *_wrap_TextCtrl_SetModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12550 PyObject *resultobj = 0;
12551 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12552 bool arg2 ;
12553 void *argp1 = 0 ;
12554 int res1 = 0 ;
12555 bool val2 ;
12556 int ecode2 = 0 ;
12557 PyObject * obj0 = 0 ;
12558 PyObject * obj1 = 0 ;
12559 char * kwnames[] = {
12560 (char *) "self",(char *) "modified", NULL
12561 };
12562
12563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetModified",kwnames,&obj0,&obj1)) SWIG_fail;
12564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12565 if (!SWIG_IsOK(res1)) {
12566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetModified" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12567 }
12568 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12569 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12570 if (!SWIG_IsOK(ecode2)) {
12571 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetModified" "', expected argument " "2"" of type '" "bool""'");
12572 }
12573 arg2 = static_cast< bool >(val2);
12574 {
12575 PyThreadState* __tstate = wxPyBeginAllowThreads();
12576 (arg1)->SetModified(arg2);
12577 wxPyEndAllowThreads(__tstate);
12578 if (PyErr_Occurred()) SWIG_fail;
12579 }
12580 resultobj = SWIG_Py_Void();
12581 return resultobj;
12582 fail:
12583 return NULL;
12584 }
12585
12586
12587 SWIGINTERN PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12588 PyObject *resultobj = 0;
12589 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12590 unsigned long arg2 ;
12591 void *argp1 = 0 ;
12592 int res1 = 0 ;
12593 unsigned long val2 ;
12594 int ecode2 = 0 ;
12595 PyObject * obj0 = 0 ;
12596 PyObject * obj1 = 0 ;
12597 char * kwnames[] = {
12598 (char *) "self",(char *) "len", NULL
12599 };
12600
12601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail;
12602 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12603 if (!SWIG_IsOK(res1)) {
12604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12605 }
12606 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12607 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
12608 if (!SWIG_IsOK(ecode2)) {
12609 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'");
12610 }
12611 arg2 = static_cast< unsigned long >(val2);
12612 {
12613 PyThreadState* __tstate = wxPyBeginAllowThreads();
12614 (arg1)->SetMaxLength(arg2);
12615 wxPyEndAllowThreads(__tstate);
12616 if (PyErr_Occurred()) SWIG_fail;
12617 }
12618 resultobj = SWIG_Py_Void();
12619 return resultobj;
12620 fail:
12621 return NULL;
12622 }
12623
12624
12625 SWIGINTERN PyObject *_wrap_TextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12626 PyObject *resultobj = 0;
12627 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12628 wxString *arg2 = 0 ;
12629 void *argp1 = 0 ;
12630 int res1 = 0 ;
12631 bool temp2 = false ;
12632 PyObject * obj0 = 0 ;
12633 PyObject * obj1 = 0 ;
12634 char * kwnames[] = {
12635 (char *) "self",(char *) "text", NULL
12636 };
12637
12638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail;
12639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12640 if (!SWIG_IsOK(res1)) {
12641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_WriteText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12642 }
12643 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12644 {
12645 arg2 = wxString_in_helper(obj1);
12646 if (arg2 == NULL) SWIG_fail;
12647 temp2 = true;
12648 }
12649 {
12650 PyThreadState* __tstate = wxPyBeginAllowThreads();
12651 (arg1)->WriteText((wxString const &)*arg2);
12652 wxPyEndAllowThreads(__tstate);
12653 if (PyErr_Occurred()) SWIG_fail;
12654 }
12655 resultobj = SWIG_Py_Void();
12656 {
12657 if (temp2)
12658 delete arg2;
12659 }
12660 return resultobj;
12661 fail:
12662 {
12663 if (temp2)
12664 delete arg2;
12665 }
12666 return NULL;
12667 }
12668
12669
12670 SWIGINTERN PyObject *_wrap_TextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12671 PyObject *resultobj = 0;
12672 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12673 wxString *arg2 = 0 ;
12674 void *argp1 = 0 ;
12675 int res1 = 0 ;
12676 bool temp2 = false ;
12677 PyObject * obj0 = 0 ;
12678 PyObject * obj1 = 0 ;
12679 char * kwnames[] = {
12680 (char *) "self",(char *) "text", NULL
12681 };
12682
12683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail;
12684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12685 if (!SWIG_IsOK(res1)) {
12686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_AppendText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12687 }
12688 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12689 {
12690 arg2 = wxString_in_helper(obj1);
12691 if (arg2 == NULL) SWIG_fail;
12692 temp2 = true;
12693 }
12694 {
12695 PyThreadState* __tstate = wxPyBeginAllowThreads();
12696 (arg1)->AppendText((wxString const &)*arg2);
12697 wxPyEndAllowThreads(__tstate);
12698 if (PyErr_Occurred()) SWIG_fail;
12699 }
12700 resultobj = SWIG_Py_Void();
12701 {
12702 if (temp2)
12703 delete arg2;
12704 }
12705 return resultobj;
12706 fail:
12707 {
12708 if (temp2)
12709 delete arg2;
12710 }
12711 return NULL;
12712 }
12713
12714
12715 SWIGINTERN PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12716 PyObject *resultobj = 0;
12717 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12718 wxKeyEvent *arg2 = 0 ;
12719 bool result;
12720 void *argp1 = 0 ;
12721 int res1 = 0 ;
12722 void *argp2 = 0 ;
12723 int res2 = 0 ;
12724 PyObject * obj0 = 0 ;
12725 PyObject * obj1 = 0 ;
12726 char * kwnames[] = {
12727 (char *) "self",(char *) "event", NULL
12728 };
12729
12730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) SWIG_fail;
12731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12732 if (!SWIG_IsOK(res1)) {
12733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12734 }
12735 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12736 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
12737 if (!SWIG_IsOK(res2)) {
12738 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12739 }
12740 if (!argp2) {
12741 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12742 }
12743 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
12744 {
12745 PyThreadState* __tstate = wxPyBeginAllowThreads();
12746 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
12747 wxPyEndAllowThreads(__tstate);
12748 if (PyErr_Occurred()) SWIG_fail;
12749 }
12750 {
12751 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12752 }
12753 return resultobj;
12754 fail:
12755 return NULL;
12756 }
12757
12758
12759 SWIGINTERN PyObject *_wrap_TextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12760 PyObject *resultobj = 0;
12761 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12762 long arg2 ;
12763 long arg3 ;
12764 wxTextAttr *arg4 = 0 ;
12765 bool result;
12766 void *argp1 = 0 ;
12767 int res1 = 0 ;
12768 long val2 ;
12769 int ecode2 = 0 ;
12770 long val3 ;
12771 int ecode3 = 0 ;
12772 void *argp4 = 0 ;
12773 int res4 = 0 ;
12774 PyObject * obj0 = 0 ;
12775 PyObject * obj1 = 0 ;
12776 PyObject * obj2 = 0 ;
12777 PyObject * obj3 = 0 ;
12778 char * kwnames[] = {
12779 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
12780 };
12781
12782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12784 if (!SWIG_IsOK(res1)) {
12785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12786 }
12787 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12788 ecode2 = SWIG_AsVal_long(obj1, &val2);
12789 if (!SWIG_IsOK(ecode2)) {
12790 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetStyle" "', expected argument " "2"" of type '" "long""'");
12791 }
12792 arg2 = static_cast< long >(val2);
12793 ecode3 = SWIG_AsVal_long(obj2, &val3);
12794 if (!SWIG_IsOK(ecode3)) {
12795 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetStyle" "', expected argument " "3"" of type '" "long""'");
12796 }
12797 arg3 = static_cast< long >(val3);
12798 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxTextAttr, 0 | 0);
12799 if (!SWIG_IsOK(res4)) {
12800 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12801 }
12802 if (!argp4) {
12803 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12804 }
12805 arg4 = reinterpret_cast< wxTextAttr * >(argp4);
12806 {
12807 PyThreadState* __tstate = wxPyBeginAllowThreads();
12808 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
12809 wxPyEndAllowThreads(__tstate);
12810 if (PyErr_Occurred()) SWIG_fail;
12811 }
12812 {
12813 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12814 }
12815 return resultobj;
12816 fail:
12817 return NULL;
12818 }
12819
12820
12821 SWIGINTERN PyObject *_wrap_TextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12822 PyObject *resultobj = 0;
12823 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12824 long arg2 ;
12825 wxTextAttr *arg3 = 0 ;
12826 bool result;
12827 void *argp1 = 0 ;
12828 int res1 = 0 ;
12829 long val2 ;
12830 int ecode2 = 0 ;
12831 void *argp3 = 0 ;
12832 int res3 = 0 ;
12833 PyObject * obj0 = 0 ;
12834 PyObject * obj1 = 0 ;
12835 PyObject * obj2 = 0 ;
12836 char * kwnames[] = {
12837 (char *) "self",(char *) "position",(char *) "style", NULL
12838 };
12839
12840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12841 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12842 if (!SWIG_IsOK(res1)) {
12843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12844 }
12845 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12846 ecode2 = SWIG_AsVal_long(obj1, &val2);
12847 if (!SWIG_IsOK(ecode2)) {
12848 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'");
12849 }
12850 arg2 = static_cast< long >(val2);
12851 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTextAttr, 0 );
12852 if (!SWIG_IsOK(res3)) {
12853 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12854 }
12855 if (!argp3) {
12856 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12857 }
12858 arg3 = reinterpret_cast< wxTextAttr * >(argp3);
12859 {
12860 PyThreadState* __tstate = wxPyBeginAllowThreads();
12861 result = (bool)(arg1)->GetStyle(arg2,*arg3);
12862 wxPyEndAllowThreads(__tstate);
12863 if (PyErr_Occurred()) SWIG_fail;
12864 }
12865 {
12866 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12867 }
12868 return resultobj;
12869 fail:
12870 return NULL;
12871 }
12872
12873
12874 SWIGINTERN PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12875 PyObject *resultobj = 0;
12876 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12877 wxTextAttr *arg2 = 0 ;
12878 bool result;
12879 void *argp1 = 0 ;
12880 int res1 = 0 ;
12881 void *argp2 = 0 ;
12882 int res2 = 0 ;
12883 PyObject * obj0 = 0 ;
12884 PyObject * obj1 = 0 ;
12885 char * kwnames[] = {
12886 (char *) "self",(char *) "style", NULL
12887 };
12888
12889 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12890 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12891 if (!SWIG_IsOK(res1)) {
12892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12893 }
12894 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12895 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
12896 if (!SWIG_IsOK(res2)) {
12897 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12898 }
12899 if (!argp2) {
12900 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12901 }
12902 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
12903 {
12904 PyThreadState* __tstate = wxPyBeginAllowThreads();
12905 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
12906 wxPyEndAllowThreads(__tstate);
12907 if (PyErr_Occurred()) SWIG_fail;
12908 }
12909 {
12910 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12911 }
12912 return resultobj;
12913 fail:
12914 return NULL;
12915 }
12916
12917
12918 SWIGINTERN PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12919 PyObject *resultobj = 0;
12920 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12921 wxTextAttr *result = 0 ;
12922 void *argp1 = 0 ;
12923 int res1 = 0 ;
12924 PyObject *swig_obj[1] ;
12925
12926 if (!args) SWIG_fail;
12927 swig_obj[0] = args;
12928 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12929 if (!SWIG_IsOK(res1)) {
12930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12931 }
12932 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12933 {
12934 PyThreadState* __tstate = wxPyBeginAllowThreads();
12935 {
12936 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
12937 result = (wxTextAttr *) &_result_ref;
12938 }
12939 wxPyEndAllowThreads(__tstate);
12940 if (PyErr_Occurred()) SWIG_fail;
12941 }
12942 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, 0 | 0 );
12943 return resultobj;
12944 fail:
12945 return NULL;
12946 }
12947
12948
12949 SWIGINTERN PyObject *_wrap_TextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12950 PyObject *resultobj = 0;
12951 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12952 long arg2 ;
12953 long arg3 ;
12954 long result;
12955 void *argp1 = 0 ;
12956 int res1 = 0 ;
12957 long val2 ;
12958 int ecode2 = 0 ;
12959 long val3 ;
12960 int ecode3 = 0 ;
12961 PyObject * obj0 = 0 ;
12962 PyObject * obj1 = 0 ;
12963 PyObject * obj2 = 0 ;
12964 char * kwnames[] = {
12965 (char *) "self",(char *) "x",(char *) "y", NULL
12966 };
12967
12968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12970 if (!SWIG_IsOK(res1)) {
12971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12972 }
12973 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12974 ecode2 = SWIG_AsVal_long(obj1, &val2);
12975 if (!SWIG_IsOK(ecode2)) {
12976 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'");
12977 }
12978 arg2 = static_cast< long >(val2);
12979 ecode3 = SWIG_AsVal_long(obj2, &val3);
12980 if (!SWIG_IsOK(ecode3)) {
12981 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'");
12982 }
12983 arg3 = static_cast< long >(val3);
12984 {
12985 PyThreadState* __tstate = wxPyBeginAllowThreads();
12986 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
12987 wxPyEndAllowThreads(__tstate);
12988 if (PyErr_Occurred()) SWIG_fail;
12989 }
12990 resultobj = SWIG_From_long(static_cast< long >(result));
12991 return resultobj;
12992 fail:
12993 return NULL;
12994 }
12995
12996
12997 SWIGINTERN PyObject *_wrap_TextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12998 PyObject *resultobj = 0;
12999 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13000 long arg2 ;
13001 long *arg3 = (long *) 0 ;
13002 long *arg4 = (long *) 0 ;
13003 void *argp1 = 0 ;
13004 int res1 = 0 ;
13005 long val2 ;
13006 int ecode2 = 0 ;
13007 long temp3 ;
13008 int res3 = SWIG_TMPOBJ ;
13009 long temp4 ;
13010 int res4 = SWIG_TMPOBJ ;
13011 PyObject * obj0 = 0 ;
13012 PyObject * obj1 = 0 ;
13013 char * kwnames[] = {
13014 (char *) "self",(char *) "pos", NULL
13015 };
13016
13017 arg3 = &temp3;
13018 arg4 = &temp4;
13019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail;
13020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13021 if (!SWIG_IsOK(res1)) {
13022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13023 }
13024 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13025 ecode2 = SWIG_AsVal_long(obj1, &val2);
13026 if (!SWIG_IsOK(ecode2)) {
13027 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'");
13028 }
13029 arg2 = static_cast< long >(val2);
13030 {
13031 PyThreadState* __tstate = wxPyBeginAllowThreads();
13032 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
13033 wxPyEndAllowThreads(__tstate);
13034 if (PyErr_Occurred()) SWIG_fail;
13035 }
13036 resultobj = SWIG_Py_Void();
13037 if (SWIG_IsTmpObj(res3)) {
13038 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13039 } else {
13040 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13041 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13042 }
13043 if (SWIG_IsTmpObj(res4)) {
13044 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13045 } else {
13046 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13047 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13048 }
13049 return resultobj;
13050 fail:
13051 return NULL;
13052 }
13053
13054
13055 SWIGINTERN PyObject *_wrap_TextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13056 PyObject *resultobj = 0;
13057 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13058 long arg2 ;
13059 void *argp1 = 0 ;
13060 int res1 = 0 ;
13061 long val2 ;
13062 int ecode2 = 0 ;
13063 PyObject * obj0 = 0 ;
13064 PyObject * obj1 = 0 ;
13065 char * kwnames[] = {
13066 (char *) "self",(char *) "pos", NULL
13067 };
13068
13069 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail;
13070 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13071 if (!SWIG_IsOK(res1)) {
13072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13073 }
13074 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13075 ecode2 = SWIG_AsVal_long(obj1, &val2);
13076 if (!SWIG_IsOK(ecode2)) {
13077 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'");
13078 }
13079 arg2 = static_cast< long >(val2);
13080 {
13081 PyThreadState* __tstate = wxPyBeginAllowThreads();
13082 (arg1)->ShowPosition(arg2);
13083 wxPyEndAllowThreads(__tstate);
13084 if (PyErr_Occurred()) SWIG_fail;
13085 }
13086 resultobj = SWIG_Py_Void();
13087 return resultobj;
13088 fail:
13089 return NULL;
13090 }
13091
13092
13093 SWIGINTERN PyObject *_wrap_TextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13094 PyObject *resultobj = 0;
13095 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13096 wxPoint *arg2 = 0 ;
13097 long *arg3 = (long *) 0 ;
13098 long *arg4 = (long *) 0 ;
13099 wxTextCtrlHitTestResult result;
13100 void *argp1 = 0 ;
13101 int res1 = 0 ;
13102 wxPoint temp2 ;
13103 long temp3 ;
13104 int res3 = SWIG_TMPOBJ ;
13105 long temp4 ;
13106 int res4 = SWIG_TMPOBJ ;
13107 PyObject * obj0 = 0 ;
13108 PyObject * obj1 = 0 ;
13109 char * kwnames[] = {
13110 (char *) "self",(char *) "pt", NULL
13111 };
13112
13113 arg3 = &temp3;
13114 arg4 = &temp4;
13115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
13116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13117 if (!SWIG_IsOK(res1)) {
13118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTest" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13119 }
13120 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13121 {
13122 arg2 = &temp2;
13123 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13124 }
13125 {
13126 PyThreadState* __tstate = wxPyBeginAllowThreads();
13127 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
13128 wxPyEndAllowThreads(__tstate);
13129 if (PyErr_Occurred()) SWIG_fail;
13130 }
13131 resultobj = SWIG_From_int(static_cast< int >(result));
13132 if (SWIG_IsTmpObj(res3)) {
13133 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13134 } else {
13135 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13136 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13137 }
13138 if (SWIG_IsTmpObj(res4)) {
13139 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13140 } else {
13141 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13142 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13143 }
13144 return resultobj;
13145 fail:
13146 return NULL;
13147 }
13148
13149
13150 SWIGINTERN PyObject *_wrap_TextCtrl_HitTestPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13151 PyObject *resultobj = 0;
13152 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13153 wxPoint *arg2 = 0 ;
13154 long *arg3 = (long *) 0 ;
13155 wxTextCtrlHitTestResult result;
13156 void *argp1 = 0 ;
13157 int res1 = 0 ;
13158 wxPoint temp2 ;
13159 long temp3 ;
13160 int res3 = SWIG_TMPOBJ ;
13161 PyObject * obj0 = 0 ;
13162 PyObject * obj1 = 0 ;
13163 char * kwnames[] = {
13164 (char *) "self",(char *) "pt", NULL
13165 };
13166
13167 arg3 = &temp3;
13168 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) SWIG_fail;
13169 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13170 if (!SWIG_IsOK(res1)) {
13171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTestPos" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13172 }
13173 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13174 {
13175 arg2 = &temp2;
13176 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13177 }
13178 {
13179 PyThreadState* __tstate = wxPyBeginAllowThreads();
13180 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
13181 wxPyEndAllowThreads(__tstate);
13182 if (PyErr_Occurred()) SWIG_fail;
13183 }
13184 resultobj = SWIG_From_int(static_cast< int >(result));
13185 if (SWIG_IsTmpObj(res3)) {
13186 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13187 } else {
13188 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13189 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13190 }
13191 return resultobj;
13192 fail:
13193 return NULL;
13194 }
13195
13196
13197 SWIGINTERN PyObject *_wrap_TextCtrl_Copy(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_Copy" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13209 }
13210 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13211 {
13212 PyThreadState* __tstate = wxPyBeginAllowThreads();
13213 (arg1)->Copy();
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_Cut(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_Cut" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13236 }
13237 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13238 {
13239 PyThreadState* __tstate = wxPyBeginAllowThreads();
13240 (arg1)->Cut();
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_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13252 PyObject *resultobj = 0;
13253 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13254 void *argp1 = 0 ;
13255 int res1 = 0 ;
13256 PyObject *swig_obj[1] ;
13257
13258 if (!args) SWIG_fail;
13259 swig_obj[0] = args;
13260 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13261 if (!SWIG_IsOK(res1)) {
13262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Paste" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13263 }
13264 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13265 {
13266 PyThreadState* __tstate = wxPyBeginAllowThreads();
13267 (arg1)->Paste();
13268 wxPyEndAllowThreads(__tstate);
13269 if (PyErr_Occurred()) SWIG_fail;
13270 }
13271 resultobj = SWIG_Py_Void();
13272 return resultobj;
13273 fail:
13274 return NULL;
13275 }
13276
13277
13278 SWIGINTERN PyObject *_wrap_TextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13279 PyObject *resultobj = 0;
13280 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13281 bool result;
13282 void *argp1 = 0 ;
13283 int res1 = 0 ;
13284 PyObject *swig_obj[1] ;
13285
13286 if (!args) SWIG_fail;
13287 swig_obj[0] = args;
13288 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13289 if (!SWIG_IsOK(res1)) {
13290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13291 }
13292 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13293 {
13294 PyThreadState* __tstate = wxPyBeginAllowThreads();
13295 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
13296 wxPyEndAllowThreads(__tstate);
13297 if (PyErr_Occurred()) SWIG_fail;
13298 }
13299 {
13300 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13301 }
13302 return resultobj;
13303 fail:
13304 return NULL;
13305 }
13306
13307
13308 SWIGINTERN PyObject *_wrap_TextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13309 PyObject *resultobj = 0;
13310 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13311 bool result;
13312 void *argp1 = 0 ;
13313 int res1 = 0 ;
13314 PyObject *swig_obj[1] ;
13315
13316 if (!args) SWIG_fail;
13317 swig_obj[0] = args;
13318 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13319 if (!SWIG_IsOK(res1)) {
13320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCut" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13321 }
13322 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13323 {
13324 PyThreadState* __tstate = wxPyBeginAllowThreads();
13325 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
13326 wxPyEndAllowThreads(__tstate);
13327 if (PyErr_Occurred()) SWIG_fail;
13328 }
13329 {
13330 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13331 }
13332 return resultobj;
13333 fail:
13334 return NULL;
13335 }
13336
13337
13338 SWIGINTERN PyObject *_wrap_TextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13339 PyObject *resultobj = 0;
13340 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13341 bool result;
13342 void *argp1 = 0 ;
13343 int res1 = 0 ;
13344 PyObject *swig_obj[1] ;
13345
13346 if (!args) SWIG_fail;
13347 swig_obj[0] = args;
13348 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13349 if (!SWIG_IsOK(res1)) {
13350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13351 }
13352 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13353 {
13354 PyThreadState* __tstate = wxPyBeginAllowThreads();
13355 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
13356 wxPyEndAllowThreads(__tstate);
13357 if (PyErr_Occurred()) SWIG_fail;
13358 }
13359 {
13360 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13361 }
13362 return resultobj;
13363 fail:
13364 return NULL;
13365 }
13366
13367
13368 SWIGINTERN PyObject *_wrap_TextCtrl_Undo(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_Undo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13380 }
13381 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13382 {
13383 PyThreadState* __tstate = wxPyBeginAllowThreads();
13384 (arg1)->Undo();
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_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13396 PyObject *resultobj = 0;
13397 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13398 void *argp1 = 0 ;
13399 int res1 = 0 ;
13400 PyObject *swig_obj[1] ;
13401
13402 if (!args) SWIG_fail;
13403 swig_obj[0] = args;
13404 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13405 if (!SWIG_IsOK(res1)) {
13406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Redo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13407 }
13408 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13409 {
13410 PyThreadState* __tstate = wxPyBeginAllowThreads();
13411 (arg1)->Redo();
13412 wxPyEndAllowThreads(__tstate);
13413 if (PyErr_Occurred()) SWIG_fail;
13414 }
13415 resultobj = SWIG_Py_Void();
13416 return resultobj;
13417 fail:
13418 return NULL;
13419 }
13420
13421
13422 SWIGINTERN PyObject *_wrap_TextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13423 PyObject *resultobj = 0;
13424 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13425 bool result;
13426 void *argp1 = 0 ;
13427 int res1 = 0 ;
13428 PyObject *swig_obj[1] ;
13429
13430 if (!args) SWIG_fail;
13431 swig_obj[0] = args;
13432 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13433 if (!SWIG_IsOK(res1)) {
13434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13435 }
13436 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13437 {
13438 PyThreadState* __tstate = wxPyBeginAllowThreads();
13439 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
13440 wxPyEndAllowThreads(__tstate);
13441 if (PyErr_Occurred()) SWIG_fail;
13442 }
13443 {
13444 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13445 }
13446 return resultobj;
13447 fail:
13448 return NULL;
13449 }
13450
13451
13452 SWIGINTERN PyObject *_wrap_TextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13453 PyObject *resultobj = 0;
13454 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13455 bool result;
13456 void *argp1 = 0 ;
13457 int res1 = 0 ;
13458 PyObject *swig_obj[1] ;
13459
13460 if (!args) SWIG_fail;
13461 swig_obj[0] = args;
13462 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13463 if (!SWIG_IsOK(res1)) {
13464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13465 }
13466 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13467 {
13468 PyThreadState* __tstate = wxPyBeginAllowThreads();
13469 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
13470 wxPyEndAllowThreads(__tstate);
13471 if (PyErr_Occurred()) SWIG_fail;
13472 }
13473 {
13474 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13475 }
13476 return resultobj;
13477 fail:
13478 return NULL;
13479 }
13480
13481
13482 SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13483 PyObject *resultobj = 0;
13484 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13485 long arg2 ;
13486 void *argp1 = 0 ;
13487 int res1 = 0 ;
13488 long val2 ;
13489 int ecode2 = 0 ;
13490 PyObject * obj0 = 0 ;
13491 PyObject * obj1 = 0 ;
13492 char * kwnames[] = {
13493 (char *) "self",(char *) "pos", NULL
13494 };
13495
13496 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
13497 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13498 if (!SWIG_IsOK(res1)) {
13499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13500 }
13501 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13502 ecode2 = SWIG_AsVal_long(obj1, &val2);
13503 if (!SWIG_IsOK(ecode2)) {
13504 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
13505 }
13506 arg2 = static_cast< long >(val2);
13507 {
13508 PyThreadState* __tstate = wxPyBeginAllowThreads();
13509 (arg1)->SetInsertionPoint(arg2);
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_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13521 PyObject *resultobj = 0;
13522 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13523 void *argp1 = 0 ;
13524 int res1 = 0 ;
13525 PyObject *swig_obj[1] ;
13526
13527 if (!args) SWIG_fail;
13528 swig_obj[0] = args;
13529 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13530 if (!SWIG_IsOK(res1)) {
13531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13532 }
13533 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13534 {
13535 PyThreadState* __tstate = wxPyBeginAllowThreads();
13536 (arg1)->SetInsertionPointEnd();
13537 wxPyEndAllowThreads(__tstate);
13538 if (PyErr_Occurred()) SWIG_fail;
13539 }
13540 resultobj = SWIG_Py_Void();
13541 return resultobj;
13542 fail:
13543 return NULL;
13544 }
13545
13546
13547 SWIGINTERN PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13548 PyObject *resultobj = 0;
13549 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13550 long result;
13551 void *argp1 = 0 ;
13552 int res1 = 0 ;
13553 PyObject *swig_obj[1] ;
13554
13555 if (!args) SWIG_fail;
13556 swig_obj[0] = args;
13557 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13558 if (!SWIG_IsOK(res1)) {
13559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13560 }
13561 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13562 {
13563 PyThreadState* __tstate = wxPyBeginAllowThreads();
13564 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
13565 wxPyEndAllowThreads(__tstate);
13566 if (PyErr_Occurred()) SWIG_fail;
13567 }
13568 resultobj = SWIG_From_long(static_cast< long >(result));
13569 return resultobj;
13570 fail:
13571 return NULL;
13572 }
13573
13574
13575 SWIGINTERN PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13576 PyObject *resultobj = 0;
13577 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13578 long result;
13579 void *argp1 = 0 ;
13580 int res1 = 0 ;
13581 PyObject *swig_obj[1] ;
13582
13583 if (!args) SWIG_fail;
13584 swig_obj[0] = args;
13585 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13586 if (!SWIG_IsOK(res1)) {
13587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13588 }
13589 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13590 {
13591 PyThreadState* __tstate = wxPyBeginAllowThreads();
13592 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
13593 wxPyEndAllowThreads(__tstate);
13594 if (PyErr_Occurred()) SWIG_fail;
13595 }
13596 resultobj = SWIG_From_long(static_cast< long >(result));
13597 return resultobj;
13598 fail:
13599 return NULL;
13600 }
13601
13602
13603 SWIGINTERN PyObject *_wrap_TextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13604 PyObject *resultobj = 0;
13605 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13606 long arg2 ;
13607 long arg3 ;
13608 void *argp1 = 0 ;
13609 int res1 = 0 ;
13610 long val2 ;
13611 int ecode2 = 0 ;
13612 long val3 ;
13613 int ecode3 = 0 ;
13614 PyObject * obj0 = 0 ;
13615 PyObject * obj1 = 0 ;
13616 PyObject * obj2 = 0 ;
13617 char * kwnames[] = {
13618 (char *) "self",(char *) "from",(char *) "to", NULL
13619 };
13620
13621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13622 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13623 if (!SWIG_IsOK(res1)) {
13624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13625 }
13626 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13627 ecode2 = SWIG_AsVal_long(obj1, &val2);
13628 if (!SWIG_IsOK(ecode2)) {
13629 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
13630 }
13631 arg2 = static_cast< long >(val2);
13632 ecode3 = SWIG_AsVal_long(obj2, &val3);
13633 if (!SWIG_IsOK(ecode3)) {
13634 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
13635 }
13636 arg3 = static_cast< long >(val3);
13637 {
13638 PyThreadState* __tstate = wxPyBeginAllowThreads();
13639 (arg1)->SetSelection(arg2,arg3);
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_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13651 PyObject *resultobj = 0;
13652 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13653 void *argp1 = 0 ;
13654 int res1 = 0 ;
13655 PyObject *swig_obj[1] ;
13656
13657 if (!args) SWIG_fail;
13658 swig_obj[0] = args;
13659 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13660 if (!SWIG_IsOK(res1)) {
13661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13662 }
13663 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13664 {
13665 PyThreadState* __tstate = wxPyBeginAllowThreads();
13666 (arg1)->SelectAll();
13667 wxPyEndAllowThreads(__tstate);
13668 if (PyErr_Occurred()) SWIG_fail;
13669 }
13670 resultobj = SWIG_Py_Void();
13671 return resultobj;
13672 fail:
13673 return NULL;
13674 }
13675
13676
13677 SWIGINTERN PyObject *_wrap_TextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13678 PyObject *resultobj = 0;
13679 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13680 bool arg2 ;
13681 void *argp1 = 0 ;
13682 int res1 = 0 ;
13683 bool val2 ;
13684 int ecode2 = 0 ;
13685 PyObject * obj0 = 0 ;
13686 PyObject * obj1 = 0 ;
13687 char * kwnames[] = {
13688 (char *) "self",(char *) "editable", NULL
13689 };
13690
13691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
13692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13693 if (!SWIG_IsOK(res1)) {
13694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13695 }
13696 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13697 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13698 if (!SWIG_IsOK(ecode2)) {
13699 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'");
13700 }
13701 arg2 = static_cast< bool >(val2);
13702 {
13703 PyThreadState* __tstate = wxPyBeginAllowThreads();
13704 (arg1)->SetEditable(arg2);
13705 wxPyEndAllowThreads(__tstate);
13706 if (PyErr_Occurred()) SWIG_fail;
13707 }
13708 resultobj = SWIG_Py_Void();
13709 return resultobj;
13710 fail:
13711 return NULL;
13712 }
13713
13714
13715 SWIGINTERN PyObject *_wrap_TextCtrl_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13716 PyObject *resultobj = 0;
13717 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13718 wxString *arg2 = 0 ;
13719 void *argp1 = 0 ;
13720 int res1 = 0 ;
13721 bool temp2 = false ;
13722 PyObject * obj0 = 0 ;
13723 PyObject * obj1 = 0 ;
13724 char * kwnames[] = {
13725 (char *) "self",(char *) "text", NULL
13726 };
13727
13728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) SWIG_fail;
13729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13730 if (!SWIG_IsOK(res1)) {
13731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_write" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13732 }
13733 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13734 {
13735 arg2 = wxString_in_helper(obj1);
13736 if (arg2 == NULL) SWIG_fail;
13737 temp2 = true;
13738 }
13739 {
13740 PyThreadState* __tstate = wxPyBeginAllowThreads();
13741 wxTextCtrl_write(arg1,(wxString const &)*arg2);
13742 wxPyEndAllowThreads(__tstate);
13743 if (PyErr_Occurred()) SWIG_fail;
13744 }
13745 resultobj = SWIG_Py_Void();
13746 {
13747 if (temp2)
13748 delete arg2;
13749 }
13750 return resultobj;
13751 fail:
13752 {
13753 if (temp2)
13754 delete arg2;
13755 }
13756 return NULL;
13757 }
13758
13759
13760 SWIGINTERN PyObject *_wrap_TextCtrl_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13761 PyObject *resultobj = 0;
13762 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13763 long arg2 ;
13764 long arg3 ;
13765 wxString result;
13766 void *argp1 = 0 ;
13767 int res1 = 0 ;
13768 long val2 ;
13769 int ecode2 = 0 ;
13770 long val3 ;
13771 int ecode3 = 0 ;
13772 PyObject * obj0 = 0 ;
13773 PyObject * obj1 = 0 ;
13774 PyObject * obj2 = 0 ;
13775 char * kwnames[] = {
13776 (char *) "self",(char *) "from",(char *) "to", NULL
13777 };
13778
13779 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13780 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13781 if (!SWIG_IsOK(res1)) {
13782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetString" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13783 }
13784 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13785 ecode2 = SWIG_AsVal_long(obj1, &val2);
13786 if (!SWIG_IsOK(ecode2)) {
13787 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetString" "', expected argument " "2"" of type '" "long""'");
13788 }
13789 arg2 = static_cast< long >(val2);
13790 ecode3 = SWIG_AsVal_long(obj2, &val3);
13791 if (!SWIG_IsOK(ecode3)) {
13792 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetString" "', expected argument " "3"" of type '" "long""'");
13793 }
13794 arg3 = static_cast< long >(val3);
13795 {
13796 PyThreadState* __tstate = wxPyBeginAllowThreads();
13797 result = wxTextCtrl_GetString(arg1,arg2,arg3);
13798 wxPyEndAllowThreads(__tstate);
13799 if (PyErr_Occurred()) SWIG_fail;
13800 }
13801 {
13802 #if wxUSE_UNICODE
13803 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13804 #else
13805 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13806 #endif
13807 }
13808 return resultobj;
13809 fail:
13810 return NULL;
13811 }
13812
13813
13814 SWIGINTERN PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13815 PyObject *resultobj = 0;
13816 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
13817 SwigValueWrapper<wxVisualAttributes > result;
13818 int val1 ;
13819 int ecode1 = 0 ;
13820 PyObject * obj0 = 0 ;
13821 char * kwnames[] = {
13822 (char *) "variant", NULL
13823 };
13824
13825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
13826 if (obj0) {
13827 ecode1 = SWIG_AsVal_int(obj0, &val1);
13828 if (!SWIG_IsOK(ecode1)) {
13829 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TextCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
13830 }
13831 arg1 = static_cast< wxWindowVariant >(val1);
13832 }
13833 {
13834 if (!wxPyCheckForApp()) SWIG_fail;
13835 PyThreadState* __tstate = wxPyBeginAllowThreads();
13836 result = wxTextCtrl::GetClassDefaultAttributes(arg1);
13837 wxPyEndAllowThreads(__tstate);
13838 if (PyErr_Occurred()) SWIG_fail;
13839 }
13840 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
13841 return resultobj;
13842 fail:
13843 return NULL;
13844 }
13845
13846
13847 SWIGINTERN PyObject *TextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13848 PyObject *obj;
13849 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13850 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextCtrl, SWIG_NewClientData(obj));
13851 return SWIG_Py_Void();
13852 }
13853
13854 SWIGINTERN PyObject *TextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13855 return SWIG_Python_InitShadowInstance(args);
13856 }
13857
13858 SWIGINTERN PyObject *_wrap_new_TextUrlEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13859 PyObject *resultobj = 0;
13860 int arg1 ;
13861 wxMouseEvent *arg2 = 0 ;
13862 long arg3 ;
13863 long arg4 ;
13864 wxTextUrlEvent *result = 0 ;
13865 int val1 ;
13866 int ecode1 = 0 ;
13867 void *argp2 = 0 ;
13868 int res2 = 0 ;
13869 long val3 ;
13870 int ecode3 = 0 ;
13871 long val4 ;
13872 int ecode4 = 0 ;
13873 PyObject * obj0 = 0 ;
13874 PyObject * obj1 = 0 ;
13875 PyObject * obj2 = 0 ;
13876 PyObject * obj3 = 0 ;
13877 char * kwnames[] = {
13878 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
13879 };
13880
13881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13882 ecode1 = SWIG_AsVal_int(obj0, &val1);
13883 if (!SWIG_IsOK(ecode1)) {
13884 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TextUrlEvent" "', expected argument " "1"" of type '" "int""'");
13885 }
13886 arg1 = static_cast< int >(val1);
13887 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxMouseEvent, 0 | 0);
13888 if (!SWIG_IsOK(res2)) {
13889 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
13890 }
13891 if (!argp2) {
13892 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
13893 }
13894 arg2 = reinterpret_cast< wxMouseEvent * >(argp2);
13895 ecode3 = SWIG_AsVal_long(obj2, &val3);
13896 if (!SWIG_IsOK(ecode3)) {
13897 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TextUrlEvent" "', expected argument " "3"" of type '" "long""'");
13898 }
13899 arg3 = static_cast< long >(val3);
13900 ecode4 = SWIG_AsVal_long(obj3, &val4);
13901 if (!SWIG_IsOK(ecode4)) {
13902 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextUrlEvent" "', expected argument " "4"" of type '" "long""'");
13903 }
13904 arg4 = static_cast< long >(val4);
13905 {
13906 PyThreadState* __tstate = wxPyBeginAllowThreads();
13907 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
13908 wxPyEndAllowThreads(__tstate);
13909 if (PyErr_Occurred()) SWIG_fail;
13910 }
13911 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_NEW | 0 );
13912 return resultobj;
13913 fail:
13914 return NULL;
13915 }
13916
13917
13918 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13919 PyObject *resultobj = 0;
13920 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
13921 wxMouseEvent *result = 0 ;
13922 void *argp1 = 0 ;
13923 int res1 = 0 ;
13924 PyObject *swig_obj[1] ;
13925
13926 if (!args) SWIG_fail;
13927 swig_obj[0] = args;
13928 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
13929 if (!SWIG_IsOK(res1)) {
13930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetMouseEvent" "', expected argument " "1"" of type '" "wxTextUrlEvent *""'");
13931 }
13932 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
13933 {
13934 PyThreadState* __tstate = wxPyBeginAllowThreads();
13935 {
13936 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
13937 result = (wxMouseEvent *) &_result_ref;
13938 }
13939 wxPyEndAllowThreads(__tstate);
13940 if (PyErr_Occurred()) SWIG_fail;
13941 }
13942 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseEvent, 0 | 0 );
13943 return resultobj;
13944 fail:
13945 return NULL;
13946 }
13947
13948
13949 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13950 PyObject *resultobj = 0;
13951 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
13952 long result;
13953 void *argp1 = 0 ;
13954 int res1 = 0 ;
13955 PyObject *swig_obj[1] ;
13956
13957 if (!args) SWIG_fail;
13958 swig_obj[0] = args;
13959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
13960 if (!SWIG_IsOK(res1)) {
13961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLStart" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
13962 }
13963 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
13964 {
13965 PyThreadState* __tstate = wxPyBeginAllowThreads();
13966 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
13967 wxPyEndAllowThreads(__tstate);
13968 if (PyErr_Occurred()) SWIG_fail;
13969 }
13970 resultobj = SWIG_From_long(static_cast< long >(result));
13971 return resultobj;
13972 fail:
13973 return NULL;
13974 }
13975
13976
13977 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13978 PyObject *resultobj = 0;
13979 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
13980 long result;
13981 void *argp1 = 0 ;
13982 int res1 = 0 ;
13983 PyObject *swig_obj[1] ;
13984
13985 if (!args) SWIG_fail;
13986 swig_obj[0] = args;
13987 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
13988 if (!SWIG_IsOK(res1)) {
13989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLEnd" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
13990 }
13991 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
13992 {
13993 PyThreadState* __tstate = wxPyBeginAllowThreads();
13994 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
13995 wxPyEndAllowThreads(__tstate);
13996 if (PyErr_Occurred()) SWIG_fail;
13997 }
13998 resultobj = SWIG_From_long(static_cast< long >(result));
13999 return resultobj;
14000 fail:
14001 return NULL;
14002 }
14003
14004
14005 SWIGINTERN PyObject *TextUrlEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14006 PyObject *obj;
14007 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14008 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextUrlEvent, SWIG_NewClientData(obj));
14009 return SWIG_Py_Void();
14010 }
14011
14012 SWIGINTERN PyObject *TextUrlEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14013 return SWIG_Python_InitShadowInstance(args);
14014 }
14015
14016 SWIGINTERN int ScrollBarNameStr_set(PyObject *) {
14017 SWIG_Error(SWIG_AttributeError,"Variable ScrollBarNameStr is read-only.");
14018 return 1;
14019 }
14020
14021
14022 SWIGINTERN PyObject *ScrollBarNameStr_get(void) {
14023 PyObject *pyobj = 0;
14024
14025 {
14026 #if wxUSE_UNICODE
14027 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14028 #else
14029 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14030 #endif
14031 }
14032 return pyobj;
14033 }
14034
14035
14036 SWIGINTERN PyObject *_wrap_new_ScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14037 PyObject *resultobj = 0;
14038 wxWindow *arg1 = (wxWindow *) 0 ;
14039 int arg2 = (int) -1 ;
14040 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14041 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14042 wxSize const &arg4_defvalue = wxDefaultSize ;
14043 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14044 long arg5 = (long) wxSB_HORIZONTAL ;
14045 wxValidator const &arg6_defvalue = wxDefaultValidator ;
14046 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
14047 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
14048 wxString *arg7 = (wxString *) &arg7_defvalue ;
14049 wxScrollBar *result = 0 ;
14050 void *argp1 = 0 ;
14051 int res1 = 0 ;
14052 int val2 ;
14053 int ecode2 = 0 ;
14054 wxPoint temp3 ;
14055 wxSize temp4 ;
14056 long val5 ;
14057 int ecode5 = 0 ;
14058 void *argp6 = 0 ;
14059 int res6 = 0 ;
14060 bool temp7 = false ;
14061 PyObject * obj0 = 0 ;
14062 PyObject * obj1 = 0 ;
14063 PyObject * obj2 = 0 ;
14064 PyObject * obj3 = 0 ;
14065 PyObject * obj4 = 0 ;
14066 PyObject * obj5 = 0 ;
14067 PyObject * obj6 = 0 ;
14068 char * kwnames[] = {
14069 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14070 };
14071
14072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14073 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14074 if (!SWIG_IsOK(res1)) {
14075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrollBar" "', expected argument " "1"" of type '" "wxWindow *""'");
14076 }
14077 arg1 = reinterpret_cast< wxWindow * >(argp1);
14078 if (obj1) {
14079 ecode2 = SWIG_AsVal_int(obj1, &val2);
14080 if (!SWIG_IsOK(ecode2)) {
14081 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollBar" "', expected argument " "2"" of type '" "int""'");
14082 }
14083 arg2 = static_cast< int >(val2);
14084 }
14085 if (obj2) {
14086 {
14087 arg3 = &temp3;
14088 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14089 }
14090 }
14091 if (obj3) {
14092 {
14093 arg4 = &temp4;
14094 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14095 }
14096 }
14097 if (obj4) {
14098 ecode5 = SWIG_AsVal_long(obj4, &val5);
14099 if (!SWIG_IsOK(ecode5)) {
14100 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrollBar" "', expected argument " "5"" of type '" "long""'");
14101 }
14102 arg5 = static_cast< long >(val5);
14103 }
14104 if (obj5) {
14105 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
14106 if (!SWIG_IsOK(res6)) {
14107 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14108 }
14109 if (!argp6) {
14110 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14111 }
14112 arg6 = reinterpret_cast< wxValidator * >(argp6);
14113 }
14114 if (obj6) {
14115 {
14116 arg7 = wxString_in_helper(obj6);
14117 if (arg7 == NULL) SWIG_fail;
14118 temp7 = true;
14119 }
14120 }
14121 {
14122 if (!wxPyCheckForApp()) SWIG_fail;
14123 PyThreadState* __tstate = wxPyBeginAllowThreads();
14124 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
14125 wxPyEndAllowThreads(__tstate);
14126 if (PyErr_Occurred()) SWIG_fail;
14127 }
14128 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_NEW | 0 );
14129 {
14130 if (temp7)
14131 delete arg7;
14132 }
14133 return resultobj;
14134 fail:
14135 {
14136 if (temp7)
14137 delete arg7;
14138 }
14139 return NULL;
14140 }
14141
14142
14143 SWIGINTERN PyObject *_wrap_new_PreScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14144 PyObject *resultobj = 0;
14145 wxScrollBar *result = 0 ;
14146
14147 if (!SWIG_Python_UnpackTuple(args,"new_PreScrollBar",0,0,0)) SWIG_fail;
14148 {
14149 if (!wxPyCheckForApp()) SWIG_fail;
14150 PyThreadState* __tstate = wxPyBeginAllowThreads();
14151 result = (wxScrollBar *)new wxScrollBar();
14152 wxPyEndAllowThreads(__tstate);
14153 if (PyErr_Occurred()) SWIG_fail;
14154 }
14155 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_OWN | 0 );
14156 return resultobj;
14157 fail:
14158 return NULL;
14159 }
14160
14161
14162 SWIGINTERN PyObject *_wrap_ScrollBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14163 PyObject *resultobj = 0;
14164 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14165 wxWindow *arg2 = (wxWindow *) 0 ;
14166 int arg3 = (int) -1 ;
14167 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14168 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14169 wxSize const &arg5_defvalue = wxDefaultSize ;
14170 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14171 long arg6 = (long) wxSB_HORIZONTAL ;
14172 wxValidator const &arg7_defvalue = wxDefaultValidator ;
14173 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
14174 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
14175 wxString *arg8 = (wxString *) &arg8_defvalue ;
14176 bool result;
14177 void *argp1 = 0 ;
14178 int res1 = 0 ;
14179 void *argp2 = 0 ;
14180 int res2 = 0 ;
14181 int val3 ;
14182 int ecode3 = 0 ;
14183 wxPoint temp4 ;
14184 wxSize temp5 ;
14185 long val6 ;
14186 int ecode6 = 0 ;
14187 void *argp7 = 0 ;
14188 int res7 = 0 ;
14189 bool temp8 = false ;
14190 PyObject * obj0 = 0 ;
14191 PyObject * obj1 = 0 ;
14192 PyObject * obj2 = 0 ;
14193 PyObject * obj3 = 0 ;
14194 PyObject * obj4 = 0 ;
14195 PyObject * obj5 = 0 ;
14196 PyObject * obj6 = 0 ;
14197 PyObject * obj7 = 0 ;
14198 char * kwnames[] = {
14199 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14200 };
14201
14202 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
14203 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14204 if (!SWIG_IsOK(res1)) {
14205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_Create" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14206 }
14207 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14208 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14209 if (!SWIG_IsOK(res2)) {
14210 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrollBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14211 }
14212 arg2 = reinterpret_cast< wxWindow * >(argp2);
14213 if (obj2) {
14214 ecode3 = SWIG_AsVal_int(obj2, &val3);
14215 if (!SWIG_IsOK(ecode3)) {
14216 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrollBar_Create" "', expected argument " "3"" of type '" "int""'");
14217 }
14218 arg3 = static_cast< int >(val3);
14219 }
14220 if (obj3) {
14221 {
14222 arg4 = &temp4;
14223 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14224 }
14225 }
14226 if (obj4) {
14227 {
14228 arg5 = &temp5;
14229 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14230 }
14231 }
14232 if (obj5) {
14233 ecode6 = SWIG_AsVal_long(obj5, &val6);
14234 if (!SWIG_IsOK(ecode6)) {
14235 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrollBar_Create" "', expected argument " "6"" of type '" "long""'");
14236 }
14237 arg6 = static_cast< long >(val6);
14238 }
14239 if (obj6) {
14240 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
14241 if (!SWIG_IsOK(res7)) {
14242 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14243 }
14244 if (!argp7) {
14245 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14246 }
14247 arg7 = reinterpret_cast< wxValidator * >(argp7);
14248 }
14249 if (obj7) {
14250 {
14251 arg8 = wxString_in_helper(obj7);
14252 if (arg8 == NULL) SWIG_fail;
14253 temp8 = true;
14254 }
14255 }
14256 {
14257 PyThreadState* __tstate = wxPyBeginAllowThreads();
14258 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
14259 wxPyEndAllowThreads(__tstate);
14260 if (PyErr_Occurred()) SWIG_fail;
14261 }
14262 {
14263 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14264 }
14265 {
14266 if (temp8)
14267 delete arg8;
14268 }
14269 return resultobj;
14270 fail:
14271 {
14272 if (temp8)
14273 delete arg8;
14274 }
14275 return NULL;
14276 }
14277
14278
14279 SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14280 PyObject *resultobj = 0;
14281 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14282 int result;
14283 void *argp1 = 0 ;
14284 int res1 = 0 ;
14285 PyObject *swig_obj[1] ;
14286
14287 if (!args) SWIG_fail;
14288 swig_obj[0] = args;
14289 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14290 if (!SWIG_IsOK(res1)) {
14291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14292 }
14293 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14294 {
14295 PyThreadState* __tstate = wxPyBeginAllowThreads();
14296 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
14297 wxPyEndAllowThreads(__tstate);
14298 if (PyErr_Occurred()) SWIG_fail;
14299 }
14300 resultobj = SWIG_From_int(static_cast< int >(result));
14301 return resultobj;
14302 fail:
14303 return NULL;
14304 }
14305
14306
14307 SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14308 PyObject *resultobj = 0;
14309 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14310 int result;
14311 void *argp1 = 0 ;
14312 int res1 = 0 ;
14313 PyObject *swig_obj[1] ;
14314
14315 if (!args) SWIG_fail;
14316 swig_obj[0] = args;
14317 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14318 if (!SWIG_IsOK(res1)) {
14319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14320 }
14321 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14322 {
14323 PyThreadState* __tstate = wxPyBeginAllowThreads();
14324 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
14325 wxPyEndAllowThreads(__tstate);
14326 if (PyErr_Occurred()) SWIG_fail;
14327 }
14328 resultobj = SWIG_From_int(static_cast< int >(result));
14329 return resultobj;
14330 fail:
14331 return NULL;
14332 }
14333
14334
14335 SWIGINTERN PyObject *_wrap_ScrollBar_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14336 PyObject *resultobj = 0;
14337 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14338 int result;
14339 void *argp1 = 0 ;
14340 int res1 = 0 ;
14341 PyObject *swig_obj[1] ;
14342
14343 if (!args) SWIG_fail;
14344 swig_obj[0] = args;
14345 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14346 if (!SWIG_IsOK(res1)) {
14347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetPageSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14348 }
14349 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14350 {
14351 PyThreadState* __tstate = wxPyBeginAllowThreads();
14352 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
14353 wxPyEndAllowThreads(__tstate);
14354 if (PyErr_Occurred()) SWIG_fail;
14355 }
14356 resultobj = SWIG_From_int(static_cast< int >(result));
14357 return resultobj;
14358 fail:
14359 return NULL;
14360 }
14361
14362
14363 SWIGINTERN PyObject *_wrap_ScrollBar_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14364 PyObject *resultobj = 0;
14365 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14366 int result;
14367 void *argp1 = 0 ;
14368 int res1 = 0 ;
14369 PyObject *swig_obj[1] ;
14370
14371 if (!args) SWIG_fail;
14372 swig_obj[0] = args;
14373 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14374 if (!SWIG_IsOK(res1)) {
14375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetRange" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14376 }
14377 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14378 {
14379 PyThreadState* __tstate = wxPyBeginAllowThreads();
14380 result = (int)((wxScrollBar const *)arg1)->GetRange();
14381 wxPyEndAllowThreads(__tstate);
14382 if (PyErr_Occurred()) SWIG_fail;
14383 }
14384 resultobj = SWIG_From_int(static_cast< int >(result));
14385 return resultobj;
14386 fail:
14387 return NULL;
14388 }
14389
14390
14391 SWIGINTERN PyObject *_wrap_ScrollBar_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14392 PyObject *resultobj = 0;
14393 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14394 bool result;
14395 void *argp1 = 0 ;
14396 int res1 = 0 ;
14397 PyObject *swig_obj[1] ;
14398
14399 if (!args) SWIG_fail;
14400 swig_obj[0] = args;
14401 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14402 if (!SWIG_IsOK(res1)) {
14403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_IsVertical" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14404 }
14405 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14406 {
14407 PyThreadState* __tstate = wxPyBeginAllowThreads();
14408 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
14409 wxPyEndAllowThreads(__tstate);
14410 if (PyErr_Occurred()) SWIG_fail;
14411 }
14412 {
14413 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14414 }
14415 return resultobj;
14416 fail:
14417 return NULL;
14418 }
14419
14420
14421 SWIGINTERN PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14422 PyObject *resultobj = 0;
14423 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14424 int arg2 ;
14425 void *argp1 = 0 ;
14426 int res1 = 0 ;
14427 int val2 ;
14428 int ecode2 = 0 ;
14429 PyObject * obj0 = 0 ;
14430 PyObject * obj1 = 0 ;
14431 char * kwnames[] = {
14432 (char *) "self",(char *) "viewStart", NULL
14433 };
14434
14435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) SWIG_fail;
14436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14437 if (!SWIG_IsOK(res1)) {
14438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14439 }
14440 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14441 ecode2 = SWIG_AsVal_int(obj1, &val2);
14442 if (!SWIG_IsOK(ecode2)) {
14443 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "2"" of type '" "int""'");
14444 }
14445 arg2 = static_cast< int >(val2);
14446 {
14447 PyThreadState* __tstate = wxPyBeginAllowThreads();
14448 (arg1)->SetThumbPosition(arg2);
14449 wxPyEndAllowThreads(__tstate);
14450 if (PyErr_Occurred()) SWIG_fail;
14451 }
14452 resultobj = SWIG_Py_Void();
14453 return resultobj;
14454 fail:
14455 return NULL;
14456 }
14457
14458
14459 SWIGINTERN PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14460 PyObject *resultobj = 0;
14461 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14462 SwigValueWrapper<wxVisualAttributes > result;
14463 int val1 ;
14464 int ecode1 = 0 ;
14465 PyObject * obj0 = 0 ;
14466 char * kwnames[] = {
14467 (char *) "variant", NULL
14468 };
14469
14470 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14471 if (obj0) {
14472 ecode1 = SWIG_AsVal_int(obj0, &val1);
14473 if (!SWIG_IsOK(ecode1)) {
14474 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrollBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14475 }
14476 arg1 = static_cast< wxWindowVariant >(val1);
14477 }
14478 {
14479 if (!wxPyCheckForApp()) SWIG_fail;
14480 PyThreadState* __tstate = wxPyBeginAllowThreads();
14481 result = wxScrollBar::GetClassDefaultAttributes(arg1);
14482 wxPyEndAllowThreads(__tstate);
14483 if (PyErr_Occurred()) SWIG_fail;
14484 }
14485 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14486 return resultobj;
14487 fail:
14488 return NULL;
14489 }
14490
14491
14492 SWIGINTERN PyObject *ScrollBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14493 PyObject *obj;
14494 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14495 SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollBar, SWIG_NewClientData(obj));
14496 return SWIG_Py_Void();
14497 }
14498
14499 SWIGINTERN PyObject *ScrollBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14500 return SWIG_Python_InitShadowInstance(args);
14501 }
14502
14503 SWIGINTERN int SPIN_BUTTON_NAME_set(PyObject *) {
14504 SWIG_Error(SWIG_AttributeError,"Variable SPIN_BUTTON_NAME is read-only.");
14505 return 1;
14506 }
14507
14508
14509 SWIGINTERN PyObject *SPIN_BUTTON_NAME_get(void) {
14510 PyObject *pyobj = 0;
14511
14512 {
14513 #if wxUSE_UNICODE
14514 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14515 #else
14516 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14517 #endif
14518 }
14519 return pyobj;
14520 }
14521
14522
14523 SWIGINTERN int SpinCtrlNameStr_set(PyObject *) {
14524 SWIG_Error(SWIG_AttributeError,"Variable SpinCtrlNameStr is read-only.");
14525 return 1;
14526 }
14527
14528
14529 SWIGINTERN PyObject *SpinCtrlNameStr_get(void) {
14530 PyObject *pyobj = 0;
14531
14532 {
14533 #if wxUSE_UNICODE
14534 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14535 #else
14536 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14537 #endif
14538 }
14539 return pyobj;
14540 }
14541
14542
14543 SWIGINTERN PyObject *_wrap_new_SpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14544 PyObject *resultobj = 0;
14545 wxWindow *arg1 = (wxWindow *) 0 ;
14546 int arg2 = (int) -1 ;
14547 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14548 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14549 wxSize const &arg4_defvalue = wxDefaultSize ;
14550 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14551 long arg5 = (long) wxSP_HORIZONTAL ;
14552 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
14553 wxString *arg6 = (wxString *) &arg6_defvalue ;
14554 wxSpinButton *result = 0 ;
14555 void *argp1 = 0 ;
14556 int res1 = 0 ;
14557 int val2 ;
14558 int ecode2 = 0 ;
14559 wxPoint temp3 ;
14560 wxSize temp4 ;
14561 long val5 ;
14562 int ecode5 = 0 ;
14563 bool temp6 = false ;
14564 PyObject * obj0 = 0 ;
14565 PyObject * obj1 = 0 ;
14566 PyObject * obj2 = 0 ;
14567 PyObject * obj3 = 0 ;
14568 PyObject * obj4 = 0 ;
14569 PyObject * obj5 = 0 ;
14570 char * kwnames[] = {
14571 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14572 };
14573
14574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
14575 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14576 if (!SWIG_IsOK(res1)) {
14577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinButton" "', expected argument " "1"" of type '" "wxWindow *""'");
14578 }
14579 arg1 = reinterpret_cast< wxWindow * >(argp1);
14580 if (obj1) {
14581 ecode2 = SWIG_AsVal_int(obj1, &val2);
14582 if (!SWIG_IsOK(ecode2)) {
14583 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinButton" "', expected argument " "2"" of type '" "int""'");
14584 }
14585 arg2 = static_cast< int >(val2);
14586 }
14587 if (obj2) {
14588 {
14589 arg3 = &temp3;
14590 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14591 }
14592 }
14593 if (obj3) {
14594 {
14595 arg4 = &temp4;
14596 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14597 }
14598 }
14599 if (obj4) {
14600 ecode5 = SWIG_AsVal_long(obj4, &val5);
14601 if (!SWIG_IsOK(ecode5)) {
14602 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpinButton" "', expected argument " "5"" of type '" "long""'");
14603 }
14604 arg5 = static_cast< long >(val5);
14605 }
14606 if (obj5) {
14607 {
14608 arg6 = wxString_in_helper(obj5);
14609 if (arg6 == NULL) SWIG_fail;
14610 temp6 = true;
14611 }
14612 }
14613 {
14614 if (!wxPyCheckForApp()) SWIG_fail;
14615 PyThreadState* __tstate = wxPyBeginAllowThreads();
14616 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14617 wxPyEndAllowThreads(__tstate);
14618 if (PyErr_Occurred()) SWIG_fail;
14619 }
14620 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_NEW | 0 );
14621 {
14622 if (temp6)
14623 delete arg6;
14624 }
14625 return resultobj;
14626 fail:
14627 {
14628 if (temp6)
14629 delete arg6;
14630 }
14631 return NULL;
14632 }
14633
14634
14635 SWIGINTERN PyObject *_wrap_new_PreSpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14636 PyObject *resultobj = 0;
14637 wxSpinButton *result = 0 ;
14638
14639 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinButton",0,0,0)) SWIG_fail;
14640 {
14641 if (!wxPyCheckForApp()) SWIG_fail;
14642 PyThreadState* __tstate = wxPyBeginAllowThreads();
14643 result = (wxSpinButton *)new wxSpinButton();
14644 wxPyEndAllowThreads(__tstate);
14645 if (PyErr_Occurred()) SWIG_fail;
14646 }
14647 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_OWN | 0 );
14648 return resultobj;
14649 fail:
14650 return NULL;
14651 }
14652
14653
14654 SWIGINTERN PyObject *_wrap_SpinButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14655 PyObject *resultobj = 0;
14656 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14657 wxWindow *arg2 = (wxWindow *) 0 ;
14658 int arg3 = (int) -1 ;
14659 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14660 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14661 wxSize const &arg5_defvalue = wxDefaultSize ;
14662 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14663 long arg6 = (long) wxSP_HORIZONTAL ;
14664 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
14665 wxString *arg7 = (wxString *) &arg7_defvalue ;
14666 bool result;
14667 void *argp1 = 0 ;
14668 int res1 = 0 ;
14669 void *argp2 = 0 ;
14670 int res2 = 0 ;
14671 int val3 ;
14672 int ecode3 = 0 ;
14673 wxPoint temp4 ;
14674 wxSize temp5 ;
14675 long val6 ;
14676 int ecode6 = 0 ;
14677 bool temp7 = false ;
14678 PyObject * obj0 = 0 ;
14679 PyObject * obj1 = 0 ;
14680 PyObject * obj2 = 0 ;
14681 PyObject * obj3 = 0 ;
14682 PyObject * obj4 = 0 ;
14683 PyObject * obj5 = 0 ;
14684 PyObject * obj6 = 0 ;
14685 char * kwnames[] = {
14686 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14687 };
14688
14689 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14690 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14691 if (!SWIG_IsOK(res1)) {
14692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_Create" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14693 }
14694 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14695 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14696 if (!SWIG_IsOK(res2)) {
14697 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14698 }
14699 arg2 = reinterpret_cast< wxWindow * >(argp2);
14700 if (obj2) {
14701 ecode3 = SWIG_AsVal_int(obj2, &val3);
14702 if (!SWIG_IsOK(ecode3)) {
14703 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_Create" "', expected argument " "3"" of type '" "int""'");
14704 }
14705 arg3 = static_cast< int >(val3);
14706 }
14707 if (obj3) {
14708 {
14709 arg4 = &temp4;
14710 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14711 }
14712 }
14713 if (obj4) {
14714 {
14715 arg5 = &temp5;
14716 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14717 }
14718 }
14719 if (obj5) {
14720 ecode6 = SWIG_AsVal_long(obj5, &val6);
14721 if (!SWIG_IsOK(ecode6)) {
14722 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SpinButton_Create" "', expected argument " "6"" of type '" "long""'");
14723 }
14724 arg6 = static_cast< long >(val6);
14725 }
14726 if (obj6) {
14727 {
14728 arg7 = wxString_in_helper(obj6);
14729 if (arg7 == NULL) SWIG_fail;
14730 temp7 = true;
14731 }
14732 }
14733 {
14734 PyThreadState* __tstate = wxPyBeginAllowThreads();
14735 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
14736 wxPyEndAllowThreads(__tstate);
14737 if (PyErr_Occurred()) SWIG_fail;
14738 }
14739 {
14740 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14741 }
14742 {
14743 if (temp7)
14744 delete arg7;
14745 }
14746 return resultobj;
14747 fail:
14748 {
14749 if (temp7)
14750 delete arg7;
14751 }
14752 return NULL;
14753 }
14754
14755
14756 SWIGINTERN PyObject *_wrap_SpinButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14757 PyObject *resultobj = 0;
14758 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14759 int result;
14760 void *argp1 = 0 ;
14761 int res1 = 0 ;
14762 PyObject *swig_obj[1] ;
14763
14764 if (!args) SWIG_fail;
14765 swig_obj[0] = args;
14766 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14767 if (!SWIG_IsOK(res1)) {
14768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetValue" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14769 }
14770 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14771 {
14772 PyThreadState* __tstate = wxPyBeginAllowThreads();
14773 result = (int)((wxSpinButton const *)arg1)->GetValue();
14774 wxPyEndAllowThreads(__tstate);
14775 if (PyErr_Occurred()) SWIG_fail;
14776 }
14777 resultobj = SWIG_From_int(static_cast< int >(result));
14778 return resultobj;
14779 fail:
14780 return NULL;
14781 }
14782
14783
14784 SWIGINTERN PyObject *_wrap_SpinButton_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14785 PyObject *resultobj = 0;
14786 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14787 int result;
14788 void *argp1 = 0 ;
14789 int res1 = 0 ;
14790 PyObject *swig_obj[1] ;
14791
14792 if (!args) SWIG_fail;
14793 swig_obj[0] = args;
14794 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14795 if (!SWIG_IsOK(res1)) {
14796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMin" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14797 }
14798 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14799 {
14800 PyThreadState* __tstate = wxPyBeginAllowThreads();
14801 result = (int)((wxSpinButton const *)arg1)->GetMin();
14802 wxPyEndAllowThreads(__tstate);
14803 if (PyErr_Occurred()) SWIG_fail;
14804 }
14805 resultobj = SWIG_From_int(static_cast< int >(result));
14806 return resultobj;
14807 fail:
14808 return NULL;
14809 }
14810
14811
14812 SWIGINTERN PyObject *_wrap_SpinButton_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14813 PyObject *resultobj = 0;
14814 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14815 int result;
14816 void *argp1 = 0 ;
14817 int res1 = 0 ;
14818 PyObject *swig_obj[1] ;
14819
14820 if (!args) SWIG_fail;
14821 swig_obj[0] = args;
14822 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14823 if (!SWIG_IsOK(res1)) {
14824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMax" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14825 }
14826 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14827 {
14828 PyThreadState* __tstate = wxPyBeginAllowThreads();
14829 result = (int)((wxSpinButton const *)arg1)->GetMax();
14830 wxPyEndAllowThreads(__tstate);
14831 if (PyErr_Occurred()) SWIG_fail;
14832 }
14833 resultobj = SWIG_From_int(static_cast< int >(result));
14834 return resultobj;
14835 fail:
14836 return NULL;
14837 }
14838
14839
14840 SWIGINTERN PyObject *_wrap_SpinButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14841 PyObject *resultobj = 0;
14842 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14843 int arg2 ;
14844 void *argp1 = 0 ;
14845 int res1 = 0 ;
14846 int val2 ;
14847 int ecode2 = 0 ;
14848 PyObject * obj0 = 0 ;
14849 PyObject * obj1 = 0 ;
14850 char * kwnames[] = {
14851 (char *) "self",(char *) "val", NULL
14852 };
14853
14854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
14855 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14856 if (!SWIG_IsOK(res1)) {
14857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetValue" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14858 }
14859 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14860 ecode2 = SWIG_AsVal_int(obj1, &val2);
14861 if (!SWIG_IsOK(ecode2)) {
14862 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetValue" "', expected argument " "2"" of type '" "int""'");
14863 }
14864 arg2 = static_cast< int >(val2);
14865 {
14866 PyThreadState* __tstate = wxPyBeginAllowThreads();
14867 (arg1)->SetValue(arg2);
14868 wxPyEndAllowThreads(__tstate);
14869 if (PyErr_Occurred()) SWIG_fail;
14870 }
14871 resultobj = SWIG_Py_Void();
14872 return resultobj;
14873 fail:
14874 return NULL;
14875 }
14876
14877
14878 SWIGINTERN PyObject *_wrap_SpinButton_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14879 PyObject *resultobj = 0;
14880 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14881 int arg2 ;
14882 void *argp1 = 0 ;
14883 int res1 = 0 ;
14884 int val2 ;
14885 int ecode2 = 0 ;
14886 PyObject * obj0 = 0 ;
14887 PyObject * obj1 = 0 ;
14888 char * kwnames[] = {
14889 (char *) "self",(char *) "minVal", NULL
14890 };
14891
14892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
14893 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14894 if (!SWIG_IsOK(res1)) {
14895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMin" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14896 }
14897 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14898 ecode2 = SWIG_AsVal_int(obj1, &val2);
14899 if (!SWIG_IsOK(ecode2)) {
14900 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMin" "', expected argument " "2"" of type '" "int""'");
14901 }
14902 arg2 = static_cast< int >(val2);
14903 {
14904 PyThreadState* __tstate = wxPyBeginAllowThreads();
14905 (arg1)->SetMin(arg2);
14906 wxPyEndAllowThreads(__tstate);
14907 if (PyErr_Occurred()) SWIG_fail;
14908 }
14909 resultobj = SWIG_Py_Void();
14910 return resultobj;
14911 fail:
14912 return NULL;
14913 }
14914
14915
14916 SWIGINTERN PyObject *_wrap_SpinButton_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14917 PyObject *resultobj = 0;
14918 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14919 int arg2 ;
14920 void *argp1 = 0 ;
14921 int res1 = 0 ;
14922 int val2 ;
14923 int ecode2 = 0 ;
14924 PyObject * obj0 = 0 ;
14925 PyObject * obj1 = 0 ;
14926 char * kwnames[] = {
14927 (char *) "self",(char *) "maxVal", NULL
14928 };
14929
14930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
14931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14932 if (!SWIG_IsOK(res1)) {
14933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMax" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14934 }
14935 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14936 ecode2 = SWIG_AsVal_int(obj1, &val2);
14937 if (!SWIG_IsOK(ecode2)) {
14938 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMax" "', expected argument " "2"" of type '" "int""'");
14939 }
14940 arg2 = static_cast< int >(val2);
14941 {
14942 PyThreadState* __tstate = wxPyBeginAllowThreads();
14943 (arg1)->SetMax(arg2);
14944 wxPyEndAllowThreads(__tstate);
14945 if (PyErr_Occurred()) SWIG_fail;
14946 }
14947 resultobj = SWIG_Py_Void();
14948 return resultobj;
14949 fail:
14950 return NULL;
14951 }
14952
14953
14954 SWIGINTERN PyObject *_wrap_SpinButton_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14955 PyObject *resultobj = 0;
14956 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14957 int arg2 ;
14958 int arg3 ;
14959 void *argp1 = 0 ;
14960 int res1 = 0 ;
14961 int val2 ;
14962 int ecode2 = 0 ;
14963 int val3 ;
14964 int ecode3 = 0 ;
14965 PyObject * obj0 = 0 ;
14966 PyObject * obj1 = 0 ;
14967 PyObject * obj2 = 0 ;
14968 char * kwnames[] = {
14969 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
14970 };
14971
14972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14974 if (!SWIG_IsOK(res1)) {
14975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetRange" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14976 }
14977 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14978 ecode2 = SWIG_AsVal_int(obj1, &val2);
14979 if (!SWIG_IsOK(ecode2)) {
14980 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetRange" "', expected argument " "2"" of type '" "int""'");
14981 }
14982 arg2 = static_cast< int >(val2);
14983 ecode3 = SWIG_AsVal_int(obj2, &val3);
14984 if (!SWIG_IsOK(ecode3)) {
14985 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_SetRange" "', expected argument " "3"" of type '" "int""'");
14986 }
14987 arg3 = static_cast< int >(val3);
14988 {
14989 PyThreadState* __tstate = wxPyBeginAllowThreads();
14990 (arg1)->SetRange(arg2,arg3);
14991 wxPyEndAllowThreads(__tstate);
14992 if (PyErr_Occurred()) SWIG_fail;
14993 }
14994 resultobj = SWIG_Py_Void();
14995 return resultobj;
14996 fail:
14997 return NULL;
14998 }
14999
15000
15001 SWIGINTERN PyObject *_wrap_SpinButton_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15002 PyObject *resultobj = 0;
15003 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15004 bool result;
15005 void *argp1 = 0 ;
15006 int res1 = 0 ;
15007 PyObject *swig_obj[1] ;
15008
15009 if (!args) SWIG_fail;
15010 swig_obj[0] = args;
15011 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15012 if (!SWIG_IsOK(res1)) {
15013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_IsVertical" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15014 }
15015 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15016 {
15017 PyThreadState* __tstate = wxPyBeginAllowThreads();
15018 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
15019 wxPyEndAllowThreads(__tstate);
15020 if (PyErr_Occurred()) SWIG_fail;
15021 }
15022 {
15023 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15024 }
15025 return resultobj;
15026 fail:
15027 return NULL;
15028 }
15029
15030
15031 SWIGINTERN PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15032 PyObject *resultobj = 0;
15033 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15034 SwigValueWrapper<wxVisualAttributes > result;
15035 int val1 ;
15036 int ecode1 = 0 ;
15037 PyObject * obj0 = 0 ;
15038 char * kwnames[] = {
15039 (char *) "variant", NULL
15040 };
15041
15042 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15043 if (obj0) {
15044 ecode1 = SWIG_AsVal_int(obj0, &val1);
15045 if (!SWIG_IsOK(ecode1)) {
15046 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15047 }
15048 arg1 = static_cast< wxWindowVariant >(val1);
15049 }
15050 {
15051 if (!wxPyCheckForApp()) SWIG_fail;
15052 PyThreadState* __tstate = wxPyBeginAllowThreads();
15053 result = wxSpinButton::GetClassDefaultAttributes(arg1);
15054 wxPyEndAllowThreads(__tstate);
15055 if (PyErr_Occurred()) SWIG_fail;
15056 }
15057 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15058 return resultobj;
15059 fail:
15060 return NULL;
15061 }
15062
15063
15064 SWIGINTERN PyObject *SpinButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15065 PyObject *obj;
15066 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15067 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinButton, SWIG_NewClientData(obj));
15068 return SWIG_Py_Void();
15069 }
15070
15071 SWIGINTERN PyObject *SpinButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15072 return SWIG_Python_InitShadowInstance(args);
15073 }
15074
15075 SWIGINTERN PyObject *_wrap_new_SpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15076 PyObject *resultobj = 0;
15077 wxWindow *arg1 = (wxWindow *) 0 ;
15078 int arg2 = (int) -1 ;
15079 wxString const &arg3_defvalue = wxPyEmptyString ;
15080 wxString *arg3 = (wxString *) &arg3_defvalue ;
15081 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15082 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15083 wxSize const &arg5_defvalue = wxDefaultSize ;
15084 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15085 long arg6 = (long) wxSP_ARROW_KEYS ;
15086 int arg7 = (int) 0 ;
15087 int arg8 = (int) 100 ;
15088 int arg9 = (int) 0 ;
15089 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
15090 wxString *arg10 = (wxString *) &arg10_defvalue ;
15091 wxSpinCtrl *result = 0 ;
15092 void *argp1 = 0 ;
15093 int res1 = 0 ;
15094 int val2 ;
15095 int ecode2 = 0 ;
15096 bool temp3 = false ;
15097 wxPoint temp4 ;
15098 wxSize temp5 ;
15099 long val6 ;
15100 int ecode6 = 0 ;
15101 int val7 ;
15102 int ecode7 = 0 ;
15103 int val8 ;
15104 int ecode8 = 0 ;
15105 int val9 ;
15106 int ecode9 = 0 ;
15107 bool temp10 = false ;
15108 PyObject * obj0 = 0 ;
15109 PyObject * obj1 = 0 ;
15110 PyObject * obj2 = 0 ;
15111 PyObject * obj3 = 0 ;
15112 PyObject * obj4 = 0 ;
15113 PyObject * obj5 = 0 ;
15114 PyObject * obj6 = 0 ;
15115 PyObject * obj7 = 0 ;
15116 PyObject * obj8 = 0 ;
15117 PyObject * obj9 = 0 ;
15118 char * kwnames[] = {
15119 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15120 };
15121
15122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15124 if (!SWIG_IsOK(res1)) {
15125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
15126 }
15127 arg1 = reinterpret_cast< wxWindow * >(argp1);
15128 if (obj1) {
15129 ecode2 = SWIG_AsVal_int(obj1, &val2);
15130 if (!SWIG_IsOK(ecode2)) {
15131 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinCtrl" "', expected argument " "2"" of type '" "int""'");
15132 }
15133 arg2 = static_cast< int >(val2);
15134 }
15135 if (obj2) {
15136 {
15137 arg3 = wxString_in_helper(obj2);
15138 if (arg3 == NULL) SWIG_fail;
15139 temp3 = true;
15140 }
15141 }
15142 if (obj3) {
15143 {
15144 arg4 = &temp4;
15145 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15146 }
15147 }
15148 if (obj4) {
15149 {
15150 arg5 = &temp5;
15151 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15152 }
15153 }
15154 if (obj5) {
15155 ecode6 = SWIG_AsVal_long(obj5, &val6);
15156 if (!SWIG_IsOK(ecode6)) {
15157 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpinCtrl" "', expected argument " "6"" of type '" "long""'");
15158 }
15159 arg6 = static_cast< long >(val6);
15160 }
15161 if (obj6) {
15162 ecode7 = SWIG_AsVal_int(obj6, &val7);
15163 if (!SWIG_IsOK(ecode7)) {
15164 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpinCtrl" "', expected argument " "7"" of type '" "int""'");
15165 }
15166 arg7 = static_cast< int >(val7);
15167 }
15168 if (obj7) {
15169 ecode8 = SWIG_AsVal_int(obj7, &val8);
15170 if (!SWIG_IsOK(ecode8)) {
15171 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SpinCtrl" "', expected argument " "8"" of type '" "int""'");
15172 }
15173 arg8 = static_cast< int >(val8);
15174 }
15175 if (obj8) {
15176 ecode9 = SWIG_AsVal_int(obj8, &val9);
15177 if (!SWIG_IsOK(ecode9)) {
15178 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpinCtrl" "', expected argument " "9"" of type '" "int""'");
15179 }
15180 arg9 = static_cast< int >(val9);
15181 }
15182 if (obj9) {
15183 {
15184 arg10 = wxString_in_helper(obj9);
15185 if (arg10 == NULL) SWIG_fail;
15186 temp10 = true;
15187 }
15188 }
15189 {
15190 if (!wxPyCheckForApp()) SWIG_fail;
15191 PyThreadState* __tstate = wxPyBeginAllowThreads();
15192 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
15193 wxPyEndAllowThreads(__tstate);
15194 if (PyErr_Occurred()) SWIG_fail;
15195 }
15196 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_NEW | 0 );
15197 {
15198 if (temp3)
15199 delete arg3;
15200 }
15201 {
15202 if (temp10)
15203 delete arg10;
15204 }
15205 return resultobj;
15206 fail:
15207 {
15208 if (temp3)
15209 delete arg3;
15210 }
15211 {
15212 if (temp10)
15213 delete arg10;
15214 }
15215 return NULL;
15216 }
15217
15218
15219 SWIGINTERN PyObject *_wrap_new_PreSpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15220 PyObject *resultobj = 0;
15221 wxSpinCtrl *result = 0 ;
15222
15223 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinCtrl",0,0,0)) SWIG_fail;
15224 {
15225 if (!wxPyCheckForApp()) SWIG_fail;
15226 PyThreadState* __tstate = wxPyBeginAllowThreads();
15227 result = (wxSpinCtrl *)new wxSpinCtrl();
15228 wxPyEndAllowThreads(__tstate);
15229 if (PyErr_Occurred()) SWIG_fail;
15230 }
15231 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_OWN | 0 );
15232 return resultobj;
15233 fail:
15234 return NULL;
15235 }
15236
15237
15238 SWIGINTERN PyObject *_wrap_SpinCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15239 PyObject *resultobj = 0;
15240 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15241 wxWindow *arg2 = (wxWindow *) 0 ;
15242 int arg3 = (int) -1 ;
15243 wxString const &arg4_defvalue = wxPyEmptyString ;
15244 wxString *arg4 = (wxString *) &arg4_defvalue ;
15245 wxPoint const &arg5_defvalue = wxDefaultPosition ;
15246 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
15247 wxSize const &arg6_defvalue = wxDefaultSize ;
15248 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
15249 long arg7 = (long) wxSP_ARROW_KEYS ;
15250 int arg8 = (int) 0 ;
15251 int arg9 = (int) 100 ;
15252 int arg10 = (int) 0 ;
15253 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
15254 wxString *arg11 = (wxString *) &arg11_defvalue ;
15255 bool result;
15256 void *argp1 = 0 ;
15257 int res1 = 0 ;
15258 void *argp2 = 0 ;
15259 int res2 = 0 ;
15260 int val3 ;
15261 int ecode3 = 0 ;
15262 bool temp4 = false ;
15263 wxPoint temp5 ;
15264 wxSize temp6 ;
15265 long val7 ;
15266 int ecode7 = 0 ;
15267 int val8 ;
15268 int ecode8 = 0 ;
15269 int val9 ;
15270 int ecode9 = 0 ;
15271 int val10 ;
15272 int ecode10 = 0 ;
15273 bool temp11 = false ;
15274 PyObject * obj0 = 0 ;
15275 PyObject * obj1 = 0 ;
15276 PyObject * obj2 = 0 ;
15277 PyObject * obj3 = 0 ;
15278 PyObject * obj4 = 0 ;
15279 PyObject * obj5 = 0 ;
15280 PyObject * obj6 = 0 ;
15281 PyObject * obj7 = 0 ;
15282 PyObject * obj8 = 0 ;
15283 PyObject * obj9 = 0 ;
15284 PyObject * obj10 = 0 ;
15285 char * kwnames[] = {
15286 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15287 };
15288
15289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
15290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15291 if (!SWIG_IsOK(res1)) {
15292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_Create" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15293 }
15294 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15295 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
15296 if (!SWIG_IsOK(res2)) {
15297 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
15298 }
15299 arg2 = reinterpret_cast< wxWindow * >(argp2);
15300 if (obj2) {
15301 ecode3 = SWIG_AsVal_int(obj2, &val3);
15302 if (!SWIG_IsOK(ecode3)) {
15303 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_Create" "', expected argument " "3"" of type '" "int""'");
15304 }
15305 arg3 = static_cast< int >(val3);
15306 }
15307 if (obj3) {
15308 {
15309 arg4 = wxString_in_helper(obj3);
15310 if (arg4 == NULL) SWIG_fail;
15311 temp4 = true;
15312 }
15313 }
15314 if (obj4) {
15315 {
15316 arg5 = &temp5;
15317 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
15318 }
15319 }
15320 if (obj5) {
15321 {
15322 arg6 = &temp6;
15323 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
15324 }
15325 }
15326 if (obj6) {
15327 ecode7 = SWIG_AsVal_long(obj6, &val7);
15328 if (!SWIG_IsOK(ecode7)) {
15329 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SpinCtrl_Create" "', expected argument " "7"" of type '" "long""'");
15330 }
15331 arg7 = static_cast< long >(val7);
15332 }
15333 if (obj7) {
15334 ecode8 = SWIG_AsVal_int(obj7, &val8);
15335 if (!SWIG_IsOK(ecode8)) {
15336 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "SpinCtrl_Create" "', expected argument " "8"" of type '" "int""'");
15337 }
15338 arg8 = static_cast< int >(val8);
15339 }
15340 if (obj8) {
15341 ecode9 = SWIG_AsVal_int(obj8, &val9);
15342 if (!SWIG_IsOK(ecode9)) {
15343 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "SpinCtrl_Create" "', expected argument " "9"" of type '" "int""'");
15344 }
15345 arg9 = static_cast< int >(val9);
15346 }
15347 if (obj9) {
15348 ecode10 = SWIG_AsVal_int(obj9, &val10);
15349 if (!SWIG_IsOK(ecode10)) {
15350 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "SpinCtrl_Create" "', expected argument " "10"" of type '" "int""'");
15351 }
15352 arg10 = static_cast< int >(val10);
15353 }
15354 if (obj10) {
15355 {
15356 arg11 = wxString_in_helper(obj10);
15357 if (arg11 == NULL) SWIG_fail;
15358 temp11 = true;
15359 }
15360 }
15361 {
15362 PyThreadState* __tstate = wxPyBeginAllowThreads();
15363 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
15364 wxPyEndAllowThreads(__tstate);
15365 if (PyErr_Occurred()) SWIG_fail;
15366 }
15367 {
15368 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15369 }
15370 {
15371 if (temp4)
15372 delete arg4;
15373 }
15374 {
15375 if (temp11)
15376 delete arg11;
15377 }
15378 return resultobj;
15379 fail:
15380 {
15381 if (temp4)
15382 delete arg4;
15383 }
15384 {
15385 if (temp11)
15386 delete arg11;
15387 }
15388 return NULL;
15389 }
15390
15391
15392 SWIGINTERN PyObject *_wrap_SpinCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15393 PyObject *resultobj = 0;
15394 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15395 int result;
15396 void *argp1 = 0 ;
15397 int res1 = 0 ;
15398 PyObject *swig_obj[1] ;
15399
15400 if (!args) SWIG_fail;
15401 swig_obj[0] = args;
15402 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15403 if (!SWIG_IsOK(res1)) {
15404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetValue" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15405 }
15406 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15407 {
15408 PyThreadState* __tstate = wxPyBeginAllowThreads();
15409 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
15410 wxPyEndAllowThreads(__tstate);
15411 if (PyErr_Occurred()) SWIG_fail;
15412 }
15413 resultobj = SWIG_From_int(static_cast< int >(result));
15414 return resultobj;
15415 fail:
15416 return NULL;
15417 }
15418
15419
15420 SWIGINTERN PyObject *_wrap_SpinCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15421 PyObject *resultobj = 0;
15422 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15423 int arg2 ;
15424 void *argp1 = 0 ;
15425 int res1 = 0 ;
15426 int val2 ;
15427 int ecode2 = 0 ;
15428 PyObject * obj0 = 0 ;
15429 PyObject * obj1 = 0 ;
15430 char * kwnames[] = {
15431 (char *) "self",(char *) "value", NULL
15432 };
15433
15434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15436 if (!SWIG_IsOK(res1)) {
15437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValue" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15438 }
15439 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15440 ecode2 = SWIG_AsVal_int(obj1, &val2);
15441 if (!SWIG_IsOK(ecode2)) {
15442 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetValue" "', expected argument " "2"" of type '" "int""'");
15443 }
15444 arg2 = static_cast< int >(val2);
15445 {
15446 PyThreadState* __tstate = wxPyBeginAllowThreads();
15447 (arg1)->SetValue(arg2);
15448 wxPyEndAllowThreads(__tstate);
15449 if (PyErr_Occurred()) SWIG_fail;
15450 }
15451 resultobj = SWIG_Py_Void();
15452 return resultobj;
15453 fail:
15454 return NULL;
15455 }
15456
15457
15458 SWIGINTERN PyObject *_wrap_SpinCtrl_SetValueString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15459 PyObject *resultobj = 0;
15460 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15461 wxString *arg2 = 0 ;
15462 void *argp1 = 0 ;
15463 int res1 = 0 ;
15464 bool temp2 = false ;
15465 PyObject * obj0 = 0 ;
15466 PyObject * obj1 = 0 ;
15467 char * kwnames[] = {
15468 (char *) "self",(char *) "text", NULL
15469 };
15470
15471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) SWIG_fail;
15472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15473 if (!SWIG_IsOK(res1)) {
15474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValueString" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15475 }
15476 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15477 {
15478 arg2 = wxString_in_helper(obj1);
15479 if (arg2 == NULL) SWIG_fail;
15480 temp2 = true;
15481 }
15482 {
15483 PyThreadState* __tstate = wxPyBeginAllowThreads();
15484 (arg1)->SetValue((wxString const &)*arg2);
15485 wxPyEndAllowThreads(__tstate);
15486 if (PyErr_Occurred()) SWIG_fail;
15487 }
15488 resultobj = SWIG_Py_Void();
15489 {
15490 if (temp2)
15491 delete arg2;
15492 }
15493 return resultobj;
15494 fail:
15495 {
15496 if (temp2)
15497 delete arg2;
15498 }
15499 return NULL;
15500 }
15501
15502
15503 SWIGINTERN PyObject *_wrap_SpinCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15504 PyObject *resultobj = 0;
15505 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15506 int arg2 ;
15507 int arg3 ;
15508 void *argp1 = 0 ;
15509 int res1 = 0 ;
15510 int val2 ;
15511 int ecode2 = 0 ;
15512 int val3 ;
15513 int ecode3 = 0 ;
15514 PyObject * obj0 = 0 ;
15515 PyObject * obj1 = 0 ;
15516 PyObject * obj2 = 0 ;
15517 char * kwnames[] = {
15518 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15519 };
15520
15521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15523 if (!SWIG_IsOK(res1)) {
15524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetRange" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15525 }
15526 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15527 ecode2 = SWIG_AsVal_int(obj1, &val2);
15528 if (!SWIG_IsOK(ecode2)) {
15529 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetRange" "', expected argument " "2"" of type '" "int""'");
15530 }
15531 arg2 = static_cast< int >(val2);
15532 ecode3 = SWIG_AsVal_int(obj2, &val3);
15533 if (!SWIG_IsOK(ecode3)) {
15534 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetRange" "', expected argument " "3"" of type '" "int""'");
15535 }
15536 arg3 = static_cast< int >(val3);
15537 {
15538 PyThreadState* __tstate = wxPyBeginAllowThreads();
15539 (arg1)->SetRange(arg2,arg3);
15540 wxPyEndAllowThreads(__tstate);
15541 if (PyErr_Occurred()) SWIG_fail;
15542 }
15543 resultobj = SWIG_Py_Void();
15544 return resultobj;
15545 fail:
15546 return NULL;
15547 }
15548
15549
15550 SWIGINTERN PyObject *_wrap_SpinCtrl_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15551 PyObject *resultobj = 0;
15552 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15553 int result;
15554 void *argp1 = 0 ;
15555 int res1 = 0 ;
15556 PyObject *swig_obj[1] ;
15557
15558 if (!args) SWIG_fail;
15559 swig_obj[0] = args;
15560 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15561 if (!SWIG_IsOK(res1)) {
15562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMin" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15563 }
15564 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15565 {
15566 PyThreadState* __tstate = wxPyBeginAllowThreads();
15567 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
15568 wxPyEndAllowThreads(__tstate);
15569 if (PyErr_Occurred()) SWIG_fail;
15570 }
15571 resultobj = SWIG_From_int(static_cast< int >(result));
15572 return resultobj;
15573 fail:
15574 return NULL;
15575 }
15576
15577
15578 SWIGINTERN PyObject *_wrap_SpinCtrl_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15579 PyObject *resultobj = 0;
15580 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15581 int result;
15582 void *argp1 = 0 ;
15583 int res1 = 0 ;
15584 PyObject *swig_obj[1] ;
15585
15586 if (!args) SWIG_fail;
15587 swig_obj[0] = args;
15588 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15589 if (!SWIG_IsOK(res1)) {
15590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMax" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15591 }
15592 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15593 {
15594 PyThreadState* __tstate = wxPyBeginAllowThreads();
15595 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
15596 wxPyEndAllowThreads(__tstate);
15597 if (PyErr_Occurred()) SWIG_fail;
15598 }
15599 resultobj = SWIG_From_int(static_cast< int >(result));
15600 return resultobj;
15601 fail:
15602 return NULL;
15603 }
15604
15605
15606 SWIGINTERN PyObject *_wrap_SpinCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15607 PyObject *resultobj = 0;
15608 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15609 long arg2 ;
15610 long arg3 ;
15611 void *argp1 = 0 ;
15612 int res1 = 0 ;
15613 long val2 ;
15614 int ecode2 = 0 ;
15615 long val3 ;
15616 int ecode3 = 0 ;
15617 PyObject * obj0 = 0 ;
15618 PyObject * obj1 = 0 ;
15619 PyObject * obj2 = 0 ;
15620 char * kwnames[] = {
15621 (char *) "self",(char *) "from",(char *) "to", NULL
15622 };
15623
15624 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15625 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15626 if (!SWIG_IsOK(res1)) {
15627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetSelection" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15628 }
15629 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15630 ecode2 = SWIG_AsVal_long(obj1, &val2);
15631 if (!SWIG_IsOK(ecode2)) {
15632 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
15633 }
15634 arg2 = static_cast< long >(val2);
15635 ecode3 = SWIG_AsVal_long(obj2, &val3);
15636 if (!SWIG_IsOK(ecode3)) {
15637 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
15638 }
15639 arg3 = static_cast< long >(val3);
15640 {
15641 PyThreadState* __tstate = wxPyBeginAllowThreads();
15642 (arg1)->SetSelection(arg2,arg3);
15643 wxPyEndAllowThreads(__tstate);
15644 if (PyErr_Occurred()) SWIG_fail;
15645 }
15646 resultobj = SWIG_Py_Void();
15647 return resultobj;
15648 fail:
15649 return NULL;
15650 }
15651
15652
15653 SWIGINTERN PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15654 PyObject *resultobj = 0;
15655 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15656 SwigValueWrapper<wxVisualAttributes > result;
15657 int val1 ;
15658 int ecode1 = 0 ;
15659 PyObject * obj0 = 0 ;
15660 char * kwnames[] = {
15661 (char *) "variant", NULL
15662 };
15663
15664 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15665 if (obj0) {
15666 ecode1 = SWIG_AsVal_int(obj0, &val1);
15667 if (!SWIG_IsOK(ecode1)) {
15668 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15669 }
15670 arg1 = static_cast< wxWindowVariant >(val1);
15671 }
15672 {
15673 if (!wxPyCheckForApp()) SWIG_fail;
15674 PyThreadState* __tstate = wxPyBeginAllowThreads();
15675 result = wxSpinCtrl::GetClassDefaultAttributes(arg1);
15676 wxPyEndAllowThreads(__tstate);
15677 if (PyErr_Occurred()) SWIG_fail;
15678 }
15679 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15680 return resultobj;
15681 fail:
15682 return NULL;
15683 }
15684
15685
15686 SWIGINTERN PyObject *SpinCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15687 PyObject *obj;
15688 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15689 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinCtrl, SWIG_NewClientData(obj));
15690 return SWIG_Py_Void();
15691 }
15692
15693 SWIGINTERN PyObject *SpinCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15694 return SWIG_Python_InitShadowInstance(args);
15695 }
15696
15697 SWIGINTERN PyObject *_wrap_new_SpinEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15698 PyObject *resultobj = 0;
15699 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15700 int arg2 = (int) 0 ;
15701 wxSpinEvent *result = 0 ;
15702 int val1 ;
15703 int ecode1 = 0 ;
15704 int val2 ;
15705 int ecode2 = 0 ;
15706 PyObject * obj0 = 0 ;
15707 PyObject * obj1 = 0 ;
15708 char * kwnames[] = {
15709 (char *) "commandType",(char *) "winid", NULL
15710 };
15711
15712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) SWIG_fail;
15713 if (obj0) {
15714 ecode1 = SWIG_AsVal_int(obj0, &val1);
15715 if (!SWIG_IsOK(ecode1)) {
15716 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SpinEvent" "', expected argument " "1"" of type '" "wxEventType""'");
15717 }
15718 arg1 = static_cast< wxEventType >(val1);
15719 }
15720 if (obj1) {
15721 ecode2 = SWIG_AsVal_int(obj1, &val2);
15722 if (!SWIG_IsOK(ecode2)) {
15723 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinEvent" "', expected argument " "2"" of type '" "int""'");
15724 }
15725 arg2 = static_cast< int >(val2);
15726 }
15727 {
15728 PyThreadState* __tstate = wxPyBeginAllowThreads();
15729 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
15730 wxPyEndAllowThreads(__tstate);
15731 if (PyErr_Occurred()) SWIG_fail;
15732 }
15733 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_NEW | 0 );
15734 return resultobj;
15735 fail:
15736 return NULL;
15737 }
15738
15739
15740 SWIGINTERN PyObject *_wrap_SpinEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15741 PyObject *resultobj = 0;
15742 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15743 int result;
15744 void *argp1 = 0 ;
15745 int res1 = 0 ;
15746 PyObject *swig_obj[1] ;
15747
15748 if (!args) SWIG_fail;
15749 swig_obj[0] = args;
15750 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15751 if (!SWIG_IsOK(res1)) {
15752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_GetPosition" "', expected argument " "1"" of type '" "wxSpinEvent const *""'");
15753 }
15754 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15755 {
15756 PyThreadState* __tstate = wxPyBeginAllowThreads();
15757 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
15758 wxPyEndAllowThreads(__tstate);
15759 if (PyErr_Occurred()) SWIG_fail;
15760 }
15761 resultobj = SWIG_From_int(static_cast< int >(result));
15762 return resultobj;
15763 fail:
15764 return NULL;
15765 }
15766
15767
15768 SWIGINTERN PyObject *_wrap_SpinEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15769 PyObject *resultobj = 0;
15770 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15771 int arg2 ;
15772 void *argp1 = 0 ;
15773 int res1 = 0 ;
15774 int val2 ;
15775 int ecode2 = 0 ;
15776 PyObject * obj0 = 0 ;
15777 PyObject * obj1 = 0 ;
15778 char * kwnames[] = {
15779 (char *) "self",(char *) "pos", NULL
15780 };
15781
15782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
15783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15784 if (!SWIG_IsOK(res1)) {
15785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_SetPosition" "', expected argument " "1"" of type '" "wxSpinEvent *""'");
15786 }
15787 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15788 ecode2 = SWIG_AsVal_int(obj1, &val2);
15789 if (!SWIG_IsOK(ecode2)) {
15790 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinEvent_SetPosition" "', expected argument " "2"" of type '" "int""'");
15791 }
15792 arg2 = static_cast< int >(val2);
15793 {
15794 PyThreadState* __tstate = wxPyBeginAllowThreads();
15795 (arg1)->SetPosition(arg2);
15796 wxPyEndAllowThreads(__tstate);
15797 if (PyErr_Occurred()) SWIG_fail;
15798 }
15799 resultobj = SWIG_Py_Void();
15800 return resultobj;
15801 fail:
15802 return NULL;
15803 }
15804
15805
15806 SWIGINTERN PyObject *SpinEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15807 PyObject *obj;
15808 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15809 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinEvent, SWIG_NewClientData(obj));
15810 return SWIG_Py_Void();
15811 }
15812
15813 SWIGINTERN PyObject *SpinEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15814 return SWIG_Python_InitShadowInstance(args);
15815 }
15816
15817 SWIGINTERN int RadioBoxNameStr_set(PyObject *) {
15818 SWIG_Error(SWIG_AttributeError,"Variable RadioBoxNameStr is read-only.");
15819 return 1;
15820 }
15821
15822
15823 SWIGINTERN PyObject *RadioBoxNameStr_get(void) {
15824 PyObject *pyobj = 0;
15825
15826 {
15827 #if wxUSE_UNICODE
15828 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
15829 #else
15830 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
15831 #endif
15832 }
15833 return pyobj;
15834 }
15835
15836
15837 SWIGINTERN int RadioButtonNameStr_set(PyObject *) {
15838 SWIG_Error(SWIG_AttributeError,"Variable RadioButtonNameStr is read-only.");
15839 return 1;
15840 }
15841
15842
15843 SWIGINTERN PyObject *RadioButtonNameStr_get(void) {
15844 PyObject *pyobj = 0;
15845
15846 {
15847 #if wxUSE_UNICODE
15848 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15849 #else
15850 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15851 #endif
15852 }
15853 return pyobj;
15854 }
15855
15856
15857 SWIGINTERN PyObject *_wrap_new_RadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15858 PyObject *resultobj = 0;
15859 wxWindow *arg1 = (wxWindow *) 0 ;
15860 int arg2 = (int) -1 ;
15861 wxString const &arg3_defvalue = wxPyEmptyString ;
15862 wxString *arg3 = (wxString *) &arg3_defvalue ;
15863 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15864 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15865 wxSize const &arg5_defvalue = wxDefaultSize ;
15866 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15867 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
15868 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
15869 int arg7 = (int) 0 ;
15870 long arg8 = (long) wxRA_HORIZONTAL ;
15871 wxValidator const &arg9_defvalue = wxDefaultValidator ;
15872 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
15873 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
15874 wxString *arg10 = (wxString *) &arg10_defvalue ;
15875 wxRadioBox *result = 0 ;
15876 void *argp1 = 0 ;
15877 int res1 = 0 ;
15878 int val2 ;
15879 int ecode2 = 0 ;
15880 bool temp3 = false ;
15881 wxPoint temp4 ;
15882 wxSize temp5 ;
15883 bool temp6 = false ;
15884 int val7 ;
15885 int ecode7 = 0 ;
15886 long val8 ;
15887 int ecode8 = 0 ;
15888 void *argp9 = 0 ;
15889 int res9 = 0 ;
15890 bool temp10 = false ;
15891 PyObject * obj0 = 0 ;
15892 PyObject * obj1 = 0 ;
15893 PyObject * obj2 = 0 ;
15894 PyObject * obj3 = 0 ;
15895 PyObject * obj4 = 0 ;
15896 PyObject * obj5 = 0 ;
15897 PyObject * obj6 = 0 ;
15898 PyObject * obj7 = 0 ;
15899 PyObject * obj8 = 0 ;
15900 PyObject * obj9 = 0 ;
15901 char * kwnames[] = {
15902 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
15903 };
15904
15905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15907 if (!SWIG_IsOK(res1)) {
15908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioBox" "', expected argument " "1"" of type '" "wxWindow *""'");
15909 }
15910 arg1 = reinterpret_cast< wxWindow * >(argp1);
15911 if (obj1) {
15912 ecode2 = SWIG_AsVal_int(obj1, &val2);
15913 if (!SWIG_IsOK(ecode2)) {
15914 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioBox" "', expected argument " "2"" of type '" "int""'");
15915 }
15916 arg2 = static_cast< int >(val2);
15917 }
15918 if (obj2) {
15919 {
15920 arg3 = wxString_in_helper(obj2);
15921 if (arg3 == NULL) SWIG_fail;
15922 temp3 = true;
15923 }
15924 }
15925 if (obj3) {
15926 {
15927 arg4 = &temp4;
15928 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15929 }
15930 }
15931 if (obj4) {
15932 {
15933 arg5 = &temp5;
15934 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15935 }
15936 }
15937 if (obj5) {
15938 {
15939 if (! PySequence_Check(obj5)) {
15940 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
15941 SWIG_fail;
15942 }
15943 arg6 = new wxArrayString;
15944 temp6 = true;
15945 int i, len=PySequence_Length(obj5);
15946 for (i=0; i<len; i++) {
15947 PyObject* item = PySequence_GetItem(obj5, i);
15948 wxString* s = wxString_in_helper(item);
15949 if (PyErr_Occurred()) SWIG_fail;
15950 arg6->Add(*s);
15951 delete s;
15952 Py_DECREF(item);
15953 }
15954 }
15955 }
15956 if (obj6) {
15957 ecode7 = SWIG_AsVal_int(obj6, &val7);
15958 if (!SWIG_IsOK(ecode7)) {
15959 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_RadioBox" "', expected argument " "7"" of type '" "int""'");
15960 }
15961 arg7 = static_cast< int >(val7);
15962 }
15963 if (obj7) {
15964 ecode8 = SWIG_AsVal_long(obj7, &val8);
15965 if (!SWIG_IsOK(ecode8)) {
15966 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_RadioBox" "', expected argument " "8"" of type '" "long""'");
15967 }
15968 arg8 = static_cast< long >(val8);
15969 }
15970 if (obj8) {
15971 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
15972 if (!SWIG_IsOK(res9)) {
15973 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
15974 }
15975 if (!argp9) {
15976 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
15977 }
15978 arg9 = reinterpret_cast< wxValidator * >(argp9);
15979 }
15980 if (obj9) {
15981 {
15982 arg10 = wxString_in_helper(obj9);
15983 if (arg10 == NULL) SWIG_fail;
15984 temp10 = true;
15985 }
15986 }
15987 {
15988 if (!wxPyCheckForApp()) SWIG_fail;
15989 PyThreadState* __tstate = wxPyBeginAllowThreads();
15990 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);
15991 wxPyEndAllowThreads(__tstate);
15992 if (PyErr_Occurred()) SWIG_fail;
15993 }
15994 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_NEW | 0 );
15995 {
15996 if (temp3)
15997 delete arg3;
15998 }
15999 {
16000 if (temp6) delete arg6;
16001 }
16002 {
16003 if (temp10)
16004 delete arg10;
16005 }
16006 return resultobj;
16007 fail:
16008 {
16009 if (temp3)
16010 delete arg3;
16011 }
16012 {
16013 if (temp6) delete arg6;
16014 }
16015 {
16016 if (temp10)
16017 delete arg10;
16018 }
16019 return NULL;
16020 }
16021
16022
16023 SWIGINTERN PyObject *_wrap_new_PreRadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16024 PyObject *resultobj = 0;
16025 wxRadioBox *result = 0 ;
16026
16027 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioBox",0,0,0)) SWIG_fail;
16028 {
16029 if (!wxPyCheckForApp()) SWIG_fail;
16030 PyThreadState* __tstate = wxPyBeginAllowThreads();
16031 result = (wxRadioBox *)new wxRadioBox();
16032 wxPyEndAllowThreads(__tstate);
16033 if (PyErr_Occurred()) SWIG_fail;
16034 }
16035 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_OWN | 0 );
16036 return resultobj;
16037 fail:
16038 return NULL;
16039 }
16040
16041
16042 SWIGINTERN PyObject *_wrap_RadioBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16043 PyObject *resultobj = 0;
16044 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16045 wxWindow *arg2 = (wxWindow *) 0 ;
16046 int arg3 = (int) -1 ;
16047 wxString const &arg4_defvalue = wxPyEmptyString ;
16048 wxString *arg4 = (wxString *) &arg4_defvalue ;
16049 wxPoint const &arg5_defvalue = wxDefaultPosition ;
16050 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
16051 wxSize const &arg6_defvalue = wxDefaultSize ;
16052 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
16053 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
16054 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
16055 int arg8 = (int) 0 ;
16056 long arg9 = (long) wxRA_HORIZONTAL ;
16057 wxValidator const &arg10_defvalue = wxDefaultValidator ;
16058 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
16059 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
16060 wxString *arg11 = (wxString *) &arg11_defvalue ;
16061 bool result;
16062 void *argp1 = 0 ;
16063 int res1 = 0 ;
16064 void *argp2 = 0 ;
16065 int res2 = 0 ;
16066 int val3 ;
16067 int ecode3 = 0 ;
16068 bool temp4 = false ;
16069 wxPoint temp5 ;
16070 wxSize temp6 ;
16071 bool temp7 = false ;
16072 int val8 ;
16073 int ecode8 = 0 ;
16074 long val9 ;
16075 int ecode9 = 0 ;
16076 void *argp10 = 0 ;
16077 int res10 = 0 ;
16078 bool temp11 = false ;
16079 PyObject * obj0 = 0 ;
16080 PyObject * obj1 = 0 ;
16081 PyObject * obj2 = 0 ;
16082 PyObject * obj3 = 0 ;
16083 PyObject * obj4 = 0 ;
16084 PyObject * obj5 = 0 ;
16085 PyObject * obj6 = 0 ;
16086 PyObject * obj7 = 0 ;
16087 PyObject * obj8 = 0 ;
16088 PyObject * obj9 = 0 ;
16089 PyObject * obj10 = 0 ;
16090 char * kwnames[] = {
16091 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16092 };
16093
16094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
16095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16096 if (!SWIG_IsOK(res1)) {
16097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_Create" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16098 }
16099 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16100 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
16101 if (!SWIG_IsOK(res2)) {
16102 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
16103 }
16104 arg2 = reinterpret_cast< wxWindow * >(argp2);
16105 if (obj2) {
16106 ecode3 = SWIG_AsVal_int(obj2, &val3);
16107 if (!SWIG_IsOK(ecode3)) {
16108 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_Create" "', expected argument " "3"" of type '" "int""'");
16109 }
16110 arg3 = static_cast< int >(val3);
16111 }
16112 if (obj3) {
16113 {
16114 arg4 = wxString_in_helper(obj3);
16115 if (arg4 == NULL) SWIG_fail;
16116 temp4 = true;
16117 }
16118 }
16119 if (obj4) {
16120 {
16121 arg5 = &temp5;
16122 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
16123 }
16124 }
16125 if (obj5) {
16126 {
16127 arg6 = &temp6;
16128 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
16129 }
16130 }
16131 if (obj6) {
16132 {
16133 if (! PySequence_Check(obj6)) {
16134 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16135 SWIG_fail;
16136 }
16137 arg7 = new wxArrayString;
16138 temp7 = true;
16139 int i, len=PySequence_Length(obj6);
16140 for (i=0; i<len; i++) {
16141 PyObject* item = PySequence_GetItem(obj6, i);
16142 wxString* s = wxString_in_helper(item);
16143 if (PyErr_Occurred()) SWIG_fail;
16144 arg7->Add(*s);
16145 delete s;
16146 Py_DECREF(item);
16147 }
16148 }
16149 }
16150 if (obj7) {
16151 ecode8 = SWIG_AsVal_int(obj7, &val8);
16152 if (!SWIG_IsOK(ecode8)) {
16153 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "RadioBox_Create" "', expected argument " "8"" of type '" "int""'");
16154 }
16155 arg8 = static_cast< int >(val8);
16156 }
16157 if (obj8) {
16158 ecode9 = SWIG_AsVal_long(obj8, &val9);
16159 if (!SWIG_IsOK(ecode9)) {
16160 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "RadioBox_Create" "', expected argument " "9"" of type '" "long""'");
16161 }
16162 arg9 = static_cast< long >(val9);
16163 }
16164 if (obj9) {
16165 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
16166 if (!SWIG_IsOK(res10)) {
16167 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
16168 }
16169 if (!argp10) {
16170 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
16171 }
16172 arg10 = reinterpret_cast< wxValidator * >(argp10);
16173 }
16174 if (obj10) {
16175 {
16176 arg11 = wxString_in_helper(obj10);
16177 if (arg11 == NULL) SWIG_fail;
16178 temp11 = true;
16179 }
16180 }
16181 {
16182 PyThreadState* __tstate = wxPyBeginAllowThreads();
16183 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);
16184 wxPyEndAllowThreads(__tstate);
16185 if (PyErr_Occurred()) SWIG_fail;
16186 }
16187 {
16188 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16189 }
16190 {
16191 if (temp4)
16192 delete arg4;
16193 }
16194 {
16195 if (temp7) delete arg7;
16196 }
16197 {
16198 if (temp11)
16199 delete arg11;
16200 }
16201 return resultobj;
16202 fail:
16203 {
16204 if (temp4)
16205 delete arg4;
16206 }
16207 {
16208 if (temp7) delete arg7;
16209 }
16210 {
16211 if (temp11)
16212 delete arg11;
16213 }
16214 return NULL;
16215 }
16216
16217
16218 SWIGINTERN PyObject *_wrap_RadioBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16219 PyObject *resultobj = 0;
16220 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16221 int arg2 ;
16222 void *argp1 = 0 ;
16223 int res1 = 0 ;
16224 int val2 ;
16225 int ecode2 = 0 ;
16226 PyObject * obj0 = 0 ;
16227 PyObject * obj1 = 0 ;
16228 char * kwnames[] = {
16229 (char *) "self",(char *) "n", NULL
16230 };
16231
16232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16234 if (!SWIG_IsOK(res1)) {
16235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16236 }
16237 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16238 ecode2 = SWIG_AsVal_int(obj1, &val2);
16239 if (!SWIG_IsOK(ecode2)) {
16240 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
16241 }
16242 arg2 = static_cast< int >(val2);
16243 {
16244 PyThreadState* __tstate = wxPyBeginAllowThreads();
16245 (arg1)->SetSelection(arg2);
16246 wxPyEndAllowThreads(__tstate);
16247 if (PyErr_Occurred()) SWIG_fail;
16248 }
16249 resultobj = SWIG_Py_Void();
16250 return resultobj;
16251 fail:
16252 return NULL;
16253 }
16254
16255
16256 SWIGINTERN PyObject *_wrap_RadioBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16257 PyObject *resultobj = 0;
16258 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16259 int result;
16260 void *argp1 = 0 ;
16261 int res1 = 0 ;
16262 PyObject *swig_obj[1] ;
16263
16264 if (!args) SWIG_fail;
16265 swig_obj[0] = args;
16266 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16267 if (!SWIG_IsOK(res1)) {
16268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16269 }
16270 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16271 {
16272 PyThreadState* __tstate = wxPyBeginAllowThreads();
16273 result = (int)((wxRadioBox const *)arg1)->GetSelection();
16274 wxPyEndAllowThreads(__tstate);
16275 if (PyErr_Occurred()) SWIG_fail;
16276 }
16277 resultobj = SWIG_From_int(static_cast< int >(result));
16278 return resultobj;
16279 fail:
16280 return NULL;
16281 }
16282
16283
16284 SWIGINTERN PyObject *_wrap_RadioBox_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16285 PyObject *resultobj = 0;
16286 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16287 wxString result;
16288 void *argp1 = 0 ;
16289 int res1 = 0 ;
16290 PyObject *swig_obj[1] ;
16291
16292 if (!args) SWIG_fail;
16293 swig_obj[0] = args;
16294 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16295 if (!SWIG_IsOK(res1)) {
16296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16297 }
16298 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16299 {
16300 PyThreadState* __tstate = wxPyBeginAllowThreads();
16301 result = ((wxRadioBox const *)arg1)->GetStringSelection();
16302 wxPyEndAllowThreads(__tstate);
16303 if (PyErr_Occurred()) SWIG_fail;
16304 }
16305 {
16306 #if wxUSE_UNICODE
16307 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16308 #else
16309 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16310 #endif
16311 }
16312 return resultobj;
16313 fail:
16314 return NULL;
16315 }
16316
16317
16318 SWIGINTERN PyObject *_wrap_RadioBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16319 PyObject *resultobj = 0;
16320 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16321 wxString *arg2 = 0 ;
16322 bool result;
16323 void *argp1 = 0 ;
16324 int res1 = 0 ;
16325 bool temp2 = false ;
16326 PyObject * obj0 = 0 ;
16327 PyObject * obj1 = 0 ;
16328 char * kwnames[] = {
16329 (char *) "self",(char *) "s", NULL
16330 };
16331
16332 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16333 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16334 if (!SWIG_IsOK(res1)) {
16335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16336 }
16337 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16338 {
16339 arg2 = wxString_in_helper(obj1);
16340 if (arg2 == NULL) SWIG_fail;
16341 temp2 = true;
16342 }
16343 {
16344 PyThreadState* __tstate = wxPyBeginAllowThreads();
16345 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
16346 wxPyEndAllowThreads(__tstate);
16347 if (PyErr_Occurred()) SWIG_fail;
16348 }
16349 {
16350 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16351 }
16352 {
16353 if (temp2)
16354 delete arg2;
16355 }
16356 return resultobj;
16357 fail:
16358 {
16359 if (temp2)
16360 delete arg2;
16361 }
16362 return NULL;
16363 }
16364
16365
16366 SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16367 PyObject *resultobj = 0;
16368 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16369 size_t result;
16370 void *argp1 = 0 ;
16371 int res1 = 0 ;
16372 PyObject *swig_obj[1] ;
16373
16374 if (!args) SWIG_fail;
16375 swig_obj[0] = args;
16376 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16377 if (!SWIG_IsOK(res1)) {
16378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16379 }
16380 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16381 {
16382 PyThreadState* __tstate = wxPyBeginAllowThreads();
16383 result = (size_t)((wxRadioBox const *)arg1)->GetCount();
16384 wxPyEndAllowThreads(__tstate);
16385 if (PyErr_Occurred()) SWIG_fail;
16386 }
16387 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
16388 return resultobj;
16389 fail:
16390 return NULL;
16391 }
16392
16393
16394 SWIGINTERN PyObject *_wrap_RadioBox_FindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16395 PyObject *resultobj = 0;
16396 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16397 wxString *arg2 = 0 ;
16398 int result;
16399 void *argp1 = 0 ;
16400 int res1 = 0 ;
16401 bool temp2 = false ;
16402 PyObject * obj0 = 0 ;
16403 PyObject * obj1 = 0 ;
16404 char * kwnames[] = {
16405 (char *) "self",(char *) "s", NULL
16406 };
16407
16408 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) SWIG_fail;
16409 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16410 if (!SWIG_IsOK(res1)) {
16411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_FindString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16412 }
16413 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16414 {
16415 arg2 = wxString_in_helper(obj1);
16416 if (arg2 == NULL) SWIG_fail;
16417 temp2 = true;
16418 }
16419 {
16420 PyThreadState* __tstate = wxPyBeginAllowThreads();
16421 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
16422 wxPyEndAllowThreads(__tstate);
16423 if (PyErr_Occurred()) SWIG_fail;
16424 }
16425 resultobj = SWIG_From_int(static_cast< int >(result));
16426 {
16427 if (temp2)
16428 delete arg2;
16429 }
16430 return resultobj;
16431 fail:
16432 {
16433 if (temp2)
16434 delete arg2;
16435 }
16436 return NULL;
16437 }
16438
16439
16440 SWIGINTERN PyObject *_wrap_RadioBox_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16441 PyObject *resultobj = 0;
16442 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16443 int arg2 ;
16444 wxString result;
16445 void *argp1 = 0 ;
16446 int res1 = 0 ;
16447 int val2 ;
16448 int ecode2 = 0 ;
16449 PyObject * obj0 = 0 ;
16450 PyObject * obj1 = 0 ;
16451 char * kwnames[] = {
16452 (char *) "self",(char *) "n", NULL
16453 };
16454
16455 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) SWIG_fail;
16456 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16457 if (!SWIG_IsOK(res1)) {
16458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16459 }
16460 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16461 ecode2 = SWIG_AsVal_int(obj1, &val2);
16462 if (!SWIG_IsOK(ecode2)) {
16463 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetString" "', expected argument " "2"" of type '" "int""'");
16464 }
16465 arg2 = static_cast< int >(val2);
16466 {
16467 PyThreadState* __tstate = wxPyBeginAllowThreads();
16468 result = ((wxRadioBox const *)arg1)->GetString(arg2);
16469 wxPyEndAllowThreads(__tstate);
16470 if (PyErr_Occurred()) SWIG_fail;
16471 }
16472 {
16473 #if wxUSE_UNICODE
16474 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16475 #else
16476 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16477 #endif
16478 }
16479 return resultobj;
16480 fail:
16481 return NULL;
16482 }
16483
16484
16485 SWIGINTERN PyObject *_wrap_RadioBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16486 PyObject *resultobj = 0;
16487 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16488 int arg2 ;
16489 wxString *arg3 = 0 ;
16490 void *argp1 = 0 ;
16491 int res1 = 0 ;
16492 int val2 ;
16493 int ecode2 = 0 ;
16494 bool temp3 = false ;
16495 PyObject * obj0 = 0 ;
16496 PyObject * obj1 = 0 ;
16497 PyObject * obj2 = 0 ;
16498 char * kwnames[] = {
16499 (char *) "self",(char *) "n",(char *) "label", NULL
16500 };
16501
16502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16503 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16504 if (!SWIG_IsOK(res1)) {
16505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetString" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16506 }
16507 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16508 ecode2 = SWIG_AsVal_int(obj1, &val2);
16509 if (!SWIG_IsOK(ecode2)) {
16510 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetString" "', expected argument " "2"" of type '" "int""'");
16511 }
16512 arg2 = static_cast< int >(val2);
16513 {
16514 arg3 = wxString_in_helper(obj2);
16515 if (arg3 == NULL) SWIG_fail;
16516 temp3 = true;
16517 }
16518 {
16519 PyThreadState* __tstate = wxPyBeginAllowThreads();
16520 (arg1)->SetString(arg2,(wxString const &)*arg3);
16521 wxPyEndAllowThreads(__tstate);
16522 if (PyErr_Occurred()) SWIG_fail;
16523 }
16524 resultobj = SWIG_Py_Void();
16525 {
16526 if (temp3)
16527 delete arg3;
16528 }
16529 return resultobj;
16530 fail:
16531 {
16532 if (temp3)
16533 delete arg3;
16534 }
16535 return NULL;
16536 }
16537
16538
16539 SWIGINTERN PyObject *_wrap_RadioBox_EnableItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16540 PyObject *resultobj = 0;
16541 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16542 unsigned int arg2 ;
16543 bool arg3 = (bool) true ;
16544 void *argp1 = 0 ;
16545 int res1 = 0 ;
16546 unsigned int val2 ;
16547 int ecode2 = 0 ;
16548 bool val3 ;
16549 int ecode3 = 0 ;
16550 PyObject * obj0 = 0 ;
16551 PyObject * obj1 = 0 ;
16552 PyObject * obj2 = 0 ;
16553 char * kwnames[] = {
16554 (char *) "self",(char *) "n",(char *) "enable", NULL
16555 };
16556
16557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16559 if (!SWIG_IsOK(res1)) {
16560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_EnableItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16561 }
16562 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16563 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16564 if (!SWIG_IsOK(ecode2)) {
16565 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_EnableItem" "', expected argument " "2"" of type '" "unsigned int""'");
16566 }
16567 arg2 = static_cast< unsigned int >(val2);
16568 if (obj2) {
16569 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16570 if (!SWIG_IsOK(ecode3)) {
16571 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_EnableItem" "', expected argument " "3"" of type '" "bool""'");
16572 }
16573 arg3 = static_cast< bool >(val3);
16574 }
16575 {
16576 PyThreadState* __tstate = wxPyBeginAllowThreads();
16577 (arg1)->Enable(arg2,arg3);
16578 wxPyEndAllowThreads(__tstate);
16579 if (PyErr_Occurred()) SWIG_fail;
16580 }
16581 resultobj = SWIG_Py_Void();
16582 return resultobj;
16583 fail:
16584 return NULL;
16585 }
16586
16587
16588 SWIGINTERN PyObject *_wrap_RadioBox_ShowItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16589 PyObject *resultobj = 0;
16590 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16591 unsigned int arg2 ;
16592 bool arg3 = (bool) true ;
16593 void *argp1 = 0 ;
16594 int res1 = 0 ;
16595 unsigned int val2 ;
16596 int ecode2 = 0 ;
16597 bool val3 ;
16598 int ecode3 = 0 ;
16599 PyObject * obj0 = 0 ;
16600 PyObject * obj1 = 0 ;
16601 PyObject * obj2 = 0 ;
16602 char * kwnames[] = {
16603 (char *) "self",(char *) "n",(char *) "show", NULL
16604 };
16605
16606 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16607 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16608 if (!SWIG_IsOK(res1)) {
16609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_ShowItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16610 }
16611 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16612 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16613 if (!SWIG_IsOK(ecode2)) {
16614 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_ShowItem" "', expected argument " "2"" of type '" "unsigned int""'");
16615 }
16616 arg2 = static_cast< unsigned int >(val2);
16617 if (obj2) {
16618 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16619 if (!SWIG_IsOK(ecode3)) {
16620 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_ShowItem" "', expected argument " "3"" of type '" "bool""'");
16621 }
16622 arg3 = static_cast< bool >(val3);
16623 }
16624 {
16625 PyThreadState* __tstate = wxPyBeginAllowThreads();
16626 (arg1)->Show(arg2,arg3);
16627 wxPyEndAllowThreads(__tstate);
16628 if (PyErr_Occurred()) SWIG_fail;
16629 }
16630 resultobj = SWIG_Py_Void();
16631 return resultobj;
16632 fail:
16633 return NULL;
16634 }
16635
16636
16637 SWIGINTERN PyObject *_wrap_RadioBox_IsItemEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16638 PyObject *resultobj = 0;
16639 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16640 unsigned int arg2 ;
16641 bool result;
16642 void *argp1 = 0 ;
16643 int res1 = 0 ;
16644 unsigned int val2 ;
16645 int ecode2 = 0 ;
16646 PyObject * obj0 = 0 ;
16647 PyObject * obj1 = 0 ;
16648 char * kwnames[] = {
16649 (char *) "self",(char *) "n", NULL
16650 };
16651
16652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
16653 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16654 if (!SWIG_IsOK(res1)) {
16655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16656 }
16657 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16658 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16659 if (!SWIG_IsOK(ecode2)) {
16660 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "2"" of type '" "unsigned int""'");
16661 }
16662 arg2 = static_cast< unsigned int >(val2);
16663 {
16664 PyThreadState* __tstate = wxPyBeginAllowThreads();
16665 result = (bool)((wxRadioBox const *)arg1)->IsItemEnabled(arg2);
16666 wxPyEndAllowThreads(__tstate);
16667 if (PyErr_Occurred()) SWIG_fail;
16668 }
16669 {
16670 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16671 }
16672 return resultobj;
16673 fail:
16674 return NULL;
16675 }
16676
16677
16678 SWIGINTERN PyObject *_wrap_RadioBox_IsItemShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16679 PyObject *resultobj = 0;
16680 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16681 unsigned int arg2 ;
16682 bool result;
16683 void *argp1 = 0 ;
16684 int res1 = 0 ;
16685 unsigned int val2 ;
16686 int ecode2 = 0 ;
16687 PyObject * obj0 = 0 ;
16688 PyObject * obj1 = 0 ;
16689 char * kwnames[] = {
16690 (char *) "self",(char *) "n", NULL
16691 };
16692
16693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemShown",kwnames,&obj0,&obj1)) SWIG_fail;
16694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16695 if (!SWIG_IsOK(res1)) {
16696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemShown" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16697 }
16698 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16699 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16700 if (!SWIG_IsOK(ecode2)) {
16701 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemShown" "', expected argument " "2"" of type '" "unsigned int""'");
16702 }
16703 arg2 = static_cast< unsigned int >(val2);
16704 {
16705 PyThreadState* __tstate = wxPyBeginAllowThreads();
16706 result = (bool)((wxRadioBox const *)arg1)->IsItemShown(arg2);
16707 wxPyEndAllowThreads(__tstate);
16708 if (PyErr_Occurred()) SWIG_fail;
16709 }
16710 {
16711 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16712 }
16713 return resultobj;
16714 fail:
16715 return NULL;
16716 }
16717
16718
16719 SWIGINTERN PyObject *_wrap_RadioBox_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16720 PyObject *resultobj = 0;
16721 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16722 unsigned int result;
16723 void *argp1 = 0 ;
16724 int res1 = 0 ;
16725 PyObject *swig_obj[1] ;
16726
16727 if (!args) SWIG_fail;
16728 swig_obj[0] = args;
16729 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16730 if (!SWIG_IsOK(res1)) {
16731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetColumnCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16732 }
16733 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16734 {
16735 PyThreadState* __tstate = wxPyBeginAllowThreads();
16736 result = (unsigned int)((wxRadioBox const *)arg1)->GetColumnCount();
16737 wxPyEndAllowThreads(__tstate);
16738 if (PyErr_Occurred()) SWIG_fail;
16739 }
16740 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
16741 return resultobj;
16742 fail:
16743 return NULL;
16744 }
16745
16746
16747 SWIGINTERN PyObject *_wrap_RadioBox_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16748 PyObject *resultobj = 0;
16749 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16750 unsigned int result;
16751 void *argp1 = 0 ;
16752 int res1 = 0 ;
16753 PyObject *swig_obj[1] ;
16754
16755 if (!args) SWIG_fail;
16756 swig_obj[0] = args;
16757 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16758 if (!SWIG_IsOK(res1)) {
16759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetRowCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16760 }
16761 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16762 {
16763 PyThreadState* __tstate = wxPyBeginAllowThreads();
16764 result = (unsigned int)((wxRadioBox const *)arg1)->GetRowCount();
16765 wxPyEndAllowThreads(__tstate);
16766 if (PyErr_Occurred()) SWIG_fail;
16767 }
16768 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
16769 return resultobj;
16770 fail:
16771 return NULL;
16772 }
16773
16774
16775 SWIGINTERN PyObject *_wrap_RadioBox_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16776 PyObject *resultobj = 0;
16777 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16778 int arg2 ;
16779 wxDirection arg3 ;
16780 long arg4 ;
16781 int result;
16782 void *argp1 = 0 ;
16783 int res1 = 0 ;
16784 int val2 ;
16785 int ecode2 = 0 ;
16786 int val3 ;
16787 int ecode3 = 0 ;
16788 long val4 ;
16789 int ecode4 = 0 ;
16790 PyObject * obj0 = 0 ;
16791 PyObject * obj1 = 0 ;
16792 PyObject * obj2 = 0 ;
16793 PyObject * obj3 = 0 ;
16794 char * kwnames[] = {
16795 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
16796 };
16797
16798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16800 if (!SWIG_IsOK(res1)) {
16801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetNextItem" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16802 }
16803 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16804 ecode2 = SWIG_AsVal_int(obj1, &val2);
16805 if (!SWIG_IsOK(ecode2)) {
16806 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetNextItem" "', expected argument " "2"" of type '" "int""'");
16807 }
16808 arg2 = static_cast< int >(val2);
16809 ecode3 = SWIG_AsVal_int(obj2, &val3);
16810 if (!SWIG_IsOK(ecode3)) {
16811 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_GetNextItem" "', expected argument " "3"" of type '" "wxDirection""'");
16812 }
16813 arg3 = static_cast< wxDirection >(val3);
16814 ecode4 = SWIG_AsVal_long(obj3, &val4);
16815 if (!SWIG_IsOK(ecode4)) {
16816 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RadioBox_GetNextItem" "', expected argument " "4"" of type '" "long""'");
16817 }
16818 arg4 = static_cast< long >(val4);
16819 {
16820 PyThreadState* __tstate = wxPyBeginAllowThreads();
16821 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,arg3,arg4);
16822 wxPyEndAllowThreads(__tstate);
16823 if (PyErr_Occurred()) SWIG_fail;
16824 }
16825 resultobj = SWIG_From_int(static_cast< int >(result));
16826 return resultobj;
16827 fail:
16828 return NULL;
16829 }
16830
16831
16832 SWIGINTERN PyObject *_wrap_RadioBox_SetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16833 PyObject *resultobj = 0;
16834 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16835 unsigned int arg2 ;
16836 wxString *arg3 = 0 ;
16837 void *argp1 = 0 ;
16838 int res1 = 0 ;
16839 unsigned int val2 ;
16840 int ecode2 = 0 ;
16841 bool temp3 = false ;
16842 PyObject * obj0 = 0 ;
16843 PyObject * obj1 = 0 ;
16844 PyObject * obj2 = 0 ;
16845 char * kwnames[] = {
16846 (char *) "self",(char *) "item",(char *) "text", NULL
16847 };
16848
16849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemToolTip",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16851 if (!SWIG_IsOK(res1)) {
16852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16853 }
16854 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16855 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16856 if (!SWIG_IsOK(ecode2)) {
16857 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
16858 }
16859 arg2 = static_cast< unsigned int >(val2);
16860 {
16861 arg3 = wxString_in_helper(obj2);
16862 if (arg3 == NULL) SWIG_fail;
16863 temp3 = true;
16864 }
16865 {
16866 PyThreadState* __tstate = wxPyBeginAllowThreads();
16867 (arg1)->SetItemToolTip(arg2,(wxString const &)*arg3);
16868 wxPyEndAllowThreads(__tstate);
16869 if (PyErr_Occurred()) SWIG_fail;
16870 }
16871 resultobj = SWIG_Py_Void();
16872 {
16873 if (temp3)
16874 delete arg3;
16875 }
16876 return resultobj;
16877 fail:
16878 {
16879 if (temp3)
16880 delete arg3;
16881 }
16882 return NULL;
16883 }
16884
16885
16886 SWIGINTERN PyObject *_wrap_RadioBox_GetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16887 PyObject *resultobj = 0;
16888 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16889 unsigned int arg2 ;
16890 wxToolTip *result = 0 ;
16891 void *argp1 = 0 ;
16892 int res1 = 0 ;
16893 unsigned int val2 ;
16894 int ecode2 = 0 ;
16895 PyObject * obj0 = 0 ;
16896 PyObject * obj1 = 0 ;
16897 char * kwnames[] = {
16898 (char *) "self",(char *) "item", NULL
16899 };
16900
16901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
16902 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16903 if (!SWIG_IsOK(res1)) {
16904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16905 }
16906 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16907 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16908 if (!SWIG_IsOK(ecode2)) {
16909 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
16910 }
16911 arg2 = static_cast< unsigned int >(val2);
16912 {
16913 PyThreadState* __tstate = wxPyBeginAllowThreads();
16914 result = (wxToolTip *)((wxRadioBox const *)arg1)->GetItemToolTip(arg2);
16915 wxPyEndAllowThreads(__tstate);
16916 if (PyErr_Occurred()) SWIG_fail;
16917 }
16918 {
16919 resultobj = wxPyMake_wxObject(result, (bool)0);
16920 }
16921 return resultobj;
16922 fail:
16923 return NULL;
16924 }
16925
16926
16927 SWIGINTERN PyObject *_wrap_RadioBox_SetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16928 PyObject *resultobj = 0;
16929 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16930 unsigned int arg2 ;
16931 wxString *arg3 = 0 ;
16932 void *argp1 = 0 ;
16933 int res1 = 0 ;
16934 unsigned int val2 ;
16935 int ecode2 = 0 ;
16936 bool temp3 = false ;
16937 PyObject * obj0 = 0 ;
16938 PyObject * obj1 = 0 ;
16939 PyObject * obj2 = 0 ;
16940 char * kwnames[] = {
16941 (char *) "self",(char *) "n",(char *) "helpText", NULL
16942 };
16943
16944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemHelpText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16946 if (!SWIG_IsOK(res1)) {
16947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16948 }
16949 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16950 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16951 if (!SWIG_IsOK(ecode2)) {
16952 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
16953 }
16954 arg2 = static_cast< unsigned int >(val2);
16955 {
16956 arg3 = wxString_in_helper(obj2);
16957 if (arg3 == NULL) SWIG_fail;
16958 temp3 = true;
16959 }
16960 {
16961 PyThreadState* __tstate = wxPyBeginAllowThreads();
16962 (arg1)->SetItemHelpText(arg2,(wxString const &)*arg3);
16963 wxPyEndAllowThreads(__tstate);
16964 if (PyErr_Occurred()) SWIG_fail;
16965 }
16966 resultobj = SWIG_Py_Void();
16967 {
16968 if (temp3)
16969 delete arg3;
16970 }
16971 return resultobj;
16972 fail:
16973 {
16974 if (temp3)
16975 delete arg3;
16976 }
16977 return NULL;
16978 }
16979
16980
16981 SWIGINTERN PyObject *_wrap_RadioBox_GetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16982 PyObject *resultobj = 0;
16983 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16984 unsigned int arg2 ;
16985 wxString result;
16986 void *argp1 = 0 ;
16987 int res1 = 0 ;
16988 unsigned int val2 ;
16989 int ecode2 = 0 ;
16990 PyObject * obj0 = 0 ;
16991 PyObject * obj1 = 0 ;
16992 char * kwnames[] = {
16993 (char *) "self",(char *) "n", NULL
16994 };
16995
16996 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemHelpText",kwnames,&obj0,&obj1)) SWIG_fail;
16997 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16998 if (!SWIG_IsOK(res1)) {
16999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17000 }
17001 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17002 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17003 if (!SWIG_IsOK(ecode2)) {
17004 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17005 }
17006 arg2 = static_cast< unsigned int >(val2);
17007 {
17008 PyThreadState* __tstate = wxPyBeginAllowThreads();
17009 result = ((wxRadioBox const *)arg1)->GetItemHelpText(arg2);
17010 wxPyEndAllowThreads(__tstate);
17011 if (PyErr_Occurred()) SWIG_fail;
17012 }
17013 {
17014 #if wxUSE_UNICODE
17015 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17016 #else
17017 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17018 #endif
17019 }
17020 return resultobj;
17021 fail:
17022 return NULL;
17023 }
17024
17025
17026 SWIGINTERN PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17027 PyObject *resultobj = 0;
17028 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17029 SwigValueWrapper<wxVisualAttributes > result;
17030 int val1 ;
17031 int ecode1 = 0 ;
17032 PyObject * obj0 = 0 ;
17033 char * kwnames[] = {
17034 (char *) "variant", NULL
17035 };
17036
17037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17038 if (obj0) {
17039 ecode1 = SWIG_AsVal_int(obj0, &val1);
17040 if (!SWIG_IsOK(ecode1)) {
17041 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17042 }
17043 arg1 = static_cast< wxWindowVariant >(val1);
17044 }
17045 {
17046 if (!wxPyCheckForApp()) SWIG_fail;
17047 PyThreadState* __tstate = wxPyBeginAllowThreads();
17048 result = wxRadioBox::GetClassDefaultAttributes(arg1);
17049 wxPyEndAllowThreads(__tstate);
17050 if (PyErr_Occurred()) SWIG_fail;
17051 }
17052 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17053 return resultobj;
17054 fail:
17055 return NULL;
17056 }
17057
17058
17059 SWIGINTERN PyObject *RadioBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17060 PyObject *obj;
17061 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17062 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioBox, SWIG_NewClientData(obj));
17063 return SWIG_Py_Void();
17064 }
17065
17066 SWIGINTERN PyObject *RadioBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17067 return SWIG_Python_InitShadowInstance(args);
17068 }
17069
17070 SWIGINTERN PyObject *_wrap_new_RadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17071 PyObject *resultobj = 0;
17072 wxWindow *arg1 = (wxWindow *) 0 ;
17073 int arg2 = (int) -1 ;
17074 wxString const &arg3_defvalue = wxPyEmptyString ;
17075 wxString *arg3 = (wxString *) &arg3_defvalue ;
17076 wxPoint const &arg4_defvalue = wxDefaultPosition ;
17077 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
17078 wxSize const &arg5_defvalue = wxDefaultSize ;
17079 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
17080 long arg6 = (long) 0 ;
17081 wxValidator const &arg7_defvalue = wxDefaultValidator ;
17082 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
17083 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
17084 wxString *arg8 = (wxString *) &arg8_defvalue ;
17085 wxRadioButton *result = 0 ;
17086 void *argp1 = 0 ;
17087 int res1 = 0 ;
17088 int val2 ;
17089 int ecode2 = 0 ;
17090 bool temp3 = false ;
17091 wxPoint temp4 ;
17092 wxSize temp5 ;
17093 long val6 ;
17094 int ecode6 = 0 ;
17095 void *argp7 = 0 ;
17096 int res7 = 0 ;
17097 bool temp8 = false ;
17098 PyObject * obj0 = 0 ;
17099 PyObject * obj1 = 0 ;
17100 PyObject * obj2 = 0 ;
17101 PyObject * obj3 = 0 ;
17102 PyObject * obj4 = 0 ;
17103 PyObject * obj5 = 0 ;
17104 PyObject * obj6 = 0 ;
17105 PyObject * obj7 = 0 ;
17106 char * kwnames[] = {
17107 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17108 };
17109
17110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
17111 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17112 if (!SWIG_IsOK(res1)) {
17113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioButton" "', expected argument " "1"" of type '" "wxWindow *""'");
17114 }
17115 arg1 = reinterpret_cast< wxWindow * >(argp1);
17116 if (obj1) {
17117 ecode2 = SWIG_AsVal_int(obj1, &val2);
17118 if (!SWIG_IsOK(ecode2)) {
17119 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioButton" "', expected argument " "2"" of type '" "int""'");
17120 }
17121 arg2 = static_cast< int >(val2);
17122 }
17123 if (obj2) {
17124 {
17125 arg3 = wxString_in_helper(obj2);
17126 if (arg3 == NULL) SWIG_fail;
17127 temp3 = true;
17128 }
17129 }
17130 if (obj3) {
17131 {
17132 arg4 = &temp4;
17133 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
17134 }
17135 }
17136 if (obj4) {
17137 {
17138 arg5 = &temp5;
17139 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
17140 }
17141 }
17142 if (obj5) {
17143 ecode6 = SWIG_AsVal_long(obj5, &val6);
17144 if (!SWIG_IsOK(ecode6)) {
17145 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RadioButton" "', expected argument " "6"" of type '" "long""'");
17146 }
17147 arg6 = static_cast< long >(val6);
17148 }
17149 if (obj6) {
17150 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
17151 if (!SWIG_IsOK(res7)) {
17152 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17153 }
17154 if (!argp7) {
17155 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17156 }
17157 arg7 = reinterpret_cast< wxValidator * >(argp7);
17158 }
17159 if (obj7) {
17160 {
17161 arg8 = wxString_in_helper(obj7);
17162 if (arg8 == NULL) SWIG_fail;
17163 temp8 = true;
17164 }
17165 }
17166 {
17167 if (!wxPyCheckForApp()) SWIG_fail;
17168 PyThreadState* __tstate = wxPyBeginAllowThreads();
17169 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
17170 wxPyEndAllowThreads(__tstate);
17171 if (PyErr_Occurred()) SWIG_fail;
17172 }
17173 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_NEW | 0 );
17174 {
17175 if (temp3)
17176 delete arg3;
17177 }
17178 {
17179 if (temp8)
17180 delete arg8;
17181 }
17182 return resultobj;
17183 fail:
17184 {
17185 if (temp3)
17186 delete arg3;
17187 }
17188 {
17189 if (temp8)
17190 delete arg8;
17191 }
17192 return NULL;
17193 }
17194
17195
17196 SWIGINTERN PyObject *_wrap_new_PreRadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17197 PyObject *resultobj = 0;
17198 wxRadioButton *result = 0 ;
17199
17200 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioButton",0,0,0)) SWIG_fail;
17201 {
17202 if (!wxPyCheckForApp()) SWIG_fail;
17203 PyThreadState* __tstate = wxPyBeginAllowThreads();
17204 result = (wxRadioButton *)new wxRadioButton();
17205 wxPyEndAllowThreads(__tstate);
17206 if (PyErr_Occurred()) SWIG_fail;
17207 }
17208 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_OWN | 0 );
17209 return resultobj;
17210 fail:
17211 return NULL;
17212 }
17213
17214
17215 SWIGINTERN PyObject *_wrap_RadioButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17216 PyObject *resultobj = 0;
17217 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17218 wxWindow *arg2 = (wxWindow *) 0 ;
17219 int arg3 = (int) -1 ;
17220 wxString const &arg4_defvalue = wxPyEmptyString ;
17221 wxString *arg4 = (wxString *) &arg4_defvalue ;
17222 wxPoint const &arg5_defvalue = wxDefaultPosition ;
17223 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
17224 wxSize const &arg6_defvalue = wxDefaultSize ;
17225 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
17226 long arg7 = (long) 0 ;
17227 wxValidator const &arg8_defvalue = wxDefaultValidator ;
17228 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
17229 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
17230 wxString *arg9 = (wxString *) &arg9_defvalue ;
17231 bool result;
17232 void *argp1 = 0 ;
17233 int res1 = 0 ;
17234 void *argp2 = 0 ;
17235 int res2 = 0 ;
17236 int val3 ;
17237 int ecode3 = 0 ;
17238 bool temp4 = false ;
17239 wxPoint temp5 ;
17240 wxSize temp6 ;
17241 long val7 ;
17242 int ecode7 = 0 ;
17243 void *argp8 = 0 ;
17244 int res8 = 0 ;
17245 bool temp9 = false ;
17246 PyObject * obj0 = 0 ;
17247 PyObject * obj1 = 0 ;
17248 PyObject * obj2 = 0 ;
17249 PyObject * obj3 = 0 ;
17250 PyObject * obj4 = 0 ;
17251 PyObject * obj5 = 0 ;
17252 PyObject * obj6 = 0 ;
17253 PyObject * obj7 = 0 ;
17254 PyObject * obj8 = 0 ;
17255 char * kwnames[] = {
17256 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17257 };
17258
17259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
17260 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17261 if (!SWIG_IsOK(res1)) {
17262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_Create" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17263 }
17264 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17265 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17266 if (!SWIG_IsOK(res2)) {
17267 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17268 }
17269 arg2 = reinterpret_cast< wxWindow * >(argp2);
17270 if (obj2) {
17271 ecode3 = SWIG_AsVal_int(obj2, &val3);
17272 if (!SWIG_IsOK(ecode3)) {
17273 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioButton_Create" "', expected argument " "3"" of type '" "int""'");
17274 }
17275 arg3 = static_cast< int >(val3);
17276 }
17277 if (obj3) {
17278 {
17279 arg4 = wxString_in_helper(obj3);
17280 if (arg4 == NULL) SWIG_fail;
17281 temp4 = true;
17282 }
17283 }
17284 if (obj4) {
17285 {
17286 arg5 = &temp5;
17287 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17288 }
17289 }
17290 if (obj5) {
17291 {
17292 arg6 = &temp6;
17293 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
17294 }
17295 }
17296 if (obj6) {
17297 ecode7 = SWIG_AsVal_long(obj6, &val7);
17298 if (!SWIG_IsOK(ecode7)) {
17299 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RadioButton_Create" "', expected argument " "7"" of type '" "long""'");
17300 }
17301 arg7 = static_cast< long >(val7);
17302 }
17303 if (obj7) {
17304 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
17305 if (!SWIG_IsOK(res8)) {
17306 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17307 }
17308 if (!argp8) {
17309 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17310 }
17311 arg8 = reinterpret_cast< wxValidator * >(argp8);
17312 }
17313 if (obj8) {
17314 {
17315 arg9 = wxString_in_helper(obj8);
17316 if (arg9 == NULL) SWIG_fail;
17317 temp9 = true;
17318 }
17319 }
17320 {
17321 PyThreadState* __tstate = wxPyBeginAllowThreads();
17322 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
17323 wxPyEndAllowThreads(__tstate);
17324 if (PyErr_Occurred()) SWIG_fail;
17325 }
17326 {
17327 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17328 }
17329 {
17330 if (temp4)
17331 delete arg4;
17332 }
17333 {
17334 if (temp9)
17335 delete arg9;
17336 }
17337 return resultobj;
17338 fail:
17339 {
17340 if (temp4)
17341 delete arg4;
17342 }
17343 {
17344 if (temp9)
17345 delete arg9;
17346 }
17347 return NULL;
17348 }
17349
17350
17351 SWIGINTERN PyObject *_wrap_RadioButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17352 PyObject *resultobj = 0;
17353 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17354 bool result;
17355 void *argp1 = 0 ;
17356 int res1 = 0 ;
17357 PyObject *swig_obj[1] ;
17358
17359 if (!args) SWIG_fail;
17360 swig_obj[0] = args;
17361 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17362 if (!SWIG_IsOK(res1)) {
17363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_GetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17364 }
17365 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17366 {
17367 PyThreadState* __tstate = wxPyBeginAllowThreads();
17368 result = (bool)(arg1)->GetValue();
17369 wxPyEndAllowThreads(__tstate);
17370 if (PyErr_Occurred()) SWIG_fail;
17371 }
17372 {
17373 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17374 }
17375 return resultobj;
17376 fail:
17377 return NULL;
17378 }
17379
17380
17381 SWIGINTERN PyObject *_wrap_RadioButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17382 PyObject *resultobj = 0;
17383 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17384 bool arg2 ;
17385 void *argp1 = 0 ;
17386 int res1 = 0 ;
17387 bool val2 ;
17388 int ecode2 = 0 ;
17389 PyObject * obj0 = 0 ;
17390 PyObject * obj1 = 0 ;
17391 char * kwnames[] = {
17392 (char *) "self",(char *) "value", NULL
17393 };
17394
17395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17397 if (!SWIG_IsOK(res1)) {
17398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_SetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17399 }
17400 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17401 ecode2 = SWIG_AsVal_bool(obj1, &val2);
17402 if (!SWIG_IsOK(ecode2)) {
17403 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
17404 }
17405 arg2 = static_cast< bool >(val2);
17406 {
17407 PyThreadState* __tstate = wxPyBeginAllowThreads();
17408 (arg1)->SetValue(arg2);
17409 wxPyEndAllowThreads(__tstate);
17410 if (PyErr_Occurred()) SWIG_fail;
17411 }
17412 resultobj = SWIG_Py_Void();
17413 return resultobj;
17414 fail:
17415 return NULL;
17416 }
17417
17418
17419 SWIGINTERN PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17420 PyObject *resultobj = 0;
17421 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17422 SwigValueWrapper<wxVisualAttributes > result;
17423 int val1 ;
17424 int ecode1 = 0 ;
17425 PyObject * obj0 = 0 ;
17426 char * kwnames[] = {
17427 (char *) "variant", NULL
17428 };
17429
17430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17431 if (obj0) {
17432 ecode1 = SWIG_AsVal_int(obj0, &val1);
17433 if (!SWIG_IsOK(ecode1)) {
17434 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17435 }
17436 arg1 = static_cast< wxWindowVariant >(val1);
17437 }
17438 {
17439 if (!wxPyCheckForApp()) SWIG_fail;
17440 PyThreadState* __tstate = wxPyBeginAllowThreads();
17441 result = wxRadioButton::GetClassDefaultAttributes(arg1);
17442 wxPyEndAllowThreads(__tstate);
17443 if (PyErr_Occurred()) SWIG_fail;
17444 }
17445 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17446 return resultobj;
17447 fail:
17448 return NULL;
17449 }
17450
17451
17452 SWIGINTERN PyObject *RadioButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17453 PyObject *obj;
17454 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17455 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioButton, SWIG_NewClientData(obj));
17456 return SWIG_Py_Void();
17457 }
17458
17459 SWIGINTERN PyObject *RadioButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17460 return SWIG_Python_InitShadowInstance(args);
17461 }
17462
17463 SWIGINTERN int SliderNameStr_set(PyObject *) {
17464 SWIG_Error(SWIG_AttributeError,"Variable SliderNameStr is read-only.");
17465 return 1;
17466 }
17467
17468
17469 SWIGINTERN PyObject *SliderNameStr_get(void) {
17470 PyObject *pyobj = 0;
17471
17472 {
17473 #if wxUSE_UNICODE
17474 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17475 #else
17476 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17477 #endif
17478 }
17479 return pyobj;
17480 }
17481
17482
17483 SWIGINTERN PyObject *_wrap_new_Slider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17484 PyObject *resultobj = 0;
17485 wxWindow *arg1 = (wxWindow *) 0 ;
17486 int arg2 = (int) -1 ;
17487 int arg3 = (int) 0 ;
17488 int arg4 = (int) 0 ;
17489 int arg5 = (int) 100 ;
17490 wxPoint const &arg6_defvalue = wxDefaultPosition ;
17491 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
17492 wxSize const &arg7_defvalue = wxDefaultSize ;
17493 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
17494 long arg8 = (long) wxSL_HORIZONTAL ;
17495 wxValidator const &arg9_defvalue = wxDefaultValidator ;
17496 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
17497 wxString const &arg10_defvalue = wxPySliderNameStr ;
17498 wxString *arg10 = (wxString *) &arg10_defvalue ;
17499 wxSlider *result = 0 ;
17500 void *argp1 = 0 ;
17501 int res1 = 0 ;
17502 int val2 ;
17503 int ecode2 = 0 ;
17504 int val3 ;
17505 int ecode3 = 0 ;
17506 int val4 ;
17507 int ecode4 = 0 ;
17508 int val5 ;
17509 int ecode5 = 0 ;
17510 wxPoint temp6 ;
17511 wxSize temp7 ;
17512 long val8 ;
17513 int ecode8 = 0 ;
17514 void *argp9 = 0 ;
17515 int res9 = 0 ;
17516 bool temp10 = false ;
17517 PyObject * obj0 = 0 ;
17518 PyObject * obj1 = 0 ;
17519 PyObject * obj2 = 0 ;
17520 PyObject * obj3 = 0 ;
17521 PyObject * obj4 = 0 ;
17522 PyObject * obj5 = 0 ;
17523 PyObject * obj6 = 0 ;
17524 PyObject * obj7 = 0 ;
17525 PyObject * obj8 = 0 ;
17526 PyObject * obj9 = 0 ;
17527 char * kwnames[] = {
17528 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17529 };
17530
17531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
17532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17533 if (!SWIG_IsOK(res1)) {
17534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Slider" "', expected argument " "1"" of type '" "wxWindow *""'");
17535 }
17536 arg1 = reinterpret_cast< wxWindow * >(argp1);
17537 if (obj1) {
17538 ecode2 = SWIG_AsVal_int(obj1, &val2);
17539 if (!SWIG_IsOK(ecode2)) {
17540 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Slider" "', expected argument " "2"" of type '" "int""'");
17541 }
17542 arg2 = static_cast< int >(val2);
17543 }
17544 if (obj2) {
17545 ecode3 = SWIG_AsVal_int(obj2, &val3);
17546 if (!SWIG_IsOK(ecode3)) {
17547 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Slider" "', expected argument " "3"" of type '" "int""'");
17548 }
17549 arg3 = static_cast< int >(val3);
17550 }
17551 if (obj3) {
17552 ecode4 = SWIG_AsVal_int(obj3, &val4);
17553 if (!SWIG_IsOK(ecode4)) {
17554 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Slider" "', expected argument " "4"" of type '" "int""'");
17555 }
17556 arg4 = static_cast< int >(val4);
17557 }
17558 if (obj4) {
17559 ecode5 = SWIG_AsVal_int(obj4, &val5);
17560 if (!SWIG_IsOK(ecode5)) {
17561 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Slider" "', expected argument " "5"" of type '" "int""'");
17562 }
17563 arg5 = static_cast< int >(val5);
17564 }
17565 if (obj5) {
17566 {
17567 arg6 = &temp6;
17568 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
17569 }
17570 }
17571 if (obj6) {
17572 {
17573 arg7 = &temp7;
17574 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
17575 }
17576 }
17577 if (obj7) {
17578 ecode8 = SWIG_AsVal_long(obj7, &val8);
17579 if (!SWIG_IsOK(ecode8)) {
17580 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Slider" "', expected argument " "8"" of type '" "long""'");
17581 }
17582 arg8 = static_cast< long >(val8);
17583 }
17584 if (obj8) {
17585 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
17586 if (!SWIG_IsOK(res9)) {
17587 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
17588 }
17589 if (!argp9) {
17590 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
17591 }
17592 arg9 = reinterpret_cast< wxValidator * >(argp9);
17593 }
17594 if (obj9) {
17595 {
17596 arg10 = wxString_in_helper(obj9);
17597 if (arg10 == NULL) SWIG_fail;
17598 temp10 = true;
17599 }
17600 }
17601 {
17602 if (!wxPyCheckForApp()) SWIG_fail;
17603 PyThreadState* __tstate = wxPyBeginAllowThreads();
17604 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
17605 wxPyEndAllowThreads(__tstate);
17606 if (PyErr_Occurred()) SWIG_fail;
17607 }
17608 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_NEW | 0 );
17609 {
17610 if (temp10)
17611 delete arg10;
17612 }
17613 return resultobj;
17614 fail:
17615 {
17616 if (temp10)
17617 delete arg10;
17618 }
17619 return NULL;
17620 }
17621
17622
17623 SWIGINTERN PyObject *_wrap_new_PreSlider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17624 PyObject *resultobj = 0;
17625 wxSlider *result = 0 ;
17626
17627 if (!SWIG_Python_UnpackTuple(args,"new_PreSlider",0,0,0)) SWIG_fail;
17628 {
17629 if (!wxPyCheckForApp()) SWIG_fail;
17630 PyThreadState* __tstate = wxPyBeginAllowThreads();
17631 result = (wxSlider *)new wxSlider();
17632 wxPyEndAllowThreads(__tstate);
17633 if (PyErr_Occurred()) SWIG_fail;
17634 }
17635 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_OWN | 0 );
17636 return resultobj;
17637 fail:
17638 return NULL;
17639 }
17640
17641
17642 SWIGINTERN PyObject *_wrap_Slider_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17643 PyObject *resultobj = 0;
17644 wxSlider *arg1 = (wxSlider *) 0 ;
17645 wxWindow *arg2 = (wxWindow *) 0 ;
17646 int arg3 = (int) -1 ;
17647 int arg4 = (int) 0 ;
17648 int arg5 = (int) 0 ;
17649 int arg6 = (int) 100 ;
17650 wxPoint const &arg7_defvalue = wxDefaultPosition ;
17651 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
17652 wxSize const &arg8_defvalue = wxDefaultSize ;
17653 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
17654 long arg9 = (long) wxSL_HORIZONTAL ;
17655 wxValidator const &arg10_defvalue = wxDefaultValidator ;
17656 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
17657 wxString const &arg11_defvalue = wxPySliderNameStr ;
17658 wxString *arg11 = (wxString *) &arg11_defvalue ;
17659 bool result;
17660 void *argp1 = 0 ;
17661 int res1 = 0 ;
17662 void *argp2 = 0 ;
17663 int res2 = 0 ;
17664 int val3 ;
17665 int ecode3 = 0 ;
17666 int val4 ;
17667 int ecode4 = 0 ;
17668 int val5 ;
17669 int ecode5 = 0 ;
17670 int val6 ;
17671 int ecode6 = 0 ;
17672 wxPoint temp7 ;
17673 wxSize temp8 ;
17674 long val9 ;
17675 int ecode9 = 0 ;
17676 void *argp10 = 0 ;
17677 int res10 = 0 ;
17678 bool temp11 = false ;
17679 PyObject * obj0 = 0 ;
17680 PyObject * obj1 = 0 ;
17681 PyObject * obj2 = 0 ;
17682 PyObject * obj3 = 0 ;
17683 PyObject * obj4 = 0 ;
17684 PyObject * obj5 = 0 ;
17685 PyObject * obj6 = 0 ;
17686 PyObject * obj7 = 0 ;
17687 PyObject * obj8 = 0 ;
17688 PyObject * obj9 = 0 ;
17689 PyObject * obj10 = 0 ;
17690 char * kwnames[] = {
17691 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17692 };
17693
17694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
17695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17696 if (!SWIG_IsOK(res1)) {
17697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_Create" "', expected argument " "1"" of type '" "wxSlider *""'");
17698 }
17699 arg1 = reinterpret_cast< wxSlider * >(argp1);
17700 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17701 if (!SWIG_IsOK(res2)) {
17702 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Slider_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17703 }
17704 arg2 = reinterpret_cast< wxWindow * >(argp2);
17705 if (obj2) {
17706 ecode3 = SWIG_AsVal_int(obj2, &val3);
17707 if (!SWIG_IsOK(ecode3)) {
17708 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_Create" "', expected argument " "3"" of type '" "int""'");
17709 }
17710 arg3 = static_cast< int >(val3);
17711 }
17712 if (obj3) {
17713 ecode4 = SWIG_AsVal_int(obj3, &val4);
17714 if (!SWIG_IsOK(ecode4)) {
17715 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Slider_Create" "', expected argument " "4"" of type '" "int""'");
17716 }
17717 arg4 = static_cast< int >(val4);
17718 }
17719 if (obj4) {
17720 ecode5 = SWIG_AsVal_int(obj4, &val5);
17721 if (!SWIG_IsOK(ecode5)) {
17722 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Slider_Create" "', expected argument " "5"" of type '" "int""'");
17723 }
17724 arg5 = static_cast< int >(val5);
17725 }
17726 if (obj5) {
17727 ecode6 = SWIG_AsVal_int(obj5, &val6);
17728 if (!SWIG_IsOK(ecode6)) {
17729 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Slider_Create" "', expected argument " "6"" of type '" "int""'");
17730 }
17731 arg6 = static_cast< int >(val6);
17732 }
17733 if (obj6) {
17734 {
17735 arg7 = &temp7;
17736 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
17737 }
17738 }
17739 if (obj7) {
17740 {
17741 arg8 = &temp8;
17742 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
17743 }
17744 }
17745 if (obj8) {
17746 ecode9 = SWIG_AsVal_long(obj8, &val9);
17747 if (!SWIG_IsOK(ecode9)) {
17748 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "Slider_Create" "', expected argument " "9"" of type '" "long""'");
17749 }
17750 arg9 = static_cast< long >(val9);
17751 }
17752 if (obj9) {
17753 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
17754 if (!SWIG_IsOK(res10)) {
17755 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
17756 }
17757 if (!argp10) {
17758 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
17759 }
17760 arg10 = reinterpret_cast< wxValidator * >(argp10);
17761 }
17762 if (obj10) {
17763 {
17764 arg11 = wxString_in_helper(obj10);
17765 if (arg11 == NULL) SWIG_fail;
17766 temp11 = true;
17767 }
17768 }
17769 {
17770 PyThreadState* __tstate = wxPyBeginAllowThreads();
17771 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
17772 wxPyEndAllowThreads(__tstate);
17773 if (PyErr_Occurred()) SWIG_fail;
17774 }
17775 {
17776 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17777 }
17778 {
17779 if (temp11)
17780 delete arg11;
17781 }
17782 return resultobj;
17783 fail:
17784 {
17785 if (temp11)
17786 delete arg11;
17787 }
17788 return NULL;
17789 }
17790
17791
17792 SWIGINTERN PyObject *_wrap_Slider_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17793 PyObject *resultobj = 0;
17794 wxSlider *arg1 = (wxSlider *) 0 ;
17795 int result;
17796 void *argp1 = 0 ;
17797 int res1 = 0 ;
17798 PyObject *swig_obj[1] ;
17799
17800 if (!args) SWIG_fail;
17801 swig_obj[0] = args;
17802 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17803 if (!SWIG_IsOK(res1)) {
17804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetValue" "', expected argument " "1"" of type '" "wxSlider const *""'");
17805 }
17806 arg1 = reinterpret_cast< wxSlider * >(argp1);
17807 {
17808 PyThreadState* __tstate = wxPyBeginAllowThreads();
17809 result = (int)((wxSlider const *)arg1)->GetValue();
17810 wxPyEndAllowThreads(__tstate);
17811 if (PyErr_Occurred()) SWIG_fail;
17812 }
17813 resultobj = SWIG_From_int(static_cast< int >(result));
17814 return resultobj;
17815 fail:
17816 return NULL;
17817 }
17818
17819
17820 SWIGINTERN PyObject *_wrap_Slider_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17821 PyObject *resultobj = 0;
17822 wxSlider *arg1 = (wxSlider *) 0 ;
17823 int arg2 ;
17824 void *argp1 = 0 ;
17825 int res1 = 0 ;
17826 int val2 ;
17827 int ecode2 = 0 ;
17828 PyObject * obj0 = 0 ;
17829 PyObject * obj1 = 0 ;
17830 char * kwnames[] = {
17831 (char *) "self",(char *) "value", NULL
17832 };
17833
17834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17835 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17836 if (!SWIG_IsOK(res1)) {
17837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetValue" "', expected argument " "1"" of type '" "wxSlider *""'");
17838 }
17839 arg1 = reinterpret_cast< wxSlider * >(argp1);
17840 ecode2 = SWIG_AsVal_int(obj1, &val2);
17841 if (!SWIG_IsOK(ecode2)) {
17842 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetValue" "', expected argument " "2"" of type '" "int""'");
17843 }
17844 arg2 = static_cast< int >(val2);
17845 {
17846 PyThreadState* __tstate = wxPyBeginAllowThreads();
17847 (arg1)->SetValue(arg2);
17848 wxPyEndAllowThreads(__tstate);
17849 if (PyErr_Occurred()) SWIG_fail;
17850 }
17851 resultobj = SWIG_Py_Void();
17852 return resultobj;
17853 fail:
17854 return NULL;
17855 }
17856
17857
17858 SWIGINTERN PyObject *_wrap_Slider_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17859 PyObject *resultobj = 0;
17860 wxSlider *arg1 = (wxSlider *) 0 ;
17861 int arg2 ;
17862 int arg3 ;
17863 void *argp1 = 0 ;
17864 int res1 = 0 ;
17865 int val2 ;
17866 int ecode2 = 0 ;
17867 int val3 ;
17868 int ecode3 = 0 ;
17869 PyObject * obj0 = 0 ;
17870 PyObject * obj1 = 0 ;
17871 PyObject * obj2 = 0 ;
17872 char * kwnames[] = {
17873 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
17874 };
17875
17876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17878 if (!SWIG_IsOK(res1)) {
17879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetRange" "', expected argument " "1"" of type '" "wxSlider *""'");
17880 }
17881 arg1 = reinterpret_cast< wxSlider * >(argp1);
17882 ecode2 = SWIG_AsVal_int(obj1, &val2);
17883 if (!SWIG_IsOK(ecode2)) {
17884 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetRange" "', expected argument " "2"" of type '" "int""'");
17885 }
17886 arg2 = static_cast< int >(val2);
17887 ecode3 = SWIG_AsVal_int(obj2, &val3);
17888 if (!SWIG_IsOK(ecode3)) {
17889 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetRange" "', expected argument " "3"" of type '" "int""'");
17890 }
17891 arg3 = static_cast< int >(val3);
17892 {
17893 PyThreadState* __tstate = wxPyBeginAllowThreads();
17894 (arg1)->SetRange(arg2,arg3);
17895 wxPyEndAllowThreads(__tstate);
17896 if (PyErr_Occurred()) SWIG_fail;
17897 }
17898 resultobj = SWIG_Py_Void();
17899 return resultobj;
17900 fail:
17901 return NULL;
17902 }
17903
17904
17905 SWIGINTERN PyObject *_wrap_Slider_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17906 PyObject *resultobj = 0;
17907 wxSlider *arg1 = (wxSlider *) 0 ;
17908 int result;
17909 void *argp1 = 0 ;
17910 int res1 = 0 ;
17911 PyObject *swig_obj[1] ;
17912
17913 if (!args) SWIG_fail;
17914 swig_obj[0] = args;
17915 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17916 if (!SWIG_IsOK(res1)) {
17917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMin" "', expected argument " "1"" of type '" "wxSlider const *""'");
17918 }
17919 arg1 = reinterpret_cast< wxSlider * >(argp1);
17920 {
17921 PyThreadState* __tstate = wxPyBeginAllowThreads();
17922 result = (int)((wxSlider const *)arg1)->GetMin();
17923 wxPyEndAllowThreads(__tstate);
17924 if (PyErr_Occurred()) SWIG_fail;
17925 }
17926 resultobj = SWIG_From_int(static_cast< int >(result));
17927 return resultobj;
17928 fail:
17929 return NULL;
17930 }
17931
17932
17933 SWIGINTERN PyObject *_wrap_Slider_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17934 PyObject *resultobj = 0;
17935 wxSlider *arg1 = (wxSlider *) 0 ;
17936 int result;
17937 void *argp1 = 0 ;
17938 int res1 = 0 ;
17939 PyObject *swig_obj[1] ;
17940
17941 if (!args) SWIG_fail;
17942 swig_obj[0] = args;
17943 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17944 if (!SWIG_IsOK(res1)) {
17945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMax" "', expected argument " "1"" of type '" "wxSlider const *""'");
17946 }
17947 arg1 = reinterpret_cast< wxSlider * >(argp1);
17948 {
17949 PyThreadState* __tstate = wxPyBeginAllowThreads();
17950 result = (int)((wxSlider const *)arg1)->GetMax();
17951 wxPyEndAllowThreads(__tstate);
17952 if (PyErr_Occurred()) SWIG_fail;
17953 }
17954 resultobj = SWIG_From_int(static_cast< int >(result));
17955 return resultobj;
17956 fail:
17957 return NULL;
17958 }
17959
17960
17961 SWIGINTERN PyObject *_wrap_Slider_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17962 PyObject *resultobj = 0;
17963 wxSlider *arg1 = (wxSlider *) 0 ;
17964 int arg2 ;
17965 void *argp1 = 0 ;
17966 int res1 = 0 ;
17967 int val2 ;
17968 int ecode2 = 0 ;
17969 PyObject * obj0 = 0 ;
17970 PyObject * obj1 = 0 ;
17971 char * kwnames[] = {
17972 (char *) "self",(char *) "minValue", NULL
17973 };
17974
17975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
17976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17977 if (!SWIG_IsOK(res1)) {
17978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMin" "', expected argument " "1"" of type '" "wxSlider *""'");
17979 }
17980 arg1 = reinterpret_cast< wxSlider * >(argp1);
17981 ecode2 = SWIG_AsVal_int(obj1, &val2);
17982 if (!SWIG_IsOK(ecode2)) {
17983 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMin" "', expected argument " "2"" of type '" "int""'");
17984 }
17985 arg2 = static_cast< int >(val2);
17986 {
17987 PyThreadState* __tstate = wxPyBeginAllowThreads();
17988 (arg1)->SetMin(arg2);
17989 wxPyEndAllowThreads(__tstate);
17990 if (PyErr_Occurred()) SWIG_fail;
17991 }
17992 resultobj = SWIG_Py_Void();
17993 return resultobj;
17994 fail:
17995 return NULL;
17996 }
17997
17998
17999 SWIGINTERN PyObject *_wrap_Slider_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18000 PyObject *resultobj = 0;
18001 wxSlider *arg1 = (wxSlider *) 0 ;
18002 int arg2 ;
18003 void *argp1 = 0 ;
18004 int res1 = 0 ;
18005 int val2 ;
18006 int ecode2 = 0 ;
18007 PyObject * obj0 = 0 ;
18008 PyObject * obj1 = 0 ;
18009 char * kwnames[] = {
18010 (char *) "self",(char *) "maxValue", NULL
18011 };
18012
18013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
18014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18015 if (!SWIG_IsOK(res1)) {
18016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMax" "', expected argument " "1"" of type '" "wxSlider *""'");
18017 }
18018 arg1 = reinterpret_cast< wxSlider * >(argp1);
18019 ecode2 = SWIG_AsVal_int(obj1, &val2);
18020 if (!SWIG_IsOK(ecode2)) {
18021 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMax" "', expected argument " "2"" of type '" "int""'");
18022 }
18023 arg2 = static_cast< int >(val2);
18024 {
18025 PyThreadState* __tstate = wxPyBeginAllowThreads();
18026 (arg1)->SetMax(arg2);
18027 wxPyEndAllowThreads(__tstate);
18028 if (PyErr_Occurred()) SWIG_fail;
18029 }
18030 resultobj = SWIG_Py_Void();
18031 return resultobj;
18032 fail:
18033 return NULL;
18034 }
18035
18036
18037 SWIGINTERN PyObject *_wrap_Slider_SetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18038 PyObject *resultobj = 0;
18039 wxSlider *arg1 = (wxSlider *) 0 ;
18040 int arg2 ;
18041 void *argp1 = 0 ;
18042 int res1 = 0 ;
18043 int val2 ;
18044 int ecode2 = 0 ;
18045 PyObject * obj0 = 0 ;
18046 PyObject * obj1 = 0 ;
18047 char * kwnames[] = {
18048 (char *) "self",(char *) "lineSize", NULL
18049 };
18050
18051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) SWIG_fail;
18052 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18053 if (!SWIG_IsOK(res1)) {
18054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetLineSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18055 }
18056 arg1 = reinterpret_cast< wxSlider * >(argp1);
18057 ecode2 = SWIG_AsVal_int(obj1, &val2);
18058 if (!SWIG_IsOK(ecode2)) {
18059 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetLineSize" "', expected argument " "2"" of type '" "int""'");
18060 }
18061 arg2 = static_cast< int >(val2);
18062 {
18063 PyThreadState* __tstate = wxPyBeginAllowThreads();
18064 (arg1)->SetLineSize(arg2);
18065 wxPyEndAllowThreads(__tstate);
18066 if (PyErr_Occurred()) SWIG_fail;
18067 }
18068 resultobj = SWIG_Py_Void();
18069 return resultobj;
18070 fail:
18071 return NULL;
18072 }
18073
18074
18075 SWIGINTERN PyObject *_wrap_Slider_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18076 PyObject *resultobj = 0;
18077 wxSlider *arg1 = (wxSlider *) 0 ;
18078 int arg2 ;
18079 void *argp1 = 0 ;
18080 int res1 = 0 ;
18081 int val2 ;
18082 int ecode2 = 0 ;
18083 PyObject * obj0 = 0 ;
18084 PyObject * obj1 = 0 ;
18085 char * kwnames[] = {
18086 (char *) "self",(char *) "pageSize", NULL
18087 };
18088
18089 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
18090 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18091 if (!SWIG_IsOK(res1)) {
18092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetPageSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18093 }
18094 arg1 = reinterpret_cast< wxSlider * >(argp1);
18095 ecode2 = SWIG_AsVal_int(obj1, &val2);
18096 if (!SWIG_IsOK(ecode2)) {
18097 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetPageSize" "', expected argument " "2"" of type '" "int""'");
18098 }
18099 arg2 = static_cast< int >(val2);
18100 {
18101 PyThreadState* __tstate = wxPyBeginAllowThreads();
18102 (arg1)->SetPageSize(arg2);
18103 wxPyEndAllowThreads(__tstate);
18104 if (PyErr_Occurred()) SWIG_fail;
18105 }
18106 resultobj = SWIG_Py_Void();
18107 return resultobj;
18108 fail:
18109 return NULL;
18110 }
18111
18112
18113 SWIGINTERN PyObject *_wrap_Slider_GetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18114 PyObject *resultobj = 0;
18115 wxSlider *arg1 = (wxSlider *) 0 ;
18116 int result;
18117 void *argp1 = 0 ;
18118 int res1 = 0 ;
18119 PyObject *swig_obj[1] ;
18120
18121 if (!args) SWIG_fail;
18122 swig_obj[0] = args;
18123 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18124 if (!SWIG_IsOK(res1)) {
18125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetLineSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18126 }
18127 arg1 = reinterpret_cast< wxSlider * >(argp1);
18128 {
18129 PyThreadState* __tstate = wxPyBeginAllowThreads();
18130 result = (int)((wxSlider const *)arg1)->GetLineSize();
18131 wxPyEndAllowThreads(__tstate);
18132 if (PyErr_Occurred()) SWIG_fail;
18133 }
18134 resultobj = SWIG_From_int(static_cast< int >(result));
18135 return resultobj;
18136 fail:
18137 return NULL;
18138 }
18139
18140
18141 SWIGINTERN PyObject *_wrap_Slider_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18142 PyObject *resultobj = 0;
18143 wxSlider *arg1 = (wxSlider *) 0 ;
18144 int result;
18145 void *argp1 = 0 ;
18146 int res1 = 0 ;
18147 PyObject *swig_obj[1] ;
18148
18149 if (!args) SWIG_fail;
18150 swig_obj[0] = args;
18151 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18152 if (!SWIG_IsOK(res1)) {
18153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetPageSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18154 }
18155 arg1 = reinterpret_cast< wxSlider * >(argp1);
18156 {
18157 PyThreadState* __tstate = wxPyBeginAllowThreads();
18158 result = (int)((wxSlider const *)arg1)->GetPageSize();
18159 wxPyEndAllowThreads(__tstate);
18160 if (PyErr_Occurred()) SWIG_fail;
18161 }
18162 resultobj = SWIG_From_int(static_cast< int >(result));
18163 return resultobj;
18164 fail:
18165 return NULL;
18166 }
18167
18168
18169 SWIGINTERN PyObject *_wrap_Slider_SetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18170 PyObject *resultobj = 0;
18171 wxSlider *arg1 = (wxSlider *) 0 ;
18172 int arg2 ;
18173 void *argp1 = 0 ;
18174 int res1 = 0 ;
18175 int val2 ;
18176 int ecode2 = 0 ;
18177 PyObject * obj0 = 0 ;
18178 PyObject * obj1 = 0 ;
18179 char * kwnames[] = {
18180 (char *) "self",(char *) "lenPixels", NULL
18181 };
18182
18183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) SWIG_fail;
18184 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18185 if (!SWIG_IsOK(res1)) {
18186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetThumbLength" "', expected argument " "1"" of type '" "wxSlider *""'");
18187 }
18188 arg1 = reinterpret_cast< wxSlider * >(argp1);
18189 ecode2 = SWIG_AsVal_int(obj1, &val2);
18190 if (!SWIG_IsOK(ecode2)) {
18191 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetThumbLength" "', expected argument " "2"" of type '" "int""'");
18192 }
18193 arg2 = static_cast< int >(val2);
18194 {
18195 PyThreadState* __tstate = wxPyBeginAllowThreads();
18196 (arg1)->SetThumbLength(arg2);
18197 wxPyEndAllowThreads(__tstate);
18198 if (PyErr_Occurred()) SWIG_fail;
18199 }
18200 resultobj = SWIG_Py_Void();
18201 return resultobj;
18202 fail:
18203 return NULL;
18204 }
18205
18206
18207 SWIGINTERN PyObject *_wrap_Slider_GetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18208 PyObject *resultobj = 0;
18209 wxSlider *arg1 = (wxSlider *) 0 ;
18210 int result;
18211 void *argp1 = 0 ;
18212 int res1 = 0 ;
18213 PyObject *swig_obj[1] ;
18214
18215 if (!args) SWIG_fail;
18216 swig_obj[0] = args;
18217 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18218 if (!SWIG_IsOK(res1)) {
18219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetThumbLength" "', expected argument " "1"" of type '" "wxSlider const *""'");
18220 }
18221 arg1 = reinterpret_cast< wxSlider * >(argp1);
18222 {
18223 PyThreadState* __tstate = wxPyBeginAllowThreads();
18224 result = (int)((wxSlider const *)arg1)->GetThumbLength();
18225 wxPyEndAllowThreads(__tstate);
18226 if (PyErr_Occurred()) SWIG_fail;
18227 }
18228 resultobj = SWIG_From_int(static_cast< int >(result));
18229 return resultobj;
18230 fail:
18231 return NULL;
18232 }
18233
18234
18235 SWIGINTERN PyObject *_wrap_Slider_SetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18236 PyObject *resultobj = 0;
18237 wxSlider *arg1 = (wxSlider *) 0 ;
18238 int arg2 ;
18239 int arg3 = (int) 1 ;
18240 void *argp1 = 0 ;
18241 int res1 = 0 ;
18242 int val2 ;
18243 int ecode2 = 0 ;
18244 int val3 ;
18245 int ecode3 = 0 ;
18246 PyObject * obj0 = 0 ;
18247 PyObject * obj1 = 0 ;
18248 PyObject * obj2 = 0 ;
18249 char * kwnames[] = {
18250 (char *) "self",(char *) "n",(char *) "pos", NULL
18251 };
18252
18253 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18254 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18255 if (!SWIG_IsOK(res1)) {
18256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTickFreq" "', expected argument " "1"" of type '" "wxSlider *""'");
18257 }
18258 arg1 = reinterpret_cast< wxSlider * >(argp1);
18259 ecode2 = SWIG_AsVal_int(obj1, &val2);
18260 if (!SWIG_IsOK(ecode2)) {
18261 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTickFreq" "', expected argument " "2"" of type '" "int""'");
18262 }
18263 arg2 = static_cast< int >(val2);
18264 if (obj2) {
18265 ecode3 = SWIG_AsVal_int(obj2, &val3);
18266 if (!SWIG_IsOK(ecode3)) {
18267 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetTickFreq" "', expected argument " "3"" of type '" "int""'");
18268 }
18269 arg3 = static_cast< int >(val3);
18270 }
18271 {
18272 PyThreadState* __tstate = wxPyBeginAllowThreads();
18273 (arg1)->SetTickFreq(arg2,arg3);
18274 wxPyEndAllowThreads(__tstate);
18275 if (PyErr_Occurred()) SWIG_fail;
18276 }
18277 resultobj = SWIG_Py_Void();
18278 return resultobj;
18279 fail:
18280 return NULL;
18281 }
18282
18283
18284 SWIGINTERN PyObject *_wrap_Slider_GetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18285 PyObject *resultobj = 0;
18286 wxSlider *arg1 = (wxSlider *) 0 ;
18287 int result;
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_GetTickFreq" "', expected argument " "1"" of type '" "wxSlider const *""'");
18297 }
18298 arg1 = reinterpret_cast< wxSlider * >(argp1);
18299 {
18300 PyThreadState* __tstate = wxPyBeginAllowThreads();
18301 result = (int)((wxSlider const *)arg1)->GetTickFreq();
18302 wxPyEndAllowThreads(__tstate);
18303 if (PyErr_Occurred()) SWIG_fail;
18304 }
18305 resultobj = SWIG_From_int(static_cast< int >(result));
18306 return resultobj;
18307 fail:
18308 return NULL;
18309 }
18310
18311
18312 SWIGINTERN PyObject *_wrap_Slider_ClearTicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18313 PyObject *resultobj = 0;
18314 wxSlider *arg1 = (wxSlider *) 0 ;
18315 void *argp1 = 0 ;
18316 int res1 = 0 ;
18317 PyObject *swig_obj[1] ;
18318
18319 if (!args) SWIG_fail;
18320 swig_obj[0] = args;
18321 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18322 if (!SWIG_IsOK(res1)) {
18323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearTicks" "', expected argument " "1"" of type '" "wxSlider *""'");
18324 }
18325 arg1 = reinterpret_cast< wxSlider * >(argp1);
18326 {
18327 PyThreadState* __tstate = wxPyBeginAllowThreads();
18328 (arg1)->ClearTicks();
18329 wxPyEndAllowThreads(__tstate);
18330 if (PyErr_Occurred()) SWIG_fail;
18331 }
18332 resultobj = SWIG_Py_Void();
18333 return resultobj;
18334 fail:
18335 return NULL;
18336 }
18337
18338
18339 SWIGINTERN PyObject *_wrap_Slider_SetTick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18340 PyObject *resultobj = 0;
18341 wxSlider *arg1 = (wxSlider *) 0 ;
18342 int arg2 ;
18343 void *argp1 = 0 ;
18344 int res1 = 0 ;
18345 int val2 ;
18346 int ecode2 = 0 ;
18347 PyObject * obj0 = 0 ;
18348 PyObject * obj1 = 0 ;
18349 char * kwnames[] = {
18350 (char *) "self",(char *) "tickPos", NULL
18351 };
18352
18353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) SWIG_fail;
18354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18355 if (!SWIG_IsOK(res1)) {
18356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTick" "', expected argument " "1"" of type '" "wxSlider *""'");
18357 }
18358 arg1 = reinterpret_cast< wxSlider * >(argp1);
18359 ecode2 = SWIG_AsVal_int(obj1, &val2);
18360 if (!SWIG_IsOK(ecode2)) {
18361 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTick" "', expected argument " "2"" of type '" "int""'");
18362 }
18363 arg2 = static_cast< int >(val2);
18364 {
18365 PyThreadState* __tstate = wxPyBeginAllowThreads();
18366 (arg1)->SetTick(arg2);
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_ClearSel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18378 PyObject *resultobj = 0;
18379 wxSlider *arg1 = (wxSlider *) 0 ;
18380 void *argp1 = 0 ;
18381 int res1 = 0 ;
18382 PyObject *swig_obj[1] ;
18383
18384 if (!args) SWIG_fail;
18385 swig_obj[0] = args;
18386 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18387 if (!SWIG_IsOK(res1)) {
18388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearSel" "', expected argument " "1"" of type '" "wxSlider *""'");
18389 }
18390 arg1 = reinterpret_cast< wxSlider * >(argp1);
18391 {
18392 PyThreadState* __tstate = wxPyBeginAllowThreads();
18393 (arg1)->ClearSel();
18394 wxPyEndAllowThreads(__tstate);
18395 if (PyErr_Occurred()) SWIG_fail;
18396 }
18397 resultobj = SWIG_Py_Void();
18398 return resultobj;
18399 fail:
18400 return NULL;
18401 }
18402
18403
18404 SWIGINTERN PyObject *_wrap_Slider_GetSelEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18405 PyObject *resultobj = 0;
18406 wxSlider *arg1 = (wxSlider *) 0 ;
18407 int result;
18408 void *argp1 = 0 ;
18409 int res1 = 0 ;
18410 PyObject *swig_obj[1] ;
18411
18412 if (!args) SWIG_fail;
18413 swig_obj[0] = args;
18414 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18415 if (!SWIG_IsOK(res1)) {
18416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelEnd" "', expected argument " "1"" of type '" "wxSlider const *""'");
18417 }
18418 arg1 = reinterpret_cast< wxSlider * >(argp1);
18419 {
18420 PyThreadState* __tstate = wxPyBeginAllowThreads();
18421 result = (int)((wxSlider const *)arg1)->GetSelEnd();
18422 wxPyEndAllowThreads(__tstate);
18423 if (PyErr_Occurred()) SWIG_fail;
18424 }
18425 resultobj = SWIG_From_int(static_cast< int >(result));
18426 return resultobj;
18427 fail:
18428 return NULL;
18429 }
18430
18431
18432 SWIGINTERN PyObject *_wrap_Slider_GetSelStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18433 PyObject *resultobj = 0;
18434 wxSlider *arg1 = (wxSlider *) 0 ;
18435 int result;
18436 void *argp1 = 0 ;
18437 int res1 = 0 ;
18438 PyObject *swig_obj[1] ;
18439
18440 if (!args) SWIG_fail;
18441 swig_obj[0] = args;
18442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18443 if (!SWIG_IsOK(res1)) {
18444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelStart" "', expected argument " "1"" of type '" "wxSlider const *""'");
18445 }
18446 arg1 = reinterpret_cast< wxSlider * >(argp1);
18447 {
18448 PyThreadState* __tstate = wxPyBeginAllowThreads();
18449 result = (int)((wxSlider const *)arg1)->GetSelStart();
18450 wxPyEndAllowThreads(__tstate);
18451 if (PyErr_Occurred()) SWIG_fail;
18452 }
18453 resultobj = SWIG_From_int(static_cast< int >(result));
18454 return resultobj;
18455 fail:
18456 return NULL;
18457 }
18458
18459
18460 SWIGINTERN PyObject *_wrap_Slider_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18461 PyObject *resultobj = 0;
18462 wxSlider *arg1 = (wxSlider *) 0 ;
18463 int arg2 ;
18464 int arg3 ;
18465 void *argp1 = 0 ;
18466 int res1 = 0 ;
18467 int val2 ;
18468 int ecode2 = 0 ;
18469 int val3 ;
18470 int ecode3 = 0 ;
18471 PyObject * obj0 = 0 ;
18472 PyObject * obj1 = 0 ;
18473 PyObject * obj2 = 0 ;
18474 char * kwnames[] = {
18475 (char *) "self",(char *) "min",(char *) "max", NULL
18476 };
18477
18478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18480 if (!SWIG_IsOK(res1)) {
18481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetSelection" "', expected argument " "1"" of type '" "wxSlider *""'");
18482 }
18483 arg1 = reinterpret_cast< wxSlider * >(argp1);
18484 ecode2 = SWIG_AsVal_int(obj1, &val2);
18485 if (!SWIG_IsOK(ecode2)) {
18486 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetSelection" "', expected argument " "2"" of type '" "int""'");
18487 }
18488 arg2 = static_cast< int >(val2);
18489 ecode3 = SWIG_AsVal_int(obj2, &val3);
18490 if (!SWIG_IsOK(ecode3)) {
18491 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetSelection" "', expected argument " "3"" of type '" "int""'");
18492 }
18493 arg3 = static_cast< int >(val3);
18494 {
18495 PyThreadState* __tstate = wxPyBeginAllowThreads();
18496 (arg1)->SetSelection(arg2,arg3);
18497 wxPyEndAllowThreads(__tstate);
18498 if (PyErr_Occurred()) SWIG_fail;
18499 }
18500 resultobj = SWIG_Py_Void();
18501 return resultobj;
18502 fail:
18503 return NULL;
18504 }
18505
18506
18507 SWIGINTERN PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18508 PyObject *resultobj = 0;
18509 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18510 SwigValueWrapper<wxVisualAttributes > result;
18511 int val1 ;
18512 int ecode1 = 0 ;
18513 PyObject * obj0 = 0 ;
18514 char * kwnames[] = {
18515 (char *) "variant", NULL
18516 };
18517
18518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18519 if (obj0) {
18520 ecode1 = SWIG_AsVal_int(obj0, &val1);
18521 if (!SWIG_IsOK(ecode1)) {
18522 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Slider_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18523 }
18524 arg1 = static_cast< wxWindowVariant >(val1);
18525 }
18526 {
18527 if (!wxPyCheckForApp()) SWIG_fail;
18528 PyThreadState* __tstate = wxPyBeginAllowThreads();
18529 result = wxSlider::GetClassDefaultAttributes(arg1);
18530 wxPyEndAllowThreads(__tstate);
18531 if (PyErr_Occurred()) SWIG_fail;
18532 }
18533 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18534 return resultobj;
18535 fail:
18536 return NULL;
18537 }
18538
18539
18540 SWIGINTERN PyObject *Slider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18541 PyObject *obj;
18542 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18543 SWIG_TypeNewClientData(SWIGTYPE_p_wxSlider, SWIG_NewClientData(obj));
18544 return SWIG_Py_Void();
18545 }
18546
18547 SWIGINTERN PyObject *Slider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18548 return SWIG_Python_InitShadowInstance(args);
18549 }
18550
18551 SWIGINTERN int ToggleButtonNameStr_set(PyObject *) {
18552 SWIG_Error(SWIG_AttributeError,"Variable ToggleButtonNameStr is read-only.");
18553 return 1;
18554 }
18555
18556
18557 SWIGINTERN PyObject *ToggleButtonNameStr_get(void) {
18558 PyObject *pyobj = 0;
18559
18560 {
18561 #if wxUSE_UNICODE
18562 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18563 #else
18564 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18565 #endif
18566 }
18567 return pyobj;
18568 }
18569
18570
18571 SWIGINTERN PyObject *_wrap_new_ToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18572 PyObject *resultobj = 0;
18573 wxWindow *arg1 = (wxWindow *) 0 ;
18574 int arg2 = (int) -1 ;
18575 wxString const &arg3_defvalue = wxPyEmptyString ;
18576 wxString *arg3 = (wxString *) &arg3_defvalue ;
18577 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18578 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18579 wxSize const &arg5_defvalue = wxDefaultSize ;
18580 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18581 long arg6 = (long) 0 ;
18582 wxValidator const &arg7_defvalue = wxDefaultValidator ;
18583 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
18584 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
18585 wxString *arg8 = (wxString *) &arg8_defvalue ;
18586 wxToggleButton *result = 0 ;
18587 void *argp1 = 0 ;
18588 int res1 = 0 ;
18589 int val2 ;
18590 int ecode2 = 0 ;
18591 bool temp3 = false ;
18592 wxPoint temp4 ;
18593 wxSize temp5 ;
18594 long val6 ;
18595 int ecode6 = 0 ;
18596 void *argp7 = 0 ;
18597 int res7 = 0 ;
18598 bool temp8 = false ;
18599 PyObject * obj0 = 0 ;
18600 PyObject * obj1 = 0 ;
18601 PyObject * obj2 = 0 ;
18602 PyObject * obj3 = 0 ;
18603 PyObject * obj4 = 0 ;
18604 PyObject * obj5 = 0 ;
18605 PyObject * obj6 = 0 ;
18606 PyObject * obj7 = 0 ;
18607 char * kwnames[] = {
18608 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18609 };
18610
18611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
18612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
18613 if (!SWIG_IsOK(res1)) {
18614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToggleButton" "', expected argument " "1"" of type '" "wxWindow *""'");
18615 }
18616 arg1 = reinterpret_cast< wxWindow * >(argp1);
18617 if (obj1) {
18618 ecode2 = SWIG_AsVal_int(obj1, &val2);
18619 if (!SWIG_IsOK(ecode2)) {
18620 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToggleButton" "', expected argument " "2"" of type '" "int""'");
18621 }
18622 arg2 = static_cast< int >(val2);
18623 }
18624 if (obj2) {
18625 {
18626 arg3 = wxString_in_helper(obj2);
18627 if (arg3 == NULL) SWIG_fail;
18628 temp3 = true;
18629 }
18630 }
18631 if (obj3) {
18632 {
18633 arg4 = &temp4;
18634 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18635 }
18636 }
18637 if (obj4) {
18638 {
18639 arg5 = &temp5;
18640 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
18641 }
18642 }
18643 if (obj5) {
18644 ecode6 = SWIG_AsVal_long(obj5, &val6);
18645 if (!SWIG_IsOK(ecode6)) {
18646 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ToggleButton" "', expected argument " "6"" of type '" "long""'");
18647 }
18648 arg6 = static_cast< long >(val6);
18649 }
18650 if (obj6) {
18651 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
18652 if (!SWIG_IsOK(res7)) {
18653 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
18654 }
18655 if (!argp7) {
18656 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
18657 }
18658 arg7 = reinterpret_cast< wxValidator * >(argp7);
18659 }
18660 if (obj7) {
18661 {
18662 arg8 = wxString_in_helper(obj7);
18663 if (arg8 == NULL) SWIG_fail;
18664 temp8 = true;
18665 }
18666 }
18667 {
18668 if (!wxPyCheckForApp()) SWIG_fail;
18669 PyThreadState* __tstate = wxPyBeginAllowThreads();
18670 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
18671 wxPyEndAllowThreads(__tstate);
18672 if (PyErr_Occurred()) SWIG_fail;
18673 }
18674 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_NEW | 0 );
18675 {
18676 if (temp3)
18677 delete arg3;
18678 }
18679 {
18680 if (temp8)
18681 delete arg8;
18682 }
18683 return resultobj;
18684 fail:
18685 {
18686 if (temp3)
18687 delete arg3;
18688 }
18689 {
18690 if (temp8)
18691 delete arg8;
18692 }
18693 return NULL;
18694 }
18695
18696
18697 SWIGINTERN PyObject *_wrap_new_PreToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18698 PyObject *resultobj = 0;
18699 wxToggleButton *result = 0 ;
18700
18701 if (!SWIG_Python_UnpackTuple(args,"new_PreToggleButton",0,0,0)) SWIG_fail;
18702 {
18703 if (!wxPyCheckForApp()) SWIG_fail;
18704 PyThreadState* __tstate = wxPyBeginAllowThreads();
18705 result = (wxToggleButton *)new wxToggleButton();
18706 wxPyEndAllowThreads(__tstate);
18707 if (PyErr_Occurred()) SWIG_fail;
18708 }
18709 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_OWN | 0 );
18710 return resultobj;
18711 fail:
18712 return NULL;
18713 }
18714
18715
18716 SWIGINTERN PyObject *_wrap_ToggleButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18717 PyObject *resultobj = 0;
18718 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18719 wxWindow *arg2 = (wxWindow *) 0 ;
18720 int arg3 = (int) -1 ;
18721 wxString const &arg4_defvalue = wxPyEmptyString ;
18722 wxString *arg4 = (wxString *) &arg4_defvalue ;
18723 wxPoint const &arg5_defvalue = wxDefaultPosition ;
18724 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
18725 wxSize const &arg6_defvalue = wxDefaultSize ;
18726 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
18727 long arg7 = (long) 0 ;
18728 wxValidator const &arg8_defvalue = wxDefaultValidator ;
18729 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
18730 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
18731 wxString *arg9 = (wxString *) &arg9_defvalue ;
18732 bool result;
18733 void *argp1 = 0 ;
18734 int res1 = 0 ;
18735 void *argp2 = 0 ;
18736 int res2 = 0 ;
18737 int val3 ;
18738 int ecode3 = 0 ;
18739 bool temp4 = false ;
18740 wxPoint temp5 ;
18741 wxSize temp6 ;
18742 long val7 ;
18743 int ecode7 = 0 ;
18744 void *argp8 = 0 ;
18745 int res8 = 0 ;
18746 bool temp9 = false ;
18747 PyObject * obj0 = 0 ;
18748 PyObject * obj1 = 0 ;
18749 PyObject * obj2 = 0 ;
18750 PyObject * obj3 = 0 ;
18751 PyObject * obj4 = 0 ;
18752 PyObject * obj5 = 0 ;
18753 PyObject * obj6 = 0 ;
18754 PyObject * obj7 = 0 ;
18755 PyObject * obj8 = 0 ;
18756 char * kwnames[] = {
18757 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18758 };
18759
18760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
18761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18762 if (!SWIG_IsOK(res1)) {
18763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_Create" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18764 }
18765 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18766 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
18767 if (!SWIG_IsOK(res2)) {
18768 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToggleButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
18769 }
18770 arg2 = reinterpret_cast< wxWindow * >(argp2);
18771 if (obj2) {
18772 ecode3 = SWIG_AsVal_int(obj2, &val3);
18773 if (!SWIG_IsOK(ecode3)) {
18774 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToggleButton_Create" "', expected argument " "3"" of type '" "int""'");
18775 }
18776 arg3 = static_cast< int >(val3);
18777 }
18778 if (obj3) {
18779 {
18780 arg4 = wxString_in_helper(obj3);
18781 if (arg4 == NULL) SWIG_fail;
18782 temp4 = true;
18783 }
18784 }
18785 if (obj4) {
18786 {
18787 arg5 = &temp5;
18788 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
18789 }
18790 }
18791 if (obj5) {
18792 {
18793 arg6 = &temp6;
18794 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
18795 }
18796 }
18797 if (obj6) {
18798 ecode7 = SWIG_AsVal_long(obj6, &val7);
18799 if (!SWIG_IsOK(ecode7)) {
18800 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToggleButton_Create" "', expected argument " "7"" of type '" "long""'");
18801 }
18802 arg7 = static_cast< long >(val7);
18803 }
18804 if (obj7) {
18805 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
18806 if (!SWIG_IsOK(res8)) {
18807 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
18808 }
18809 if (!argp8) {
18810 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
18811 }
18812 arg8 = reinterpret_cast< wxValidator * >(argp8);
18813 }
18814 if (obj8) {
18815 {
18816 arg9 = wxString_in_helper(obj8);
18817 if (arg9 == NULL) SWIG_fail;
18818 temp9 = true;
18819 }
18820 }
18821 {
18822 PyThreadState* __tstate = wxPyBeginAllowThreads();
18823 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
18824 wxPyEndAllowThreads(__tstate);
18825 if (PyErr_Occurred()) SWIG_fail;
18826 }
18827 {
18828 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18829 }
18830 {
18831 if (temp4)
18832 delete arg4;
18833 }
18834 {
18835 if (temp9)
18836 delete arg9;
18837 }
18838 return resultobj;
18839 fail:
18840 {
18841 if (temp4)
18842 delete arg4;
18843 }
18844 {
18845 if (temp9)
18846 delete arg9;
18847 }
18848 return NULL;
18849 }
18850
18851
18852 SWIGINTERN PyObject *_wrap_ToggleButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18853 PyObject *resultobj = 0;
18854 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18855 bool arg2 ;
18856 void *argp1 = 0 ;
18857 int res1 = 0 ;
18858 bool val2 ;
18859 int ecode2 = 0 ;
18860 PyObject * obj0 = 0 ;
18861 PyObject * obj1 = 0 ;
18862 char * kwnames[] = {
18863 (char *) "self",(char *) "value", NULL
18864 };
18865
18866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
18867 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18868 if (!SWIG_IsOK(res1)) {
18869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_SetValue" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18870 }
18871 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18872 ecode2 = SWIG_AsVal_bool(obj1, &val2);
18873 if (!SWIG_IsOK(ecode2)) {
18874 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToggleButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
18875 }
18876 arg2 = static_cast< bool >(val2);
18877 {
18878 PyThreadState* __tstate = wxPyBeginAllowThreads();
18879 (arg1)->SetValue(arg2);
18880 wxPyEndAllowThreads(__tstate);
18881 if (PyErr_Occurred()) SWIG_fail;
18882 }
18883 resultobj = SWIG_Py_Void();
18884 return resultobj;
18885 fail:
18886 return NULL;
18887 }
18888
18889
18890 SWIGINTERN PyObject *_wrap_ToggleButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18891 PyObject *resultobj = 0;
18892 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18893 bool result;
18894 void *argp1 = 0 ;
18895 int res1 = 0 ;
18896 PyObject *swig_obj[1] ;
18897
18898 if (!args) SWIG_fail;
18899 swig_obj[0] = args;
18900 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18901 if (!SWIG_IsOK(res1)) {
18902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_GetValue" "', expected argument " "1"" of type '" "wxToggleButton const *""'");
18903 }
18904 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18905 {
18906 PyThreadState* __tstate = wxPyBeginAllowThreads();
18907 result = (bool)((wxToggleButton const *)arg1)->GetValue();
18908 wxPyEndAllowThreads(__tstate);
18909 if (PyErr_Occurred()) SWIG_fail;
18910 }
18911 {
18912 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18913 }
18914 return resultobj;
18915 fail:
18916 return NULL;
18917 }
18918
18919
18920 SWIGINTERN PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18921 PyObject *resultobj = 0;
18922 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18923 SwigValueWrapper<wxVisualAttributes > result;
18924 int val1 ;
18925 int ecode1 = 0 ;
18926 PyObject * obj0 = 0 ;
18927 char * kwnames[] = {
18928 (char *) "variant", NULL
18929 };
18930
18931 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18932 if (obj0) {
18933 ecode1 = SWIG_AsVal_int(obj0, &val1);
18934 if (!SWIG_IsOK(ecode1)) {
18935 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToggleButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18936 }
18937 arg1 = static_cast< wxWindowVariant >(val1);
18938 }
18939 {
18940 if (!wxPyCheckForApp()) SWIG_fail;
18941 PyThreadState* __tstate = wxPyBeginAllowThreads();
18942 result = wxToggleButton::GetClassDefaultAttributes(arg1);
18943 wxPyEndAllowThreads(__tstate);
18944 if (PyErr_Occurred()) SWIG_fail;
18945 }
18946 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18947 return resultobj;
18948 fail:
18949 return NULL;
18950 }
18951
18952
18953 SWIGINTERN PyObject *ToggleButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18954 PyObject *obj;
18955 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18956 SWIG_TypeNewClientData(SWIGTYPE_p_wxToggleButton, SWIG_NewClientData(obj));
18957 return SWIG_Py_Void();
18958 }
18959
18960 SWIGINTERN PyObject *ToggleButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18961 return SWIG_Python_InitShadowInstance(args);
18962 }
18963
18964 SWIGINTERN int NotebookNameStr_set(PyObject *) {
18965 SWIG_Error(SWIG_AttributeError,"Variable NotebookNameStr is read-only.");
18966 return 1;
18967 }
18968
18969
18970 SWIGINTERN PyObject *NotebookNameStr_get(void) {
18971 PyObject *pyobj = 0;
18972
18973 {
18974 #if wxUSE_UNICODE
18975 pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
18976 #else
18977 pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
18978 #endif
18979 }
18980 return pyobj;
18981 }
18982
18983
18984 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18985 PyObject *resultobj = 0;
18986 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18987 size_t result;
18988 void *argp1 = 0 ;
18989 int res1 = 0 ;
18990 PyObject *swig_obj[1] ;
18991
18992 if (!args) SWIG_fail;
18993 swig_obj[0] = args;
18994 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18995 if (!SWIG_IsOK(res1)) {
18996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageCount" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
18997 }
18998 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18999 {
19000 PyThreadState* __tstate = wxPyBeginAllowThreads();
19001 result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount();
19002 wxPyEndAllowThreads(__tstate);
19003 if (PyErr_Occurred()) SWIG_fail;
19004 }
19005 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
19006 return resultobj;
19007 fail:
19008 return NULL;
19009 }
19010
19011
19012 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19013 PyObject *resultobj = 0;
19014 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19015 size_t arg2 ;
19016 wxWindow *result = 0 ;
19017 void *argp1 = 0 ;
19018 int res1 = 0 ;
19019 size_t val2 ;
19020 int ecode2 = 0 ;
19021 PyObject * obj0 = 0 ;
19022 PyObject * obj1 = 0 ;
19023 char * kwnames[] = {
19024 (char *) "self",(char *) "n", NULL
19025 };
19026
19027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) SWIG_fail;
19028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19029 if (!SWIG_IsOK(res1)) {
19030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19031 }
19032 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19033 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19034 if (!SWIG_IsOK(ecode2)) {
19035 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPage" "', expected argument " "2"" of type '" "size_t""'");
19036 }
19037 arg2 = static_cast< size_t >(val2);
19038 {
19039 PyThreadState* __tstate = wxPyBeginAllowThreads();
19040 result = (wxWindow *)(arg1)->GetPage(arg2);
19041 wxPyEndAllowThreads(__tstate);
19042 if (PyErr_Occurred()) SWIG_fail;
19043 }
19044 {
19045 resultobj = wxPyMake_wxObject(result, 0);
19046 }
19047 return resultobj;
19048 fail:
19049 return NULL;
19050 }
19051
19052
19053 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19054 PyObject *resultobj = 0;
19055 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19056 wxWindow *result = 0 ;
19057 void *argp1 = 0 ;
19058 int res1 = 0 ;
19059 PyObject *swig_obj[1] ;
19060
19061 if (!args) SWIG_fail;
19062 swig_obj[0] = args;
19063 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19064 if (!SWIG_IsOK(res1)) {
19065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19066 }
19067 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19068 {
19069 PyThreadState* __tstate = wxPyBeginAllowThreads();
19070 result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage();
19071 wxPyEndAllowThreads(__tstate);
19072 if (PyErr_Occurred()) SWIG_fail;
19073 }
19074 {
19075 resultobj = wxPyMake_wxObject(result, 0);
19076 }
19077 return resultobj;
19078 fail:
19079 return NULL;
19080 }
19081
19082
19083 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19084 PyObject *resultobj = 0;
19085 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19086 int result;
19087 void *argp1 = 0 ;
19088 int res1 = 0 ;
19089 PyObject *swig_obj[1] ;
19090
19091 if (!args) SWIG_fail;
19092 swig_obj[0] = args;
19093 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19094 if (!SWIG_IsOK(res1)) {
19095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19096 }
19097 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19098 {
19099 PyThreadState* __tstate = wxPyBeginAllowThreads();
19100 result = (int)((wxBookCtrlBase const *)arg1)->GetSelection();
19101 wxPyEndAllowThreads(__tstate);
19102 if (PyErr_Occurred()) SWIG_fail;
19103 }
19104 resultobj = SWIG_From_int(static_cast< int >(result));
19105 return resultobj;
19106 fail:
19107 return NULL;
19108 }
19109
19110
19111 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19112 PyObject *resultobj = 0;
19113 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19114 size_t arg2 ;
19115 wxString *arg3 = 0 ;
19116 bool result;
19117 void *argp1 = 0 ;
19118 int res1 = 0 ;
19119 size_t val2 ;
19120 int ecode2 = 0 ;
19121 bool temp3 = false ;
19122 PyObject * obj0 = 0 ;
19123 PyObject * obj1 = 0 ;
19124 PyObject * obj2 = 0 ;
19125 char * kwnames[] = {
19126 (char *) "self",(char *) "n",(char *) "strText", NULL
19127 };
19128
19129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19131 if (!SWIG_IsOK(res1)) {
19132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19133 }
19134 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19135 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19136 if (!SWIG_IsOK(ecode2)) {
19137 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "2"" of type '" "size_t""'");
19138 }
19139 arg2 = static_cast< size_t >(val2);
19140 {
19141 arg3 = wxString_in_helper(obj2);
19142 if (arg3 == NULL) SWIG_fail;
19143 temp3 = true;
19144 }
19145 {
19146 PyThreadState* __tstate = wxPyBeginAllowThreads();
19147 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
19148 wxPyEndAllowThreads(__tstate);
19149 if (PyErr_Occurred()) SWIG_fail;
19150 }
19151 {
19152 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19153 }
19154 {
19155 if (temp3)
19156 delete arg3;
19157 }
19158 return resultobj;
19159 fail:
19160 {
19161 if (temp3)
19162 delete arg3;
19163 }
19164 return NULL;
19165 }
19166
19167
19168 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19169 PyObject *resultobj = 0;
19170 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19171 size_t arg2 ;
19172 wxString result;
19173 void *argp1 = 0 ;
19174 int res1 = 0 ;
19175 size_t val2 ;
19176 int ecode2 = 0 ;
19177 PyObject * obj0 = 0 ;
19178 PyObject * obj1 = 0 ;
19179 char * kwnames[] = {
19180 (char *) "self",(char *) "n", NULL
19181 };
19182
19183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) SWIG_fail;
19184 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19185 if (!SWIG_IsOK(res1)) {
19186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19187 }
19188 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19189 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19190 if (!SWIG_IsOK(ecode2)) {
19191 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "2"" of type '" "size_t""'");
19192 }
19193 arg2 = static_cast< size_t >(val2);
19194 {
19195 PyThreadState* __tstate = wxPyBeginAllowThreads();
19196 result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2);
19197 wxPyEndAllowThreads(__tstate);
19198 if (PyErr_Occurred()) SWIG_fail;
19199 }
19200 {
19201 #if wxUSE_UNICODE
19202 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19203 #else
19204 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19205 #endif
19206 }
19207 return resultobj;
19208 fail:
19209 return NULL;
19210 }
19211
19212
19213 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19214 PyObject *resultobj = 0;
19215 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19216 wxImageList *arg2 = (wxImageList *) 0 ;
19217 void *argp1 = 0 ;
19218 int res1 = 0 ;
19219 void *argp2 = 0 ;
19220 int res2 = 0 ;
19221 PyObject * obj0 = 0 ;
19222 PyObject * obj1 = 0 ;
19223 char * kwnames[] = {
19224 (char *) "self",(char *) "imageList", NULL
19225 };
19226
19227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19229 if (!SWIG_IsOK(res1)) {
19230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19231 }
19232 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19233 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
19234 if (!SWIG_IsOK(res2)) {
19235 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19236 }
19237 arg2 = reinterpret_cast< wxImageList * >(argp2);
19238 {
19239 PyThreadState* __tstate = wxPyBeginAllowThreads();
19240 (arg1)->SetImageList(arg2);
19241 wxPyEndAllowThreads(__tstate);
19242 if (PyErr_Occurred()) SWIG_fail;
19243 }
19244 resultobj = SWIG_Py_Void();
19245 return resultobj;
19246 fail:
19247 return NULL;
19248 }
19249
19250
19251 SWIGINTERN PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19252 PyObject *resultobj = 0;
19253 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19254 wxImageList *arg2 = (wxImageList *) 0 ;
19255 void *argp1 = 0 ;
19256 int res1 = 0 ;
19257 int res2 = 0 ;
19258 PyObject * obj0 = 0 ;
19259 PyObject * obj1 = 0 ;
19260 char * kwnames[] = {
19261 (char *) "self",(char *) "imageList", NULL
19262 };
19263
19264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19266 if (!SWIG_IsOK(res1)) {
19267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19268 }
19269 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19270 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
19271 if (!SWIG_IsOK(res2)) {
19272 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19273 }
19274 {
19275 PyThreadState* __tstate = wxPyBeginAllowThreads();
19276 (arg1)->AssignImageList(arg2);
19277 wxPyEndAllowThreads(__tstate);
19278 if (PyErr_Occurred()) SWIG_fail;
19279 }
19280 resultobj = SWIG_Py_Void();
19281 return resultobj;
19282 fail:
19283 return NULL;
19284 }
19285
19286
19287 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19288 PyObject *resultobj = 0;
19289 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19290 wxImageList *result = 0 ;
19291 void *argp1 = 0 ;
19292 int res1 = 0 ;
19293 PyObject *swig_obj[1] ;
19294
19295 if (!args) SWIG_fail;
19296 swig_obj[0] = args;
19297 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19298 if (!SWIG_IsOK(res1)) {
19299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19300 }
19301 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19302 {
19303 PyThreadState* __tstate = wxPyBeginAllowThreads();
19304 result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList();
19305 wxPyEndAllowThreads(__tstate);
19306 if (PyErr_Occurred()) SWIG_fail;
19307 }
19308 {
19309 resultobj = wxPyMake_wxObject(result, (bool)0);
19310 }
19311 return resultobj;
19312 fail:
19313 return NULL;
19314 }
19315
19316
19317 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19318 PyObject *resultobj = 0;
19319 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19320 size_t arg2 ;
19321 int result;
19322 void *argp1 = 0 ;
19323 int res1 = 0 ;
19324 size_t val2 ;
19325 int ecode2 = 0 ;
19326 PyObject * obj0 = 0 ;
19327 PyObject * obj1 = 0 ;
19328 char * kwnames[] = {
19329 (char *) "self",(char *) "n", NULL
19330 };
19331
19332 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) SWIG_fail;
19333 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19334 if (!SWIG_IsOK(res1)) {
19335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19336 }
19337 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19338 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19339 if (!SWIG_IsOK(ecode2)) {
19340 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19341 }
19342 arg2 = static_cast< size_t >(val2);
19343 {
19344 PyThreadState* __tstate = wxPyBeginAllowThreads();
19345 result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2);
19346 wxPyEndAllowThreads(__tstate);
19347 if (PyErr_Occurred()) SWIG_fail;
19348 }
19349 resultobj = SWIG_From_int(static_cast< int >(result));
19350 return resultobj;
19351 fail:
19352 return NULL;
19353 }
19354
19355
19356 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19357 PyObject *resultobj = 0;
19358 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19359 size_t arg2 ;
19360 int arg3 ;
19361 bool result;
19362 void *argp1 = 0 ;
19363 int res1 = 0 ;
19364 size_t val2 ;
19365 int ecode2 = 0 ;
19366 int val3 ;
19367 int ecode3 = 0 ;
19368 PyObject * obj0 = 0 ;
19369 PyObject * obj1 = 0 ;
19370 PyObject * obj2 = 0 ;
19371 char * kwnames[] = {
19372 (char *) "self",(char *) "n",(char *) "imageId", NULL
19373 };
19374
19375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19377 if (!SWIG_IsOK(res1)) {
19378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19379 }
19380 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19381 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19382 if (!SWIG_IsOK(ecode2)) {
19383 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19384 }
19385 arg2 = static_cast< size_t >(val2);
19386 ecode3 = SWIG_AsVal_int(obj2, &val3);
19387 if (!SWIG_IsOK(ecode3)) {
19388 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "3"" of type '" "int""'");
19389 }
19390 arg3 = static_cast< int >(val3);
19391 {
19392 PyThreadState* __tstate = wxPyBeginAllowThreads();
19393 result = (bool)(arg1)->SetPageImage(arg2,arg3);
19394 wxPyEndAllowThreads(__tstate);
19395 if (PyErr_Occurred()) SWIG_fail;
19396 }
19397 {
19398 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19399 }
19400 return resultobj;
19401 fail:
19402 return NULL;
19403 }
19404
19405
19406 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19407 PyObject *resultobj = 0;
19408 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19409 wxSize *arg2 = 0 ;
19410 void *argp1 = 0 ;
19411 int res1 = 0 ;
19412 wxSize temp2 ;
19413 PyObject * obj0 = 0 ;
19414 PyObject * obj1 = 0 ;
19415 char * kwnames[] = {
19416 (char *) "self",(char *) "size", NULL
19417 };
19418
19419 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
19420 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19421 if (!SWIG_IsOK(res1)) {
19422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageSize" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19423 }
19424 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19425 {
19426 arg2 = &temp2;
19427 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19428 }
19429 {
19430 PyThreadState* __tstate = wxPyBeginAllowThreads();
19431 (arg1)->SetPageSize((wxSize const &)*arg2);
19432 wxPyEndAllowThreads(__tstate);
19433 if (PyErr_Occurred()) SWIG_fail;
19434 }
19435 resultobj = SWIG_Py_Void();
19436 return resultobj;
19437 fail:
19438 return NULL;
19439 }
19440
19441
19442 SWIGINTERN PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19443 PyObject *resultobj = 0;
19444 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19445 wxSize *arg2 = 0 ;
19446 wxSize result;
19447 void *argp1 = 0 ;
19448 int res1 = 0 ;
19449 wxSize temp2 ;
19450 PyObject * obj0 = 0 ;
19451 PyObject * obj1 = 0 ;
19452 char * kwnames[] = {
19453 (char *) "self",(char *) "sizePage", NULL
19454 };
19455
19456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) SWIG_fail;
19457 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19458 if (!SWIG_IsOK(res1)) {
19459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_CalcSizeFromPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19460 }
19461 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19462 {
19463 arg2 = &temp2;
19464 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19465 }
19466 {
19467 PyThreadState* __tstate = wxPyBeginAllowThreads();
19468 result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
19469 wxPyEndAllowThreads(__tstate);
19470 if (PyErr_Occurred()) SWIG_fail;
19471 }
19472 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
19473 return resultobj;
19474 fail:
19475 return NULL;
19476 }
19477
19478
19479 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19480 PyObject *resultobj = 0;
19481 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19482 unsigned int result;
19483 void *argp1 = 0 ;
19484 int res1 = 0 ;
19485 PyObject *swig_obj[1] ;
19486
19487 if (!args) SWIG_fail;
19488 swig_obj[0] = args;
19489 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19490 if (!SWIG_IsOK(res1)) {
19491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19492 }
19493 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19494 {
19495 PyThreadState* __tstate = wxPyBeginAllowThreads();
19496 result = (unsigned int)((wxBookCtrlBase const *)arg1)->GetInternalBorder();
19497 wxPyEndAllowThreads(__tstate);
19498 if (PyErr_Occurred()) SWIG_fail;
19499 }
19500 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
19501 return resultobj;
19502 fail:
19503 return NULL;
19504 }
19505
19506
19507 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19508 PyObject *resultobj = 0;
19509 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19510 unsigned int arg2 ;
19511 void *argp1 = 0 ;
19512 int res1 = 0 ;
19513 unsigned int val2 ;
19514 int ecode2 = 0 ;
19515 PyObject * obj0 = 0 ;
19516 PyObject * obj1 = 0 ;
19517 char * kwnames[] = {
19518 (char *) "self",(char *) "internalBorder", NULL
19519 };
19520
19521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetInternalBorder",kwnames,&obj0,&obj1)) SWIG_fail;
19522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19523 if (!SWIG_IsOK(res1)) {
19524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19525 }
19526 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19527 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
19528 if (!SWIG_IsOK(ecode2)) {
19529 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "2"" of type '" "unsigned int""'");
19530 }
19531 arg2 = static_cast< unsigned int >(val2);
19532 {
19533 PyThreadState* __tstate = wxPyBeginAllowThreads();
19534 (arg1)->SetInternalBorder(arg2);
19535 wxPyEndAllowThreads(__tstate);
19536 if (PyErr_Occurred()) SWIG_fail;
19537 }
19538 resultobj = SWIG_Py_Void();
19539 return resultobj;
19540 fail:
19541 return NULL;
19542 }
19543
19544
19545 SWIGINTERN PyObject *_wrap_BookCtrlBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19546 PyObject *resultobj = 0;
19547 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19548 bool result;
19549 void *argp1 = 0 ;
19550 int res1 = 0 ;
19551 PyObject *swig_obj[1] ;
19552
19553 if (!args) SWIG_fail;
19554 swig_obj[0] = args;
19555 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19556 if (!SWIG_IsOK(res1)) {
19557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_IsVertical" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19558 }
19559 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19560 {
19561 PyThreadState* __tstate = wxPyBeginAllowThreads();
19562 result = (bool)((wxBookCtrlBase const *)arg1)->IsVertical();
19563 wxPyEndAllowThreads(__tstate);
19564 if (PyErr_Occurred()) SWIG_fail;
19565 }
19566 {
19567 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19568 }
19569 return resultobj;
19570 fail:
19571 return NULL;
19572 }
19573
19574
19575 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19576 PyObject *resultobj = 0;
19577 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19578 int arg2 ;
19579 void *argp1 = 0 ;
19580 int res1 = 0 ;
19581 int val2 ;
19582 int ecode2 = 0 ;
19583 PyObject * obj0 = 0 ;
19584 PyObject * obj1 = 0 ;
19585 char * kwnames[] = {
19586 (char *) "self",(char *) "margin", NULL
19587 };
19588
19589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetControlMargin",kwnames,&obj0,&obj1)) SWIG_fail;
19590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19591 if (!SWIG_IsOK(res1)) {
19592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19593 }
19594 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19595 ecode2 = SWIG_AsVal_int(obj1, &val2);
19596 if (!SWIG_IsOK(ecode2)) {
19597 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "2"" of type '" "int""'");
19598 }
19599 arg2 = static_cast< int >(val2);
19600 {
19601 PyThreadState* __tstate = wxPyBeginAllowThreads();
19602 (arg1)->SetControlMargin(arg2);
19603 wxPyEndAllowThreads(__tstate);
19604 if (PyErr_Occurred()) SWIG_fail;
19605 }
19606 resultobj = SWIG_Py_Void();
19607 return resultobj;
19608 fail:
19609 return NULL;
19610 }
19611
19612
19613 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19614 PyObject *resultobj = 0;
19615 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19616 int result;
19617 void *argp1 = 0 ;
19618 int res1 = 0 ;
19619 PyObject *swig_obj[1] ;
19620
19621 if (!args) SWIG_fail;
19622 swig_obj[0] = args;
19623 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19624 if (!SWIG_IsOK(res1)) {
19625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19626 }
19627 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19628 {
19629 PyThreadState* __tstate = wxPyBeginAllowThreads();
19630 result = (int)((wxBookCtrlBase const *)arg1)->GetControlMargin();
19631 wxPyEndAllowThreads(__tstate);
19632 if (PyErr_Occurred()) SWIG_fail;
19633 }
19634 resultobj = SWIG_From_int(static_cast< int >(result));
19635 return resultobj;
19636 fail:
19637 return NULL;
19638 }
19639
19640
19641 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19642 PyObject *resultobj = 0;
19643 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19644 bool arg2 ;
19645 void *argp1 = 0 ;
19646 int res1 = 0 ;
19647 bool val2 ;
19648 int ecode2 = 0 ;
19649 PyObject * obj0 = 0 ;
19650 PyObject * obj1 = 0 ;
19651 char * kwnames[] = {
19652 (char *) "self",(char *) "fit", NULL
19653 };
19654
19655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetFitToCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail;
19656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19657 if (!SWIG_IsOK(res1)) {
19658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19659 }
19660 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19661 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19662 if (!SWIG_IsOK(ecode2)) {
19663 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "2"" of type '" "bool""'");
19664 }
19665 arg2 = static_cast< bool >(val2);
19666 {
19667 PyThreadState* __tstate = wxPyBeginAllowThreads();
19668 (arg1)->SetFitToCurrentPage(arg2);
19669 wxPyEndAllowThreads(__tstate);
19670 if (PyErr_Occurred()) SWIG_fail;
19671 }
19672 resultobj = SWIG_Py_Void();
19673 return resultobj;
19674 fail:
19675 return NULL;
19676 }
19677
19678
19679 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19680 PyObject *resultobj = 0;
19681 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19682 bool result;
19683 void *argp1 = 0 ;
19684 int res1 = 0 ;
19685 PyObject *swig_obj[1] ;
19686
19687 if (!args) SWIG_fail;
19688 swig_obj[0] = args;
19689 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19690 if (!SWIG_IsOK(res1)) {
19691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19692 }
19693 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19694 {
19695 PyThreadState* __tstate = wxPyBeginAllowThreads();
19696 result = (bool)((wxBookCtrlBase const *)arg1)->GetFitToCurrentPage();
19697 wxPyEndAllowThreads(__tstate);
19698 if (PyErr_Occurred()) SWIG_fail;
19699 }
19700 {
19701 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19702 }
19703 return resultobj;
19704 fail:
19705 return NULL;
19706 }
19707
19708
19709 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19710 PyObject *resultobj = 0;
19711 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19712 wxSizer *result = 0 ;
19713 void *argp1 = 0 ;
19714 int res1 = 0 ;
19715 PyObject *swig_obj[1] ;
19716
19717 if (!args) SWIG_fail;
19718 swig_obj[0] = args;
19719 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19720 if (!SWIG_IsOK(res1)) {
19721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlSizer" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19722 }
19723 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19724 {
19725 PyThreadState* __tstate = wxPyBeginAllowThreads();
19726 result = (wxSizer *)((wxBookCtrlBase const *)arg1)->GetControlSizer();
19727 wxPyEndAllowThreads(__tstate);
19728 if (PyErr_Occurred()) SWIG_fail;
19729 }
19730 {
19731 resultobj = wxPyMake_wxObject(result, (bool)0);
19732 }
19733 return resultobj;
19734 fail:
19735 return NULL;
19736 }
19737
19738
19739 SWIGINTERN PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19740 PyObject *resultobj = 0;
19741 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19742 size_t arg2 ;
19743 bool result;
19744 void *argp1 = 0 ;
19745 int res1 = 0 ;
19746 size_t val2 ;
19747 int ecode2 = 0 ;
19748 PyObject * obj0 = 0 ;
19749 PyObject * obj1 = 0 ;
19750 char * kwnames[] = {
19751 (char *) "self",(char *) "n", NULL
19752 };
19753
19754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) SWIG_fail;
19755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19756 if (!SWIG_IsOK(res1)) {
19757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19758 }
19759 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19760 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19761 if (!SWIG_IsOK(ecode2)) {
19762 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "2"" of type '" "size_t""'");
19763 }
19764 arg2 = static_cast< size_t >(val2);
19765 {
19766 PyThreadState* __tstate = wxPyBeginAllowThreads();
19767 result = (bool)(arg1)->DeletePage(arg2);
19768 wxPyEndAllowThreads(__tstate);
19769 if (PyErr_Occurred()) SWIG_fail;
19770 }
19771 {
19772 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19773 }
19774 return resultobj;
19775 fail:
19776 return NULL;
19777 }
19778
19779
19780 SWIGINTERN PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19781 PyObject *resultobj = 0;
19782 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19783 size_t arg2 ;
19784 bool result;
19785 void *argp1 = 0 ;
19786 int res1 = 0 ;
19787 size_t val2 ;
19788 int ecode2 = 0 ;
19789 PyObject * obj0 = 0 ;
19790 PyObject * obj1 = 0 ;
19791 char * kwnames[] = {
19792 (char *) "self",(char *) "n", NULL
19793 };
19794
19795 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) SWIG_fail;
19796 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19797 if (!SWIG_IsOK(res1)) {
19798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19799 }
19800 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19801 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19802 if (!SWIG_IsOK(ecode2)) {
19803 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "2"" of type '" "size_t""'");
19804 }
19805 arg2 = static_cast< size_t >(val2);
19806 {
19807 PyThreadState* __tstate = wxPyBeginAllowThreads();
19808 result = (bool)(arg1)->RemovePage(arg2);
19809 wxPyEndAllowThreads(__tstate);
19810 if (PyErr_Occurred()) SWIG_fail;
19811 }
19812 {
19813 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19814 }
19815 return resultobj;
19816 fail:
19817 return NULL;
19818 }
19819
19820
19821 SWIGINTERN PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19822 PyObject *resultobj = 0;
19823 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19824 bool result;
19825 void *argp1 = 0 ;
19826 int res1 = 0 ;
19827 PyObject *swig_obj[1] ;
19828
19829 if (!args) SWIG_fail;
19830 swig_obj[0] = args;
19831 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19832 if (!SWIG_IsOK(res1)) {
19833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeleteAllPages" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19834 }
19835 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19836 {
19837 PyThreadState* __tstate = wxPyBeginAllowThreads();
19838 result = (bool)(arg1)->DeleteAllPages();
19839 wxPyEndAllowThreads(__tstate);
19840 if (PyErr_Occurred()) SWIG_fail;
19841 }
19842 {
19843 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19844 }
19845 return resultobj;
19846 fail:
19847 return NULL;
19848 }
19849
19850
19851 SWIGINTERN PyObject *_wrap_BookCtrlBase_AddPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19852 PyObject *resultobj = 0;
19853 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19854 wxWindow *arg2 = (wxWindow *) 0 ;
19855 wxString *arg3 = 0 ;
19856 bool arg4 = (bool) false ;
19857 int arg5 = (int) -1 ;
19858 bool result;
19859 void *argp1 = 0 ;
19860 int res1 = 0 ;
19861 void *argp2 = 0 ;
19862 int res2 = 0 ;
19863 bool temp3 = false ;
19864 bool val4 ;
19865 int ecode4 = 0 ;
19866 int val5 ;
19867 int ecode5 = 0 ;
19868 PyObject * obj0 = 0 ;
19869 PyObject * obj1 = 0 ;
19870 PyObject * obj2 = 0 ;
19871 PyObject * obj3 = 0 ;
19872 PyObject * obj4 = 0 ;
19873 char * kwnames[] = {
19874 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
19875 };
19876
19877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19879 if (!SWIG_IsOK(res1)) {
19880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AddPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19881 }
19882 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19883 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
19884 if (!SWIG_IsOK(res2)) {
19885 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AddPage" "', expected argument " "2"" of type '" "wxWindow *""'");
19886 }
19887 arg2 = reinterpret_cast< wxWindow * >(argp2);
19888 {
19889 arg3 = wxString_in_helper(obj2);
19890 if (arg3 == NULL) SWIG_fail;
19891 temp3 = true;
19892 }
19893 if (obj3) {
19894 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19895 if (!SWIG_IsOK(ecode4)) {
19896 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BookCtrlBase_AddPage" "', expected argument " "4"" of type '" "bool""'");
19897 }
19898 arg4 = static_cast< bool >(val4);
19899 }
19900 if (obj4) {
19901 ecode5 = SWIG_AsVal_int(obj4, &val5);
19902 if (!SWIG_IsOK(ecode5)) {
19903 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_AddPage" "', expected argument " "5"" of type '" "int""'");
19904 }
19905 arg5 = static_cast< int >(val5);
19906 }
19907 {
19908 PyThreadState* __tstate = wxPyBeginAllowThreads();
19909 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
19910 wxPyEndAllowThreads(__tstate);
19911 if (PyErr_Occurred()) SWIG_fail;
19912 }
19913 {
19914 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19915 }
19916 {
19917 if (temp3)
19918 delete arg3;
19919 }
19920 return resultobj;
19921 fail:
19922 {
19923 if (temp3)
19924 delete arg3;
19925 }
19926 return NULL;
19927 }
19928
19929
19930 SWIGINTERN PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19931 PyObject *resultobj = 0;
19932 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19933 size_t arg2 ;
19934 wxWindow *arg3 = (wxWindow *) 0 ;
19935 wxString *arg4 = 0 ;
19936 bool arg5 = (bool) false ;
19937 int arg6 = (int) -1 ;
19938 bool result;
19939 void *argp1 = 0 ;
19940 int res1 = 0 ;
19941 size_t val2 ;
19942 int ecode2 = 0 ;
19943 void *argp3 = 0 ;
19944 int res3 = 0 ;
19945 bool temp4 = false ;
19946 bool val5 ;
19947 int ecode5 = 0 ;
19948 int val6 ;
19949 int ecode6 = 0 ;
19950 PyObject * obj0 = 0 ;
19951 PyObject * obj1 = 0 ;
19952 PyObject * obj2 = 0 ;
19953 PyObject * obj3 = 0 ;
19954 PyObject * obj4 = 0 ;
19955 PyObject * obj5 = 0 ;
19956 char * kwnames[] = {
19957 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
19958 };
19959
19960 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19961 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19962 if (!SWIG_IsOK(res1)) {
19963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19964 }
19965 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19966 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19967 if (!SWIG_IsOK(ecode2)) {
19968 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "2"" of type '" "size_t""'");
19969 }
19970 arg2 = static_cast< size_t >(val2);
19971 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
19972 if (!SWIG_IsOK(res3)) {
19973 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "3"" of type '" "wxWindow *""'");
19974 }
19975 arg3 = reinterpret_cast< wxWindow * >(argp3);
19976 {
19977 arg4 = wxString_in_helper(obj3);
19978 if (arg4 == NULL) SWIG_fail;
19979 temp4 = true;
19980 }
19981 if (obj4) {
19982 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19983 if (!SWIG_IsOK(ecode5)) {
19984 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "5"" of type '" "bool""'");
19985 }
19986 arg5 = static_cast< bool >(val5);
19987 }
19988 if (obj5) {
19989 ecode6 = SWIG_AsVal_int(obj5, &val6);
19990 if (!SWIG_IsOK(ecode6)) {
19991 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "6"" of type '" "int""'");
19992 }
19993 arg6 = static_cast< int >(val6);
19994 }
19995 {
19996 PyThreadState* __tstate = wxPyBeginAllowThreads();
19997 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
19998 wxPyEndAllowThreads(__tstate);
19999 if (PyErr_Occurred()) SWIG_fail;
20000 }
20001 {
20002 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20003 }
20004 {
20005 if (temp4)
20006 delete arg4;
20007 }
20008 return resultobj;
20009 fail:
20010 {
20011 if (temp4)
20012 delete arg4;
20013 }
20014 return NULL;
20015 }
20016
20017
20018 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20019 PyObject *resultobj = 0;
20020 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20021 size_t arg2 ;
20022 int result;
20023 void *argp1 = 0 ;
20024 int res1 = 0 ;
20025 size_t val2 ;
20026 int ecode2 = 0 ;
20027 PyObject * obj0 = 0 ;
20028 PyObject * obj1 = 0 ;
20029 char * kwnames[] = {
20030 (char *) "self",(char *) "n", NULL
20031 };
20032
20033 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20034 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20035 if (!SWIG_IsOK(res1)) {
20036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20037 }
20038 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20039 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20040 if (!SWIG_IsOK(ecode2)) {
20041 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "2"" of type '" "size_t""'");
20042 }
20043 arg2 = static_cast< size_t >(val2);
20044 {
20045 PyThreadState* __tstate = wxPyBeginAllowThreads();
20046 result = (int)(arg1)->SetSelection(arg2);
20047 wxPyEndAllowThreads(__tstate);
20048 if (PyErr_Occurred()) SWIG_fail;
20049 }
20050 resultobj = SWIG_From_int(static_cast< int >(result));
20051 return resultobj;
20052 fail:
20053 return NULL;
20054 }
20055
20056
20057 SWIGINTERN PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20058 PyObject *resultobj = 0;
20059 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20060 bool arg2 = (bool) true ;
20061 void *argp1 = 0 ;
20062 int res1 = 0 ;
20063 bool val2 ;
20064 int ecode2 = 0 ;
20065 PyObject * obj0 = 0 ;
20066 PyObject * obj1 = 0 ;
20067 char * kwnames[] = {
20068 (char *) "self",(char *) "forward", NULL
20069 };
20070
20071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20073 if (!SWIG_IsOK(res1)) {
20074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20075 }
20076 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20077 if (obj1) {
20078 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20079 if (!SWIG_IsOK(ecode2)) {
20080 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "2"" of type '" "bool""'");
20081 }
20082 arg2 = static_cast< bool >(val2);
20083 }
20084 {
20085 PyThreadState* __tstate = wxPyBeginAllowThreads();
20086 (arg1)->AdvanceSelection(arg2);
20087 wxPyEndAllowThreads(__tstate);
20088 if (PyErr_Occurred()) SWIG_fail;
20089 }
20090 resultobj = SWIG_Py_Void();
20091 return resultobj;
20092 fail:
20093 return NULL;
20094 }
20095
20096
20097 SWIGINTERN PyObject *_wrap_BookCtrlBase_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20098 PyObject *resultobj = 0;
20099 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20100 wxPoint *arg2 = 0 ;
20101 long *arg3 = (long *) 0 ;
20102 int result;
20103 void *argp1 = 0 ;
20104 int res1 = 0 ;
20105 wxPoint temp2 ;
20106 long temp3 ;
20107 int res3 = SWIG_TMPOBJ ;
20108 PyObject * obj0 = 0 ;
20109 PyObject * obj1 = 0 ;
20110 char * kwnames[] = {
20111 (char *) "self",(char *) "pt", NULL
20112 };
20113
20114 arg3 = &temp3;
20115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
20116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20117 if (!SWIG_IsOK(res1)) {
20118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_HitTest" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
20119 }
20120 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20121 {
20122 arg2 = &temp2;
20123 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20124 }
20125 {
20126 PyThreadState* __tstate = wxPyBeginAllowThreads();
20127 result = (int)((wxBookCtrlBase const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
20128 wxPyEndAllowThreads(__tstate);
20129 if (PyErr_Occurred()) SWIG_fail;
20130 }
20131 resultobj = SWIG_From_int(static_cast< int >(result));
20132 if (SWIG_IsTmpObj(res3)) {
20133 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
20134 } else {
20135 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20136 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
20137 }
20138 return resultobj;
20139 fail:
20140 return NULL;
20141 }
20142
20143
20144 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20145 PyObject *resultobj = 0;
20146 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20147 SwigValueWrapper<wxVisualAttributes > result;
20148 int val1 ;
20149 int ecode1 = 0 ;
20150 PyObject * obj0 = 0 ;
20151 char * kwnames[] = {
20152 (char *) "variant", NULL
20153 };
20154
20155 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20156 if (obj0) {
20157 ecode1 = SWIG_AsVal_int(obj0, &val1);
20158 if (!SWIG_IsOK(ecode1)) {
20159 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "BookCtrlBase_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20160 }
20161 arg1 = static_cast< wxWindowVariant >(val1);
20162 }
20163 {
20164 if (!wxPyCheckForApp()) SWIG_fail;
20165 PyThreadState* __tstate = wxPyBeginAllowThreads();
20166 result = wxBookCtrlBase::GetClassDefaultAttributes(arg1);
20167 wxPyEndAllowThreads(__tstate);
20168 if (PyErr_Occurred()) SWIG_fail;
20169 }
20170 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20171 return resultobj;
20172 fail:
20173 return NULL;
20174 }
20175
20176
20177 SWIGINTERN PyObject *BookCtrlBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20178 PyObject *obj;
20179 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20180 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBase, SWIG_NewClientData(obj));
20181 return SWIG_Py_Void();
20182 }
20183
20184 SWIGINTERN PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20185 PyObject *resultobj = 0;
20186 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20187 int arg2 = (int) 0 ;
20188 int arg3 = (int) -1 ;
20189 int arg4 = (int) -1 ;
20190 wxBookCtrlBaseEvent *result = 0 ;
20191 int val1 ;
20192 int ecode1 = 0 ;
20193 int val2 ;
20194 int ecode2 = 0 ;
20195 int val3 ;
20196 int ecode3 = 0 ;
20197 int val4 ;
20198 int ecode4 = 0 ;
20199 PyObject * obj0 = 0 ;
20200 PyObject * obj1 = 0 ;
20201 PyObject * obj2 = 0 ;
20202 PyObject * obj3 = 0 ;
20203 char * kwnames[] = {
20204 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20205 };
20206
20207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20208 if (obj0) {
20209 ecode1 = SWIG_AsVal_int(obj0, &val1);
20210 if (!SWIG_IsOK(ecode1)) {
20211 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20212 }
20213 arg1 = static_cast< wxEventType >(val1);
20214 }
20215 if (obj1) {
20216 ecode2 = SWIG_AsVal_int(obj1, &val2);
20217 if (!SWIG_IsOK(ecode2)) {
20218 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "2"" of type '" "int""'");
20219 }
20220 arg2 = static_cast< int >(val2);
20221 }
20222 if (obj2) {
20223 ecode3 = SWIG_AsVal_int(obj2, &val3);
20224 if (!SWIG_IsOK(ecode3)) {
20225 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "3"" of type '" "int""'");
20226 }
20227 arg3 = static_cast< int >(val3);
20228 }
20229 if (obj3) {
20230 ecode4 = SWIG_AsVal_int(obj3, &val4);
20231 if (!SWIG_IsOK(ecode4)) {
20232 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "4"" of type '" "int""'");
20233 }
20234 arg4 = static_cast< int >(val4);
20235 }
20236 {
20237 PyThreadState* __tstate = wxPyBeginAllowThreads();
20238 result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4);
20239 wxPyEndAllowThreads(__tstate);
20240 if (PyErr_Occurred()) SWIG_fail;
20241 }
20242 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_NEW | 0 );
20243 return resultobj;
20244 fail:
20245 return NULL;
20246 }
20247
20248
20249 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20250 PyObject *resultobj = 0;
20251 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20252 int result;
20253 void *argp1 = 0 ;
20254 int res1 = 0 ;
20255 PyObject *swig_obj[1] ;
20256
20257 if (!args) SWIG_fail;
20258 swig_obj[0] = args;
20259 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20260 if (!SWIG_IsOK(res1)) {
20261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20262 }
20263 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20264 {
20265 PyThreadState* __tstate = wxPyBeginAllowThreads();
20266 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection();
20267 wxPyEndAllowThreads(__tstate);
20268 if (PyErr_Occurred()) SWIG_fail;
20269 }
20270 resultobj = SWIG_From_int(static_cast< int >(result));
20271 return resultobj;
20272 fail:
20273 return NULL;
20274 }
20275
20276
20277 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20278 PyObject *resultobj = 0;
20279 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20280 int arg2 ;
20281 void *argp1 = 0 ;
20282 int res1 = 0 ;
20283 int val2 ;
20284 int ecode2 = 0 ;
20285 PyObject * obj0 = 0 ;
20286 PyObject * obj1 = 0 ;
20287 char * kwnames[] = {
20288 (char *) "self",(char *) "nSel", NULL
20289 };
20290
20291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20293 if (!SWIG_IsOK(res1)) {
20294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20295 }
20296 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20297 ecode2 = SWIG_AsVal_int(obj1, &val2);
20298 if (!SWIG_IsOK(ecode2)) {
20299 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "2"" of type '" "int""'");
20300 }
20301 arg2 = static_cast< int >(val2);
20302 {
20303 PyThreadState* __tstate = wxPyBeginAllowThreads();
20304 (arg1)->SetSelection(arg2);
20305 wxPyEndAllowThreads(__tstate);
20306 if (PyErr_Occurred()) SWIG_fail;
20307 }
20308 resultobj = SWIG_Py_Void();
20309 return resultobj;
20310 fail:
20311 return NULL;
20312 }
20313
20314
20315 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20316 PyObject *resultobj = 0;
20317 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20318 int result;
20319 void *argp1 = 0 ;
20320 int res1 = 0 ;
20321 PyObject *swig_obj[1] ;
20322
20323 if (!args) SWIG_fail;
20324 swig_obj[0] = args;
20325 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20326 if (!SWIG_IsOK(res1)) {
20327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20328 }
20329 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20330 {
20331 PyThreadState* __tstate = wxPyBeginAllowThreads();
20332 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection();
20333 wxPyEndAllowThreads(__tstate);
20334 if (PyErr_Occurred()) SWIG_fail;
20335 }
20336 resultobj = SWIG_From_int(static_cast< int >(result));
20337 return resultobj;
20338 fail:
20339 return NULL;
20340 }
20341
20342
20343 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20344 PyObject *resultobj = 0;
20345 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20346 int arg2 ;
20347 void *argp1 = 0 ;
20348 int res1 = 0 ;
20349 int val2 ;
20350 int ecode2 = 0 ;
20351 PyObject * obj0 = 0 ;
20352 PyObject * obj1 = 0 ;
20353 char * kwnames[] = {
20354 (char *) "self",(char *) "nOldSel", NULL
20355 };
20356
20357 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20358 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20359 if (!SWIG_IsOK(res1)) {
20360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20361 }
20362 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20363 ecode2 = SWIG_AsVal_int(obj1, &val2);
20364 if (!SWIG_IsOK(ecode2)) {
20365 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "2"" of type '" "int""'");
20366 }
20367 arg2 = static_cast< int >(val2);
20368 {
20369 PyThreadState* __tstate = wxPyBeginAllowThreads();
20370 (arg1)->SetOldSelection(arg2);
20371 wxPyEndAllowThreads(__tstate);
20372 if (PyErr_Occurred()) SWIG_fail;
20373 }
20374 resultobj = SWIG_Py_Void();
20375 return resultobj;
20376 fail:
20377 return NULL;
20378 }
20379
20380
20381 SWIGINTERN PyObject *BookCtrlBaseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20382 PyObject *obj;
20383 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20384 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_NewClientData(obj));
20385 return SWIG_Py_Void();
20386 }
20387
20388 SWIGINTERN PyObject *BookCtrlBaseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20389 return SWIG_Python_InitShadowInstance(args);
20390 }
20391
20392 SWIGINTERN PyObject *_wrap_new_Notebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20393 PyObject *resultobj = 0;
20394 wxWindow *arg1 = (wxWindow *) 0 ;
20395 int arg2 = (int) -1 ;
20396 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20397 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20398 wxSize const &arg4_defvalue = wxDefaultSize ;
20399 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20400 long arg5 = (long) 0 ;
20401 wxString const &arg6_defvalue = wxPyNotebookNameStr ;
20402 wxString *arg6 = (wxString *) &arg6_defvalue ;
20403 wxNotebook *result = 0 ;
20404 void *argp1 = 0 ;
20405 int res1 = 0 ;
20406 int val2 ;
20407 int ecode2 = 0 ;
20408 wxPoint temp3 ;
20409 wxSize temp4 ;
20410 long val5 ;
20411 int ecode5 = 0 ;
20412 bool temp6 = false ;
20413 PyObject * obj0 = 0 ;
20414 PyObject * obj1 = 0 ;
20415 PyObject * obj2 = 0 ;
20416 PyObject * obj3 = 0 ;
20417 PyObject * obj4 = 0 ;
20418 PyObject * obj5 = 0 ;
20419 char * kwnames[] = {
20420 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20421 };
20422
20423 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20424 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20425 if (!SWIG_IsOK(res1)) {
20426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Notebook" "', expected argument " "1"" of type '" "wxWindow *""'");
20427 }
20428 arg1 = reinterpret_cast< wxWindow * >(argp1);
20429 if (obj1) {
20430 ecode2 = SWIG_AsVal_int(obj1, &val2);
20431 if (!SWIG_IsOK(ecode2)) {
20432 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Notebook" "', expected argument " "2"" of type '" "int""'");
20433 }
20434 arg2 = static_cast< int >(val2);
20435 }
20436 if (obj2) {
20437 {
20438 arg3 = &temp3;
20439 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20440 }
20441 }
20442 if (obj3) {
20443 {
20444 arg4 = &temp4;
20445 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
20446 }
20447 }
20448 if (obj4) {
20449 ecode5 = SWIG_AsVal_long(obj4, &val5);
20450 if (!SWIG_IsOK(ecode5)) {
20451 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Notebook" "', expected argument " "5"" of type '" "long""'");
20452 }
20453 arg5 = static_cast< long >(val5);
20454 }
20455 if (obj5) {
20456 {
20457 arg6 = wxString_in_helper(obj5);
20458 if (arg6 == NULL) SWIG_fail;
20459 temp6 = true;
20460 }
20461 }
20462 {
20463 if (!wxPyCheckForApp()) SWIG_fail;
20464 PyThreadState* __tstate = wxPyBeginAllowThreads();
20465 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20466 wxPyEndAllowThreads(__tstate);
20467 if (PyErr_Occurred()) SWIG_fail;
20468 }
20469 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_NEW | 0 );
20470 {
20471 if (temp6)
20472 delete arg6;
20473 }
20474 return resultobj;
20475 fail:
20476 {
20477 if (temp6)
20478 delete arg6;
20479 }
20480 return NULL;
20481 }
20482
20483
20484 SWIGINTERN PyObject *_wrap_new_PreNotebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20485 PyObject *resultobj = 0;
20486 wxNotebook *result = 0 ;
20487
20488 if (!SWIG_Python_UnpackTuple(args,"new_PreNotebook",0,0,0)) SWIG_fail;
20489 {
20490 if (!wxPyCheckForApp()) SWIG_fail;
20491 PyThreadState* __tstate = wxPyBeginAllowThreads();
20492 result = (wxNotebook *)new wxNotebook();
20493 wxPyEndAllowThreads(__tstate);
20494 if (PyErr_Occurred()) SWIG_fail;
20495 }
20496 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_OWN | 0 );
20497 return resultobj;
20498 fail:
20499 return NULL;
20500 }
20501
20502
20503 SWIGINTERN PyObject *_wrap_Notebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20504 PyObject *resultobj = 0;
20505 wxNotebook *arg1 = (wxNotebook *) 0 ;
20506 wxWindow *arg2 = (wxWindow *) 0 ;
20507 int arg3 = (int) -1 ;
20508 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20509 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20510 wxSize const &arg5_defvalue = wxDefaultSize ;
20511 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20512 long arg6 = (long) 0 ;
20513 wxString const &arg7_defvalue = wxPyNotebookNameStr ;
20514 wxString *arg7 = (wxString *) &arg7_defvalue ;
20515 bool result;
20516 void *argp1 = 0 ;
20517 int res1 = 0 ;
20518 void *argp2 = 0 ;
20519 int res2 = 0 ;
20520 int val3 ;
20521 int ecode3 = 0 ;
20522 wxPoint temp4 ;
20523 wxSize temp5 ;
20524 long val6 ;
20525 int ecode6 = 0 ;
20526 bool temp7 = false ;
20527 PyObject * obj0 = 0 ;
20528 PyObject * obj1 = 0 ;
20529 PyObject * obj2 = 0 ;
20530 PyObject * obj3 = 0 ;
20531 PyObject * obj4 = 0 ;
20532 PyObject * obj5 = 0 ;
20533 PyObject * obj6 = 0 ;
20534 char * kwnames[] = {
20535 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20536 };
20537
20538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20539 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20540 if (!SWIG_IsOK(res1)) {
20541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_Create" "', expected argument " "1"" of type '" "wxNotebook *""'");
20542 }
20543 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20544 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20545 if (!SWIG_IsOK(res2)) {
20546 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Notebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20547 }
20548 arg2 = reinterpret_cast< wxWindow * >(argp2);
20549 if (obj2) {
20550 ecode3 = SWIG_AsVal_int(obj2, &val3);
20551 if (!SWIG_IsOK(ecode3)) {
20552 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_Create" "', expected argument " "3"" of type '" "int""'");
20553 }
20554 arg3 = static_cast< int >(val3);
20555 }
20556 if (obj3) {
20557 {
20558 arg4 = &temp4;
20559 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
20560 }
20561 }
20562 if (obj4) {
20563 {
20564 arg5 = &temp5;
20565 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
20566 }
20567 }
20568 if (obj5) {
20569 ecode6 = SWIG_AsVal_long(obj5, &val6);
20570 if (!SWIG_IsOK(ecode6)) {
20571 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Notebook_Create" "', expected argument " "6"" of type '" "long""'");
20572 }
20573 arg6 = static_cast< long >(val6);
20574 }
20575 if (obj6) {
20576 {
20577 arg7 = wxString_in_helper(obj6);
20578 if (arg7 == NULL) SWIG_fail;
20579 temp7 = true;
20580 }
20581 }
20582 {
20583 PyThreadState* __tstate = wxPyBeginAllowThreads();
20584 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20585 wxPyEndAllowThreads(__tstate);
20586 if (PyErr_Occurred()) SWIG_fail;
20587 }
20588 {
20589 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20590 }
20591 {
20592 if (temp7)
20593 delete arg7;
20594 }
20595 return resultobj;
20596 fail:
20597 {
20598 if (temp7)
20599 delete arg7;
20600 }
20601 return NULL;
20602 }
20603
20604
20605 SWIGINTERN PyObject *_wrap_Notebook_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20606 PyObject *resultobj = 0;
20607 wxNotebook *arg1 = (wxNotebook *) 0 ;
20608 int result;
20609 void *argp1 = 0 ;
20610 int res1 = 0 ;
20611 PyObject *swig_obj[1] ;
20612
20613 if (!args) SWIG_fail;
20614 swig_obj[0] = args;
20615 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20616 if (!SWIG_IsOK(res1)) {
20617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetRowCount" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20618 }
20619 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20620 {
20621 PyThreadState* __tstate = wxPyBeginAllowThreads();
20622 result = (int)((wxNotebook const *)arg1)->GetRowCount();
20623 wxPyEndAllowThreads(__tstate);
20624 if (PyErr_Occurred()) SWIG_fail;
20625 }
20626 resultobj = SWIG_From_int(static_cast< int >(result));
20627 return resultobj;
20628 fail:
20629 return NULL;
20630 }
20631
20632
20633 SWIGINTERN PyObject *_wrap_Notebook_SetPadding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20634 PyObject *resultobj = 0;
20635 wxNotebook *arg1 = (wxNotebook *) 0 ;
20636 wxSize *arg2 = 0 ;
20637 void *argp1 = 0 ;
20638 int res1 = 0 ;
20639 wxSize temp2 ;
20640 PyObject * obj0 = 0 ;
20641 PyObject * obj1 = 0 ;
20642 char * kwnames[] = {
20643 (char *) "self",(char *) "padding", NULL
20644 };
20645
20646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) SWIG_fail;
20647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20648 if (!SWIG_IsOK(res1)) {
20649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetPadding" "', expected argument " "1"" of type '" "wxNotebook *""'");
20650 }
20651 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20652 {
20653 arg2 = &temp2;
20654 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20655 }
20656 {
20657 PyThreadState* __tstate = wxPyBeginAllowThreads();
20658 (arg1)->SetPadding((wxSize const &)*arg2);
20659 wxPyEndAllowThreads(__tstate);
20660 if (PyErr_Occurred()) SWIG_fail;
20661 }
20662 resultobj = SWIG_Py_Void();
20663 return resultobj;
20664 fail:
20665 return NULL;
20666 }
20667
20668
20669 SWIGINTERN PyObject *_wrap_Notebook_SetTabSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20670 PyObject *resultobj = 0;
20671 wxNotebook *arg1 = (wxNotebook *) 0 ;
20672 wxSize *arg2 = 0 ;
20673 void *argp1 = 0 ;
20674 int res1 = 0 ;
20675 wxSize temp2 ;
20676 PyObject * obj0 = 0 ;
20677 PyObject * obj1 = 0 ;
20678 char * kwnames[] = {
20679 (char *) "self",(char *) "sz", NULL
20680 };
20681
20682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) SWIG_fail;
20683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20684 if (!SWIG_IsOK(res1)) {
20685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetTabSize" "', expected argument " "1"" of type '" "wxNotebook *""'");
20686 }
20687 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20688 {
20689 arg2 = &temp2;
20690 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20691 }
20692 {
20693 PyThreadState* __tstate = wxPyBeginAllowThreads();
20694 (arg1)->SetTabSize((wxSize const &)*arg2);
20695 wxPyEndAllowThreads(__tstate);
20696 if (PyErr_Occurred()) SWIG_fail;
20697 }
20698 resultobj = SWIG_Py_Void();
20699 return resultobj;
20700 fail:
20701 return NULL;
20702 }
20703
20704
20705 SWIGINTERN PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20706 PyObject *resultobj = 0;
20707 wxNotebook *arg1 = (wxNotebook *) 0 ;
20708 wxColour result;
20709 void *argp1 = 0 ;
20710 int res1 = 0 ;
20711 PyObject *swig_obj[1] ;
20712
20713 if (!args) SWIG_fail;
20714 swig_obj[0] = args;
20715 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20716 if (!SWIG_IsOK(res1)) {
20717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetThemeBackgroundColour" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20718 }
20719 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20720 {
20721 PyThreadState* __tstate = wxPyBeginAllowThreads();
20722 result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour();
20723 wxPyEndAllowThreads(__tstate);
20724 if (PyErr_Occurred()) SWIG_fail;
20725 }
20726 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
20727 return resultobj;
20728 fail:
20729 return NULL;
20730 }
20731
20732
20733 SWIGINTERN PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20734 PyObject *resultobj = 0;
20735 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20736 SwigValueWrapper<wxVisualAttributes > result;
20737 int val1 ;
20738 int ecode1 = 0 ;
20739 PyObject * obj0 = 0 ;
20740 char * kwnames[] = {
20741 (char *) "variant", NULL
20742 };
20743
20744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20745 if (obj0) {
20746 ecode1 = SWIG_AsVal_int(obj0, &val1);
20747 if (!SWIG_IsOK(ecode1)) {
20748 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Notebook_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20749 }
20750 arg1 = static_cast< wxWindowVariant >(val1);
20751 }
20752 {
20753 if (!wxPyCheckForApp()) SWIG_fail;
20754 PyThreadState* __tstate = wxPyBeginAllowThreads();
20755 result = wxNotebook::GetClassDefaultAttributes(arg1);
20756 wxPyEndAllowThreads(__tstate);
20757 if (PyErr_Occurred()) SWIG_fail;
20758 }
20759 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20760 return resultobj;
20761 fail:
20762 return NULL;
20763 }
20764
20765
20766 SWIGINTERN PyObject *Notebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20767 PyObject *obj;
20768 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20769 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebook, SWIG_NewClientData(obj));
20770 return SWIG_Py_Void();
20771 }
20772
20773 SWIGINTERN PyObject *Notebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20774 return SWIG_Python_InitShadowInstance(args);
20775 }
20776
20777 SWIGINTERN PyObject *_wrap_new_NotebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20778 PyObject *resultobj = 0;
20779 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20780 int arg2 = (int) 0 ;
20781 int arg3 = (int) -1 ;
20782 int arg4 = (int) -1 ;
20783 wxNotebookEvent *result = 0 ;
20784 int val1 ;
20785 int ecode1 = 0 ;
20786 int val2 ;
20787 int ecode2 = 0 ;
20788 int val3 ;
20789 int ecode3 = 0 ;
20790 int val4 ;
20791 int ecode4 = 0 ;
20792 PyObject * obj0 = 0 ;
20793 PyObject * obj1 = 0 ;
20794 PyObject * obj2 = 0 ;
20795 PyObject * obj3 = 0 ;
20796 char * kwnames[] = {
20797 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20798 };
20799
20800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20801 if (obj0) {
20802 ecode1 = SWIG_AsVal_int(obj0, &val1);
20803 if (!SWIG_IsOK(ecode1)) {
20804 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NotebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20805 }
20806 arg1 = static_cast< wxEventType >(val1);
20807 }
20808 if (obj1) {
20809 ecode2 = SWIG_AsVal_int(obj1, &val2);
20810 if (!SWIG_IsOK(ecode2)) {
20811 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NotebookEvent" "', expected argument " "2"" of type '" "int""'");
20812 }
20813 arg2 = static_cast< int >(val2);
20814 }
20815 if (obj2) {
20816 ecode3 = SWIG_AsVal_int(obj2, &val3);
20817 if (!SWIG_IsOK(ecode3)) {
20818 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NotebookEvent" "', expected argument " "3"" of type '" "int""'");
20819 }
20820 arg3 = static_cast< int >(val3);
20821 }
20822 if (obj3) {
20823 ecode4 = SWIG_AsVal_int(obj3, &val4);
20824 if (!SWIG_IsOK(ecode4)) {
20825 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NotebookEvent" "', expected argument " "4"" of type '" "int""'");
20826 }
20827 arg4 = static_cast< int >(val4);
20828 }
20829 {
20830 PyThreadState* __tstate = wxPyBeginAllowThreads();
20831 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
20832 wxPyEndAllowThreads(__tstate);
20833 if (PyErr_Occurred()) SWIG_fail;
20834 }
20835 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebookEvent, SWIG_POINTER_NEW | 0 );
20836 return resultobj;
20837 fail:
20838 return NULL;
20839 }
20840
20841
20842 SWIGINTERN PyObject *NotebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20843 PyObject *obj;
20844 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20845 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebookEvent, SWIG_NewClientData(obj));
20846 return SWIG_Py_Void();
20847 }
20848
20849 SWIGINTERN PyObject *NotebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20850 return SWIG_Python_InitShadowInstance(args);
20851 }
20852
20853 SWIGINTERN PyObject *_wrap_new_Listbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20854 PyObject *resultobj = 0;
20855 wxWindow *arg1 = (wxWindow *) 0 ;
20856 int arg2 = (int) -1 ;
20857 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20858 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20859 wxSize const &arg4_defvalue = wxDefaultSize ;
20860 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20861 long arg5 = (long) 0 ;
20862 wxString const &arg6_defvalue = wxPyEmptyString ;
20863 wxString *arg6 = (wxString *) &arg6_defvalue ;
20864 wxListbook *result = 0 ;
20865 void *argp1 = 0 ;
20866 int res1 = 0 ;
20867 int val2 ;
20868 int ecode2 = 0 ;
20869 wxPoint temp3 ;
20870 wxSize temp4 ;
20871 long val5 ;
20872 int ecode5 = 0 ;
20873 bool temp6 = false ;
20874 PyObject * obj0 = 0 ;
20875 PyObject * obj1 = 0 ;
20876 PyObject * obj2 = 0 ;
20877 PyObject * obj3 = 0 ;
20878 PyObject * obj4 = 0 ;
20879 PyObject * obj5 = 0 ;
20880 char * kwnames[] = {
20881 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20882 };
20883
20884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20886 if (!SWIG_IsOK(res1)) {
20887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Listbook" "', expected argument " "1"" of type '" "wxWindow *""'");
20888 }
20889 arg1 = reinterpret_cast< wxWindow * >(argp1);
20890 if (obj1) {
20891 ecode2 = SWIG_AsVal_int(obj1, &val2);
20892 if (!SWIG_IsOK(ecode2)) {
20893 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Listbook" "', expected argument " "2"" of type '" "int""'");
20894 }
20895 arg2 = static_cast< int >(val2);
20896 }
20897 if (obj2) {
20898 {
20899 arg3 = &temp3;
20900 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20901 }
20902 }
20903 if (obj3) {
20904 {
20905 arg4 = &temp4;
20906 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
20907 }
20908 }
20909 if (obj4) {
20910 ecode5 = SWIG_AsVal_long(obj4, &val5);
20911 if (!SWIG_IsOK(ecode5)) {
20912 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Listbook" "', expected argument " "5"" of type '" "long""'");
20913 }
20914 arg5 = static_cast< long >(val5);
20915 }
20916 if (obj5) {
20917 {
20918 arg6 = wxString_in_helper(obj5);
20919 if (arg6 == NULL) SWIG_fail;
20920 temp6 = true;
20921 }
20922 }
20923 {
20924 if (!wxPyCheckForApp()) SWIG_fail;
20925 PyThreadState* __tstate = wxPyBeginAllowThreads();
20926 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20927 wxPyEndAllowThreads(__tstate);
20928 if (PyErr_Occurred()) SWIG_fail;
20929 }
20930 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_NEW | 0 );
20931 {
20932 if (temp6)
20933 delete arg6;
20934 }
20935 return resultobj;
20936 fail:
20937 {
20938 if (temp6)
20939 delete arg6;
20940 }
20941 return NULL;
20942 }
20943
20944
20945 SWIGINTERN PyObject *_wrap_new_PreListbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20946 PyObject *resultobj = 0;
20947 wxListbook *result = 0 ;
20948
20949 if (!SWIG_Python_UnpackTuple(args,"new_PreListbook",0,0,0)) SWIG_fail;
20950 {
20951 if (!wxPyCheckForApp()) SWIG_fail;
20952 PyThreadState* __tstate = wxPyBeginAllowThreads();
20953 result = (wxListbook *)new wxListbook();
20954 wxPyEndAllowThreads(__tstate);
20955 if (PyErr_Occurred()) SWIG_fail;
20956 }
20957 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_OWN | 0 );
20958 return resultobj;
20959 fail:
20960 return NULL;
20961 }
20962
20963
20964 SWIGINTERN PyObject *_wrap_Listbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20965 PyObject *resultobj = 0;
20966 wxListbook *arg1 = (wxListbook *) 0 ;
20967 wxWindow *arg2 = (wxWindow *) 0 ;
20968 int arg3 = (int) -1 ;
20969 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20970 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20971 wxSize const &arg5_defvalue = wxDefaultSize ;
20972 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20973 long arg6 = (long) 0 ;
20974 wxString const &arg7_defvalue = wxPyEmptyString ;
20975 wxString *arg7 = (wxString *) &arg7_defvalue ;
20976 bool result;
20977 void *argp1 = 0 ;
20978 int res1 = 0 ;
20979 void *argp2 = 0 ;
20980 int res2 = 0 ;
20981 int val3 ;
20982 int ecode3 = 0 ;
20983 wxPoint temp4 ;
20984 wxSize temp5 ;
20985 long val6 ;
20986 int ecode6 = 0 ;
20987 bool temp7 = false ;
20988 PyObject * obj0 = 0 ;
20989 PyObject * obj1 = 0 ;
20990 PyObject * obj2 = 0 ;
20991 PyObject * obj3 = 0 ;
20992 PyObject * obj4 = 0 ;
20993 PyObject * obj5 = 0 ;
20994 PyObject * obj6 = 0 ;
20995 char * kwnames[] = {
20996 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20997 };
20998
20999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21001 if (!SWIG_IsOK(res1)) {
21002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_Create" "', expected argument " "1"" of type '" "wxListbook *""'");
21003 }
21004 arg1 = reinterpret_cast< wxListbook * >(argp1);
21005 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21006 if (!SWIG_IsOK(res2)) {
21007 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Listbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21008 }
21009 arg2 = reinterpret_cast< wxWindow * >(argp2);
21010 if (obj2) {
21011 ecode3 = SWIG_AsVal_int(obj2, &val3);
21012 if (!SWIG_IsOK(ecode3)) {
21013 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Listbook_Create" "', expected argument " "3"" of type '" "int""'");
21014 }
21015 arg3 = static_cast< int >(val3);
21016 }
21017 if (obj3) {
21018 {
21019 arg4 = &temp4;
21020 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21021 }
21022 }
21023 if (obj4) {
21024 {
21025 arg5 = &temp5;
21026 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21027 }
21028 }
21029 if (obj5) {
21030 ecode6 = SWIG_AsVal_long(obj5, &val6);
21031 if (!SWIG_IsOK(ecode6)) {
21032 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Listbook_Create" "', expected argument " "6"" of type '" "long""'");
21033 }
21034 arg6 = static_cast< long >(val6);
21035 }
21036 if (obj6) {
21037 {
21038 arg7 = wxString_in_helper(obj6);
21039 if (arg7 == NULL) SWIG_fail;
21040 temp7 = true;
21041 }
21042 }
21043 {
21044 PyThreadState* __tstate = wxPyBeginAllowThreads();
21045 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21046 wxPyEndAllowThreads(__tstate);
21047 if (PyErr_Occurred()) SWIG_fail;
21048 }
21049 {
21050 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21051 }
21052 {
21053 if (temp7)
21054 delete arg7;
21055 }
21056 return resultobj;
21057 fail:
21058 {
21059 if (temp7)
21060 delete arg7;
21061 }
21062 return NULL;
21063 }
21064
21065
21066 SWIGINTERN PyObject *_wrap_Listbook_GetListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21067 PyObject *resultobj = 0;
21068 wxListbook *arg1 = (wxListbook *) 0 ;
21069 wxListView *result = 0 ;
21070 void *argp1 = 0 ;
21071 int res1 = 0 ;
21072 PyObject *swig_obj[1] ;
21073
21074 if (!args) SWIG_fail;
21075 swig_obj[0] = args;
21076 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21077 if (!SWIG_IsOK(res1)) {
21078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_GetListView" "', expected argument " "1"" of type '" "wxListbook *""'");
21079 }
21080 arg1 = reinterpret_cast< wxListbook * >(argp1);
21081 {
21082 PyThreadState* __tstate = wxPyBeginAllowThreads();
21083 result = (wxListView *)(arg1)->GetListView();
21084 wxPyEndAllowThreads(__tstate);
21085 if (PyErr_Occurred()) SWIG_fail;
21086 }
21087 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, 0 | 0 );
21088 return resultobj;
21089 fail:
21090 return NULL;
21091 }
21092
21093
21094 SWIGINTERN PyObject *Listbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21095 PyObject *obj;
21096 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21097 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbook, SWIG_NewClientData(obj));
21098 return SWIG_Py_Void();
21099 }
21100
21101 SWIGINTERN PyObject *Listbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21102 return SWIG_Python_InitShadowInstance(args);
21103 }
21104
21105 SWIGINTERN PyObject *_wrap_new_ListbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21106 PyObject *resultobj = 0;
21107 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21108 int arg2 = (int) 0 ;
21109 int arg3 = (int) -1 ;
21110 int arg4 = (int) -1 ;
21111 wxListbookEvent *result = 0 ;
21112 int val1 ;
21113 int ecode1 = 0 ;
21114 int val2 ;
21115 int ecode2 = 0 ;
21116 int val3 ;
21117 int ecode3 = 0 ;
21118 int val4 ;
21119 int ecode4 = 0 ;
21120 PyObject * obj0 = 0 ;
21121 PyObject * obj1 = 0 ;
21122 PyObject * obj2 = 0 ;
21123 PyObject * obj3 = 0 ;
21124 char * kwnames[] = {
21125 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21126 };
21127
21128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21129 if (obj0) {
21130 ecode1 = SWIG_AsVal_int(obj0, &val1);
21131 if (!SWIG_IsOK(ecode1)) {
21132 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21133 }
21134 arg1 = static_cast< wxEventType >(val1);
21135 }
21136 if (obj1) {
21137 ecode2 = SWIG_AsVal_int(obj1, &val2);
21138 if (!SWIG_IsOK(ecode2)) {
21139 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListbookEvent" "', expected argument " "2"" of type '" "int""'");
21140 }
21141 arg2 = static_cast< int >(val2);
21142 }
21143 if (obj2) {
21144 ecode3 = SWIG_AsVal_int(obj2, &val3);
21145 if (!SWIG_IsOK(ecode3)) {
21146 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ListbookEvent" "', expected argument " "3"" of type '" "int""'");
21147 }
21148 arg3 = static_cast< int >(val3);
21149 }
21150 if (obj3) {
21151 ecode4 = SWIG_AsVal_int(obj3, &val4);
21152 if (!SWIG_IsOK(ecode4)) {
21153 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ListbookEvent" "', expected argument " "4"" of type '" "int""'");
21154 }
21155 arg4 = static_cast< int >(val4);
21156 }
21157 {
21158 PyThreadState* __tstate = wxPyBeginAllowThreads();
21159 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
21160 wxPyEndAllowThreads(__tstate);
21161 if (PyErr_Occurred()) SWIG_fail;
21162 }
21163 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbookEvent, SWIG_POINTER_NEW | 0 );
21164 return resultobj;
21165 fail:
21166 return NULL;
21167 }
21168
21169
21170 SWIGINTERN PyObject *ListbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21171 PyObject *obj;
21172 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21173 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbookEvent, SWIG_NewClientData(obj));
21174 return SWIG_Py_Void();
21175 }
21176
21177 SWIGINTERN PyObject *ListbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21178 return SWIG_Python_InitShadowInstance(args);
21179 }
21180
21181 SWIGINTERN PyObject *_wrap_new_Choicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21182 PyObject *resultobj = 0;
21183 wxWindow *arg1 = (wxWindow *) 0 ;
21184 int arg2 ;
21185 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21186 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21187 wxSize const &arg4_defvalue = wxDefaultSize ;
21188 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21189 long arg5 = (long) 0 ;
21190 wxString const &arg6_defvalue = wxPyEmptyString ;
21191 wxString *arg6 = (wxString *) &arg6_defvalue ;
21192 wxChoicebook *result = 0 ;
21193 void *argp1 = 0 ;
21194 int res1 = 0 ;
21195 int val2 ;
21196 int ecode2 = 0 ;
21197 wxPoint temp3 ;
21198 wxSize temp4 ;
21199 long val5 ;
21200 int ecode5 = 0 ;
21201 bool temp6 = false ;
21202 PyObject * obj0 = 0 ;
21203 PyObject * obj1 = 0 ;
21204 PyObject * obj2 = 0 ;
21205 PyObject * obj3 = 0 ;
21206 PyObject * obj4 = 0 ;
21207 PyObject * obj5 = 0 ;
21208 char * kwnames[] = {
21209 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21210 };
21211
21212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21214 if (!SWIG_IsOK(res1)) {
21215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choicebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21216 }
21217 arg1 = reinterpret_cast< wxWindow * >(argp1);
21218 ecode2 = SWIG_AsVal_int(obj1, &val2);
21219 if (!SWIG_IsOK(ecode2)) {
21220 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choicebook" "', expected argument " "2"" of type '" "int""'");
21221 }
21222 arg2 = static_cast< int >(val2);
21223 if (obj2) {
21224 {
21225 arg3 = &temp3;
21226 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21227 }
21228 }
21229 if (obj3) {
21230 {
21231 arg4 = &temp4;
21232 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21233 }
21234 }
21235 if (obj4) {
21236 ecode5 = SWIG_AsVal_long(obj4, &val5);
21237 if (!SWIG_IsOK(ecode5)) {
21238 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Choicebook" "', expected argument " "5"" of type '" "long""'");
21239 }
21240 arg5 = static_cast< long >(val5);
21241 }
21242 if (obj5) {
21243 {
21244 arg6 = wxString_in_helper(obj5);
21245 if (arg6 == NULL) SWIG_fail;
21246 temp6 = true;
21247 }
21248 }
21249 {
21250 if (!wxPyCheckForApp()) SWIG_fail;
21251 PyThreadState* __tstate = wxPyBeginAllowThreads();
21252 result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21253 wxPyEndAllowThreads(__tstate);
21254 if (PyErr_Occurred()) SWIG_fail;
21255 }
21256 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_NEW | 0 );
21257 {
21258 if (temp6)
21259 delete arg6;
21260 }
21261 return resultobj;
21262 fail:
21263 {
21264 if (temp6)
21265 delete arg6;
21266 }
21267 return NULL;
21268 }
21269
21270
21271 SWIGINTERN PyObject *_wrap_new_PreChoicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21272 PyObject *resultobj = 0;
21273 wxChoicebook *result = 0 ;
21274
21275 if (!SWIG_Python_UnpackTuple(args,"new_PreChoicebook",0,0,0)) SWIG_fail;
21276 {
21277 if (!wxPyCheckForApp()) SWIG_fail;
21278 PyThreadState* __tstate = wxPyBeginAllowThreads();
21279 result = (wxChoicebook *)new wxChoicebook();
21280 wxPyEndAllowThreads(__tstate);
21281 if (PyErr_Occurred()) SWIG_fail;
21282 }
21283 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_OWN | 0 );
21284 return resultobj;
21285 fail:
21286 return NULL;
21287 }
21288
21289
21290 SWIGINTERN PyObject *_wrap_Choicebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21291 PyObject *resultobj = 0;
21292 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21293 wxWindow *arg2 = (wxWindow *) 0 ;
21294 int arg3 ;
21295 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21296 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21297 wxSize const &arg5_defvalue = wxDefaultSize ;
21298 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21299 long arg6 = (long) 0 ;
21300 wxString const &arg7_defvalue = wxPyEmptyString ;
21301 wxString *arg7 = (wxString *) &arg7_defvalue ;
21302 bool result;
21303 void *argp1 = 0 ;
21304 int res1 = 0 ;
21305 void *argp2 = 0 ;
21306 int res2 = 0 ;
21307 int val3 ;
21308 int ecode3 = 0 ;
21309 wxPoint temp4 ;
21310 wxSize temp5 ;
21311 long val6 ;
21312 int ecode6 = 0 ;
21313 bool temp7 = false ;
21314 PyObject * obj0 = 0 ;
21315 PyObject * obj1 = 0 ;
21316 PyObject * obj2 = 0 ;
21317 PyObject * obj3 = 0 ;
21318 PyObject * obj4 = 0 ;
21319 PyObject * obj5 = 0 ;
21320 PyObject * obj6 = 0 ;
21321 char * kwnames[] = {
21322 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21323 };
21324
21325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21327 if (!SWIG_IsOK(res1)) {
21328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_Create" "', expected argument " "1"" of type '" "wxChoicebook *""'");
21329 }
21330 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21331 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21332 if (!SWIG_IsOK(res2)) {
21333 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choicebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21334 }
21335 arg2 = reinterpret_cast< wxWindow * >(argp2);
21336 ecode3 = SWIG_AsVal_int(obj2, &val3);
21337 if (!SWIG_IsOK(ecode3)) {
21338 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choicebook_Create" "', expected argument " "3"" of type '" "int""'");
21339 }
21340 arg3 = static_cast< int >(val3);
21341 if (obj3) {
21342 {
21343 arg4 = &temp4;
21344 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21345 }
21346 }
21347 if (obj4) {
21348 {
21349 arg5 = &temp5;
21350 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21351 }
21352 }
21353 if (obj5) {
21354 ecode6 = SWIG_AsVal_long(obj5, &val6);
21355 if (!SWIG_IsOK(ecode6)) {
21356 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Choicebook_Create" "', expected argument " "6"" of type '" "long""'");
21357 }
21358 arg6 = static_cast< long >(val6);
21359 }
21360 if (obj6) {
21361 {
21362 arg7 = wxString_in_helper(obj6);
21363 if (arg7 == NULL) SWIG_fail;
21364 temp7 = true;
21365 }
21366 }
21367 {
21368 PyThreadState* __tstate = wxPyBeginAllowThreads();
21369 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21370 wxPyEndAllowThreads(__tstate);
21371 if (PyErr_Occurred()) SWIG_fail;
21372 }
21373 {
21374 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21375 }
21376 {
21377 if (temp7)
21378 delete arg7;
21379 }
21380 return resultobj;
21381 fail:
21382 {
21383 if (temp7)
21384 delete arg7;
21385 }
21386 return NULL;
21387 }
21388
21389
21390 SWIGINTERN PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21391 PyObject *resultobj = 0;
21392 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21393 wxChoice *result = 0 ;
21394 void *argp1 = 0 ;
21395 int res1 = 0 ;
21396 PyObject *swig_obj[1] ;
21397
21398 if (!args) SWIG_fail;
21399 swig_obj[0] = args;
21400 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21401 if (!SWIG_IsOK(res1)) {
21402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_GetChoiceCtrl" "', expected argument " "1"" of type '" "wxChoicebook const *""'");
21403 }
21404 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21405 {
21406 PyThreadState* __tstate = wxPyBeginAllowThreads();
21407 result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl();
21408 wxPyEndAllowThreads(__tstate);
21409 if (PyErr_Occurred()) SWIG_fail;
21410 }
21411 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, 0 | 0 );
21412 return resultobj;
21413 fail:
21414 return NULL;
21415 }
21416
21417
21418 SWIGINTERN PyObject *Choicebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21419 PyObject *obj;
21420 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21421 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebook, SWIG_NewClientData(obj));
21422 return SWIG_Py_Void();
21423 }
21424
21425 SWIGINTERN PyObject *Choicebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21426 return SWIG_Python_InitShadowInstance(args);
21427 }
21428
21429 SWIGINTERN PyObject *_wrap_new_ChoicebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21430 PyObject *resultobj = 0;
21431 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21432 int arg2 = (int) 0 ;
21433 int arg3 = (int) -1 ;
21434 int arg4 = (int) -1 ;
21435 wxChoicebookEvent *result = 0 ;
21436 int val1 ;
21437 int ecode1 = 0 ;
21438 int val2 ;
21439 int ecode2 = 0 ;
21440 int val3 ;
21441 int ecode3 = 0 ;
21442 int val4 ;
21443 int ecode4 = 0 ;
21444 PyObject * obj0 = 0 ;
21445 PyObject * obj1 = 0 ;
21446 PyObject * obj2 = 0 ;
21447 PyObject * obj3 = 0 ;
21448 char * kwnames[] = {
21449 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21450 };
21451
21452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21453 if (obj0) {
21454 ecode1 = SWIG_AsVal_int(obj0, &val1);
21455 if (!SWIG_IsOK(ecode1)) {
21456 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ChoicebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21457 }
21458 arg1 = static_cast< wxEventType >(val1);
21459 }
21460 if (obj1) {
21461 ecode2 = SWIG_AsVal_int(obj1, &val2);
21462 if (!SWIG_IsOK(ecode2)) {
21463 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ChoicebookEvent" "', expected argument " "2"" of type '" "int""'");
21464 }
21465 arg2 = static_cast< int >(val2);
21466 }
21467 if (obj2) {
21468 ecode3 = SWIG_AsVal_int(obj2, &val3);
21469 if (!SWIG_IsOK(ecode3)) {
21470 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ChoicebookEvent" "', expected argument " "3"" of type '" "int""'");
21471 }
21472 arg3 = static_cast< int >(val3);
21473 }
21474 if (obj3) {
21475 ecode4 = SWIG_AsVal_int(obj3, &val4);
21476 if (!SWIG_IsOK(ecode4)) {
21477 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ChoicebookEvent" "', expected argument " "4"" of type '" "int""'");
21478 }
21479 arg4 = static_cast< int >(val4);
21480 }
21481 {
21482 PyThreadState* __tstate = wxPyBeginAllowThreads();
21483 result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4);
21484 wxPyEndAllowThreads(__tstate);
21485 if (PyErr_Occurred()) SWIG_fail;
21486 }
21487 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebookEvent, SWIG_POINTER_NEW | 0 );
21488 return resultobj;
21489 fail:
21490 return NULL;
21491 }
21492
21493
21494 SWIGINTERN PyObject *ChoicebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21495 PyObject *obj;
21496 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21497 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebookEvent, SWIG_NewClientData(obj));
21498 return SWIG_Py_Void();
21499 }
21500
21501 SWIGINTERN PyObject *ChoicebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21502 return SWIG_Python_InitShadowInstance(args);
21503 }
21504
21505 SWIGINTERN PyObject *_wrap_new_Treebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21506 PyObject *resultobj = 0;
21507 wxWindow *arg1 = (wxWindow *) 0 ;
21508 int arg2 ;
21509 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21510 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21511 wxSize const &arg4_defvalue = wxDefaultSize ;
21512 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21513 long arg5 = (long) wxBK_DEFAULT ;
21514 wxString const &arg6_defvalue = wxPyEmptyString ;
21515 wxString *arg6 = (wxString *) &arg6_defvalue ;
21516 wxTreebook *result = 0 ;
21517 void *argp1 = 0 ;
21518 int res1 = 0 ;
21519 int val2 ;
21520 int ecode2 = 0 ;
21521 wxPoint temp3 ;
21522 wxSize temp4 ;
21523 long val5 ;
21524 int ecode5 = 0 ;
21525 bool temp6 = false ;
21526 PyObject * obj0 = 0 ;
21527 PyObject * obj1 = 0 ;
21528 PyObject * obj2 = 0 ;
21529 PyObject * obj3 = 0 ;
21530 PyObject * obj4 = 0 ;
21531 PyObject * obj5 = 0 ;
21532 char * kwnames[] = {
21533 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21534 };
21535
21536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Treebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21538 if (!SWIG_IsOK(res1)) {
21539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Treebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21540 }
21541 arg1 = reinterpret_cast< wxWindow * >(argp1);
21542 ecode2 = SWIG_AsVal_int(obj1, &val2);
21543 if (!SWIG_IsOK(ecode2)) {
21544 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Treebook" "', expected argument " "2"" of type '" "int""'");
21545 }
21546 arg2 = static_cast< int >(val2);
21547 if (obj2) {
21548 {
21549 arg3 = &temp3;
21550 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21551 }
21552 }
21553 if (obj3) {
21554 {
21555 arg4 = &temp4;
21556 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21557 }
21558 }
21559 if (obj4) {
21560 ecode5 = SWIG_AsVal_long(obj4, &val5);
21561 if (!SWIG_IsOK(ecode5)) {
21562 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Treebook" "', expected argument " "5"" of type '" "long""'");
21563 }
21564 arg5 = static_cast< long >(val5);
21565 }
21566 if (obj5) {
21567 {
21568 arg6 = wxString_in_helper(obj5);
21569 if (arg6 == NULL) SWIG_fail;
21570 temp6 = true;
21571 }
21572 }
21573 {
21574 if (!wxPyCheckForApp()) SWIG_fail;
21575 PyThreadState* __tstate = wxPyBeginAllowThreads();
21576 result = (wxTreebook *)new wxTreebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21577 wxPyEndAllowThreads(__tstate);
21578 if (PyErr_Occurred()) SWIG_fail;
21579 }
21580 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_NEW | 0 );
21581 {
21582 if (temp6)
21583 delete arg6;
21584 }
21585 return resultobj;
21586 fail:
21587 {
21588 if (temp6)
21589 delete arg6;
21590 }
21591 return NULL;
21592 }
21593
21594
21595 SWIGINTERN PyObject *_wrap_new_PreTreebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21596 PyObject *resultobj = 0;
21597 wxTreebook *result = 0 ;
21598
21599 if (!SWIG_Python_UnpackTuple(args,"new_PreTreebook",0,0,0)) SWIG_fail;
21600 {
21601 if (!wxPyCheckForApp()) SWIG_fail;
21602 PyThreadState* __tstate = wxPyBeginAllowThreads();
21603 result = (wxTreebook *)new wxTreebook();
21604 wxPyEndAllowThreads(__tstate);
21605 if (PyErr_Occurred()) SWIG_fail;
21606 }
21607 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_OWN | 0 );
21608 return resultobj;
21609 fail:
21610 return NULL;
21611 }
21612
21613
21614 SWIGINTERN PyObject *_wrap_Treebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21615 PyObject *resultobj = 0;
21616 wxTreebook *arg1 = (wxTreebook *) 0 ;
21617 wxWindow *arg2 = (wxWindow *) 0 ;
21618 int arg3 ;
21619 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21620 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21621 wxSize const &arg5_defvalue = wxDefaultSize ;
21622 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21623 long arg6 = (long) wxBK_DEFAULT ;
21624 wxString const &arg7_defvalue = wxPyEmptyString ;
21625 wxString *arg7 = (wxString *) &arg7_defvalue ;
21626 bool result;
21627 void *argp1 = 0 ;
21628 int res1 = 0 ;
21629 void *argp2 = 0 ;
21630 int res2 = 0 ;
21631 int val3 ;
21632 int ecode3 = 0 ;
21633 wxPoint temp4 ;
21634 wxSize temp5 ;
21635 long val6 ;
21636 int ecode6 = 0 ;
21637 bool temp7 = false ;
21638 PyObject * obj0 = 0 ;
21639 PyObject * obj1 = 0 ;
21640 PyObject * obj2 = 0 ;
21641 PyObject * obj3 = 0 ;
21642 PyObject * obj4 = 0 ;
21643 PyObject * obj5 = 0 ;
21644 PyObject * obj6 = 0 ;
21645 char * kwnames[] = {
21646 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21647 };
21648
21649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Treebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21651 if (!SWIG_IsOK(res1)) {
21652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_Create" "', expected argument " "1"" of type '" "wxTreebook *""'");
21653 }
21654 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21655 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21656 if (!SWIG_IsOK(res2)) {
21657 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21658 }
21659 arg2 = reinterpret_cast< wxWindow * >(argp2);
21660 ecode3 = SWIG_AsVal_int(obj2, &val3);
21661 if (!SWIG_IsOK(ecode3)) {
21662 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_Create" "', expected argument " "3"" of type '" "int""'");
21663 }
21664 arg3 = static_cast< int >(val3);
21665 if (obj3) {
21666 {
21667 arg4 = &temp4;
21668 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21669 }
21670 }
21671 if (obj4) {
21672 {
21673 arg5 = &temp5;
21674 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21675 }
21676 }
21677 if (obj5) {
21678 ecode6 = SWIG_AsVal_long(obj5, &val6);
21679 if (!SWIG_IsOK(ecode6)) {
21680 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_Create" "', expected argument " "6"" of type '" "long""'");
21681 }
21682 arg6 = static_cast< long >(val6);
21683 }
21684 if (obj6) {
21685 {
21686 arg7 = wxString_in_helper(obj6);
21687 if (arg7 == NULL) SWIG_fail;
21688 temp7 = true;
21689 }
21690 }
21691 {
21692 PyThreadState* __tstate = wxPyBeginAllowThreads();
21693 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21694 wxPyEndAllowThreads(__tstate);
21695 if (PyErr_Occurred()) SWIG_fail;
21696 }
21697 {
21698 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21699 }
21700 {
21701 if (temp7)
21702 delete arg7;
21703 }
21704 return resultobj;
21705 fail:
21706 {
21707 if (temp7)
21708 delete arg7;
21709 }
21710 return NULL;
21711 }
21712
21713
21714 SWIGINTERN PyObject *_wrap_Treebook_InsertSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21715 PyObject *resultobj = 0;
21716 wxTreebook *arg1 = (wxTreebook *) 0 ;
21717 size_t arg2 ;
21718 wxWindow *arg3 = (wxWindow *) 0 ;
21719 wxString *arg4 = 0 ;
21720 bool arg5 = (bool) false ;
21721 int arg6 = (int) wxNOT_FOUND ;
21722 bool result;
21723 void *argp1 = 0 ;
21724 int res1 = 0 ;
21725 size_t val2 ;
21726 int ecode2 = 0 ;
21727 void *argp3 = 0 ;
21728 int res3 = 0 ;
21729 bool temp4 = false ;
21730 bool val5 ;
21731 int ecode5 = 0 ;
21732 int val6 ;
21733 int ecode6 = 0 ;
21734 PyObject * obj0 = 0 ;
21735 PyObject * obj1 = 0 ;
21736 PyObject * obj2 = 0 ;
21737 PyObject * obj3 = 0 ;
21738 PyObject * obj4 = 0 ;
21739 PyObject * obj5 = 0 ;
21740 char * kwnames[] = {
21741 (char *) "self",(char *) "pos",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21742 };
21743
21744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Treebook_InsertSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21745 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21746 if (!SWIG_IsOK(res1)) {
21747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_InsertSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21748 }
21749 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21750 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21751 if (!SWIG_IsOK(ecode2)) {
21752 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_InsertSubPage" "', expected argument " "2"" of type '" "size_t""'");
21753 }
21754 arg2 = static_cast< size_t >(val2);
21755 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
21756 if (!SWIG_IsOK(res3)) {
21757 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Treebook_InsertSubPage" "', expected argument " "3"" of type '" "wxWindow *""'");
21758 }
21759 arg3 = reinterpret_cast< wxWindow * >(argp3);
21760 {
21761 arg4 = wxString_in_helper(obj3);
21762 if (arg4 == NULL) SWIG_fail;
21763 temp4 = true;
21764 }
21765 if (obj4) {
21766 ecode5 = SWIG_AsVal_bool(obj4, &val5);
21767 if (!SWIG_IsOK(ecode5)) {
21768 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_InsertSubPage" "', expected argument " "5"" of type '" "bool""'");
21769 }
21770 arg5 = static_cast< bool >(val5);
21771 }
21772 if (obj5) {
21773 ecode6 = SWIG_AsVal_int(obj5, &val6);
21774 if (!SWIG_IsOK(ecode6)) {
21775 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_InsertSubPage" "', expected argument " "6"" of type '" "int""'");
21776 }
21777 arg6 = static_cast< int >(val6);
21778 }
21779 {
21780 PyThreadState* __tstate = wxPyBeginAllowThreads();
21781 result = (bool)(arg1)->InsertSubPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
21782 wxPyEndAllowThreads(__tstate);
21783 if (PyErr_Occurred()) SWIG_fail;
21784 }
21785 {
21786 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21787 }
21788 {
21789 if (temp4)
21790 delete arg4;
21791 }
21792 return resultobj;
21793 fail:
21794 {
21795 if (temp4)
21796 delete arg4;
21797 }
21798 return NULL;
21799 }
21800
21801
21802 SWIGINTERN PyObject *_wrap_Treebook_AddSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21803 PyObject *resultobj = 0;
21804 wxTreebook *arg1 = (wxTreebook *) 0 ;
21805 wxWindow *arg2 = (wxWindow *) 0 ;
21806 wxString *arg3 = 0 ;
21807 bool arg4 = (bool) false ;
21808 int arg5 = (int) wxNOT_FOUND ;
21809 bool result;
21810 void *argp1 = 0 ;
21811 int res1 = 0 ;
21812 void *argp2 = 0 ;
21813 int res2 = 0 ;
21814 bool temp3 = false ;
21815 bool val4 ;
21816 int ecode4 = 0 ;
21817 int val5 ;
21818 int ecode5 = 0 ;
21819 PyObject * obj0 = 0 ;
21820 PyObject * obj1 = 0 ;
21821 PyObject * obj2 = 0 ;
21822 PyObject * obj3 = 0 ;
21823 PyObject * obj4 = 0 ;
21824 char * kwnames[] = {
21825 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21826 };
21827
21828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Treebook_AddSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
21829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21830 if (!SWIG_IsOK(res1)) {
21831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_AddSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21832 }
21833 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21834 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21835 if (!SWIG_IsOK(res2)) {
21836 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_AddSubPage" "', expected argument " "2"" of type '" "wxWindow *""'");
21837 }
21838 arg2 = reinterpret_cast< wxWindow * >(argp2);
21839 {
21840 arg3 = wxString_in_helper(obj2);
21841 if (arg3 == NULL) SWIG_fail;
21842 temp3 = true;
21843 }
21844 if (obj3) {
21845 ecode4 = SWIG_AsVal_bool(obj3, &val4);
21846 if (!SWIG_IsOK(ecode4)) {
21847 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Treebook_AddSubPage" "', expected argument " "4"" of type '" "bool""'");
21848 }
21849 arg4 = static_cast< bool >(val4);
21850 }
21851 if (obj4) {
21852 ecode5 = SWIG_AsVal_int(obj4, &val5);
21853 if (!SWIG_IsOK(ecode5)) {
21854 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_AddSubPage" "', expected argument " "5"" of type '" "int""'");
21855 }
21856 arg5 = static_cast< int >(val5);
21857 }
21858 {
21859 PyThreadState* __tstate = wxPyBeginAllowThreads();
21860 result = (bool)(arg1)->AddSubPage(arg2,(wxString const &)*arg3,arg4,arg5);
21861 wxPyEndAllowThreads(__tstate);
21862 if (PyErr_Occurred()) SWIG_fail;
21863 }
21864 {
21865 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21866 }
21867 {
21868 if (temp3)
21869 delete arg3;
21870 }
21871 return resultobj;
21872 fail:
21873 {
21874 if (temp3)
21875 delete arg3;
21876 }
21877 return NULL;
21878 }
21879
21880
21881 SWIGINTERN PyObject *_wrap_Treebook_IsNodeExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21882 PyObject *resultobj = 0;
21883 wxTreebook *arg1 = (wxTreebook *) 0 ;
21884 size_t arg2 ;
21885 bool result;
21886 void *argp1 = 0 ;
21887 int res1 = 0 ;
21888 size_t val2 ;
21889 int ecode2 = 0 ;
21890 PyObject * obj0 = 0 ;
21891 PyObject * obj1 = 0 ;
21892 char * kwnames[] = {
21893 (char *) "self",(char *) "pos", NULL
21894 };
21895
21896 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_IsNodeExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
21897 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21898 if (!SWIG_IsOK(res1)) {
21899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "1"" of type '" "wxTreebook const *""'");
21900 }
21901 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21902 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21903 if (!SWIG_IsOK(ecode2)) {
21904 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "2"" of type '" "size_t""'");
21905 }
21906 arg2 = static_cast< size_t >(val2);
21907 {
21908 PyThreadState* __tstate = wxPyBeginAllowThreads();
21909 result = (bool)((wxTreebook const *)arg1)->IsNodeExpanded(arg2);
21910 wxPyEndAllowThreads(__tstate);
21911 if (PyErr_Occurred()) SWIG_fail;
21912 }
21913 {
21914 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21915 }
21916 return resultobj;
21917 fail:
21918 return NULL;
21919 }
21920
21921
21922 SWIGINTERN PyObject *_wrap_Treebook_ExpandNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21923 PyObject *resultobj = 0;
21924 wxTreebook *arg1 = (wxTreebook *) 0 ;
21925 size_t arg2 ;
21926 bool arg3 = (bool) true ;
21927 bool result;
21928 void *argp1 = 0 ;
21929 int res1 = 0 ;
21930 size_t val2 ;
21931 int ecode2 = 0 ;
21932 bool val3 ;
21933 int ecode3 = 0 ;
21934 PyObject * obj0 = 0 ;
21935 PyObject * obj1 = 0 ;
21936 PyObject * obj2 = 0 ;
21937 char * kwnames[] = {
21938 (char *) "self",(char *) "pos",(char *) "expand", NULL
21939 };
21940
21941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Treebook_ExpandNode",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21943 if (!SWIG_IsOK(res1)) {
21944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_ExpandNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
21945 }
21946 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21947 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21948 if (!SWIG_IsOK(ecode2)) {
21949 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_ExpandNode" "', expected argument " "2"" of type '" "size_t""'");
21950 }
21951 arg2 = static_cast< size_t >(val2);
21952 if (obj2) {
21953 ecode3 = SWIG_AsVal_bool(obj2, &val3);
21954 if (!SWIG_IsOK(ecode3)) {
21955 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_ExpandNode" "', expected argument " "3"" of type '" "bool""'");
21956 }
21957 arg3 = static_cast< bool >(val3);
21958 }
21959 {
21960 PyThreadState* __tstate = wxPyBeginAllowThreads();
21961 result = (bool)(arg1)->ExpandNode(arg2,arg3);
21962 wxPyEndAllowThreads(__tstate);
21963 if (PyErr_Occurred()) SWIG_fail;
21964 }
21965 {
21966 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21967 }
21968 return resultobj;
21969 fail:
21970 return NULL;
21971 }
21972
21973
21974 SWIGINTERN PyObject *_wrap_Treebook_CollapseNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21975 PyObject *resultobj = 0;
21976 wxTreebook *arg1 = (wxTreebook *) 0 ;
21977 size_t arg2 ;
21978 bool result;
21979 void *argp1 = 0 ;
21980 int res1 = 0 ;
21981 size_t val2 ;
21982 int ecode2 = 0 ;
21983 PyObject * obj0 = 0 ;
21984 PyObject * obj1 = 0 ;
21985 char * kwnames[] = {
21986 (char *) "self",(char *) "pos", NULL
21987 };
21988
21989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_CollapseNode",kwnames,&obj0,&obj1)) SWIG_fail;
21990 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21991 if (!SWIG_IsOK(res1)) {
21992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_CollapseNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
21993 }
21994 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21995 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21996 if (!SWIG_IsOK(ecode2)) {
21997 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_CollapseNode" "', expected argument " "2"" of type '" "size_t""'");
21998 }
21999 arg2 = static_cast< size_t >(val2);
22000 {
22001 PyThreadState* __tstate = wxPyBeginAllowThreads();
22002 result = (bool)(arg1)->CollapseNode(arg2);
22003 wxPyEndAllowThreads(__tstate);
22004 if (PyErr_Occurred()) SWIG_fail;
22005 }
22006 {
22007 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22008 }
22009 return resultobj;
22010 fail:
22011 return NULL;
22012 }
22013
22014
22015 SWIGINTERN PyObject *_wrap_Treebook_GetPageParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22016 PyObject *resultobj = 0;
22017 wxTreebook *arg1 = (wxTreebook *) 0 ;
22018 size_t arg2 ;
22019 int result;
22020 void *argp1 = 0 ;
22021 int res1 = 0 ;
22022 size_t val2 ;
22023 int ecode2 = 0 ;
22024 PyObject * obj0 = 0 ;
22025 PyObject * obj1 = 0 ;
22026 char * kwnames[] = {
22027 (char *) "self",(char *) "pos", NULL
22028 };
22029
22030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_GetPageParent",kwnames,&obj0,&obj1)) SWIG_fail;
22031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22032 if (!SWIG_IsOK(res1)) {
22033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetPageParent" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22034 }
22035 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22036 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22037 if (!SWIG_IsOK(ecode2)) {
22038 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_GetPageParent" "', expected argument " "2"" of type '" "size_t""'");
22039 }
22040 arg2 = static_cast< size_t >(val2);
22041 {
22042 PyThreadState* __tstate = wxPyBeginAllowThreads();
22043 result = (int)((wxTreebook const *)arg1)->GetPageParent(arg2);
22044 wxPyEndAllowThreads(__tstate);
22045 if (PyErr_Occurred()) SWIG_fail;
22046 }
22047 resultobj = SWIG_From_int(static_cast< int >(result));
22048 return resultobj;
22049 fail:
22050 return NULL;
22051 }
22052
22053
22054 SWIGINTERN PyObject *_wrap_Treebook_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22055 PyObject *resultobj = 0;
22056 wxTreebook *arg1 = (wxTreebook *) 0 ;
22057 wxPyTreeCtrl *result = 0 ;
22058 void *argp1 = 0 ;
22059 int res1 = 0 ;
22060 PyObject *swig_obj[1] ;
22061
22062 if (!args) SWIG_fail;
22063 swig_obj[0] = args;
22064 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22065 if (!SWIG_IsOK(res1)) {
22066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetTreeCtrl" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22067 }
22068 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22069 {
22070 PyThreadState* __tstate = wxPyBeginAllowThreads();
22071 result = (wxPyTreeCtrl *)((wxTreebook const *)arg1)->GetTreeCtrl();
22072 wxPyEndAllowThreads(__tstate);
22073 if (PyErr_Occurred()) SWIG_fail;
22074 }
22075 {
22076 resultobj = wxPyMake_wxObject(result, (bool)0);
22077 }
22078 return resultobj;
22079 fail:
22080 return NULL;
22081 }
22082
22083
22084 SWIGINTERN PyObject *Treebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22085 PyObject *obj;
22086 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22087 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebook, SWIG_NewClientData(obj));
22088 return SWIG_Py_Void();
22089 }
22090
22091 SWIGINTERN PyObject *Treebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22092 return SWIG_Python_InitShadowInstance(args);
22093 }
22094
22095 SWIGINTERN PyObject *_wrap_new_TreebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22096 PyObject *resultobj = 0;
22097 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22098 int arg2 = (int) 0 ;
22099 int arg3 = (int) wxNOT_FOUND ;
22100 int arg4 = (int) wxNOT_FOUND ;
22101 wxTreebookEvent *result = 0 ;
22102 int val1 ;
22103 int ecode1 = 0 ;
22104 int val2 ;
22105 int ecode2 = 0 ;
22106 int val3 ;
22107 int ecode3 = 0 ;
22108 int val4 ;
22109 int ecode4 = 0 ;
22110 PyObject * obj0 = 0 ;
22111 PyObject * obj1 = 0 ;
22112 PyObject * obj2 = 0 ;
22113 PyObject * obj3 = 0 ;
22114 char * kwnames[] = {
22115 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22116 };
22117
22118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TreebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22119 if (obj0) {
22120 ecode1 = SWIG_AsVal_int(obj0, &val1);
22121 if (!SWIG_IsOK(ecode1)) {
22122 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22123 }
22124 arg1 = static_cast< wxEventType >(val1);
22125 }
22126 if (obj1) {
22127 ecode2 = SWIG_AsVal_int(obj1, &val2);
22128 if (!SWIG_IsOK(ecode2)) {
22129 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreebookEvent" "', expected argument " "2"" of type '" "int""'");
22130 }
22131 arg2 = static_cast< int >(val2);
22132 }
22133 if (obj2) {
22134 ecode3 = SWIG_AsVal_int(obj2, &val3);
22135 if (!SWIG_IsOK(ecode3)) {
22136 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TreebookEvent" "', expected argument " "3"" of type '" "int""'");
22137 }
22138 arg3 = static_cast< int >(val3);
22139 }
22140 if (obj3) {
22141 ecode4 = SWIG_AsVal_int(obj3, &val4);
22142 if (!SWIG_IsOK(ecode4)) {
22143 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TreebookEvent" "', expected argument " "4"" of type '" "int""'");
22144 }
22145 arg4 = static_cast< int >(val4);
22146 }
22147 {
22148 PyThreadState* __tstate = wxPyBeginAllowThreads();
22149 result = (wxTreebookEvent *)new wxTreebookEvent(arg1,arg2,arg3,arg4);
22150 wxPyEndAllowThreads(__tstate);
22151 if (PyErr_Occurred()) SWIG_fail;
22152 }
22153 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebookEvent, SWIG_POINTER_NEW | 0 );
22154 return resultobj;
22155 fail:
22156 return NULL;
22157 }
22158
22159
22160 SWIGINTERN PyObject *TreebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22161 PyObject *obj;
22162 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22163 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebookEvent, SWIG_NewClientData(obj));
22164 return SWIG_Py_Void();
22165 }
22166
22167 SWIGINTERN PyObject *TreebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22168 return SWIG_Python_InitShadowInstance(args);
22169 }
22170
22171 SWIGINTERN PyObject *_wrap_new_Toolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22172 PyObject *resultobj = 0;
22173 wxWindow *arg1 = (wxWindow *) 0 ;
22174 int arg2 ;
22175 wxPoint const &arg3_defvalue = wxDefaultPosition ;
22176 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
22177 wxSize const &arg4_defvalue = wxDefaultSize ;
22178 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
22179 long arg5 = (long) wxBK_DEFAULT ;
22180 wxString const &arg6_defvalue = wxPyEmptyString ;
22181 wxString *arg6 = (wxString *) &arg6_defvalue ;
22182 wxToolbook *result = 0 ;
22183 void *argp1 = 0 ;
22184 int res1 = 0 ;
22185 int val2 ;
22186 int ecode2 = 0 ;
22187 wxPoint temp3 ;
22188 wxSize temp4 ;
22189 long val5 ;
22190 int ecode5 = 0 ;
22191 bool temp6 = false ;
22192 PyObject * obj0 = 0 ;
22193 PyObject * obj1 = 0 ;
22194 PyObject * obj2 = 0 ;
22195 PyObject * obj3 = 0 ;
22196 PyObject * obj4 = 0 ;
22197 PyObject * obj5 = 0 ;
22198 char * kwnames[] = {
22199 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22200 };
22201
22202 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Toolbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22203 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
22204 if (!SWIG_IsOK(res1)) {
22205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Toolbook" "', expected argument " "1"" of type '" "wxWindow *""'");
22206 }
22207 arg1 = reinterpret_cast< wxWindow * >(argp1);
22208 ecode2 = SWIG_AsVal_int(obj1, &val2);
22209 if (!SWIG_IsOK(ecode2)) {
22210 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Toolbook" "', expected argument " "2"" of type '" "int""'");
22211 }
22212 arg2 = static_cast< int >(val2);
22213 if (obj2) {
22214 {
22215 arg3 = &temp3;
22216 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
22217 }
22218 }
22219 if (obj3) {
22220 {
22221 arg4 = &temp4;
22222 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
22223 }
22224 }
22225 if (obj4) {
22226 ecode5 = SWIG_AsVal_long(obj4, &val5);
22227 if (!SWIG_IsOK(ecode5)) {
22228 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Toolbook" "', expected argument " "5"" of type '" "long""'");
22229 }
22230 arg5 = static_cast< long >(val5);
22231 }
22232 if (obj5) {
22233 {
22234 arg6 = wxString_in_helper(obj5);
22235 if (arg6 == NULL) SWIG_fail;
22236 temp6 = true;
22237 }
22238 }
22239 {
22240 PyThreadState* __tstate = wxPyBeginAllowThreads();
22241 result = (wxToolbook *)new wxToolbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
22242 wxPyEndAllowThreads(__tstate);
22243 if (PyErr_Occurred()) SWIG_fail;
22244 }
22245 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_NEW | 0 );
22246 {
22247 if (temp6)
22248 delete arg6;
22249 }
22250 return resultobj;
22251 fail:
22252 {
22253 if (temp6)
22254 delete arg6;
22255 }
22256 return NULL;
22257 }
22258
22259
22260 SWIGINTERN PyObject *_wrap_new_PreToolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22261 PyObject *resultobj = 0;
22262 wxToolbook *result = 0 ;
22263
22264 if (!SWIG_Python_UnpackTuple(args,"new_PreToolbook",0,0,0)) SWIG_fail;
22265 {
22266 PyThreadState* __tstate = wxPyBeginAllowThreads();
22267 result = (wxToolbook *)new wxToolbook();
22268 wxPyEndAllowThreads(__tstate);
22269 if (PyErr_Occurred()) SWIG_fail;
22270 }
22271 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_OWN | 0 );
22272 return resultobj;
22273 fail:
22274 return NULL;
22275 }
22276
22277
22278 SWIGINTERN PyObject *_wrap_Toolbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22279 PyObject *resultobj = 0;
22280 wxToolbook *arg1 = (wxToolbook *) 0 ;
22281 wxWindow *arg2 = (wxWindow *) 0 ;
22282 int arg3 ;
22283 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22284 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22285 wxSize const &arg5_defvalue = wxDefaultSize ;
22286 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22287 long arg6 = (long) 0 ;
22288 wxString const &arg7_defvalue = wxEmptyString ;
22289 wxString *arg7 = (wxString *) &arg7_defvalue ;
22290 bool result;
22291 void *argp1 = 0 ;
22292 int res1 = 0 ;
22293 void *argp2 = 0 ;
22294 int res2 = 0 ;
22295 int val3 ;
22296 int ecode3 = 0 ;
22297 wxPoint temp4 ;
22298 wxSize temp5 ;
22299 long val6 ;
22300 int ecode6 = 0 ;
22301 bool temp7 = false ;
22302 PyObject * obj0 = 0 ;
22303 PyObject * obj1 = 0 ;
22304 PyObject * obj2 = 0 ;
22305 PyObject * obj3 = 0 ;
22306 PyObject * obj4 = 0 ;
22307 PyObject * obj5 = 0 ;
22308 PyObject * obj6 = 0 ;
22309 char * kwnames[] = {
22310 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22311 };
22312
22313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Toolbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22314 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22315 if (!SWIG_IsOK(res1)) {
22316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Create" "', expected argument " "1"" of type '" "wxToolbook *""'");
22317 }
22318 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22319 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22320 if (!SWIG_IsOK(res2)) {
22321 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Toolbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
22322 }
22323 arg2 = reinterpret_cast< wxWindow * >(argp2);
22324 ecode3 = SWIG_AsVal_int(obj2, &val3);
22325 if (!SWIG_IsOK(ecode3)) {
22326 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Toolbook_Create" "', expected argument " "3"" of type '" "int""'");
22327 }
22328 arg3 = static_cast< int >(val3);
22329 if (obj3) {
22330 {
22331 arg4 = &temp4;
22332 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
22333 }
22334 }
22335 if (obj4) {
22336 {
22337 arg5 = &temp5;
22338 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
22339 }
22340 }
22341 if (obj5) {
22342 ecode6 = SWIG_AsVal_long(obj5, &val6);
22343 if (!SWIG_IsOK(ecode6)) {
22344 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Toolbook_Create" "', expected argument " "6"" of type '" "long""'");
22345 }
22346 arg6 = static_cast< long >(val6);
22347 }
22348 if (obj6) {
22349 {
22350 arg7 = wxString_in_helper(obj6);
22351 if (arg7 == NULL) SWIG_fail;
22352 temp7 = true;
22353 }
22354 }
22355 {
22356 PyThreadState* __tstate = wxPyBeginAllowThreads();
22357 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22358 wxPyEndAllowThreads(__tstate);
22359 if (PyErr_Occurred()) SWIG_fail;
22360 }
22361 {
22362 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22363 }
22364 {
22365 if (temp7)
22366 delete arg7;
22367 }
22368 return resultobj;
22369 fail:
22370 {
22371 if (temp7)
22372 delete arg7;
22373 }
22374 return NULL;
22375 }
22376
22377
22378 SWIGINTERN PyObject *_wrap_Toolbook_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22379 PyObject *resultobj = 0;
22380 wxToolbook *arg1 = (wxToolbook *) 0 ;
22381 wxToolBarBase *result = 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_GetToolBar" "', expected argument " "1"" of type '" "wxToolbook const *""'");
22391 }
22392 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22393 {
22394 PyThreadState* __tstate = wxPyBeginAllowThreads();
22395 result = (wxToolBarBase *)((wxToolbook const *)arg1)->GetToolBar();
22396 wxPyEndAllowThreads(__tstate);
22397 if (PyErr_Occurred()) SWIG_fail;
22398 }
22399 {
22400 resultobj = wxPyMake_wxObject(result, (bool)0);
22401 }
22402 return resultobj;
22403 fail:
22404 return NULL;
22405 }
22406
22407
22408 SWIGINTERN PyObject *_wrap_Toolbook_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22409 PyObject *resultobj = 0;
22410 wxToolbook *arg1 = (wxToolbook *) 0 ;
22411 void *argp1 = 0 ;
22412 int res1 = 0 ;
22413 PyObject *swig_obj[1] ;
22414
22415 if (!args) SWIG_fail;
22416 swig_obj[0] = args;
22417 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22418 if (!SWIG_IsOK(res1)) {
22419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Realize" "', expected argument " "1"" of type '" "wxToolbook *""'");
22420 }
22421 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22422 {
22423 PyThreadState* __tstate = wxPyBeginAllowThreads();
22424 (arg1)->Realize();
22425 wxPyEndAllowThreads(__tstate);
22426 if (PyErr_Occurred()) SWIG_fail;
22427 }
22428 resultobj = SWIG_Py_Void();
22429 return resultobj;
22430 fail:
22431 return NULL;
22432 }
22433
22434
22435 SWIGINTERN PyObject *Toolbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22436 PyObject *obj;
22437 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22438 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbook, SWIG_NewClientData(obj));
22439 return SWIG_Py_Void();
22440 }
22441
22442 SWIGINTERN PyObject *Toolbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22443 return SWIG_Python_InitShadowInstance(args);
22444 }
22445
22446 SWIGINTERN PyObject *_wrap_new_ToolbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22447 PyObject *resultobj = 0;
22448 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22449 int arg2 = (int) 0 ;
22450 int arg3 = (int) wxNOT_FOUND ;
22451 int arg4 = (int) wxNOT_FOUND ;
22452 wxToolbookEvent *result = 0 ;
22453 int val1 ;
22454 int ecode1 = 0 ;
22455 int val2 ;
22456 int ecode2 = 0 ;
22457 int val3 ;
22458 int ecode3 = 0 ;
22459 int val4 ;
22460 int ecode4 = 0 ;
22461 PyObject * obj0 = 0 ;
22462 PyObject * obj1 = 0 ;
22463 PyObject * obj2 = 0 ;
22464 PyObject * obj3 = 0 ;
22465 char * kwnames[] = {
22466 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22467 };
22468
22469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ToolbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22470 if (obj0) {
22471 ecode1 = SWIG_AsVal_int(obj0, &val1);
22472 if (!SWIG_IsOK(ecode1)) {
22473 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ToolbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22474 }
22475 arg1 = static_cast< wxEventType >(val1);
22476 }
22477 if (obj1) {
22478 ecode2 = SWIG_AsVal_int(obj1, &val2);
22479 if (!SWIG_IsOK(ecode2)) {
22480 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolbookEvent" "', expected argument " "2"" of type '" "int""'");
22481 }
22482 arg2 = static_cast< int >(val2);
22483 }
22484 if (obj2) {
22485 ecode3 = SWIG_AsVal_int(obj2, &val3);
22486 if (!SWIG_IsOK(ecode3)) {
22487 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ToolbookEvent" "', expected argument " "3"" of type '" "int""'");
22488 }
22489 arg3 = static_cast< int >(val3);
22490 }
22491 if (obj3) {
22492 ecode4 = SWIG_AsVal_int(obj3, &val4);
22493 if (!SWIG_IsOK(ecode4)) {
22494 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ToolbookEvent" "', expected argument " "4"" of type '" "int""'");
22495 }
22496 arg4 = static_cast< int >(val4);
22497 }
22498 {
22499 PyThreadState* __tstate = wxPyBeginAllowThreads();
22500 result = (wxToolbookEvent *)new wxToolbookEvent(arg1,arg2,arg3,arg4);
22501 wxPyEndAllowThreads(__tstate);
22502 if (PyErr_Occurred()) SWIG_fail;
22503 }
22504 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbookEvent, SWIG_POINTER_NEW | 0 );
22505 return resultobj;
22506 fail:
22507 return NULL;
22508 }
22509
22510
22511 SWIGINTERN PyObject *ToolbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22512 PyObject *obj;
22513 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22514 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbookEvent, SWIG_NewClientData(obj));
22515 return SWIG_Py_Void();
22516 }
22517
22518 SWIGINTERN PyObject *ToolbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22519 return SWIG_Python_InitShadowInstance(args);
22520 }
22521
22522 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22523 PyObject *resultobj = 0;
22524 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22525 int result;
22526 void *argp1 = 0 ;
22527 int res1 = 0 ;
22528 PyObject *swig_obj[1] ;
22529
22530 if (!args) SWIG_fail;
22531 swig_obj[0] = args;
22532 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22533 if (!SWIG_IsOK(res1)) {
22534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetId" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22535 }
22536 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22537 {
22538 PyThreadState* __tstate = wxPyBeginAllowThreads();
22539 result = (int)(arg1)->GetId();
22540 wxPyEndAllowThreads(__tstate);
22541 if (PyErr_Occurred()) SWIG_fail;
22542 }
22543 resultobj = SWIG_From_int(static_cast< int >(result));
22544 return resultobj;
22545 fail:
22546 return NULL;
22547 }
22548
22549
22550 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22551 PyObject *resultobj = 0;
22552 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22553 wxControl *result = 0 ;
22554 void *argp1 = 0 ;
22555 int res1 = 0 ;
22556 PyObject *swig_obj[1] ;
22557
22558 if (!args) SWIG_fail;
22559 swig_obj[0] = args;
22560 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22561 if (!SWIG_IsOK(res1)) {
22562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22563 }
22564 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22565 {
22566 PyThreadState* __tstate = wxPyBeginAllowThreads();
22567 result = (wxControl *)(arg1)->GetControl();
22568 wxPyEndAllowThreads(__tstate);
22569 if (PyErr_Occurred()) SWIG_fail;
22570 }
22571 {
22572 resultobj = wxPyMake_wxObject(result, 0);
22573 }
22574 return resultobj;
22575 fail:
22576 return NULL;
22577 }
22578
22579
22580 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22581 PyObject *resultobj = 0;
22582 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22583 wxToolBarBase *result = 0 ;
22584 void *argp1 = 0 ;
22585 int res1 = 0 ;
22586 PyObject *swig_obj[1] ;
22587
22588 if (!args) SWIG_fail;
22589 swig_obj[0] = args;
22590 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22591 if (!SWIG_IsOK(res1)) {
22592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetToolBar" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22593 }
22594 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22595 {
22596 PyThreadState* __tstate = wxPyBeginAllowThreads();
22597 result = (wxToolBarBase *)(arg1)->GetToolBar();
22598 wxPyEndAllowThreads(__tstate);
22599 if (PyErr_Occurred()) SWIG_fail;
22600 }
22601 {
22602 resultobj = wxPyMake_wxObject(result, (bool)0);
22603 }
22604 return resultobj;
22605 fail:
22606 return NULL;
22607 }
22608
22609
22610 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22611 PyObject *resultobj = 0;
22612 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22613 int result;
22614 void *argp1 = 0 ;
22615 int res1 = 0 ;
22616 PyObject *swig_obj[1] ;
22617
22618 if (!args) SWIG_fail;
22619 swig_obj[0] = args;
22620 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22621 if (!SWIG_IsOK(res1)) {
22622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsButton" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22623 }
22624 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22625 {
22626 PyThreadState* __tstate = wxPyBeginAllowThreads();
22627 result = (int)(arg1)->IsButton();
22628 wxPyEndAllowThreads(__tstate);
22629 if (PyErr_Occurred()) SWIG_fail;
22630 }
22631 resultobj = SWIG_From_int(static_cast< int >(result));
22632 return resultobj;
22633 fail:
22634 return NULL;
22635 }
22636
22637
22638 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22639 PyObject *resultobj = 0;
22640 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22641 int result;
22642 void *argp1 = 0 ;
22643 int res1 = 0 ;
22644 PyObject *swig_obj[1] ;
22645
22646 if (!args) SWIG_fail;
22647 swig_obj[0] = args;
22648 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22649 if (!SWIG_IsOK(res1)) {
22650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22651 }
22652 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22653 {
22654 PyThreadState* __tstate = wxPyBeginAllowThreads();
22655 result = (int)(arg1)->IsControl();
22656 wxPyEndAllowThreads(__tstate);
22657 if (PyErr_Occurred()) SWIG_fail;
22658 }
22659 resultobj = SWIG_From_int(static_cast< int >(result));
22660 return resultobj;
22661 fail:
22662 return NULL;
22663 }
22664
22665
22666 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22667 PyObject *resultobj = 0;
22668 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22669 int result;
22670 void *argp1 = 0 ;
22671 int res1 = 0 ;
22672 PyObject *swig_obj[1] ;
22673
22674 if (!args) SWIG_fail;
22675 swig_obj[0] = args;
22676 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22677 if (!SWIG_IsOK(res1)) {
22678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsSeparator" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22679 }
22680 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22681 {
22682 PyThreadState* __tstate = wxPyBeginAllowThreads();
22683 result = (int)(arg1)->IsSeparator();
22684 wxPyEndAllowThreads(__tstate);
22685 if (PyErr_Occurred()) SWIG_fail;
22686 }
22687 resultobj = SWIG_From_int(static_cast< int >(result));
22688 return resultobj;
22689 fail:
22690 return NULL;
22691 }
22692
22693
22694 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22695 PyObject *resultobj = 0;
22696 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22697 int result;
22698 void *argp1 = 0 ;
22699 int res1 = 0 ;
22700 PyObject *swig_obj[1] ;
22701
22702 if (!args) SWIG_fail;
22703 swig_obj[0] = args;
22704 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22705 if (!SWIG_IsOK(res1)) {
22706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetStyle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22707 }
22708 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22709 {
22710 PyThreadState* __tstate = wxPyBeginAllowThreads();
22711 result = (int)(arg1)->GetStyle();
22712 wxPyEndAllowThreads(__tstate);
22713 if (PyErr_Occurred()) SWIG_fail;
22714 }
22715 resultobj = SWIG_From_int(static_cast< int >(result));
22716 return resultobj;
22717 fail:
22718 return NULL;
22719 }
22720
22721
22722 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22723 PyObject *resultobj = 0;
22724 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22725 wxItemKind result;
22726 void *argp1 = 0 ;
22727 int res1 = 0 ;
22728 PyObject *swig_obj[1] ;
22729
22730 if (!args) SWIG_fail;
22731 swig_obj[0] = args;
22732 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22733 if (!SWIG_IsOK(res1)) {
22734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetKind" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22735 }
22736 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22737 {
22738 PyThreadState* __tstate = wxPyBeginAllowThreads();
22739 result = (wxItemKind)(arg1)->GetKind();
22740 wxPyEndAllowThreads(__tstate);
22741 if (PyErr_Occurred()) SWIG_fail;
22742 }
22743 resultobj = SWIG_From_int(static_cast< int >(result));
22744 return resultobj;
22745 fail:
22746 return NULL;
22747 }
22748
22749
22750 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22751 PyObject *resultobj = 0;
22752 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22753 bool result;
22754 void *argp1 = 0 ;
22755 int res1 = 0 ;
22756 PyObject *swig_obj[1] ;
22757
22758 if (!args) SWIG_fail;
22759 swig_obj[0] = args;
22760 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22761 if (!SWIG_IsOK(res1)) {
22762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsEnabled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22763 }
22764 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22765 {
22766 PyThreadState* __tstate = wxPyBeginAllowThreads();
22767 result = (bool)(arg1)->IsEnabled();
22768 wxPyEndAllowThreads(__tstate);
22769 if (PyErr_Occurred()) SWIG_fail;
22770 }
22771 {
22772 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22773 }
22774 return resultobj;
22775 fail:
22776 return NULL;
22777 }
22778
22779
22780 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22781 PyObject *resultobj = 0;
22782 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22783 bool result;
22784 void *argp1 = 0 ;
22785 int res1 = 0 ;
22786 PyObject *swig_obj[1] ;
22787
22788 if (!args) SWIG_fail;
22789 swig_obj[0] = args;
22790 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22791 if (!SWIG_IsOK(res1)) {
22792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22793 }
22794 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22795 {
22796 PyThreadState* __tstate = wxPyBeginAllowThreads();
22797 result = (bool)(arg1)->IsToggled();
22798 wxPyEndAllowThreads(__tstate);
22799 if (PyErr_Occurred()) SWIG_fail;
22800 }
22801 {
22802 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22803 }
22804 return resultobj;
22805 fail:
22806 return NULL;
22807 }
22808
22809
22810 SWIGINTERN PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22811 PyObject *resultobj = 0;
22812 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22813 bool result;
22814 void *argp1 = 0 ;
22815 int res1 = 0 ;
22816 PyObject *swig_obj[1] ;
22817
22818 if (!args) SWIG_fail;
22819 swig_obj[0] = args;
22820 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22821 if (!SWIG_IsOK(res1)) {
22822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_CanBeToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22823 }
22824 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22825 {
22826 PyThreadState* __tstate = wxPyBeginAllowThreads();
22827 result = (bool)(arg1)->CanBeToggled();
22828 wxPyEndAllowThreads(__tstate);
22829 if (PyErr_Occurred()) SWIG_fail;
22830 }
22831 {
22832 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22833 }
22834 return resultobj;
22835 fail:
22836 return NULL;
22837 }
22838
22839
22840 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22841 PyObject *resultobj = 0;
22842 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22843 wxBitmap *result = 0 ;
22844 void *argp1 = 0 ;
22845 int res1 = 0 ;
22846 PyObject *swig_obj[1] ;
22847
22848 if (!args) SWIG_fail;
22849 swig_obj[0] = args;
22850 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22851 if (!SWIG_IsOK(res1)) {
22852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22853 }
22854 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22855 {
22856 PyThreadState* __tstate = wxPyBeginAllowThreads();
22857 {
22858 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
22859 result = (wxBitmap *) &_result_ref;
22860 }
22861 wxPyEndAllowThreads(__tstate);
22862 if (PyErr_Occurred()) SWIG_fail;
22863 }
22864 {
22865 wxBitmap* resultptr = new wxBitmap(*result);
22866 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
22867 }
22868 return resultobj;
22869 fail:
22870 return NULL;
22871 }
22872
22873
22874 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22875 PyObject *resultobj = 0;
22876 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22877 wxBitmap *result = 0 ;
22878 void *argp1 = 0 ;
22879 int res1 = 0 ;
22880 PyObject *swig_obj[1] ;
22881
22882 if (!args) SWIG_fail;
22883 swig_obj[0] = args;
22884 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22885 if (!SWIG_IsOK(res1)) {
22886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22887 }
22888 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22889 {
22890 PyThreadState* __tstate = wxPyBeginAllowThreads();
22891 {
22892 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
22893 result = (wxBitmap *) &_result_ref;
22894 }
22895 wxPyEndAllowThreads(__tstate);
22896 if (PyErr_Occurred()) SWIG_fail;
22897 }
22898 {
22899 wxBitmap* resultptr = new wxBitmap(*result);
22900 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
22901 }
22902 return resultobj;
22903 fail:
22904 return NULL;
22905 }
22906
22907
22908 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22909 PyObject *resultobj = 0;
22910 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22911 wxBitmap result;
22912 void *argp1 = 0 ;
22913 int res1 = 0 ;
22914 PyObject *swig_obj[1] ;
22915
22916 if (!args) SWIG_fail;
22917 swig_obj[0] = args;
22918 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22919 if (!SWIG_IsOK(res1)) {
22920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22921 }
22922 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22923 {
22924 PyThreadState* __tstate = wxPyBeginAllowThreads();
22925 result = (arg1)->GetBitmap();
22926 wxPyEndAllowThreads(__tstate);
22927 if (PyErr_Occurred()) SWIG_fail;
22928 }
22929 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
22930 return resultobj;
22931 fail:
22932 return NULL;
22933 }
22934
22935
22936 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22937 PyObject *resultobj = 0;
22938 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22939 wxString result;
22940 void *argp1 = 0 ;
22941 int res1 = 0 ;
22942 PyObject *swig_obj[1] ;
22943
22944 if (!args) SWIG_fail;
22945 swig_obj[0] = args;
22946 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22947 if (!SWIG_IsOK(res1)) {
22948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22949 }
22950 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22951 {
22952 PyThreadState* __tstate = wxPyBeginAllowThreads();
22953 result = (arg1)->GetLabel();
22954 wxPyEndAllowThreads(__tstate);
22955 if (PyErr_Occurred()) SWIG_fail;
22956 }
22957 {
22958 #if wxUSE_UNICODE
22959 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22960 #else
22961 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22962 #endif
22963 }
22964 return resultobj;
22965 fail:
22966 return NULL;
22967 }
22968
22969
22970 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22971 PyObject *resultobj = 0;
22972 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22973 wxString result;
22974 void *argp1 = 0 ;
22975 int res1 = 0 ;
22976 PyObject *swig_obj[1] ;
22977
22978 if (!args) SWIG_fail;
22979 swig_obj[0] = args;
22980 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22981 if (!SWIG_IsOK(res1)) {
22982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22983 }
22984 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22985 {
22986 PyThreadState* __tstate = wxPyBeginAllowThreads();
22987 result = (arg1)->GetShortHelp();
22988 wxPyEndAllowThreads(__tstate);
22989 if (PyErr_Occurred()) SWIG_fail;
22990 }
22991 {
22992 #if wxUSE_UNICODE
22993 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22994 #else
22995 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22996 #endif
22997 }
22998 return resultobj;
22999 fail:
23000 return NULL;
23001 }
23002
23003
23004 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23005 PyObject *resultobj = 0;
23006 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23007 wxString result;
23008 void *argp1 = 0 ;
23009 int res1 = 0 ;
23010 PyObject *swig_obj[1] ;
23011
23012 if (!args) SWIG_fail;
23013 swig_obj[0] = args;
23014 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23015 if (!SWIG_IsOK(res1)) {
23016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23017 }
23018 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23019 {
23020 PyThreadState* __tstate = wxPyBeginAllowThreads();
23021 result = (arg1)->GetLongHelp();
23022 wxPyEndAllowThreads(__tstate);
23023 if (PyErr_Occurred()) SWIG_fail;
23024 }
23025 {
23026 #if wxUSE_UNICODE
23027 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23028 #else
23029 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23030 #endif
23031 }
23032 return resultobj;
23033 fail:
23034 return NULL;
23035 }
23036
23037
23038 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23039 PyObject *resultobj = 0;
23040 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23041 bool arg2 ;
23042 bool result;
23043 void *argp1 = 0 ;
23044 int res1 = 0 ;
23045 bool val2 ;
23046 int ecode2 = 0 ;
23047 PyObject * obj0 = 0 ;
23048 PyObject * obj1 = 0 ;
23049 char * kwnames[] = {
23050 (char *) "self",(char *) "enable", NULL
23051 };
23052
23053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) SWIG_fail;
23054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23055 if (!SWIG_IsOK(res1)) {
23056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Enable" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23057 }
23058 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23059 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23060 if (!SWIG_IsOK(ecode2)) {
23061 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_Enable" "', expected argument " "2"" of type '" "bool""'");
23062 }
23063 arg2 = static_cast< bool >(val2);
23064 {
23065 PyThreadState* __tstate = wxPyBeginAllowThreads();
23066 result = (bool)(arg1)->Enable(arg2);
23067 wxPyEndAllowThreads(__tstate);
23068 if (PyErr_Occurred()) SWIG_fail;
23069 }
23070 {
23071 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23072 }
23073 return resultobj;
23074 fail:
23075 return NULL;
23076 }
23077
23078
23079 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23080 PyObject *resultobj = 0;
23081 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23082 void *argp1 = 0 ;
23083 int res1 = 0 ;
23084 PyObject *swig_obj[1] ;
23085
23086 if (!args) SWIG_fail;
23087 swig_obj[0] = args;
23088 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23089 if (!SWIG_IsOK(res1)) {
23090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Toggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23091 }
23092 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23093 {
23094 PyThreadState* __tstate = wxPyBeginAllowThreads();
23095 (arg1)->Toggle();
23096 wxPyEndAllowThreads(__tstate);
23097 if (PyErr_Occurred()) SWIG_fail;
23098 }
23099 resultobj = SWIG_Py_Void();
23100 return resultobj;
23101 fail:
23102 return NULL;
23103 }
23104
23105
23106 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23107 PyObject *resultobj = 0;
23108 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23109 bool arg2 ;
23110 bool result;
23111 void *argp1 = 0 ;
23112 int res1 = 0 ;
23113 bool val2 ;
23114 int ecode2 = 0 ;
23115 PyObject * obj0 = 0 ;
23116 PyObject * obj1 = 0 ;
23117 char * kwnames[] = {
23118 (char *) "self",(char *) "toggle", NULL
23119 };
23120
23121 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) SWIG_fail;
23122 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23123 if (!SWIG_IsOK(res1)) {
23124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23125 }
23126 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23127 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23128 if (!SWIG_IsOK(ecode2)) {
23129 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "2"" of type '" "bool""'");
23130 }
23131 arg2 = static_cast< bool >(val2);
23132 {
23133 PyThreadState* __tstate = wxPyBeginAllowThreads();
23134 result = (bool)(arg1)->SetToggle(arg2);
23135 wxPyEndAllowThreads(__tstate);
23136 if (PyErr_Occurred()) SWIG_fail;
23137 }
23138 {
23139 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23140 }
23141 return resultobj;
23142 fail:
23143 return NULL;
23144 }
23145
23146
23147 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23148 PyObject *resultobj = 0;
23149 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23150 wxString *arg2 = 0 ;
23151 bool result;
23152 void *argp1 = 0 ;
23153 int res1 = 0 ;
23154 bool temp2 = false ;
23155 PyObject * obj0 = 0 ;
23156 PyObject * obj1 = 0 ;
23157 char * kwnames[] = {
23158 (char *) "self",(char *) "help", NULL
23159 };
23160
23161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23163 if (!SWIG_IsOK(res1)) {
23164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23165 }
23166 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23167 {
23168 arg2 = wxString_in_helper(obj1);
23169 if (arg2 == NULL) SWIG_fail;
23170 temp2 = true;
23171 }
23172 {
23173 PyThreadState* __tstate = wxPyBeginAllowThreads();
23174 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
23175 wxPyEndAllowThreads(__tstate);
23176 if (PyErr_Occurred()) SWIG_fail;
23177 }
23178 {
23179 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23180 }
23181 {
23182 if (temp2)
23183 delete arg2;
23184 }
23185 return resultobj;
23186 fail:
23187 {
23188 if (temp2)
23189 delete arg2;
23190 }
23191 return NULL;
23192 }
23193
23194
23195 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23196 PyObject *resultobj = 0;
23197 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23198 wxString *arg2 = 0 ;
23199 bool result;
23200 void *argp1 = 0 ;
23201 int res1 = 0 ;
23202 bool temp2 = false ;
23203 PyObject * obj0 = 0 ;
23204 PyObject * obj1 = 0 ;
23205 char * kwnames[] = {
23206 (char *) "self",(char *) "help", NULL
23207 };
23208
23209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23211 if (!SWIG_IsOK(res1)) {
23212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23213 }
23214 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23215 {
23216 arg2 = wxString_in_helper(obj1);
23217 if (arg2 == NULL) SWIG_fail;
23218 temp2 = true;
23219 }
23220 {
23221 PyThreadState* __tstate = wxPyBeginAllowThreads();
23222 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
23223 wxPyEndAllowThreads(__tstate);
23224 if (PyErr_Occurred()) SWIG_fail;
23225 }
23226 {
23227 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23228 }
23229 {
23230 if (temp2)
23231 delete arg2;
23232 }
23233 return resultobj;
23234 fail:
23235 {
23236 if (temp2)
23237 delete arg2;
23238 }
23239 return NULL;
23240 }
23241
23242
23243 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23244 PyObject *resultobj = 0;
23245 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23246 wxBitmap *arg2 = 0 ;
23247 void *argp1 = 0 ;
23248 int res1 = 0 ;
23249 void *argp2 = 0 ;
23250 int res2 = 0 ;
23251 PyObject * obj0 = 0 ;
23252 PyObject * obj1 = 0 ;
23253 char * kwnames[] = {
23254 (char *) "self",(char *) "bmp", NULL
23255 };
23256
23257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23259 if (!SWIG_IsOK(res1)) {
23260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23261 }
23262 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23263 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23264 if (!SWIG_IsOK(res2)) {
23265 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23266 }
23267 if (!argp2) {
23268 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23269 }
23270 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23271 {
23272 PyThreadState* __tstate = wxPyBeginAllowThreads();
23273 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
23274 wxPyEndAllowThreads(__tstate);
23275 if (PyErr_Occurred()) SWIG_fail;
23276 }
23277 resultobj = SWIG_Py_Void();
23278 return resultobj;
23279 fail:
23280 return NULL;
23281 }
23282
23283
23284 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23285 PyObject *resultobj = 0;
23286 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23287 wxBitmap *arg2 = 0 ;
23288 void *argp1 = 0 ;
23289 int res1 = 0 ;
23290 void *argp2 = 0 ;
23291 int res2 = 0 ;
23292 PyObject * obj0 = 0 ;
23293 PyObject * obj1 = 0 ;
23294 char * kwnames[] = {
23295 (char *) "self",(char *) "bmp", NULL
23296 };
23297
23298 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23299 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23300 if (!SWIG_IsOK(res1)) {
23301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23302 }
23303 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23304 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23305 if (!SWIG_IsOK(res2)) {
23306 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23307 }
23308 if (!argp2) {
23309 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23310 }
23311 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23312 {
23313 PyThreadState* __tstate = wxPyBeginAllowThreads();
23314 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
23315 wxPyEndAllowThreads(__tstate);
23316 if (PyErr_Occurred()) SWIG_fail;
23317 }
23318 resultobj = SWIG_Py_Void();
23319 return resultobj;
23320 fail:
23321 return NULL;
23322 }
23323
23324
23325 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23326 PyObject *resultobj = 0;
23327 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23328 wxString *arg2 = 0 ;
23329 void *argp1 = 0 ;
23330 int res1 = 0 ;
23331 bool temp2 = false ;
23332 PyObject * obj0 = 0 ;
23333 PyObject * obj1 = 0 ;
23334 char * kwnames[] = {
23335 (char *) "self",(char *) "label", NULL
23336 };
23337
23338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
23339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23340 if (!SWIG_IsOK(res1)) {
23341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23342 }
23343 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23344 {
23345 arg2 = wxString_in_helper(obj1);
23346 if (arg2 == NULL) SWIG_fail;
23347 temp2 = true;
23348 }
23349 {
23350 PyThreadState* __tstate = wxPyBeginAllowThreads();
23351 (arg1)->SetLabel((wxString const &)*arg2);
23352 wxPyEndAllowThreads(__tstate);
23353 if (PyErr_Occurred()) SWIG_fail;
23354 }
23355 resultobj = SWIG_Py_Void();
23356 {
23357 if (temp2)
23358 delete arg2;
23359 }
23360 return resultobj;
23361 fail:
23362 {
23363 if (temp2)
23364 delete arg2;
23365 }
23366 return NULL;
23367 }
23368
23369
23370 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23371 PyObject *resultobj = 0;
23372 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23373 void *argp1 = 0 ;
23374 int res1 = 0 ;
23375 PyObject *swig_obj[1] ;
23376
23377 if (!args) SWIG_fail;
23378 swig_obj[0] = args;
23379 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23380 if (!SWIG_IsOK(res1)) {
23381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Detach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23382 }
23383 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23384 {
23385 PyThreadState* __tstate = wxPyBeginAllowThreads();
23386 (arg1)->Detach();
23387 wxPyEndAllowThreads(__tstate);
23388 if (PyErr_Occurred()) SWIG_fail;
23389 }
23390 resultobj = SWIG_Py_Void();
23391 return resultobj;
23392 fail:
23393 return NULL;
23394 }
23395
23396
23397 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23398 PyObject *resultobj = 0;
23399 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23400 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
23401 void *argp1 = 0 ;
23402 int res1 = 0 ;
23403 void *argp2 = 0 ;
23404 int res2 = 0 ;
23405 PyObject * obj0 = 0 ;
23406 PyObject * obj1 = 0 ;
23407 char * kwnames[] = {
23408 (char *) "self",(char *) "tbar", NULL
23409 };
23410
23411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) SWIG_fail;
23412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23413 if (!SWIG_IsOK(res1)) {
23414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Attach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23415 }
23416 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23417 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23418 if (!SWIG_IsOK(res2)) {
23419 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_Attach" "', expected argument " "2"" of type '" "wxToolBarBase *""'");
23420 }
23421 arg2 = reinterpret_cast< wxToolBarBase * >(argp2);
23422 {
23423 PyThreadState* __tstate = wxPyBeginAllowThreads();
23424 (arg1)->Attach(arg2);
23425 wxPyEndAllowThreads(__tstate);
23426 if (PyErr_Occurred()) SWIG_fail;
23427 }
23428 resultobj = SWIG_Py_Void();
23429 return resultobj;
23430 fail:
23431 return NULL;
23432 }
23433
23434
23435 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23436 PyObject *resultobj = 0;
23437 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23438 PyObject *result = 0 ;
23439 void *argp1 = 0 ;
23440 int res1 = 0 ;
23441 PyObject *swig_obj[1] ;
23442
23443 if (!args) SWIG_fail;
23444 swig_obj[0] = args;
23445 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23446 if (!SWIG_IsOK(res1)) {
23447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23448 }
23449 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23450 {
23451 PyThreadState* __tstate = wxPyBeginAllowThreads();
23452 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
23453 wxPyEndAllowThreads(__tstate);
23454 if (PyErr_Occurred()) SWIG_fail;
23455 }
23456 resultobj = result;
23457 return resultobj;
23458 fail:
23459 return NULL;
23460 }
23461
23462
23463 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23464 PyObject *resultobj = 0;
23465 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23466 PyObject *arg2 = (PyObject *) 0 ;
23467 void *argp1 = 0 ;
23468 int res1 = 0 ;
23469 PyObject * obj0 = 0 ;
23470 PyObject * obj1 = 0 ;
23471 char * kwnames[] = {
23472 (char *) "self",(char *) "clientData", NULL
23473 };
23474
23475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) SWIG_fail;
23476 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23477 if (!SWIG_IsOK(res1)) {
23478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23479 }
23480 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23481 arg2 = obj1;
23482 {
23483 PyThreadState* __tstate = wxPyBeginAllowThreads();
23484 wxToolBarToolBase_SetClientData(arg1,arg2);
23485 wxPyEndAllowThreads(__tstate);
23486 if (PyErr_Occurred()) SWIG_fail;
23487 }
23488 resultobj = SWIG_Py_Void();
23489 return resultobj;
23490 fail:
23491 return NULL;
23492 }
23493
23494
23495 SWIGINTERN PyObject *ToolBarToolBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23496 PyObject *obj;
23497 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23498 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarToolBase, SWIG_NewClientData(obj));
23499 return SWIG_Py_Void();
23500 }
23501
23502 SWIGINTERN PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23503 PyObject *resultobj = 0;
23504 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23505 int arg2 ;
23506 wxString *arg3 = 0 ;
23507 wxBitmap *arg4 = 0 ;
23508 wxBitmap const &arg5_defvalue = wxNullBitmap ;
23509 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
23510 wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ;
23511 wxString const &arg7_defvalue = wxPyEmptyString ;
23512 wxString *arg7 = (wxString *) &arg7_defvalue ;
23513 wxString const &arg8_defvalue = wxPyEmptyString ;
23514 wxString *arg8 = (wxString *) &arg8_defvalue ;
23515 PyObject *arg9 = (PyObject *) NULL ;
23516 wxToolBarToolBase *result = 0 ;
23517 void *argp1 = 0 ;
23518 int res1 = 0 ;
23519 int val2 ;
23520 int ecode2 = 0 ;
23521 bool temp3 = false ;
23522 void *argp4 = 0 ;
23523 int res4 = 0 ;
23524 void *argp5 = 0 ;
23525 int res5 = 0 ;
23526 int val6 ;
23527 int ecode6 = 0 ;
23528 bool temp7 = false ;
23529 bool temp8 = false ;
23530 PyObject * obj0 = 0 ;
23531 PyObject * obj1 = 0 ;
23532 PyObject * obj2 = 0 ;
23533 PyObject * obj3 = 0 ;
23534 PyObject * obj4 = 0 ;
23535 PyObject * obj5 = 0 ;
23536 PyObject * obj6 = 0 ;
23537 PyObject * obj7 = 0 ;
23538 PyObject * obj8 = 0 ;
23539 char * kwnames[] = {
23540 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23541 };
23542
23543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
23544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23545 if (!SWIG_IsOK(res1)) {
23546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23547 }
23548 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23549 ecode2 = SWIG_AsVal_int(obj1, &val2);
23550 if (!SWIG_IsOK(ecode2)) {
23551 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "2"" of type '" "int""'");
23552 }
23553 arg2 = static_cast< int >(val2);
23554 {
23555 arg3 = wxString_in_helper(obj2);
23556 if (arg3 == NULL) SWIG_fail;
23557 temp3 = true;
23558 }
23559 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
23560 if (!SWIG_IsOK(res4)) {
23561 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23562 }
23563 if (!argp4) {
23564 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23565 }
23566 arg4 = reinterpret_cast< wxBitmap * >(argp4);
23567 if (obj4) {
23568 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23569 if (!SWIG_IsOK(res5)) {
23570 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23571 }
23572 if (!argp5) {
23573 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23574 }
23575 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23576 }
23577 if (obj5) {
23578 ecode6 = SWIG_AsVal_int(obj5, &val6);
23579 if (!SWIG_IsOK(ecode6)) {
23580 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "6"" of type '" "wxItemKind""'");
23581 }
23582 arg6 = static_cast< wxItemKind >(val6);
23583 }
23584 if (obj6) {
23585 {
23586 arg7 = wxString_in_helper(obj6);
23587 if (arg7 == NULL) SWIG_fail;
23588 temp7 = true;
23589 }
23590 }
23591 if (obj7) {
23592 {
23593 arg8 = wxString_in_helper(obj7);
23594 if (arg8 == NULL) SWIG_fail;
23595 temp8 = true;
23596 }
23597 }
23598 if (obj8) {
23599 arg9 = obj8;
23600 }
23601 {
23602 PyThreadState* __tstate = wxPyBeginAllowThreads();
23603 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
23604 wxPyEndAllowThreads(__tstate);
23605 if (PyErr_Occurred()) SWIG_fail;
23606 }
23607 {
23608 resultobj = wxPyMake_wxObject(result, (bool)0);
23609 }
23610 {
23611 if (temp3)
23612 delete arg3;
23613 }
23614 {
23615 if (temp7)
23616 delete arg7;
23617 }
23618 {
23619 if (temp8)
23620 delete arg8;
23621 }
23622 return resultobj;
23623 fail:
23624 {
23625 if (temp3)
23626 delete arg3;
23627 }
23628 {
23629 if (temp7)
23630 delete arg7;
23631 }
23632 {
23633 if (temp8)
23634 delete arg8;
23635 }
23636 return NULL;
23637 }
23638
23639
23640 SWIGINTERN PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23641 PyObject *resultobj = 0;
23642 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23643 size_t arg2 ;
23644 int arg3 ;
23645 wxString *arg4 = 0 ;
23646 wxBitmap *arg5 = 0 ;
23647 wxBitmap const &arg6_defvalue = wxNullBitmap ;
23648 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
23649 wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ;
23650 wxString const &arg8_defvalue = wxPyEmptyString ;
23651 wxString *arg8 = (wxString *) &arg8_defvalue ;
23652 wxString const &arg9_defvalue = wxPyEmptyString ;
23653 wxString *arg9 = (wxString *) &arg9_defvalue ;
23654 PyObject *arg10 = (PyObject *) NULL ;
23655 wxToolBarToolBase *result = 0 ;
23656 void *argp1 = 0 ;
23657 int res1 = 0 ;
23658 size_t val2 ;
23659 int ecode2 = 0 ;
23660 int val3 ;
23661 int ecode3 = 0 ;
23662 bool temp4 = false ;
23663 void *argp5 = 0 ;
23664 int res5 = 0 ;
23665 void *argp6 = 0 ;
23666 int res6 = 0 ;
23667 int val7 ;
23668 int ecode7 = 0 ;
23669 bool temp8 = false ;
23670 bool temp9 = false ;
23671 PyObject * obj0 = 0 ;
23672 PyObject * obj1 = 0 ;
23673 PyObject * obj2 = 0 ;
23674 PyObject * obj3 = 0 ;
23675 PyObject * obj4 = 0 ;
23676 PyObject * obj5 = 0 ;
23677 PyObject * obj6 = 0 ;
23678 PyObject * obj7 = 0 ;
23679 PyObject * obj8 = 0 ;
23680 PyObject * obj9 = 0 ;
23681 char * kwnames[] = {
23682 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23683 };
23684
23685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
23686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23687 if (!SWIG_IsOK(res1)) {
23688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23689 }
23690 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23691 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23692 if (!SWIG_IsOK(ecode2)) {
23693 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "2"" of type '" "size_t""'");
23694 }
23695 arg2 = static_cast< size_t >(val2);
23696 ecode3 = SWIG_AsVal_int(obj2, &val3);
23697 if (!SWIG_IsOK(ecode3)) {
23698 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "3"" of type '" "int""'");
23699 }
23700 arg3 = static_cast< int >(val3);
23701 {
23702 arg4 = wxString_in_helper(obj3);
23703 if (arg4 == NULL) SWIG_fail;
23704 temp4 = true;
23705 }
23706 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23707 if (!SWIG_IsOK(res5)) {
23708 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23709 }
23710 if (!argp5) {
23711 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23712 }
23713 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23714 if (obj5) {
23715 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxBitmap, 0 | 0);
23716 if (!SWIG_IsOK(res6)) {
23717 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
23718 }
23719 if (!argp6) {
23720 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
23721 }
23722 arg6 = reinterpret_cast< wxBitmap * >(argp6);
23723 }
23724 if (obj6) {
23725 ecode7 = SWIG_AsVal_int(obj6, &val7);
23726 if (!SWIG_IsOK(ecode7)) {
23727 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "7"" of type '" "wxItemKind""'");
23728 }
23729 arg7 = static_cast< wxItemKind >(val7);
23730 }
23731 if (obj7) {
23732 {
23733 arg8 = wxString_in_helper(obj7);
23734 if (arg8 == NULL) SWIG_fail;
23735 temp8 = true;
23736 }
23737 }
23738 if (obj8) {
23739 {
23740 arg9 = wxString_in_helper(obj8);
23741 if (arg9 == NULL) SWIG_fail;
23742 temp9 = true;
23743 }
23744 }
23745 if (obj9) {
23746 arg10 = obj9;
23747 }
23748 {
23749 PyThreadState* __tstate = wxPyBeginAllowThreads();
23750 result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10);
23751 wxPyEndAllowThreads(__tstate);
23752 if (PyErr_Occurred()) SWIG_fail;
23753 }
23754 {
23755 resultobj = wxPyMake_wxObject(result, (bool)0);
23756 }
23757 {
23758 if (temp4)
23759 delete arg4;
23760 }
23761 {
23762 if (temp8)
23763 delete arg8;
23764 }
23765 {
23766 if (temp9)
23767 delete arg9;
23768 }
23769 return resultobj;
23770 fail:
23771 {
23772 if (temp4)
23773 delete arg4;
23774 }
23775 {
23776 if (temp8)
23777 delete arg8;
23778 }
23779 {
23780 if (temp9)
23781 delete arg9;
23782 }
23783 return NULL;
23784 }
23785
23786
23787 SWIGINTERN PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23788 PyObject *resultobj = 0;
23789 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23790 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
23791 wxToolBarToolBase *result = 0 ;
23792 void *argp1 = 0 ;
23793 int res1 = 0 ;
23794 void *argp2 = 0 ;
23795 int res2 = 0 ;
23796 PyObject * obj0 = 0 ;
23797 PyObject * obj1 = 0 ;
23798 char * kwnames[] = {
23799 (char *) "self",(char *) "tool", NULL
23800 };
23801
23802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) SWIG_fail;
23803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23804 if (!SWIG_IsOK(res1)) {
23805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23806 }
23807 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23808 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23809 if (!SWIG_IsOK(res2)) {
23810 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "2"" of type '" "wxToolBarToolBase *""'");
23811 }
23812 arg2 = reinterpret_cast< wxToolBarToolBase * >(argp2);
23813 {
23814 PyThreadState* __tstate = wxPyBeginAllowThreads();
23815 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
23816 wxPyEndAllowThreads(__tstate);
23817 if (PyErr_Occurred()) SWIG_fail;
23818 }
23819 {
23820 resultobj = wxPyMake_wxObject(result, (bool)0);
23821 }
23822 return resultobj;
23823 fail:
23824 return NULL;
23825 }
23826
23827
23828 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23829 PyObject *resultobj = 0;
23830 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23831 size_t arg2 ;
23832 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
23833 wxToolBarToolBase *result = 0 ;
23834 void *argp1 = 0 ;
23835 int res1 = 0 ;
23836 size_t val2 ;
23837 int ecode2 = 0 ;
23838 void *argp3 = 0 ;
23839 int res3 = 0 ;
23840 PyObject * obj0 = 0 ;
23841 PyObject * obj1 = 0 ;
23842 PyObject * obj2 = 0 ;
23843 char * kwnames[] = {
23844 (char *) "self",(char *) "pos",(char *) "tool", NULL
23845 };
23846
23847 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23848 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23849 if (!SWIG_IsOK(res1)) {
23850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23851 }
23852 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23853 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23854 if (!SWIG_IsOK(ecode2)) {
23855 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "2"" of type '" "size_t""'");
23856 }
23857 arg2 = static_cast< size_t >(val2);
23858 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23859 if (!SWIG_IsOK(res3)) {
23860 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "3"" of type '" "wxToolBarToolBase *""'");
23861 }
23862 arg3 = reinterpret_cast< wxToolBarToolBase * >(argp3);
23863 {
23864 PyThreadState* __tstate = wxPyBeginAllowThreads();
23865 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
23866 wxPyEndAllowThreads(__tstate);
23867 if (PyErr_Occurred()) SWIG_fail;
23868 }
23869 {
23870 resultobj = wxPyMake_wxObject(result, (bool)0);
23871 }
23872 return resultobj;
23873 fail:
23874 return NULL;
23875 }
23876
23877
23878 SWIGINTERN PyObject *_wrap_ToolBarBase_AddControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23879 PyObject *resultobj = 0;
23880 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23881 wxControl *arg2 = (wxControl *) 0 ;
23882 wxToolBarToolBase *result = 0 ;
23883 void *argp1 = 0 ;
23884 int res1 = 0 ;
23885 void *argp2 = 0 ;
23886 int res2 = 0 ;
23887 PyObject * obj0 = 0 ;
23888 PyObject * obj1 = 0 ;
23889 char * kwnames[] = {
23890 (char *) "self",(char *) "control", NULL
23891 };
23892
23893 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) SWIG_fail;
23894 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23895 if (!SWIG_IsOK(res1)) {
23896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23897 }
23898 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23899 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxControl, 0 | 0 );
23900 if (!SWIG_IsOK(res2)) {
23901 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddControl" "', expected argument " "2"" of type '" "wxControl *""'");
23902 }
23903 arg2 = reinterpret_cast< wxControl * >(argp2);
23904 {
23905 PyThreadState* __tstate = wxPyBeginAllowThreads();
23906 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
23907 wxPyEndAllowThreads(__tstate);
23908 if (PyErr_Occurred()) SWIG_fail;
23909 }
23910 {
23911 resultobj = wxPyMake_wxObject(result, (bool)0);
23912 }
23913 return resultobj;
23914 fail:
23915 return NULL;
23916 }
23917
23918
23919 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23920 PyObject *resultobj = 0;
23921 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23922 size_t arg2 ;
23923 wxControl *arg3 = (wxControl *) 0 ;
23924 wxToolBarToolBase *result = 0 ;
23925 void *argp1 = 0 ;
23926 int res1 = 0 ;
23927 size_t val2 ;
23928 int ecode2 = 0 ;
23929 void *argp3 = 0 ;
23930 int res3 = 0 ;
23931 PyObject * obj0 = 0 ;
23932 PyObject * obj1 = 0 ;
23933 PyObject * obj2 = 0 ;
23934 char * kwnames[] = {
23935 (char *) "self",(char *) "pos",(char *) "control", NULL
23936 };
23937
23938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23940 if (!SWIG_IsOK(res1)) {
23941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23942 }
23943 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23944 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23945 if (!SWIG_IsOK(ecode2)) {
23946 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertControl" "', expected argument " "2"" of type '" "size_t""'");
23947 }
23948 arg2 = static_cast< size_t >(val2);
23949 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxControl, 0 | 0 );
23950 if (!SWIG_IsOK(res3)) {
23951 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertControl" "', expected argument " "3"" of type '" "wxControl *""'");
23952 }
23953 arg3 = reinterpret_cast< wxControl * >(argp3);
23954 {
23955 PyThreadState* __tstate = wxPyBeginAllowThreads();
23956 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
23957 wxPyEndAllowThreads(__tstate);
23958 if (PyErr_Occurred()) SWIG_fail;
23959 }
23960 {
23961 resultobj = wxPyMake_wxObject(result, (bool)0);
23962 }
23963 return resultobj;
23964 fail:
23965 return NULL;
23966 }
23967
23968
23969 SWIGINTERN PyObject *_wrap_ToolBarBase_FindControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23970 PyObject *resultobj = 0;
23971 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23972 int arg2 ;
23973 wxControl *result = 0 ;
23974 void *argp1 = 0 ;
23975 int res1 = 0 ;
23976 int val2 ;
23977 int ecode2 = 0 ;
23978 PyObject * obj0 = 0 ;
23979 PyObject * obj1 = 0 ;
23980 char * kwnames[] = {
23981 (char *) "self",(char *) "id", NULL
23982 };
23983
23984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) SWIG_fail;
23985 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23986 if (!SWIG_IsOK(res1)) {
23987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23988 }
23989 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23990 ecode2 = SWIG_AsVal_int(obj1, &val2);
23991 if (!SWIG_IsOK(ecode2)) {
23992 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindControl" "', expected argument " "2"" of type '" "int""'");
23993 }
23994 arg2 = static_cast< int >(val2);
23995 {
23996 PyThreadState* __tstate = wxPyBeginAllowThreads();
23997 result = (wxControl *)(arg1)->FindControl(arg2);
23998 wxPyEndAllowThreads(__tstate);
23999 if (PyErr_Occurred()) SWIG_fail;
24000 }
24001 {
24002 resultobj = wxPyMake_wxObject(result, 0);
24003 }
24004 return resultobj;
24005 fail:
24006 return NULL;
24007 }
24008
24009
24010 SWIGINTERN PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24011 PyObject *resultobj = 0;
24012 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24013 wxToolBarToolBase *result = 0 ;
24014 void *argp1 = 0 ;
24015 int res1 = 0 ;
24016 PyObject *swig_obj[1] ;
24017
24018 if (!args) SWIG_fail;
24019 swig_obj[0] = args;
24020 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24021 if (!SWIG_IsOK(res1)) {
24022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24023 }
24024 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24025 {
24026 PyThreadState* __tstate = wxPyBeginAllowThreads();
24027 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
24028 wxPyEndAllowThreads(__tstate);
24029 if (PyErr_Occurred()) SWIG_fail;
24030 }
24031 {
24032 resultobj = wxPyMake_wxObject(result, (bool)0);
24033 }
24034 return resultobj;
24035 fail:
24036 return NULL;
24037 }
24038
24039
24040 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24041 PyObject *resultobj = 0;
24042 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24043 size_t arg2 ;
24044 wxToolBarToolBase *result = 0 ;
24045 void *argp1 = 0 ;
24046 int res1 = 0 ;
24047 size_t val2 ;
24048 int ecode2 = 0 ;
24049 PyObject * obj0 = 0 ;
24050 PyObject * obj1 = 0 ;
24051 char * kwnames[] = {
24052 (char *) "self",(char *) "pos", NULL
24053 };
24054
24055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) SWIG_fail;
24056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24057 if (!SWIG_IsOK(res1)) {
24058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24059 }
24060 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24061 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24062 if (!SWIG_IsOK(ecode2)) {
24063 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "2"" of type '" "size_t""'");
24064 }
24065 arg2 = static_cast< size_t >(val2);
24066 {
24067 PyThreadState* __tstate = wxPyBeginAllowThreads();
24068 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
24069 wxPyEndAllowThreads(__tstate);
24070 if (PyErr_Occurred()) SWIG_fail;
24071 }
24072 {
24073 resultobj = wxPyMake_wxObject(result, (bool)0);
24074 }
24075 return resultobj;
24076 fail:
24077 return NULL;
24078 }
24079
24080
24081 SWIGINTERN PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24082 PyObject *resultobj = 0;
24083 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24084 int arg2 ;
24085 wxToolBarToolBase *result = 0 ;
24086 void *argp1 = 0 ;
24087 int res1 = 0 ;
24088 int val2 ;
24089 int ecode2 = 0 ;
24090 PyObject * obj0 = 0 ;
24091 PyObject * obj1 = 0 ;
24092 char * kwnames[] = {
24093 (char *) "self",(char *) "id", NULL
24094 };
24095
24096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) SWIG_fail;
24097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24098 if (!SWIG_IsOK(res1)) {
24099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24100 }
24101 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24102 ecode2 = SWIG_AsVal_int(obj1, &val2);
24103 if (!SWIG_IsOK(ecode2)) {
24104 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "2"" of type '" "int""'");
24105 }
24106 arg2 = static_cast< int >(val2);
24107 {
24108 PyThreadState* __tstate = wxPyBeginAllowThreads();
24109 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
24110 wxPyEndAllowThreads(__tstate);
24111 if (PyErr_Occurred()) SWIG_fail;
24112 }
24113 {
24114 resultobj = wxPyMake_wxObject(result, (bool)0);
24115 }
24116 return resultobj;
24117 fail:
24118 return NULL;
24119 }
24120
24121
24122 SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24123 PyObject *resultobj = 0;
24124 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24125 size_t arg2 ;
24126 bool result;
24127 void *argp1 = 0 ;
24128 int res1 = 0 ;
24129 size_t val2 ;
24130 int ecode2 = 0 ;
24131 PyObject * obj0 = 0 ;
24132 PyObject * obj1 = 0 ;
24133 char * kwnames[] = {
24134 (char *) "self",(char *) "pos", NULL
24135 };
24136
24137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) SWIG_fail;
24138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24139 if (!SWIG_IsOK(res1)) {
24140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24141 }
24142 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24143 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24144 if (!SWIG_IsOK(ecode2)) {
24145 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "2"" of type '" "size_t""'");
24146 }
24147 arg2 = static_cast< size_t >(val2);
24148 {
24149 PyThreadState* __tstate = wxPyBeginAllowThreads();
24150 result = (bool)(arg1)->DeleteToolByPos(arg2);
24151 wxPyEndAllowThreads(__tstate);
24152 if (PyErr_Occurred()) SWIG_fail;
24153 }
24154 {
24155 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24156 }
24157 return resultobj;
24158 fail:
24159 return NULL;
24160 }
24161
24162
24163 SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24164 PyObject *resultobj = 0;
24165 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24166 int arg2 ;
24167 bool result;
24168 void *argp1 = 0 ;
24169 int res1 = 0 ;
24170 int val2 ;
24171 int ecode2 = 0 ;
24172 PyObject * obj0 = 0 ;
24173 PyObject * obj1 = 0 ;
24174 char * kwnames[] = {
24175 (char *) "self",(char *) "id", NULL
24176 };
24177
24178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) SWIG_fail;
24179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24180 if (!SWIG_IsOK(res1)) {
24181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24182 }
24183 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24184 ecode2 = SWIG_AsVal_int(obj1, &val2);
24185 if (!SWIG_IsOK(ecode2)) {
24186 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "2"" of type '" "int""'");
24187 }
24188 arg2 = static_cast< int >(val2);
24189 {
24190 PyThreadState* __tstate = wxPyBeginAllowThreads();
24191 result = (bool)(arg1)->DeleteTool(arg2);
24192 wxPyEndAllowThreads(__tstate);
24193 if (PyErr_Occurred()) SWIG_fail;
24194 }
24195 {
24196 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24197 }
24198 return resultobj;
24199 fail:
24200 return NULL;
24201 }
24202
24203
24204 SWIGINTERN PyObject *_wrap_ToolBarBase_ClearTools(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24205 PyObject *resultobj = 0;
24206 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24207 void *argp1 = 0 ;
24208 int res1 = 0 ;
24209 PyObject *swig_obj[1] ;
24210
24211 if (!args) SWIG_fail;
24212 swig_obj[0] = args;
24213 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24214 if (!SWIG_IsOK(res1)) {
24215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ClearTools" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24216 }
24217 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24218 {
24219 PyThreadState* __tstate = wxPyBeginAllowThreads();
24220 (arg1)->ClearTools();
24221 wxPyEndAllowThreads(__tstate);
24222 if (PyErr_Occurred()) SWIG_fail;
24223 }
24224 resultobj = SWIG_Py_Void();
24225 return resultobj;
24226 fail:
24227 return NULL;
24228 }
24229
24230
24231 SWIGINTERN PyObject *_wrap_ToolBarBase_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24232 PyObject *resultobj = 0;
24233 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24234 bool result;
24235 void *argp1 = 0 ;
24236 int res1 = 0 ;
24237 PyObject *swig_obj[1] ;
24238
24239 if (!args) SWIG_fail;
24240 swig_obj[0] = args;
24241 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24242 if (!SWIG_IsOK(res1)) {
24243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_Realize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24244 }
24245 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24246 {
24247 PyThreadState* __tstate = wxPyBeginAllowThreads();
24248 result = (bool)(arg1)->Realize();
24249 wxPyEndAllowThreads(__tstate);
24250 if (PyErr_Occurred()) SWIG_fail;
24251 }
24252 {
24253 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24254 }
24255 return resultobj;
24256 fail:
24257 return NULL;
24258 }
24259
24260
24261 SWIGINTERN PyObject *_wrap_ToolBarBase_EnableTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24262 PyObject *resultobj = 0;
24263 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24264 int arg2 ;
24265 bool arg3 ;
24266 void *argp1 = 0 ;
24267 int res1 = 0 ;
24268 int val2 ;
24269 int ecode2 = 0 ;
24270 bool val3 ;
24271 int ecode3 = 0 ;
24272 PyObject * obj0 = 0 ;
24273 PyObject * obj1 = 0 ;
24274 PyObject * obj2 = 0 ;
24275 char * kwnames[] = {
24276 (char *) "self",(char *) "id",(char *) "enable", NULL
24277 };
24278
24279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24281 if (!SWIG_IsOK(res1)) {
24282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_EnableTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24283 }
24284 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24285 ecode2 = SWIG_AsVal_int(obj1, &val2);
24286 if (!SWIG_IsOK(ecode2)) {
24287 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_EnableTool" "', expected argument " "2"" of type '" "int""'");
24288 }
24289 arg2 = static_cast< int >(val2);
24290 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24291 if (!SWIG_IsOK(ecode3)) {
24292 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_EnableTool" "', expected argument " "3"" of type '" "bool""'");
24293 }
24294 arg3 = static_cast< bool >(val3);
24295 {
24296 PyThreadState* __tstate = wxPyBeginAllowThreads();
24297 (arg1)->EnableTool(arg2,arg3);
24298 wxPyEndAllowThreads(__tstate);
24299 if (PyErr_Occurred()) SWIG_fail;
24300 }
24301 resultobj = SWIG_Py_Void();
24302 return resultobj;
24303 fail:
24304 return NULL;
24305 }
24306
24307
24308 SWIGINTERN PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24309 PyObject *resultobj = 0;
24310 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24311 int arg2 ;
24312 bool arg3 ;
24313 void *argp1 = 0 ;
24314 int res1 = 0 ;
24315 int val2 ;
24316 int ecode2 = 0 ;
24317 bool val3 ;
24318 int ecode3 = 0 ;
24319 PyObject * obj0 = 0 ;
24320 PyObject * obj1 = 0 ;
24321 PyObject * obj2 = 0 ;
24322 char * kwnames[] = {
24323 (char *) "self",(char *) "id",(char *) "toggle", NULL
24324 };
24325
24326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24328 if (!SWIG_IsOK(res1)) {
24329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24330 }
24331 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24332 ecode2 = SWIG_AsVal_int(obj1, &val2);
24333 if (!SWIG_IsOK(ecode2)) {
24334 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "2"" of type '" "int""'");
24335 }
24336 arg2 = static_cast< int >(val2);
24337 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24338 if (!SWIG_IsOK(ecode3)) {
24339 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "3"" of type '" "bool""'");
24340 }
24341 arg3 = static_cast< bool >(val3);
24342 {
24343 PyThreadState* __tstate = wxPyBeginAllowThreads();
24344 (arg1)->ToggleTool(arg2,arg3);
24345 wxPyEndAllowThreads(__tstate);
24346 if (PyErr_Occurred()) SWIG_fail;
24347 }
24348 resultobj = SWIG_Py_Void();
24349 return resultobj;
24350 fail:
24351 return NULL;
24352 }
24353
24354
24355 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24356 PyObject *resultobj = 0;
24357 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24358 int arg2 ;
24359 bool arg3 ;
24360 void *argp1 = 0 ;
24361 int res1 = 0 ;
24362 int val2 ;
24363 int ecode2 = 0 ;
24364 bool val3 ;
24365 int ecode3 = 0 ;
24366 PyObject * obj0 = 0 ;
24367 PyObject * obj1 = 0 ;
24368 PyObject * obj2 = 0 ;
24369 char * kwnames[] = {
24370 (char *) "self",(char *) "id",(char *) "toggle", NULL
24371 };
24372
24373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24375 if (!SWIG_IsOK(res1)) {
24376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24377 }
24378 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24379 ecode2 = SWIG_AsVal_int(obj1, &val2);
24380 if (!SWIG_IsOK(ecode2)) {
24381 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToggle" "', expected argument " "2"" of type '" "int""'");
24382 }
24383 arg2 = static_cast< int >(val2);
24384 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24385 if (!SWIG_IsOK(ecode3)) {
24386 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetToggle" "', expected argument " "3"" of type '" "bool""'");
24387 }
24388 arg3 = static_cast< bool >(val3);
24389 {
24390 PyThreadState* __tstate = wxPyBeginAllowThreads();
24391 (arg1)->SetToggle(arg2,arg3);
24392 wxPyEndAllowThreads(__tstate);
24393 if (PyErr_Occurred()) SWIG_fail;
24394 }
24395 resultobj = SWIG_Py_Void();
24396 return resultobj;
24397 fail:
24398 return NULL;
24399 }
24400
24401
24402 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24403 PyObject *resultobj = 0;
24404 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24405 int arg2 ;
24406 PyObject *result = 0 ;
24407 void *argp1 = 0 ;
24408 int res1 = 0 ;
24409 int val2 ;
24410 int ecode2 = 0 ;
24411 PyObject * obj0 = 0 ;
24412 PyObject * obj1 = 0 ;
24413 char * kwnames[] = {
24414 (char *) "self",(char *) "id", NULL
24415 };
24416
24417 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) SWIG_fail;
24418 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24419 if (!SWIG_IsOK(res1)) {
24420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24421 }
24422 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24423 ecode2 = SWIG_AsVal_int(obj1, &val2);
24424 if (!SWIG_IsOK(ecode2)) {
24425 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "2"" of type '" "int""'");
24426 }
24427 arg2 = static_cast< int >(val2);
24428 {
24429 PyThreadState* __tstate = wxPyBeginAllowThreads();
24430 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
24431 wxPyEndAllowThreads(__tstate);
24432 if (PyErr_Occurred()) SWIG_fail;
24433 }
24434 resultobj = result;
24435 return resultobj;
24436 fail:
24437 return NULL;
24438 }
24439
24440
24441 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24442 PyObject *resultobj = 0;
24443 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24444 int arg2 ;
24445 PyObject *arg3 = (PyObject *) 0 ;
24446 void *argp1 = 0 ;
24447 int res1 = 0 ;
24448 int val2 ;
24449 int ecode2 = 0 ;
24450 PyObject * obj0 = 0 ;
24451 PyObject * obj1 = 0 ;
24452 PyObject * obj2 = 0 ;
24453 char * kwnames[] = {
24454 (char *) "self",(char *) "id",(char *) "clientData", NULL
24455 };
24456
24457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24458 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24459 if (!SWIG_IsOK(res1)) {
24460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24461 }
24462 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24463 ecode2 = SWIG_AsVal_int(obj1, &val2);
24464 if (!SWIG_IsOK(ecode2)) {
24465 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "2"" of type '" "int""'");
24466 }
24467 arg2 = static_cast< int >(val2);
24468 arg3 = obj2;
24469 {
24470 PyThreadState* __tstate = wxPyBeginAllowThreads();
24471 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
24472 wxPyEndAllowThreads(__tstate);
24473 if (PyErr_Occurred()) SWIG_fail;
24474 }
24475 resultobj = SWIG_Py_Void();
24476 return resultobj;
24477 fail:
24478 return NULL;
24479 }
24480
24481
24482 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24483 PyObject *resultobj = 0;
24484 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24485 int arg2 ;
24486 int result;
24487 void *argp1 = 0 ;
24488 int res1 = 0 ;
24489 int val2 ;
24490 int ecode2 = 0 ;
24491 PyObject * obj0 = 0 ;
24492 PyObject * obj1 = 0 ;
24493 char * kwnames[] = {
24494 (char *) "self",(char *) "id", NULL
24495 };
24496
24497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) SWIG_fail;
24498 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24499 if (!SWIG_IsOK(res1)) {
24500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
24501 }
24502 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24503 ecode2 = SWIG_AsVal_int(obj1, &val2);
24504 if (!SWIG_IsOK(ecode2)) {
24505 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "2"" of type '" "int""'");
24506 }
24507 arg2 = static_cast< int >(val2);
24508 {
24509 PyThreadState* __tstate = wxPyBeginAllowThreads();
24510 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
24511 wxPyEndAllowThreads(__tstate);
24512 if (PyErr_Occurred()) SWIG_fail;
24513 }
24514 resultobj = SWIG_From_int(static_cast< int >(result));
24515 return resultobj;
24516 fail:
24517 return NULL;
24518 }
24519
24520
24521 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24522 PyObject *resultobj = 0;
24523 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24524 int arg2 ;
24525 bool result;
24526 void *argp1 = 0 ;
24527 int res1 = 0 ;
24528 int val2 ;
24529 int ecode2 = 0 ;
24530 PyObject * obj0 = 0 ;
24531 PyObject * obj1 = 0 ;
24532 char * kwnames[] = {
24533 (char *) "self",(char *) "id", NULL
24534 };
24535
24536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) SWIG_fail;
24537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24538 if (!SWIG_IsOK(res1)) {
24539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolState" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24540 }
24541 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24542 ecode2 = SWIG_AsVal_int(obj1, &val2);
24543 if (!SWIG_IsOK(ecode2)) {
24544 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolState" "', expected argument " "2"" of type '" "int""'");
24545 }
24546 arg2 = static_cast< int >(val2);
24547 {
24548 PyThreadState* __tstate = wxPyBeginAllowThreads();
24549 result = (bool)(arg1)->GetToolState(arg2);
24550 wxPyEndAllowThreads(__tstate);
24551 if (PyErr_Occurred()) SWIG_fail;
24552 }
24553 {
24554 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24555 }
24556 return resultobj;
24557 fail:
24558 return NULL;
24559 }
24560
24561
24562 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24563 PyObject *resultobj = 0;
24564 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24565 int arg2 ;
24566 bool result;
24567 void *argp1 = 0 ;
24568 int res1 = 0 ;
24569 int val2 ;
24570 int ecode2 = 0 ;
24571 PyObject * obj0 = 0 ;
24572 PyObject * obj1 = 0 ;
24573 char * kwnames[] = {
24574 (char *) "self",(char *) "id", NULL
24575 };
24576
24577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
24578 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24579 if (!SWIG_IsOK(res1)) {
24580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24581 }
24582 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24583 ecode2 = SWIG_AsVal_int(obj1, &val2);
24584 if (!SWIG_IsOK(ecode2)) {
24585 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "2"" of type '" "int""'");
24586 }
24587 arg2 = static_cast< int >(val2);
24588 {
24589 PyThreadState* __tstate = wxPyBeginAllowThreads();
24590 result = (bool)(arg1)->GetToolEnabled(arg2);
24591 wxPyEndAllowThreads(__tstate);
24592 if (PyErr_Occurred()) SWIG_fail;
24593 }
24594 {
24595 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24596 }
24597 return resultobj;
24598 fail:
24599 return NULL;
24600 }
24601
24602
24603 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24604 PyObject *resultobj = 0;
24605 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24606 int arg2 ;
24607 wxString *arg3 = 0 ;
24608 void *argp1 = 0 ;
24609 int res1 = 0 ;
24610 int val2 ;
24611 int ecode2 = 0 ;
24612 bool temp3 = false ;
24613 PyObject * obj0 = 0 ;
24614 PyObject * obj1 = 0 ;
24615 PyObject * obj2 = 0 ;
24616 char * kwnames[] = {
24617 (char *) "self",(char *) "id",(char *) "helpString", NULL
24618 };
24619
24620 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24621 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24622 if (!SWIG_IsOK(res1)) {
24623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24624 }
24625 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24626 ecode2 = SWIG_AsVal_int(obj1, &val2);
24627 if (!SWIG_IsOK(ecode2)) {
24628 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24629 }
24630 arg2 = static_cast< int >(val2);
24631 {
24632 arg3 = wxString_in_helper(obj2);
24633 if (arg3 == NULL) SWIG_fail;
24634 temp3 = true;
24635 }
24636 {
24637 PyThreadState* __tstate = wxPyBeginAllowThreads();
24638 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
24639 wxPyEndAllowThreads(__tstate);
24640 if (PyErr_Occurred()) SWIG_fail;
24641 }
24642 resultobj = SWIG_Py_Void();
24643 {
24644 if (temp3)
24645 delete arg3;
24646 }
24647 return resultobj;
24648 fail:
24649 {
24650 if (temp3)
24651 delete arg3;
24652 }
24653 return NULL;
24654 }
24655
24656
24657 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24658 PyObject *resultobj = 0;
24659 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24660 int arg2 ;
24661 wxString result;
24662 void *argp1 = 0 ;
24663 int res1 = 0 ;
24664 int val2 ;
24665 int ecode2 = 0 ;
24666 PyObject * obj0 = 0 ;
24667 PyObject * obj1 = 0 ;
24668 char * kwnames[] = {
24669 (char *) "self",(char *) "id", NULL
24670 };
24671
24672 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24673 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24674 if (!SWIG_IsOK(res1)) {
24675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24676 }
24677 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24678 ecode2 = SWIG_AsVal_int(obj1, &val2);
24679 if (!SWIG_IsOK(ecode2)) {
24680 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24681 }
24682 arg2 = static_cast< int >(val2);
24683 {
24684 PyThreadState* __tstate = wxPyBeginAllowThreads();
24685 result = (arg1)->GetToolShortHelp(arg2);
24686 wxPyEndAllowThreads(__tstate);
24687 if (PyErr_Occurred()) SWIG_fail;
24688 }
24689 {
24690 #if wxUSE_UNICODE
24691 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24692 #else
24693 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24694 #endif
24695 }
24696 return resultobj;
24697 fail:
24698 return NULL;
24699 }
24700
24701
24702 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24703 PyObject *resultobj = 0;
24704 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24705 int arg2 ;
24706 wxString *arg3 = 0 ;
24707 void *argp1 = 0 ;
24708 int res1 = 0 ;
24709 int val2 ;
24710 int ecode2 = 0 ;
24711 bool temp3 = false ;
24712 PyObject * obj0 = 0 ;
24713 PyObject * obj1 = 0 ;
24714 PyObject * obj2 = 0 ;
24715 char * kwnames[] = {
24716 (char *) "self",(char *) "id",(char *) "helpString", NULL
24717 };
24718
24719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24721 if (!SWIG_IsOK(res1)) {
24722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24723 }
24724 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24725 ecode2 = SWIG_AsVal_int(obj1, &val2);
24726 if (!SWIG_IsOK(ecode2)) {
24727 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24728 }
24729 arg2 = static_cast< int >(val2);
24730 {
24731 arg3 = wxString_in_helper(obj2);
24732 if (arg3 == NULL) SWIG_fail;
24733 temp3 = true;
24734 }
24735 {
24736 PyThreadState* __tstate = wxPyBeginAllowThreads();
24737 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
24738 wxPyEndAllowThreads(__tstate);
24739 if (PyErr_Occurred()) SWIG_fail;
24740 }
24741 resultobj = SWIG_Py_Void();
24742 {
24743 if (temp3)
24744 delete arg3;
24745 }
24746 return resultobj;
24747 fail:
24748 {
24749 if (temp3)
24750 delete arg3;
24751 }
24752 return NULL;
24753 }
24754
24755
24756 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24757 PyObject *resultobj = 0;
24758 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24759 int arg2 ;
24760 wxString result;
24761 void *argp1 = 0 ;
24762 int res1 = 0 ;
24763 int val2 ;
24764 int ecode2 = 0 ;
24765 PyObject * obj0 = 0 ;
24766 PyObject * obj1 = 0 ;
24767 char * kwnames[] = {
24768 (char *) "self",(char *) "id", NULL
24769 };
24770
24771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24772 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24773 if (!SWIG_IsOK(res1)) {
24774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24775 }
24776 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24777 ecode2 = SWIG_AsVal_int(obj1, &val2);
24778 if (!SWIG_IsOK(ecode2)) {
24779 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24780 }
24781 arg2 = static_cast< int >(val2);
24782 {
24783 PyThreadState* __tstate = wxPyBeginAllowThreads();
24784 result = (arg1)->GetToolLongHelp(arg2);
24785 wxPyEndAllowThreads(__tstate);
24786 if (PyErr_Occurred()) SWIG_fail;
24787 }
24788 {
24789 #if wxUSE_UNICODE
24790 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24791 #else
24792 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24793 #endif
24794 }
24795 return resultobj;
24796 fail:
24797 return NULL;
24798 }
24799
24800
24801 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24802 PyObject *resultobj = 0;
24803 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24804 int arg2 ;
24805 int arg3 ;
24806 void *argp1 = 0 ;
24807 int res1 = 0 ;
24808 int val2 ;
24809 int ecode2 = 0 ;
24810 int val3 ;
24811 int ecode3 = 0 ;
24812 PyObject * obj0 = 0 ;
24813 PyObject * obj1 = 0 ;
24814 PyObject * obj2 = 0 ;
24815 char * kwnames[] = {
24816 (char *) "self",(char *) "x",(char *) "y", NULL
24817 };
24818
24819 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24820 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24821 if (!SWIG_IsOK(res1)) {
24822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24823 }
24824 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24825 ecode2 = SWIG_AsVal_int(obj1, &val2);
24826 if (!SWIG_IsOK(ecode2)) {
24827 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "2"" of type '" "int""'");
24828 }
24829 arg2 = static_cast< int >(val2);
24830 ecode3 = SWIG_AsVal_int(obj2, &val3);
24831 if (!SWIG_IsOK(ecode3)) {
24832 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "3"" of type '" "int""'");
24833 }
24834 arg3 = static_cast< int >(val3);
24835 {
24836 PyThreadState* __tstate = wxPyBeginAllowThreads();
24837 (arg1)->SetMargins(arg2,arg3);
24838 wxPyEndAllowThreads(__tstate);
24839 if (PyErr_Occurred()) SWIG_fail;
24840 }
24841 resultobj = SWIG_Py_Void();
24842 return resultobj;
24843 fail:
24844 return NULL;
24845 }
24846
24847
24848 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24849 PyObject *resultobj = 0;
24850 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24851 wxSize *arg2 = 0 ;
24852 void *argp1 = 0 ;
24853 int res1 = 0 ;
24854 wxSize temp2 ;
24855 PyObject * obj0 = 0 ;
24856 PyObject * obj1 = 0 ;
24857 char * kwnames[] = {
24858 (char *) "self",(char *) "size", NULL
24859 };
24860
24861 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail;
24862 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24863 if (!SWIG_IsOK(res1)) {
24864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24865 }
24866 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24867 {
24868 arg2 = &temp2;
24869 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
24870 }
24871 {
24872 PyThreadState* __tstate = wxPyBeginAllowThreads();
24873 (arg1)->SetMargins((wxSize const &)*arg2);
24874 wxPyEndAllowThreads(__tstate);
24875 if (PyErr_Occurred()) SWIG_fail;
24876 }
24877 resultobj = SWIG_Py_Void();
24878 return resultobj;
24879 fail:
24880 return NULL;
24881 }
24882
24883
24884 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24885 PyObject *resultobj = 0;
24886 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24887 int arg2 ;
24888 void *argp1 = 0 ;
24889 int res1 = 0 ;
24890 int val2 ;
24891 int ecode2 = 0 ;
24892 PyObject * obj0 = 0 ;
24893 PyObject * obj1 = 0 ;
24894 char * kwnames[] = {
24895 (char *) "self",(char *) "packing", NULL
24896 };
24897
24898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) SWIG_fail;
24899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24900 if (!SWIG_IsOK(res1)) {
24901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24902 }
24903 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24904 ecode2 = SWIG_AsVal_int(obj1, &val2);
24905 if (!SWIG_IsOK(ecode2)) {
24906 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "2"" of type '" "int""'");
24907 }
24908 arg2 = static_cast< int >(val2);
24909 {
24910 PyThreadState* __tstate = wxPyBeginAllowThreads();
24911 (arg1)->SetToolPacking(arg2);
24912 wxPyEndAllowThreads(__tstate);
24913 if (PyErr_Occurred()) SWIG_fail;
24914 }
24915 resultobj = SWIG_Py_Void();
24916 return resultobj;
24917 fail:
24918 return NULL;
24919 }
24920
24921
24922 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24923 PyObject *resultobj = 0;
24924 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24925 int arg2 ;
24926 void *argp1 = 0 ;
24927 int res1 = 0 ;
24928 int val2 ;
24929 int ecode2 = 0 ;
24930 PyObject * obj0 = 0 ;
24931 PyObject * obj1 = 0 ;
24932 char * kwnames[] = {
24933 (char *) "self",(char *) "separation", NULL
24934 };
24935
24936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) SWIG_fail;
24937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24938 if (!SWIG_IsOK(res1)) {
24939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24940 }
24941 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24942 ecode2 = SWIG_AsVal_int(obj1, &val2);
24943 if (!SWIG_IsOK(ecode2)) {
24944 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "2"" of type '" "int""'");
24945 }
24946 arg2 = static_cast< int >(val2);
24947 {
24948 PyThreadState* __tstate = wxPyBeginAllowThreads();
24949 (arg1)->SetToolSeparation(arg2);
24950 wxPyEndAllowThreads(__tstate);
24951 if (PyErr_Occurred()) SWIG_fail;
24952 }
24953 resultobj = SWIG_Py_Void();
24954 return resultobj;
24955 fail:
24956 return NULL;
24957 }
24958
24959
24960 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24961 PyObject *resultobj = 0;
24962 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24963 wxSize result;
24964 void *argp1 = 0 ;
24965 int res1 = 0 ;
24966 PyObject *swig_obj[1] ;
24967
24968 if (!args) SWIG_fail;
24969 swig_obj[0] = args;
24970 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24971 if (!SWIG_IsOK(res1)) {
24972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24973 }
24974 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24975 {
24976 PyThreadState* __tstate = wxPyBeginAllowThreads();
24977 result = (arg1)->GetToolMargins();
24978 wxPyEndAllowThreads(__tstate);
24979 if (PyErr_Occurred()) SWIG_fail;
24980 }
24981 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24982 return resultobj;
24983 fail:
24984 return NULL;
24985 }
24986
24987
24988 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24989 PyObject *resultobj = 0;
24990 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24991 wxSize result;
24992 void *argp1 = 0 ;
24993 int res1 = 0 ;
24994 PyObject *swig_obj[1] ;
24995
24996 if (!args) SWIG_fail;
24997 swig_obj[0] = args;
24998 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24999 if (!SWIG_IsOK(res1)) {
25000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25001 }
25002 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25003 {
25004 PyThreadState* __tstate = wxPyBeginAllowThreads();
25005 result = (arg1)->GetMargins();
25006 wxPyEndAllowThreads(__tstate);
25007 if (PyErr_Occurred()) SWIG_fail;
25008 }
25009 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25010 return resultobj;
25011 fail:
25012 return NULL;
25013 }
25014
25015
25016 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25017 PyObject *resultobj = 0;
25018 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25019 int result;
25020 void *argp1 = 0 ;
25021 int res1 = 0 ;
25022 PyObject *swig_obj[1] ;
25023
25024 if (!args) SWIG_fail;
25025 swig_obj[0] = args;
25026 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25027 if (!SWIG_IsOK(res1)) {
25028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25029 }
25030 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25031 {
25032 PyThreadState* __tstate = wxPyBeginAllowThreads();
25033 result = (int)(arg1)->GetToolPacking();
25034 wxPyEndAllowThreads(__tstate);
25035 if (PyErr_Occurred()) SWIG_fail;
25036 }
25037 resultobj = SWIG_From_int(static_cast< int >(result));
25038 return resultobj;
25039 fail:
25040 return NULL;
25041 }
25042
25043
25044 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25045 PyObject *resultobj = 0;
25046 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25047 int result;
25048 void *argp1 = 0 ;
25049 int res1 = 0 ;
25050 PyObject *swig_obj[1] ;
25051
25052 if (!args) SWIG_fail;
25053 swig_obj[0] = args;
25054 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25055 if (!SWIG_IsOK(res1)) {
25056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25057 }
25058 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25059 {
25060 PyThreadState* __tstate = wxPyBeginAllowThreads();
25061 result = (int)(arg1)->GetToolSeparation();
25062 wxPyEndAllowThreads(__tstate);
25063 if (PyErr_Occurred()) SWIG_fail;
25064 }
25065 resultobj = SWIG_From_int(static_cast< int >(result));
25066 return resultobj;
25067 fail:
25068 return NULL;
25069 }
25070
25071
25072 SWIGINTERN PyObject *_wrap_ToolBarBase_SetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25073 PyObject *resultobj = 0;
25074 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25075 int arg2 ;
25076 void *argp1 = 0 ;
25077 int res1 = 0 ;
25078 int val2 ;
25079 int ecode2 = 0 ;
25080 PyObject * obj0 = 0 ;
25081 PyObject * obj1 = 0 ;
25082 char * kwnames[] = {
25083 (char *) "self",(char *) "nRows", NULL
25084 };
25085
25086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) SWIG_fail;
25087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25088 if (!SWIG_IsOK(res1)) {
25089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25090 }
25091 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25092 ecode2 = SWIG_AsVal_int(obj1, &val2);
25093 if (!SWIG_IsOK(ecode2)) {
25094 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetRows" "', expected argument " "2"" of type '" "int""'");
25095 }
25096 arg2 = static_cast< int >(val2);
25097 {
25098 PyThreadState* __tstate = wxPyBeginAllowThreads();
25099 (arg1)->SetRows(arg2);
25100 wxPyEndAllowThreads(__tstate);
25101 if (PyErr_Occurred()) SWIG_fail;
25102 }
25103 resultobj = SWIG_Py_Void();
25104 return resultobj;
25105 fail:
25106 return NULL;
25107 }
25108
25109
25110 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25111 PyObject *resultobj = 0;
25112 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25113 int arg2 ;
25114 int arg3 ;
25115 void *argp1 = 0 ;
25116 int res1 = 0 ;
25117 int val2 ;
25118 int ecode2 = 0 ;
25119 int val3 ;
25120 int ecode3 = 0 ;
25121 PyObject * obj0 = 0 ;
25122 PyObject * obj1 = 0 ;
25123 PyObject * obj2 = 0 ;
25124 char * kwnames[] = {
25125 (char *) "self",(char *) "rows",(char *) "cols", NULL
25126 };
25127
25128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25130 if (!SWIG_IsOK(res1)) {
25131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25132 }
25133 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25134 ecode2 = SWIG_AsVal_int(obj1, &val2);
25135 if (!SWIG_IsOK(ecode2)) {
25136 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "2"" of type '" "int""'");
25137 }
25138 arg2 = static_cast< int >(val2);
25139 ecode3 = SWIG_AsVal_int(obj2, &val3);
25140 if (!SWIG_IsOK(ecode3)) {
25141 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "3"" of type '" "int""'");
25142 }
25143 arg3 = static_cast< int >(val3);
25144 {
25145 PyThreadState* __tstate = wxPyBeginAllowThreads();
25146 (arg1)->SetMaxRowsCols(arg2,arg3);
25147 wxPyEndAllowThreads(__tstate);
25148 if (PyErr_Occurred()) SWIG_fail;
25149 }
25150 resultobj = SWIG_Py_Void();
25151 return resultobj;
25152 fail:
25153 return NULL;
25154 }
25155
25156
25157 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25158 PyObject *resultobj = 0;
25159 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25160 int result;
25161 void *argp1 = 0 ;
25162 int res1 = 0 ;
25163 PyObject *swig_obj[1] ;
25164
25165 if (!args) SWIG_fail;
25166 swig_obj[0] = args;
25167 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25168 if (!SWIG_IsOK(res1)) {
25169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25170 }
25171 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25172 {
25173 PyThreadState* __tstate = wxPyBeginAllowThreads();
25174 result = (int)(arg1)->GetMaxRows();
25175 wxPyEndAllowThreads(__tstate);
25176 if (PyErr_Occurred()) SWIG_fail;
25177 }
25178 resultobj = SWIG_From_int(static_cast< int >(result));
25179 return resultobj;
25180 fail:
25181 return NULL;
25182 }
25183
25184
25185 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25186 PyObject *resultobj = 0;
25187 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25188 int result;
25189 void *argp1 = 0 ;
25190 int res1 = 0 ;
25191 PyObject *swig_obj[1] ;
25192
25193 if (!args) SWIG_fail;
25194 swig_obj[0] = args;
25195 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25196 if (!SWIG_IsOK(res1)) {
25197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25198 }
25199 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25200 {
25201 PyThreadState* __tstate = wxPyBeginAllowThreads();
25202 result = (int)(arg1)->GetMaxCols();
25203 wxPyEndAllowThreads(__tstate);
25204 if (PyErr_Occurred()) SWIG_fail;
25205 }
25206 resultobj = SWIG_From_int(static_cast< int >(result));
25207 return resultobj;
25208 fail:
25209 return NULL;
25210 }
25211
25212
25213 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25214 PyObject *resultobj = 0;
25215 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25216 wxSize *arg2 = 0 ;
25217 void *argp1 = 0 ;
25218 int res1 = 0 ;
25219 wxSize temp2 ;
25220 PyObject * obj0 = 0 ;
25221 PyObject * obj1 = 0 ;
25222 char * kwnames[] = {
25223 (char *) "self",(char *) "size", NULL
25224 };
25225
25226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) SWIG_fail;
25227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25228 if (!SWIG_IsOK(res1)) {
25229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25230 }
25231 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25232 {
25233 arg2 = &temp2;
25234 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25235 }
25236 {
25237 PyThreadState* __tstate = wxPyBeginAllowThreads();
25238 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
25239 wxPyEndAllowThreads(__tstate);
25240 if (PyErr_Occurred()) SWIG_fail;
25241 }
25242 resultobj = SWIG_Py_Void();
25243 return resultobj;
25244 fail:
25245 return NULL;
25246 }
25247
25248
25249 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25250 PyObject *resultobj = 0;
25251 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25252 wxSize result;
25253 void *argp1 = 0 ;
25254 int res1 = 0 ;
25255 PyObject *swig_obj[1] ;
25256
25257 if (!args) SWIG_fail;
25258 swig_obj[0] = args;
25259 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25260 if (!SWIG_IsOK(res1)) {
25261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25262 }
25263 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25264 {
25265 PyThreadState* __tstate = wxPyBeginAllowThreads();
25266 result = (arg1)->GetToolBitmapSize();
25267 wxPyEndAllowThreads(__tstate);
25268 if (PyErr_Occurred()) SWIG_fail;
25269 }
25270 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25271 return resultobj;
25272 fail:
25273 return NULL;
25274 }
25275
25276
25277 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25278 PyObject *resultobj = 0;
25279 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25280 wxSize result;
25281 void *argp1 = 0 ;
25282 int res1 = 0 ;
25283 PyObject *swig_obj[1] ;
25284
25285 if (!args) SWIG_fail;
25286 swig_obj[0] = args;
25287 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25288 if (!SWIG_IsOK(res1)) {
25289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25290 }
25291 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25292 {
25293 PyThreadState* __tstate = wxPyBeginAllowThreads();
25294 result = (arg1)->GetToolSize();
25295 wxPyEndAllowThreads(__tstate);
25296 if (PyErr_Occurred()) SWIG_fail;
25297 }
25298 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25299 return resultobj;
25300 fail:
25301 return NULL;
25302 }
25303
25304
25305 SWIGINTERN PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25306 PyObject *resultobj = 0;
25307 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25308 int arg2 ;
25309 int arg3 ;
25310 wxToolBarToolBase *result = 0 ;
25311 void *argp1 = 0 ;
25312 int res1 = 0 ;
25313 int val2 ;
25314 int ecode2 = 0 ;
25315 int val3 ;
25316 int ecode3 = 0 ;
25317 PyObject * obj0 = 0 ;
25318 PyObject * obj1 = 0 ;
25319 PyObject * obj2 = 0 ;
25320 char * kwnames[] = {
25321 (char *) "self",(char *) "x",(char *) "y", NULL
25322 };
25323
25324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25326 if (!SWIG_IsOK(res1)) {
25327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25328 }
25329 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25330 ecode2 = SWIG_AsVal_int(obj1, &val2);
25331 if (!SWIG_IsOK(ecode2)) {
25332 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "2"" of type '" "int""'");
25333 }
25334 arg2 = static_cast< int >(val2);
25335 ecode3 = SWIG_AsVal_int(obj2, &val3);
25336 if (!SWIG_IsOK(ecode3)) {
25337 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "3"" of type '" "int""'");
25338 }
25339 arg3 = static_cast< int >(val3);
25340 {
25341 PyThreadState* __tstate = wxPyBeginAllowThreads();
25342 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
25343 wxPyEndAllowThreads(__tstate);
25344 if (PyErr_Occurred()) SWIG_fail;
25345 }
25346 {
25347 resultobj = wxPyMake_wxObject(result, (bool)0);
25348 }
25349 return resultobj;
25350 fail:
25351 return NULL;
25352 }
25353
25354
25355 SWIGINTERN PyObject *_wrap_ToolBarBase_FindById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25356 PyObject *resultobj = 0;
25357 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25358 int arg2 ;
25359 wxToolBarToolBase *result = 0 ;
25360 void *argp1 = 0 ;
25361 int res1 = 0 ;
25362 int val2 ;
25363 int ecode2 = 0 ;
25364 PyObject * obj0 = 0 ;
25365 PyObject * obj1 = 0 ;
25366 char * kwnames[] = {
25367 (char *) "self",(char *) "toolid", NULL
25368 };
25369
25370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) SWIG_fail;
25371 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25372 if (!SWIG_IsOK(res1)) {
25373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindById" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25374 }
25375 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25376 ecode2 = SWIG_AsVal_int(obj1, &val2);
25377 if (!SWIG_IsOK(ecode2)) {
25378 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindById" "', expected argument " "2"" of type '" "int""'");
25379 }
25380 arg2 = static_cast< int >(val2);
25381 {
25382 PyThreadState* __tstate = wxPyBeginAllowThreads();
25383 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
25384 wxPyEndAllowThreads(__tstate);
25385 if (PyErr_Occurred()) SWIG_fail;
25386 }
25387 {
25388 resultobj = wxPyMake_wxObject(result, (bool)0);
25389 }
25390 return resultobj;
25391 fail:
25392 return NULL;
25393 }
25394
25395
25396 SWIGINTERN PyObject *_wrap_ToolBarBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25397 PyObject *resultobj = 0;
25398 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25399 bool result;
25400 void *argp1 = 0 ;
25401 int res1 = 0 ;
25402 PyObject *swig_obj[1] ;
25403
25404 if (!args) SWIG_fail;
25405 swig_obj[0] = args;
25406 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25407 if (!SWIG_IsOK(res1)) {
25408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_IsVertical" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25409 }
25410 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25411 {
25412 PyThreadState* __tstate = wxPyBeginAllowThreads();
25413 result = (bool)(arg1)->IsVertical();
25414 wxPyEndAllowThreads(__tstate);
25415 if (PyErr_Occurred()) SWIG_fail;
25416 }
25417 {
25418 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25419 }
25420 return resultobj;
25421 fail:
25422 return NULL;
25423 }
25424
25425
25426 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25427 PyObject *resultobj = 0;
25428 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25429 size_t result;
25430 void *argp1 = 0 ;
25431 int res1 = 0 ;
25432 PyObject *swig_obj[1] ;
25433
25434 if (!args) SWIG_fail;
25435 swig_obj[0] = args;
25436 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25437 if (!SWIG_IsOK(res1)) {
25438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolsCount" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25439 }
25440 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25441 {
25442 PyThreadState* __tstate = wxPyBeginAllowThreads();
25443 result = (size_t)((wxToolBarBase const *)arg1)->GetToolsCount();
25444 wxPyEndAllowThreads(__tstate);
25445 if (PyErr_Occurred()) SWIG_fail;
25446 }
25447 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
25448 return resultobj;
25449 fail:
25450 return NULL;
25451 }
25452
25453
25454 SWIGINTERN PyObject *ToolBarBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25455 PyObject *obj;
25456 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25457 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarBase, SWIG_NewClientData(obj));
25458 return SWIG_Py_Void();
25459 }
25460
25461 SWIGINTERN PyObject *_wrap_new_ToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25462 PyObject *resultobj = 0;
25463 wxWindow *arg1 = (wxWindow *) 0 ;
25464 int arg2 = (int) -1 ;
25465 wxPoint const &arg3_defvalue = wxDefaultPosition ;
25466 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
25467 wxSize const &arg4_defvalue = wxDefaultSize ;
25468 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
25469 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25470 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
25471 wxString *arg6 = (wxString *) &arg6_defvalue ;
25472 wxToolBar *result = 0 ;
25473 void *argp1 = 0 ;
25474 int res1 = 0 ;
25475 int val2 ;
25476 int ecode2 = 0 ;
25477 wxPoint temp3 ;
25478 wxSize temp4 ;
25479 long val5 ;
25480 int ecode5 = 0 ;
25481 bool temp6 = false ;
25482 PyObject * obj0 = 0 ;
25483 PyObject * obj1 = 0 ;
25484 PyObject * obj2 = 0 ;
25485 PyObject * obj3 = 0 ;
25486 PyObject * obj4 = 0 ;
25487 PyObject * obj5 = 0 ;
25488 char * kwnames[] = {
25489 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25490 };
25491
25492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25493 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25494 if (!SWIG_IsOK(res1)) {
25495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToolBar" "', expected argument " "1"" of type '" "wxWindow *""'");
25496 }
25497 arg1 = reinterpret_cast< wxWindow * >(argp1);
25498 if (obj1) {
25499 ecode2 = SWIG_AsVal_int(obj1, &val2);
25500 if (!SWIG_IsOK(ecode2)) {
25501 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolBar" "', expected argument " "2"" of type '" "int""'");
25502 }
25503 arg2 = static_cast< int >(val2);
25504 }
25505 if (obj2) {
25506 {
25507 arg3 = &temp3;
25508 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
25509 }
25510 }
25511 if (obj3) {
25512 {
25513 arg4 = &temp4;
25514 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
25515 }
25516 }
25517 if (obj4) {
25518 ecode5 = SWIG_AsVal_long(obj4, &val5);
25519 if (!SWIG_IsOK(ecode5)) {
25520 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ToolBar" "', expected argument " "5"" of type '" "long""'");
25521 }
25522 arg5 = static_cast< long >(val5);
25523 }
25524 if (obj5) {
25525 {
25526 arg6 = wxString_in_helper(obj5);
25527 if (arg6 == NULL) SWIG_fail;
25528 temp6 = true;
25529 }
25530 }
25531 {
25532 if (!wxPyCheckForApp()) SWIG_fail;
25533 PyThreadState* __tstate = wxPyBeginAllowThreads();
25534 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
25535 wxPyEndAllowThreads(__tstate);
25536 if (PyErr_Occurred()) SWIG_fail;
25537 }
25538 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_NEW | 0 );
25539 {
25540 if (temp6)
25541 delete arg6;
25542 }
25543 return resultobj;
25544 fail:
25545 {
25546 if (temp6)
25547 delete arg6;
25548 }
25549 return NULL;
25550 }
25551
25552
25553 SWIGINTERN PyObject *_wrap_new_PreToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25554 PyObject *resultobj = 0;
25555 wxToolBar *result = 0 ;
25556
25557 if (!SWIG_Python_UnpackTuple(args,"new_PreToolBar",0,0,0)) SWIG_fail;
25558 {
25559 if (!wxPyCheckForApp()) SWIG_fail;
25560 PyThreadState* __tstate = wxPyBeginAllowThreads();
25561 result = (wxToolBar *)new wxToolBar();
25562 wxPyEndAllowThreads(__tstate);
25563 if (PyErr_Occurred()) SWIG_fail;
25564 }
25565 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_OWN | 0 );
25566 return resultobj;
25567 fail:
25568 return NULL;
25569 }
25570
25571
25572 SWIGINTERN PyObject *_wrap_ToolBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25573 PyObject *resultobj = 0;
25574 wxToolBar *arg1 = (wxToolBar *) 0 ;
25575 wxWindow *arg2 = (wxWindow *) 0 ;
25576 int arg3 = (int) -1 ;
25577 wxPoint const &arg4_defvalue = wxDefaultPosition ;
25578 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
25579 wxSize const &arg5_defvalue = wxDefaultSize ;
25580 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
25581 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25582 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
25583 wxString *arg7 = (wxString *) &arg7_defvalue ;
25584 bool result;
25585 void *argp1 = 0 ;
25586 int res1 = 0 ;
25587 void *argp2 = 0 ;
25588 int res2 = 0 ;
25589 int val3 ;
25590 int ecode3 = 0 ;
25591 wxPoint temp4 ;
25592 wxSize temp5 ;
25593 long val6 ;
25594 int ecode6 = 0 ;
25595 bool temp7 = false ;
25596 PyObject * obj0 = 0 ;
25597 PyObject * obj1 = 0 ;
25598 PyObject * obj2 = 0 ;
25599 PyObject * obj3 = 0 ;
25600 PyObject * obj4 = 0 ;
25601 PyObject * obj5 = 0 ;
25602 PyObject * obj6 = 0 ;
25603 char * kwnames[] = {
25604 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25605 };
25606
25607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
25609 if (!SWIG_IsOK(res1)) {
25610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_Create" "', expected argument " "1"" of type '" "wxToolBar *""'");
25611 }
25612 arg1 = reinterpret_cast< wxToolBar * >(argp1);
25613 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25614 if (!SWIG_IsOK(res2)) {
25615 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
25616 }
25617 arg2 = reinterpret_cast< wxWindow * >(argp2);
25618 if (obj2) {
25619 ecode3 = SWIG_AsVal_int(obj2, &val3);
25620 if (!SWIG_IsOK(ecode3)) {
25621 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_Create" "', expected argument " "3"" of type '" "int""'");
25622 }
25623 arg3 = static_cast< int >(val3);
25624 }
25625 if (obj3) {
25626 {
25627 arg4 = &temp4;
25628 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
25629 }
25630 }
25631 if (obj4) {
25632 {
25633 arg5 = &temp5;
25634 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
25635 }
25636 }
25637 if (obj5) {
25638 ecode6 = SWIG_AsVal_long(obj5, &val6);
25639 if (!SWIG_IsOK(ecode6)) {
25640 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBar_Create" "', expected argument " "6"" of type '" "long""'");
25641 }
25642 arg6 = static_cast< long >(val6);
25643 }
25644 if (obj6) {
25645 {
25646 arg7 = wxString_in_helper(obj6);
25647 if (arg7 == NULL) SWIG_fail;
25648 temp7 = true;
25649 }
25650 }
25651 {
25652 PyThreadState* __tstate = wxPyBeginAllowThreads();
25653 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
25654 wxPyEndAllowThreads(__tstate);
25655 if (PyErr_Occurred()) SWIG_fail;
25656 }
25657 {
25658 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25659 }
25660 {
25661 if (temp7)
25662 delete arg7;
25663 }
25664 return resultobj;
25665 fail:
25666 {
25667 if (temp7)
25668 delete arg7;
25669 }
25670 return NULL;
25671 }
25672
25673
25674 SWIGINTERN PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25675 PyObject *resultobj = 0;
25676 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
25677 SwigValueWrapper<wxVisualAttributes > result;
25678 int val1 ;
25679 int ecode1 = 0 ;
25680 PyObject * obj0 = 0 ;
25681 char * kwnames[] = {
25682 (char *) "variant", NULL
25683 };
25684
25685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
25686 if (obj0) {
25687 ecode1 = SWIG_AsVal_int(obj0, &val1);
25688 if (!SWIG_IsOK(ecode1)) {
25689 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToolBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
25690 }
25691 arg1 = static_cast< wxWindowVariant >(val1);
25692 }
25693 {
25694 if (!wxPyCheckForApp()) SWIG_fail;
25695 PyThreadState* __tstate = wxPyBeginAllowThreads();
25696 result = wxToolBar::GetClassDefaultAttributes(arg1);
25697 wxPyEndAllowThreads(__tstate);
25698 if (PyErr_Occurred()) SWIG_fail;
25699 }
25700 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
25701 return resultobj;
25702 fail:
25703 return NULL;
25704 }
25705
25706
25707 SWIGINTERN PyObject *ToolBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25708 PyObject *obj;
25709 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25710 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBar, SWIG_NewClientData(obj));
25711 return SWIG_Py_Void();
25712 }
25713
25714 SWIGINTERN PyObject *ToolBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25715 return SWIG_Python_InitShadowInstance(args);
25716 }
25717
25718 SWIGINTERN int ListCtrlNameStr_set(PyObject *) {
25719 SWIG_Error(SWIG_AttributeError,"Variable ListCtrlNameStr is read-only.");
25720 return 1;
25721 }
25722
25723
25724 SWIGINTERN PyObject *ListCtrlNameStr_get(void) {
25725 PyObject *pyobj = 0;
25726
25727 {
25728 #if wxUSE_UNICODE
25729 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
25730 #else
25731 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
25732 #endif
25733 }
25734 return pyobj;
25735 }
25736
25737
25738 SWIGINTERN PyObject *_wrap_new_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25739 PyObject *resultobj = 0;
25740 wxColour const &arg1_defvalue = wxNullColour ;
25741 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
25742 wxColour const &arg2_defvalue = wxNullColour ;
25743 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
25744 wxFont const &arg3_defvalue = wxNullFont ;
25745 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
25746 wxListItemAttr *result = 0 ;
25747 wxColour temp1 ;
25748 wxColour temp2 ;
25749 void *argp3 = 0 ;
25750 int res3 = 0 ;
25751 PyObject * obj0 = 0 ;
25752 PyObject * obj1 = 0 ;
25753 PyObject * obj2 = 0 ;
25754 char * kwnames[] = {
25755 (char *) "colText",(char *) "colBack",(char *) "font", NULL
25756 };
25757
25758 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25759 if (obj0) {
25760 {
25761 arg1 = &temp1;
25762 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
25763 }
25764 }
25765 if (obj1) {
25766 {
25767 arg2 = &temp2;
25768 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25769 }
25770 }
25771 if (obj2) {
25772 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
25773 if (!SWIG_IsOK(res3)) {
25774 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
25775 }
25776 if (!argp3) {
25777 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
25778 }
25779 arg3 = reinterpret_cast< wxFont * >(argp3);
25780 }
25781 {
25782 PyThreadState* __tstate = wxPyBeginAllowThreads();
25783 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
25784 wxPyEndAllowThreads(__tstate);
25785 if (PyErr_Occurred()) SWIG_fail;
25786 }
25787 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_NEW | 0 );
25788 return resultobj;
25789 fail:
25790 return NULL;
25791 }
25792
25793
25794 SWIGINTERN PyObject *_wrap_delete_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25795 PyObject *resultobj = 0;
25796 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25797 void *argp1 = 0 ;
25798 int res1 = 0 ;
25799 PyObject *swig_obj[1] ;
25800
25801 if (!args) SWIG_fail;
25802 swig_obj[0] = args;
25803 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_DISOWN | 0 );
25804 if (!SWIG_IsOK(res1)) {
25805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItemAttr" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25806 }
25807 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25808 {
25809 PyThreadState* __tstate = wxPyBeginAllowThreads();
25810 delete arg1;
25811
25812 wxPyEndAllowThreads(__tstate);
25813 if (PyErr_Occurred()) SWIG_fail;
25814 }
25815 resultobj = SWIG_Py_Void();
25816 return resultobj;
25817 fail:
25818 return NULL;
25819 }
25820
25821
25822 SWIGINTERN PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25823 PyObject *resultobj = 0;
25824 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25825 wxColour *arg2 = 0 ;
25826 void *argp1 = 0 ;
25827 int res1 = 0 ;
25828 wxColour temp2 ;
25829 PyObject * obj0 = 0 ;
25830 PyObject * obj1 = 0 ;
25831 char * kwnames[] = {
25832 (char *) "self",(char *) "colText", NULL
25833 };
25834
25835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
25836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25837 if (!SWIG_IsOK(res1)) {
25838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25839 }
25840 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25841 {
25842 arg2 = &temp2;
25843 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25844 }
25845 {
25846 PyThreadState* __tstate = wxPyBeginAllowThreads();
25847 (arg1)->SetTextColour((wxColour const &)*arg2);
25848 wxPyEndAllowThreads(__tstate);
25849 if (PyErr_Occurred()) SWIG_fail;
25850 }
25851 resultobj = SWIG_Py_Void();
25852 return resultobj;
25853 fail:
25854 return NULL;
25855 }
25856
25857
25858 SWIGINTERN PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25859 PyObject *resultobj = 0;
25860 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25861 wxColour *arg2 = 0 ;
25862 void *argp1 = 0 ;
25863 int res1 = 0 ;
25864 wxColour temp2 ;
25865 PyObject * obj0 = 0 ;
25866 PyObject * obj1 = 0 ;
25867 char * kwnames[] = {
25868 (char *) "self",(char *) "colBack", NULL
25869 };
25870
25871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
25872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25873 if (!SWIG_IsOK(res1)) {
25874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25875 }
25876 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25877 {
25878 arg2 = &temp2;
25879 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25880 }
25881 {
25882 PyThreadState* __tstate = wxPyBeginAllowThreads();
25883 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
25884 wxPyEndAllowThreads(__tstate);
25885 if (PyErr_Occurred()) SWIG_fail;
25886 }
25887 resultobj = SWIG_Py_Void();
25888 return resultobj;
25889 fail:
25890 return NULL;
25891 }
25892
25893
25894 SWIGINTERN PyObject *_wrap_ListItemAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25895 PyObject *resultobj = 0;
25896 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25897 wxFont *arg2 = 0 ;
25898 void *argp1 = 0 ;
25899 int res1 = 0 ;
25900 void *argp2 = 0 ;
25901 int res2 = 0 ;
25902 PyObject * obj0 = 0 ;
25903 PyObject * obj1 = 0 ;
25904 char * kwnames[] = {
25905 (char *) "self",(char *) "font", NULL
25906 };
25907
25908 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
25909 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25910 if (!SWIG_IsOK(res1)) {
25911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25912 }
25913 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25914 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
25915 if (!SWIG_IsOK(res2)) {
25916 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25917 }
25918 if (!argp2) {
25919 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25920 }
25921 arg2 = reinterpret_cast< wxFont * >(argp2);
25922 {
25923 PyThreadState* __tstate = wxPyBeginAllowThreads();
25924 (arg1)->SetFont((wxFont const &)*arg2);
25925 wxPyEndAllowThreads(__tstate);
25926 if (PyErr_Occurred()) SWIG_fail;
25927 }
25928 resultobj = SWIG_Py_Void();
25929 return resultobj;
25930 fail:
25931 return NULL;
25932 }
25933
25934
25935 SWIGINTERN PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25936 PyObject *resultobj = 0;
25937 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25938 bool result;
25939 void *argp1 = 0 ;
25940 int res1 = 0 ;
25941 PyObject *swig_obj[1] ;
25942
25943 if (!args) SWIG_fail;
25944 swig_obj[0] = args;
25945 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25946 if (!SWIG_IsOK(res1)) {
25947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25948 }
25949 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25950 {
25951 PyThreadState* __tstate = wxPyBeginAllowThreads();
25952 result = (bool)(arg1)->HasTextColour();
25953 wxPyEndAllowThreads(__tstate);
25954 if (PyErr_Occurred()) SWIG_fail;
25955 }
25956 {
25957 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25958 }
25959 return resultobj;
25960 fail:
25961 return NULL;
25962 }
25963
25964
25965 SWIGINTERN PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25966 PyObject *resultobj = 0;
25967 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25968 bool result;
25969 void *argp1 = 0 ;
25970 int res1 = 0 ;
25971 PyObject *swig_obj[1] ;
25972
25973 if (!args) SWIG_fail;
25974 swig_obj[0] = args;
25975 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25976 if (!SWIG_IsOK(res1)) {
25977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25978 }
25979 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25980 {
25981 PyThreadState* __tstate = wxPyBeginAllowThreads();
25982 result = (bool)(arg1)->HasBackgroundColour();
25983 wxPyEndAllowThreads(__tstate);
25984 if (PyErr_Occurred()) SWIG_fail;
25985 }
25986 {
25987 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25988 }
25989 return resultobj;
25990 fail:
25991 return NULL;
25992 }
25993
25994
25995 SWIGINTERN PyObject *_wrap_ListItemAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25996 PyObject *resultobj = 0;
25997 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25998 bool result;
25999 void *argp1 = 0 ;
26000 int res1 = 0 ;
26001 PyObject *swig_obj[1] ;
26002
26003 if (!args) SWIG_fail;
26004 swig_obj[0] = args;
26005 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26006 if (!SWIG_IsOK(res1)) {
26007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26008 }
26009 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26010 {
26011 PyThreadState* __tstate = wxPyBeginAllowThreads();
26012 result = (bool)(arg1)->HasFont();
26013 wxPyEndAllowThreads(__tstate);
26014 if (PyErr_Occurred()) SWIG_fail;
26015 }
26016 {
26017 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26018 }
26019 return resultobj;
26020 fail:
26021 return NULL;
26022 }
26023
26024
26025 SWIGINTERN PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26026 PyObject *resultobj = 0;
26027 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26028 wxColour result;
26029 void *argp1 = 0 ;
26030 int res1 = 0 ;
26031 PyObject *swig_obj[1] ;
26032
26033 if (!args) SWIG_fail;
26034 swig_obj[0] = args;
26035 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26036 if (!SWIG_IsOK(res1)) {
26037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26038 }
26039 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26040 {
26041 PyThreadState* __tstate = wxPyBeginAllowThreads();
26042 result = (arg1)->GetTextColour();
26043 wxPyEndAllowThreads(__tstate);
26044 if (PyErr_Occurred()) SWIG_fail;
26045 }
26046 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26047 return resultobj;
26048 fail:
26049 return NULL;
26050 }
26051
26052
26053 SWIGINTERN PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26054 PyObject *resultobj = 0;
26055 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26056 wxColour result;
26057 void *argp1 = 0 ;
26058 int res1 = 0 ;
26059 PyObject *swig_obj[1] ;
26060
26061 if (!args) SWIG_fail;
26062 swig_obj[0] = args;
26063 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26064 if (!SWIG_IsOK(res1)) {
26065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26066 }
26067 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26068 {
26069 PyThreadState* __tstate = wxPyBeginAllowThreads();
26070 result = (arg1)->GetBackgroundColour();
26071 wxPyEndAllowThreads(__tstate);
26072 if (PyErr_Occurred()) SWIG_fail;
26073 }
26074 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26075 return resultobj;
26076 fail:
26077 return NULL;
26078 }
26079
26080
26081 SWIGINTERN PyObject *_wrap_ListItemAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26082 PyObject *resultobj = 0;
26083 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26084 wxFont result;
26085 void *argp1 = 0 ;
26086 int res1 = 0 ;
26087 PyObject *swig_obj[1] ;
26088
26089 if (!args) SWIG_fail;
26090 swig_obj[0] = args;
26091 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26092 if (!SWIG_IsOK(res1)) {
26093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26094 }
26095 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26096 {
26097 PyThreadState* __tstate = wxPyBeginAllowThreads();
26098 result = (arg1)->GetFont();
26099 wxPyEndAllowThreads(__tstate);
26100 if (PyErr_Occurred()) SWIG_fail;
26101 }
26102 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
26103 return resultobj;
26104 fail:
26105 return NULL;
26106 }
26107
26108
26109 SWIGINTERN PyObject *_wrap_ListItemAttr_AssignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26110 PyObject *resultobj = 0;
26111 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26112 wxListItemAttr *arg2 = 0 ;
26113 void *argp1 = 0 ;
26114 int res1 = 0 ;
26115 void *argp2 = 0 ;
26116 int res2 = 0 ;
26117 PyObject * obj0 = 0 ;
26118 PyObject * obj1 = 0 ;
26119 char * kwnames[] = {
26120 (char *) "self",(char *) "source", NULL
26121 };
26122
26123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_AssignFrom",kwnames,&obj0,&obj1)) SWIG_fail;
26124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26125 if (!SWIG_IsOK(res1)) {
26126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26127 }
26128 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26129 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItemAttr, 0 | 0);
26130 if (!SWIG_IsOK(res2)) {
26131 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26132 }
26133 if (!argp2) {
26134 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26135 }
26136 arg2 = reinterpret_cast< wxListItemAttr * >(argp2);
26137 {
26138 PyThreadState* __tstate = wxPyBeginAllowThreads();
26139 (arg1)->AssignFrom((wxListItemAttr const &)*arg2);
26140 wxPyEndAllowThreads(__tstate);
26141 if (PyErr_Occurred()) SWIG_fail;
26142 }
26143 resultobj = SWIG_Py_Void();
26144 return resultobj;
26145 fail:
26146 return NULL;
26147 }
26148
26149
26150 SWIGINTERN PyObject *_wrap_ListItemAttr_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26151 PyObject *resultobj = 0;
26152 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26153 void *argp1 = 0 ;
26154 int res1 = 0 ;
26155 PyObject *swig_obj[1] ;
26156
26157 if (!args) SWIG_fail;
26158 swig_obj[0] = args;
26159 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26160 if (!SWIG_IsOK(res1)) {
26161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_Destroy" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26162 }
26163 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26164 {
26165 PyThreadState* __tstate = wxPyBeginAllowThreads();
26166 wxListItemAttr_Destroy(arg1);
26167 wxPyEndAllowThreads(__tstate);
26168 if (PyErr_Occurred()) SWIG_fail;
26169 }
26170 resultobj = SWIG_Py_Void();
26171 return resultobj;
26172 fail:
26173 return NULL;
26174 }
26175
26176
26177 SWIGINTERN PyObject *ListItemAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26178 PyObject *obj;
26179 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26180 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItemAttr, SWIG_NewClientData(obj));
26181 return SWIG_Py_Void();
26182 }
26183
26184 SWIGINTERN PyObject *ListItemAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26185 return SWIG_Python_InitShadowInstance(args);
26186 }
26187
26188 SWIGINTERN PyObject *_wrap_new_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26189 PyObject *resultobj = 0;
26190 wxListItem *result = 0 ;
26191
26192 if (!SWIG_Python_UnpackTuple(args,"new_ListItem",0,0,0)) SWIG_fail;
26193 {
26194 PyThreadState* __tstate = wxPyBeginAllowThreads();
26195 result = (wxListItem *)new wxListItem();
26196 wxPyEndAllowThreads(__tstate);
26197 if (PyErr_Occurred()) SWIG_fail;
26198 }
26199 {
26200 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
26201 }
26202 return resultobj;
26203 fail:
26204 return NULL;
26205 }
26206
26207
26208 SWIGINTERN PyObject *_wrap_delete_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26209 PyObject *resultobj = 0;
26210 wxListItem *arg1 = (wxListItem *) 0 ;
26211 void *argp1 = 0 ;
26212 int res1 = 0 ;
26213 PyObject *swig_obj[1] ;
26214
26215 if (!args) SWIG_fail;
26216 swig_obj[0] = args;
26217 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, SWIG_POINTER_DISOWN | 0 );
26218 if (!SWIG_IsOK(res1)) {
26219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItem" "', expected argument " "1"" of type '" "wxListItem *""'");
26220 }
26221 arg1 = reinterpret_cast< wxListItem * >(argp1);
26222 {
26223 PyThreadState* __tstate = wxPyBeginAllowThreads();
26224 delete arg1;
26225
26226 wxPyEndAllowThreads(__tstate);
26227 if (PyErr_Occurred()) SWIG_fail;
26228 }
26229 resultobj = SWIG_Py_Void();
26230 return resultobj;
26231 fail:
26232 return NULL;
26233 }
26234
26235
26236 SWIGINTERN PyObject *_wrap_ListItem_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26237 PyObject *resultobj = 0;
26238 wxListItem *arg1 = (wxListItem *) 0 ;
26239 void *argp1 = 0 ;
26240 int res1 = 0 ;
26241 PyObject *swig_obj[1] ;
26242
26243 if (!args) SWIG_fail;
26244 swig_obj[0] = args;
26245 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26246 if (!SWIG_IsOK(res1)) {
26247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_Clear" "', expected argument " "1"" of type '" "wxListItem *""'");
26248 }
26249 arg1 = reinterpret_cast< wxListItem * >(argp1);
26250 {
26251 PyThreadState* __tstate = wxPyBeginAllowThreads();
26252 (arg1)->Clear();
26253 wxPyEndAllowThreads(__tstate);
26254 if (PyErr_Occurred()) SWIG_fail;
26255 }
26256 resultobj = SWIG_Py_Void();
26257 return resultobj;
26258 fail:
26259 return NULL;
26260 }
26261
26262
26263 SWIGINTERN PyObject *_wrap_ListItem_ClearAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26264 PyObject *resultobj = 0;
26265 wxListItem *arg1 = (wxListItem *) 0 ;
26266 void *argp1 = 0 ;
26267 int res1 = 0 ;
26268 PyObject *swig_obj[1] ;
26269
26270 if (!args) SWIG_fail;
26271 swig_obj[0] = args;
26272 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26273 if (!SWIG_IsOK(res1)) {
26274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_ClearAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26275 }
26276 arg1 = reinterpret_cast< wxListItem * >(argp1);
26277 {
26278 PyThreadState* __tstate = wxPyBeginAllowThreads();
26279 (arg1)->ClearAttributes();
26280 wxPyEndAllowThreads(__tstate);
26281 if (PyErr_Occurred()) SWIG_fail;
26282 }
26283 resultobj = SWIG_Py_Void();
26284 return resultobj;
26285 fail:
26286 return NULL;
26287 }
26288
26289
26290 SWIGINTERN PyObject *_wrap_ListItem_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26291 PyObject *resultobj = 0;
26292 wxListItem *arg1 = (wxListItem *) 0 ;
26293 long arg2 ;
26294 void *argp1 = 0 ;
26295 int res1 = 0 ;
26296 long val2 ;
26297 int ecode2 = 0 ;
26298 PyObject * obj0 = 0 ;
26299 PyObject * obj1 = 0 ;
26300 char * kwnames[] = {
26301 (char *) "self",(char *) "mask", NULL
26302 };
26303
26304 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
26305 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26306 if (!SWIG_IsOK(res1)) {
26307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26308 }
26309 arg1 = reinterpret_cast< wxListItem * >(argp1);
26310 ecode2 = SWIG_AsVal_long(obj1, &val2);
26311 if (!SWIG_IsOK(ecode2)) {
26312 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetMask" "', expected argument " "2"" of type '" "long""'");
26313 }
26314 arg2 = static_cast< long >(val2);
26315 {
26316 PyThreadState* __tstate = wxPyBeginAllowThreads();
26317 (arg1)->SetMask(arg2);
26318 wxPyEndAllowThreads(__tstate);
26319 if (PyErr_Occurred()) SWIG_fail;
26320 }
26321 resultobj = SWIG_Py_Void();
26322 return resultobj;
26323 fail:
26324 return NULL;
26325 }
26326
26327
26328 SWIGINTERN PyObject *_wrap_ListItem_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26329 PyObject *resultobj = 0;
26330 wxListItem *arg1 = (wxListItem *) 0 ;
26331 long arg2 ;
26332 void *argp1 = 0 ;
26333 int res1 = 0 ;
26334 long val2 ;
26335 int ecode2 = 0 ;
26336 PyObject * obj0 = 0 ;
26337 PyObject * obj1 = 0 ;
26338 char * kwnames[] = {
26339 (char *) "self",(char *) "id", NULL
26340 };
26341
26342 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
26343 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26344 if (!SWIG_IsOK(res1)) {
26345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26346 }
26347 arg1 = reinterpret_cast< wxListItem * >(argp1);
26348 ecode2 = SWIG_AsVal_long(obj1, &val2);
26349 if (!SWIG_IsOK(ecode2)) {
26350 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetId" "', expected argument " "2"" of type '" "long""'");
26351 }
26352 arg2 = static_cast< long >(val2);
26353 {
26354 PyThreadState* __tstate = wxPyBeginAllowThreads();
26355 (arg1)->SetId(arg2);
26356 wxPyEndAllowThreads(__tstate);
26357 if (PyErr_Occurred()) SWIG_fail;
26358 }
26359 resultobj = SWIG_Py_Void();
26360 return resultobj;
26361 fail:
26362 return NULL;
26363 }
26364
26365
26366 SWIGINTERN PyObject *_wrap_ListItem_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26367 PyObject *resultobj = 0;
26368 wxListItem *arg1 = (wxListItem *) 0 ;
26369 int arg2 ;
26370 void *argp1 = 0 ;
26371 int res1 = 0 ;
26372 int val2 ;
26373 int ecode2 = 0 ;
26374 PyObject * obj0 = 0 ;
26375 PyObject * obj1 = 0 ;
26376 char * kwnames[] = {
26377 (char *) "self",(char *) "col", NULL
26378 };
26379
26380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
26381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26382 if (!SWIG_IsOK(res1)) {
26383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26384 }
26385 arg1 = reinterpret_cast< wxListItem * >(argp1);
26386 ecode2 = SWIG_AsVal_int(obj1, &val2);
26387 if (!SWIG_IsOK(ecode2)) {
26388 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetColumn" "', expected argument " "2"" of type '" "int""'");
26389 }
26390 arg2 = static_cast< int >(val2);
26391 {
26392 PyThreadState* __tstate = wxPyBeginAllowThreads();
26393 (arg1)->SetColumn(arg2);
26394 wxPyEndAllowThreads(__tstate);
26395 if (PyErr_Occurred()) SWIG_fail;
26396 }
26397 resultobj = SWIG_Py_Void();
26398 return resultobj;
26399 fail:
26400 return NULL;
26401 }
26402
26403
26404 SWIGINTERN PyObject *_wrap_ListItem_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26405 PyObject *resultobj = 0;
26406 wxListItem *arg1 = (wxListItem *) 0 ;
26407 long arg2 ;
26408 void *argp1 = 0 ;
26409 int res1 = 0 ;
26410 long val2 ;
26411 int ecode2 = 0 ;
26412 PyObject * obj0 = 0 ;
26413 PyObject * obj1 = 0 ;
26414 char * kwnames[] = {
26415 (char *) "self",(char *) "state", NULL
26416 };
26417
26418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) SWIG_fail;
26419 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26420 if (!SWIG_IsOK(res1)) {
26421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26422 }
26423 arg1 = reinterpret_cast< wxListItem * >(argp1);
26424 ecode2 = SWIG_AsVal_long(obj1, &val2);
26425 if (!SWIG_IsOK(ecode2)) {
26426 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetState" "', expected argument " "2"" of type '" "long""'");
26427 }
26428 arg2 = static_cast< long >(val2);
26429 {
26430 PyThreadState* __tstate = wxPyBeginAllowThreads();
26431 (arg1)->SetState(arg2);
26432 wxPyEndAllowThreads(__tstate);
26433 if (PyErr_Occurred()) SWIG_fail;
26434 }
26435 resultobj = SWIG_Py_Void();
26436 return resultobj;
26437 fail:
26438 return NULL;
26439 }
26440
26441
26442 SWIGINTERN PyObject *_wrap_ListItem_SetStateMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26443 PyObject *resultobj = 0;
26444 wxListItem *arg1 = (wxListItem *) 0 ;
26445 long arg2 ;
26446 void *argp1 = 0 ;
26447 int res1 = 0 ;
26448 long val2 ;
26449 int ecode2 = 0 ;
26450 PyObject * obj0 = 0 ;
26451 PyObject * obj1 = 0 ;
26452 char * kwnames[] = {
26453 (char *) "self",(char *) "stateMask", NULL
26454 };
26455
26456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) SWIG_fail;
26457 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26458 if (!SWIG_IsOK(res1)) {
26459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetStateMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26460 }
26461 arg1 = reinterpret_cast< wxListItem * >(argp1);
26462 ecode2 = SWIG_AsVal_long(obj1, &val2);
26463 if (!SWIG_IsOK(ecode2)) {
26464 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetStateMask" "', expected argument " "2"" of type '" "long""'");
26465 }
26466 arg2 = static_cast< long >(val2);
26467 {
26468 PyThreadState* __tstate = wxPyBeginAllowThreads();
26469 (arg1)->SetStateMask(arg2);
26470 wxPyEndAllowThreads(__tstate);
26471 if (PyErr_Occurred()) SWIG_fail;
26472 }
26473 resultobj = SWIG_Py_Void();
26474 return resultobj;
26475 fail:
26476 return NULL;
26477 }
26478
26479
26480 SWIGINTERN PyObject *_wrap_ListItem_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26481 PyObject *resultobj = 0;
26482 wxListItem *arg1 = (wxListItem *) 0 ;
26483 wxString *arg2 = 0 ;
26484 void *argp1 = 0 ;
26485 int res1 = 0 ;
26486 bool temp2 = false ;
26487 PyObject * obj0 = 0 ;
26488 PyObject * obj1 = 0 ;
26489 char * kwnames[] = {
26490 (char *) "self",(char *) "text", NULL
26491 };
26492
26493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) SWIG_fail;
26494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26495 if (!SWIG_IsOK(res1)) {
26496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26497 }
26498 arg1 = reinterpret_cast< wxListItem * >(argp1);
26499 {
26500 arg2 = wxString_in_helper(obj1);
26501 if (arg2 == NULL) SWIG_fail;
26502 temp2 = true;
26503 }
26504 {
26505 PyThreadState* __tstate = wxPyBeginAllowThreads();
26506 (arg1)->SetText((wxString const &)*arg2);
26507 wxPyEndAllowThreads(__tstate);
26508 if (PyErr_Occurred()) SWIG_fail;
26509 }
26510 resultobj = SWIG_Py_Void();
26511 {
26512 if (temp2)
26513 delete arg2;
26514 }
26515 return resultobj;
26516 fail:
26517 {
26518 if (temp2)
26519 delete arg2;
26520 }
26521 return NULL;
26522 }
26523
26524
26525 SWIGINTERN PyObject *_wrap_ListItem_SetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26526 PyObject *resultobj = 0;
26527 wxListItem *arg1 = (wxListItem *) 0 ;
26528 int arg2 ;
26529 void *argp1 = 0 ;
26530 int res1 = 0 ;
26531 int val2 ;
26532 int ecode2 = 0 ;
26533 PyObject * obj0 = 0 ;
26534 PyObject * obj1 = 0 ;
26535 char * kwnames[] = {
26536 (char *) "self",(char *) "image", NULL
26537 };
26538
26539 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) SWIG_fail;
26540 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26541 if (!SWIG_IsOK(res1)) {
26542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26543 }
26544 arg1 = reinterpret_cast< wxListItem * >(argp1);
26545 ecode2 = SWIG_AsVal_int(obj1, &val2);
26546 if (!SWIG_IsOK(ecode2)) {
26547 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetImage" "', expected argument " "2"" of type '" "int""'");
26548 }
26549 arg2 = static_cast< int >(val2);
26550 {
26551 PyThreadState* __tstate = wxPyBeginAllowThreads();
26552 (arg1)->SetImage(arg2);
26553 wxPyEndAllowThreads(__tstate);
26554 if (PyErr_Occurred()) SWIG_fail;
26555 }
26556 resultobj = SWIG_Py_Void();
26557 return resultobj;
26558 fail:
26559 return NULL;
26560 }
26561
26562
26563 SWIGINTERN PyObject *_wrap_ListItem_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26564 PyObject *resultobj = 0;
26565 wxListItem *arg1 = (wxListItem *) 0 ;
26566 long arg2 ;
26567 void *argp1 = 0 ;
26568 int res1 = 0 ;
26569 long val2 ;
26570 int ecode2 = 0 ;
26571 PyObject * obj0 = 0 ;
26572 PyObject * obj1 = 0 ;
26573 char * kwnames[] = {
26574 (char *) "self",(char *) "data", NULL
26575 };
26576
26577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
26578 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26579 if (!SWIG_IsOK(res1)) {
26580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26581 }
26582 arg1 = reinterpret_cast< wxListItem * >(argp1);
26583 ecode2 = SWIG_AsVal_long(obj1, &val2);
26584 if (!SWIG_IsOK(ecode2)) {
26585 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetData" "', expected argument " "2"" of type '" "long""'");
26586 }
26587 arg2 = static_cast< long >(val2);
26588 {
26589 PyThreadState* __tstate = wxPyBeginAllowThreads();
26590 (arg1)->SetData(arg2);
26591 wxPyEndAllowThreads(__tstate);
26592 if (PyErr_Occurred()) SWIG_fail;
26593 }
26594 resultobj = SWIG_Py_Void();
26595 return resultobj;
26596 fail:
26597 return NULL;
26598 }
26599
26600
26601 SWIGINTERN PyObject *_wrap_ListItem_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26602 PyObject *resultobj = 0;
26603 wxListItem *arg1 = (wxListItem *) 0 ;
26604 int arg2 ;
26605 void *argp1 = 0 ;
26606 int res1 = 0 ;
26607 int val2 ;
26608 int ecode2 = 0 ;
26609 PyObject * obj0 = 0 ;
26610 PyObject * obj1 = 0 ;
26611 char * kwnames[] = {
26612 (char *) "self",(char *) "width", NULL
26613 };
26614
26615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
26616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26617 if (!SWIG_IsOK(res1)) {
26618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
26619 }
26620 arg1 = reinterpret_cast< wxListItem * >(argp1);
26621 ecode2 = SWIG_AsVal_int(obj1, &val2);
26622 if (!SWIG_IsOK(ecode2)) {
26623 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetWidth" "', expected argument " "2"" of type '" "int""'");
26624 }
26625 arg2 = static_cast< int >(val2);
26626 {
26627 PyThreadState* __tstate = wxPyBeginAllowThreads();
26628 (arg1)->SetWidth(arg2);
26629 wxPyEndAllowThreads(__tstate);
26630 if (PyErr_Occurred()) SWIG_fail;
26631 }
26632 resultobj = SWIG_Py_Void();
26633 return resultobj;
26634 fail:
26635 return NULL;
26636 }
26637
26638
26639 SWIGINTERN PyObject *_wrap_ListItem_SetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26640 PyObject *resultobj = 0;
26641 wxListItem *arg1 = (wxListItem *) 0 ;
26642 wxListColumnFormat arg2 ;
26643 void *argp1 = 0 ;
26644 int res1 = 0 ;
26645 int val2 ;
26646 int ecode2 = 0 ;
26647 PyObject * obj0 = 0 ;
26648 PyObject * obj1 = 0 ;
26649 char * kwnames[] = {
26650 (char *) "self",(char *) "align", NULL
26651 };
26652
26653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) SWIG_fail;
26654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26655 if (!SWIG_IsOK(res1)) {
26656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
26657 }
26658 arg1 = reinterpret_cast< wxListItem * >(argp1);
26659 ecode2 = SWIG_AsVal_int(obj1, &val2);
26660 if (!SWIG_IsOK(ecode2)) {
26661 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetAlign" "', expected argument " "2"" of type '" "wxListColumnFormat""'");
26662 }
26663 arg2 = static_cast< wxListColumnFormat >(val2);
26664 {
26665 PyThreadState* __tstate = wxPyBeginAllowThreads();
26666 (arg1)->SetAlign(arg2);
26667 wxPyEndAllowThreads(__tstate);
26668 if (PyErr_Occurred()) SWIG_fail;
26669 }
26670 resultobj = SWIG_Py_Void();
26671 return resultobj;
26672 fail:
26673 return NULL;
26674 }
26675
26676
26677 SWIGINTERN PyObject *_wrap_ListItem_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26678 PyObject *resultobj = 0;
26679 wxListItem *arg1 = (wxListItem *) 0 ;
26680 wxColour *arg2 = 0 ;
26681 void *argp1 = 0 ;
26682 int res1 = 0 ;
26683 wxColour temp2 ;
26684 PyObject * obj0 = 0 ;
26685 PyObject * obj1 = 0 ;
26686 char * kwnames[] = {
26687 (char *) "self",(char *) "colText", NULL
26688 };
26689
26690 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
26691 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26692 if (!SWIG_IsOK(res1)) {
26693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetTextColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26694 }
26695 arg1 = reinterpret_cast< wxListItem * >(argp1);
26696 {
26697 arg2 = &temp2;
26698 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26699 }
26700 {
26701 PyThreadState* __tstate = wxPyBeginAllowThreads();
26702 (arg1)->SetTextColour((wxColour const &)*arg2);
26703 wxPyEndAllowThreads(__tstate);
26704 if (PyErr_Occurred()) SWIG_fail;
26705 }
26706 resultobj = SWIG_Py_Void();
26707 return resultobj;
26708 fail:
26709 return NULL;
26710 }
26711
26712
26713 SWIGINTERN PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26714 PyObject *resultobj = 0;
26715 wxListItem *arg1 = (wxListItem *) 0 ;
26716 wxColour *arg2 = 0 ;
26717 void *argp1 = 0 ;
26718 int res1 = 0 ;
26719 wxColour temp2 ;
26720 PyObject * obj0 = 0 ;
26721 PyObject * obj1 = 0 ;
26722 char * kwnames[] = {
26723 (char *) "self",(char *) "colBack", NULL
26724 };
26725
26726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
26727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26728 if (!SWIG_IsOK(res1)) {
26729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26730 }
26731 arg1 = reinterpret_cast< wxListItem * >(argp1);
26732 {
26733 arg2 = &temp2;
26734 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26735 }
26736 {
26737 PyThreadState* __tstate = wxPyBeginAllowThreads();
26738 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
26739 wxPyEndAllowThreads(__tstate);
26740 if (PyErr_Occurred()) SWIG_fail;
26741 }
26742 resultobj = SWIG_Py_Void();
26743 return resultobj;
26744 fail:
26745 return NULL;
26746 }
26747
26748
26749 SWIGINTERN PyObject *_wrap_ListItem_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26750 PyObject *resultobj = 0;
26751 wxListItem *arg1 = (wxListItem *) 0 ;
26752 wxFont *arg2 = 0 ;
26753 void *argp1 = 0 ;
26754 int res1 = 0 ;
26755 void *argp2 = 0 ;
26756 int res2 = 0 ;
26757 PyObject * obj0 = 0 ;
26758 PyObject * obj1 = 0 ;
26759 char * kwnames[] = {
26760 (char *) "self",(char *) "font", NULL
26761 };
26762
26763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26764 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26765 if (!SWIG_IsOK(res1)) {
26766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetFont" "', expected argument " "1"" of type '" "wxListItem *""'");
26767 }
26768 arg1 = reinterpret_cast< wxListItem * >(argp1);
26769 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26770 if (!SWIG_IsOK(res2)) {
26771 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26772 }
26773 if (!argp2) {
26774 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26775 }
26776 arg2 = reinterpret_cast< wxFont * >(argp2);
26777 {
26778 PyThreadState* __tstate = wxPyBeginAllowThreads();
26779 (arg1)->SetFont((wxFont const &)*arg2);
26780 wxPyEndAllowThreads(__tstate);
26781 if (PyErr_Occurred()) SWIG_fail;
26782 }
26783 resultobj = SWIG_Py_Void();
26784 return resultobj;
26785 fail:
26786 return NULL;
26787 }
26788
26789
26790 SWIGINTERN PyObject *_wrap_ListItem_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26791 PyObject *resultobj = 0;
26792 wxListItem *arg1 = (wxListItem *) 0 ;
26793 long result;
26794 void *argp1 = 0 ;
26795 int res1 = 0 ;
26796 PyObject *swig_obj[1] ;
26797
26798 if (!args) SWIG_fail;
26799 swig_obj[0] = args;
26800 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26801 if (!SWIG_IsOK(res1)) {
26802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26803 }
26804 arg1 = reinterpret_cast< wxListItem * >(argp1);
26805 {
26806 PyThreadState* __tstate = wxPyBeginAllowThreads();
26807 result = (long)(arg1)->GetMask();
26808 wxPyEndAllowThreads(__tstate);
26809 if (PyErr_Occurred()) SWIG_fail;
26810 }
26811 resultobj = SWIG_From_long(static_cast< long >(result));
26812 return resultobj;
26813 fail:
26814 return NULL;
26815 }
26816
26817
26818 SWIGINTERN PyObject *_wrap_ListItem_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26819 PyObject *resultobj = 0;
26820 wxListItem *arg1 = (wxListItem *) 0 ;
26821 long result;
26822 void *argp1 = 0 ;
26823 int res1 = 0 ;
26824 PyObject *swig_obj[1] ;
26825
26826 if (!args) SWIG_fail;
26827 swig_obj[0] = args;
26828 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26829 if (!SWIG_IsOK(res1)) {
26830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26831 }
26832 arg1 = reinterpret_cast< wxListItem * >(argp1);
26833 {
26834 PyThreadState* __tstate = wxPyBeginAllowThreads();
26835 result = (long)(arg1)->GetId();
26836 wxPyEndAllowThreads(__tstate);
26837 if (PyErr_Occurred()) SWIG_fail;
26838 }
26839 resultobj = SWIG_From_long(static_cast< long >(result));
26840 return resultobj;
26841 fail:
26842 return NULL;
26843 }
26844
26845
26846 SWIGINTERN PyObject *_wrap_ListItem_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26847 PyObject *resultobj = 0;
26848 wxListItem *arg1 = (wxListItem *) 0 ;
26849 int result;
26850 void *argp1 = 0 ;
26851 int res1 = 0 ;
26852 PyObject *swig_obj[1] ;
26853
26854 if (!args) SWIG_fail;
26855 swig_obj[0] = args;
26856 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26857 if (!SWIG_IsOK(res1)) {
26858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26859 }
26860 arg1 = reinterpret_cast< wxListItem * >(argp1);
26861 {
26862 PyThreadState* __tstate = wxPyBeginAllowThreads();
26863 result = (int)(arg1)->GetColumn();
26864 wxPyEndAllowThreads(__tstate);
26865 if (PyErr_Occurred()) SWIG_fail;
26866 }
26867 resultobj = SWIG_From_int(static_cast< int >(result));
26868 return resultobj;
26869 fail:
26870 return NULL;
26871 }
26872
26873
26874 SWIGINTERN PyObject *_wrap_ListItem_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26875 PyObject *resultobj = 0;
26876 wxListItem *arg1 = (wxListItem *) 0 ;
26877 long result;
26878 void *argp1 = 0 ;
26879 int res1 = 0 ;
26880 PyObject *swig_obj[1] ;
26881
26882 if (!args) SWIG_fail;
26883 swig_obj[0] = args;
26884 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26885 if (!SWIG_IsOK(res1)) {
26886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26887 }
26888 arg1 = reinterpret_cast< wxListItem * >(argp1);
26889 {
26890 PyThreadState* __tstate = wxPyBeginAllowThreads();
26891 result = (long)(arg1)->GetState();
26892 wxPyEndAllowThreads(__tstate);
26893 if (PyErr_Occurred()) SWIG_fail;
26894 }
26895 resultobj = SWIG_From_long(static_cast< long >(result));
26896 return resultobj;
26897 fail:
26898 return NULL;
26899 }
26900
26901
26902 SWIGINTERN PyObject *_wrap_ListItem_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26903 PyObject *resultobj = 0;
26904 wxListItem *arg1 = (wxListItem *) 0 ;
26905 wxString *result = 0 ;
26906 void *argp1 = 0 ;
26907 int res1 = 0 ;
26908 PyObject *swig_obj[1] ;
26909
26910 if (!args) SWIG_fail;
26911 swig_obj[0] = args;
26912 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26913 if (!SWIG_IsOK(res1)) {
26914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26915 }
26916 arg1 = reinterpret_cast< wxListItem * >(argp1);
26917 {
26918 PyThreadState* __tstate = wxPyBeginAllowThreads();
26919 {
26920 wxString const &_result_ref = (arg1)->GetText();
26921 result = (wxString *) &_result_ref;
26922 }
26923 wxPyEndAllowThreads(__tstate);
26924 if (PyErr_Occurred()) SWIG_fail;
26925 }
26926 {
26927 #if wxUSE_UNICODE
26928 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
26929 #else
26930 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
26931 #endif
26932 }
26933 return resultobj;
26934 fail:
26935 return NULL;
26936 }
26937
26938
26939 SWIGINTERN PyObject *_wrap_ListItem_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26940 PyObject *resultobj = 0;
26941 wxListItem *arg1 = (wxListItem *) 0 ;
26942 int result;
26943 void *argp1 = 0 ;
26944 int res1 = 0 ;
26945 PyObject *swig_obj[1] ;
26946
26947 if (!args) SWIG_fail;
26948 swig_obj[0] = args;
26949 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26950 if (!SWIG_IsOK(res1)) {
26951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26952 }
26953 arg1 = reinterpret_cast< wxListItem * >(argp1);
26954 {
26955 PyThreadState* __tstate = wxPyBeginAllowThreads();
26956 result = (int)(arg1)->GetImage();
26957 wxPyEndAllowThreads(__tstate);
26958 if (PyErr_Occurred()) SWIG_fail;
26959 }
26960 resultobj = SWIG_From_int(static_cast< int >(result));
26961 return resultobj;
26962 fail:
26963 return NULL;
26964 }
26965
26966
26967 SWIGINTERN PyObject *_wrap_ListItem_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26968 PyObject *resultobj = 0;
26969 wxListItem *arg1 = (wxListItem *) 0 ;
26970 long result;
26971 void *argp1 = 0 ;
26972 int res1 = 0 ;
26973 PyObject *swig_obj[1] ;
26974
26975 if (!args) SWIG_fail;
26976 swig_obj[0] = args;
26977 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26978 if (!SWIG_IsOK(res1)) {
26979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26980 }
26981 arg1 = reinterpret_cast< wxListItem * >(argp1);
26982 {
26983 PyThreadState* __tstate = wxPyBeginAllowThreads();
26984 result = (long)(arg1)->GetData();
26985 wxPyEndAllowThreads(__tstate);
26986 if (PyErr_Occurred()) SWIG_fail;
26987 }
26988 resultobj = SWIG_From_long(static_cast< long >(result));
26989 return resultobj;
26990 fail:
26991 return NULL;
26992 }
26993
26994
26995 SWIGINTERN PyObject *_wrap_ListItem_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26996 PyObject *resultobj = 0;
26997 wxListItem *arg1 = (wxListItem *) 0 ;
26998 int result;
26999 void *argp1 = 0 ;
27000 int res1 = 0 ;
27001 PyObject *swig_obj[1] ;
27002
27003 if (!args) SWIG_fail;
27004 swig_obj[0] = args;
27005 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27006 if (!SWIG_IsOK(res1)) {
27007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
27008 }
27009 arg1 = reinterpret_cast< wxListItem * >(argp1);
27010 {
27011 PyThreadState* __tstate = wxPyBeginAllowThreads();
27012 result = (int)(arg1)->GetWidth();
27013 wxPyEndAllowThreads(__tstate);
27014 if (PyErr_Occurred()) SWIG_fail;
27015 }
27016 resultobj = SWIG_From_int(static_cast< int >(result));
27017 return resultobj;
27018 fail:
27019 return NULL;
27020 }
27021
27022
27023 SWIGINTERN PyObject *_wrap_ListItem_GetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27024 PyObject *resultobj = 0;
27025 wxListItem *arg1 = (wxListItem *) 0 ;
27026 wxListColumnFormat result;
27027 void *argp1 = 0 ;
27028 int res1 = 0 ;
27029 PyObject *swig_obj[1] ;
27030
27031 if (!args) SWIG_fail;
27032 swig_obj[0] = args;
27033 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27034 if (!SWIG_IsOK(res1)) {
27035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
27036 }
27037 arg1 = reinterpret_cast< wxListItem * >(argp1);
27038 {
27039 PyThreadState* __tstate = wxPyBeginAllowThreads();
27040 result = (wxListColumnFormat)(arg1)->GetAlign();
27041 wxPyEndAllowThreads(__tstate);
27042 if (PyErr_Occurred()) SWIG_fail;
27043 }
27044 resultobj = SWIG_From_int(static_cast< int >(result));
27045 return resultobj;
27046 fail:
27047 return NULL;
27048 }
27049
27050
27051 SWIGINTERN PyObject *_wrap_ListItem_GetAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27052 PyObject *resultobj = 0;
27053 wxListItem *arg1 = (wxListItem *) 0 ;
27054 wxListItemAttr *result = 0 ;
27055 void *argp1 = 0 ;
27056 int res1 = 0 ;
27057 PyObject *swig_obj[1] ;
27058
27059 if (!args) SWIG_fail;
27060 swig_obj[0] = args;
27061 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27062 if (!SWIG_IsOK(res1)) {
27063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27064 }
27065 arg1 = reinterpret_cast< wxListItem * >(argp1);
27066 {
27067 PyThreadState* __tstate = wxPyBeginAllowThreads();
27068 result = (wxListItemAttr *)(arg1)->GetAttributes();
27069 wxPyEndAllowThreads(__tstate);
27070 if (PyErr_Occurred()) SWIG_fail;
27071 }
27072 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, 0 | 0 );
27073 return resultobj;
27074 fail:
27075 return NULL;
27076 }
27077
27078
27079 SWIGINTERN PyObject *_wrap_ListItem_HasAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27080 PyObject *resultobj = 0;
27081 wxListItem *arg1 = (wxListItem *) 0 ;
27082 bool result;
27083 void *argp1 = 0 ;
27084 int res1 = 0 ;
27085 PyObject *swig_obj[1] ;
27086
27087 if (!args) SWIG_fail;
27088 swig_obj[0] = args;
27089 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27090 if (!SWIG_IsOK(res1)) {
27091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_HasAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27092 }
27093 arg1 = reinterpret_cast< wxListItem * >(argp1);
27094 {
27095 PyThreadState* __tstate = wxPyBeginAllowThreads();
27096 result = (bool)(arg1)->HasAttributes();
27097 wxPyEndAllowThreads(__tstate);
27098 if (PyErr_Occurred()) SWIG_fail;
27099 }
27100 {
27101 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27102 }
27103 return resultobj;
27104 fail:
27105 return NULL;
27106 }
27107
27108
27109 SWIGINTERN PyObject *_wrap_ListItem_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27110 PyObject *resultobj = 0;
27111 wxListItem *arg1 = (wxListItem *) 0 ;
27112 wxColour result;
27113 void *argp1 = 0 ;
27114 int res1 = 0 ;
27115 PyObject *swig_obj[1] ;
27116
27117 if (!args) SWIG_fail;
27118 swig_obj[0] = args;
27119 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27120 if (!SWIG_IsOK(res1)) {
27121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetTextColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27122 }
27123 arg1 = reinterpret_cast< wxListItem * >(argp1);
27124 {
27125 PyThreadState* __tstate = wxPyBeginAllowThreads();
27126 result = ((wxListItem const *)arg1)->GetTextColour();
27127 wxPyEndAllowThreads(__tstate);
27128 if (PyErr_Occurred()) SWIG_fail;
27129 }
27130 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27131 return resultobj;
27132 fail:
27133 return NULL;
27134 }
27135
27136
27137 SWIGINTERN PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27138 PyObject *resultobj = 0;
27139 wxListItem *arg1 = (wxListItem *) 0 ;
27140 wxColour result;
27141 void *argp1 = 0 ;
27142 int res1 = 0 ;
27143 PyObject *swig_obj[1] ;
27144
27145 if (!args) SWIG_fail;
27146 swig_obj[0] = args;
27147 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27148 if (!SWIG_IsOK(res1)) {
27149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27150 }
27151 arg1 = reinterpret_cast< wxListItem * >(argp1);
27152 {
27153 PyThreadState* __tstate = wxPyBeginAllowThreads();
27154 result = ((wxListItem const *)arg1)->GetBackgroundColour();
27155 wxPyEndAllowThreads(__tstate);
27156 if (PyErr_Occurred()) SWIG_fail;
27157 }
27158 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27159 return resultobj;
27160 fail:
27161 return NULL;
27162 }
27163
27164
27165 SWIGINTERN PyObject *_wrap_ListItem_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27166 PyObject *resultobj = 0;
27167 wxListItem *arg1 = (wxListItem *) 0 ;
27168 wxFont result;
27169 void *argp1 = 0 ;
27170 int res1 = 0 ;
27171 PyObject *swig_obj[1] ;
27172
27173 if (!args) SWIG_fail;
27174 swig_obj[0] = args;
27175 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27176 if (!SWIG_IsOK(res1)) {
27177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetFont" "', expected argument " "1"" of type '" "wxListItem const *""'");
27178 }
27179 arg1 = reinterpret_cast< wxListItem * >(argp1);
27180 {
27181 PyThreadState* __tstate = wxPyBeginAllowThreads();
27182 result = ((wxListItem const *)arg1)->GetFont();
27183 wxPyEndAllowThreads(__tstate);
27184 if (PyErr_Occurred()) SWIG_fail;
27185 }
27186 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
27187 return resultobj;
27188 fail:
27189 return NULL;
27190 }
27191
27192
27193 SWIGINTERN PyObject *_wrap_ListItem_m_mask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27194 PyObject *resultobj = 0;
27195 wxListItem *arg1 = (wxListItem *) 0 ;
27196 long arg2 ;
27197 void *argp1 = 0 ;
27198 int res1 = 0 ;
27199 long val2 ;
27200 int ecode2 = 0 ;
27201 PyObject *swig_obj[2] ;
27202
27203 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_mask_set",2,2,swig_obj)) SWIG_fail;
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_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27207 }
27208 arg1 = reinterpret_cast< wxListItem * >(argp1);
27209 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27210 if (!SWIG_IsOK(ecode2)) {
27211 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_mask_set" "', expected argument " "2"" of type '" "long""'");
27212 }
27213 arg2 = static_cast< long >(val2);
27214 if (arg1) (arg1)->m_mask = arg2;
27215
27216 resultobj = SWIG_Py_Void();
27217 return resultobj;
27218 fail:
27219 return NULL;
27220 }
27221
27222
27223 SWIGINTERN PyObject *_wrap_ListItem_m_mask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27224 PyObject *resultobj = 0;
27225 wxListItem *arg1 = (wxListItem *) 0 ;
27226 long result;
27227 void *argp1 = 0 ;
27228 int res1 = 0 ;
27229 PyObject *swig_obj[1] ;
27230
27231 if (!args) SWIG_fail;
27232 swig_obj[0] = args;
27233 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27234 if (!SWIG_IsOK(res1)) {
27235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27236 }
27237 arg1 = reinterpret_cast< wxListItem * >(argp1);
27238 result = (long) ((arg1)->m_mask);
27239 resultobj = SWIG_From_long(static_cast< long >(result));
27240 return resultobj;
27241 fail:
27242 return NULL;
27243 }
27244
27245
27246 SWIGINTERN PyObject *_wrap_ListItem_m_itemId_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27247 PyObject *resultobj = 0;
27248 wxListItem *arg1 = (wxListItem *) 0 ;
27249 long arg2 ;
27250 void *argp1 = 0 ;
27251 int res1 = 0 ;
27252 long val2 ;
27253 int ecode2 = 0 ;
27254 PyObject *swig_obj[2] ;
27255
27256 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_itemId_set",2,2,swig_obj)) SWIG_fail;
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_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27260 }
27261 arg1 = reinterpret_cast< wxListItem * >(argp1);
27262 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27263 if (!SWIG_IsOK(ecode2)) {
27264 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_itemId_set" "', expected argument " "2"" of type '" "long""'");
27265 }
27266 arg2 = static_cast< long >(val2);
27267 if (arg1) (arg1)->m_itemId = arg2;
27268
27269 resultobj = SWIG_Py_Void();
27270 return resultobj;
27271 fail:
27272 return NULL;
27273 }
27274
27275
27276 SWIGINTERN PyObject *_wrap_ListItem_m_itemId_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27277 PyObject *resultobj = 0;
27278 wxListItem *arg1 = (wxListItem *) 0 ;
27279 long result;
27280 void *argp1 = 0 ;
27281 int res1 = 0 ;
27282 PyObject *swig_obj[1] ;
27283
27284 if (!args) SWIG_fail;
27285 swig_obj[0] = args;
27286 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27287 if (!SWIG_IsOK(res1)) {
27288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27289 }
27290 arg1 = reinterpret_cast< wxListItem * >(argp1);
27291 result = (long) ((arg1)->m_itemId);
27292 resultobj = SWIG_From_long(static_cast< long >(result));
27293 return resultobj;
27294 fail:
27295 return NULL;
27296 }
27297
27298
27299 SWIGINTERN PyObject *_wrap_ListItem_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27300 PyObject *resultobj = 0;
27301 wxListItem *arg1 = (wxListItem *) 0 ;
27302 int arg2 ;
27303 void *argp1 = 0 ;
27304 int res1 = 0 ;
27305 int val2 ;
27306 int ecode2 = 0 ;
27307 PyObject *swig_obj[2] ;
27308
27309 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_col_set",2,2,swig_obj)) SWIG_fail;
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_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27313 }
27314 arg1 = reinterpret_cast< wxListItem * >(argp1);
27315 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27316 if (!SWIG_IsOK(ecode2)) {
27317 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_col_set" "', expected argument " "2"" of type '" "int""'");
27318 }
27319 arg2 = static_cast< int >(val2);
27320 if (arg1) (arg1)->m_col = arg2;
27321
27322 resultobj = SWIG_Py_Void();
27323 return resultobj;
27324 fail:
27325 return NULL;
27326 }
27327
27328
27329 SWIGINTERN PyObject *_wrap_ListItem_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27330 PyObject *resultobj = 0;
27331 wxListItem *arg1 = (wxListItem *) 0 ;
27332 int result;
27333 void *argp1 = 0 ;
27334 int res1 = 0 ;
27335 PyObject *swig_obj[1] ;
27336
27337 if (!args) SWIG_fail;
27338 swig_obj[0] = args;
27339 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27340 if (!SWIG_IsOK(res1)) {
27341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27342 }
27343 arg1 = reinterpret_cast< wxListItem * >(argp1);
27344 result = (int) ((arg1)->m_col);
27345 resultobj = SWIG_From_int(static_cast< int >(result));
27346 return resultobj;
27347 fail:
27348 return NULL;
27349 }
27350
27351
27352 SWIGINTERN PyObject *_wrap_ListItem_m_state_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27353 PyObject *resultobj = 0;
27354 wxListItem *arg1 = (wxListItem *) 0 ;
27355 long arg2 ;
27356 void *argp1 = 0 ;
27357 int res1 = 0 ;
27358 long val2 ;
27359 int ecode2 = 0 ;
27360 PyObject *swig_obj[2] ;
27361
27362 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_state_set",2,2,swig_obj)) SWIG_fail;
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_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27366 }
27367 arg1 = reinterpret_cast< wxListItem * >(argp1);
27368 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27369 if (!SWIG_IsOK(ecode2)) {
27370 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_state_set" "', expected argument " "2"" of type '" "long""'");
27371 }
27372 arg2 = static_cast< long >(val2);
27373 if (arg1) (arg1)->m_state = arg2;
27374
27375 resultobj = SWIG_Py_Void();
27376 return resultobj;
27377 fail:
27378 return NULL;
27379 }
27380
27381
27382 SWIGINTERN PyObject *_wrap_ListItem_m_state_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27383 PyObject *resultobj = 0;
27384 wxListItem *arg1 = (wxListItem *) 0 ;
27385 long result;
27386 void *argp1 = 0 ;
27387 int res1 = 0 ;
27388 PyObject *swig_obj[1] ;
27389
27390 if (!args) SWIG_fail;
27391 swig_obj[0] = args;
27392 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27393 if (!SWIG_IsOK(res1)) {
27394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27395 }
27396 arg1 = reinterpret_cast< wxListItem * >(argp1);
27397 result = (long) ((arg1)->m_state);
27398 resultobj = SWIG_From_long(static_cast< long >(result));
27399 return resultobj;
27400 fail:
27401 return NULL;
27402 }
27403
27404
27405 SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27406 PyObject *resultobj = 0;
27407 wxListItem *arg1 = (wxListItem *) 0 ;
27408 long arg2 ;
27409 void *argp1 = 0 ;
27410 int res1 = 0 ;
27411 long val2 ;
27412 int ecode2 = 0 ;
27413 PyObject *swig_obj[2] ;
27414
27415 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_stateMask_set",2,2,swig_obj)) SWIG_fail;
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_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27419 }
27420 arg1 = reinterpret_cast< wxListItem * >(argp1);
27421 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27422 if (!SWIG_IsOK(ecode2)) {
27423 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_stateMask_set" "', expected argument " "2"" of type '" "long""'");
27424 }
27425 arg2 = static_cast< long >(val2);
27426 if (arg1) (arg1)->m_stateMask = arg2;
27427
27428 resultobj = SWIG_Py_Void();
27429 return resultobj;
27430 fail:
27431 return NULL;
27432 }
27433
27434
27435 SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27436 PyObject *resultobj = 0;
27437 wxListItem *arg1 = (wxListItem *) 0 ;
27438 long result;
27439 void *argp1 = 0 ;
27440 int res1 = 0 ;
27441 PyObject *swig_obj[1] ;
27442
27443 if (!args) SWIG_fail;
27444 swig_obj[0] = args;
27445 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27446 if (!SWIG_IsOK(res1)) {
27447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27448 }
27449 arg1 = reinterpret_cast< wxListItem * >(argp1);
27450 result = (long) ((arg1)->m_stateMask);
27451 resultobj = SWIG_From_long(static_cast< long >(result));
27452 return resultobj;
27453 fail:
27454 return NULL;
27455 }
27456
27457
27458 SWIGINTERN PyObject *_wrap_ListItem_m_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27459 PyObject *resultobj = 0;
27460 wxListItem *arg1 = (wxListItem *) 0 ;
27461 wxString *arg2 = (wxString *) 0 ;
27462 void *argp1 = 0 ;
27463 int res1 = 0 ;
27464 bool temp2 = false ;
27465 PyObject *swig_obj[2] ;
27466
27467 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_text_set",2,2,swig_obj)) SWIG_fail;
27468 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27469 if (!SWIG_IsOK(res1)) {
27470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27471 }
27472 arg1 = reinterpret_cast< wxListItem * >(argp1);
27473 {
27474 arg2 = wxString_in_helper(swig_obj[1]);
27475 if (arg2 == NULL) SWIG_fail;
27476 temp2 = true;
27477 }
27478 if (arg1) (arg1)->m_text = *arg2;
27479
27480 resultobj = SWIG_Py_Void();
27481 {
27482 if (temp2)
27483 delete arg2;
27484 }
27485 return resultobj;
27486 fail:
27487 {
27488 if (temp2)
27489 delete arg2;
27490 }
27491 return NULL;
27492 }
27493
27494
27495 SWIGINTERN PyObject *_wrap_ListItem_m_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27496 PyObject *resultobj = 0;
27497 wxListItem *arg1 = (wxListItem *) 0 ;
27498 wxString *result = 0 ;
27499 void *argp1 = 0 ;
27500 int res1 = 0 ;
27501 PyObject *swig_obj[1] ;
27502
27503 if (!args) SWIG_fail;
27504 swig_obj[0] = args;
27505 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27506 if (!SWIG_IsOK(res1)) {
27507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27508 }
27509 arg1 = reinterpret_cast< wxListItem * >(argp1);
27510 result = (wxString *)& ((arg1)->m_text);
27511 {
27512 #if wxUSE_UNICODE
27513 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27514 #else
27515 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27516 #endif
27517 }
27518 return resultobj;
27519 fail:
27520 return NULL;
27521 }
27522
27523
27524 SWIGINTERN PyObject *_wrap_ListItem_m_image_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27525 PyObject *resultobj = 0;
27526 wxListItem *arg1 = (wxListItem *) 0 ;
27527 int arg2 ;
27528 void *argp1 = 0 ;
27529 int res1 = 0 ;
27530 int val2 ;
27531 int ecode2 = 0 ;
27532 PyObject *swig_obj[2] ;
27533
27534 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_image_set",2,2,swig_obj)) SWIG_fail;
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_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27538 }
27539 arg1 = reinterpret_cast< wxListItem * >(argp1);
27540 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27541 if (!SWIG_IsOK(ecode2)) {
27542 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_image_set" "', expected argument " "2"" of type '" "int""'");
27543 }
27544 arg2 = static_cast< int >(val2);
27545 if (arg1) (arg1)->m_image = arg2;
27546
27547 resultobj = SWIG_Py_Void();
27548 return resultobj;
27549 fail:
27550 return NULL;
27551 }
27552
27553
27554 SWIGINTERN PyObject *_wrap_ListItem_m_image_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27555 PyObject *resultobj = 0;
27556 wxListItem *arg1 = (wxListItem *) 0 ;
27557 int result;
27558 void *argp1 = 0 ;
27559 int res1 = 0 ;
27560 PyObject *swig_obj[1] ;
27561
27562 if (!args) SWIG_fail;
27563 swig_obj[0] = args;
27564 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27565 if (!SWIG_IsOK(res1)) {
27566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27567 }
27568 arg1 = reinterpret_cast< wxListItem * >(argp1);
27569 result = (int) ((arg1)->m_image);
27570 resultobj = SWIG_From_int(static_cast< int >(result));
27571 return resultobj;
27572 fail:
27573 return NULL;
27574 }
27575
27576
27577 SWIGINTERN PyObject *_wrap_ListItem_m_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27578 PyObject *resultobj = 0;
27579 wxListItem *arg1 = (wxListItem *) 0 ;
27580 long arg2 ;
27581 void *argp1 = 0 ;
27582 int res1 = 0 ;
27583 long val2 ;
27584 int ecode2 = 0 ;
27585 PyObject *swig_obj[2] ;
27586
27587 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_data_set",2,2,swig_obj)) SWIG_fail;
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_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27591 }
27592 arg1 = reinterpret_cast< wxListItem * >(argp1);
27593 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27594 if (!SWIG_IsOK(ecode2)) {
27595 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_data_set" "', expected argument " "2"" of type '" "long""'");
27596 }
27597 arg2 = static_cast< long >(val2);
27598 if (arg1) (arg1)->m_data = arg2;
27599
27600 resultobj = SWIG_Py_Void();
27601 return resultobj;
27602 fail:
27603 return NULL;
27604 }
27605
27606
27607 SWIGINTERN PyObject *_wrap_ListItem_m_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27608 PyObject *resultobj = 0;
27609 wxListItem *arg1 = (wxListItem *) 0 ;
27610 long result;
27611 void *argp1 = 0 ;
27612 int res1 = 0 ;
27613 PyObject *swig_obj[1] ;
27614
27615 if (!args) SWIG_fail;
27616 swig_obj[0] = args;
27617 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27618 if (!SWIG_IsOK(res1)) {
27619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27620 }
27621 arg1 = reinterpret_cast< wxListItem * >(argp1);
27622 result = (long) ((arg1)->m_data);
27623 resultobj = SWIG_From_long(static_cast< long >(result));
27624 return resultobj;
27625 fail:
27626 return NULL;
27627 }
27628
27629
27630 SWIGINTERN PyObject *_wrap_ListItem_m_format_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27631 PyObject *resultobj = 0;
27632 wxListItem *arg1 = (wxListItem *) 0 ;
27633 int arg2 ;
27634 void *argp1 = 0 ;
27635 int res1 = 0 ;
27636 int val2 ;
27637 int ecode2 = 0 ;
27638 PyObject *swig_obj[2] ;
27639
27640 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_format_set",2,2,swig_obj)) SWIG_fail;
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_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27644 }
27645 arg1 = reinterpret_cast< wxListItem * >(argp1);
27646 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27647 if (!SWIG_IsOK(ecode2)) {
27648 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_format_set" "', expected argument " "2"" of type '" "int""'");
27649 }
27650 arg2 = static_cast< int >(val2);
27651 if (arg1) (arg1)->m_format = arg2;
27652
27653 resultobj = SWIG_Py_Void();
27654 return resultobj;
27655 fail:
27656 return NULL;
27657 }
27658
27659
27660 SWIGINTERN PyObject *_wrap_ListItem_m_format_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27661 PyObject *resultobj = 0;
27662 wxListItem *arg1 = (wxListItem *) 0 ;
27663 int result;
27664 void *argp1 = 0 ;
27665 int res1 = 0 ;
27666 PyObject *swig_obj[1] ;
27667
27668 if (!args) SWIG_fail;
27669 swig_obj[0] = args;
27670 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27671 if (!SWIG_IsOK(res1)) {
27672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27673 }
27674 arg1 = reinterpret_cast< wxListItem * >(argp1);
27675 result = (int) ((arg1)->m_format);
27676 resultobj = SWIG_From_int(static_cast< int >(result));
27677 return resultobj;
27678 fail:
27679 return NULL;
27680 }
27681
27682
27683 SWIGINTERN PyObject *_wrap_ListItem_m_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27684 PyObject *resultobj = 0;
27685 wxListItem *arg1 = (wxListItem *) 0 ;
27686 int arg2 ;
27687 void *argp1 = 0 ;
27688 int res1 = 0 ;
27689 int val2 ;
27690 int ecode2 = 0 ;
27691 PyObject *swig_obj[2] ;
27692
27693 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_width_set",2,2,swig_obj)) SWIG_fail;
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_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27697 }
27698 arg1 = reinterpret_cast< wxListItem * >(argp1);
27699 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27700 if (!SWIG_IsOK(ecode2)) {
27701 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_width_set" "', expected argument " "2"" of type '" "int""'");
27702 }
27703 arg2 = static_cast< int >(val2);
27704 if (arg1) (arg1)->m_width = arg2;
27705
27706 resultobj = SWIG_Py_Void();
27707 return resultobj;
27708 fail:
27709 return NULL;
27710 }
27711
27712
27713 SWIGINTERN PyObject *_wrap_ListItem_m_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27714 PyObject *resultobj = 0;
27715 wxListItem *arg1 = (wxListItem *) 0 ;
27716 int result;
27717 void *argp1 = 0 ;
27718 int res1 = 0 ;
27719 PyObject *swig_obj[1] ;
27720
27721 if (!args) SWIG_fail;
27722 swig_obj[0] = args;
27723 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27724 if (!SWIG_IsOK(res1)) {
27725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27726 }
27727 arg1 = reinterpret_cast< wxListItem * >(argp1);
27728 result = (int) ((arg1)->m_width);
27729 resultobj = SWIG_From_int(static_cast< int >(result));
27730 return resultobj;
27731 fail:
27732 return NULL;
27733 }
27734
27735
27736 SWIGINTERN PyObject *ListItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27737 PyObject *obj;
27738 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27739 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItem, SWIG_NewClientData(obj));
27740 return SWIG_Py_Void();
27741 }
27742
27743 SWIGINTERN PyObject *ListItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27744 return SWIG_Python_InitShadowInstance(args);
27745 }
27746
27747 SWIGINTERN PyObject *_wrap_new_ListEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27748 PyObject *resultobj = 0;
27749 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
27750 int arg2 = (int) 0 ;
27751 wxListEvent *result = 0 ;
27752 int val1 ;
27753 int ecode1 = 0 ;
27754 int val2 ;
27755 int ecode2 = 0 ;
27756 PyObject * obj0 = 0 ;
27757 PyObject * obj1 = 0 ;
27758 char * kwnames[] = {
27759 (char *) "commandType",(char *) "id", NULL
27760 };
27761
27762 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) SWIG_fail;
27763 if (obj0) {
27764 ecode1 = SWIG_AsVal_int(obj0, &val1);
27765 if (!SWIG_IsOK(ecode1)) {
27766 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListEvent" "', expected argument " "1"" of type '" "wxEventType""'");
27767 }
27768 arg1 = static_cast< wxEventType >(val1);
27769 }
27770 if (obj1) {
27771 ecode2 = SWIG_AsVal_int(obj1, &val2);
27772 if (!SWIG_IsOK(ecode2)) {
27773 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListEvent" "', expected argument " "2"" of type '" "int""'");
27774 }
27775 arg2 = static_cast< int >(val2);
27776 }
27777 {
27778 PyThreadState* __tstate = wxPyBeginAllowThreads();
27779 result = (wxListEvent *)new wxListEvent(arg1,arg2);
27780 wxPyEndAllowThreads(__tstate);
27781 if (PyErr_Occurred()) SWIG_fail;
27782 }
27783 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListEvent, SWIG_POINTER_NEW | 0 );
27784 return resultobj;
27785 fail:
27786 return NULL;
27787 }
27788
27789
27790 SWIGINTERN PyObject *_wrap_ListEvent_m_code_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27791 PyObject *resultobj = 0;
27792 wxListEvent *arg1 = (wxListEvent *) 0 ;
27793 int arg2 ;
27794 void *argp1 = 0 ;
27795 int res1 = 0 ;
27796 int val2 ;
27797 int ecode2 = 0 ;
27798 PyObject *swig_obj[2] ;
27799
27800 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_code_set",2,2,swig_obj)) SWIG_fail;
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_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27804 }
27805 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27806 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27807 if (!SWIG_IsOK(ecode2)) {
27808 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_code_set" "', expected argument " "2"" of type '" "int""'");
27809 }
27810 arg2 = static_cast< int >(val2);
27811 if (arg1) (arg1)->m_code = arg2;
27812
27813 resultobj = SWIG_Py_Void();
27814 return resultobj;
27815 fail:
27816 return NULL;
27817 }
27818
27819
27820 SWIGINTERN PyObject *_wrap_ListEvent_m_code_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27821 PyObject *resultobj = 0;
27822 wxListEvent *arg1 = (wxListEvent *) 0 ;
27823 int result;
27824 void *argp1 = 0 ;
27825 int res1 = 0 ;
27826 PyObject *swig_obj[1] ;
27827
27828 if (!args) SWIG_fail;
27829 swig_obj[0] = args;
27830 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27831 if (!SWIG_IsOK(res1)) {
27832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27833 }
27834 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27835 result = (int) ((arg1)->m_code);
27836 resultobj = SWIG_From_int(static_cast< int >(result));
27837 return resultobj;
27838 fail:
27839 return NULL;
27840 }
27841
27842
27843 SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27844 PyObject *resultobj = 0;
27845 wxListEvent *arg1 = (wxListEvent *) 0 ;
27846 long arg2 ;
27847 void *argp1 = 0 ;
27848 int res1 = 0 ;
27849 long val2 ;
27850 int ecode2 = 0 ;
27851 PyObject *swig_obj[2] ;
27852
27853 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_oldItemIndex_set",2,2,swig_obj)) SWIG_fail;
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_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27857 }
27858 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27859 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27860 if (!SWIG_IsOK(ecode2)) {
27861 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "2"" of type '" "long""'");
27862 }
27863 arg2 = static_cast< long >(val2);
27864 if (arg1) (arg1)->m_oldItemIndex = arg2;
27865
27866 resultobj = SWIG_Py_Void();
27867 return resultobj;
27868 fail:
27869 return NULL;
27870 }
27871
27872
27873 SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27874 PyObject *resultobj = 0;
27875 wxListEvent *arg1 = (wxListEvent *) 0 ;
27876 long result;
27877 void *argp1 = 0 ;
27878 int res1 = 0 ;
27879 PyObject *swig_obj[1] ;
27880
27881 if (!args) SWIG_fail;
27882 swig_obj[0] = args;
27883 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27884 if (!SWIG_IsOK(res1)) {
27885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27886 }
27887 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27888 result = (long) ((arg1)->m_oldItemIndex);
27889 resultobj = SWIG_From_long(static_cast< long >(result));
27890 return resultobj;
27891 fail:
27892 return NULL;
27893 }
27894
27895
27896 SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27897 PyObject *resultobj = 0;
27898 wxListEvent *arg1 = (wxListEvent *) 0 ;
27899 long arg2 ;
27900 void *argp1 = 0 ;
27901 int res1 = 0 ;
27902 long val2 ;
27903 int ecode2 = 0 ;
27904 PyObject *swig_obj[2] ;
27905
27906 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_itemIndex_set",2,2,swig_obj)) SWIG_fail;
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_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27910 }
27911 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27912 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27913 if (!SWIG_IsOK(ecode2)) {
27914 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "2"" of type '" "long""'");
27915 }
27916 arg2 = static_cast< long >(val2);
27917 if (arg1) (arg1)->m_itemIndex = arg2;
27918
27919 resultobj = SWIG_Py_Void();
27920 return resultobj;
27921 fail:
27922 return NULL;
27923 }
27924
27925
27926 SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27927 PyObject *resultobj = 0;
27928 wxListEvent *arg1 = (wxListEvent *) 0 ;
27929 long result;
27930 void *argp1 = 0 ;
27931 int res1 = 0 ;
27932 PyObject *swig_obj[1] ;
27933
27934 if (!args) SWIG_fail;
27935 swig_obj[0] = args;
27936 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27937 if (!SWIG_IsOK(res1)) {
27938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27939 }
27940 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27941 result = (long) ((arg1)->m_itemIndex);
27942 resultobj = SWIG_From_long(static_cast< long >(result));
27943 return resultobj;
27944 fail:
27945 return NULL;
27946 }
27947
27948
27949 SWIGINTERN PyObject *_wrap_ListEvent_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27950 PyObject *resultobj = 0;
27951 wxListEvent *arg1 = (wxListEvent *) 0 ;
27952 int arg2 ;
27953 void *argp1 = 0 ;
27954 int res1 = 0 ;
27955 int val2 ;
27956 int ecode2 = 0 ;
27957 PyObject *swig_obj[2] ;
27958
27959 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_col_set",2,2,swig_obj)) SWIG_fail;
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_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27963 }
27964 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27965 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27966 if (!SWIG_IsOK(ecode2)) {
27967 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_col_set" "', expected argument " "2"" of type '" "int""'");
27968 }
27969 arg2 = static_cast< int >(val2);
27970 if (arg1) (arg1)->m_col = arg2;
27971
27972 resultobj = SWIG_Py_Void();
27973 return resultobj;
27974 fail:
27975 return NULL;
27976 }
27977
27978
27979 SWIGINTERN PyObject *_wrap_ListEvent_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27980 PyObject *resultobj = 0;
27981 wxListEvent *arg1 = (wxListEvent *) 0 ;
27982 int result;
27983 void *argp1 = 0 ;
27984 int res1 = 0 ;
27985 PyObject *swig_obj[1] ;
27986
27987 if (!args) SWIG_fail;
27988 swig_obj[0] = args;
27989 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27990 if (!SWIG_IsOK(res1)) {
27991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27992 }
27993 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27994 result = (int) ((arg1)->m_col);
27995 resultobj = SWIG_From_int(static_cast< int >(result));
27996 return resultobj;
27997 fail:
27998 return NULL;
27999 }
28000
28001
28002 SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28003 PyObject *resultobj = 0;
28004 wxListEvent *arg1 = (wxListEvent *) 0 ;
28005 wxPoint *arg2 = (wxPoint *) 0 ;
28006 void *argp1 = 0 ;
28007 int res1 = 0 ;
28008 void *argp2 = 0 ;
28009 int res2 = 0 ;
28010 PyObject *swig_obj[2] ;
28011
28012 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_pointDrag_set",2,2,swig_obj)) SWIG_fail;
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_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28016 }
28017 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28018 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPoint, 0 | 0 );
28019 if (!SWIG_IsOK(res2)) {
28020 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "2"" of type '" "wxPoint *""'");
28021 }
28022 arg2 = reinterpret_cast< wxPoint * >(argp2);
28023 if (arg1) (arg1)->m_pointDrag = *arg2;
28024
28025 resultobj = SWIG_Py_Void();
28026 return resultobj;
28027 fail:
28028 return NULL;
28029 }
28030
28031
28032 SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28033 PyObject *resultobj = 0;
28034 wxListEvent *arg1 = (wxListEvent *) 0 ;
28035 wxPoint *result = 0 ;
28036 void *argp1 = 0 ;
28037 int res1 = 0 ;
28038 PyObject *swig_obj[1] ;
28039
28040 if (!args) SWIG_fail;
28041 swig_obj[0] = args;
28042 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28043 if (!SWIG_IsOK(res1)) {
28044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28045 }
28046 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28047 result = (wxPoint *)& ((arg1)->m_pointDrag);
28048 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, 0 | 0 );
28049 return resultobj;
28050 fail:
28051 return NULL;
28052 }
28053
28054
28055 SWIGINTERN PyObject *_wrap_ListEvent_m_item_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28056 PyObject *resultobj = 0;
28057 wxListEvent *arg1 = (wxListEvent *) 0 ;
28058 wxListItem *result = 0 ;
28059 void *argp1 = 0 ;
28060 int res1 = 0 ;
28061 PyObject *swig_obj[1] ;
28062
28063 if (!args) SWIG_fail;
28064 swig_obj[0] = args;
28065 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28066 if (!SWIG_IsOK(res1)) {
28067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_item_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28068 }
28069 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28070 result = (wxListItem *)& ((arg1)->m_item);
28071 {
28072 resultobj = wxPyMake_wxObject(result, (bool)0);
28073 }
28074 return resultobj;
28075 fail:
28076 return NULL;
28077 }
28078
28079
28080 SWIGINTERN PyObject *_wrap_ListEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28081 PyObject *resultobj = 0;
28082 wxListEvent *arg1 = (wxListEvent *) 0 ;
28083 int result;
28084 void *argp1 = 0 ;
28085 int res1 = 0 ;
28086 PyObject *swig_obj[1] ;
28087
28088 if (!args) SWIG_fail;
28089 swig_obj[0] = args;
28090 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28091 if (!SWIG_IsOK(res1)) {
28092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxListEvent *""'");
28093 }
28094 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28095 {
28096 PyThreadState* __tstate = wxPyBeginAllowThreads();
28097 result = (int)(arg1)->GetKeyCode();
28098 wxPyEndAllowThreads(__tstate);
28099 if (PyErr_Occurred()) SWIG_fail;
28100 }
28101 resultobj = SWIG_From_int(static_cast< int >(result));
28102 return resultobj;
28103 fail:
28104 return NULL;
28105 }
28106
28107
28108 SWIGINTERN PyObject *_wrap_ListEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28109 PyObject *resultobj = 0;
28110 wxListEvent *arg1 = (wxListEvent *) 0 ;
28111 long result;
28112 void *argp1 = 0 ;
28113 int res1 = 0 ;
28114 PyObject *swig_obj[1] ;
28115
28116 if (!args) SWIG_fail;
28117 swig_obj[0] = args;
28118 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28119 if (!SWIG_IsOK(res1)) {
28120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetIndex" "', expected argument " "1"" of type '" "wxListEvent *""'");
28121 }
28122 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28123 {
28124 PyThreadState* __tstate = wxPyBeginAllowThreads();
28125 result = (long)(arg1)->GetIndex();
28126 wxPyEndAllowThreads(__tstate);
28127 if (PyErr_Occurred()) SWIG_fail;
28128 }
28129 resultobj = SWIG_From_long(static_cast< long >(result));
28130 return resultobj;
28131 fail:
28132 return NULL;
28133 }
28134
28135
28136 SWIGINTERN PyObject *_wrap_ListEvent_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28137 PyObject *resultobj = 0;
28138 wxListEvent *arg1 = (wxListEvent *) 0 ;
28139 int result;
28140 void *argp1 = 0 ;
28141 int res1 = 0 ;
28142 PyObject *swig_obj[1] ;
28143
28144 if (!args) SWIG_fail;
28145 swig_obj[0] = args;
28146 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28147 if (!SWIG_IsOK(res1)) {
28148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetColumn" "', expected argument " "1"" of type '" "wxListEvent *""'");
28149 }
28150 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28151 {
28152 PyThreadState* __tstate = wxPyBeginAllowThreads();
28153 result = (int)(arg1)->GetColumn();
28154 wxPyEndAllowThreads(__tstate);
28155 if (PyErr_Occurred()) SWIG_fail;
28156 }
28157 resultobj = SWIG_From_int(static_cast< int >(result));
28158 return resultobj;
28159 fail:
28160 return NULL;
28161 }
28162
28163
28164 SWIGINTERN PyObject *_wrap_ListEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28165 PyObject *resultobj = 0;
28166 wxListEvent *arg1 = (wxListEvent *) 0 ;
28167 wxPoint result;
28168 void *argp1 = 0 ;
28169 int res1 = 0 ;
28170 PyObject *swig_obj[1] ;
28171
28172 if (!args) SWIG_fail;
28173 swig_obj[0] = args;
28174 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28175 if (!SWIG_IsOK(res1)) {
28176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetPoint" "', expected argument " "1"" of type '" "wxListEvent *""'");
28177 }
28178 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28179 {
28180 PyThreadState* __tstate = wxPyBeginAllowThreads();
28181 result = (arg1)->GetPoint();
28182 wxPyEndAllowThreads(__tstate);
28183 if (PyErr_Occurred()) SWIG_fail;
28184 }
28185 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
28186 return resultobj;
28187 fail:
28188 return NULL;
28189 }
28190
28191
28192 SWIGINTERN PyObject *_wrap_ListEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28193 PyObject *resultobj = 0;
28194 wxListEvent *arg1 = (wxListEvent *) 0 ;
28195 wxString *result = 0 ;
28196 void *argp1 = 0 ;
28197 int res1 = 0 ;
28198 PyObject *swig_obj[1] ;
28199
28200 if (!args) SWIG_fail;
28201 swig_obj[0] = args;
28202 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28203 if (!SWIG_IsOK(res1)) {
28204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetLabel" "', expected argument " "1"" of type '" "wxListEvent *""'");
28205 }
28206 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28207 {
28208 PyThreadState* __tstate = wxPyBeginAllowThreads();
28209 {
28210 wxString const &_result_ref = (arg1)->GetLabel();
28211 result = (wxString *) &_result_ref;
28212 }
28213 wxPyEndAllowThreads(__tstate);
28214 if (PyErr_Occurred()) SWIG_fail;
28215 }
28216 {
28217 #if wxUSE_UNICODE
28218 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28219 #else
28220 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28221 #endif
28222 }
28223 return resultobj;
28224 fail:
28225 return NULL;
28226 }
28227
28228
28229 SWIGINTERN PyObject *_wrap_ListEvent_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28230 PyObject *resultobj = 0;
28231 wxListEvent *arg1 = (wxListEvent *) 0 ;
28232 wxString *result = 0 ;
28233 void *argp1 = 0 ;
28234 int res1 = 0 ;
28235 PyObject *swig_obj[1] ;
28236
28237 if (!args) SWIG_fail;
28238 swig_obj[0] = args;
28239 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28240 if (!SWIG_IsOK(res1)) {
28241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetText" "', expected argument " "1"" of type '" "wxListEvent *""'");
28242 }
28243 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28244 {
28245 PyThreadState* __tstate = wxPyBeginAllowThreads();
28246 {
28247 wxString const &_result_ref = (arg1)->GetText();
28248 result = (wxString *) &_result_ref;
28249 }
28250 wxPyEndAllowThreads(__tstate);
28251 if (PyErr_Occurred()) SWIG_fail;
28252 }
28253 {
28254 #if wxUSE_UNICODE
28255 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28256 #else
28257 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28258 #endif
28259 }
28260 return resultobj;
28261 fail:
28262 return NULL;
28263 }
28264
28265
28266 SWIGINTERN PyObject *_wrap_ListEvent_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28267 PyObject *resultobj = 0;
28268 wxListEvent *arg1 = (wxListEvent *) 0 ;
28269 int result;
28270 void *argp1 = 0 ;
28271 int res1 = 0 ;
28272 PyObject *swig_obj[1] ;
28273
28274 if (!args) SWIG_fail;
28275 swig_obj[0] = args;
28276 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28277 if (!SWIG_IsOK(res1)) {
28278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetImage" "', expected argument " "1"" of type '" "wxListEvent *""'");
28279 }
28280 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28281 {
28282 PyThreadState* __tstate = wxPyBeginAllowThreads();
28283 result = (int)(arg1)->GetImage();
28284 wxPyEndAllowThreads(__tstate);
28285 if (PyErr_Occurred()) SWIG_fail;
28286 }
28287 resultobj = SWIG_From_int(static_cast< int >(result));
28288 return resultobj;
28289 fail:
28290 return NULL;
28291 }
28292
28293
28294 SWIGINTERN PyObject *_wrap_ListEvent_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28295 PyObject *resultobj = 0;
28296 wxListEvent *arg1 = (wxListEvent *) 0 ;
28297 long result;
28298 void *argp1 = 0 ;
28299 int res1 = 0 ;
28300 PyObject *swig_obj[1] ;
28301
28302 if (!args) SWIG_fail;
28303 swig_obj[0] = args;
28304 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28305 if (!SWIG_IsOK(res1)) {
28306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetData" "', expected argument " "1"" of type '" "wxListEvent *""'");
28307 }
28308 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28309 {
28310 PyThreadState* __tstate = wxPyBeginAllowThreads();
28311 result = (long)(arg1)->GetData();
28312 wxPyEndAllowThreads(__tstate);
28313 if (PyErr_Occurred()) SWIG_fail;
28314 }
28315 resultobj = SWIG_From_long(static_cast< long >(result));
28316 return resultobj;
28317 fail:
28318 return NULL;
28319 }
28320
28321
28322 SWIGINTERN PyObject *_wrap_ListEvent_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28323 PyObject *resultobj = 0;
28324 wxListEvent *arg1 = (wxListEvent *) 0 ;
28325 long result;
28326 void *argp1 = 0 ;
28327 int res1 = 0 ;
28328 PyObject *swig_obj[1] ;
28329
28330 if (!args) SWIG_fail;
28331 swig_obj[0] = args;
28332 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28333 if (!SWIG_IsOK(res1)) {
28334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetMask" "', expected argument " "1"" of type '" "wxListEvent *""'");
28335 }
28336 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28337 {
28338 PyThreadState* __tstate = wxPyBeginAllowThreads();
28339 result = (long)(arg1)->GetMask();
28340 wxPyEndAllowThreads(__tstate);
28341 if (PyErr_Occurred()) SWIG_fail;
28342 }
28343 resultobj = SWIG_From_long(static_cast< long >(result));
28344 return resultobj;
28345 fail:
28346 return NULL;
28347 }
28348
28349
28350 SWIGINTERN PyObject *_wrap_ListEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28351 PyObject *resultobj = 0;
28352 wxListEvent *arg1 = (wxListEvent *) 0 ;
28353 wxListItem *result = 0 ;
28354 void *argp1 = 0 ;
28355 int res1 = 0 ;
28356 PyObject *swig_obj[1] ;
28357
28358 if (!args) SWIG_fail;
28359 swig_obj[0] = args;
28360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28361 if (!SWIG_IsOK(res1)) {
28362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetItem" "', expected argument " "1"" of type '" "wxListEvent *""'");
28363 }
28364 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28365 {
28366 PyThreadState* __tstate = wxPyBeginAllowThreads();
28367 {
28368 wxListItem const &_result_ref = (arg1)->GetItem();
28369 result = (wxListItem *) &_result_ref;
28370 }
28371 wxPyEndAllowThreads(__tstate);
28372 if (PyErr_Occurred()) SWIG_fail;
28373 }
28374 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, 0 | 0 );
28375 return resultobj;
28376 fail:
28377 return NULL;
28378 }
28379
28380
28381 SWIGINTERN PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28382 PyObject *resultobj = 0;
28383 wxListEvent *arg1 = (wxListEvent *) 0 ;
28384 long result;
28385 void *argp1 = 0 ;
28386 int res1 = 0 ;
28387 PyObject *swig_obj[1] ;
28388
28389 if (!args) SWIG_fail;
28390 swig_obj[0] = args;
28391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28392 if (!SWIG_IsOK(res1)) {
28393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheFrom" "', expected argument " "1"" of type '" "wxListEvent *""'");
28394 }
28395 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28396 {
28397 PyThreadState* __tstate = wxPyBeginAllowThreads();
28398 result = (long)(arg1)->GetCacheFrom();
28399 wxPyEndAllowThreads(__tstate);
28400 if (PyErr_Occurred()) SWIG_fail;
28401 }
28402 resultobj = SWIG_From_long(static_cast< long >(result));
28403 return resultobj;
28404 fail:
28405 return NULL;
28406 }
28407
28408
28409 SWIGINTERN PyObject *_wrap_ListEvent_GetCacheTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28410 PyObject *resultobj = 0;
28411 wxListEvent *arg1 = (wxListEvent *) 0 ;
28412 long result;
28413 void *argp1 = 0 ;
28414 int res1 = 0 ;
28415 PyObject *swig_obj[1] ;
28416
28417 if (!args) SWIG_fail;
28418 swig_obj[0] = args;
28419 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28420 if (!SWIG_IsOK(res1)) {
28421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheTo" "', expected argument " "1"" of type '" "wxListEvent *""'");
28422 }
28423 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28424 {
28425 PyThreadState* __tstate = wxPyBeginAllowThreads();
28426 result = (long)(arg1)->GetCacheTo();
28427 wxPyEndAllowThreads(__tstate);
28428 if (PyErr_Occurred()) SWIG_fail;
28429 }
28430 resultobj = SWIG_From_long(static_cast< long >(result));
28431 return resultobj;
28432 fail:
28433 return NULL;
28434 }
28435
28436
28437 SWIGINTERN PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28438 PyObject *resultobj = 0;
28439 wxListEvent *arg1 = (wxListEvent *) 0 ;
28440 bool result;
28441 void *argp1 = 0 ;
28442 int res1 = 0 ;
28443 PyObject *swig_obj[1] ;
28444
28445 if (!args) SWIG_fail;
28446 swig_obj[0] = args;
28447 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28448 if (!SWIG_IsOK(res1)) {
28449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxListEvent const *""'");
28450 }
28451 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28452 {
28453 PyThreadState* __tstate = wxPyBeginAllowThreads();
28454 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
28455 wxPyEndAllowThreads(__tstate);
28456 if (PyErr_Occurred()) SWIG_fail;
28457 }
28458 {
28459 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28460 }
28461 return resultobj;
28462 fail:
28463 return NULL;
28464 }
28465
28466
28467 SWIGINTERN PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28468 PyObject *resultobj = 0;
28469 wxListEvent *arg1 = (wxListEvent *) 0 ;
28470 bool arg2 ;
28471 void *argp1 = 0 ;
28472 int res1 = 0 ;
28473 bool val2 ;
28474 int ecode2 = 0 ;
28475 PyObject * obj0 = 0 ;
28476 PyObject * obj1 = 0 ;
28477 char * kwnames[] = {
28478 (char *) "self",(char *) "editCancelled", NULL
28479 };
28480
28481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
28482 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28483 if (!SWIG_IsOK(res1)) {
28484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxListEvent *""'");
28485 }
28486 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28487 ecode2 = SWIG_AsVal_bool(obj1, &val2);
28488 if (!SWIG_IsOK(ecode2)) {
28489 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
28490 }
28491 arg2 = static_cast< bool >(val2);
28492 {
28493 PyThreadState* __tstate = wxPyBeginAllowThreads();
28494 (arg1)->SetEditCanceled(arg2);
28495 wxPyEndAllowThreads(__tstate);
28496 if (PyErr_Occurred()) SWIG_fail;
28497 }
28498 resultobj = SWIG_Py_Void();
28499 return resultobj;
28500 fail:
28501 return NULL;
28502 }
28503
28504
28505 SWIGINTERN PyObject *ListEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28506 PyObject *obj;
28507 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28508 SWIG_TypeNewClientData(SWIGTYPE_p_wxListEvent, SWIG_NewClientData(obj));
28509 return SWIG_Py_Void();
28510 }
28511
28512 SWIGINTERN PyObject *ListEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28513 return SWIG_Python_InitShadowInstance(args);
28514 }
28515
28516 SWIGINTERN PyObject *_wrap_new_ListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28517 PyObject *resultobj = 0;
28518 wxWindow *arg1 = (wxWindow *) 0 ;
28519 int arg2 = (int) -1 ;
28520 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28521 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28522 wxSize const &arg4_defvalue = wxDefaultSize ;
28523 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28524 long arg5 = (long) wxLC_ICON ;
28525 wxValidator const &arg6_defvalue = wxDefaultValidator ;
28526 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
28527 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
28528 wxString *arg7 = (wxString *) &arg7_defvalue ;
28529 wxPyListCtrl *result = 0 ;
28530 void *argp1 = 0 ;
28531 int res1 = 0 ;
28532 int val2 ;
28533 int ecode2 = 0 ;
28534 wxPoint temp3 ;
28535 wxSize temp4 ;
28536 long val5 ;
28537 int ecode5 = 0 ;
28538 void *argp6 = 0 ;
28539 int res6 = 0 ;
28540 bool temp7 = false ;
28541 PyObject * obj0 = 0 ;
28542 PyObject * obj1 = 0 ;
28543 PyObject * obj2 = 0 ;
28544 PyObject * obj3 = 0 ;
28545 PyObject * obj4 = 0 ;
28546 PyObject * obj5 = 0 ;
28547 PyObject * obj6 = 0 ;
28548 char * kwnames[] = {
28549 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28550 };
28551
28552 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28553 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28554 if (!SWIG_IsOK(res1)) {
28555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
28556 }
28557 arg1 = reinterpret_cast< wxWindow * >(argp1);
28558 if (obj1) {
28559 ecode2 = SWIG_AsVal_int(obj1, &val2);
28560 if (!SWIG_IsOK(ecode2)) {
28561 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListCtrl" "', expected argument " "2"" of type '" "int""'");
28562 }
28563 arg2 = static_cast< int >(val2);
28564 }
28565 if (obj2) {
28566 {
28567 arg3 = &temp3;
28568 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28569 }
28570 }
28571 if (obj3) {
28572 {
28573 arg4 = &temp4;
28574 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
28575 }
28576 }
28577 if (obj4) {
28578 ecode5 = SWIG_AsVal_long(obj4, &val5);
28579 if (!SWIG_IsOK(ecode5)) {
28580 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListCtrl" "', expected argument " "5"" of type '" "long""'");
28581 }
28582 arg5 = static_cast< long >(val5);
28583 }
28584 if (obj5) {
28585 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
28586 if (!SWIG_IsOK(res6)) {
28587 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
28588 }
28589 if (!argp6) {
28590 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
28591 }
28592 arg6 = reinterpret_cast< wxValidator * >(argp6);
28593 }
28594 if (obj6) {
28595 {
28596 arg7 = wxString_in_helper(obj6);
28597 if (arg7 == NULL) SWIG_fail;
28598 temp7 = true;
28599 }
28600 }
28601 {
28602 if (!wxPyCheckForApp()) SWIG_fail;
28603 PyThreadState* __tstate = wxPyBeginAllowThreads();
28604 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
28605 wxPyEndAllowThreads(__tstate);
28606 if (PyErr_Occurred()) SWIG_fail;
28607 }
28608 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_NEW | 0 );
28609 {
28610 if (temp7)
28611 delete arg7;
28612 }
28613 return resultobj;
28614 fail:
28615 {
28616 if (temp7)
28617 delete arg7;
28618 }
28619 return NULL;
28620 }
28621
28622
28623 SWIGINTERN PyObject *_wrap_new_PreListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28624 PyObject *resultobj = 0;
28625 wxPyListCtrl *result = 0 ;
28626
28627 if (!SWIG_Python_UnpackTuple(args,"new_PreListCtrl",0,0,0)) SWIG_fail;
28628 {
28629 if (!wxPyCheckForApp()) SWIG_fail;
28630 PyThreadState* __tstate = wxPyBeginAllowThreads();
28631 result = (wxPyListCtrl *)new wxPyListCtrl();
28632 wxPyEndAllowThreads(__tstate);
28633 if (PyErr_Occurred()) SWIG_fail;
28634 }
28635 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_OWN | 0 );
28636 return resultobj;
28637 fail:
28638 return NULL;
28639 }
28640
28641
28642 SWIGINTERN PyObject *_wrap_ListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28643 PyObject *resultobj = 0;
28644 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28645 wxWindow *arg2 = (wxWindow *) 0 ;
28646 int arg3 = (int) -1 ;
28647 wxPoint const &arg4_defvalue = wxDefaultPosition ;
28648 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
28649 wxSize const &arg5_defvalue = wxDefaultSize ;
28650 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
28651 long arg6 = (long) wxLC_ICON ;
28652 wxValidator const &arg7_defvalue = wxDefaultValidator ;
28653 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
28654 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
28655 wxString *arg8 = (wxString *) &arg8_defvalue ;
28656 bool result;
28657 void *argp1 = 0 ;
28658 int res1 = 0 ;
28659 void *argp2 = 0 ;
28660 int res2 = 0 ;
28661 int val3 ;
28662 int ecode3 = 0 ;
28663 wxPoint temp4 ;
28664 wxSize temp5 ;
28665 long val6 ;
28666 int ecode6 = 0 ;
28667 void *argp7 = 0 ;
28668 int res7 = 0 ;
28669 bool temp8 = false ;
28670 PyObject * obj0 = 0 ;
28671 PyObject * obj1 = 0 ;
28672 PyObject * obj2 = 0 ;
28673 PyObject * obj3 = 0 ;
28674 PyObject * obj4 = 0 ;
28675 PyObject * obj5 = 0 ;
28676 PyObject * obj6 = 0 ;
28677 PyObject * obj7 = 0 ;
28678 char * kwnames[] = {
28679 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28680 };
28681
28682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28684 if (!SWIG_IsOK(res1)) {
28685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Create" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28686 }
28687 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28688 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28689 if (!SWIG_IsOK(res2)) {
28690 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
28691 }
28692 arg2 = reinterpret_cast< wxWindow * >(argp2);
28693 if (obj2) {
28694 ecode3 = SWIG_AsVal_int(obj2, &val3);
28695 if (!SWIG_IsOK(ecode3)) {
28696 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
28697 }
28698 arg3 = static_cast< int >(val3);
28699 }
28700 if (obj3) {
28701 {
28702 arg4 = &temp4;
28703 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
28704 }
28705 }
28706 if (obj4) {
28707 {
28708 arg5 = &temp5;
28709 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
28710 }
28711 }
28712 if (obj5) {
28713 ecode6 = SWIG_AsVal_long(obj5, &val6);
28714 if (!SWIG_IsOK(ecode6)) {
28715 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
28716 }
28717 arg6 = static_cast< long >(val6);
28718 }
28719 if (obj6) {
28720 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
28721 if (!SWIG_IsOK(res7)) {
28722 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
28723 }
28724 if (!argp7) {
28725 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
28726 }
28727 arg7 = reinterpret_cast< wxValidator * >(argp7);
28728 }
28729 if (obj7) {
28730 {
28731 arg8 = wxString_in_helper(obj7);
28732 if (arg8 == NULL) SWIG_fail;
28733 temp8 = true;
28734 }
28735 }
28736 {
28737 PyThreadState* __tstate = wxPyBeginAllowThreads();
28738 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
28739 wxPyEndAllowThreads(__tstate);
28740 if (PyErr_Occurred()) SWIG_fail;
28741 }
28742 {
28743 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28744 }
28745 {
28746 if (temp8)
28747 delete arg8;
28748 }
28749 return resultobj;
28750 fail:
28751 {
28752 if (temp8)
28753 delete arg8;
28754 }
28755 return NULL;
28756 }
28757
28758
28759 SWIGINTERN PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28760 PyObject *resultobj = 0;
28761 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28762 PyObject *arg2 = (PyObject *) 0 ;
28763 PyObject *arg3 = (PyObject *) 0 ;
28764 void *argp1 = 0 ;
28765 int res1 = 0 ;
28766 PyObject * obj0 = 0 ;
28767 PyObject * obj1 = 0 ;
28768 PyObject * obj2 = 0 ;
28769 char * kwnames[] = {
28770 (char *) "self",(char *) "self",(char *) "_class", NULL
28771 };
28772
28773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28774 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28775 if (!SWIG_IsOK(res1)) {
28776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28777 }
28778 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28779 arg2 = obj1;
28780 arg3 = obj2;
28781 {
28782 PyThreadState* __tstate = wxPyBeginAllowThreads();
28783 (arg1)->_setCallbackInfo(arg2,arg3);
28784 wxPyEndAllowThreads(__tstate);
28785 if (PyErr_Occurred()) SWIG_fail;
28786 }
28787 resultobj = SWIG_Py_Void();
28788 return resultobj;
28789 fail:
28790 return NULL;
28791 }
28792
28793
28794 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28795 PyObject *resultobj = 0;
28796 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28797 int arg2 ;
28798 wxListItem *result = 0 ;
28799 void *argp1 = 0 ;
28800 int res1 = 0 ;
28801 int val2 ;
28802 int ecode2 = 0 ;
28803 PyObject * obj0 = 0 ;
28804 PyObject * obj1 = 0 ;
28805 char * kwnames[] = {
28806 (char *) "self",(char *) "col", NULL
28807 };
28808
28809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
28810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28811 if (!SWIG_IsOK(res1)) {
28812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28813 }
28814 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28815 ecode2 = SWIG_AsVal_int(obj1, &val2);
28816 if (!SWIG_IsOK(ecode2)) {
28817 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumn" "', expected argument " "2"" of type '" "int""'");
28818 }
28819 arg2 = static_cast< int >(val2);
28820 {
28821 PyThreadState* __tstate = wxPyBeginAllowThreads();
28822 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
28823 wxPyEndAllowThreads(__tstate);
28824 if (PyErr_Occurred()) SWIG_fail;
28825 }
28826 {
28827 resultobj = wxPyMake_wxObject(result, (bool)0);
28828 }
28829 return resultobj;
28830 fail:
28831 return NULL;
28832 }
28833
28834
28835 SWIGINTERN PyObject *_wrap_ListCtrl_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28836 PyObject *resultobj = 0;
28837 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28838 int arg2 ;
28839 wxListItem *arg3 = 0 ;
28840 bool result;
28841 void *argp1 = 0 ;
28842 int res1 = 0 ;
28843 int val2 ;
28844 int ecode2 = 0 ;
28845 void *argp3 = 0 ;
28846 int res3 = 0 ;
28847 PyObject * obj0 = 0 ;
28848 PyObject * obj1 = 0 ;
28849 PyObject * obj2 = 0 ;
28850 char * kwnames[] = {
28851 (char *) "self",(char *) "col",(char *) "item", NULL
28852 };
28853
28854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28855 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28856 if (!SWIG_IsOK(res1)) {
28857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28858 }
28859 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28860 ecode2 = SWIG_AsVal_int(obj1, &val2);
28861 if (!SWIG_IsOK(ecode2)) {
28862 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumn" "', expected argument " "2"" of type '" "int""'");
28863 }
28864 arg2 = static_cast< int >(val2);
28865 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
28866 if (!SWIG_IsOK(res3)) {
28867 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
28868 }
28869 if (!argp3) {
28870 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
28871 }
28872 arg3 = reinterpret_cast< wxListItem * >(argp3);
28873 {
28874 PyThreadState* __tstate = wxPyBeginAllowThreads();
28875 result = (bool)(arg1)->SetColumn(arg2,*arg3);
28876 wxPyEndAllowThreads(__tstate);
28877 if (PyErr_Occurred()) SWIG_fail;
28878 }
28879 {
28880 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28881 }
28882 return resultobj;
28883 fail:
28884 return NULL;
28885 }
28886
28887
28888 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28889 PyObject *resultobj = 0;
28890 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28891 int arg2 ;
28892 int result;
28893 void *argp1 = 0 ;
28894 int res1 = 0 ;
28895 int val2 ;
28896 int ecode2 = 0 ;
28897 PyObject * obj0 = 0 ;
28898 PyObject * obj1 = 0 ;
28899 char * kwnames[] = {
28900 (char *) "self",(char *) "col", NULL
28901 };
28902
28903 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) SWIG_fail;
28904 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28905 if (!SWIG_IsOK(res1)) {
28906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28907 }
28908 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28909 ecode2 = SWIG_AsVal_int(obj1, &val2);
28910 if (!SWIG_IsOK(ecode2)) {
28911 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "2"" of type '" "int""'");
28912 }
28913 arg2 = static_cast< int >(val2);
28914 {
28915 PyThreadState* __tstate = wxPyBeginAllowThreads();
28916 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
28917 wxPyEndAllowThreads(__tstate);
28918 if (PyErr_Occurred()) SWIG_fail;
28919 }
28920 resultobj = SWIG_From_int(static_cast< int >(result));
28921 return resultobj;
28922 fail:
28923 return NULL;
28924 }
28925
28926
28927 SWIGINTERN PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28928 PyObject *resultobj = 0;
28929 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28930 int arg2 ;
28931 int arg3 ;
28932 bool result;
28933 void *argp1 = 0 ;
28934 int res1 = 0 ;
28935 int val2 ;
28936 int ecode2 = 0 ;
28937 int val3 ;
28938 int ecode3 = 0 ;
28939 PyObject * obj0 = 0 ;
28940 PyObject * obj1 = 0 ;
28941 PyObject * obj2 = 0 ;
28942 char * kwnames[] = {
28943 (char *) "self",(char *) "col",(char *) "width", NULL
28944 };
28945
28946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28948 if (!SWIG_IsOK(res1)) {
28949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28950 }
28951 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28952 ecode2 = SWIG_AsVal_int(obj1, &val2);
28953 if (!SWIG_IsOK(ecode2)) {
28954 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "2"" of type '" "int""'");
28955 }
28956 arg2 = static_cast< int >(val2);
28957 ecode3 = SWIG_AsVal_int(obj2, &val3);
28958 if (!SWIG_IsOK(ecode3)) {
28959 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "3"" of type '" "int""'");
28960 }
28961 arg3 = static_cast< int >(val3);
28962 {
28963 PyThreadState* __tstate = wxPyBeginAllowThreads();
28964 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
28965 wxPyEndAllowThreads(__tstate);
28966 if (PyErr_Occurred()) SWIG_fail;
28967 }
28968 {
28969 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28970 }
28971 return resultobj;
28972 fail:
28973 return NULL;
28974 }
28975
28976
28977 SWIGINTERN PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28978 PyObject *resultobj = 0;
28979 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28980 int result;
28981 void *argp1 = 0 ;
28982 int res1 = 0 ;
28983 PyObject *swig_obj[1] ;
28984
28985 if (!args) SWIG_fail;
28986 swig_obj[0] = args;
28987 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28988 if (!SWIG_IsOK(res1)) {
28989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetCountPerPage" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28990 }
28991 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28992 {
28993 PyThreadState* __tstate = wxPyBeginAllowThreads();
28994 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
28995 wxPyEndAllowThreads(__tstate);
28996 if (PyErr_Occurred()) SWIG_fail;
28997 }
28998 resultobj = SWIG_From_int(static_cast< int >(result));
28999 return resultobj;
29000 fail:
29001 return NULL;
29002 }
29003
29004
29005 SWIGINTERN PyObject *_wrap_ListCtrl_GetViewRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29006 PyObject *resultobj = 0;
29007 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29008 wxRect result;
29009 void *argp1 = 0 ;
29010 int res1 = 0 ;
29011 PyObject *swig_obj[1] ;
29012
29013 if (!args) SWIG_fail;
29014 swig_obj[0] = args;
29015 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29016 if (!SWIG_IsOK(res1)) {
29017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetViewRect" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29018 }
29019 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29020 {
29021 PyThreadState* __tstate = wxPyBeginAllowThreads();
29022 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
29023 wxPyEndAllowThreads(__tstate);
29024 if (PyErr_Occurred()) SWIG_fail;
29025 }
29026 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29027 return resultobj;
29028 fail:
29029 return NULL;
29030 }
29031
29032
29033 SWIGINTERN PyObject *_wrap_ListCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29034 PyObject *resultobj = 0;
29035 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29036 wxTextCtrl *result = 0 ;
29037 void *argp1 = 0 ;
29038 int res1 = 0 ;
29039 PyObject *swig_obj[1] ;
29040
29041 if (!args) SWIG_fail;
29042 swig_obj[0] = args;
29043 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29044 if (!SWIG_IsOK(res1)) {
29045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29046 }
29047 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29048 {
29049 PyThreadState* __tstate = wxPyBeginAllowThreads();
29050 result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl();
29051 wxPyEndAllowThreads(__tstate);
29052 if (PyErr_Occurred()) SWIG_fail;
29053 }
29054 {
29055 resultobj = wxPyMake_wxObject(result, 0);
29056 }
29057 return resultobj;
29058 fail:
29059 return NULL;
29060 }
29061
29062
29063 SWIGINTERN PyObject *_wrap_ListCtrl_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29064 PyObject *resultobj = 0;
29065 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29066 long arg2 ;
29067 int arg3 = (int) 0 ;
29068 wxListItem *result = 0 ;
29069 void *argp1 = 0 ;
29070 int res1 = 0 ;
29071 long val2 ;
29072 int ecode2 = 0 ;
29073 int val3 ;
29074 int ecode3 = 0 ;
29075 PyObject * obj0 = 0 ;
29076 PyObject * obj1 = 0 ;
29077 PyObject * obj2 = 0 ;
29078 char * kwnames[] = {
29079 (char *) "self",(char *) "itemId",(char *) "col", NULL
29080 };
29081
29082 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29083 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29084 if (!SWIG_IsOK(res1)) {
29085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29086 }
29087 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29088 ecode2 = SWIG_AsVal_long(obj1, &val2);
29089 if (!SWIG_IsOK(ecode2)) {
29090 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItem" "', expected argument " "2"" of type '" "long""'");
29091 }
29092 arg2 = static_cast< long >(val2);
29093 if (obj2) {
29094 ecode3 = SWIG_AsVal_int(obj2, &val3);
29095 if (!SWIG_IsOK(ecode3)) {
29096 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItem" "', expected argument " "3"" of type '" "int""'");
29097 }
29098 arg3 = static_cast< int >(val3);
29099 }
29100 {
29101 PyThreadState* __tstate = wxPyBeginAllowThreads();
29102 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
29103 wxPyEndAllowThreads(__tstate);
29104 if (PyErr_Occurred()) SWIG_fail;
29105 }
29106 {
29107 resultobj = wxPyMake_wxObject(result, (bool)0);
29108 }
29109 return resultobj;
29110 fail:
29111 return NULL;
29112 }
29113
29114
29115 SWIGINTERN PyObject *_wrap_ListCtrl_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29116 PyObject *resultobj = 0;
29117 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29118 wxListItem *arg2 = 0 ;
29119 bool result;
29120 void *argp1 = 0 ;
29121 int res1 = 0 ;
29122 void *argp2 = 0 ;
29123 int res2 = 0 ;
29124 PyObject * obj0 = 0 ;
29125 PyObject * obj1 = 0 ;
29126 char * kwnames[] = {
29127 (char *) "self",(char *) "info", NULL
29128 };
29129
29130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
29131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29132 if (!SWIG_IsOK(res1)) {
29133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29134 }
29135 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29136 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
29137 if (!SWIG_IsOK(res2)) {
29138 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29139 }
29140 if (!argp2) {
29141 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29142 }
29143 arg2 = reinterpret_cast< wxListItem * >(argp2);
29144 {
29145 PyThreadState* __tstate = wxPyBeginAllowThreads();
29146 result = (bool)(arg1)->SetItem(*arg2);
29147 wxPyEndAllowThreads(__tstate);
29148 if (PyErr_Occurred()) SWIG_fail;
29149 }
29150 {
29151 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29152 }
29153 return resultobj;
29154 fail:
29155 return NULL;
29156 }
29157
29158
29159 SWIGINTERN PyObject *_wrap_ListCtrl_SetStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29160 PyObject *resultobj = 0;
29161 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29162 long arg2 ;
29163 int arg3 ;
29164 wxString *arg4 = 0 ;
29165 int arg5 = (int) -1 ;
29166 long result;
29167 void *argp1 = 0 ;
29168 int res1 = 0 ;
29169 long val2 ;
29170 int ecode2 = 0 ;
29171 int val3 ;
29172 int ecode3 = 0 ;
29173 bool temp4 = false ;
29174 int val5 ;
29175 int ecode5 = 0 ;
29176 PyObject * obj0 = 0 ;
29177 PyObject * obj1 = 0 ;
29178 PyObject * obj2 = 0 ;
29179 PyObject * obj3 = 0 ;
29180 PyObject * obj4 = 0 ;
29181 char * kwnames[] = {
29182 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
29183 };
29184
29185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29187 if (!SWIG_IsOK(res1)) {
29188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29189 }
29190 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29191 ecode2 = SWIG_AsVal_long(obj1, &val2);
29192 if (!SWIG_IsOK(ecode2)) {
29193 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetStringItem" "', expected argument " "2"" of type '" "long""'");
29194 }
29195 arg2 = static_cast< long >(val2);
29196 ecode3 = SWIG_AsVal_int(obj2, &val3);
29197 if (!SWIG_IsOK(ecode3)) {
29198 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetStringItem" "', expected argument " "3"" of type '" "int""'");
29199 }
29200 arg3 = static_cast< int >(val3);
29201 {
29202 arg4 = wxString_in_helper(obj3);
29203 if (arg4 == NULL) SWIG_fail;
29204 temp4 = true;
29205 }
29206 if (obj4) {
29207 ecode5 = SWIG_AsVal_int(obj4, &val5);
29208 if (!SWIG_IsOK(ecode5)) {
29209 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_SetStringItem" "', expected argument " "5"" of type '" "int""'");
29210 }
29211 arg5 = static_cast< int >(val5);
29212 }
29213 {
29214 PyThreadState* __tstate = wxPyBeginAllowThreads();
29215 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
29216 wxPyEndAllowThreads(__tstate);
29217 if (PyErr_Occurred()) SWIG_fail;
29218 }
29219 resultobj = SWIG_From_long(static_cast< long >(result));
29220 {
29221 if (temp4)
29222 delete arg4;
29223 }
29224 return resultobj;
29225 fail:
29226 {
29227 if (temp4)
29228 delete arg4;
29229 }
29230 return NULL;
29231 }
29232
29233
29234 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29235 PyObject *resultobj = 0;
29236 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29237 long arg2 ;
29238 long arg3 ;
29239 int result;
29240 void *argp1 = 0 ;
29241 int res1 = 0 ;
29242 long val2 ;
29243 int ecode2 = 0 ;
29244 long val3 ;
29245 int ecode3 = 0 ;
29246 PyObject * obj0 = 0 ;
29247 PyObject * obj1 = 0 ;
29248 PyObject * obj2 = 0 ;
29249 char * kwnames[] = {
29250 (char *) "self",(char *) "item",(char *) "stateMask", NULL
29251 };
29252
29253 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29254 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29255 if (!SWIG_IsOK(res1)) {
29256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29257 }
29258 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29259 ecode2 = SWIG_AsVal_long(obj1, &val2);
29260 if (!SWIG_IsOK(ecode2)) {
29261 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemState" "', expected argument " "2"" of type '" "long""'");
29262 }
29263 arg2 = static_cast< long >(val2);
29264 ecode3 = SWIG_AsVal_long(obj2, &val3);
29265 if (!SWIG_IsOK(ecode3)) {
29266 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemState" "', expected argument " "3"" of type '" "long""'");
29267 }
29268 arg3 = static_cast< long >(val3);
29269 {
29270 PyThreadState* __tstate = wxPyBeginAllowThreads();
29271 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
29272 wxPyEndAllowThreads(__tstate);
29273 if (PyErr_Occurred()) SWIG_fail;
29274 }
29275 resultobj = SWIG_From_int(static_cast< int >(result));
29276 return resultobj;
29277 fail:
29278 return NULL;
29279 }
29280
29281
29282 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29283 PyObject *resultobj = 0;
29284 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29285 long arg2 ;
29286 long arg3 ;
29287 long arg4 ;
29288 bool result;
29289 void *argp1 = 0 ;
29290 int res1 = 0 ;
29291 long val2 ;
29292 int ecode2 = 0 ;
29293 long val3 ;
29294 int ecode3 = 0 ;
29295 long val4 ;
29296 int ecode4 = 0 ;
29297 PyObject * obj0 = 0 ;
29298 PyObject * obj1 = 0 ;
29299 PyObject * obj2 = 0 ;
29300 PyObject * obj3 = 0 ;
29301 char * kwnames[] = {
29302 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
29303 };
29304
29305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29307 if (!SWIG_IsOK(res1)) {
29308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29309 }
29310 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29311 ecode2 = SWIG_AsVal_long(obj1, &val2);
29312 if (!SWIG_IsOK(ecode2)) {
29313 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemState" "', expected argument " "2"" of type '" "long""'");
29314 }
29315 arg2 = static_cast< long >(val2);
29316 ecode3 = SWIG_AsVal_long(obj2, &val3);
29317 if (!SWIG_IsOK(ecode3)) {
29318 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemState" "', expected argument " "3"" of type '" "long""'");
29319 }
29320 arg3 = static_cast< long >(val3);
29321 ecode4 = SWIG_AsVal_long(obj3, &val4);
29322 if (!SWIG_IsOK(ecode4)) {
29323 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemState" "', expected argument " "4"" of type '" "long""'");
29324 }
29325 arg4 = static_cast< long >(val4);
29326 {
29327 PyThreadState* __tstate = wxPyBeginAllowThreads();
29328 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
29329 wxPyEndAllowThreads(__tstate);
29330 if (PyErr_Occurred()) SWIG_fail;
29331 }
29332 {
29333 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29334 }
29335 return resultobj;
29336 fail:
29337 return NULL;
29338 }
29339
29340
29341 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29342 PyObject *resultobj = 0;
29343 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29344 long arg2 ;
29345 int arg3 ;
29346 int arg4 = (int) -1 ;
29347 bool result;
29348 void *argp1 = 0 ;
29349 int res1 = 0 ;
29350 long val2 ;
29351 int ecode2 = 0 ;
29352 int val3 ;
29353 int ecode3 = 0 ;
29354 int val4 ;
29355 int ecode4 = 0 ;
29356 PyObject * obj0 = 0 ;
29357 PyObject * obj1 = 0 ;
29358 PyObject * obj2 = 0 ;
29359 PyObject * obj3 = 0 ;
29360 char * kwnames[] = {
29361 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
29362 };
29363
29364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29366 if (!SWIG_IsOK(res1)) {
29367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29368 }
29369 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29370 ecode2 = SWIG_AsVal_long(obj1, &val2);
29371 if (!SWIG_IsOK(ecode2)) {
29372 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemImage" "', expected argument " "2"" of type '" "long""'");
29373 }
29374 arg2 = static_cast< long >(val2);
29375 ecode3 = SWIG_AsVal_int(obj2, &val3);
29376 if (!SWIG_IsOK(ecode3)) {
29377 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
29378 }
29379 arg3 = static_cast< int >(val3);
29380 if (obj3) {
29381 ecode4 = SWIG_AsVal_int(obj3, &val4);
29382 if (!SWIG_IsOK(ecode4)) {
29383 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemImage" "', expected argument " "4"" of type '" "int""'");
29384 }
29385 arg4 = static_cast< int >(val4);
29386 }
29387 {
29388 PyThreadState* __tstate = wxPyBeginAllowThreads();
29389 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
29390 wxPyEndAllowThreads(__tstate);
29391 if (PyErr_Occurred()) SWIG_fail;
29392 }
29393 {
29394 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29395 }
29396 return resultobj;
29397 fail:
29398 return NULL;
29399 }
29400
29401
29402 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29403 PyObject *resultobj = 0;
29404 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29405 long arg2 ;
29406 long arg3 ;
29407 int arg4 ;
29408 bool result;
29409 void *argp1 = 0 ;
29410 int res1 = 0 ;
29411 long val2 ;
29412 int ecode2 = 0 ;
29413 long val3 ;
29414 int ecode3 = 0 ;
29415 int val4 ;
29416 int ecode4 = 0 ;
29417 PyObject * obj0 = 0 ;
29418 PyObject * obj1 = 0 ;
29419 PyObject * obj2 = 0 ;
29420 PyObject * obj3 = 0 ;
29421 char * kwnames[] = {
29422 (char *) "self",(char *) "item",(char *) "column",(char *) "image", NULL
29423 };
29424
29425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemColumnImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29426 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29427 if (!SWIG_IsOK(res1)) {
29428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29429 }
29430 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29431 ecode2 = SWIG_AsVal_long(obj1, &val2);
29432 if (!SWIG_IsOK(ecode2)) {
29433 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "2"" of type '" "long""'");
29434 }
29435 arg2 = static_cast< long >(val2);
29436 ecode3 = SWIG_AsVal_long(obj2, &val3);
29437 if (!SWIG_IsOK(ecode3)) {
29438 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "3"" of type '" "long""'");
29439 }
29440 arg3 = static_cast< long >(val3);
29441 ecode4 = SWIG_AsVal_int(obj3, &val4);
29442 if (!SWIG_IsOK(ecode4)) {
29443 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "4"" of type '" "int""'");
29444 }
29445 arg4 = static_cast< int >(val4);
29446 {
29447 PyThreadState* __tstate = wxPyBeginAllowThreads();
29448 result = (bool)(arg1)->SetItemColumnImage(arg2,arg3,arg4);
29449 wxPyEndAllowThreads(__tstate);
29450 if (PyErr_Occurred()) SWIG_fail;
29451 }
29452 {
29453 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29454 }
29455 return resultobj;
29456 fail:
29457 return NULL;
29458 }
29459
29460
29461 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29462 PyObject *resultobj = 0;
29463 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29464 long arg2 ;
29465 wxString result;
29466 void *argp1 = 0 ;
29467 int res1 = 0 ;
29468 long val2 ;
29469 int ecode2 = 0 ;
29470 PyObject * obj0 = 0 ;
29471 PyObject * obj1 = 0 ;
29472 char * kwnames[] = {
29473 (char *) "self",(char *) "item", NULL
29474 };
29475
29476 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
29477 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29478 if (!SWIG_IsOK(res1)) {
29479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29480 }
29481 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29482 ecode2 = SWIG_AsVal_long(obj1, &val2);
29483 if (!SWIG_IsOK(ecode2)) {
29484 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemText" "', expected argument " "2"" of type '" "long""'");
29485 }
29486 arg2 = static_cast< long >(val2);
29487 {
29488 PyThreadState* __tstate = wxPyBeginAllowThreads();
29489 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
29490 wxPyEndAllowThreads(__tstate);
29491 if (PyErr_Occurred()) SWIG_fail;
29492 }
29493 {
29494 #if wxUSE_UNICODE
29495 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29496 #else
29497 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29498 #endif
29499 }
29500 return resultobj;
29501 fail:
29502 return NULL;
29503 }
29504
29505
29506 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29507 PyObject *resultobj = 0;
29508 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29509 long arg2 ;
29510 wxString *arg3 = 0 ;
29511 void *argp1 = 0 ;
29512 int res1 = 0 ;
29513 long val2 ;
29514 int ecode2 = 0 ;
29515 bool temp3 = false ;
29516 PyObject * obj0 = 0 ;
29517 PyObject * obj1 = 0 ;
29518 PyObject * obj2 = 0 ;
29519 char * kwnames[] = {
29520 (char *) "self",(char *) "item",(char *) "str", NULL
29521 };
29522
29523 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29524 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29525 if (!SWIG_IsOK(res1)) {
29526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29527 }
29528 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29529 ecode2 = SWIG_AsVal_long(obj1, &val2);
29530 if (!SWIG_IsOK(ecode2)) {
29531 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemText" "', expected argument " "2"" of type '" "long""'");
29532 }
29533 arg2 = static_cast< long >(val2);
29534 {
29535 arg3 = wxString_in_helper(obj2);
29536 if (arg3 == NULL) SWIG_fail;
29537 temp3 = true;
29538 }
29539 {
29540 PyThreadState* __tstate = wxPyBeginAllowThreads();
29541 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
29542 wxPyEndAllowThreads(__tstate);
29543 if (PyErr_Occurred()) SWIG_fail;
29544 }
29545 resultobj = SWIG_Py_Void();
29546 {
29547 if (temp3)
29548 delete arg3;
29549 }
29550 return resultobj;
29551 fail:
29552 {
29553 if (temp3)
29554 delete arg3;
29555 }
29556 return NULL;
29557 }
29558
29559
29560 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29561 PyObject *resultobj = 0;
29562 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29563 long arg2 ;
29564 long result;
29565 void *argp1 = 0 ;
29566 int res1 = 0 ;
29567 long val2 ;
29568 int ecode2 = 0 ;
29569 PyObject * obj0 = 0 ;
29570 PyObject * obj1 = 0 ;
29571 char * kwnames[] = {
29572 (char *) "self",(char *) "item", NULL
29573 };
29574
29575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
29576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29577 if (!SWIG_IsOK(res1)) {
29578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29579 }
29580 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29581 ecode2 = SWIG_AsVal_long(obj1, &val2);
29582 if (!SWIG_IsOK(ecode2)) {
29583 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemData" "', expected argument " "2"" of type '" "long""'");
29584 }
29585 arg2 = static_cast< long >(val2);
29586 {
29587 PyThreadState* __tstate = wxPyBeginAllowThreads();
29588 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
29589 wxPyEndAllowThreads(__tstate);
29590 if (PyErr_Occurred()) SWIG_fail;
29591 }
29592 resultobj = SWIG_From_long(static_cast< long >(result));
29593 return resultobj;
29594 fail:
29595 return NULL;
29596 }
29597
29598
29599 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29600 PyObject *resultobj = 0;
29601 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29602 long arg2 ;
29603 long arg3 ;
29604 bool result;
29605 void *argp1 = 0 ;
29606 int res1 = 0 ;
29607 long val2 ;
29608 int ecode2 = 0 ;
29609 long val3 ;
29610 int ecode3 = 0 ;
29611 PyObject * obj0 = 0 ;
29612 PyObject * obj1 = 0 ;
29613 PyObject * obj2 = 0 ;
29614 char * kwnames[] = {
29615 (char *) "self",(char *) "item",(char *) "data", NULL
29616 };
29617
29618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29620 if (!SWIG_IsOK(res1)) {
29621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29622 }
29623 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29624 ecode2 = SWIG_AsVal_long(obj1, &val2);
29625 if (!SWIG_IsOK(ecode2)) {
29626 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemData" "', expected argument " "2"" of type '" "long""'");
29627 }
29628 arg2 = static_cast< long >(val2);
29629 ecode3 = SWIG_AsVal_long(obj2, &val3);
29630 if (!SWIG_IsOK(ecode3)) {
29631 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemData" "', expected argument " "3"" of type '" "long""'");
29632 }
29633 arg3 = static_cast< long >(val3);
29634 {
29635 PyThreadState* __tstate = wxPyBeginAllowThreads();
29636 result = (bool)(arg1)->SetItemData(arg2,arg3);
29637 wxPyEndAllowThreads(__tstate);
29638 if (PyErr_Occurred()) SWIG_fail;
29639 }
29640 {
29641 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29642 }
29643 return resultobj;
29644 fail:
29645 return NULL;
29646 }
29647
29648
29649 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29650 PyObject *resultobj = 0;
29651 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29652 long arg2 ;
29653 wxPoint result;
29654 void *argp1 = 0 ;
29655 int res1 = 0 ;
29656 long val2 ;
29657 int ecode2 = 0 ;
29658 PyObject * obj0 = 0 ;
29659 PyObject * obj1 = 0 ;
29660 char * kwnames[] = {
29661 (char *) "self",(char *) "item", NULL
29662 };
29663
29664 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) SWIG_fail;
29665 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29666 if (!SWIG_IsOK(res1)) {
29667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29668 }
29669 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29670 ecode2 = SWIG_AsVal_long(obj1, &val2);
29671 if (!SWIG_IsOK(ecode2)) {
29672 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "2"" of type '" "long""'");
29673 }
29674 arg2 = static_cast< long >(val2);
29675 {
29676 PyThreadState* __tstate = wxPyBeginAllowThreads();
29677 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
29678 wxPyEndAllowThreads(__tstate);
29679 if (PyErr_Occurred()) SWIG_fail;
29680 }
29681 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
29682 return resultobj;
29683 fail:
29684 return NULL;
29685 }
29686
29687
29688 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29689 PyObject *resultobj = 0;
29690 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29691 long arg2 ;
29692 int arg3 = (int) wxLIST_RECT_BOUNDS ;
29693 wxRect result;
29694 void *argp1 = 0 ;
29695 int res1 = 0 ;
29696 long val2 ;
29697 int ecode2 = 0 ;
29698 int val3 ;
29699 int ecode3 = 0 ;
29700 PyObject * obj0 = 0 ;
29701 PyObject * obj1 = 0 ;
29702 PyObject * obj2 = 0 ;
29703 char * kwnames[] = {
29704 (char *) "self",(char *) "item",(char *) "code", NULL
29705 };
29706
29707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29709 if (!SWIG_IsOK(res1)) {
29710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemRect" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29711 }
29712 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29713 ecode2 = SWIG_AsVal_long(obj1, &val2);
29714 if (!SWIG_IsOK(ecode2)) {
29715 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemRect" "', expected argument " "2"" of type '" "long""'");
29716 }
29717 arg2 = static_cast< long >(val2);
29718 if (obj2) {
29719 ecode3 = SWIG_AsVal_int(obj2, &val3);
29720 if (!SWIG_IsOK(ecode3)) {
29721 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemRect" "', expected argument " "3"" of type '" "int""'");
29722 }
29723 arg3 = static_cast< int >(val3);
29724 }
29725 {
29726 PyThreadState* __tstate = wxPyBeginAllowThreads();
29727 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
29728 wxPyEndAllowThreads(__tstate);
29729 if (PyErr_Occurred()) SWIG_fail;
29730 }
29731 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29732 return resultobj;
29733 fail:
29734 return NULL;
29735 }
29736
29737
29738 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29739 PyObject *resultobj = 0;
29740 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29741 long arg2 ;
29742 wxPoint *arg3 = 0 ;
29743 bool result;
29744 void *argp1 = 0 ;
29745 int res1 = 0 ;
29746 long val2 ;
29747 int ecode2 = 0 ;
29748 wxPoint temp3 ;
29749 PyObject * obj0 = 0 ;
29750 PyObject * obj1 = 0 ;
29751 PyObject * obj2 = 0 ;
29752 char * kwnames[] = {
29753 (char *) "self",(char *) "item",(char *) "pos", NULL
29754 };
29755
29756 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29757 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29758 if (!SWIG_IsOK(res1)) {
29759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29760 }
29761 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29762 ecode2 = SWIG_AsVal_long(obj1, &val2);
29763 if (!SWIG_IsOK(ecode2)) {
29764 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "2"" of type '" "long""'");
29765 }
29766 arg2 = static_cast< long >(val2);
29767 {
29768 arg3 = &temp3;
29769 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29770 }
29771 {
29772 PyThreadState* __tstate = wxPyBeginAllowThreads();
29773 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
29774 wxPyEndAllowThreads(__tstate);
29775 if (PyErr_Occurred()) SWIG_fail;
29776 }
29777 {
29778 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29779 }
29780 return resultobj;
29781 fail:
29782 return NULL;
29783 }
29784
29785
29786 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29787 PyObject *resultobj = 0;
29788 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29789 int result;
29790 void *argp1 = 0 ;
29791 int res1 = 0 ;
29792 PyObject *swig_obj[1] ;
29793
29794 if (!args) SWIG_fail;
29795 swig_obj[0] = args;
29796 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29797 if (!SWIG_IsOK(res1)) {
29798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29799 }
29800 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29801 {
29802 PyThreadState* __tstate = wxPyBeginAllowThreads();
29803 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
29804 wxPyEndAllowThreads(__tstate);
29805 if (PyErr_Occurred()) SWIG_fail;
29806 }
29807 resultobj = SWIG_From_int(static_cast< int >(result));
29808 return resultobj;
29809 fail:
29810 return NULL;
29811 }
29812
29813
29814 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29815 PyObject *resultobj = 0;
29816 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29817 int result;
29818 void *argp1 = 0 ;
29819 int res1 = 0 ;
29820 PyObject *swig_obj[1] ;
29821
29822 if (!args) SWIG_fail;
29823 swig_obj[0] = args;
29824 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29825 if (!SWIG_IsOK(res1)) {
29826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29827 }
29828 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29829 {
29830 PyThreadState* __tstate = wxPyBeginAllowThreads();
29831 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
29832 wxPyEndAllowThreads(__tstate);
29833 if (PyErr_Occurred()) SWIG_fail;
29834 }
29835 resultobj = SWIG_From_int(static_cast< int >(result));
29836 return resultobj;
29837 fail:
29838 return NULL;
29839 }
29840
29841
29842 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29843 PyObject *resultobj = 0;
29844 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29845 wxSize result;
29846 void *argp1 = 0 ;
29847 int res1 = 0 ;
29848 PyObject *swig_obj[1] ;
29849
29850 if (!args) SWIG_fail;
29851 swig_obj[0] = args;
29852 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29853 if (!SWIG_IsOK(res1)) {
29854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29855 }
29856 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29857 {
29858 PyThreadState* __tstate = wxPyBeginAllowThreads();
29859 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
29860 wxPyEndAllowThreads(__tstate);
29861 if (PyErr_Occurred()) SWIG_fail;
29862 }
29863 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
29864 return resultobj;
29865 fail:
29866 return NULL;
29867 }
29868
29869
29870 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29871 PyObject *resultobj = 0;
29872 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29873 int arg2 ;
29874 bool arg3 = (bool) false ;
29875 void *argp1 = 0 ;
29876 int res1 = 0 ;
29877 int val2 ;
29878 int ecode2 = 0 ;
29879 bool val3 ;
29880 int ecode3 = 0 ;
29881 PyObject * obj0 = 0 ;
29882 PyObject * obj1 = 0 ;
29883 PyObject * obj2 = 0 ;
29884 char * kwnames[] = {
29885 (char *) "self",(char *) "spacing",(char *) "isSmall", NULL
29886 };
29887
29888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29890 if (!SWIG_IsOK(res1)) {
29891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29892 }
29893 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29894 ecode2 = SWIG_AsVal_int(obj1, &val2);
29895 if (!SWIG_IsOK(ecode2)) {
29896 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "2"" of type '" "int""'");
29897 }
29898 arg2 = static_cast< int >(val2);
29899 if (obj2) {
29900 ecode3 = SWIG_AsVal_bool(obj2, &val3);
29901 if (!SWIG_IsOK(ecode3)) {
29902 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "3"" of type '" "bool""'");
29903 }
29904 arg3 = static_cast< bool >(val3);
29905 }
29906 {
29907 PyThreadState* __tstate = wxPyBeginAllowThreads();
29908 (arg1)->SetItemSpacing(arg2,arg3);
29909 wxPyEndAllowThreads(__tstate);
29910 if (PyErr_Occurred()) SWIG_fail;
29911 }
29912 resultobj = SWIG_Py_Void();
29913 return resultobj;
29914 fail:
29915 return NULL;
29916 }
29917
29918
29919 SWIGINTERN PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29920 PyObject *resultobj = 0;
29921 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29922 int result;
29923 void *argp1 = 0 ;
29924 int res1 = 0 ;
29925 PyObject *swig_obj[1] ;
29926
29927 if (!args) SWIG_fail;
29928 swig_obj[0] = args;
29929 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29930 if (!SWIG_IsOK(res1)) {
29931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetSelectedItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29932 }
29933 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29934 {
29935 PyThreadState* __tstate = wxPyBeginAllowThreads();
29936 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
29937 wxPyEndAllowThreads(__tstate);
29938 if (PyErr_Occurred()) SWIG_fail;
29939 }
29940 resultobj = SWIG_From_int(static_cast< int >(result));
29941 return resultobj;
29942 fail:
29943 return NULL;
29944 }
29945
29946
29947 SWIGINTERN PyObject *_wrap_ListCtrl_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29948 PyObject *resultobj = 0;
29949 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29950 wxColour result;
29951 void *argp1 = 0 ;
29952 int res1 = 0 ;
29953 PyObject *swig_obj[1] ;
29954
29955 if (!args) SWIG_fail;
29956 swig_obj[0] = args;
29957 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29958 if (!SWIG_IsOK(res1)) {
29959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29960 }
29961 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29962 {
29963 PyThreadState* __tstate = wxPyBeginAllowThreads();
29964 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
29965 wxPyEndAllowThreads(__tstate);
29966 if (PyErr_Occurred()) SWIG_fail;
29967 }
29968 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29969 return resultobj;
29970 fail:
29971 return NULL;
29972 }
29973
29974
29975 SWIGINTERN PyObject *_wrap_ListCtrl_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29976 PyObject *resultobj = 0;
29977 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29978 wxColour *arg2 = 0 ;
29979 void *argp1 = 0 ;
29980 int res1 = 0 ;
29981 wxColour temp2 ;
29982 PyObject * obj0 = 0 ;
29983 PyObject * obj1 = 0 ;
29984 char * kwnames[] = {
29985 (char *) "self",(char *) "col", NULL
29986 };
29987
29988 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
29989 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29990 if (!SWIG_IsOK(res1)) {
29991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29992 }
29993 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29994 {
29995 arg2 = &temp2;
29996 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29997 }
29998 {
29999 PyThreadState* __tstate = wxPyBeginAllowThreads();
30000 (arg1)->SetTextColour((wxColour const &)*arg2);
30001 wxPyEndAllowThreads(__tstate);
30002 if (PyErr_Occurred()) SWIG_fail;
30003 }
30004 resultobj = SWIG_Py_Void();
30005 return resultobj;
30006 fail:
30007 return NULL;
30008 }
30009
30010
30011 SWIGINTERN PyObject *_wrap_ListCtrl_GetTopItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30012 PyObject *resultobj = 0;
30013 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30014 long result;
30015 void *argp1 = 0 ;
30016 int res1 = 0 ;
30017 PyObject *swig_obj[1] ;
30018
30019 if (!args) SWIG_fail;
30020 swig_obj[0] = args;
30021 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30022 if (!SWIG_IsOK(res1)) {
30023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTopItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30024 }
30025 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30026 {
30027 PyThreadState* __tstate = wxPyBeginAllowThreads();
30028 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
30029 wxPyEndAllowThreads(__tstate);
30030 if (PyErr_Occurred()) SWIG_fail;
30031 }
30032 resultobj = SWIG_From_long(static_cast< long >(result));
30033 return resultobj;
30034 fail:
30035 return NULL;
30036 }
30037
30038
30039 SWIGINTERN PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30040 PyObject *resultobj = 0;
30041 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30042 long arg2 ;
30043 bool arg3 = (bool) true ;
30044 void *argp1 = 0 ;
30045 int res1 = 0 ;
30046 long val2 ;
30047 int ecode2 = 0 ;
30048 bool val3 ;
30049 int ecode3 = 0 ;
30050 PyObject * obj0 = 0 ;
30051 PyObject * obj1 = 0 ;
30052 PyObject * obj2 = 0 ;
30053 char * kwnames[] = {
30054 (char *) "self",(char *) "style",(char *) "add", NULL
30055 };
30056
30057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30059 if (!SWIG_IsOK(res1)) {
30060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30061 }
30062 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30063 ecode2 = SWIG_AsVal_long(obj1, &val2);
30064 if (!SWIG_IsOK(ecode2)) {
30065 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "2"" of type '" "long""'");
30066 }
30067 arg2 = static_cast< long >(val2);
30068 if (obj2) {
30069 ecode3 = SWIG_AsVal_bool(obj2, &val3);
30070 if (!SWIG_IsOK(ecode3)) {
30071 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "3"" of type '" "bool""'");
30072 }
30073 arg3 = static_cast< bool >(val3);
30074 }
30075 {
30076 PyThreadState* __tstate = wxPyBeginAllowThreads();
30077 (arg1)->SetSingleStyle(arg2,arg3);
30078 wxPyEndAllowThreads(__tstate);
30079 if (PyErr_Occurred()) SWIG_fail;
30080 }
30081 resultobj = SWIG_Py_Void();
30082 return resultobj;
30083 fail:
30084 return NULL;
30085 }
30086
30087
30088 SWIGINTERN PyObject *_wrap_ListCtrl_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30089 PyObject *resultobj = 0;
30090 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30091 long arg2 ;
30092 int arg3 = (int) wxLIST_NEXT_ALL ;
30093 int arg4 = (int) wxLIST_STATE_DONTCARE ;
30094 long result;
30095 void *argp1 = 0 ;
30096 int res1 = 0 ;
30097 long val2 ;
30098 int ecode2 = 0 ;
30099 int val3 ;
30100 int ecode3 = 0 ;
30101 int val4 ;
30102 int ecode4 = 0 ;
30103 PyObject * obj0 = 0 ;
30104 PyObject * obj1 = 0 ;
30105 PyObject * obj2 = 0 ;
30106 PyObject * obj3 = 0 ;
30107 char * kwnames[] = {
30108 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
30109 };
30110
30111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30113 if (!SWIG_IsOK(res1)) {
30114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetNextItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30115 }
30116 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30117 ecode2 = SWIG_AsVal_long(obj1, &val2);
30118 if (!SWIG_IsOK(ecode2)) {
30119 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetNextItem" "', expected argument " "2"" of type '" "long""'");
30120 }
30121 arg2 = static_cast< long >(val2);
30122 if (obj2) {
30123 ecode3 = SWIG_AsVal_int(obj2, &val3);
30124 if (!SWIG_IsOK(ecode3)) {
30125 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetNextItem" "', expected argument " "3"" of type '" "int""'");
30126 }
30127 arg3 = static_cast< int >(val3);
30128 }
30129 if (obj3) {
30130 ecode4 = SWIG_AsVal_int(obj3, &val4);
30131 if (!SWIG_IsOK(ecode4)) {
30132 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_GetNextItem" "', expected argument " "4"" of type '" "int""'");
30133 }
30134 arg4 = static_cast< int >(val4);
30135 }
30136 {
30137 PyThreadState* __tstate = wxPyBeginAllowThreads();
30138 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
30139 wxPyEndAllowThreads(__tstate);
30140 if (PyErr_Occurred()) SWIG_fail;
30141 }
30142 resultobj = SWIG_From_long(static_cast< long >(result));
30143 return resultobj;
30144 fail:
30145 return NULL;
30146 }
30147
30148
30149 SWIGINTERN PyObject *_wrap_ListCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30150 PyObject *resultobj = 0;
30151 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30152 int arg2 ;
30153 wxImageList *result = 0 ;
30154 void *argp1 = 0 ;
30155 int res1 = 0 ;
30156 int val2 ;
30157 int ecode2 = 0 ;
30158 PyObject * obj0 = 0 ;
30159 PyObject * obj1 = 0 ;
30160 char * kwnames[] = {
30161 (char *) "self",(char *) "which", NULL
30162 };
30163
30164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
30165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30166 if (!SWIG_IsOK(res1)) {
30167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30168 }
30169 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30170 ecode2 = SWIG_AsVal_int(obj1, &val2);
30171 if (!SWIG_IsOK(ecode2)) {
30172 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetImageList" "', expected argument " "2"" of type '" "int""'");
30173 }
30174 arg2 = static_cast< int >(val2);
30175 {
30176 PyThreadState* __tstate = wxPyBeginAllowThreads();
30177 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
30178 wxPyEndAllowThreads(__tstate);
30179 if (PyErr_Occurred()) SWIG_fail;
30180 }
30181 {
30182 resultobj = wxPyMake_wxObject(result, (bool)0);
30183 }
30184 return resultobj;
30185 fail:
30186 return NULL;
30187 }
30188
30189
30190 SWIGINTERN PyObject *_wrap_ListCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30191 PyObject *resultobj = 0;
30192 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30193 wxImageList *arg2 = (wxImageList *) 0 ;
30194 int arg3 ;
30195 void *argp1 = 0 ;
30196 int res1 = 0 ;
30197 void *argp2 = 0 ;
30198 int res2 = 0 ;
30199 int val3 ;
30200 int ecode3 = 0 ;
30201 PyObject * obj0 = 0 ;
30202 PyObject * obj1 = 0 ;
30203 PyObject * obj2 = 0 ;
30204 char * kwnames[] = {
30205 (char *) "self",(char *) "imageList",(char *) "which", NULL
30206 };
30207
30208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30210 if (!SWIG_IsOK(res1)) {
30211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30212 }
30213 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30214 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
30215 if (!SWIG_IsOK(res2)) {
30216 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30217 }
30218 arg2 = reinterpret_cast< wxImageList * >(argp2);
30219 ecode3 = SWIG_AsVal_int(obj2, &val3);
30220 if (!SWIG_IsOK(ecode3)) {
30221 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetImageList" "', expected argument " "3"" of type '" "int""'");
30222 }
30223 arg3 = static_cast< int >(val3);
30224 {
30225 PyThreadState* __tstate = wxPyBeginAllowThreads();
30226 (arg1)->SetImageList(arg2,arg3);
30227 wxPyEndAllowThreads(__tstate);
30228 if (PyErr_Occurred()) SWIG_fail;
30229 }
30230 resultobj = SWIG_Py_Void();
30231 return resultobj;
30232 fail:
30233 return NULL;
30234 }
30235
30236
30237 SWIGINTERN PyObject *_wrap_ListCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30238 PyObject *resultobj = 0;
30239 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30240 wxImageList *arg2 = (wxImageList *) 0 ;
30241 int arg3 ;
30242 void *argp1 = 0 ;
30243 int res1 = 0 ;
30244 int res2 = 0 ;
30245 int val3 ;
30246 int ecode3 = 0 ;
30247 PyObject * obj0 = 0 ;
30248 PyObject * obj1 = 0 ;
30249 PyObject * obj2 = 0 ;
30250 char * kwnames[] = {
30251 (char *) "self",(char *) "imageList",(char *) "which", NULL
30252 };
30253
30254 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30255 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30256 if (!SWIG_IsOK(res1)) {
30257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30258 }
30259 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30260 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
30261 if (!SWIG_IsOK(res2)) {
30262 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30263 }
30264 ecode3 = SWIG_AsVal_int(obj2, &val3);
30265 if (!SWIG_IsOK(ecode3)) {
30266 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_AssignImageList" "', expected argument " "3"" of type '" "int""'");
30267 }
30268 arg3 = static_cast< int >(val3);
30269 {
30270 PyThreadState* __tstate = wxPyBeginAllowThreads();
30271 (arg1)->AssignImageList(arg2,arg3);
30272 wxPyEndAllowThreads(__tstate);
30273 if (PyErr_Occurred()) SWIG_fail;
30274 }
30275 resultobj = SWIG_Py_Void();
30276 return resultobj;
30277 fail:
30278 return NULL;
30279 }
30280
30281
30282 SWIGINTERN PyObject *_wrap_ListCtrl_InReportView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30283 PyObject *resultobj = 0;
30284 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30285 bool result;
30286 void *argp1 = 0 ;
30287 int res1 = 0 ;
30288 PyObject *swig_obj[1] ;
30289
30290 if (!args) SWIG_fail;
30291 swig_obj[0] = args;
30292 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30293 if (!SWIG_IsOK(res1)) {
30294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InReportView" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30295 }
30296 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30297 {
30298 PyThreadState* __tstate = wxPyBeginAllowThreads();
30299 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
30300 wxPyEndAllowThreads(__tstate);
30301 if (PyErr_Occurred()) SWIG_fail;
30302 }
30303 {
30304 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30305 }
30306 return resultobj;
30307 fail:
30308 return NULL;
30309 }
30310
30311
30312 SWIGINTERN PyObject *_wrap_ListCtrl_IsVirtual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30313 PyObject *resultobj = 0;
30314 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30315 bool result;
30316 void *argp1 = 0 ;
30317 int res1 = 0 ;
30318 PyObject *swig_obj[1] ;
30319
30320 if (!args) SWIG_fail;
30321 swig_obj[0] = args;
30322 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30323 if (!SWIG_IsOK(res1)) {
30324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_IsVirtual" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30325 }
30326 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30327 {
30328 PyThreadState* __tstate = wxPyBeginAllowThreads();
30329 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
30330 wxPyEndAllowThreads(__tstate);
30331 if (PyErr_Occurred()) SWIG_fail;
30332 }
30333 {
30334 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30335 }
30336 return resultobj;
30337 fail:
30338 return NULL;
30339 }
30340
30341
30342 SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30343 PyObject *resultobj = 0;
30344 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30345 long arg2 ;
30346 void *argp1 = 0 ;
30347 int res1 = 0 ;
30348 long val2 ;
30349 int ecode2 = 0 ;
30350 PyObject * obj0 = 0 ;
30351 PyObject * obj1 = 0 ;
30352 char * kwnames[] = {
30353 (char *) "self",(char *) "item", NULL
30354 };
30355
30356 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) SWIG_fail;
30357 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30358 if (!SWIG_IsOK(res1)) {
30359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30360 }
30361 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30362 ecode2 = SWIG_AsVal_long(obj1, &val2);
30363 if (!SWIG_IsOK(ecode2)) {
30364 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItem" "', expected argument " "2"" of type '" "long""'");
30365 }
30366 arg2 = static_cast< long >(val2);
30367 {
30368 PyThreadState* __tstate = wxPyBeginAllowThreads();
30369 (arg1)->RefreshItem(arg2);
30370 wxPyEndAllowThreads(__tstate);
30371 if (PyErr_Occurred()) SWIG_fail;
30372 }
30373 resultobj = SWIG_Py_Void();
30374 return resultobj;
30375 fail:
30376 return NULL;
30377 }
30378
30379
30380 SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30381 PyObject *resultobj = 0;
30382 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30383 long arg2 ;
30384 long arg3 ;
30385 void *argp1 = 0 ;
30386 int res1 = 0 ;
30387 long val2 ;
30388 int ecode2 = 0 ;
30389 long val3 ;
30390 int ecode3 = 0 ;
30391 PyObject * obj0 = 0 ;
30392 PyObject * obj1 = 0 ;
30393 PyObject * obj2 = 0 ;
30394 char * kwnames[] = {
30395 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
30396 };
30397
30398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30400 if (!SWIG_IsOK(res1)) {
30401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30402 }
30403 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30404 ecode2 = SWIG_AsVal_long(obj1, &val2);
30405 if (!SWIG_IsOK(ecode2)) {
30406 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItems" "', expected argument " "2"" of type '" "long""'");
30407 }
30408 arg2 = static_cast< long >(val2);
30409 ecode3 = SWIG_AsVal_long(obj2, &val3);
30410 if (!SWIG_IsOK(ecode3)) {
30411 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_RefreshItems" "', expected argument " "3"" of type '" "long""'");
30412 }
30413 arg3 = static_cast< long >(val3);
30414 {
30415 PyThreadState* __tstate = wxPyBeginAllowThreads();
30416 (arg1)->RefreshItems(arg2,arg3);
30417 wxPyEndAllowThreads(__tstate);
30418 if (PyErr_Occurred()) SWIG_fail;
30419 }
30420 resultobj = SWIG_Py_Void();
30421 return resultobj;
30422 fail:
30423 return NULL;
30424 }
30425
30426
30427 SWIGINTERN PyObject *_wrap_ListCtrl_Arrange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30428 PyObject *resultobj = 0;
30429 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30430 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
30431 bool result;
30432 void *argp1 = 0 ;
30433 int res1 = 0 ;
30434 int val2 ;
30435 int ecode2 = 0 ;
30436 PyObject * obj0 = 0 ;
30437 PyObject * obj1 = 0 ;
30438 char * kwnames[] = {
30439 (char *) "self",(char *) "flag", NULL
30440 };
30441
30442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) SWIG_fail;
30443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30444 if (!SWIG_IsOK(res1)) {
30445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Arrange" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30446 }
30447 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30448 if (obj1) {
30449 ecode2 = SWIG_AsVal_int(obj1, &val2);
30450 if (!SWIG_IsOK(ecode2)) {
30451 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_Arrange" "', expected argument " "2"" of type '" "int""'");
30452 }
30453 arg2 = static_cast< int >(val2);
30454 }
30455 {
30456 PyThreadState* __tstate = wxPyBeginAllowThreads();
30457 result = (bool)(arg1)->Arrange(arg2);
30458 wxPyEndAllowThreads(__tstate);
30459 if (PyErr_Occurred()) SWIG_fail;
30460 }
30461 {
30462 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30463 }
30464 return resultobj;
30465 fail:
30466 return NULL;
30467 }
30468
30469
30470 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30471 PyObject *resultobj = 0;
30472 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30473 long arg2 ;
30474 bool result;
30475 void *argp1 = 0 ;
30476 int res1 = 0 ;
30477 long val2 ;
30478 int ecode2 = 0 ;
30479 PyObject * obj0 = 0 ;
30480 PyObject * obj1 = 0 ;
30481 char * kwnames[] = {
30482 (char *) "self",(char *) "item", NULL
30483 };
30484
30485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) SWIG_fail;
30486 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30487 if (!SWIG_IsOK(res1)) {
30488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30489 }
30490 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30491 ecode2 = SWIG_AsVal_long(obj1, &val2);
30492 if (!SWIG_IsOK(ecode2)) {
30493 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteItem" "', expected argument " "2"" of type '" "long""'");
30494 }
30495 arg2 = static_cast< long >(val2);
30496 {
30497 PyThreadState* __tstate = wxPyBeginAllowThreads();
30498 result = (bool)(arg1)->DeleteItem(arg2);
30499 wxPyEndAllowThreads(__tstate);
30500 if (PyErr_Occurred()) SWIG_fail;
30501 }
30502 {
30503 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30504 }
30505 return resultobj;
30506 fail:
30507 return NULL;
30508 }
30509
30510
30511 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30512 PyObject *resultobj = 0;
30513 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30514 bool result;
30515 void *argp1 = 0 ;
30516 int res1 = 0 ;
30517 PyObject *swig_obj[1] ;
30518
30519 if (!args) SWIG_fail;
30520 swig_obj[0] = args;
30521 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30522 if (!SWIG_IsOK(res1)) {
30523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30524 }
30525 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30526 {
30527 PyThreadState* __tstate = wxPyBeginAllowThreads();
30528 result = (bool)(arg1)->DeleteAllItems();
30529 wxPyEndAllowThreads(__tstate);
30530 if (PyErr_Occurred()) SWIG_fail;
30531 }
30532 {
30533 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30534 }
30535 return resultobj;
30536 fail:
30537 return NULL;
30538 }
30539
30540
30541 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30542 PyObject *resultobj = 0;
30543 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30544 int arg2 ;
30545 bool result;
30546 void *argp1 = 0 ;
30547 int res1 = 0 ;
30548 int val2 ;
30549 int ecode2 = 0 ;
30550 PyObject * obj0 = 0 ;
30551 PyObject * obj1 = 0 ;
30552 char * kwnames[] = {
30553 (char *) "self",(char *) "col", NULL
30554 };
30555
30556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) SWIG_fail;
30557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30558 if (!SWIG_IsOK(res1)) {
30559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30560 }
30561 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30562 ecode2 = SWIG_AsVal_int(obj1, &val2);
30563 if (!SWIG_IsOK(ecode2)) {
30564 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "2"" of type '" "int""'");
30565 }
30566 arg2 = static_cast< int >(val2);
30567 {
30568 PyThreadState* __tstate = wxPyBeginAllowThreads();
30569 result = (bool)(arg1)->DeleteColumn(arg2);
30570 wxPyEndAllowThreads(__tstate);
30571 if (PyErr_Occurred()) SWIG_fail;
30572 }
30573 {
30574 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30575 }
30576 return resultobj;
30577 fail:
30578 return NULL;
30579 }
30580
30581
30582 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30583 PyObject *resultobj = 0;
30584 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30585 bool result;
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_DeleteAllColumns" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30595 }
30596 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30597 {
30598 PyThreadState* __tstate = wxPyBeginAllowThreads();
30599 result = (bool)(arg1)->DeleteAllColumns();
30600 wxPyEndAllowThreads(__tstate);
30601 if (PyErr_Occurred()) SWIG_fail;
30602 }
30603 {
30604 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30605 }
30606 return resultobj;
30607 fail:
30608 return NULL;
30609 }
30610
30611
30612 SWIGINTERN PyObject *_wrap_ListCtrl_ClearAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30613 PyObject *resultobj = 0;
30614 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30615 void *argp1 = 0 ;
30616 int res1 = 0 ;
30617 PyObject *swig_obj[1] ;
30618
30619 if (!args) SWIG_fail;
30620 swig_obj[0] = args;
30621 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30622 if (!SWIG_IsOK(res1)) {
30623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ClearAll" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30624 }
30625 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30626 {
30627 PyThreadState* __tstate = wxPyBeginAllowThreads();
30628 (arg1)->ClearAll();
30629 wxPyEndAllowThreads(__tstate);
30630 if (PyErr_Occurred()) SWIG_fail;
30631 }
30632 resultobj = SWIG_Py_Void();
30633 return resultobj;
30634 fail:
30635 return NULL;
30636 }
30637
30638
30639 SWIGINTERN PyObject *_wrap_ListCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30640 PyObject *resultobj = 0;
30641 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30642 long arg2 ;
30643 void *argp1 = 0 ;
30644 int res1 = 0 ;
30645 long val2 ;
30646 int ecode2 = 0 ;
30647 PyObject * obj0 = 0 ;
30648 PyObject * obj1 = 0 ;
30649 char * kwnames[] = {
30650 (char *) "self",(char *) "item", NULL
30651 };
30652
30653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
30654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30655 if (!SWIG_IsOK(res1)) {
30656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30657 }
30658 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30659 ecode2 = SWIG_AsVal_long(obj1, &val2);
30660 if (!SWIG_IsOK(ecode2)) {
30661 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EditLabel" "', expected argument " "2"" of type '" "long""'");
30662 }
30663 arg2 = static_cast< long >(val2);
30664 {
30665 PyThreadState* __tstate = wxPyBeginAllowThreads();
30666 (arg1)->EditLabel(arg2);
30667 wxPyEndAllowThreads(__tstate);
30668 if (PyErr_Occurred()) SWIG_fail;
30669 }
30670 resultobj = SWIG_Py_Void();
30671 return resultobj;
30672 fail:
30673 return NULL;
30674 }
30675
30676
30677 SWIGINTERN PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30678 PyObject *resultobj = 0;
30679 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30680 long arg2 ;
30681 bool result;
30682 void *argp1 = 0 ;
30683 int res1 = 0 ;
30684 long val2 ;
30685 int ecode2 = 0 ;
30686 PyObject * obj0 = 0 ;
30687 PyObject * obj1 = 0 ;
30688 char * kwnames[] = {
30689 (char *) "self",(char *) "item", NULL
30690 };
30691
30692 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
30693 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30694 if (!SWIG_IsOK(res1)) {
30695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30696 }
30697 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30698 ecode2 = SWIG_AsVal_long(obj1, &val2);
30699 if (!SWIG_IsOK(ecode2)) {
30700 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "2"" of type '" "long""'");
30701 }
30702 arg2 = static_cast< long >(val2);
30703 {
30704 PyThreadState* __tstate = wxPyBeginAllowThreads();
30705 result = (bool)(arg1)->EnsureVisible(arg2);
30706 wxPyEndAllowThreads(__tstate);
30707 if (PyErr_Occurred()) SWIG_fail;
30708 }
30709 {
30710 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30711 }
30712 return resultobj;
30713 fail:
30714 return NULL;
30715 }
30716
30717
30718 SWIGINTERN PyObject *_wrap_ListCtrl_FindItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30719 PyObject *resultobj = 0;
30720 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30721 long arg2 ;
30722 wxString *arg3 = 0 ;
30723 bool arg4 = (bool) false ;
30724 long result;
30725 void *argp1 = 0 ;
30726 int res1 = 0 ;
30727 long val2 ;
30728 int ecode2 = 0 ;
30729 bool temp3 = false ;
30730 bool val4 ;
30731 int ecode4 = 0 ;
30732 PyObject * obj0 = 0 ;
30733 PyObject * obj1 = 0 ;
30734 PyObject * obj2 = 0 ;
30735 PyObject * obj3 = 0 ;
30736 char * kwnames[] = {
30737 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
30738 };
30739
30740 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30741 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30742 if (!SWIG_IsOK(res1)) {
30743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30744 }
30745 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30746 ecode2 = SWIG_AsVal_long(obj1, &val2);
30747 if (!SWIG_IsOK(ecode2)) {
30748 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItem" "', expected argument " "2"" of type '" "long""'");
30749 }
30750 arg2 = static_cast< long >(val2);
30751 {
30752 arg3 = wxString_in_helper(obj2);
30753 if (arg3 == NULL) SWIG_fail;
30754 temp3 = true;
30755 }
30756 if (obj3) {
30757 ecode4 = SWIG_AsVal_bool(obj3, &val4);
30758 if (!SWIG_IsOK(ecode4)) {
30759 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItem" "', expected argument " "4"" of type '" "bool""'");
30760 }
30761 arg4 = static_cast< bool >(val4);
30762 }
30763 {
30764 PyThreadState* __tstate = wxPyBeginAllowThreads();
30765 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
30766 wxPyEndAllowThreads(__tstate);
30767 if (PyErr_Occurred()) SWIG_fail;
30768 }
30769 resultobj = SWIG_From_long(static_cast< long >(result));
30770 {
30771 if (temp3)
30772 delete arg3;
30773 }
30774 return resultobj;
30775 fail:
30776 {
30777 if (temp3)
30778 delete arg3;
30779 }
30780 return NULL;
30781 }
30782
30783
30784 SWIGINTERN PyObject *_wrap_ListCtrl_FindItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30785 PyObject *resultobj = 0;
30786 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30787 long arg2 ;
30788 long arg3 ;
30789 long result;
30790 void *argp1 = 0 ;
30791 int res1 = 0 ;
30792 long val2 ;
30793 int ecode2 = 0 ;
30794 long val3 ;
30795 int ecode3 = 0 ;
30796 PyObject * obj0 = 0 ;
30797 PyObject * obj1 = 0 ;
30798 PyObject * obj2 = 0 ;
30799 char * kwnames[] = {
30800 (char *) "self",(char *) "start",(char *) "data", NULL
30801 };
30802
30803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30805 if (!SWIG_IsOK(res1)) {
30806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30807 }
30808 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30809 ecode2 = SWIG_AsVal_long(obj1, &val2);
30810 if (!SWIG_IsOK(ecode2)) {
30811 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemData" "', expected argument " "2"" of type '" "long""'");
30812 }
30813 arg2 = static_cast< long >(val2);
30814 ecode3 = SWIG_AsVal_long(obj2, &val3);
30815 if (!SWIG_IsOK(ecode3)) {
30816 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_FindItemData" "', expected argument " "3"" of type '" "long""'");
30817 }
30818 arg3 = static_cast< long >(val3);
30819 {
30820 PyThreadState* __tstate = wxPyBeginAllowThreads();
30821 result = (long)(arg1)->FindItem(arg2,arg3);
30822 wxPyEndAllowThreads(__tstate);
30823 if (PyErr_Occurred()) SWIG_fail;
30824 }
30825 resultobj = SWIG_From_long(static_cast< long >(result));
30826 return resultobj;
30827 fail:
30828 return NULL;
30829 }
30830
30831
30832 SWIGINTERN PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30833 PyObject *resultobj = 0;
30834 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30835 long arg2 ;
30836 wxPoint *arg3 = 0 ;
30837 int arg4 ;
30838 long result;
30839 void *argp1 = 0 ;
30840 int res1 = 0 ;
30841 long val2 ;
30842 int ecode2 = 0 ;
30843 wxPoint temp3 ;
30844 int val4 ;
30845 int ecode4 = 0 ;
30846 PyObject * obj0 = 0 ;
30847 PyObject * obj1 = 0 ;
30848 PyObject * obj2 = 0 ;
30849 PyObject * obj3 = 0 ;
30850 char * kwnames[] = {
30851 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
30852 };
30853
30854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30855 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30856 if (!SWIG_IsOK(res1)) {
30857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30858 }
30859 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30860 ecode2 = SWIG_AsVal_long(obj1, &val2);
30861 if (!SWIG_IsOK(ecode2)) {
30862 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "2"" of type '" "long""'");
30863 }
30864 arg2 = static_cast< long >(val2);
30865 {
30866 arg3 = &temp3;
30867 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30868 }
30869 ecode4 = SWIG_AsVal_int(obj3, &val4);
30870 if (!SWIG_IsOK(ecode4)) {
30871 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "4"" of type '" "int""'");
30872 }
30873 arg4 = static_cast< int >(val4);
30874 {
30875 PyThreadState* __tstate = wxPyBeginAllowThreads();
30876 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
30877 wxPyEndAllowThreads(__tstate);
30878 if (PyErr_Occurred()) SWIG_fail;
30879 }
30880 resultobj = SWIG_From_long(static_cast< long >(result));
30881 return resultobj;
30882 fail:
30883 return NULL;
30884 }
30885
30886
30887 SWIGINTERN PyObject *_wrap_ListCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30888 PyObject *resultobj = 0;
30889 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30890 wxPoint *arg2 = 0 ;
30891 int *arg3 = 0 ;
30892 long result;
30893 void *argp1 = 0 ;
30894 int res1 = 0 ;
30895 wxPoint temp2 ;
30896 int temp3 ;
30897 int res3 = SWIG_TMPOBJ ;
30898 PyObject * obj0 = 0 ;
30899 PyObject * obj1 = 0 ;
30900 char * kwnames[] = {
30901 (char *) "self",(char *) "point", NULL
30902 };
30903
30904 arg3 = &temp3;
30905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
30906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30907 if (!SWIG_IsOK(res1)) {
30908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30909 }
30910 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30911 {
30912 arg2 = &temp2;
30913 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30914 }
30915 {
30916 PyThreadState* __tstate = wxPyBeginAllowThreads();
30917 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
30918 wxPyEndAllowThreads(__tstate);
30919 if (PyErr_Occurred()) SWIG_fail;
30920 }
30921 resultobj = SWIG_From_long(static_cast< long >(result));
30922 if (SWIG_IsTmpObj(res3)) {
30923 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
30924 } else {
30925 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30926 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
30927 }
30928 return resultobj;
30929 fail:
30930 return NULL;
30931 }
30932
30933
30934 SWIGINTERN PyObject *_wrap_ListCtrl_HitTestSubItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30935 PyObject *resultobj = 0;
30936 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30937 wxPoint *arg2 = 0 ;
30938 int *arg3 = 0 ;
30939 long *arg4 = (long *) 0 ;
30940 long result;
30941 void *argp1 = 0 ;
30942 int res1 = 0 ;
30943 wxPoint temp2 ;
30944 int temp3 ;
30945 int res3 = SWIG_TMPOBJ ;
30946 long temp4 ;
30947 int res4 = SWIG_TMPOBJ ;
30948 PyObject * obj0 = 0 ;
30949 PyObject * obj1 = 0 ;
30950 char * kwnames[] = {
30951 (char *) "self",(char *) "point", NULL
30952 };
30953
30954 arg3 = &temp3;
30955 arg4 = &temp4;
30956 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTestSubItem",kwnames,&obj0,&obj1)) SWIG_fail;
30957 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30958 if (!SWIG_IsOK(res1)) {
30959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTestSubItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30960 }
30961 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30962 {
30963 arg2 = &temp2;
30964 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30965 }
30966 {
30967 PyThreadState* __tstate = wxPyBeginAllowThreads();
30968 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3,arg4);
30969 wxPyEndAllowThreads(__tstate);
30970 if (PyErr_Occurred()) SWIG_fail;
30971 }
30972 resultobj = SWIG_From_long(static_cast< long >(result));
30973 if (SWIG_IsTmpObj(res3)) {
30974 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
30975 } else {
30976 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30977 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
30978 }
30979 if (SWIG_IsTmpObj(res4)) {
30980 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
30981 } else {
30982 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30983 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
30984 }
30985 return resultobj;
30986 fail:
30987 return NULL;
30988 }
30989
30990
30991 SWIGINTERN PyObject *_wrap_ListCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30992 PyObject *resultobj = 0;
30993 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30994 wxListItem *arg2 = 0 ;
30995 long result;
30996 void *argp1 = 0 ;
30997 int res1 = 0 ;
30998 void *argp2 = 0 ;
30999 int res2 = 0 ;
31000 PyObject * obj0 = 0 ;
31001 PyObject * obj1 = 0 ;
31002 char * kwnames[] = {
31003 (char *) "self",(char *) "info", NULL
31004 };
31005
31006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) SWIG_fail;
31007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31008 if (!SWIG_IsOK(res1)) {
31009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31010 }
31011 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31012 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
31013 if (!SWIG_IsOK(res2)) {
31014 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31015 }
31016 if (!argp2) {
31017 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31018 }
31019 arg2 = reinterpret_cast< wxListItem * >(argp2);
31020 {
31021 PyThreadState* __tstate = wxPyBeginAllowThreads();
31022 result = (long)(arg1)->InsertItem(*arg2);
31023 wxPyEndAllowThreads(__tstate);
31024 if (PyErr_Occurred()) SWIG_fail;
31025 }
31026 resultobj = SWIG_From_long(static_cast< long >(result));
31027 return resultobj;
31028 fail:
31029 return NULL;
31030 }
31031
31032
31033 SWIGINTERN PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31034 PyObject *resultobj = 0;
31035 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31036 long arg2 ;
31037 wxString *arg3 = 0 ;
31038 int arg4 = (int) -1 ;
31039 long result;
31040 void *argp1 = 0 ;
31041 int res1 = 0 ;
31042 long val2 ;
31043 int ecode2 = 0 ;
31044 bool temp3 = false ;
31045 int val4 ;
31046 int ecode4 = 0 ;
31047 PyObject * obj0 = 0 ;
31048 PyObject * obj1 = 0 ;
31049 PyObject * obj2 = 0 ;
31050 PyObject * obj3 = 0 ;
31051 char * kwnames[] = {
31052 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31053 };
31054
31055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31057 if (!SWIG_IsOK(res1)) {
31058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31059 }
31060 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31061 ecode2 = SWIG_AsVal_long(obj1, &val2);
31062 if (!SWIG_IsOK(ecode2)) {
31063 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "2"" of type '" "long""'");
31064 }
31065 arg2 = static_cast< long >(val2);
31066 {
31067 arg3 = wxString_in_helper(obj2);
31068 if (arg3 == NULL) SWIG_fail;
31069 temp3 = true;
31070 }
31071 if (obj3) {
31072 ecode4 = SWIG_AsVal_int(obj3, &val4);
31073 if (!SWIG_IsOK(ecode4)) {
31074 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "4"" of type '" "int""'");
31075 }
31076 arg4 = static_cast< int >(val4);
31077 }
31078 {
31079 PyThreadState* __tstate = wxPyBeginAllowThreads();
31080 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31081 wxPyEndAllowThreads(__tstate);
31082 if (PyErr_Occurred()) SWIG_fail;
31083 }
31084 resultobj = SWIG_From_long(static_cast< long >(result));
31085 {
31086 if (temp3)
31087 delete arg3;
31088 }
31089 return resultobj;
31090 fail:
31091 {
31092 if (temp3)
31093 delete arg3;
31094 }
31095 return NULL;
31096 }
31097
31098
31099 SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31100 PyObject *resultobj = 0;
31101 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31102 long arg2 ;
31103 int arg3 ;
31104 long result;
31105 void *argp1 = 0 ;
31106 int res1 = 0 ;
31107 long val2 ;
31108 int ecode2 = 0 ;
31109 int val3 ;
31110 int ecode3 = 0 ;
31111 PyObject * obj0 = 0 ;
31112 PyObject * obj1 = 0 ;
31113 PyObject * obj2 = 0 ;
31114 char * kwnames[] = {
31115 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
31116 };
31117
31118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31120 if (!SWIG_IsOK(res1)) {
31121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31122 }
31123 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31124 ecode2 = SWIG_AsVal_long(obj1, &val2);
31125 if (!SWIG_IsOK(ecode2)) {
31126 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "2"" of type '" "long""'");
31127 }
31128 arg2 = static_cast< long >(val2);
31129 ecode3 = SWIG_AsVal_int(obj2, &val3);
31130 if (!SWIG_IsOK(ecode3)) {
31131 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "3"" of type '" "int""'");
31132 }
31133 arg3 = static_cast< int >(val3);
31134 {
31135 PyThreadState* __tstate = wxPyBeginAllowThreads();
31136 result = (long)(arg1)->InsertItem(arg2,arg3);
31137 wxPyEndAllowThreads(__tstate);
31138 if (PyErr_Occurred()) SWIG_fail;
31139 }
31140 resultobj = SWIG_From_long(static_cast< long >(result));
31141 return resultobj;
31142 fail:
31143 return NULL;
31144 }
31145
31146
31147 SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31148 PyObject *resultobj = 0;
31149 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31150 long arg2 ;
31151 wxString *arg3 = 0 ;
31152 int arg4 ;
31153 long result;
31154 void *argp1 = 0 ;
31155 int res1 = 0 ;
31156 long val2 ;
31157 int ecode2 = 0 ;
31158 bool temp3 = false ;
31159 int val4 ;
31160 int ecode4 = 0 ;
31161 PyObject * obj0 = 0 ;
31162 PyObject * obj1 = 0 ;
31163 PyObject * obj2 = 0 ;
31164 PyObject * obj3 = 0 ;
31165 char * kwnames[] = {
31166 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31167 };
31168
31169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31171 if (!SWIG_IsOK(res1)) {
31172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31173 }
31174 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31175 ecode2 = SWIG_AsVal_long(obj1, &val2);
31176 if (!SWIG_IsOK(ecode2)) {
31177 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "2"" of type '" "long""'");
31178 }
31179 arg2 = static_cast< long >(val2);
31180 {
31181 arg3 = wxString_in_helper(obj2);
31182 if (arg3 == NULL) SWIG_fail;
31183 temp3 = true;
31184 }
31185 ecode4 = SWIG_AsVal_int(obj3, &val4);
31186 if (!SWIG_IsOK(ecode4)) {
31187 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "4"" of type '" "int""'");
31188 }
31189 arg4 = static_cast< int >(val4);
31190 {
31191 PyThreadState* __tstate = wxPyBeginAllowThreads();
31192 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31193 wxPyEndAllowThreads(__tstate);
31194 if (PyErr_Occurred()) SWIG_fail;
31195 }
31196 resultobj = SWIG_From_long(static_cast< long >(result));
31197 {
31198 if (temp3)
31199 delete arg3;
31200 }
31201 return resultobj;
31202 fail:
31203 {
31204 if (temp3)
31205 delete arg3;
31206 }
31207 return NULL;
31208 }
31209
31210
31211 SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31212 PyObject *resultobj = 0;
31213 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31214 long arg2 ;
31215 wxListItem *arg3 = 0 ;
31216 long result;
31217 void *argp1 = 0 ;
31218 int res1 = 0 ;
31219 long val2 ;
31220 int ecode2 = 0 ;
31221 void *argp3 = 0 ;
31222 int res3 = 0 ;
31223 PyObject * obj0 = 0 ;
31224 PyObject * obj1 = 0 ;
31225 PyObject * obj2 = 0 ;
31226 char * kwnames[] = {
31227 (char *) "self",(char *) "col",(char *) "info", NULL
31228 };
31229
31230 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31231 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31232 if (!SWIG_IsOK(res1)) {
31233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31234 }
31235 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31236 ecode2 = SWIG_AsVal_long(obj1, &val2);
31237 if (!SWIG_IsOK(ecode2)) {
31238 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "2"" of type '" "long""'");
31239 }
31240 arg2 = static_cast< long >(val2);
31241 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
31242 if (!SWIG_IsOK(res3)) {
31243 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31244 }
31245 if (!argp3) {
31246 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31247 }
31248 arg3 = reinterpret_cast< wxListItem * >(argp3);
31249 {
31250 PyThreadState* __tstate = wxPyBeginAllowThreads();
31251 result = (long)(arg1)->InsertColumn(arg2,*arg3);
31252 wxPyEndAllowThreads(__tstate);
31253 if (PyErr_Occurred()) SWIG_fail;
31254 }
31255 resultobj = SWIG_From_long(static_cast< long >(result));
31256 return resultobj;
31257 fail:
31258 return NULL;
31259 }
31260
31261
31262 SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31263 PyObject *resultobj = 0;
31264 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31265 long arg2 ;
31266 wxString *arg3 = 0 ;
31267 int arg4 = (int) wxLIST_FORMAT_LEFT ;
31268 int arg5 = (int) -1 ;
31269 long result;
31270 void *argp1 = 0 ;
31271 int res1 = 0 ;
31272 long val2 ;
31273 int ecode2 = 0 ;
31274 bool temp3 = false ;
31275 int val4 ;
31276 int ecode4 = 0 ;
31277 int val5 ;
31278 int ecode5 = 0 ;
31279 PyObject * obj0 = 0 ;
31280 PyObject * obj1 = 0 ;
31281 PyObject * obj2 = 0 ;
31282 PyObject * obj3 = 0 ;
31283 PyObject * obj4 = 0 ;
31284 char * kwnames[] = {
31285 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
31286 };
31287
31288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31290 if (!SWIG_IsOK(res1)) {
31291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31292 }
31293 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31294 ecode2 = SWIG_AsVal_long(obj1, &val2);
31295 if (!SWIG_IsOK(ecode2)) {
31296 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumn" "', expected argument " "2"" of type '" "long""'");
31297 }
31298 arg2 = static_cast< long >(val2);
31299 {
31300 arg3 = wxString_in_helper(obj2);
31301 if (arg3 == NULL) SWIG_fail;
31302 temp3 = true;
31303 }
31304 if (obj3) {
31305 ecode4 = SWIG_AsVal_int(obj3, &val4);
31306 if (!SWIG_IsOK(ecode4)) {
31307 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertColumn" "', expected argument " "4"" of type '" "int""'");
31308 }
31309 arg4 = static_cast< int >(val4);
31310 }
31311 if (obj4) {
31312 ecode5 = SWIG_AsVal_int(obj4, &val5);
31313 if (!SWIG_IsOK(ecode5)) {
31314 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_InsertColumn" "', expected argument " "5"" of type '" "int""'");
31315 }
31316 arg5 = static_cast< int >(val5);
31317 }
31318 {
31319 PyThreadState* __tstate = wxPyBeginAllowThreads();
31320 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
31321 wxPyEndAllowThreads(__tstate);
31322 if (PyErr_Occurred()) SWIG_fail;
31323 }
31324 resultobj = SWIG_From_long(static_cast< long >(result));
31325 {
31326 if (temp3)
31327 delete arg3;
31328 }
31329 return resultobj;
31330 fail:
31331 {
31332 if (temp3)
31333 delete arg3;
31334 }
31335 return NULL;
31336 }
31337
31338
31339 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31340 PyObject *resultobj = 0;
31341 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31342 long arg2 ;
31343 void *argp1 = 0 ;
31344 int res1 = 0 ;
31345 long val2 ;
31346 int ecode2 = 0 ;
31347 PyObject * obj0 = 0 ;
31348 PyObject * obj1 = 0 ;
31349 char * kwnames[] = {
31350 (char *) "self",(char *) "count", NULL
31351 };
31352
31353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail;
31354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31355 if (!SWIG_IsOK(res1)) {
31356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31357 }
31358 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31359 ecode2 = SWIG_AsVal_long(obj1, &val2);
31360 if (!SWIG_IsOK(ecode2)) {
31361 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemCount" "', expected argument " "2"" of type '" "long""'");
31362 }
31363 arg2 = static_cast< long >(val2);
31364 {
31365 PyThreadState* __tstate = wxPyBeginAllowThreads();
31366 (arg1)->SetItemCount(arg2);
31367 wxPyEndAllowThreads(__tstate);
31368 if (PyErr_Occurred()) SWIG_fail;
31369 }
31370 resultobj = SWIG_Py_Void();
31371 return resultobj;
31372 fail:
31373 return NULL;
31374 }
31375
31376
31377 SWIGINTERN PyObject *_wrap_ListCtrl_ScrollList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31378 PyObject *resultobj = 0;
31379 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31380 int arg2 ;
31381 int arg3 ;
31382 bool result;
31383 void *argp1 = 0 ;
31384 int res1 = 0 ;
31385 int val2 ;
31386 int ecode2 = 0 ;
31387 int val3 ;
31388 int ecode3 = 0 ;
31389 PyObject * obj0 = 0 ;
31390 PyObject * obj1 = 0 ;
31391 PyObject * obj2 = 0 ;
31392 char * kwnames[] = {
31393 (char *) "self",(char *) "dx",(char *) "dy", NULL
31394 };
31395
31396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31397 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31398 if (!SWIG_IsOK(res1)) {
31399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ScrollList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31400 }
31401 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31402 ecode2 = SWIG_AsVal_int(obj1, &val2);
31403 if (!SWIG_IsOK(ecode2)) {
31404 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_ScrollList" "', expected argument " "2"" of type '" "int""'");
31405 }
31406 arg2 = static_cast< int >(val2);
31407 ecode3 = SWIG_AsVal_int(obj2, &val3);
31408 if (!SWIG_IsOK(ecode3)) {
31409 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_ScrollList" "', expected argument " "3"" of type '" "int""'");
31410 }
31411 arg3 = static_cast< int >(val3);
31412 {
31413 PyThreadState* __tstate = wxPyBeginAllowThreads();
31414 result = (bool)(arg1)->ScrollList(arg2,arg3);
31415 wxPyEndAllowThreads(__tstate);
31416 if (PyErr_Occurred()) SWIG_fail;
31417 }
31418 {
31419 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31420 }
31421 return resultobj;
31422 fail:
31423 return NULL;
31424 }
31425
31426
31427 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31428 PyObject *resultobj = 0;
31429 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31430 long arg2 ;
31431 wxColour *arg3 = 0 ;
31432 void *argp1 = 0 ;
31433 int res1 = 0 ;
31434 long val2 ;
31435 int ecode2 = 0 ;
31436 wxColour temp3 ;
31437 PyObject * obj0 = 0 ;
31438 PyObject * obj1 = 0 ;
31439 PyObject * obj2 = 0 ;
31440 char * kwnames[] = {
31441 (char *) "self",(char *) "item",(char *) "col", NULL
31442 };
31443
31444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31446 if (!SWIG_IsOK(res1)) {
31447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31448 }
31449 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31450 ecode2 = SWIG_AsVal_long(obj1, &val2);
31451 if (!SWIG_IsOK(ecode2)) {
31452 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31453 }
31454 arg2 = static_cast< long >(val2);
31455 {
31456 arg3 = &temp3;
31457 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31458 }
31459 {
31460 PyThreadState* __tstate = wxPyBeginAllowThreads();
31461 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
31462 wxPyEndAllowThreads(__tstate);
31463 if (PyErr_Occurred()) SWIG_fail;
31464 }
31465 resultobj = SWIG_Py_Void();
31466 return resultobj;
31467 fail:
31468 return NULL;
31469 }
31470
31471
31472 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31473 PyObject *resultobj = 0;
31474 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31475 long arg2 ;
31476 wxColour result;
31477 void *argp1 = 0 ;
31478 int res1 = 0 ;
31479 long val2 ;
31480 int ecode2 = 0 ;
31481 PyObject * obj0 = 0 ;
31482 PyObject * obj1 = 0 ;
31483 char * kwnames[] = {
31484 (char *) "self",(char *) "item", NULL
31485 };
31486
31487 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
31488 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31489 if (!SWIG_IsOK(res1)) {
31490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31491 }
31492 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31493 ecode2 = SWIG_AsVal_long(obj1, &val2);
31494 if (!SWIG_IsOK(ecode2)) {
31495 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31496 }
31497 arg2 = static_cast< long >(val2);
31498 {
31499 PyThreadState* __tstate = wxPyBeginAllowThreads();
31500 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
31501 wxPyEndAllowThreads(__tstate);
31502 if (PyErr_Occurred()) SWIG_fail;
31503 }
31504 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31505 return resultobj;
31506 fail:
31507 return NULL;
31508 }
31509
31510
31511 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31512 PyObject *resultobj = 0;
31513 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31514 long arg2 ;
31515 wxColour *arg3 = 0 ;
31516 void *argp1 = 0 ;
31517 int res1 = 0 ;
31518 long val2 ;
31519 int ecode2 = 0 ;
31520 wxColour temp3 ;
31521 PyObject * obj0 = 0 ;
31522 PyObject * obj1 = 0 ;
31523 PyObject * obj2 = 0 ;
31524 char * kwnames[] = {
31525 (char *) "self",(char *) "item",(char *) "col", NULL
31526 };
31527
31528 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31529 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31530 if (!SWIG_IsOK(res1)) {
31531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31532 }
31533 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31534 ecode2 = SWIG_AsVal_long(obj1, &val2);
31535 if (!SWIG_IsOK(ecode2)) {
31536 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31537 }
31538 arg2 = static_cast< long >(val2);
31539 {
31540 arg3 = &temp3;
31541 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31542 }
31543 {
31544 PyThreadState* __tstate = wxPyBeginAllowThreads();
31545 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
31546 wxPyEndAllowThreads(__tstate);
31547 if (PyErr_Occurred()) SWIG_fail;
31548 }
31549 resultobj = SWIG_Py_Void();
31550 return resultobj;
31551 fail:
31552 return NULL;
31553 }
31554
31555
31556 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31557 PyObject *resultobj = 0;
31558 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31559 long arg2 ;
31560 wxColour result;
31561 void *argp1 = 0 ;
31562 int res1 = 0 ;
31563 long val2 ;
31564 int ecode2 = 0 ;
31565 PyObject * obj0 = 0 ;
31566 PyObject * obj1 = 0 ;
31567 char * kwnames[] = {
31568 (char *) "self",(char *) "item", NULL
31569 };
31570
31571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
31572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31573 if (!SWIG_IsOK(res1)) {
31574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31575 }
31576 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31577 ecode2 = SWIG_AsVal_long(obj1, &val2);
31578 if (!SWIG_IsOK(ecode2)) {
31579 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31580 }
31581 arg2 = static_cast< long >(val2);
31582 {
31583 PyThreadState* __tstate = wxPyBeginAllowThreads();
31584 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
31585 wxPyEndAllowThreads(__tstate);
31586 if (PyErr_Occurred()) SWIG_fail;
31587 }
31588 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31589 return resultobj;
31590 fail:
31591 return NULL;
31592 }
31593
31594
31595 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31596 PyObject *resultobj = 0;
31597 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31598 long arg2 ;
31599 wxFont *arg3 = 0 ;
31600 void *argp1 = 0 ;
31601 int res1 = 0 ;
31602 long val2 ;
31603 int ecode2 = 0 ;
31604 void *argp3 = 0 ;
31605 int res3 = 0 ;
31606 PyObject * obj0 = 0 ;
31607 PyObject * obj1 = 0 ;
31608 PyObject * obj2 = 0 ;
31609 char * kwnames[] = {
31610 (char *) "self",(char *) "item",(char *) "f", NULL
31611 };
31612
31613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31615 if (!SWIG_IsOK(res1)) {
31616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31617 }
31618 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31619 ecode2 = SWIG_AsVal_long(obj1, &val2);
31620 if (!SWIG_IsOK(ecode2)) {
31621 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemFont" "', expected argument " "2"" of type '" "long""'");
31622 }
31623 arg2 = static_cast< long >(val2);
31624 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
31625 if (!SWIG_IsOK(res3)) {
31626 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31627 }
31628 if (!argp3) {
31629 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31630 }
31631 arg3 = reinterpret_cast< wxFont * >(argp3);
31632 {
31633 PyThreadState* __tstate = wxPyBeginAllowThreads();
31634 (arg1)->SetItemFont(arg2,(wxFont const &)*arg3);
31635 wxPyEndAllowThreads(__tstate);
31636 if (PyErr_Occurred()) SWIG_fail;
31637 }
31638 resultobj = SWIG_Py_Void();
31639 return resultobj;
31640 fail:
31641 return NULL;
31642 }
31643
31644
31645 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31646 PyObject *resultobj = 0;
31647 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31648 long arg2 ;
31649 wxFont result;
31650 void *argp1 = 0 ;
31651 int res1 = 0 ;
31652 long val2 ;
31653 int ecode2 = 0 ;
31654 PyObject * obj0 = 0 ;
31655 PyObject * obj1 = 0 ;
31656 char * kwnames[] = {
31657 (char *) "self",(char *) "item", NULL
31658 };
31659
31660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
31661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31662 if (!SWIG_IsOK(res1)) {
31663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31664 }
31665 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31666 ecode2 = SWIG_AsVal_long(obj1, &val2);
31667 if (!SWIG_IsOK(ecode2)) {
31668 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemFont" "', expected argument " "2"" of type '" "long""'");
31669 }
31670 arg2 = static_cast< long >(val2);
31671 {
31672 PyThreadState* __tstate = wxPyBeginAllowThreads();
31673 result = ((wxPyListCtrl const *)arg1)->GetItemFont(arg2);
31674 wxPyEndAllowThreads(__tstate);
31675 if (PyErr_Occurred()) SWIG_fail;
31676 }
31677 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
31678 return resultobj;
31679 fail:
31680 return NULL;
31681 }
31682
31683
31684 SWIGINTERN PyObject *_wrap_ListCtrl_SortItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31685 PyObject *resultobj = 0;
31686 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31687 PyObject *arg2 = (PyObject *) 0 ;
31688 bool result;
31689 void *argp1 = 0 ;
31690 int res1 = 0 ;
31691 PyObject * obj0 = 0 ;
31692 PyObject * obj1 = 0 ;
31693 char * kwnames[] = {
31694 (char *) "self",(char *) "func", NULL
31695 };
31696
31697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) SWIG_fail;
31698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31699 if (!SWIG_IsOK(res1)) {
31700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SortItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31701 }
31702 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31703 arg2 = obj1;
31704 {
31705 PyThreadState* __tstate = wxPyBeginAllowThreads();
31706 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
31707 wxPyEndAllowThreads(__tstate);
31708 if (PyErr_Occurred()) SWIG_fail;
31709 }
31710 {
31711 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31712 }
31713 return resultobj;
31714 fail:
31715 return NULL;
31716 }
31717
31718
31719 SWIGINTERN PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31720 PyObject *resultobj = 0;
31721 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31722 wxWindow *result = 0 ;
31723 void *argp1 = 0 ;
31724 int res1 = 0 ;
31725 PyObject *swig_obj[1] ;
31726
31727 if (!args) SWIG_fail;
31728 swig_obj[0] = args;
31729 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31730 if (!SWIG_IsOK(res1)) {
31731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetMainWindow" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31732 }
31733 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31734 {
31735 PyThreadState* __tstate = wxPyBeginAllowThreads();
31736 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
31737 wxPyEndAllowThreads(__tstate);
31738 if (PyErr_Occurred()) SWIG_fail;
31739 }
31740 {
31741 resultobj = wxPyMake_wxObject(result, 0);
31742 }
31743 return resultobj;
31744 fail:
31745 return NULL;
31746 }
31747
31748
31749 SWIGINTERN PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31750 PyObject *resultobj = 0;
31751 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
31752 SwigValueWrapper<wxVisualAttributes > result;
31753 int val1 ;
31754 int ecode1 = 0 ;
31755 PyObject * obj0 = 0 ;
31756 char * kwnames[] = {
31757 (char *) "variant", NULL
31758 };
31759
31760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
31761 if (obj0) {
31762 ecode1 = SWIG_AsVal_int(obj0, &val1);
31763 if (!SWIG_IsOK(ecode1)) {
31764 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
31765 }
31766 arg1 = static_cast< wxWindowVariant >(val1);
31767 }
31768 {
31769 if (!wxPyCheckForApp()) SWIG_fail;
31770 PyThreadState* __tstate = wxPyBeginAllowThreads();
31771 result = wxPyListCtrl::GetClassDefaultAttributes(arg1);
31772 wxPyEndAllowThreads(__tstate);
31773 if (PyErr_Occurred()) SWIG_fail;
31774 }
31775 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
31776 return resultobj;
31777 fail:
31778 return NULL;
31779 }
31780
31781
31782 SWIGINTERN PyObject *ListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31783 PyObject *obj;
31784 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31785 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyListCtrl, SWIG_NewClientData(obj));
31786 return SWIG_Py_Void();
31787 }
31788
31789 SWIGINTERN PyObject *ListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31790 return SWIG_Python_InitShadowInstance(args);
31791 }
31792
31793 SWIGINTERN PyObject *_wrap_new_ListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31794 PyObject *resultobj = 0;
31795 wxWindow *arg1 = (wxWindow *) 0 ;
31796 int arg2 = (int) -1 ;
31797 wxPoint const &arg3_defvalue = wxDefaultPosition ;
31798 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
31799 wxSize const &arg4_defvalue = wxDefaultSize ;
31800 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
31801 long arg5 = (long) wxLC_REPORT ;
31802 wxValidator const &arg6_defvalue = wxDefaultValidator ;
31803 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
31804 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
31805 wxString *arg7 = (wxString *) &arg7_defvalue ;
31806 wxListView *result = 0 ;
31807 void *argp1 = 0 ;
31808 int res1 = 0 ;
31809 int val2 ;
31810 int ecode2 = 0 ;
31811 wxPoint temp3 ;
31812 wxSize temp4 ;
31813 long val5 ;
31814 int ecode5 = 0 ;
31815 void *argp6 = 0 ;
31816 int res6 = 0 ;
31817 bool temp7 = false ;
31818 PyObject * obj0 = 0 ;
31819 PyObject * obj1 = 0 ;
31820 PyObject * obj2 = 0 ;
31821 PyObject * obj3 = 0 ;
31822 PyObject * obj4 = 0 ;
31823 PyObject * obj5 = 0 ;
31824 PyObject * obj6 = 0 ;
31825 char * kwnames[] = {
31826 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
31827 };
31828
31829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
31831 if (!SWIG_IsOK(res1)) {
31832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListView" "', expected argument " "1"" of type '" "wxWindow *""'");
31833 }
31834 arg1 = reinterpret_cast< wxWindow * >(argp1);
31835 if (obj1) {
31836 ecode2 = SWIG_AsVal_int(obj1, &val2);
31837 if (!SWIG_IsOK(ecode2)) {
31838 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListView" "', expected argument " "2"" of type '" "int""'");
31839 }
31840 arg2 = static_cast< int >(val2);
31841 }
31842 if (obj2) {
31843 {
31844 arg3 = &temp3;
31845 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31846 }
31847 }
31848 if (obj3) {
31849 {
31850 arg4 = &temp4;
31851 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
31852 }
31853 }
31854 if (obj4) {
31855 ecode5 = SWIG_AsVal_long(obj4, &val5);
31856 if (!SWIG_IsOK(ecode5)) {
31857 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListView" "', expected argument " "5"" of type '" "long""'");
31858 }
31859 arg5 = static_cast< long >(val5);
31860 }
31861 if (obj5) {
31862 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
31863 if (!SWIG_IsOK(res6)) {
31864 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
31865 }
31866 if (!argp6) {
31867 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
31868 }
31869 arg6 = reinterpret_cast< wxValidator * >(argp6);
31870 }
31871 if (obj6) {
31872 {
31873 arg7 = wxString_in_helper(obj6);
31874 if (arg7 == NULL) SWIG_fail;
31875 temp7 = true;
31876 }
31877 }
31878 {
31879 if (!wxPyCheckForApp()) SWIG_fail;
31880 PyThreadState* __tstate = wxPyBeginAllowThreads();
31881 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
31882 wxPyEndAllowThreads(__tstate);
31883 if (PyErr_Occurred()) SWIG_fail;
31884 }
31885 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_NEW | 0 );
31886 {
31887 if (temp7)
31888 delete arg7;
31889 }
31890 return resultobj;
31891 fail:
31892 {
31893 if (temp7)
31894 delete arg7;
31895 }
31896 return NULL;
31897 }
31898
31899
31900 SWIGINTERN PyObject *_wrap_new_PreListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31901 PyObject *resultobj = 0;
31902 wxListView *result = 0 ;
31903
31904 if (!SWIG_Python_UnpackTuple(args,"new_PreListView",0,0,0)) SWIG_fail;
31905 {
31906 if (!wxPyCheckForApp()) SWIG_fail;
31907 PyThreadState* __tstate = wxPyBeginAllowThreads();
31908 result = (wxListView *)new wxListView();
31909 wxPyEndAllowThreads(__tstate);
31910 if (PyErr_Occurred()) SWIG_fail;
31911 }
31912 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_OWN | 0 );
31913 return resultobj;
31914 fail:
31915 return NULL;
31916 }
31917
31918
31919 SWIGINTERN PyObject *_wrap_ListView_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31920 PyObject *resultobj = 0;
31921 wxListView *arg1 = (wxListView *) 0 ;
31922 wxWindow *arg2 = (wxWindow *) 0 ;
31923 int arg3 = (int) -1 ;
31924 wxPoint const &arg4_defvalue = wxDefaultPosition ;
31925 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
31926 wxSize const &arg5_defvalue = wxDefaultSize ;
31927 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
31928 long arg6 = (long) wxLC_REPORT ;
31929 wxValidator const &arg7_defvalue = wxDefaultValidator ;
31930 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
31931 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
31932 wxString *arg8 = (wxString *) &arg8_defvalue ;
31933 bool result;
31934 void *argp1 = 0 ;
31935 int res1 = 0 ;
31936 void *argp2 = 0 ;
31937 int res2 = 0 ;
31938 int val3 ;
31939 int ecode3 = 0 ;
31940 wxPoint temp4 ;
31941 wxSize temp5 ;
31942 long val6 ;
31943 int ecode6 = 0 ;
31944 void *argp7 = 0 ;
31945 int res7 = 0 ;
31946 bool temp8 = false ;
31947 PyObject * obj0 = 0 ;
31948 PyObject * obj1 = 0 ;
31949 PyObject * obj2 = 0 ;
31950 PyObject * obj3 = 0 ;
31951 PyObject * obj4 = 0 ;
31952 PyObject * obj5 = 0 ;
31953 PyObject * obj6 = 0 ;
31954 PyObject * obj7 = 0 ;
31955 char * kwnames[] = {
31956 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
31957 };
31958
31959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
31960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31961 if (!SWIG_IsOK(res1)) {
31962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Create" "', expected argument " "1"" of type '" "wxListView *""'");
31963 }
31964 arg1 = reinterpret_cast< wxListView * >(argp1);
31965 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31966 if (!SWIG_IsOK(res2)) {
31967 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListView_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
31968 }
31969 arg2 = reinterpret_cast< wxWindow * >(argp2);
31970 if (obj2) {
31971 ecode3 = SWIG_AsVal_int(obj2, &val3);
31972 if (!SWIG_IsOK(ecode3)) {
31973 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Create" "', expected argument " "3"" of type '" "int""'");
31974 }
31975 arg3 = static_cast< int >(val3);
31976 }
31977 if (obj3) {
31978 {
31979 arg4 = &temp4;
31980 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
31981 }
31982 }
31983 if (obj4) {
31984 {
31985 arg5 = &temp5;
31986 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
31987 }
31988 }
31989 if (obj5) {
31990 ecode6 = SWIG_AsVal_long(obj5, &val6);
31991 if (!SWIG_IsOK(ecode6)) {
31992 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListView_Create" "', expected argument " "6"" of type '" "long""'");
31993 }
31994 arg6 = static_cast< long >(val6);
31995 }
31996 if (obj6) {
31997 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
31998 if (!SWIG_IsOK(res7)) {
31999 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
32000 }
32001 if (!argp7) {
32002 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
32003 }
32004 arg7 = reinterpret_cast< wxValidator * >(argp7);
32005 }
32006 if (obj7) {
32007 {
32008 arg8 = wxString_in_helper(obj7);
32009 if (arg8 == NULL) SWIG_fail;
32010 temp8 = true;
32011 }
32012 }
32013 {
32014 PyThreadState* __tstate = wxPyBeginAllowThreads();
32015 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
32016 wxPyEndAllowThreads(__tstate);
32017 if (PyErr_Occurred()) SWIG_fail;
32018 }
32019 {
32020 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32021 }
32022 {
32023 if (temp8)
32024 delete arg8;
32025 }
32026 return resultobj;
32027 fail:
32028 {
32029 if (temp8)
32030 delete arg8;
32031 }
32032 return NULL;
32033 }
32034
32035
32036 SWIGINTERN PyObject *_wrap_ListView_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32037 PyObject *resultobj = 0;
32038 wxListView *arg1 = (wxListView *) 0 ;
32039 long arg2 ;
32040 bool arg3 = (bool) true ;
32041 void *argp1 = 0 ;
32042 int res1 = 0 ;
32043 long val2 ;
32044 int ecode2 = 0 ;
32045 bool val3 ;
32046 int ecode3 = 0 ;
32047 PyObject * obj0 = 0 ;
32048 PyObject * obj1 = 0 ;
32049 PyObject * obj2 = 0 ;
32050 char * kwnames[] = {
32051 (char *) "self",(char *) "n",(char *) "on", NULL
32052 };
32053
32054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32056 if (!SWIG_IsOK(res1)) {
32057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Select" "', expected argument " "1"" of type '" "wxListView *""'");
32058 }
32059 arg1 = reinterpret_cast< wxListView * >(argp1);
32060 ecode2 = SWIG_AsVal_long(obj1, &val2);
32061 if (!SWIG_IsOK(ecode2)) {
32062 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Select" "', expected argument " "2"" of type '" "long""'");
32063 }
32064 arg2 = static_cast< long >(val2);
32065 if (obj2) {
32066 ecode3 = SWIG_AsVal_bool(obj2, &val3);
32067 if (!SWIG_IsOK(ecode3)) {
32068 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Select" "', expected argument " "3"" of type '" "bool""'");
32069 }
32070 arg3 = static_cast< bool >(val3);
32071 }
32072 {
32073 PyThreadState* __tstate = wxPyBeginAllowThreads();
32074 (arg1)->Select(arg2,arg3);
32075 wxPyEndAllowThreads(__tstate);
32076 if (PyErr_Occurred()) SWIG_fail;
32077 }
32078 resultobj = SWIG_Py_Void();
32079 return resultobj;
32080 fail:
32081 return NULL;
32082 }
32083
32084
32085 SWIGINTERN PyObject *_wrap_ListView_Focus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32086 PyObject *resultobj = 0;
32087 wxListView *arg1 = (wxListView *) 0 ;
32088 long arg2 ;
32089 void *argp1 = 0 ;
32090 int res1 = 0 ;
32091 long val2 ;
32092 int ecode2 = 0 ;
32093 PyObject * obj0 = 0 ;
32094 PyObject * obj1 = 0 ;
32095 char * kwnames[] = {
32096 (char *) "self",(char *) "index", NULL
32097 };
32098
32099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) SWIG_fail;
32100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32101 if (!SWIG_IsOK(res1)) {
32102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Focus" "', expected argument " "1"" of type '" "wxListView *""'");
32103 }
32104 arg1 = reinterpret_cast< wxListView * >(argp1);
32105 ecode2 = SWIG_AsVal_long(obj1, &val2);
32106 if (!SWIG_IsOK(ecode2)) {
32107 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Focus" "', expected argument " "2"" of type '" "long""'");
32108 }
32109 arg2 = static_cast< long >(val2);
32110 {
32111 PyThreadState* __tstate = wxPyBeginAllowThreads();
32112 (arg1)->Focus(arg2);
32113 wxPyEndAllowThreads(__tstate);
32114 if (PyErr_Occurred()) SWIG_fail;
32115 }
32116 resultobj = SWIG_Py_Void();
32117 return resultobj;
32118 fail:
32119 return NULL;
32120 }
32121
32122
32123 SWIGINTERN PyObject *_wrap_ListView_GetFocusedItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32124 PyObject *resultobj = 0;
32125 wxListView *arg1 = (wxListView *) 0 ;
32126 long result;
32127 void *argp1 = 0 ;
32128 int res1 = 0 ;
32129 PyObject *swig_obj[1] ;
32130
32131 if (!args) SWIG_fail;
32132 swig_obj[0] = args;
32133 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32134 if (!SWIG_IsOK(res1)) {
32135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFocusedItem" "', expected argument " "1"" of type '" "wxListView const *""'");
32136 }
32137 arg1 = reinterpret_cast< wxListView * >(argp1);
32138 {
32139 PyThreadState* __tstate = wxPyBeginAllowThreads();
32140 result = (long)((wxListView const *)arg1)->GetFocusedItem();
32141 wxPyEndAllowThreads(__tstate);
32142 if (PyErr_Occurred()) SWIG_fail;
32143 }
32144 resultobj = SWIG_From_long(static_cast< long >(result));
32145 return resultobj;
32146 fail:
32147 return NULL;
32148 }
32149
32150
32151 SWIGINTERN PyObject *_wrap_ListView_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32152 PyObject *resultobj = 0;
32153 wxListView *arg1 = (wxListView *) 0 ;
32154 long arg2 ;
32155 long result;
32156 void *argp1 = 0 ;
32157 int res1 = 0 ;
32158 long val2 ;
32159 int ecode2 = 0 ;
32160 PyObject * obj0 = 0 ;
32161 PyObject * obj1 = 0 ;
32162 char * kwnames[] = {
32163 (char *) "self",(char *) "item", NULL
32164 };
32165
32166 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32167 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32168 if (!SWIG_IsOK(res1)) {
32169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetNextSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32170 }
32171 arg1 = reinterpret_cast< wxListView * >(argp1);
32172 ecode2 = SWIG_AsVal_long(obj1, &val2);
32173 if (!SWIG_IsOK(ecode2)) {
32174 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_GetNextSelected" "', expected argument " "2"" of type '" "long""'");
32175 }
32176 arg2 = static_cast< long >(val2);
32177 {
32178 PyThreadState* __tstate = wxPyBeginAllowThreads();
32179 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
32180 wxPyEndAllowThreads(__tstate);
32181 if (PyErr_Occurred()) SWIG_fail;
32182 }
32183 resultobj = SWIG_From_long(static_cast< long >(result));
32184 return resultobj;
32185 fail:
32186 return NULL;
32187 }
32188
32189
32190 SWIGINTERN PyObject *_wrap_ListView_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32191 PyObject *resultobj = 0;
32192 wxListView *arg1 = (wxListView *) 0 ;
32193 long result;
32194 void *argp1 = 0 ;
32195 int res1 = 0 ;
32196 PyObject *swig_obj[1] ;
32197
32198 if (!args) SWIG_fail;
32199 swig_obj[0] = args;
32200 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32201 if (!SWIG_IsOK(res1)) {
32202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFirstSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32203 }
32204 arg1 = reinterpret_cast< wxListView * >(argp1);
32205 {
32206 PyThreadState* __tstate = wxPyBeginAllowThreads();
32207 result = (long)((wxListView const *)arg1)->GetFirstSelected();
32208 wxPyEndAllowThreads(__tstate);
32209 if (PyErr_Occurred()) SWIG_fail;
32210 }
32211 resultobj = SWIG_From_long(static_cast< long >(result));
32212 return resultobj;
32213 fail:
32214 return NULL;
32215 }
32216
32217
32218 SWIGINTERN PyObject *_wrap_ListView_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32219 PyObject *resultobj = 0;
32220 wxListView *arg1 = (wxListView *) 0 ;
32221 long arg2 ;
32222 bool result;
32223 void *argp1 = 0 ;
32224 int res1 = 0 ;
32225 long val2 ;
32226 int ecode2 = 0 ;
32227 PyObject * obj0 = 0 ;
32228 PyObject * obj1 = 0 ;
32229 char * kwnames[] = {
32230 (char *) "self",(char *) "index", NULL
32231 };
32232
32233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32235 if (!SWIG_IsOK(res1)) {
32236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_IsSelected" "', expected argument " "1"" of type '" "wxListView *""'");
32237 }
32238 arg1 = reinterpret_cast< wxListView * >(argp1);
32239 ecode2 = SWIG_AsVal_long(obj1, &val2);
32240 if (!SWIG_IsOK(ecode2)) {
32241 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_IsSelected" "', expected argument " "2"" of type '" "long""'");
32242 }
32243 arg2 = static_cast< long >(val2);
32244 {
32245 PyThreadState* __tstate = wxPyBeginAllowThreads();
32246 result = (bool)(arg1)->IsSelected(arg2);
32247 wxPyEndAllowThreads(__tstate);
32248 if (PyErr_Occurred()) SWIG_fail;
32249 }
32250 {
32251 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32252 }
32253 return resultobj;
32254 fail:
32255 return NULL;
32256 }
32257
32258
32259 SWIGINTERN PyObject *_wrap_ListView_SetColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32260 PyObject *resultobj = 0;
32261 wxListView *arg1 = (wxListView *) 0 ;
32262 int arg2 ;
32263 int arg3 ;
32264 void *argp1 = 0 ;
32265 int res1 = 0 ;
32266 int val2 ;
32267 int ecode2 = 0 ;
32268 int val3 ;
32269 int ecode3 = 0 ;
32270 PyObject * obj0 = 0 ;
32271 PyObject * obj1 = 0 ;
32272 PyObject * obj2 = 0 ;
32273 char * kwnames[] = {
32274 (char *) "self",(char *) "col",(char *) "image", NULL
32275 };
32276
32277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32279 if (!SWIG_IsOK(res1)) {
32280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_SetColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32281 }
32282 arg1 = reinterpret_cast< wxListView * >(argp1);
32283 ecode2 = SWIG_AsVal_int(obj1, &val2);
32284 if (!SWIG_IsOK(ecode2)) {
32285 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_SetColumnImage" "', expected argument " "2"" of type '" "int""'");
32286 }
32287 arg2 = static_cast< int >(val2);
32288 ecode3 = SWIG_AsVal_int(obj2, &val3);
32289 if (!SWIG_IsOK(ecode3)) {
32290 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_SetColumnImage" "', expected argument " "3"" of type '" "int""'");
32291 }
32292 arg3 = static_cast< int >(val3);
32293 {
32294 PyThreadState* __tstate = wxPyBeginAllowThreads();
32295 (arg1)->SetColumnImage(arg2,arg3);
32296 wxPyEndAllowThreads(__tstate);
32297 if (PyErr_Occurred()) SWIG_fail;
32298 }
32299 resultobj = SWIG_Py_Void();
32300 return resultobj;
32301 fail:
32302 return NULL;
32303 }
32304
32305
32306 SWIGINTERN PyObject *_wrap_ListView_ClearColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32307 PyObject *resultobj = 0;
32308 wxListView *arg1 = (wxListView *) 0 ;
32309 int arg2 ;
32310 void *argp1 = 0 ;
32311 int res1 = 0 ;
32312 int val2 ;
32313 int ecode2 = 0 ;
32314 PyObject * obj0 = 0 ;
32315 PyObject * obj1 = 0 ;
32316 char * kwnames[] = {
32317 (char *) "self",(char *) "col", NULL
32318 };
32319
32320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) SWIG_fail;
32321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32322 if (!SWIG_IsOK(res1)) {
32323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_ClearColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32324 }
32325 arg1 = reinterpret_cast< wxListView * >(argp1);
32326 ecode2 = SWIG_AsVal_int(obj1, &val2);
32327 if (!SWIG_IsOK(ecode2)) {
32328 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_ClearColumnImage" "', expected argument " "2"" of type '" "int""'");
32329 }
32330 arg2 = static_cast< int >(val2);
32331 {
32332 PyThreadState* __tstate = wxPyBeginAllowThreads();
32333 (arg1)->ClearColumnImage(arg2);
32334 wxPyEndAllowThreads(__tstate);
32335 if (PyErr_Occurred()) SWIG_fail;
32336 }
32337 resultobj = SWIG_Py_Void();
32338 return resultobj;
32339 fail:
32340 return NULL;
32341 }
32342
32343
32344 SWIGINTERN PyObject *ListView_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32345 PyObject *obj;
32346 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32347 SWIG_TypeNewClientData(SWIGTYPE_p_wxListView, SWIG_NewClientData(obj));
32348 return SWIG_Py_Void();
32349 }
32350
32351 SWIGINTERN PyObject *ListView_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32352 return SWIG_Python_InitShadowInstance(args);
32353 }
32354
32355 SWIGINTERN int TreeCtrlNameStr_set(PyObject *) {
32356 SWIG_Error(SWIG_AttributeError,"Variable TreeCtrlNameStr is read-only.");
32357 return 1;
32358 }
32359
32360
32361 SWIGINTERN PyObject *TreeCtrlNameStr_get(void) {
32362 PyObject *pyobj = 0;
32363
32364 {
32365 #if wxUSE_UNICODE
32366 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32367 #else
32368 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32369 #endif
32370 }
32371 return pyobj;
32372 }
32373
32374
32375 SWIGINTERN PyObject *_wrap_new_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32376 PyObject *resultobj = 0;
32377 wxTreeItemId *result = 0 ;
32378
32379 if (!SWIG_Python_UnpackTuple(args,"new_TreeItemId",0,0,0)) SWIG_fail;
32380 {
32381 PyThreadState* __tstate = wxPyBeginAllowThreads();
32382 result = (wxTreeItemId *)new wxTreeItemId();
32383 wxPyEndAllowThreads(__tstate);
32384 if (PyErr_Occurred()) SWIG_fail;
32385 }
32386 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_NEW | 0 );
32387 return resultobj;
32388 fail:
32389 return NULL;
32390 }
32391
32392
32393 SWIGINTERN PyObject *_wrap_delete_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32394 PyObject *resultobj = 0;
32395 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
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, SWIG_POINTER_DISOWN | 0 );
32403 if (!SWIG_IsOK(res1)) {
32404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemId" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32405 }
32406 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32407 {
32408 PyThreadState* __tstate = wxPyBeginAllowThreads();
32409 delete arg1;
32410
32411 wxPyEndAllowThreads(__tstate);
32412 if (PyErr_Occurred()) SWIG_fail;
32413 }
32414 resultobj = SWIG_Py_Void();
32415 return resultobj;
32416 fail:
32417 return NULL;
32418 }
32419
32420
32421 SWIGINTERN PyObject *_wrap_TreeItemId_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32422 PyObject *resultobj = 0;
32423 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32424 bool result;
32425 void *argp1 = 0 ;
32426 int res1 = 0 ;
32427 PyObject *swig_obj[1] ;
32428
32429 if (!args) SWIG_fail;
32430 swig_obj[0] = args;
32431 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32432 if (!SWIG_IsOK(res1)) {
32433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_IsOk" "', expected argument " "1"" of type '" "wxTreeItemId const *""'");
32434 }
32435 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32436 {
32437 PyThreadState* __tstate = wxPyBeginAllowThreads();
32438 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
32439 wxPyEndAllowThreads(__tstate);
32440 if (PyErr_Occurred()) SWIG_fail;
32441 }
32442 {
32443 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32444 }
32445 return resultobj;
32446 fail:
32447 return NULL;
32448 }
32449
32450
32451 SWIGINTERN PyObject *_wrap_TreeItemId___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32452 PyObject *resultobj = 0;
32453 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32454 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32455 bool result;
32456 void *argp1 = 0 ;
32457 int res1 = 0 ;
32458 void *argp2 = 0 ;
32459 int res2 = 0 ;
32460 PyObject * obj0 = 0 ;
32461 PyObject * obj1 = 0 ;
32462 char * kwnames[] = {
32463 (char *) "self",(char *) "other", NULL
32464 };
32465
32466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
32467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32468 if (!SWIG_IsOK(res1)) {
32469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___eq__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32470 }
32471 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32472 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32473 if (!SWIG_IsOK(res2)) {
32474 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___eq__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32475 }
32476 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32477 {
32478 PyThreadState* __tstate = wxPyBeginAllowThreads();
32479 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
32480 wxPyEndAllowThreads(__tstate);
32481 if (PyErr_Occurred()) SWIG_fail;
32482 }
32483 {
32484 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32485 }
32486 return resultobj;
32487 fail:
32488 return NULL;
32489 }
32490
32491
32492 SWIGINTERN PyObject *_wrap_TreeItemId___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32493 PyObject *resultobj = 0;
32494 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32495 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32496 bool result;
32497 void *argp1 = 0 ;
32498 int res1 = 0 ;
32499 void *argp2 = 0 ;
32500 int res2 = 0 ;
32501 PyObject * obj0 = 0 ;
32502 PyObject * obj1 = 0 ;
32503 char * kwnames[] = {
32504 (char *) "self",(char *) "other", NULL
32505 };
32506
32507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
32508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32509 if (!SWIG_IsOK(res1)) {
32510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___ne__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32511 }
32512 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32513 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32514 if (!SWIG_IsOK(res2)) {
32515 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___ne__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32516 }
32517 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32518 {
32519 PyThreadState* __tstate = wxPyBeginAllowThreads();
32520 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
32521 wxPyEndAllowThreads(__tstate);
32522 if (PyErr_Occurred()) SWIG_fail;
32523 }
32524 {
32525 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32526 }
32527 return resultobj;
32528 fail:
32529 return NULL;
32530 }
32531
32532
32533 SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32534 PyObject *resultobj = 0;
32535 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32536 void *arg2 = (void *) 0 ;
32537 void *argp1 = 0 ;
32538 int res1 = 0 ;
32539 int res2 ;
32540 PyObject *swig_obj[2] ;
32541
32542 if (!SWIG_Python_UnpackTuple(args,"TreeItemId_m_pItem_set",2,2,swig_obj)) SWIG_fail;
32543 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32544 if (!SWIG_IsOK(res1)) {
32545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32546 }
32547 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32548 res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
32549 if (!SWIG_IsOK(res2)) {
32550 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "2"" of type '" "void *""'");
32551 }
32552 if (arg1) (arg1)->m_pItem = arg2;
32553
32554 resultobj = SWIG_Py_Void();
32555 return resultobj;
32556 fail:
32557 return NULL;
32558 }
32559
32560
32561 SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32562 PyObject *resultobj = 0;
32563 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32564 void *result = 0 ;
32565 void *argp1 = 0 ;
32566 int res1 = 0 ;
32567 PyObject *swig_obj[1] ;
32568
32569 if (!args) SWIG_fail;
32570 swig_obj[0] = args;
32571 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32572 if (!SWIG_IsOK(res1)) {
32573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_get" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32574 }
32575 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32576 result = (void *) ((arg1)->m_pItem);
32577 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
32578 return resultobj;
32579 fail:
32580 return NULL;
32581 }
32582
32583
32584 SWIGINTERN PyObject *TreeItemId_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32585 PyObject *obj;
32586 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32587 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeItemId, SWIG_NewClientData(obj));
32588 return SWIG_Py_Void();
32589 }
32590
32591 SWIGINTERN PyObject *TreeItemId_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32592 return SWIG_Python_InitShadowInstance(args);
32593 }
32594
32595 SWIGINTERN PyObject *_wrap_new_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32596 PyObject *resultobj = 0;
32597 PyObject *arg1 = (PyObject *) NULL ;
32598 wxPyTreeItemData *result = 0 ;
32599 PyObject * obj0 = 0 ;
32600 char * kwnames[] = {
32601 (char *) "obj", NULL
32602 };
32603
32604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) SWIG_fail;
32605 if (obj0) {
32606 arg1 = obj0;
32607 }
32608 {
32609 PyThreadState* __tstate = wxPyBeginAllowThreads();
32610 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
32611 wxPyEndAllowThreads(__tstate);
32612 if (PyErr_Occurred()) SWIG_fail;
32613 }
32614 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_NEW | 0 );
32615 return resultobj;
32616 fail:
32617 return NULL;
32618 }
32619
32620
32621 SWIGINTERN PyObject *_wrap_delete_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32622 PyObject *resultobj = 0;
32623 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 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, SWIG_POINTER_DISOWN | 0 );
32631 if (!SWIG_IsOK(res1)) {
32632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32633 }
32634 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32635 {
32636 PyThreadState* __tstate = wxPyBeginAllowThreads();
32637 delete arg1;
32638
32639 wxPyEndAllowThreads(__tstate);
32640 if (PyErr_Occurred()) SWIG_fail;
32641 }
32642 resultobj = SWIG_Py_Void();
32643 return resultobj;
32644 fail:
32645 return NULL;
32646 }
32647
32648
32649 SWIGINTERN PyObject *_wrap_TreeItemData_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32650 PyObject *resultobj = 0;
32651 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32652 PyObject *result = 0 ;
32653 void *argp1 = 0 ;
32654 int res1 = 0 ;
32655 PyObject *swig_obj[1] ;
32656
32657 if (!args) SWIG_fail;
32658 swig_obj[0] = args;
32659 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32660 if (!SWIG_IsOK(res1)) {
32661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32662 }
32663 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32664 {
32665 PyThreadState* __tstate = wxPyBeginAllowThreads();
32666 result = (PyObject *)(arg1)->GetData();
32667 wxPyEndAllowThreads(__tstate);
32668 if (PyErr_Occurred()) SWIG_fail;
32669 }
32670 resultobj = result;
32671 return resultobj;
32672 fail:
32673 return NULL;
32674 }
32675
32676
32677 SWIGINTERN PyObject *_wrap_TreeItemData_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32678 PyObject *resultobj = 0;
32679 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32680 PyObject *arg2 = (PyObject *) 0 ;
32681 void *argp1 = 0 ;
32682 int res1 = 0 ;
32683 PyObject * obj0 = 0 ;
32684 PyObject * obj1 = 0 ;
32685 char * kwnames[] = {
32686 (char *) "self",(char *) "obj", NULL
32687 };
32688
32689 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
32690 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32691 if (!SWIG_IsOK(res1)) {
32692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32693 }
32694 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32695 arg2 = obj1;
32696 {
32697 PyThreadState* __tstate = wxPyBeginAllowThreads();
32698 (arg1)->SetData(arg2);
32699 wxPyEndAllowThreads(__tstate);
32700 if (PyErr_Occurred()) SWIG_fail;
32701 }
32702 resultobj = SWIG_Py_Void();
32703 return resultobj;
32704 fail:
32705 return NULL;
32706 }
32707
32708
32709 SWIGINTERN PyObject *_wrap_TreeItemData_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32710 PyObject *resultobj = 0;
32711 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32712 wxTreeItemId *result = 0 ;
32713 void *argp1 = 0 ;
32714 int res1 = 0 ;
32715 PyObject *swig_obj[1] ;
32716
32717 if (!args) SWIG_fail;
32718 swig_obj[0] = args;
32719 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32720 if (!SWIG_IsOK(res1)) {
32721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32722 }
32723 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32724 {
32725 PyThreadState* __tstate = wxPyBeginAllowThreads();
32726 {
32727 wxTreeItemId const &_result_ref = (arg1)->GetId();
32728 result = (wxTreeItemId *) &_result_ref;
32729 }
32730 wxPyEndAllowThreads(__tstate);
32731 if (PyErr_Occurred()) SWIG_fail;
32732 }
32733 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32734 return resultobj;
32735 fail:
32736 return NULL;
32737 }
32738
32739
32740 SWIGINTERN PyObject *_wrap_TreeItemData_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32741 PyObject *resultobj = 0;
32742 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32743 wxTreeItemId *arg2 = 0 ;
32744 void *argp1 = 0 ;
32745 int res1 = 0 ;
32746 void *argp2 = 0 ;
32747 int res2 = 0 ;
32748 PyObject * obj0 = 0 ;
32749 PyObject * obj1 = 0 ;
32750 char * kwnames[] = {
32751 (char *) "self",(char *) "id", NULL
32752 };
32753
32754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
32755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32756 if (!SWIG_IsOK(res1)) {
32757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32758 }
32759 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32760 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32761 if (!SWIG_IsOK(res2)) {
32762 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32763 }
32764 if (!argp2) {
32765 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32766 }
32767 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32768 {
32769 PyThreadState* __tstate = wxPyBeginAllowThreads();
32770 (arg1)->SetId((wxTreeItemId const &)*arg2);
32771 wxPyEndAllowThreads(__tstate);
32772 if (PyErr_Occurred()) SWIG_fail;
32773 }
32774 resultobj = SWIG_Py_Void();
32775 return resultobj;
32776 fail:
32777 return NULL;
32778 }
32779
32780
32781 SWIGINTERN PyObject *_wrap_TreeItemData_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32782 PyObject *resultobj = 0;
32783 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32784 void *argp1 = 0 ;
32785 int res1 = 0 ;
32786 PyObject *swig_obj[1] ;
32787
32788 if (!args) SWIG_fail;
32789 swig_obj[0] = args;
32790 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32791 if (!SWIG_IsOK(res1)) {
32792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_Destroy" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32793 }
32794 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32795 {
32796 PyThreadState* __tstate = wxPyBeginAllowThreads();
32797 wxPyTreeItemData_Destroy(arg1);
32798 wxPyEndAllowThreads(__tstate);
32799 if (PyErr_Occurred()) SWIG_fail;
32800 }
32801 resultobj = SWIG_Py_Void();
32802 return resultobj;
32803 fail:
32804 return NULL;
32805 }
32806
32807
32808 SWIGINTERN PyObject *TreeItemData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32809 PyObject *obj;
32810 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32811 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeItemData, SWIG_NewClientData(obj));
32812 return SWIG_Py_Void();
32813 }
32814
32815 SWIGINTERN PyObject *TreeItemData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32816 return SWIG_Python_InitShadowInstance(args);
32817 }
32818
32819 SWIGINTERN int NullTreeItemId_set(PyObject *_val) {
32820 {
32821 void *argp = 0;
32822 int res = SWIG_ConvertPtr(_val, &argp, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32823 if (!SWIG_IsOK(res)) {
32824 SWIG_exception_fail(SWIG_ArgError(res), "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
32825 }
32826 if (!argp) {
32827 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
32828 } else {
32829 wxTreeItemId * temp;
32830 temp = reinterpret_cast< wxTreeItemId * >(argp);
32831 wxNullTreeItemId = *temp;
32832 if (SWIG_IsNewObj(res)) delete temp;
32833 }
32834 }
32835 return 0;
32836 fail:
32837 return 1;
32838 }
32839
32840
32841 SWIGINTERN PyObject *NullTreeItemId_get(void) {
32842 PyObject *pyobj = 0;
32843
32844 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullTreeItemId), SWIGTYPE_p_wxTreeItemId, 0 );
32845 return pyobj;
32846 }
32847
32848
32849 SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
32850 PyObject *resultobj = 0;
32851 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
32852 int arg2 = (int) 0 ;
32853 wxTreeEvent *result = 0 ;
32854 int val1 ;
32855 int ecode1 = 0 ;
32856 int val2 ;
32857 int ecode2 = 0 ;
32858
32859 if ((nobjs < 0) || (nobjs > 2)) SWIG_fail;
32860 if (swig_obj[0]) {
32861 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
32862 if (!SWIG_IsOK(ecode1)) {
32863 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
32864 }
32865 arg1 = static_cast< wxEventType >(val1);
32866 }
32867 if (swig_obj[1]) {
32868 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
32869 if (!SWIG_IsOK(ecode2)) {
32870 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "int""'");
32871 }
32872 arg2 = static_cast< int >(val2);
32873 }
32874 {
32875 PyThreadState* __tstate = wxPyBeginAllowThreads();
32876 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
32877 wxPyEndAllowThreads(__tstate);
32878 if (PyErr_Occurred()) SWIG_fail;
32879 }
32880 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
32881 return resultobj;
32882 fail:
32883 return NULL;
32884 }
32885
32886
32887 SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
32888 PyObject *resultobj = 0;
32889 wxEventType arg1 ;
32890 wxPyTreeCtrl *arg2 = (wxPyTreeCtrl *) 0 ;
32891 wxTreeItemId &arg3_defvalue = wxNullTreeItemId ;
32892 wxTreeItemId *arg3 = (wxTreeItemId *) &arg3_defvalue ;
32893 wxTreeEvent *result = 0 ;
32894 int val1 ;
32895 int ecode1 = 0 ;
32896 void *argp2 = 0 ;
32897 int res2 = 0 ;
32898 void *argp3 = 0 ;
32899 int res3 = 0 ;
32900
32901 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
32902 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
32903 if (!SWIG_IsOK(ecode1)) {
32904 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
32905 }
32906 arg1 = static_cast< wxEventType >(val1);
32907 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
32908 if (!SWIG_IsOK(res2)) {
32909 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "wxPyTreeCtrl *""'");
32910 }
32911 arg2 = reinterpret_cast< wxPyTreeCtrl * >(argp2);
32912 if (swig_obj[2]) {
32913 res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_wxTreeItemId, 0 );
32914 if (!SWIG_IsOK(res3)) {
32915 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
32916 }
32917 if (!argp3) {
32918 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
32919 }
32920 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
32921 }
32922 {
32923 PyThreadState* __tstate = wxPyBeginAllowThreads();
32924 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2,*arg3);
32925 wxPyEndAllowThreads(__tstate);
32926 if (PyErr_Occurred()) SWIG_fail;
32927 }
32928 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
32929 return resultobj;
32930 fail:
32931 return NULL;
32932 }
32933
32934
32935 SWIGINTERN PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args) {
32936 int argc;
32937 PyObject *argv[4];
32938
32939 if (!(argc = SWIG_Python_UnpackTuple(args,"new_TreeEvent",0,3,argv))) SWIG_fail;
32940 --argc;
32941 if ((argc >= 0) && (argc <= 2)) {
32942 int _v = 0;
32943 if (argc > 1) {
32944 {
32945 {
32946 int res = SWIG_AsVal_int(argv[1], NULL);
32947 _v = SWIG_CheckState(res);
32948 }
32949 }
32950 if (!_v) goto check_1;
32951 }
32952 return _wrap_new_TreeEvent__SWIG_0(self, argc, argv);
32953 }
32954 check_1:
32955
32956 if ((argc >= 2) && (argc <= 3)) {
32957 return _wrap_new_TreeEvent__SWIG_1(self, argc, argv);
32958 }
32959
32960 fail:
32961 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_TreeEvent'");
32962 return NULL;
32963 }
32964
32965
32966 SWIGINTERN PyObject *_wrap_TreeEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32967 PyObject *resultobj = 0;
32968 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32969 wxTreeItemId result;
32970 void *argp1 = 0 ;
32971 int res1 = 0 ;
32972 PyObject *swig_obj[1] ;
32973
32974 if (!args) SWIG_fail;
32975 swig_obj[0] = args;
32976 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32977 if (!SWIG_IsOK(res1)) {
32978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32979 }
32980 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32981 {
32982 PyThreadState* __tstate = wxPyBeginAllowThreads();
32983 result = ((wxTreeEvent const *)arg1)->GetItem();
32984 wxPyEndAllowThreads(__tstate);
32985 if (PyErr_Occurred()) SWIG_fail;
32986 }
32987 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
32988 return resultobj;
32989 fail:
32990 return NULL;
32991 }
32992
32993
32994 SWIGINTERN PyObject *_wrap_TreeEvent_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32995 PyObject *resultobj = 0;
32996 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32997 wxTreeItemId *arg2 = 0 ;
32998 void *argp1 = 0 ;
32999 int res1 = 0 ;
33000 void *argp2 = 0 ;
33001 int res2 = 0 ;
33002 PyObject * obj0 = 0 ;
33003 PyObject * obj1 = 0 ;
33004 char * kwnames[] = {
33005 (char *) "self",(char *) "item", NULL
33006 };
33007
33008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
33009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33010 if (!SWIG_IsOK(res1)) {
33011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33012 }
33013 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33014 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33015 if (!SWIG_IsOK(res2)) {
33016 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33017 }
33018 if (!argp2) {
33019 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33020 }
33021 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33022 {
33023 PyThreadState* __tstate = wxPyBeginAllowThreads();
33024 (arg1)->SetItem((wxTreeItemId const &)*arg2);
33025 wxPyEndAllowThreads(__tstate);
33026 if (PyErr_Occurred()) SWIG_fail;
33027 }
33028 resultobj = SWIG_Py_Void();
33029 return resultobj;
33030 fail:
33031 return NULL;
33032 }
33033
33034
33035 SWIGINTERN PyObject *_wrap_TreeEvent_GetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33036 PyObject *resultobj = 0;
33037 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33038 wxTreeItemId result;
33039 void *argp1 = 0 ;
33040 int res1 = 0 ;
33041 PyObject *swig_obj[1] ;
33042
33043 if (!args) SWIG_fail;
33044 swig_obj[0] = args;
33045 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33046 if (!SWIG_IsOK(res1)) {
33047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33048 }
33049 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33050 {
33051 PyThreadState* __tstate = wxPyBeginAllowThreads();
33052 result = ((wxTreeEvent const *)arg1)->GetOldItem();
33053 wxPyEndAllowThreads(__tstate);
33054 if (PyErr_Occurred()) SWIG_fail;
33055 }
33056 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33057 return resultobj;
33058 fail:
33059 return NULL;
33060 }
33061
33062
33063 SWIGINTERN PyObject *_wrap_TreeEvent_SetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33064 PyObject *resultobj = 0;
33065 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33066 wxTreeItemId *arg2 = 0 ;
33067 void *argp1 = 0 ;
33068 int res1 = 0 ;
33069 void *argp2 = 0 ;
33070 int res2 = 0 ;
33071 PyObject * obj0 = 0 ;
33072 PyObject * obj1 = 0 ;
33073 char * kwnames[] = {
33074 (char *) "self",(char *) "item", NULL
33075 };
33076
33077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) SWIG_fail;
33078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33079 if (!SWIG_IsOK(res1)) {
33080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33081 }
33082 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33083 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33084 if (!SWIG_IsOK(res2)) {
33085 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33086 }
33087 if (!argp2) {
33088 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33089 }
33090 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33091 {
33092 PyThreadState* __tstate = wxPyBeginAllowThreads();
33093 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
33094 wxPyEndAllowThreads(__tstate);
33095 if (PyErr_Occurred()) SWIG_fail;
33096 }
33097 resultobj = SWIG_Py_Void();
33098 return resultobj;
33099 fail:
33100 return NULL;
33101 }
33102
33103
33104 SWIGINTERN PyObject *_wrap_TreeEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33105 PyObject *resultobj = 0;
33106 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33107 wxPoint result;
33108 void *argp1 = 0 ;
33109 int res1 = 0 ;
33110 PyObject *swig_obj[1] ;
33111
33112 if (!args) SWIG_fail;
33113 swig_obj[0] = args;
33114 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33115 if (!SWIG_IsOK(res1)) {
33116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetPoint" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33117 }
33118 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33119 {
33120 PyThreadState* __tstate = wxPyBeginAllowThreads();
33121 result = ((wxTreeEvent const *)arg1)->GetPoint();
33122 wxPyEndAllowThreads(__tstate);
33123 if (PyErr_Occurred()) SWIG_fail;
33124 }
33125 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
33126 return resultobj;
33127 fail:
33128 return NULL;
33129 }
33130
33131
33132 SWIGINTERN PyObject *_wrap_TreeEvent_SetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33133 PyObject *resultobj = 0;
33134 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33135 wxPoint *arg2 = 0 ;
33136 void *argp1 = 0 ;
33137 int res1 = 0 ;
33138 wxPoint temp2 ;
33139 PyObject * obj0 = 0 ;
33140 PyObject * obj1 = 0 ;
33141 char * kwnames[] = {
33142 (char *) "self",(char *) "pt", NULL
33143 };
33144
33145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) SWIG_fail;
33146 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33147 if (!SWIG_IsOK(res1)) {
33148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetPoint" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33149 }
33150 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33151 {
33152 arg2 = &temp2;
33153 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33154 }
33155 {
33156 PyThreadState* __tstate = wxPyBeginAllowThreads();
33157 (arg1)->SetPoint((wxPoint const &)*arg2);
33158 wxPyEndAllowThreads(__tstate);
33159 if (PyErr_Occurred()) SWIG_fail;
33160 }
33161 resultobj = SWIG_Py_Void();
33162 return resultobj;
33163 fail:
33164 return NULL;
33165 }
33166
33167
33168 SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33169 PyObject *resultobj = 0;
33170 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33171 wxKeyEvent *result = 0 ;
33172 void *argp1 = 0 ;
33173 int res1 = 0 ;
33174 PyObject *swig_obj[1] ;
33175
33176 if (!args) SWIG_fail;
33177 swig_obj[0] = args;
33178 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33179 if (!SWIG_IsOK(res1)) {
33180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33181 }
33182 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33183 {
33184 PyThreadState* __tstate = wxPyBeginAllowThreads();
33185 {
33186 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
33187 result = (wxKeyEvent *) &_result_ref;
33188 }
33189 wxPyEndAllowThreads(__tstate);
33190 if (PyErr_Occurred()) SWIG_fail;
33191 }
33192 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxKeyEvent, 0 | 0 );
33193 return resultobj;
33194 fail:
33195 return NULL;
33196 }
33197
33198
33199 SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33200 PyObject *resultobj = 0;
33201 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33202 int result;
33203 void *argp1 = 0 ;
33204 int res1 = 0 ;
33205 PyObject *swig_obj[1] ;
33206
33207 if (!args) SWIG_fail;
33208 swig_obj[0] = args;
33209 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33210 if (!SWIG_IsOK(res1)) {
33211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33212 }
33213 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33214 {
33215 PyThreadState* __tstate = wxPyBeginAllowThreads();
33216 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
33217 wxPyEndAllowThreads(__tstate);
33218 if (PyErr_Occurred()) SWIG_fail;
33219 }
33220 resultobj = SWIG_From_int(static_cast< int >(result));
33221 return resultobj;
33222 fail:
33223 return NULL;
33224 }
33225
33226
33227 SWIGINTERN PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33228 PyObject *resultobj = 0;
33229 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33230 wxKeyEvent *arg2 = 0 ;
33231 void *argp1 = 0 ;
33232 int res1 = 0 ;
33233 void *argp2 = 0 ;
33234 int res2 = 0 ;
33235 PyObject * obj0 = 0 ;
33236 PyObject * obj1 = 0 ;
33237 char * kwnames[] = {
33238 (char *) "self",(char *) "evt", NULL
33239 };
33240
33241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) SWIG_fail;
33242 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33243 if (!SWIG_IsOK(res1)) {
33244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33245 }
33246 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33247 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
33248 if (!SWIG_IsOK(res2)) {
33249 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33250 }
33251 if (!argp2) {
33252 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33253 }
33254 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
33255 {
33256 PyThreadState* __tstate = wxPyBeginAllowThreads();
33257 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
33258 wxPyEndAllowThreads(__tstate);
33259 if (PyErr_Occurred()) SWIG_fail;
33260 }
33261 resultobj = SWIG_Py_Void();
33262 return resultobj;
33263 fail:
33264 return NULL;
33265 }
33266
33267
33268 SWIGINTERN PyObject *_wrap_TreeEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33269 PyObject *resultobj = 0;
33270 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33271 wxString *result = 0 ;
33272 void *argp1 = 0 ;
33273 int res1 = 0 ;
33274 PyObject *swig_obj[1] ;
33275
33276 if (!args) SWIG_fail;
33277 swig_obj[0] = args;
33278 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33279 if (!SWIG_IsOK(res1)) {
33280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetLabel" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33281 }
33282 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33283 {
33284 PyThreadState* __tstate = wxPyBeginAllowThreads();
33285 {
33286 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
33287 result = (wxString *) &_result_ref;
33288 }
33289 wxPyEndAllowThreads(__tstate);
33290 if (PyErr_Occurred()) SWIG_fail;
33291 }
33292 {
33293 #if wxUSE_UNICODE
33294 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33295 #else
33296 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33297 #endif
33298 }
33299 return resultobj;
33300 fail:
33301 return NULL;
33302 }
33303
33304
33305 SWIGINTERN PyObject *_wrap_TreeEvent_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33306 PyObject *resultobj = 0;
33307 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33308 wxString *arg2 = 0 ;
33309 void *argp1 = 0 ;
33310 int res1 = 0 ;
33311 bool temp2 = false ;
33312 PyObject * obj0 = 0 ;
33313 PyObject * obj1 = 0 ;
33314 char * kwnames[] = {
33315 (char *) "self",(char *) "label", NULL
33316 };
33317
33318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
33319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33320 if (!SWIG_IsOK(res1)) {
33321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetLabel" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33322 }
33323 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33324 {
33325 arg2 = wxString_in_helper(obj1);
33326 if (arg2 == NULL) SWIG_fail;
33327 temp2 = true;
33328 }
33329 {
33330 PyThreadState* __tstate = wxPyBeginAllowThreads();
33331 (arg1)->SetLabel((wxString const &)*arg2);
33332 wxPyEndAllowThreads(__tstate);
33333 if (PyErr_Occurred()) SWIG_fail;
33334 }
33335 resultobj = SWIG_Py_Void();
33336 {
33337 if (temp2)
33338 delete arg2;
33339 }
33340 return resultobj;
33341 fail:
33342 {
33343 if (temp2)
33344 delete arg2;
33345 }
33346 return NULL;
33347 }
33348
33349
33350 SWIGINTERN PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33351 PyObject *resultobj = 0;
33352 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33353 bool result;
33354 void *argp1 = 0 ;
33355 int res1 = 0 ;
33356 PyObject *swig_obj[1] ;
33357
33358 if (!args) SWIG_fail;
33359 swig_obj[0] = args;
33360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33361 if (!SWIG_IsOK(res1)) {
33362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33363 }
33364 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33365 {
33366 PyThreadState* __tstate = wxPyBeginAllowThreads();
33367 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
33368 wxPyEndAllowThreads(__tstate);
33369 if (PyErr_Occurred()) SWIG_fail;
33370 }
33371 {
33372 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33373 }
33374 return resultobj;
33375 fail:
33376 return NULL;
33377 }
33378
33379
33380 SWIGINTERN PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33381 PyObject *resultobj = 0;
33382 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33383 bool arg2 ;
33384 void *argp1 = 0 ;
33385 int res1 = 0 ;
33386 bool val2 ;
33387 int ecode2 = 0 ;
33388 PyObject * obj0 = 0 ;
33389 PyObject * obj1 = 0 ;
33390 char * kwnames[] = {
33391 (char *) "self",(char *) "editCancelled", NULL
33392 };
33393
33394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
33395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33396 if (!SWIG_IsOK(res1)) {
33397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33398 }
33399 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33400 ecode2 = SWIG_AsVal_bool(obj1, &val2);
33401 if (!SWIG_IsOK(ecode2)) {
33402 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
33403 }
33404 arg2 = static_cast< bool >(val2);
33405 {
33406 PyThreadState* __tstate = wxPyBeginAllowThreads();
33407 (arg1)->SetEditCanceled(arg2);
33408 wxPyEndAllowThreads(__tstate);
33409 if (PyErr_Occurred()) SWIG_fail;
33410 }
33411 resultobj = SWIG_Py_Void();
33412 return resultobj;
33413 fail:
33414 return NULL;
33415 }
33416
33417
33418 SWIGINTERN PyObject *_wrap_TreeEvent_SetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33419 PyObject *resultobj = 0;
33420 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33421 wxString *arg2 = 0 ;
33422 void *argp1 = 0 ;
33423 int res1 = 0 ;
33424 bool temp2 = false ;
33425 PyObject * obj0 = 0 ;
33426 PyObject * obj1 = 0 ;
33427 char * kwnames[] = {
33428 (char *) "self",(char *) "toolTip", NULL
33429 };
33430
33431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
33432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33433 if (!SWIG_IsOK(res1)) {
33434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33435 }
33436 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33437 {
33438 arg2 = wxString_in_helper(obj1);
33439 if (arg2 == NULL) SWIG_fail;
33440 temp2 = true;
33441 }
33442 {
33443 PyThreadState* __tstate = wxPyBeginAllowThreads();
33444 (arg1)->SetToolTip((wxString const &)*arg2);
33445 wxPyEndAllowThreads(__tstate);
33446 if (PyErr_Occurred()) SWIG_fail;
33447 }
33448 resultobj = SWIG_Py_Void();
33449 {
33450 if (temp2)
33451 delete arg2;
33452 }
33453 return resultobj;
33454 fail:
33455 {
33456 if (temp2)
33457 delete arg2;
33458 }
33459 return NULL;
33460 }
33461
33462
33463 SWIGINTERN PyObject *_wrap_TreeEvent_GetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33464 PyObject *resultobj = 0;
33465 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33466 wxString result;
33467 void *argp1 = 0 ;
33468 int res1 = 0 ;
33469 PyObject *swig_obj[1] ;
33470
33471 if (!args) SWIG_fail;
33472 swig_obj[0] = args;
33473 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33474 if (!SWIG_IsOK(res1)) {
33475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33476 }
33477 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33478 {
33479 PyThreadState* __tstate = wxPyBeginAllowThreads();
33480 result = (arg1)->GetToolTip();
33481 wxPyEndAllowThreads(__tstate);
33482 if (PyErr_Occurred()) SWIG_fail;
33483 }
33484 {
33485 #if wxUSE_UNICODE
33486 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33487 #else
33488 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33489 #endif
33490 }
33491 return resultobj;
33492 fail:
33493 return NULL;
33494 }
33495
33496
33497 SWIGINTERN PyObject *TreeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33498 PyObject *obj;
33499 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33500 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeEvent, SWIG_NewClientData(obj));
33501 return SWIG_Py_Void();
33502 }
33503
33504 SWIGINTERN PyObject *TreeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33505 return SWIG_Python_InitShadowInstance(args);
33506 }
33507
33508 SWIGINTERN PyObject *_wrap_new_TreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33509 PyObject *resultobj = 0;
33510 wxWindow *arg1 = (wxWindow *) 0 ;
33511 int arg2 = (int) -1 ;
33512 wxPoint const &arg3_defvalue = wxDefaultPosition ;
33513 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
33514 wxSize const &arg4_defvalue = wxDefaultSize ;
33515 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
33516 long arg5 = (long) wxTR_DEFAULT_STYLE ;
33517 wxValidator const &arg6_defvalue = wxDefaultValidator ;
33518 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
33519 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
33520 wxString *arg7 = (wxString *) &arg7_defvalue ;
33521 wxPyTreeCtrl *result = 0 ;
33522 void *argp1 = 0 ;
33523 int res1 = 0 ;
33524 int val2 ;
33525 int ecode2 = 0 ;
33526 wxPoint temp3 ;
33527 wxSize temp4 ;
33528 long val5 ;
33529 int ecode5 = 0 ;
33530 void *argp6 = 0 ;
33531 int res6 = 0 ;
33532 bool temp7 = false ;
33533 PyObject * obj0 = 0 ;
33534 PyObject * obj1 = 0 ;
33535 PyObject * obj2 = 0 ;
33536 PyObject * obj3 = 0 ;
33537 PyObject * obj4 = 0 ;
33538 PyObject * obj5 = 0 ;
33539 PyObject * obj6 = 0 ;
33540 char * kwnames[] = {
33541 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33542 };
33543
33544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33546 if (!SWIG_IsOK(res1)) {
33547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
33548 }
33549 arg1 = reinterpret_cast< wxWindow * >(argp1);
33550 if (obj1) {
33551 ecode2 = SWIG_AsVal_int(obj1, &val2);
33552 if (!SWIG_IsOK(ecode2)) {
33553 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeCtrl" "', expected argument " "2"" of type '" "int""'");
33554 }
33555 arg2 = static_cast< int >(val2);
33556 }
33557 if (obj2) {
33558 {
33559 arg3 = &temp3;
33560 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33561 }
33562 }
33563 if (obj3) {
33564 {
33565 arg4 = &temp4;
33566 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
33567 }
33568 }
33569 if (obj4) {
33570 ecode5 = SWIG_AsVal_long(obj4, &val5);
33571 if (!SWIG_IsOK(ecode5)) {
33572 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TreeCtrl" "', expected argument " "5"" of type '" "long""'");
33573 }
33574 arg5 = static_cast< long >(val5);
33575 }
33576 if (obj5) {
33577 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
33578 if (!SWIG_IsOK(res6)) {
33579 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
33580 }
33581 if (!argp6) {
33582 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
33583 }
33584 arg6 = reinterpret_cast< wxValidator * >(argp6);
33585 }
33586 if (obj6) {
33587 {
33588 arg7 = wxString_in_helper(obj6);
33589 if (arg7 == NULL) SWIG_fail;
33590 temp7 = true;
33591 }
33592 }
33593 {
33594 if (!wxPyCheckForApp()) SWIG_fail;
33595 PyThreadState* __tstate = wxPyBeginAllowThreads();
33596 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
33597 wxPyEndAllowThreads(__tstate);
33598 if (PyErr_Occurred()) SWIG_fail;
33599 }
33600 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_NEW | 0 );
33601 {
33602 if (temp7)
33603 delete arg7;
33604 }
33605 return resultobj;
33606 fail:
33607 {
33608 if (temp7)
33609 delete arg7;
33610 }
33611 return NULL;
33612 }
33613
33614
33615 SWIGINTERN PyObject *_wrap_new_PreTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33616 PyObject *resultobj = 0;
33617 wxPyTreeCtrl *result = 0 ;
33618
33619 if (!SWIG_Python_UnpackTuple(args,"new_PreTreeCtrl",0,0,0)) SWIG_fail;
33620 {
33621 if (!wxPyCheckForApp()) SWIG_fail;
33622 PyThreadState* __tstate = wxPyBeginAllowThreads();
33623 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
33624 wxPyEndAllowThreads(__tstate);
33625 if (PyErr_Occurred()) SWIG_fail;
33626 }
33627 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_OWN | 0 );
33628 return resultobj;
33629 fail:
33630 return NULL;
33631 }
33632
33633
33634 SWIGINTERN PyObject *_wrap_TreeCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33635 PyObject *resultobj = 0;
33636 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33637 wxWindow *arg2 = (wxWindow *) 0 ;
33638 int arg3 = (int) -1 ;
33639 wxPoint const &arg4_defvalue = wxDefaultPosition ;
33640 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
33641 wxSize const &arg5_defvalue = wxDefaultSize ;
33642 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
33643 long arg6 = (long) wxTR_DEFAULT_STYLE ;
33644 wxValidator const &arg7_defvalue = wxDefaultValidator ;
33645 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
33646 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
33647 wxString *arg8 = (wxString *) &arg8_defvalue ;
33648 bool result;
33649 void *argp1 = 0 ;
33650 int res1 = 0 ;
33651 void *argp2 = 0 ;
33652 int res2 = 0 ;
33653 int val3 ;
33654 int ecode3 = 0 ;
33655 wxPoint temp4 ;
33656 wxSize temp5 ;
33657 long val6 ;
33658 int ecode6 = 0 ;
33659 void *argp7 = 0 ;
33660 int res7 = 0 ;
33661 bool temp8 = false ;
33662 PyObject * obj0 = 0 ;
33663 PyObject * obj1 = 0 ;
33664 PyObject * obj2 = 0 ;
33665 PyObject * obj3 = 0 ;
33666 PyObject * obj4 = 0 ;
33667 PyObject * obj5 = 0 ;
33668 PyObject * obj6 = 0 ;
33669 PyObject * obj7 = 0 ;
33670 char * kwnames[] = {
33671 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33672 };
33673
33674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
33675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33676 if (!SWIG_IsOK(res1)) {
33677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Create" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33678 }
33679 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33680 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33681 if (!SWIG_IsOK(res2)) {
33682 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
33683 }
33684 arg2 = reinterpret_cast< wxWindow * >(argp2);
33685 if (obj2) {
33686 ecode3 = SWIG_AsVal_int(obj2, &val3);
33687 if (!SWIG_IsOK(ecode3)) {
33688 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_Create" "', expected argument " "3"" of type '" "int""'");
33689 }
33690 arg3 = static_cast< int >(val3);
33691 }
33692 if (obj3) {
33693 {
33694 arg4 = &temp4;
33695 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
33696 }
33697 }
33698 if (obj4) {
33699 {
33700 arg5 = &temp5;
33701 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
33702 }
33703 }
33704 if (obj5) {
33705 ecode6 = SWIG_AsVal_long(obj5, &val6);
33706 if (!SWIG_IsOK(ecode6)) {
33707 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_Create" "', expected argument " "6"" of type '" "long""'");
33708 }
33709 arg6 = static_cast< long >(val6);
33710 }
33711 if (obj6) {
33712 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
33713 if (!SWIG_IsOK(res7)) {
33714 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
33715 }
33716 if (!argp7) {
33717 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
33718 }
33719 arg7 = reinterpret_cast< wxValidator * >(argp7);
33720 }
33721 if (obj7) {
33722 {
33723 arg8 = wxString_in_helper(obj7);
33724 if (arg8 == NULL) SWIG_fail;
33725 temp8 = true;
33726 }
33727 }
33728 {
33729 PyThreadState* __tstate = wxPyBeginAllowThreads();
33730 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
33731 wxPyEndAllowThreads(__tstate);
33732 if (PyErr_Occurred()) SWIG_fail;
33733 }
33734 {
33735 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33736 }
33737 {
33738 if (temp8)
33739 delete arg8;
33740 }
33741 return resultobj;
33742 fail:
33743 {
33744 if (temp8)
33745 delete arg8;
33746 }
33747 return NULL;
33748 }
33749
33750
33751 SWIGINTERN PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33752 PyObject *resultobj = 0;
33753 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33754 PyObject *arg2 = (PyObject *) 0 ;
33755 PyObject *arg3 = (PyObject *) 0 ;
33756 void *argp1 = 0 ;
33757 int res1 = 0 ;
33758 PyObject * obj0 = 0 ;
33759 PyObject * obj1 = 0 ;
33760 PyObject * obj2 = 0 ;
33761 char * kwnames[] = {
33762 (char *) "self",(char *) "self",(char *) "_class", NULL
33763 };
33764
33765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33767 if (!SWIG_IsOK(res1)) {
33768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33769 }
33770 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33771 arg2 = obj1;
33772 arg3 = obj2;
33773 {
33774 PyThreadState* __tstate = wxPyBeginAllowThreads();
33775 (arg1)->_setCallbackInfo(arg2,arg3);
33776 wxPyEndAllowThreads(__tstate);
33777 if (PyErr_Occurred()) SWIG_fail;
33778 }
33779 resultobj = SWIG_Py_Void();
33780 return resultobj;
33781 fail:
33782 return NULL;
33783 }
33784
33785
33786 SWIGINTERN PyObject *_wrap_TreeCtrl_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33787 PyObject *resultobj = 0;
33788 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33789 unsigned int result;
33790 void *argp1 = 0 ;
33791 int res1 = 0 ;
33792 PyObject *swig_obj[1] ;
33793
33794 if (!args) SWIG_fail;
33795 swig_obj[0] = args;
33796 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33797 if (!SWIG_IsOK(res1)) {
33798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33799 }
33800 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33801 {
33802 PyThreadState* __tstate = wxPyBeginAllowThreads();
33803 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetCount();
33804 wxPyEndAllowThreads(__tstate);
33805 if (PyErr_Occurred()) SWIG_fail;
33806 }
33807 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33808 return resultobj;
33809 fail:
33810 return NULL;
33811 }
33812
33813
33814 SWIGINTERN PyObject *_wrap_TreeCtrl_GetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33815 PyObject *resultobj = 0;
33816 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33817 unsigned int result;
33818 void *argp1 = 0 ;
33819 int res1 = 0 ;
33820 PyObject *swig_obj[1] ;
33821
33822 if (!args) SWIG_fail;
33823 swig_obj[0] = args;
33824 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33825 if (!SWIG_IsOK(res1)) {
33826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33827 }
33828 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33829 {
33830 PyThreadState* __tstate = wxPyBeginAllowThreads();
33831 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
33832 wxPyEndAllowThreads(__tstate);
33833 if (PyErr_Occurred()) SWIG_fail;
33834 }
33835 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33836 return resultobj;
33837 fail:
33838 return NULL;
33839 }
33840
33841
33842 SWIGINTERN PyObject *_wrap_TreeCtrl_SetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33843 PyObject *resultobj = 0;
33844 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33845 unsigned int arg2 ;
33846 void *argp1 = 0 ;
33847 int res1 = 0 ;
33848 unsigned int val2 ;
33849 int ecode2 = 0 ;
33850 PyObject * obj0 = 0 ;
33851 PyObject * obj1 = 0 ;
33852 char * kwnames[] = {
33853 (char *) "self",(char *) "indent", NULL
33854 };
33855
33856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) SWIG_fail;
33857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33858 if (!SWIG_IsOK(res1)) {
33859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33860 }
33861 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33862 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
33863 if (!SWIG_IsOK(ecode2)) {
33864 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetIndent" "', expected argument " "2"" of type '" "unsigned int""'");
33865 }
33866 arg2 = static_cast< unsigned int >(val2);
33867 {
33868 PyThreadState* __tstate = wxPyBeginAllowThreads();
33869 (arg1)->SetIndent(arg2);
33870 wxPyEndAllowThreads(__tstate);
33871 if (PyErr_Occurred()) SWIG_fail;
33872 }
33873 resultobj = SWIG_Py_Void();
33874 return resultobj;
33875 fail:
33876 return NULL;
33877 }
33878
33879
33880 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33881 PyObject *resultobj = 0;
33882 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33883 unsigned int result;
33884 void *argp1 = 0 ;
33885 int res1 = 0 ;
33886 PyObject *swig_obj[1] ;
33887
33888 if (!args) SWIG_fail;
33889 swig_obj[0] = args;
33890 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33891 if (!SWIG_IsOK(res1)) {
33892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33893 }
33894 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33895 {
33896 PyThreadState* __tstate = wxPyBeginAllowThreads();
33897 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
33898 wxPyEndAllowThreads(__tstate);
33899 if (PyErr_Occurred()) SWIG_fail;
33900 }
33901 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33902 return resultobj;
33903 fail:
33904 return NULL;
33905 }
33906
33907
33908 SWIGINTERN PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33909 PyObject *resultobj = 0;
33910 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33911 unsigned int arg2 ;
33912 void *argp1 = 0 ;
33913 int res1 = 0 ;
33914 unsigned int val2 ;
33915 int ecode2 = 0 ;
33916 PyObject * obj0 = 0 ;
33917 PyObject * obj1 = 0 ;
33918 char * kwnames[] = {
33919 (char *) "self",(char *) "spacing", NULL
33920 };
33921
33922 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) SWIG_fail;
33923 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33924 if (!SWIG_IsOK(res1)) {
33925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33926 }
33927 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33928 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
33929 if (!SWIG_IsOK(ecode2)) {
33930 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "2"" of type '" "unsigned int""'");
33931 }
33932 arg2 = static_cast< unsigned int >(val2);
33933 {
33934 PyThreadState* __tstate = wxPyBeginAllowThreads();
33935 (arg1)->SetSpacing(arg2);
33936 wxPyEndAllowThreads(__tstate);
33937 if (PyErr_Occurred()) SWIG_fail;
33938 }
33939 resultobj = SWIG_Py_Void();
33940 return resultobj;
33941 fail:
33942 return NULL;
33943 }
33944
33945
33946 SWIGINTERN PyObject *_wrap_TreeCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33947 PyObject *resultobj = 0;
33948 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33949 wxImageList *result = 0 ;
33950 void *argp1 = 0 ;
33951 int res1 = 0 ;
33952 PyObject *swig_obj[1] ;
33953
33954 if (!args) SWIG_fail;
33955 swig_obj[0] = args;
33956 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33957 if (!SWIG_IsOK(res1)) {
33958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33959 }
33960 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33961 {
33962 PyThreadState* __tstate = wxPyBeginAllowThreads();
33963 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
33964 wxPyEndAllowThreads(__tstate);
33965 if (PyErr_Occurred()) SWIG_fail;
33966 }
33967 {
33968 resultobj = wxPyMake_wxObject(result, (bool)0);
33969 }
33970 return resultobj;
33971 fail:
33972 return NULL;
33973 }
33974
33975
33976 SWIGINTERN PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33977 PyObject *resultobj = 0;
33978 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33979 wxImageList *result = 0 ;
33980 void *argp1 = 0 ;
33981 int res1 = 0 ;
33982 PyObject *swig_obj[1] ;
33983
33984 if (!args) SWIG_fail;
33985 swig_obj[0] = args;
33986 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33987 if (!SWIG_IsOK(res1)) {
33988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33989 }
33990 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33991 {
33992 PyThreadState* __tstate = wxPyBeginAllowThreads();
33993 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
33994 wxPyEndAllowThreads(__tstate);
33995 if (PyErr_Occurred()) SWIG_fail;
33996 }
33997 {
33998 resultobj = wxPyMake_wxObject(result, (bool)0);
33999 }
34000 return resultobj;
34001 fail:
34002 return NULL;
34003 }
34004
34005
34006 SWIGINTERN PyObject *_wrap_TreeCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34007 PyObject *resultobj = 0;
34008 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34009 wxImageList *arg2 = (wxImageList *) 0 ;
34010 void *argp1 = 0 ;
34011 int res1 = 0 ;
34012 void *argp2 = 0 ;
34013 int res2 = 0 ;
34014 PyObject * obj0 = 0 ;
34015 PyObject * obj1 = 0 ;
34016 char * kwnames[] = {
34017 (char *) "self",(char *) "imageList", NULL
34018 };
34019
34020 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34021 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34022 if (!SWIG_IsOK(res1)) {
34023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34024 }
34025 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34026 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34027 if (!SWIG_IsOK(res2)) {
34028 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34029 }
34030 arg2 = reinterpret_cast< wxImageList * >(argp2);
34031 {
34032 PyThreadState* __tstate = wxPyBeginAllowThreads();
34033 (arg1)->SetImageList(arg2);
34034 wxPyEndAllowThreads(__tstate);
34035 if (PyErr_Occurred()) SWIG_fail;
34036 }
34037 resultobj = SWIG_Py_Void();
34038 return resultobj;
34039 fail:
34040 return NULL;
34041 }
34042
34043
34044 SWIGINTERN PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34045 PyObject *resultobj = 0;
34046 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34047 wxImageList *arg2 = (wxImageList *) 0 ;
34048 void *argp1 = 0 ;
34049 int res1 = 0 ;
34050 void *argp2 = 0 ;
34051 int res2 = 0 ;
34052 PyObject * obj0 = 0 ;
34053 PyObject * obj1 = 0 ;
34054 char * kwnames[] = {
34055 (char *) "self",(char *) "imageList", NULL
34056 };
34057
34058 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34059 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34060 if (!SWIG_IsOK(res1)) {
34061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34062 }
34063 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34064 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34065 if (!SWIG_IsOK(res2)) {
34066 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34067 }
34068 arg2 = reinterpret_cast< wxImageList * >(argp2);
34069 {
34070 PyThreadState* __tstate = wxPyBeginAllowThreads();
34071 (arg1)->SetStateImageList(arg2);
34072 wxPyEndAllowThreads(__tstate);
34073 if (PyErr_Occurred()) SWIG_fail;
34074 }
34075 resultobj = SWIG_Py_Void();
34076 return resultobj;
34077 fail:
34078 return NULL;
34079 }
34080
34081
34082 SWIGINTERN PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34083 PyObject *resultobj = 0;
34084 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34085 wxImageList *arg2 = (wxImageList *) 0 ;
34086 void *argp1 = 0 ;
34087 int res1 = 0 ;
34088 int res2 = 0 ;
34089 PyObject * obj0 = 0 ;
34090 PyObject * obj1 = 0 ;
34091 char * kwnames[] = {
34092 (char *) "self",(char *) "imageList", NULL
34093 };
34094
34095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34097 if (!SWIG_IsOK(res1)) {
34098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34099 }
34100 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34101 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34102 if (!SWIG_IsOK(res2)) {
34103 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34104 }
34105 {
34106 PyThreadState* __tstate = wxPyBeginAllowThreads();
34107 (arg1)->AssignImageList(arg2);
34108 wxPyEndAllowThreads(__tstate);
34109 if (PyErr_Occurred()) SWIG_fail;
34110 }
34111 resultobj = SWIG_Py_Void();
34112 return resultobj;
34113 fail:
34114 return NULL;
34115 }
34116
34117
34118 SWIGINTERN PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34119 PyObject *resultobj = 0;
34120 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34121 wxImageList *arg2 = (wxImageList *) 0 ;
34122 void *argp1 = 0 ;
34123 int res1 = 0 ;
34124 int res2 = 0 ;
34125 PyObject * obj0 = 0 ;
34126 PyObject * obj1 = 0 ;
34127 char * kwnames[] = {
34128 (char *) "self",(char *) "imageList", NULL
34129 };
34130
34131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34132 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34133 if (!SWIG_IsOK(res1)) {
34134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34135 }
34136 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34137 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34138 if (!SWIG_IsOK(res2)) {
34139 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34140 }
34141 {
34142 PyThreadState* __tstate = wxPyBeginAllowThreads();
34143 (arg1)->AssignStateImageList(arg2);
34144 wxPyEndAllowThreads(__tstate);
34145 if (PyErr_Occurred()) SWIG_fail;
34146 }
34147 resultobj = SWIG_Py_Void();
34148 return resultobj;
34149 fail:
34150 return NULL;
34151 }
34152
34153
34154 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34155 PyObject *resultobj = 0;
34156 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34157 wxTreeItemId *arg2 = 0 ;
34158 wxString result;
34159 void *argp1 = 0 ;
34160 int res1 = 0 ;
34161 void *argp2 = 0 ;
34162 int res2 = 0 ;
34163 PyObject * obj0 = 0 ;
34164 PyObject * obj1 = 0 ;
34165 char * kwnames[] = {
34166 (char *) "self",(char *) "item", NULL
34167 };
34168
34169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
34170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34171 if (!SWIG_IsOK(res1)) {
34172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34173 }
34174 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34175 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34176 if (!SWIG_IsOK(res2)) {
34177 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34178 }
34179 if (!argp2) {
34180 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34181 }
34182 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34183 {
34184 PyThreadState* __tstate = wxPyBeginAllowThreads();
34185 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
34186 wxPyEndAllowThreads(__tstate);
34187 if (PyErr_Occurred()) SWIG_fail;
34188 }
34189 {
34190 #if wxUSE_UNICODE
34191 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
34192 #else
34193 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
34194 #endif
34195 }
34196 return resultobj;
34197 fail:
34198 return NULL;
34199 }
34200
34201
34202 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34203 PyObject *resultobj = 0;
34204 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34205 wxTreeItemId *arg2 = 0 ;
34206 wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34207 int result;
34208 void *argp1 = 0 ;
34209 int res1 = 0 ;
34210 void *argp2 = 0 ;
34211 int res2 = 0 ;
34212 int val3 ;
34213 int ecode3 = 0 ;
34214 PyObject * obj0 = 0 ;
34215 PyObject * obj1 = 0 ;
34216 PyObject * obj2 = 0 ;
34217 char * kwnames[] = {
34218 (char *) "self",(char *) "item",(char *) "which", NULL
34219 };
34220
34221 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34222 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34223 if (!SWIG_IsOK(res1)) {
34224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34225 }
34226 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34227 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34228 if (!SWIG_IsOK(res2)) {
34229 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34230 }
34231 if (!argp2) {
34232 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34233 }
34234 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34235 if (obj2) {
34236 ecode3 = SWIG_AsVal_int(obj2, &val3);
34237 if (!SWIG_IsOK(ecode3)) {
34238 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "3"" of type '" "wxTreeItemIcon""'");
34239 }
34240 arg3 = static_cast< wxTreeItemIcon >(val3);
34241 }
34242 {
34243 PyThreadState* __tstate = wxPyBeginAllowThreads();
34244 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,arg3);
34245 wxPyEndAllowThreads(__tstate);
34246 if (PyErr_Occurred()) SWIG_fail;
34247 }
34248 resultobj = SWIG_From_int(static_cast< int >(result));
34249 return resultobj;
34250 fail:
34251 return NULL;
34252 }
34253
34254
34255 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34256 PyObject *resultobj = 0;
34257 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34258 wxTreeItemId *arg2 = 0 ;
34259 wxPyTreeItemData *result = 0 ;
34260 void *argp1 = 0 ;
34261 int res1 = 0 ;
34262 void *argp2 = 0 ;
34263 int res2 = 0 ;
34264 PyObject * obj0 = 0 ;
34265 PyObject * obj1 = 0 ;
34266 char * kwnames[] = {
34267 (char *) "self",(char *) "item", NULL
34268 };
34269
34270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
34271 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34272 if (!SWIG_IsOK(res1)) {
34273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34274 }
34275 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34276 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34277 if (!SWIG_IsOK(res2)) {
34278 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34279 }
34280 if (!argp2) {
34281 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34282 }
34283 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34284 {
34285 PyThreadState* __tstate = wxPyBeginAllowThreads();
34286 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
34287 wxPyEndAllowThreads(__tstate);
34288 if (PyErr_Occurred()) SWIG_fail;
34289 }
34290 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
34291 return resultobj;
34292 fail:
34293 return NULL;
34294 }
34295
34296
34297 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34298 PyObject *resultobj = 0;
34299 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34300 wxTreeItemId *arg2 = 0 ;
34301 PyObject *result = 0 ;
34302 void *argp1 = 0 ;
34303 int res1 = 0 ;
34304 void *argp2 = 0 ;
34305 int res2 = 0 ;
34306 PyObject * obj0 = 0 ;
34307 PyObject * obj1 = 0 ;
34308 char * kwnames[] = {
34309 (char *) "self",(char *) "item", NULL
34310 };
34311
34312 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) SWIG_fail;
34313 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34314 if (!SWIG_IsOK(res1)) {
34315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34316 }
34317 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34318 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34319 if (!SWIG_IsOK(res2)) {
34320 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34321 }
34322 if (!argp2) {
34323 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34324 }
34325 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34326 {
34327 PyThreadState* __tstate = wxPyBeginAllowThreads();
34328 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
34329 wxPyEndAllowThreads(__tstate);
34330 if (PyErr_Occurred()) SWIG_fail;
34331 }
34332 resultobj = result;
34333 return resultobj;
34334 fail:
34335 return NULL;
34336 }
34337
34338
34339 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34340 PyObject *resultobj = 0;
34341 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34342 wxTreeItemId *arg2 = 0 ;
34343 wxColour result;
34344 void *argp1 = 0 ;
34345 int res1 = 0 ;
34346 void *argp2 = 0 ;
34347 int res2 = 0 ;
34348 PyObject * obj0 = 0 ;
34349 PyObject * obj1 = 0 ;
34350 char * kwnames[] = {
34351 (char *) "self",(char *) "item", NULL
34352 };
34353
34354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
34355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34356 if (!SWIG_IsOK(res1)) {
34357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34358 }
34359 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34360 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34361 if (!SWIG_IsOK(res2)) {
34362 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34363 }
34364 if (!argp2) {
34365 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34366 }
34367 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34368 {
34369 PyThreadState* __tstate = wxPyBeginAllowThreads();
34370 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
34371 wxPyEndAllowThreads(__tstate);
34372 if (PyErr_Occurred()) SWIG_fail;
34373 }
34374 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34375 return resultobj;
34376 fail:
34377 return NULL;
34378 }
34379
34380
34381 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34382 PyObject *resultobj = 0;
34383 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34384 wxTreeItemId *arg2 = 0 ;
34385 wxColour result;
34386 void *argp1 = 0 ;
34387 int res1 = 0 ;
34388 void *argp2 = 0 ;
34389 int res2 = 0 ;
34390 PyObject * obj0 = 0 ;
34391 PyObject * obj1 = 0 ;
34392 char * kwnames[] = {
34393 (char *) "self",(char *) "item", NULL
34394 };
34395
34396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
34397 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34398 if (!SWIG_IsOK(res1)) {
34399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34400 }
34401 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34402 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34403 if (!SWIG_IsOK(res2)) {
34404 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34405 }
34406 if (!argp2) {
34407 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34408 }
34409 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34410 {
34411 PyThreadState* __tstate = wxPyBeginAllowThreads();
34412 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
34413 wxPyEndAllowThreads(__tstate);
34414 if (PyErr_Occurred()) SWIG_fail;
34415 }
34416 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34417 return resultobj;
34418 fail:
34419 return NULL;
34420 }
34421
34422
34423 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34424 PyObject *resultobj = 0;
34425 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34426 wxTreeItemId *arg2 = 0 ;
34427 wxFont result;
34428 void *argp1 = 0 ;
34429 int res1 = 0 ;
34430 void *argp2 = 0 ;
34431 int res2 = 0 ;
34432 PyObject * obj0 = 0 ;
34433 PyObject * obj1 = 0 ;
34434 char * kwnames[] = {
34435 (char *) "self",(char *) "item", NULL
34436 };
34437
34438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
34439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34440 if (!SWIG_IsOK(res1)) {
34441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34442 }
34443 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34444 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34445 if (!SWIG_IsOK(res2)) {
34446 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34447 }
34448 if (!argp2) {
34449 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34450 }
34451 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34452 {
34453 PyThreadState* __tstate = wxPyBeginAllowThreads();
34454 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
34455 wxPyEndAllowThreads(__tstate);
34456 if (PyErr_Occurred()) SWIG_fail;
34457 }
34458 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
34459 return resultobj;
34460 fail:
34461 return NULL;
34462 }
34463
34464
34465 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34466 PyObject *resultobj = 0;
34467 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34468 wxTreeItemId *arg2 = 0 ;
34469 wxString *arg3 = 0 ;
34470 void *argp1 = 0 ;
34471 int res1 = 0 ;
34472 void *argp2 = 0 ;
34473 int res2 = 0 ;
34474 bool temp3 = false ;
34475 PyObject * obj0 = 0 ;
34476 PyObject * obj1 = 0 ;
34477 PyObject * obj2 = 0 ;
34478 char * kwnames[] = {
34479 (char *) "self",(char *) "item",(char *) "text", NULL
34480 };
34481
34482 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34483 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34484 if (!SWIG_IsOK(res1)) {
34485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34486 }
34487 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34488 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34489 if (!SWIG_IsOK(res2)) {
34490 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34491 }
34492 if (!argp2) {
34493 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34494 }
34495 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34496 {
34497 arg3 = wxString_in_helper(obj2);
34498 if (arg3 == NULL) SWIG_fail;
34499 temp3 = true;
34500 }
34501 {
34502 PyThreadState* __tstate = wxPyBeginAllowThreads();
34503 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
34504 wxPyEndAllowThreads(__tstate);
34505 if (PyErr_Occurred()) SWIG_fail;
34506 }
34507 resultobj = SWIG_Py_Void();
34508 {
34509 if (temp3)
34510 delete arg3;
34511 }
34512 return resultobj;
34513 fail:
34514 {
34515 if (temp3)
34516 delete arg3;
34517 }
34518 return NULL;
34519 }
34520
34521
34522 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34523 PyObject *resultobj = 0;
34524 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34525 wxTreeItemId *arg2 = 0 ;
34526 int arg3 ;
34527 wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34528 void *argp1 = 0 ;
34529 int res1 = 0 ;
34530 void *argp2 = 0 ;
34531 int res2 = 0 ;
34532 int val3 ;
34533 int ecode3 = 0 ;
34534 int val4 ;
34535 int ecode4 = 0 ;
34536 PyObject * obj0 = 0 ;
34537 PyObject * obj1 = 0 ;
34538 PyObject * obj2 = 0 ;
34539 PyObject * obj3 = 0 ;
34540 char * kwnames[] = {
34541 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
34542 };
34543
34544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34546 if (!SWIG_IsOK(res1)) {
34547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34548 }
34549 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34550 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34551 if (!SWIG_IsOK(res2)) {
34552 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34553 }
34554 if (!argp2) {
34555 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34556 }
34557 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34558 ecode3 = SWIG_AsVal_int(obj2, &val3);
34559 if (!SWIG_IsOK(ecode3)) {
34560 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
34561 }
34562 arg3 = static_cast< int >(val3);
34563 if (obj3) {
34564 ecode4 = SWIG_AsVal_int(obj3, &val4);
34565 if (!SWIG_IsOK(ecode4)) {
34566 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "4"" of type '" "wxTreeItemIcon""'");
34567 }
34568 arg4 = static_cast< wxTreeItemIcon >(val4);
34569 }
34570 {
34571 PyThreadState* __tstate = wxPyBeginAllowThreads();
34572 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,arg4);
34573 wxPyEndAllowThreads(__tstate);
34574 if (PyErr_Occurred()) SWIG_fail;
34575 }
34576 resultobj = SWIG_Py_Void();
34577 return resultobj;
34578 fail:
34579 return NULL;
34580 }
34581
34582
34583 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34584 PyObject *resultobj = 0;
34585 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34586 wxTreeItemId *arg2 = 0 ;
34587 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
34588 void *argp1 = 0 ;
34589 int res1 = 0 ;
34590 void *argp2 = 0 ;
34591 int res2 = 0 ;
34592 int res3 = 0 ;
34593 PyObject * obj0 = 0 ;
34594 PyObject * obj1 = 0 ;
34595 PyObject * obj2 = 0 ;
34596 char * kwnames[] = {
34597 (char *) "self",(char *) "item",(char *) "data", NULL
34598 };
34599
34600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34601 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34602 if (!SWIG_IsOK(res1)) {
34603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34604 }
34605 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34606 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34607 if (!SWIG_IsOK(res2)) {
34608 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34609 }
34610 if (!argp2) {
34611 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34612 }
34613 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34614 res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
34615 if (!SWIG_IsOK(res3)) {
34616 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemData" "', expected argument " "3"" of type '" "wxPyTreeItemData *""'");
34617 }
34618 {
34619 PyThreadState* __tstate = wxPyBeginAllowThreads();
34620 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
34621 wxPyEndAllowThreads(__tstate);
34622 if (PyErr_Occurred()) SWIG_fail;
34623 }
34624 resultobj = SWIG_Py_Void();
34625 return resultobj;
34626 fail:
34627 return NULL;
34628 }
34629
34630
34631 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34632 PyObject *resultobj = 0;
34633 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34634 wxTreeItemId *arg2 = 0 ;
34635 PyObject *arg3 = (PyObject *) 0 ;
34636 void *argp1 = 0 ;
34637 int res1 = 0 ;
34638 void *argp2 = 0 ;
34639 int res2 = 0 ;
34640 PyObject * obj0 = 0 ;
34641 PyObject * obj1 = 0 ;
34642 PyObject * obj2 = 0 ;
34643 char * kwnames[] = {
34644 (char *) "self",(char *) "item",(char *) "obj", NULL
34645 };
34646
34647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34648 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34649 if (!SWIG_IsOK(res1)) {
34650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34651 }
34652 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34653 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34654 if (!SWIG_IsOK(res2)) {
34655 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34656 }
34657 if (!argp2) {
34658 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34659 }
34660 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34661 arg3 = obj2;
34662 {
34663 PyThreadState* __tstate = wxPyBeginAllowThreads();
34664 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
34665 wxPyEndAllowThreads(__tstate);
34666 if (PyErr_Occurred()) SWIG_fail;
34667 }
34668 resultobj = SWIG_Py_Void();
34669 return resultobj;
34670 fail:
34671 return NULL;
34672 }
34673
34674
34675 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34676 PyObject *resultobj = 0;
34677 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34678 wxTreeItemId *arg2 = 0 ;
34679 bool arg3 = (bool) true ;
34680 void *argp1 = 0 ;
34681 int res1 = 0 ;
34682 void *argp2 = 0 ;
34683 int res2 = 0 ;
34684 bool val3 ;
34685 int ecode3 = 0 ;
34686 PyObject * obj0 = 0 ;
34687 PyObject * obj1 = 0 ;
34688 PyObject * obj2 = 0 ;
34689 char * kwnames[] = {
34690 (char *) "self",(char *) "item",(char *) "has", NULL
34691 };
34692
34693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34695 if (!SWIG_IsOK(res1)) {
34696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34697 }
34698 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34699 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34700 if (!SWIG_IsOK(res2)) {
34701 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34702 }
34703 if (!argp2) {
34704 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34705 }
34706 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34707 if (obj2) {
34708 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34709 if (!SWIG_IsOK(ecode3)) {
34710 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "3"" of type '" "bool""'");
34711 }
34712 arg3 = static_cast< bool >(val3);
34713 }
34714 {
34715 PyThreadState* __tstate = wxPyBeginAllowThreads();
34716 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
34717 wxPyEndAllowThreads(__tstate);
34718 if (PyErr_Occurred()) SWIG_fail;
34719 }
34720 resultobj = SWIG_Py_Void();
34721 return resultobj;
34722 fail:
34723 return NULL;
34724 }
34725
34726
34727 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34728 PyObject *resultobj = 0;
34729 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34730 wxTreeItemId *arg2 = 0 ;
34731 bool arg3 = (bool) true ;
34732 void *argp1 = 0 ;
34733 int res1 = 0 ;
34734 void *argp2 = 0 ;
34735 int res2 = 0 ;
34736 bool val3 ;
34737 int ecode3 = 0 ;
34738 PyObject * obj0 = 0 ;
34739 PyObject * obj1 = 0 ;
34740 PyObject * obj2 = 0 ;
34741 char * kwnames[] = {
34742 (char *) "self",(char *) "item",(char *) "bold", NULL
34743 };
34744
34745 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34746 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34747 if (!SWIG_IsOK(res1)) {
34748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34749 }
34750 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34751 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34752 if (!SWIG_IsOK(res2)) {
34753 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34754 }
34755 if (!argp2) {
34756 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34757 }
34758 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34759 if (obj2) {
34760 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34761 if (!SWIG_IsOK(ecode3)) {
34762 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "3"" of type '" "bool""'");
34763 }
34764 arg3 = static_cast< bool >(val3);
34765 }
34766 {
34767 PyThreadState* __tstate = wxPyBeginAllowThreads();
34768 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
34769 wxPyEndAllowThreads(__tstate);
34770 if (PyErr_Occurred()) SWIG_fail;
34771 }
34772 resultobj = SWIG_Py_Void();
34773 return resultobj;
34774 fail:
34775 return NULL;
34776 }
34777
34778
34779 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34780 PyObject *resultobj = 0;
34781 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34782 wxTreeItemId *arg2 = 0 ;
34783 bool arg3 = (bool) true ;
34784 void *argp1 = 0 ;
34785 int res1 = 0 ;
34786 void *argp2 = 0 ;
34787 int res2 = 0 ;
34788 bool val3 ;
34789 int ecode3 = 0 ;
34790 PyObject * obj0 = 0 ;
34791 PyObject * obj1 = 0 ;
34792 PyObject * obj2 = 0 ;
34793 char * kwnames[] = {
34794 (char *) "self",(char *) "item",(char *) "highlight", NULL
34795 };
34796
34797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34799 if (!SWIG_IsOK(res1)) {
34800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34801 }
34802 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34803 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34804 if (!SWIG_IsOK(res2)) {
34805 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34806 }
34807 if (!argp2) {
34808 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34809 }
34810 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34811 if (obj2) {
34812 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34813 if (!SWIG_IsOK(ecode3)) {
34814 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "3"" of type '" "bool""'");
34815 }
34816 arg3 = static_cast< bool >(val3);
34817 }
34818 {
34819 PyThreadState* __tstate = wxPyBeginAllowThreads();
34820 (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3);
34821 wxPyEndAllowThreads(__tstate);
34822 if (PyErr_Occurred()) SWIG_fail;
34823 }
34824 resultobj = SWIG_Py_Void();
34825 return resultobj;
34826 fail:
34827 return NULL;
34828 }
34829
34830
34831 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34832 PyObject *resultobj = 0;
34833 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34834 wxTreeItemId *arg2 = 0 ;
34835 wxColour *arg3 = 0 ;
34836 void *argp1 = 0 ;
34837 int res1 = 0 ;
34838 void *argp2 = 0 ;
34839 int res2 = 0 ;
34840 wxColour temp3 ;
34841 PyObject * obj0 = 0 ;
34842 PyObject * obj1 = 0 ;
34843 PyObject * obj2 = 0 ;
34844 char * kwnames[] = {
34845 (char *) "self",(char *) "item",(char *) "col", NULL
34846 };
34847
34848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34850 if (!SWIG_IsOK(res1)) {
34851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34852 }
34853 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34854 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34855 if (!SWIG_IsOK(res2)) {
34856 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34857 }
34858 if (!argp2) {
34859 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34860 }
34861 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34862 {
34863 arg3 = &temp3;
34864 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
34865 }
34866 {
34867 PyThreadState* __tstate = wxPyBeginAllowThreads();
34868 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
34869 wxPyEndAllowThreads(__tstate);
34870 if (PyErr_Occurred()) SWIG_fail;
34871 }
34872 resultobj = SWIG_Py_Void();
34873 return resultobj;
34874 fail:
34875 return NULL;
34876 }
34877
34878
34879 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34880 PyObject *resultobj = 0;
34881 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34882 wxTreeItemId *arg2 = 0 ;
34883 wxColour *arg3 = 0 ;
34884 void *argp1 = 0 ;
34885 int res1 = 0 ;
34886 void *argp2 = 0 ;
34887 int res2 = 0 ;
34888 wxColour temp3 ;
34889 PyObject * obj0 = 0 ;
34890 PyObject * obj1 = 0 ;
34891 PyObject * obj2 = 0 ;
34892 char * kwnames[] = {
34893 (char *) "self",(char *) "item",(char *) "col", NULL
34894 };
34895
34896 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34897 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34898 if (!SWIG_IsOK(res1)) {
34899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34900 }
34901 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34902 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34903 if (!SWIG_IsOK(res2)) {
34904 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34905 }
34906 if (!argp2) {
34907 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34908 }
34909 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34910 {
34911 arg3 = &temp3;
34912 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
34913 }
34914 {
34915 PyThreadState* __tstate = wxPyBeginAllowThreads();
34916 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
34917 wxPyEndAllowThreads(__tstate);
34918 if (PyErr_Occurred()) SWIG_fail;
34919 }
34920 resultobj = SWIG_Py_Void();
34921 return resultobj;
34922 fail:
34923 return NULL;
34924 }
34925
34926
34927 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34928 PyObject *resultobj = 0;
34929 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34930 wxTreeItemId *arg2 = 0 ;
34931 wxFont *arg3 = 0 ;
34932 void *argp1 = 0 ;
34933 int res1 = 0 ;
34934 void *argp2 = 0 ;
34935 int res2 = 0 ;
34936 void *argp3 = 0 ;
34937 int res3 = 0 ;
34938 PyObject * obj0 = 0 ;
34939 PyObject * obj1 = 0 ;
34940 PyObject * obj2 = 0 ;
34941 char * kwnames[] = {
34942 (char *) "self",(char *) "item",(char *) "font", NULL
34943 };
34944
34945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34947 if (!SWIG_IsOK(res1)) {
34948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34949 }
34950 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34951 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34952 if (!SWIG_IsOK(res2)) {
34953 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34954 }
34955 if (!argp2) {
34956 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34957 }
34958 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34959 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
34960 if (!SWIG_IsOK(res3)) {
34961 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
34962 }
34963 if (!argp3) {
34964 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
34965 }
34966 arg3 = reinterpret_cast< wxFont * >(argp3);
34967 {
34968 PyThreadState* __tstate = wxPyBeginAllowThreads();
34969 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
34970 wxPyEndAllowThreads(__tstate);
34971 if (PyErr_Occurred()) SWIG_fail;
34972 }
34973 resultobj = SWIG_Py_Void();
34974 return resultobj;
34975 fail:
34976 return NULL;
34977 }
34978
34979
34980 SWIGINTERN PyObject *_wrap_TreeCtrl_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34981 PyObject *resultobj = 0;
34982 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34983 wxTreeItemId *arg2 = 0 ;
34984 bool result;
34985 void *argp1 = 0 ;
34986 int res1 = 0 ;
34987 void *argp2 = 0 ;
34988 int res2 = 0 ;
34989 PyObject * obj0 = 0 ;
34990 PyObject * obj1 = 0 ;
34991 char * kwnames[] = {
34992 (char *) "self",(char *) "item", NULL
34993 };
34994
34995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail;
34996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34997 if (!SWIG_IsOK(res1)) {
34998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34999 }
35000 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35001 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35002 if (!SWIG_IsOK(res2)) {
35003 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35004 }
35005 if (!argp2) {
35006 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35007 }
35008 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35009 {
35010 PyThreadState* __tstate = wxPyBeginAllowThreads();
35011 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
35012 wxPyEndAllowThreads(__tstate);
35013 if (PyErr_Occurred()) SWIG_fail;
35014 }
35015 {
35016 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35017 }
35018 return resultobj;
35019 fail:
35020 return NULL;
35021 }
35022
35023
35024 SWIGINTERN PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35025 PyObject *resultobj = 0;
35026 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35027 wxTreeItemId *arg2 = 0 ;
35028 bool result;
35029 void *argp1 = 0 ;
35030 int res1 = 0 ;
35031 void *argp2 = 0 ;
35032 int res2 = 0 ;
35033 PyObject * obj0 = 0 ;
35034 PyObject * obj1 = 0 ;
35035 char * kwnames[] = {
35036 (char *) "self",(char *) "item", NULL
35037 };
35038
35039 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) SWIG_fail;
35040 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35041 if (!SWIG_IsOK(res1)) {
35042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35043 }
35044 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35045 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35046 if (!SWIG_IsOK(res2)) {
35047 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35048 }
35049 if (!argp2) {
35050 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35051 }
35052 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35053 {
35054 PyThreadState* __tstate = wxPyBeginAllowThreads();
35055 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
35056 wxPyEndAllowThreads(__tstate);
35057 if (PyErr_Occurred()) SWIG_fail;
35058 }
35059 {
35060 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35061 }
35062 return resultobj;
35063 fail:
35064 return NULL;
35065 }
35066
35067
35068 SWIGINTERN PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35069 PyObject *resultobj = 0;
35070 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35071 wxTreeItemId *arg2 = 0 ;
35072 bool result;
35073 void *argp1 = 0 ;
35074 int res1 = 0 ;
35075 void *argp2 = 0 ;
35076 int res2 = 0 ;
35077 PyObject * obj0 = 0 ;
35078 PyObject * obj1 = 0 ;
35079 char * kwnames[] = {
35080 (char *) "self",(char *) "item", NULL
35081 };
35082
35083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
35084 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35085 if (!SWIG_IsOK(res1)) {
35086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35087 }
35088 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35089 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35090 if (!SWIG_IsOK(res2)) {
35091 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35092 }
35093 if (!argp2) {
35094 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35095 }
35096 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35097 {
35098 PyThreadState* __tstate = wxPyBeginAllowThreads();
35099 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
35100 wxPyEndAllowThreads(__tstate);
35101 if (PyErr_Occurred()) SWIG_fail;
35102 }
35103 {
35104 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35105 }
35106 return resultobj;
35107 fail:
35108 return NULL;
35109 }
35110
35111
35112 SWIGINTERN PyObject *_wrap_TreeCtrl_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35113 PyObject *resultobj = 0;
35114 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35115 wxTreeItemId *arg2 = 0 ;
35116 bool result;
35117 void *argp1 = 0 ;
35118 int res1 = 0 ;
35119 void *argp2 = 0 ;
35120 int res2 = 0 ;
35121 PyObject * obj0 = 0 ;
35122 PyObject * obj1 = 0 ;
35123 char * kwnames[] = {
35124 (char *) "self",(char *) "item", NULL
35125 };
35126
35127 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
35128 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35129 if (!SWIG_IsOK(res1)) {
35130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsSelected" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35131 }
35132 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35133 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35134 if (!SWIG_IsOK(res2)) {
35135 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35136 }
35137 if (!argp2) {
35138 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35139 }
35140 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35141 {
35142 PyThreadState* __tstate = wxPyBeginAllowThreads();
35143 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
35144 wxPyEndAllowThreads(__tstate);
35145 if (PyErr_Occurred()) SWIG_fail;
35146 }
35147 {
35148 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35149 }
35150 return resultobj;
35151 fail:
35152 return NULL;
35153 }
35154
35155
35156 SWIGINTERN PyObject *_wrap_TreeCtrl_IsBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35157 PyObject *resultobj = 0;
35158 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35159 wxTreeItemId *arg2 = 0 ;
35160 bool result;
35161 void *argp1 = 0 ;
35162 int res1 = 0 ;
35163 void *argp2 = 0 ;
35164 int res2 = 0 ;
35165 PyObject * obj0 = 0 ;
35166 PyObject * obj1 = 0 ;
35167 char * kwnames[] = {
35168 (char *) "self",(char *) "item", NULL
35169 };
35170
35171 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) SWIG_fail;
35172 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35173 if (!SWIG_IsOK(res1)) {
35174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35175 }
35176 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35177 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35178 if (!SWIG_IsOK(res2)) {
35179 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35180 }
35181 if (!argp2) {
35182 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35183 }
35184 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35185 {
35186 PyThreadState* __tstate = wxPyBeginAllowThreads();
35187 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
35188 wxPyEndAllowThreads(__tstate);
35189 if (PyErr_Occurred()) SWIG_fail;
35190 }
35191 {
35192 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35193 }
35194 return resultobj;
35195 fail:
35196 return NULL;
35197 }
35198
35199
35200 SWIGINTERN PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35201 PyObject *resultobj = 0;
35202 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35203 wxTreeItemId *arg2 = 0 ;
35204 bool arg3 = (bool) true ;
35205 size_t result;
35206 void *argp1 = 0 ;
35207 int res1 = 0 ;
35208 void *argp2 = 0 ;
35209 int res2 = 0 ;
35210 bool val3 ;
35211 int ecode3 = 0 ;
35212 PyObject * obj0 = 0 ;
35213 PyObject * obj1 = 0 ;
35214 PyObject * obj2 = 0 ;
35215 char * kwnames[] = {
35216 (char *) "self",(char *) "item",(char *) "recursively", NULL
35217 };
35218
35219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35221 if (!SWIG_IsOK(res1)) {
35222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35223 }
35224 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35225 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35226 if (!SWIG_IsOK(res2)) {
35227 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35228 }
35229 if (!argp2) {
35230 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35231 }
35232 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35233 if (obj2) {
35234 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35235 if (!SWIG_IsOK(ecode3)) {
35236 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "3"" of type '" "bool""'");
35237 }
35238 arg3 = static_cast< bool >(val3);
35239 }
35240 {
35241 PyThreadState* __tstate = wxPyBeginAllowThreads();
35242 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
35243 wxPyEndAllowThreads(__tstate);
35244 if (PyErr_Occurred()) SWIG_fail;
35245 }
35246 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
35247 return resultobj;
35248 fail:
35249 return NULL;
35250 }
35251
35252
35253 SWIGINTERN PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35254 PyObject *resultobj = 0;
35255 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35256 wxTreeItemId result;
35257 void *argp1 = 0 ;
35258 int res1 = 0 ;
35259 PyObject *swig_obj[1] ;
35260
35261 if (!args) SWIG_fail;
35262 swig_obj[0] = args;
35263 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35264 if (!SWIG_IsOK(res1)) {
35265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetRootItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35266 }
35267 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35268 {
35269 PyThreadState* __tstate = wxPyBeginAllowThreads();
35270 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
35271 wxPyEndAllowThreads(__tstate);
35272 if (PyErr_Occurred()) SWIG_fail;
35273 }
35274 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35275 return resultobj;
35276 fail:
35277 return NULL;
35278 }
35279
35280
35281 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35282 PyObject *resultobj = 0;
35283 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35284 wxTreeItemId result;
35285 void *argp1 = 0 ;
35286 int res1 = 0 ;
35287 PyObject *swig_obj[1] ;
35288
35289 if (!args) SWIG_fail;
35290 swig_obj[0] = args;
35291 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35292 if (!SWIG_IsOK(res1)) {
35293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35294 }
35295 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35296 {
35297 PyThreadState* __tstate = wxPyBeginAllowThreads();
35298 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
35299 wxPyEndAllowThreads(__tstate);
35300 if (PyErr_Occurred()) SWIG_fail;
35301 }
35302 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35303 return resultobj;
35304 fail:
35305 return NULL;
35306 }
35307
35308
35309 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35310 PyObject *resultobj = 0;
35311 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35312 PyObject *result = 0 ;
35313 void *argp1 = 0 ;
35314 int res1 = 0 ;
35315 PyObject *swig_obj[1] ;
35316
35317 if (!args) SWIG_fail;
35318 swig_obj[0] = args;
35319 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35320 if (!SWIG_IsOK(res1)) {
35321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelections" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35322 }
35323 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35324 {
35325 PyThreadState* __tstate = wxPyBeginAllowThreads();
35326 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
35327 wxPyEndAllowThreads(__tstate);
35328 if (PyErr_Occurred()) SWIG_fail;
35329 }
35330 resultobj = result;
35331 return resultobj;
35332 fail:
35333 return NULL;
35334 }
35335
35336
35337 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35338 PyObject *resultobj = 0;
35339 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35340 wxTreeItemId *arg2 = 0 ;
35341 wxTreeItemId result;
35342 void *argp1 = 0 ;
35343 int res1 = 0 ;
35344 void *argp2 = 0 ;
35345 int res2 = 0 ;
35346 PyObject * obj0 = 0 ;
35347 PyObject * obj1 = 0 ;
35348 char * kwnames[] = {
35349 (char *) "self",(char *) "item", NULL
35350 };
35351
35352 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) SWIG_fail;
35353 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35354 if (!SWIG_IsOK(res1)) {
35355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35356 }
35357 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35358 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35359 if (!SWIG_IsOK(res2)) {
35360 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35361 }
35362 if (!argp2) {
35363 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35364 }
35365 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35366 {
35367 PyThreadState* __tstate = wxPyBeginAllowThreads();
35368 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
35369 wxPyEndAllowThreads(__tstate);
35370 if (PyErr_Occurred()) SWIG_fail;
35371 }
35372 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35373 return resultobj;
35374 fail:
35375 return NULL;
35376 }
35377
35378
35379 SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35380 PyObject *resultobj = 0;
35381 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35382 wxTreeItemId *arg2 = 0 ;
35383 PyObject *result = 0 ;
35384 void *argp1 = 0 ;
35385 int res1 = 0 ;
35386 void *argp2 = 0 ;
35387 int res2 = 0 ;
35388 PyObject * obj0 = 0 ;
35389 PyObject * obj1 = 0 ;
35390 char * kwnames[] = {
35391 (char *) "self",(char *) "item", NULL
35392 };
35393
35394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) SWIG_fail;
35395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35396 if (!SWIG_IsOK(res1)) {
35397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35398 }
35399 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35400 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35401 if (!SWIG_IsOK(res2)) {
35402 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35403 }
35404 if (!argp2) {
35405 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35406 }
35407 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35408 {
35409 PyThreadState* __tstate = wxPyBeginAllowThreads();
35410 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
35411 wxPyEndAllowThreads(__tstate);
35412 if (PyErr_Occurred()) SWIG_fail;
35413 }
35414 resultobj = result;
35415 return resultobj;
35416 fail:
35417 return NULL;
35418 }
35419
35420
35421 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35422 PyObject *resultobj = 0;
35423 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35424 wxTreeItemId *arg2 = 0 ;
35425 void *arg3 = (void *) 0 ;
35426 PyObject *result = 0 ;
35427 void *argp1 = 0 ;
35428 int res1 = 0 ;
35429 void *argp2 = 0 ;
35430 int res2 = 0 ;
35431 int res3 ;
35432 PyObject * obj0 = 0 ;
35433 PyObject * obj1 = 0 ;
35434 PyObject * obj2 = 0 ;
35435 char * kwnames[] = {
35436 (char *) "self",(char *) "item",(char *) "cookie", NULL
35437 };
35438
35439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35440 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35441 if (!SWIG_IsOK(res1)) {
35442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35443 }
35444 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35445 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35446 if (!SWIG_IsOK(res2)) {
35447 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35448 }
35449 if (!argp2) {
35450 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35451 }
35452 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35453 res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0);
35454 if (!SWIG_IsOK(res3)) {
35455 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "3"" of type '" "void *""'");
35456 }
35457 {
35458 PyThreadState* __tstate = wxPyBeginAllowThreads();
35459 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
35460 wxPyEndAllowThreads(__tstate);
35461 if (PyErr_Occurred()) SWIG_fail;
35462 }
35463 resultobj = result;
35464 return resultobj;
35465 fail:
35466 return NULL;
35467 }
35468
35469
35470 SWIGINTERN PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35471 PyObject *resultobj = 0;
35472 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35473 wxTreeItemId *arg2 = 0 ;
35474 wxTreeItemId result;
35475 void *argp1 = 0 ;
35476 int res1 = 0 ;
35477 void *argp2 = 0 ;
35478 int res2 = 0 ;
35479 PyObject * obj0 = 0 ;
35480 PyObject * obj1 = 0 ;
35481 char * kwnames[] = {
35482 (char *) "self",(char *) "item", NULL
35483 };
35484
35485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) SWIG_fail;
35486 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35487 if (!SWIG_IsOK(res1)) {
35488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35489 }
35490 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35491 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35492 if (!SWIG_IsOK(res2)) {
35493 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35494 }
35495 if (!argp2) {
35496 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35497 }
35498 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35499 {
35500 PyThreadState* __tstate = wxPyBeginAllowThreads();
35501 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
35502 wxPyEndAllowThreads(__tstate);
35503 if (PyErr_Occurred()) SWIG_fail;
35504 }
35505 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35506 return resultobj;
35507 fail:
35508 return NULL;
35509 }
35510
35511
35512 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35513 PyObject *resultobj = 0;
35514 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35515 wxTreeItemId *arg2 = 0 ;
35516 wxTreeItemId result;
35517 void *argp1 = 0 ;
35518 int res1 = 0 ;
35519 void *argp2 = 0 ;
35520 int res2 = 0 ;
35521 PyObject * obj0 = 0 ;
35522 PyObject * obj1 = 0 ;
35523 char * kwnames[] = {
35524 (char *) "self",(char *) "item", NULL
35525 };
35526
35527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35529 if (!SWIG_IsOK(res1)) {
35530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35531 }
35532 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35533 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35534 if (!SWIG_IsOK(res2)) {
35535 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35536 }
35537 if (!argp2) {
35538 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35539 }
35540 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35541 {
35542 PyThreadState* __tstate = wxPyBeginAllowThreads();
35543 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
35544 wxPyEndAllowThreads(__tstate);
35545 if (PyErr_Occurred()) SWIG_fail;
35546 }
35547 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35548 return resultobj;
35549 fail:
35550 return NULL;
35551 }
35552
35553
35554 SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35555 PyObject *resultobj = 0;
35556 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35557 wxTreeItemId *arg2 = 0 ;
35558 wxTreeItemId result;
35559 void *argp1 = 0 ;
35560 int res1 = 0 ;
35561 void *argp2 = 0 ;
35562 int res2 = 0 ;
35563 PyObject * obj0 = 0 ;
35564 PyObject * obj1 = 0 ;
35565 char * kwnames[] = {
35566 (char *) "self",(char *) "item", NULL
35567 };
35568
35569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35571 if (!SWIG_IsOK(res1)) {
35572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35573 }
35574 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35575 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35576 if (!SWIG_IsOK(res2)) {
35577 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35578 }
35579 if (!argp2) {
35580 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35581 }
35582 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35583 {
35584 PyThreadState* __tstate = wxPyBeginAllowThreads();
35585 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
35586 wxPyEndAllowThreads(__tstate);
35587 if (PyErr_Occurred()) SWIG_fail;
35588 }
35589 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35590 return resultobj;
35591 fail:
35592 return NULL;
35593 }
35594
35595
35596 SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35597 PyObject *resultobj = 0;
35598 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35599 wxTreeItemId result;
35600 void *argp1 = 0 ;
35601 int res1 = 0 ;
35602 PyObject *swig_obj[1] ;
35603
35604 if (!args) SWIG_fail;
35605 swig_obj[0] = args;
35606 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35607 if (!SWIG_IsOK(res1)) {
35608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstVisibleItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35609 }
35610 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35611 {
35612 PyThreadState* __tstate = wxPyBeginAllowThreads();
35613 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
35614 wxPyEndAllowThreads(__tstate);
35615 if (PyErr_Occurred()) SWIG_fail;
35616 }
35617 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35618 return resultobj;
35619 fail:
35620 return NULL;
35621 }
35622
35623
35624 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35625 PyObject *resultobj = 0;
35626 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35627 wxTreeItemId *arg2 = 0 ;
35628 wxTreeItemId result;
35629 void *argp1 = 0 ;
35630 int res1 = 0 ;
35631 void *argp2 = 0 ;
35632 int res2 = 0 ;
35633 PyObject * obj0 = 0 ;
35634 PyObject * obj1 = 0 ;
35635 char * kwnames[] = {
35636 (char *) "self",(char *) "item", NULL
35637 };
35638
35639 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35640 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35641 if (!SWIG_IsOK(res1)) {
35642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35643 }
35644 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35645 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35646 if (!SWIG_IsOK(res2)) {
35647 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35648 }
35649 if (!argp2) {
35650 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35651 }
35652 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35653 {
35654 PyThreadState* __tstate = wxPyBeginAllowThreads();
35655 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
35656 wxPyEndAllowThreads(__tstate);
35657 if (PyErr_Occurred()) SWIG_fail;
35658 }
35659 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35660 return resultobj;
35661 fail:
35662 return NULL;
35663 }
35664
35665
35666 SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35667 PyObject *resultobj = 0;
35668 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35669 wxTreeItemId *arg2 = 0 ;
35670 wxTreeItemId result;
35671 void *argp1 = 0 ;
35672 int res1 = 0 ;
35673 void *argp2 = 0 ;
35674 int res2 = 0 ;
35675 PyObject * obj0 = 0 ;
35676 PyObject * obj1 = 0 ;
35677 char * kwnames[] = {
35678 (char *) "self",(char *) "item", NULL
35679 };
35680
35681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35683 if (!SWIG_IsOK(res1)) {
35684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35685 }
35686 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35687 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35688 if (!SWIG_IsOK(res2)) {
35689 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35690 }
35691 if (!argp2) {
35692 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35693 }
35694 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35695 {
35696 PyThreadState* __tstate = wxPyBeginAllowThreads();
35697 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
35698 wxPyEndAllowThreads(__tstate);
35699 if (PyErr_Occurred()) SWIG_fail;
35700 }
35701 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35702 return resultobj;
35703 fail:
35704 return NULL;
35705 }
35706
35707
35708 SWIGINTERN PyObject *_wrap_TreeCtrl_AddRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35709 PyObject *resultobj = 0;
35710 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35711 wxString *arg2 = 0 ;
35712 int arg3 = (int) -1 ;
35713 int arg4 = (int) -1 ;
35714 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
35715 wxTreeItemId result;
35716 void *argp1 = 0 ;
35717 int res1 = 0 ;
35718 bool temp2 = false ;
35719 int val3 ;
35720 int ecode3 = 0 ;
35721 int val4 ;
35722 int ecode4 = 0 ;
35723 int res5 = 0 ;
35724 PyObject * obj0 = 0 ;
35725 PyObject * obj1 = 0 ;
35726 PyObject * obj2 = 0 ;
35727 PyObject * obj3 = 0 ;
35728 PyObject * obj4 = 0 ;
35729 char * kwnames[] = {
35730 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35731 };
35732
35733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35735 if (!SWIG_IsOK(res1)) {
35736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AddRoot" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35737 }
35738 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35739 {
35740 arg2 = wxString_in_helper(obj1);
35741 if (arg2 == NULL) SWIG_fail;
35742 temp2 = true;
35743 }
35744 if (obj2) {
35745 ecode3 = SWIG_AsVal_int(obj2, &val3);
35746 if (!SWIG_IsOK(ecode3)) {
35747 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_AddRoot" "', expected argument " "3"" of type '" "int""'");
35748 }
35749 arg3 = static_cast< int >(val3);
35750 }
35751 if (obj3) {
35752 ecode4 = SWIG_AsVal_int(obj3, &val4);
35753 if (!SWIG_IsOK(ecode4)) {
35754 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AddRoot" "', expected argument " "4"" of type '" "int""'");
35755 }
35756 arg4 = static_cast< int >(val4);
35757 }
35758 if (obj4) {
35759 res5 = SWIG_ConvertPtr(obj4, SWIG_as_voidptrptr(&arg5), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35760 if (!SWIG_IsOK(res5)) {
35761 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "TreeCtrl_AddRoot" "', expected argument " "5"" of type '" "wxPyTreeItemData *""'");
35762 }
35763 }
35764 {
35765 PyThreadState* __tstate = wxPyBeginAllowThreads();
35766 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
35767 wxPyEndAllowThreads(__tstate);
35768 if (PyErr_Occurred()) SWIG_fail;
35769 }
35770 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35771 {
35772 if (temp2)
35773 delete arg2;
35774 }
35775 return resultobj;
35776 fail:
35777 {
35778 if (temp2)
35779 delete arg2;
35780 }
35781 return NULL;
35782 }
35783
35784
35785 SWIGINTERN PyObject *_wrap_TreeCtrl_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35786 PyObject *resultobj = 0;
35787 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35788 wxTreeItemId *arg2 = 0 ;
35789 wxString *arg3 = 0 ;
35790 int arg4 = (int) -1 ;
35791 int arg5 = (int) -1 ;
35792 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
35793 wxTreeItemId result;
35794 void *argp1 = 0 ;
35795 int res1 = 0 ;
35796 void *argp2 = 0 ;
35797 int res2 = 0 ;
35798 bool temp3 = false ;
35799 int val4 ;
35800 int ecode4 = 0 ;
35801 int val5 ;
35802 int ecode5 = 0 ;
35803 int res6 = 0 ;
35804 PyObject * obj0 = 0 ;
35805 PyObject * obj1 = 0 ;
35806 PyObject * obj2 = 0 ;
35807 PyObject * obj3 = 0 ;
35808 PyObject * obj4 = 0 ;
35809 PyObject * obj5 = 0 ;
35810 char * kwnames[] = {
35811 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35812 };
35813
35814 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
35815 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35816 if (!SWIG_IsOK(res1)) {
35817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_PrependItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35818 }
35819 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35820 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35821 if (!SWIG_IsOK(res2)) {
35822 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35823 }
35824 if (!argp2) {
35825 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35826 }
35827 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35828 {
35829 arg3 = wxString_in_helper(obj2);
35830 if (arg3 == NULL) SWIG_fail;
35831 temp3 = true;
35832 }
35833 if (obj3) {
35834 ecode4 = SWIG_AsVal_int(obj3, &val4);
35835 if (!SWIG_IsOK(ecode4)) {
35836 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_PrependItem" "', expected argument " "4"" of type '" "int""'");
35837 }
35838 arg4 = static_cast< int >(val4);
35839 }
35840 if (obj4) {
35841 ecode5 = SWIG_AsVal_int(obj4, &val5);
35842 if (!SWIG_IsOK(ecode5)) {
35843 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_PrependItem" "', expected argument " "5"" of type '" "int""'");
35844 }
35845 arg5 = static_cast< int >(val5);
35846 }
35847 if (obj5) {
35848 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35849 if (!SWIG_IsOK(res6)) {
35850 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_PrependItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
35851 }
35852 }
35853 {
35854 PyThreadState* __tstate = wxPyBeginAllowThreads();
35855 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
35856 wxPyEndAllowThreads(__tstate);
35857 if (PyErr_Occurred()) SWIG_fail;
35858 }
35859 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35860 {
35861 if (temp3)
35862 delete arg3;
35863 }
35864 return resultobj;
35865 fail:
35866 {
35867 if (temp3)
35868 delete arg3;
35869 }
35870 return NULL;
35871 }
35872
35873
35874 SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35875 PyObject *resultobj = 0;
35876 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35877 wxTreeItemId *arg2 = 0 ;
35878 wxTreeItemId *arg3 = 0 ;
35879 wxString *arg4 = 0 ;
35880 int arg5 = (int) -1 ;
35881 int arg6 = (int) -1 ;
35882 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
35883 wxTreeItemId result;
35884 void *argp1 = 0 ;
35885 int res1 = 0 ;
35886 void *argp2 = 0 ;
35887 int res2 = 0 ;
35888 void *argp3 = 0 ;
35889 int res3 = 0 ;
35890 bool temp4 = false ;
35891 int val5 ;
35892 int ecode5 = 0 ;
35893 int val6 ;
35894 int ecode6 = 0 ;
35895 int res7 = 0 ;
35896 PyObject * obj0 = 0 ;
35897 PyObject * obj1 = 0 ;
35898 PyObject * obj2 = 0 ;
35899 PyObject * obj3 = 0 ;
35900 PyObject * obj4 = 0 ;
35901 PyObject * obj5 = 0 ;
35902 PyObject * obj6 = 0 ;
35903 char * kwnames[] = {
35904 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35905 };
35906
35907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35908 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35909 if (!SWIG_IsOK(res1)) {
35910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35911 }
35912 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35913 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35914 if (!SWIG_IsOK(res2)) {
35915 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35916 }
35917 if (!argp2) {
35918 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35919 }
35920 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35921 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35922 if (!SWIG_IsOK(res3)) {
35923 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
35924 }
35925 if (!argp3) {
35926 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
35927 }
35928 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
35929 {
35930 arg4 = wxString_in_helper(obj3);
35931 if (arg4 == NULL) SWIG_fail;
35932 temp4 = true;
35933 }
35934 if (obj4) {
35935 ecode5 = SWIG_AsVal_int(obj4, &val5);
35936 if (!SWIG_IsOK(ecode5)) {
35937 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItem" "', expected argument " "5"" of type '" "int""'");
35938 }
35939 arg5 = static_cast< int >(val5);
35940 }
35941 if (obj5) {
35942 ecode6 = SWIG_AsVal_int(obj5, &val6);
35943 if (!SWIG_IsOK(ecode6)) {
35944 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItem" "', expected argument " "6"" of type '" "int""'");
35945 }
35946 arg6 = static_cast< int >(val6);
35947 }
35948 if (obj6) {
35949 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35950 if (!SWIG_IsOK(res7)) {
35951 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItem" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
35952 }
35953 }
35954 {
35955 PyThreadState* __tstate = wxPyBeginAllowThreads();
35956 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
35957 wxPyEndAllowThreads(__tstate);
35958 if (PyErr_Occurred()) SWIG_fail;
35959 }
35960 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35961 {
35962 if (temp4)
35963 delete arg4;
35964 }
35965 return resultobj;
35966 fail:
35967 {
35968 if (temp4)
35969 delete arg4;
35970 }
35971 return NULL;
35972 }
35973
35974
35975 SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35976 PyObject *resultobj = 0;
35977 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35978 wxTreeItemId *arg2 = 0 ;
35979 size_t arg3 ;
35980 wxString *arg4 = 0 ;
35981 int arg5 = (int) -1 ;
35982 int arg6 = (int) -1 ;
35983 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
35984 wxTreeItemId result;
35985 void *argp1 = 0 ;
35986 int res1 = 0 ;
35987 void *argp2 = 0 ;
35988 int res2 = 0 ;
35989 size_t val3 ;
35990 int ecode3 = 0 ;
35991 bool temp4 = false ;
35992 int val5 ;
35993 int ecode5 = 0 ;
35994 int val6 ;
35995 int ecode6 = 0 ;
35996 int res7 = 0 ;
35997 PyObject * obj0 = 0 ;
35998 PyObject * obj1 = 0 ;
35999 PyObject * obj2 = 0 ;
36000 PyObject * obj3 = 0 ;
36001 PyObject * obj4 = 0 ;
36002 PyObject * obj5 = 0 ;
36003 PyObject * obj6 = 0 ;
36004 char * kwnames[] = {
36005 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36006 };
36007
36008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36010 if (!SWIG_IsOK(res1)) {
36011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36012 }
36013 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36014 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36015 if (!SWIG_IsOK(res2)) {
36016 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36017 }
36018 if (!argp2) {
36019 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36020 }
36021 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36022 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
36023 if (!SWIG_IsOK(ecode3)) {
36024 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "3"" of type '" "size_t""'");
36025 }
36026 arg3 = static_cast< size_t >(val3);
36027 {
36028 arg4 = wxString_in_helper(obj3);
36029 if (arg4 == NULL) SWIG_fail;
36030 temp4 = true;
36031 }
36032 if (obj4) {
36033 ecode5 = SWIG_AsVal_int(obj4, &val5);
36034 if (!SWIG_IsOK(ecode5)) {
36035 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "5"" of type '" "int""'");
36036 }
36037 arg5 = static_cast< int >(val5);
36038 }
36039 if (obj5) {
36040 ecode6 = SWIG_AsVal_int(obj5, &val6);
36041 if (!SWIG_IsOK(ecode6)) {
36042 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "6"" of type '" "int""'");
36043 }
36044 arg6 = static_cast< int >(val6);
36045 }
36046 if (obj6) {
36047 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36048 if (!SWIG_IsOK(res7)) {
36049 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
36050 }
36051 }
36052 {
36053 PyThreadState* __tstate = wxPyBeginAllowThreads();
36054 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36055 wxPyEndAllowThreads(__tstate);
36056 if (PyErr_Occurred()) SWIG_fail;
36057 }
36058 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36059 {
36060 if (temp4)
36061 delete arg4;
36062 }
36063 return resultobj;
36064 fail:
36065 {
36066 if (temp4)
36067 delete arg4;
36068 }
36069 return NULL;
36070 }
36071
36072
36073 SWIGINTERN PyObject *_wrap_TreeCtrl_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36074 PyObject *resultobj = 0;
36075 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36076 wxTreeItemId *arg2 = 0 ;
36077 wxString *arg3 = 0 ;
36078 int arg4 = (int) -1 ;
36079 int arg5 = (int) -1 ;
36080 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
36081 wxTreeItemId result;
36082 void *argp1 = 0 ;
36083 int res1 = 0 ;
36084 void *argp2 = 0 ;
36085 int res2 = 0 ;
36086 bool temp3 = false ;
36087 int val4 ;
36088 int ecode4 = 0 ;
36089 int val5 ;
36090 int ecode5 = 0 ;
36091 int res6 = 0 ;
36092 PyObject * obj0 = 0 ;
36093 PyObject * obj1 = 0 ;
36094 PyObject * obj2 = 0 ;
36095 PyObject * obj3 = 0 ;
36096 PyObject * obj4 = 0 ;
36097 PyObject * obj5 = 0 ;
36098 char * kwnames[] = {
36099 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36100 };
36101
36102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36104 if (!SWIG_IsOK(res1)) {
36105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AppendItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36106 }
36107 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36108 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36109 if (!SWIG_IsOK(res2)) {
36110 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36111 }
36112 if (!argp2) {
36113 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36114 }
36115 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36116 {
36117 arg3 = wxString_in_helper(obj2);
36118 if (arg3 == NULL) SWIG_fail;
36119 temp3 = true;
36120 }
36121 if (obj3) {
36122 ecode4 = SWIG_AsVal_int(obj3, &val4);
36123 if (!SWIG_IsOK(ecode4)) {
36124 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AppendItem" "', expected argument " "4"" of type '" "int""'");
36125 }
36126 arg4 = static_cast< int >(val4);
36127 }
36128 if (obj4) {
36129 ecode5 = SWIG_AsVal_int(obj4, &val5);
36130 if (!SWIG_IsOK(ecode5)) {
36131 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_AppendItem" "', expected argument " "5"" of type '" "int""'");
36132 }
36133 arg5 = static_cast< int >(val5);
36134 }
36135 if (obj5) {
36136 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36137 if (!SWIG_IsOK(res6)) {
36138 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_AppendItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
36139 }
36140 }
36141 {
36142 PyThreadState* __tstate = wxPyBeginAllowThreads();
36143 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
36144 wxPyEndAllowThreads(__tstate);
36145 if (PyErr_Occurred()) SWIG_fail;
36146 }
36147 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36148 {
36149 if (temp3)
36150 delete arg3;
36151 }
36152 return resultobj;
36153 fail:
36154 {
36155 if (temp3)
36156 delete arg3;
36157 }
36158 return NULL;
36159 }
36160
36161
36162 SWIGINTERN PyObject *_wrap_TreeCtrl_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36163 PyObject *resultobj = 0;
36164 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36165 wxTreeItemId *arg2 = 0 ;
36166 void *argp1 = 0 ;
36167 int res1 = 0 ;
36168 void *argp2 = 0 ;
36169 int res2 = 0 ;
36170 PyObject * obj0 = 0 ;
36171 PyObject * obj1 = 0 ;
36172 char * kwnames[] = {
36173 (char *) "self",(char *) "item", NULL
36174 };
36175
36176 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) SWIG_fail;
36177 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36178 if (!SWIG_IsOK(res1)) {
36179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Delete" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36180 }
36181 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36182 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36183 if (!SWIG_IsOK(res2)) {
36184 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36185 }
36186 if (!argp2) {
36187 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36188 }
36189 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36190 {
36191 PyThreadState* __tstate = wxPyBeginAllowThreads();
36192 (arg1)->Delete((wxTreeItemId const &)*arg2);
36193 wxPyEndAllowThreads(__tstate);
36194 if (PyErr_Occurred()) SWIG_fail;
36195 }
36196 resultobj = SWIG_Py_Void();
36197 return resultobj;
36198 fail:
36199 return NULL;
36200 }
36201
36202
36203 SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36204 PyObject *resultobj = 0;
36205 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36206 wxTreeItemId *arg2 = 0 ;
36207 void *argp1 = 0 ;
36208 int res1 = 0 ;
36209 void *argp2 = 0 ;
36210 int res2 = 0 ;
36211 PyObject * obj0 = 0 ;
36212 PyObject * obj1 = 0 ;
36213 char * kwnames[] = {
36214 (char *) "self",(char *) "item", NULL
36215 };
36216
36217 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36218 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36219 if (!SWIG_IsOK(res1)) {
36220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36221 }
36222 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36223 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36224 if (!SWIG_IsOK(res2)) {
36225 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36226 }
36227 if (!argp2) {
36228 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36229 }
36230 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36231 {
36232 PyThreadState* __tstate = wxPyBeginAllowThreads();
36233 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
36234 wxPyEndAllowThreads(__tstate);
36235 if (PyErr_Occurred()) SWIG_fail;
36236 }
36237 resultobj = SWIG_Py_Void();
36238 return resultobj;
36239 fail:
36240 return NULL;
36241 }
36242
36243
36244 SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36245 PyObject *resultobj = 0;
36246 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36247 void *argp1 = 0 ;
36248 int res1 = 0 ;
36249 PyObject *swig_obj[1] ;
36250
36251 if (!args) SWIG_fail;
36252 swig_obj[0] = args;
36253 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36254 if (!SWIG_IsOK(res1)) {
36255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36256 }
36257 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36258 {
36259 PyThreadState* __tstate = wxPyBeginAllowThreads();
36260 (arg1)->DeleteAllItems();
36261 wxPyEndAllowThreads(__tstate);
36262 if (PyErr_Occurred()) SWIG_fail;
36263 }
36264 resultobj = SWIG_Py_Void();
36265 return resultobj;
36266 fail:
36267 return NULL;
36268 }
36269
36270
36271 SWIGINTERN PyObject *_wrap_TreeCtrl_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36272 PyObject *resultobj = 0;
36273 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36274 wxTreeItemId *arg2 = 0 ;
36275 void *argp1 = 0 ;
36276 int res1 = 0 ;
36277 void *argp2 = 0 ;
36278 int res2 = 0 ;
36279 PyObject * obj0 = 0 ;
36280 PyObject * obj1 = 0 ;
36281 char * kwnames[] = {
36282 (char *) "self",(char *) "item", NULL
36283 };
36284
36285 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) SWIG_fail;
36286 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36287 if (!SWIG_IsOK(res1)) {
36288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Expand" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36289 }
36290 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36291 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36292 if (!SWIG_IsOK(res2)) {
36293 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36294 }
36295 if (!argp2) {
36296 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36297 }
36298 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36299 {
36300 PyThreadState* __tstate = wxPyBeginAllowThreads();
36301 (arg1)->Expand((wxTreeItemId const &)*arg2);
36302 wxPyEndAllowThreads(__tstate);
36303 if (PyErr_Occurred()) SWIG_fail;
36304 }
36305 resultobj = SWIG_Py_Void();
36306 return resultobj;
36307 fail:
36308 return NULL;
36309 }
36310
36311
36312 SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAllChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36313 PyObject *resultobj = 0;
36314 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36315 wxTreeItemId *arg2 = 0 ;
36316 void *argp1 = 0 ;
36317 int res1 = 0 ;
36318 void *argp2 = 0 ;
36319 int res2 = 0 ;
36320 PyObject * obj0 = 0 ;
36321 PyObject * obj1 = 0 ;
36322 char * kwnames[] = {
36323 (char *) "self",(char *) "item", NULL
36324 };
36325
36326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ExpandAllChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36328 if (!SWIG_IsOK(res1)) {
36329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36330 }
36331 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36332 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36333 if (!SWIG_IsOK(res2)) {
36334 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36335 }
36336 if (!argp2) {
36337 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36338 }
36339 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36340 {
36341 PyThreadState* __tstate = wxPyBeginAllowThreads();
36342 (arg1)->ExpandAllChildren((wxTreeItemId const &)*arg2);
36343 wxPyEndAllowThreads(__tstate);
36344 if (PyErr_Occurred()) SWIG_fail;
36345 }
36346 resultobj = SWIG_Py_Void();
36347 return resultobj;
36348 fail:
36349 return NULL;
36350 }
36351
36352
36353 SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36354 PyObject *resultobj = 0;
36355 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36356 void *argp1 = 0 ;
36357 int res1 = 0 ;
36358 PyObject *swig_obj[1] ;
36359
36360 if (!args) SWIG_fail;
36361 swig_obj[0] = args;
36362 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36363 if (!SWIG_IsOK(res1)) {
36364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36365 }
36366 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36367 {
36368 PyThreadState* __tstate = wxPyBeginAllowThreads();
36369 (arg1)->ExpandAll();
36370 wxPyEndAllowThreads(__tstate);
36371 if (PyErr_Occurred()) SWIG_fail;
36372 }
36373 resultobj = SWIG_Py_Void();
36374 return resultobj;
36375 fail:
36376 return NULL;
36377 }
36378
36379
36380 SWIGINTERN PyObject *_wrap_TreeCtrl_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36381 PyObject *resultobj = 0;
36382 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36383 wxTreeItemId *arg2 = 0 ;
36384 void *argp1 = 0 ;
36385 int res1 = 0 ;
36386 void *argp2 = 0 ;
36387 int res2 = 0 ;
36388 PyObject * obj0 = 0 ;
36389 PyObject * obj1 = 0 ;
36390 char * kwnames[] = {
36391 (char *) "self",(char *) "item", NULL
36392 };
36393
36394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
36395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36396 if (!SWIG_IsOK(res1)) {
36397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Collapse" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36398 }
36399 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36400 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36401 if (!SWIG_IsOK(res2)) {
36402 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36403 }
36404 if (!argp2) {
36405 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36406 }
36407 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36408 {
36409 PyThreadState* __tstate = wxPyBeginAllowThreads();
36410 (arg1)->Collapse((wxTreeItemId const &)*arg2);
36411 wxPyEndAllowThreads(__tstate);
36412 if (PyErr_Occurred()) SWIG_fail;
36413 }
36414 resultobj = SWIG_Py_Void();
36415 return resultobj;
36416 fail:
36417 return NULL;
36418 }
36419
36420
36421 SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36422 PyObject *resultobj = 0;
36423 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36424 wxTreeItemId *arg2 = 0 ;
36425 void *argp1 = 0 ;
36426 int res1 = 0 ;
36427 void *argp2 = 0 ;
36428 int res2 = 0 ;
36429 PyObject * obj0 = 0 ;
36430 PyObject * obj1 = 0 ;
36431 char * kwnames[] = {
36432 (char *) "self",(char *) "item", NULL
36433 };
36434
36435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) SWIG_fail;
36436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36437 if (!SWIG_IsOK(res1)) {
36438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36439 }
36440 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36441 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36442 if (!SWIG_IsOK(res2)) {
36443 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36444 }
36445 if (!argp2) {
36446 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36447 }
36448 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36449 {
36450 PyThreadState* __tstate = wxPyBeginAllowThreads();
36451 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
36452 wxPyEndAllowThreads(__tstate);
36453 if (PyErr_Occurred()) SWIG_fail;
36454 }
36455 resultobj = SWIG_Py_Void();
36456 return resultobj;
36457 fail:
36458 return NULL;
36459 }
36460
36461
36462 SWIGINTERN PyObject *_wrap_TreeCtrl_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36463 PyObject *resultobj = 0;
36464 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36465 wxTreeItemId *arg2 = 0 ;
36466 void *argp1 = 0 ;
36467 int res1 = 0 ;
36468 void *argp2 = 0 ;
36469 int res2 = 0 ;
36470 PyObject * obj0 = 0 ;
36471 PyObject * obj1 = 0 ;
36472 char * kwnames[] = {
36473 (char *) "self",(char *) "item", NULL
36474 };
36475
36476 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) SWIG_fail;
36477 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36478 if (!SWIG_IsOK(res1)) {
36479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Toggle" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36480 }
36481 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36482 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36483 if (!SWIG_IsOK(res2)) {
36484 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36485 }
36486 if (!argp2) {
36487 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36488 }
36489 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36490 {
36491 PyThreadState* __tstate = wxPyBeginAllowThreads();
36492 (arg1)->Toggle((wxTreeItemId const &)*arg2);
36493 wxPyEndAllowThreads(__tstate);
36494 if (PyErr_Occurred()) SWIG_fail;
36495 }
36496 resultobj = SWIG_Py_Void();
36497 return resultobj;
36498 fail:
36499 return NULL;
36500 }
36501
36502
36503 SWIGINTERN PyObject *_wrap_TreeCtrl_Unselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36504 PyObject *resultobj = 0;
36505 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36506 void *argp1 = 0 ;
36507 int res1 = 0 ;
36508 PyObject *swig_obj[1] ;
36509
36510 if (!args) SWIG_fail;
36511 swig_obj[0] = args;
36512 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36513 if (!SWIG_IsOK(res1)) {
36514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Unselect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36515 }
36516 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36517 {
36518 PyThreadState* __tstate = wxPyBeginAllowThreads();
36519 (arg1)->Unselect();
36520 wxPyEndAllowThreads(__tstate);
36521 if (PyErr_Occurred()) SWIG_fail;
36522 }
36523 resultobj = SWIG_Py_Void();
36524 return resultobj;
36525 fail:
36526 return NULL;
36527 }
36528
36529
36530 SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36531 PyObject *resultobj = 0;
36532 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36533 wxTreeItemId *arg2 = 0 ;
36534 void *argp1 = 0 ;
36535 int res1 = 0 ;
36536 void *argp2 = 0 ;
36537 int res2 = 0 ;
36538 PyObject * obj0 = 0 ;
36539 PyObject * obj1 = 0 ;
36540 char * kwnames[] = {
36541 (char *) "self",(char *) "item", NULL
36542 };
36543
36544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) SWIG_fail;
36545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36546 if (!SWIG_IsOK(res1)) {
36547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36548 }
36549 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36550 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36551 if (!SWIG_IsOK(res2)) {
36552 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36553 }
36554 if (!argp2) {
36555 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36556 }
36557 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36558 {
36559 PyThreadState* __tstate = wxPyBeginAllowThreads();
36560 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
36561 wxPyEndAllowThreads(__tstate);
36562 if (PyErr_Occurred()) SWIG_fail;
36563 }
36564 resultobj = SWIG_Py_Void();
36565 return resultobj;
36566 fail:
36567 return NULL;
36568 }
36569
36570
36571 SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36572 PyObject *resultobj = 0;
36573 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36574 void *argp1 = 0 ;
36575 int res1 = 0 ;
36576 PyObject *swig_obj[1] ;
36577
36578 if (!args) SWIG_fail;
36579 swig_obj[0] = args;
36580 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36581 if (!SWIG_IsOK(res1)) {
36582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36583 }
36584 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36585 {
36586 PyThreadState* __tstate = wxPyBeginAllowThreads();
36587 (arg1)->UnselectAll();
36588 wxPyEndAllowThreads(__tstate);
36589 if (PyErr_Occurred()) SWIG_fail;
36590 }
36591 resultobj = SWIG_Py_Void();
36592 return resultobj;
36593 fail:
36594 return NULL;
36595 }
36596
36597
36598 SWIGINTERN PyObject *_wrap_TreeCtrl_SelectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36599 PyObject *resultobj = 0;
36600 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36601 wxTreeItemId *arg2 = 0 ;
36602 bool arg3 = (bool) true ;
36603 void *argp1 = 0 ;
36604 int res1 = 0 ;
36605 void *argp2 = 0 ;
36606 int res2 = 0 ;
36607 bool val3 ;
36608 int ecode3 = 0 ;
36609 PyObject * obj0 = 0 ;
36610 PyObject * obj1 = 0 ;
36611 PyObject * obj2 = 0 ;
36612 char * kwnames[] = {
36613 (char *) "self",(char *) "item",(char *) "select", NULL
36614 };
36615
36616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36618 if (!SWIG_IsOK(res1)) {
36619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SelectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36620 }
36621 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36622 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36623 if (!SWIG_IsOK(res2)) {
36624 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36625 }
36626 if (!argp2) {
36627 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36628 }
36629 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36630 if (obj2) {
36631 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36632 if (!SWIG_IsOK(ecode3)) {
36633 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SelectItem" "', expected argument " "3"" of type '" "bool""'");
36634 }
36635 arg3 = static_cast< bool >(val3);
36636 }
36637 {
36638 PyThreadState* __tstate = wxPyBeginAllowThreads();
36639 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
36640 wxPyEndAllowThreads(__tstate);
36641 if (PyErr_Occurred()) SWIG_fail;
36642 }
36643 resultobj = SWIG_Py_Void();
36644 return resultobj;
36645 fail:
36646 return NULL;
36647 }
36648
36649
36650 SWIGINTERN PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36651 PyObject *resultobj = 0;
36652 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36653 wxTreeItemId *arg2 = 0 ;
36654 void *argp1 = 0 ;
36655 int res1 = 0 ;
36656 void *argp2 = 0 ;
36657 int res2 = 0 ;
36658 PyObject * obj0 = 0 ;
36659 PyObject * obj1 = 0 ;
36660 char * kwnames[] = {
36661 (char *) "self",(char *) "item", NULL
36662 };
36663
36664 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) SWIG_fail;
36665 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36666 if (!SWIG_IsOK(res1)) {
36667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36668 }
36669 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36670 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36671 if (!SWIG_IsOK(res2)) {
36672 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36673 }
36674 if (!argp2) {
36675 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36676 }
36677 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36678 {
36679 PyThreadState* __tstate = wxPyBeginAllowThreads();
36680 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
36681 wxPyEndAllowThreads(__tstate);
36682 if (PyErr_Occurred()) SWIG_fail;
36683 }
36684 resultobj = SWIG_Py_Void();
36685 return resultobj;
36686 fail:
36687 return NULL;
36688 }
36689
36690
36691 SWIGINTERN PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36692 PyObject *resultobj = 0;
36693 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36694 wxTreeItemId *arg2 = 0 ;
36695 void *argp1 = 0 ;
36696 int res1 = 0 ;
36697 void *argp2 = 0 ;
36698 int res2 = 0 ;
36699 PyObject * obj0 = 0 ;
36700 PyObject * obj1 = 0 ;
36701 char * kwnames[] = {
36702 (char *) "self",(char *) "item", NULL
36703 };
36704
36705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
36706 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36707 if (!SWIG_IsOK(res1)) {
36708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36709 }
36710 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36711 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36712 if (!SWIG_IsOK(res2)) {
36713 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36714 }
36715 if (!argp2) {
36716 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36717 }
36718 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36719 {
36720 PyThreadState* __tstate = wxPyBeginAllowThreads();
36721 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
36722 wxPyEndAllowThreads(__tstate);
36723 if (PyErr_Occurred()) SWIG_fail;
36724 }
36725 resultobj = SWIG_Py_Void();
36726 return resultobj;
36727 fail:
36728 return NULL;
36729 }
36730
36731
36732 SWIGINTERN PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36733 PyObject *resultobj = 0;
36734 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36735 wxTreeItemId *arg2 = 0 ;
36736 void *argp1 = 0 ;
36737 int res1 = 0 ;
36738 void *argp2 = 0 ;
36739 int res2 = 0 ;
36740 PyObject * obj0 = 0 ;
36741 PyObject * obj1 = 0 ;
36742 char * kwnames[] = {
36743 (char *) "self",(char *) "item", NULL
36744 };
36745
36746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) SWIG_fail;
36747 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36748 if (!SWIG_IsOK(res1)) {
36749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36750 }
36751 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36752 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36753 if (!SWIG_IsOK(res2)) {
36754 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36755 }
36756 if (!argp2) {
36757 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36758 }
36759 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36760 {
36761 PyThreadState* __tstate = wxPyBeginAllowThreads();
36762 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
36763 wxPyEndAllowThreads(__tstate);
36764 if (PyErr_Occurred()) SWIG_fail;
36765 }
36766 resultobj = SWIG_Py_Void();
36767 return resultobj;
36768 fail:
36769 return NULL;
36770 }
36771
36772
36773 SWIGINTERN PyObject *_wrap_TreeCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36774 PyObject *resultobj = 0;
36775 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36776 wxTreeItemId *arg2 = 0 ;
36777 void *argp1 = 0 ;
36778 int res1 = 0 ;
36779 void *argp2 = 0 ;
36780 int res2 = 0 ;
36781 PyObject * obj0 = 0 ;
36782 PyObject * obj1 = 0 ;
36783 char * kwnames[] = {
36784 (char *) "self",(char *) "item", NULL
36785 };
36786
36787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
36788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36789 if (!SWIG_IsOK(res1)) {
36790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36791 }
36792 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36793 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36794 if (!SWIG_IsOK(res2)) {
36795 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36796 }
36797 if (!argp2) {
36798 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36799 }
36800 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36801 {
36802 PyThreadState* __tstate = wxPyBeginAllowThreads();
36803 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
36804 wxPyEndAllowThreads(__tstate);
36805 if (PyErr_Occurred()) SWIG_fail;
36806 }
36807 resultobj = SWIG_Py_Void();
36808 return resultobj;
36809 fail:
36810 return NULL;
36811 }
36812
36813
36814 SWIGINTERN PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36815 PyObject *resultobj = 0;
36816 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36817 wxTextCtrl *result = 0 ;
36818 void *argp1 = 0 ;
36819 int res1 = 0 ;
36820 PyObject *swig_obj[1] ;
36821
36822 if (!args) SWIG_fail;
36823 swig_obj[0] = args;
36824 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36825 if (!SWIG_IsOK(res1)) {
36826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36827 }
36828 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36829 {
36830 PyThreadState* __tstate = wxPyBeginAllowThreads();
36831 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
36832 wxPyEndAllowThreads(__tstate);
36833 if (PyErr_Occurred()) SWIG_fail;
36834 }
36835 {
36836 resultobj = wxPyMake_wxObject(result, 0);
36837 }
36838 return resultobj;
36839 fail:
36840 return NULL;
36841 }
36842
36843
36844 SWIGINTERN PyObject *_wrap_TreeCtrl_SortChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36845 PyObject *resultobj = 0;
36846 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36847 wxTreeItemId *arg2 = 0 ;
36848 void *argp1 = 0 ;
36849 int res1 = 0 ;
36850 void *argp2 = 0 ;
36851 int res2 = 0 ;
36852 PyObject * obj0 = 0 ;
36853 PyObject * obj1 = 0 ;
36854 char * kwnames[] = {
36855 (char *) "self",(char *) "item", NULL
36856 };
36857
36858 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36859 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36860 if (!SWIG_IsOK(res1)) {
36861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SortChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36862 }
36863 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36864 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36865 if (!SWIG_IsOK(res2)) {
36866 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36867 }
36868 if (!argp2) {
36869 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36870 }
36871 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36872 {
36873 PyThreadState* __tstate = wxPyBeginAllowThreads();
36874 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
36875 wxPyEndAllowThreads(__tstate);
36876 if (PyErr_Occurred()) SWIG_fail;
36877 }
36878 resultobj = SWIG_Py_Void();
36879 return resultobj;
36880 fail:
36881 return NULL;
36882 }
36883
36884
36885 SWIGINTERN PyObject *_wrap_TreeCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36886 PyObject *resultobj = 0;
36887 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36888 wxPoint *arg2 = 0 ;
36889 int *arg3 = 0 ;
36890 wxTreeItemId result;
36891 void *argp1 = 0 ;
36892 int res1 = 0 ;
36893 wxPoint temp2 ;
36894 int temp3 ;
36895 int res3 = SWIG_TMPOBJ ;
36896 PyObject * obj0 = 0 ;
36897 PyObject * obj1 = 0 ;
36898 char * kwnames[] = {
36899 (char *) "self",(char *) "point", NULL
36900 };
36901
36902 arg3 = &temp3;
36903 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
36904 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36905 if (!SWIG_IsOK(res1)) {
36906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36907 }
36908 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36909 {
36910 arg2 = &temp2;
36911 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36912 }
36913 {
36914 PyThreadState* __tstate = wxPyBeginAllowThreads();
36915 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
36916 wxPyEndAllowThreads(__tstate);
36917 if (PyErr_Occurred()) SWIG_fail;
36918 }
36919 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36920 if (SWIG_IsTmpObj(res3)) {
36921 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
36922 } else {
36923 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
36924 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
36925 }
36926 return resultobj;
36927 fail:
36928 return NULL;
36929 }
36930
36931
36932 SWIGINTERN PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36933 PyObject *resultobj = 0;
36934 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36935 wxTreeItemId *arg2 = 0 ;
36936 bool arg3 = (bool) false ;
36937 PyObject *result = 0 ;
36938 void *argp1 = 0 ;
36939 int res1 = 0 ;
36940 void *argp2 = 0 ;
36941 int res2 = 0 ;
36942 bool val3 ;
36943 int ecode3 = 0 ;
36944 PyObject * obj0 = 0 ;
36945 PyObject * obj1 = 0 ;
36946 PyObject * obj2 = 0 ;
36947 char * kwnames[] = {
36948 (char *) "self",(char *) "item",(char *) "textOnly", NULL
36949 };
36950
36951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36953 if (!SWIG_IsOK(res1)) {
36954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36955 }
36956 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36957 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36958 if (!SWIG_IsOK(res2)) {
36959 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36960 }
36961 if (!argp2) {
36962 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36963 }
36964 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36965 if (obj2) {
36966 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36967 if (!SWIG_IsOK(ecode3)) {
36968 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "3"" of type '" "bool""'");
36969 }
36970 arg3 = static_cast< bool >(val3);
36971 }
36972 {
36973 PyThreadState* __tstate = wxPyBeginAllowThreads();
36974 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
36975 wxPyEndAllowThreads(__tstate);
36976 if (PyErr_Occurred()) SWIG_fail;
36977 }
36978 resultobj = result;
36979 return resultobj;
36980 fail:
36981 return NULL;
36982 }
36983
36984
36985 SWIGINTERN PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36986 PyObject *resultobj = 0;
36987 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
36988 SwigValueWrapper<wxVisualAttributes > result;
36989 int val1 ;
36990 int ecode1 = 0 ;
36991 PyObject * obj0 = 0 ;
36992 char * kwnames[] = {
36993 (char *) "variant", NULL
36994 };
36995
36996 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
36997 if (obj0) {
36998 ecode1 = SWIG_AsVal_int(obj0, &val1);
36999 if (!SWIG_IsOK(ecode1)) {
37000 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TreeCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
37001 }
37002 arg1 = static_cast< wxWindowVariant >(val1);
37003 }
37004 {
37005 if (!wxPyCheckForApp()) SWIG_fail;
37006 PyThreadState* __tstate = wxPyBeginAllowThreads();
37007 result = wxPyTreeCtrl::GetClassDefaultAttributes(arg1);
37008 wxPyEndAllowThreads(__tstate);
37009 if (PyErr_Occurred()) SWIG_fail;
37010 }
37011 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
37012 return resultobj;
37013 fail:
37014 return NULL;
37015 }
37016
37017
37018 SWIGINTERN PyObject *_wrap_TreeCtrl_SetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37019 PyObject *resultobj = 0;
37020 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37021 bool arg2 ;
37022 void *argp1 = 0 ;
37023 int res1 = 0 ;
37024 bool val2 ;
37025 int ecode2 = 0 ;
37026 PyObject * obj0 = 0 ;
37027 PyObject * obj1 = 0 ;
37028 char * kwnames[] = {
37029 (char *) "self",(char *) "q", NULL
37030 };
37031
37032 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetQuickBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
37033 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37034 if (!SWIG_IsOK(res1)) {
37035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37036 }
37037 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37038 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37039 if (!SWIG_IsOK(ecode2)) {
37040 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "2"" of type '" "bool""'");
37041 }
37042 arg2 = static_cast< bool >(val2);
37043 {
37044 PyThreadState* __tstate = wxPyBeginAllowThreads();
37045 (arg1)->SetQuickBestSize(arg2);
37046 wxPyEndAllowThreads(__tstate);
37047 if (PyErr_Occurred()) SWIG_fail;
37048 }
37049 resultobj = SWIG_Py_Void();
37050 return resultobj;
37051 fail:
37052 return NULL;
37053 }
37054
37055
37056 SWIGINTERN PyObject *_wrap_TreeCtrl_GetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37057 PyObject *resultobj = 0;
37058 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37059 bool result;
37060 void *argp1 = 0 ;
37061 int res1 = 0 ;
37062 PyObject *swig_obj[1] ;
37063
37064 if (!args) SWIG_fail;
37065 swig_obj[0] = args;
37066 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37067 if (!SWIG_IsOK(res1)) {
37068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
37069 }
37070 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37071 {
37072 PyThreadState* __tstate = wxPyBeginAllowThreads();
37073 result = (bool)((wxPyTreeCtrl const *)arg1)->GetQuickBestSize();
37074 wxPyEndAllowThreads(__tstate);
37075 if (PyErr_Occurred()) SWIG_fail;
37076 }
37077 {
37078 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37079 }
37080 return resultobj;
37081 fail:
37082 return NULL;
37083 }
37084
37085
37086 SWIGINTERN PyObject *TreeCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37087 PyObject *obj;
37088 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37089 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeCtrl, SWIG_NewClientData(obj));
37090 return SWIG_Py_Void();
37091 }
37092
37093 SWIGINTERN PyObject *TreeCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37094 return SWIG_Python_InitShadowInstance(args);
37095 }
37096
37097 SWIGINTERN int DirDialogDefaultFolderStr_set(PyObject *) {
37098 SWIG_Error(SWIG_AttributeError,"Variable DirDialogDefaultFolderStr is read-only.");
37099 return 1;
37100 }
37101
37102
37103 SWIGINTERN PyObject *DirDialogDefaultFolderStr_get(void) {
37104 PyObject *pyobj = 0;
37105
37106 {
37107 #if wxUSE_UNICODE
37108 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37109 #else
37110 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37111 #endif
37112 }
37113 return pyobj;
37114 }
37115
37116
37117 SWIGINTERN PyObject *_wrap_new_GenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37118 PyObject *resultobj = 0;
37119 wxWindow *arg1 = (wxWindow *) 0 ;
37120 int arg2 = (int) (int)-1 ;
37121 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
37122 wxString *arg3 = (wxString *) &arg3_defvalue ;
37123 wxPoint const &arg4_defvalue = wxDefaultPosition ;
37124 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
37125 wxSize const &arg5_defvalue = wxDefaultSize ;
37126 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
37127 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37128 wxString const &arg7_defvalue = wxPyEmptyString ;
37129 wxString *arg7 = (wxString *) &arg7_defvalue ;
37130 int arg8 = (int) 0 ;
37131 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
37132 wxString *arg9 = (wxString *) &arg9_defvalue ;
37133 wxGenericDirCtrl *result = 0 ;
37134 void *argp1 = 0 ;
37135 int res1 = 0 ;
37136 int val2 ;
37137 int ecode2 = 0 ;
37138 bool temp3 = false ;
37139 wxPoint temp4 ;
37140 wxSize temp5 ;
37141 long val6 ;
37142 int ecode6 = 0 ;
37143 bool temp7 = false ;
37144 int val8 ;
37145 int ecode8 = 0 ;
37146 bool temp9 = false ;
37147 PyObject * obj0 = 0 ;
37148 PyObject * obj1 = 0 ;
37149 PyObject * obj2 = 0 ;
37150 PyObject * obj3 = 0 ;
37151 PyObject * obj4 = 0 ;
37152 PyObject * obj5 = 0 ;
37153 PyObject * obj6 = 0 ;
37154 PyObject * obj7 = 0 ;
37155 PyObject * obj8 = 0 ;
37156 char * kwnames[] = {
37157 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37158 };
37159
37160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
37161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37162 if (!SWIG_IsOK(res1)) {
37163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GenericDirCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
37164 }
37165 arg1 = reinterpret_cast< wxWindow * >(argp1);
37166 if (obj1) {
37167 ecode2 = SWIG_AsVal_int(obj1, &val2);
37168 if (!SWIG_IsOK(ecode2)) {
37169 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GenericDirCtrl" "', expected argument " "2"" of type '" "int""'");
37170 }
37171 arg2 = static_cast< int >(val2);
37172 }
37173 if (obj2) {
37174 {
37175 arg3 = wxString_in_helper(obj2);
37176 if (arg3 == NULL) SWIG_fail;
37177 temp3 = true;
37178 }
37179 }
37180 if (obj3) {
37181 {
37182 arg4 = &temp4;
37183 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
37184 }
37185 }
37186 if (obj4) {
37187 {
37188 arg5 = &temp5;
37189 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
37190 }
37191 }
37192 if (obj5) {
37193 ecode6 = SWIG_AsVal_long(obj5, &val6);
37194 if (!SWIG_IsOK(ecode6)) {
37195 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GenericDirCtrl" "', expected argument " "6"" of type '" "long""'");
37196 }
37197 arg6 = static_cast< long >(val6);
37198 }
37199 if (obj6) {
37200 {
37201 arg7 = wxString_in_helper(obj6);
37202 if (arg7 == NULL) SWIG_fail;
37203 temp7 = true;
37204 }
37205 }
37206 if (obj7) {
37207 ecode8 = SWIG_AsVal_int(obj7, &val8);
37208 if (!SWIG_IsOK(ecode8)) {
37209 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_GenericDirCtrl" "', expected argument " "8"" of type '" "int""'");
37210 }
37211 arg8 = static_cast< int >(val8);
37212 }
37213 if (obj8) {
37214 {
37215 arg9 = wxString_in_helper(obj8);
37216 if (arg9 == NULL) SWIG_fail;
37217 temp9 = true;
37218 }
37219 }
37220 {
37221 if (!wxPyCheckForApp()) SWIG_fail;
37222 PyThreadState* __tstate = wxPyBeginAllowThreads();
37223 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
37224 wxPyEndAllowThreads(__tstate);
37225 if (PyErr_Occurred()) SWIG_fail;
37226 }
37227 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_NEW | 0 );
37228 {
37229 if (temp3)
37230 delete arg3;
37231 }
37232 {
37233 if (temp7)
37234 delete arg7;
37235 }
37236 {
37237 if (temp9)
37238 delete arg9;
37239 }
37240 return resultobj;
37241 fail:
37242 {
37243 if (temp3)
37244 delete arg3;
37245 }
37246 {
37247 if (temp7)
37248 delete arg7;
37249 }
37250 {
37251 if (temp9)
37252 delete arg9;
37253 }
37254 return NULL;
37255 }
37256
37257
37258 SWIGINTERN PyObject *_wrap_new_PreGenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37259 PyObject *resultobj = 0;
37260 wxGenericDirCtrl *result = 0 ;
37261
37262 if (!SWIG_Python_UnpackTuple(args,"new_PreGenericDirCtrl",0,0,0)) SWIG_fail;
37263 {
37264 if (!wxPyCheckForApp()) SWIG_fail;
37265 PyThreadState* __tstate = wxPyBeginAllowThreads();
37266 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
37267 wxPyEndAllowThreads(__tstate);
37268 if (PyErr_Occurred()) SWIG_fail;
37269 }
37270 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_OWN | 0 );
37271 return resultobj;
37272 fail:
37273 return NULL;
37274 }
37275
37276
37277 SWIGINTERN PyObject *_wrap_GenericDirCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37278 PyObject *resultobj = 0;
37279 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37280 wxWindow *arg2 = (wxWindow *) 0 ;
37281 int arg3 = (int) (int)-1 ;
37282 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
37283 wxString *arg4 = (wxString *) &arg4_defvalue ;
37284 wxPoint const &arg5_defvalue = wxDefaultPosition ;
37285 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
37286 wxSize const &arg6_defvalue = wxDefaultSize ;
37287 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
37288 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37289 wxString const &arg8_defvalue = wxPyEmptyString ;
37290 wxString *arg8 = (wxString *) &arg8_defvalue ;
37291 int arg9 = (int) 0 ;
37292 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
37293 wxString *arg10 = (wxString *) &arg10_defvalue ;
37294 bool result;
37295 void *argp1 = 0 ;
37296 int res1 = 0 ;
37297 void *argp2 = 0 ;
37298 int res2 = 0 ;
37299 int val3 ;
37300 int ecode3 = 0 ;
37301 bool temp4 = false ;
37302 wxPoint temp5 ;
37303 wxSize temp6 ;
37304 long val7 ;
37305 int ecode7 = 0 ;
37306 bool temp8 = false ;
37307 int val9 ;
37308 int ecode9 = 0 ;
37309 bool temp10 = false ;
37310 PyObject * obj0 = 0 ;
37311 PyObject * obj1 = 0 ;
37312 PyObject * obj2 = 0 ;
37313 PyObject * obj3 = 0 ;
37314 PyObject * obj4 = 0 ;
37315 PyObject * obj5 = 0 ;
37316 PyObject * obj6 = 0 ;
37317 PyObject * obj7 = 0 ;
37318 PyObject * obj8 = 0 ;
37319 PyObject * obj9 = 0 ;
37320 char * kwnames[] = {
37321 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37322 };
37323
37324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
37325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37326 if (!SWIG_IsOK(res1)) {
37327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_Create" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37328 }
37329 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37330 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
37331 if (!SWIG_IsOK(res2)) {
37332 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
37333 }
37334 arg2 = reinterpret_cast< wxWindow * >(argp2);
37335 if (obj2) {
37336 ecode3 = SWIG_AsVal_int(obj2, &val3);
37337 if (!SWIG_IsOK(ecode3)) {
37338 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GenericDirCtrl_Create" "', expected argument " "3"" of type '" "int""'");
37339 }
37340 arg3 = static_cast< int >(val3);
37341 }
37342 if (obj3) {
37343 {
37344 arg4 = wxString_in_helper(obj3);
37345 if (arg4 == NULL) SWIG_fail;
37346 temp4 = true;
37347 }
37348 }
37349 if (obj4) {
37350 {
37351 arg5 = &temp5;
37352 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
37353 }
37354 }
37355 if (obj5) {
37356 {
37357 arg6 = &temp6;
37358 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
37359 }
37360 }
37361 if (obj6) {
37362 ecode7 = SWIG_AsVal_long(obj6, &val7);
37363 if (!SWIG_IsOK(ecode7)) {
37364 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GenericDirCtrl_Create" "', expected argument " "7"" of type '" "long""'");
37365 }
37366 arg7 = static_cast< long >(val7);
37367 }
37368 if (obj7) {
37369 {
37370 arg8 = wxString_in_helper(obj7);
37371 if (arg8 == NULL) SWIG_fail;
37372 temp8 = true;
37373 }
37374 }
37375 if (obj8) {
37376 ecode9 = SWIG_AsVal_int(obj8, &val9);
37377 if (!SWIG_IsOK(ecode9)) {
37378 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "GenericDirCtrl_Create" "', expected argument " "9"" of type '" "int""'");
37379 }
37380 arg9 = static_cast< int >(val9);
37381 }
37382 if (obj9) {
37383 {
37384 arg10 = wxString_in_helper(obj9);
37385 if (arg10 == NULL) SWIG_fail;
37386 temp10 = true;
37387 }
37388 }
37389 {
37390 PyThreadState* __tstate = wxPyBeginAllowThreads();
37391 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
37392 wxPyEndAllowThreads(__tstate);
37393 if (PyErr_Occurred()) SWIG_fail;
37394 }
37395 {
37396 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37397 }
37398 {
37399 if (temp4)
37400 delete arg4;
37401 }
37402 {
37403 if (temp8)
37404 delete arg8;
37405 }
37406 {
37407 if (temp10)
37408 delete arg10;
37409 }
37410 return resultobj;
37411 fail:
37412 {
37413 if (temp4)
37414 delete arg4;
37415 }
37416 {
37417 if (temp8)
37418 delete arg8;
37419 }
37420 {
37421 if (temp10)
37422 delete arg10;
37423 }
37424 return NULL;
37425 }
37426
37427
37428 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37429 PyObject *resultobj = 0;
37430 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37431 wxString *arg2 = 0 ;
37432 bool result;
37433 void *argp1 = 0 ;
37434 int res1 = 0 ;
37435 bool temp2 = false ;
37436 PyObject * obj0 = 0 ;
37437 PyObject * obj1 = 0 ;
37438 char * kwnames[] = {
37439 (char *) "self",(char *) "path", NULL
37440 };
37441
37442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) SWIG_fail;
37443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37444 if (!SWIG_IsOK(res1)) {
37445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ExpandPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37446 }
37447 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37448 {
37449 arg2 = wxString_in_helper(obj1);
37450 if (arg2 == NULL) SWIG_fail;
37451 temp2 = true;
37452 }
37453 {
37454 PyThreadState* __tstate = wxPyBeginAllowThreads();
37455 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
37456 wxPyEndAllowThreads(__tstate);
37457 if (PyErr_Occurred()) SWIG_fail;
37458 }
37459 {
37460 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37461 }
37462 {
37463 if (temp2)
37464 delete arg2;
37465 }
37466 return resultobj;
37467 fail:
37468 {
37469 if (temp2)
37470 delete arg2;
37471 }
37472 return NULL;
37473 }
37474
37475
37476 SWIGINTERN PyObject *_wrap_GenericDirCtrl_CollapsePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37477 PyObject *resultobj = 0;
37478 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37479 wxString *arg2 = 0 ;
37480 bool result;
37481 void *argp1 = 0 ;
37482 int res1 = 0 ;
37483 bool temp2 = false ;
37484 PyObject * obj0 = 0 ;
37485 PyObject * obj1 = 0 ;
37486 char * kwnames[] = {
37487 (char *) "self",(char *) "path", NULL
37488 };
37489
37490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_CollapsePath",kwnames,&obj0,&obj1)) SWIG_fail;
37491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37492 if (!SWIG_IsOK(res1)) {
37493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_CollapsePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37494 }
37495 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37496 {
37497 arg2 = wxString_in_helper(obj1);
37498 if (arg2 == NULL) SWIG_fail;
37499 temp2 = true;
37500 }
37501 {
37502 PyThreadState* __tstate = wxPyBeginAllowThreads();
37503 result = (bool)(arg1)->CollapsePath((wxString const &)*arg2);
37504 wxPyEndAllowThreads(__tstate);
37505 if (PyErr_Occurred()) SWIG_fail;
37506 }
37507 {
37508 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37509 }
37510 {
37511 if (temp2)
37512 delete arg2;
37513 }
37514 return resultobj;
37515 fail:
37516 {
37517 if (temp2)
37518 delete arg2;
37519 }
37520 return NULL;
37521 }
37522
37523
37524 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37525 PyObject *resultobj = 0;
37526 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37527 wxString result;
37528 void *argp1 = 0 ;
37529 int res1 = 0 ;
37530 PyObject *swig_obj[1] ;
37531
37532 if (!args) SWIG_fail;
37533 swig_obj[0] = args;
37534 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37535 if (!SWIG_IsOK(res1)) {
37536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37537 }
37538 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37539 {
37540 PyThreadState* __tstate = wxPyBeginAllowThreads();
37541 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
37542 wxPyEndAllowThreads(__tstate);
37543 if (PyErr_Occurred()) SWIG_fail;
37544 }
37545 {
37546 #if wxUSE_UNICODE
37547 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37548 #else
37549 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37550 #endif
37551 }
37552 return resultobj;
37553 fail:
37554 return NULL;
37555 }
37556
37557
37558 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37559 PyObject *resultobj = 0;
37560 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37561 wxString *arg2 = 0 ;
37562 void *argp1 = 0 ;
37563 int res1 = 0 ;
37564 bool temp2 = false ;
37565 PyObject * obj0 = 0 ;
37566 PyObject * obj1 = 0 ;
37567 char * kwnames[] = {
37568 (char *) "self",(char *) "path", NULL
37569 };
37570
37571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) SWIG_fail;
37572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37573 if (!SWIG_IsOK(res1)) {
37574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37575 }
37576 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37577 {
37578 arg2 = wxString_in_helper(obj1);
37579 if (arg2 == NULL) SWIG_fail;
37580 temp2 = true;
37581 }
37582 {
37583 PyThreadState* __tstate = wxPyBeginAllowThreads();
37584 (arg1)->SetDefaultPath((wxString const &)*arg2);
37585 wxPyEndAllowThreads(__tstate);
37586 if (PyErr_Occurred()) SWIG_fail;
37587 }
37588 resultobj = SWIG_Py_Void();
37589 {
37590 if (temp2)
37591 delete arg2;
37592 }
37593 return resultobj;
37594 fail:
37595 {
37596 if (temp2)
37597 delete arg2;
37598 }
37599 return NULL;
37600 }
37601
37602
37603 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37604 PyObject *resultobj = 0;
37605 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37606 wxString result;
37607 void *argp1 = 0 ;
37608 int res1 = 0 ;
37609 PyObject *swig_obj[1] ;
37610
37611 if (!args) SWIG_fail;
37612 swig_obj[0] = args;
37613 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37614 if (!SWIG_IsOK(res1)) {
37615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37616 }
37617 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37618 {
37619 PyThreadState* __tstate = wxPyBeginAllowThreads();
37620 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
37621 wxPyEndAllowThreads(__tstate);
37622 if (PyErr_Occurred()) SWIG_fail;
37623 }
37624 {
37625 #if wxUSE_UNICODE
37626 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37627 #else
37628 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37629 #endif
37630 }
37631 return resultobj;
37632 fail:
37633 return NULL;
37634 }
37635
37636
37637 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37638 PyObject *resultobj = 0;
37639 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37640 wxString result;
37641 void *argp1 = 0 ;
37642 int res1 = 0 ;
37643 PyObject *swig_obj[1] ;
37644
37645 if (!args) SWIG_fail;
37646 swig_obj[0] = args;
37647 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37648 if (!SWIG_IsOK(res1)) {
37649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37650 }
37651 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37652 {
37653 PyThreadState* __tstate = wxPyBeginAllowThreads();
37654 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
37655 wxPyEndAllowThreads(__tstate);
37656 if (PyErr_Occurred()) SWIG_fail;
37657 }
37658 {
37659 #if wxUSE_UNICODE
37660 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37661 #else
37662 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37663 #endif
37664 }
37665 return resultobj;
37666 fail:
37667 return NULL;
37668 }
37669
37670
37671 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37672 PyObject *resultobj = 0;
37673 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37674 wxString *arg2 = 0 ;
37675 void *argp1 = 0 ;
37676 int res1 = 0 ;
37677 bool temp2 = false ;
37678 PyObject * obj0 = 0 ;
37679 PyObject * obj1 = 0 ;
37680 char * kwnames[] = {
37681 (char *) "self",(char *) "path", NULL
37682 };
37683
37684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
37685 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37686 if (!SWIG_IsOK(res1)) {
37687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37688 }
37689 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37690 {
37691 arg2 = wxString_in_helper(obj1);
37692 if (arg2 == NULL) SWIG_fail;
37693 temp2 = true;
37694 }
37695 {
37696 PyThreadState* __tstate = wxPyBeginAllowThreads();
37697 (arg1)->SetPath((wxString const &)*arg2);
37698 wxPyEndAllowThreads(__tstate);
37699 if (PyErr_Occurred()) SWIG_fail;
37700 }
37701 resultobj = SWIG_Py_Void();
37702 {
37703 if (temp2)
37704 delete arg2;
37705 }
37706 return resultobj;
37707 fail:
37708 {
37709 if (temp2)
37710 delete arg2;
37711 }
37712 return NULL;
37713 }
37714
37715
37716 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37717 PyObject *resultobj = 0;
37718 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37719 bool arg2 ;
37720 void *argp1 = 0 ;
37721 int res1 = 0 ;
37722 bool val2 ;
37723 int ecode2 = 0 ;
37724 PyObject * obj0 = 0 ;
37725 PyObject * obj1 = 0 ;
37726 char * kwnames[] = {
37727 (char *) "self",(char *) "show", NULL
37728 };
37729
37730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) SWIG_fail;
37731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37732 if (!SWIG_IsOK(res1)) {
37733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37734 }
37735 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37736 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37737 if (!SWIG_IsOK(ecode2)) {
37738 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "2"" of type '" "bool""'");
37739 }
37740 arg2 = static_cast< bool >(val2);
37741 {
37742 PyThreadState* __tstate = wxPyBeginAllowThreads();
37743 (arg1)->ShowHidden(arg2);
37744 wxPyEndAllowThreads(__tstate);
37745 if (PyErr_Occurred()) SWIG_fail;
37746 }
37747 resultobj = SWIG_Py_Void();
37748 return resultobj;
37749 fail:
37750 return NULL;
37751 }
37752
37753
37754 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37755 PyObject *resultobj = 0;
37756 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37757 bool result;
37758 void *argp1 = 0 ;
37759 int res1 = 0 ;
37760 PyObject *swig_obj[1] ;
37761
37762 if (!args) SWIG_fail;
37763 swig_obj[0] = args;
37764 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37765 if (!SWIG_IsOK(res1)) {
37766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37767 }
37768 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37769 {
37770 PyThreadState* __tstate = wxPyBeginAllowThreads();
37771 result = (bool)(arg1)->GetShowHidden();
37772 wxPyEndAllowThreads(__tstate);
37773 if (PyErr_Occurred()) SWIG_fail;
37774 }
37775 {
37776 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37777 }
37778 return resultobj;
37779 fail:
37780 return NULL;
37781 }
37782
37783
37784 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37785 PyObject *resultobj = 0;
37786 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37787 wxString result;
37788 void *argp1 = 0 ;
37789 int res1 = 0 ;
37790 PyObject *swig_obj[1] ;
37791
37792 if (!args) SWIG_fail;
37793 swig_obj[0] = args;
37794 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37795 if (!SWIG_IsOK(res1)) {
37796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37797 }
37798 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37799 {
37800 PyThreadState* __tstate = wxPyBeginAllowThreads();
37801 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
37802 wxPyEndAllowThreads(__tstate);
37803 if (PyErr_Occurred()) SWIG_fail;
37804 }
37805 {
37806 #if wxUSE_UNICODE
37807 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37808 #else
37809 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37810 #endif
37811 }
37812 return resultobj;
37813 fail:
37814 return NULL;
37815 }
37816
37817
37818 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37819 PyObject *resultobj = 0;
37820 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37821 wxString *arg2 = 0 ;
37822 void *argp1 = 0 ;
37823 int res1 = 0 ;
37824 bool temp2 = false ;
37825 PyObject * obj0 = 0 ;
37826 PyObject * obj1 = 0 ;
37827 char * kwnames[] = {
37828 (char *) "self",(char *) "filter", NULL
37829 };
37830
37831 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) SWIG_fail;
37832 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37833 if (!SWIG_IsOK(res1)) {
37834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37835 }
37836 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37837 {
37838 arg2 = wxString_in_helper(obj1);
37839 if (arg2 == NULL) SWIG_fail;
37840 temp2 = true;
37841 }
37842 {
37843 PyThreadState* __tstate = wxPyBeginAllowThreads();
37844 (arg1)->SetFilter((wxString const &)*arg2);
37845 wxPyEndAllowThreads(__tstate);
37846 if (PyErr_Occurred()) SWIG_fail;
37847 }
37848 resultobj = SWIG_Py_Void();
37849 {
37850 if (temp2)
37851 delete arg2;
37852 }
37853 return resultobj;
37854 fail:
37855 {
37856 if (temp2)
37857 delete arg2;
37858 }
37859 return NULL;
37860 }
37861
37862
37863 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37864 PyObject *resultobj = 0;
37865 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37866 int result;
37867 void *argp1 = 0 ;
37868 int res1 = 0 ;
37869 PyObject *swig_obj[1] ;
37870
37871 if (!args) SWIG_fail;
37872 swig_obj[0] = args;
37873 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37874 if (!SWIG_IsOK(res1)) {
37875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37876 }
37877 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37878 {
37879 PyThreadState* __tstate = wxPyBeginAllowThreads();
37880 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
37881 wxPyEndAllowThreads(__tstate);
37882 if (PyErr_Occurred()) SWIG_fail;
37883 }
37884 resultobj = SWIG_From_int(static_cast< int >(result));
37885 return resultobj;
37886 fail:
37887 return NULL;
37888 }
37889
37890
37891 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37892 PyObject *resultobj = 0;
37893 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37894 int arg2 ;
37895 void *argp1 = 0 ;
37896 int res1 = 0 ;
37897 int val2 ;
37898 int ecode2 = 0 ;
37899 PyObject * obj0 = 0 ;
37900 PyObject * obj1 = 0 ;
37901 char * kwnames[] = {
37902 (char *) "self",(char *) "n", NULL
37903 };
37904
37905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail;
37906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37907 if (!SWIG_IsOK(res1)) {
37908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37909 }
37910 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37911 ecode2 = SWIG_AsVal_int(obj1, &val2);
37912 if (!SWIG_IsOK(ecode2)) {
37913 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "2"" of type '" "int""'");
37914 }
37915 arg2 = static_cast< int >(val2);
37916 {
37917 PyThreadState* __tstate = wxPyBeginAllowThreads();
37918 (arg1)->SetFilterIndex(arg2);
37919 wxPyEndAllowThreads(__tstate);
37920 if (PyErr_Occurred()) SWIG_fail;
37921 }
37922 resultobj = SWIG_Py_Void();
37923 return resultobj;
37924 fail:
37925 return NULL;
37926 }
37927
37928
37929 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37930 PyObject *resultobj = 0;
37931 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37932 wxTreeItemId result;
37933 void *argp1 = 0 ;
37934 int res1 = 0 ;
37935 PyObject *swig_obj[1] ;
37936
37937 if (!args) SWIG_fail;
37938 swig_obj[0] = args;
37939 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37940 if (!SWIG_IsOK(res1)) {
37941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetRootId" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37942 }
37943 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37944 {
37945 PyThreadState* __tstate = wxPyBeginAllowThreads();
37946 result = (arg1)->GetRootId();
37947 wxPyEndAllowThreads(__tstate);
37948 if (PyErr_Occurred()) SWIG_fail;
37949 }
37950 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37951 return resultobj;
37952 fail:
37953 return NULL;
37954 }
37955
37956
37957 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37958 PyObject *resultobj = 0;
37959 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37960 wxPyTreeCtrl *result = 0 ;
37961 void *argp1 = 0 ;
37962 int res1 = 0 ;
37963 PyObject *swig_obj[1] ;
37964
37965 if (!args) SWIG_fail;
37966 swig_obj[0] = args;
37967 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37968 if (!SWIG_IsOK(res1)) {
37969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetTreeCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37970 }
37971 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37972 {
37973 PyThreadState* __tstate = wxPyBeginAllowThreads();
37974 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
37975 wxPyEndAllowThreads(__tstate);
37976 if (PyErr_Occurred()) SWIG_fail;
37977 }
37978 {
37979 resultobj = wxPyMake_wxObject(result, 0);
37980 }
37981 return resultobj;
37982 fail:
37983 return NULL;
37984 }
37985
37986
37987 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37988 PyObject *resultobj = 0;
37989 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37990 wxDirFilterListCtrl *result = 0 ;
37991 void *argp1 = 0 ;
37992 int res1 = 0 ;
37993 PyObject *swig_obj[1] ;
37994
37995 if (!args) SWIG_fail;
37996 swig_obj[0] = args;
37997 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37998 if (!SWIG_IsOK(res1)) {
37999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38000 }
38001 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38002 {
38003 PyThreadState* __tstate = wxPyBeginAllowThreads();
38004 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
38005 wxPyEndAllowThreads(__tstate);
38006 if (PyErr_Occurred()) SWIG_fail;
38007 }
38008 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38009 return resultobj;
38010 fail:
38011 return NULL;
38012 }
38013
38014
38015 SWIGINTERN PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38016 PyObject *resultobj = 0;
38017 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38018 wxTreeItemId arg2 ;
38019 wxString *arg3 = 0 ;
38020 bool *arg4 = 0 ;
38021 wxTreeItemId result;
38022 void *argp1 = 0 ;
38023 int res1 = 0 ;
38024 void *argp2 ;
38025 int res2 = 0 ;
38026 bool temp3 = false ;
38027 bool temp4 ;
38028 int res4 = SWIG_TMPOBJ ;
38029 PyObject * obj0 = 0 ;
38030 PyObject * obj1 = 0 ;
38031 PyObject * obj2 = 0 ;
38032 char * kwnames[] = {
38033 (char *) "self",(char *) "parentId",(char *) "path", NULL
38034 };
38035
38036 arg4 = &temp4;
38037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38038 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38039 if (!SWIG_IsOK(res1)) {
38040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38041 }
38042 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38043 {
38044 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
38045 if (!SWIG_IsOK(res2)) {
38046 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38047 }
38048 if (!argp2) {
38049 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38050 } else {
38051 wxTreeItemId * temp = reinterpret_cast< wxTreeItemId * >(argp2);
38052 arg2 = *temp;
38053 if (SWIG_IsNewObj(res2)) delete temp;
38054 }
38055 }
38056 {
38057 arg3 = wxString_in_helper(obj2);
38058 if (arg3 == NULL) SWIG_fail;
38059 temp3 = true;
38060 }
38061 {
38062 PyThreadState* __tstate = wxPyBeginAllowThreads();
38063 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
38064 wxPyEndAllowThreads(__tstate);
38065 if (PyErr_Occurred()) SWIG_fail;
38066 }
38067 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38068 if (SWIG_IsTmpObj(res4)) {
38069 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4)));
38070 } else {
38071 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38072 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags));
38073 }
38074 {
38075 if (temp3)
38076 delete arg3;
38077 }
38078 return resultobj;
38079 fail:
38080 {
38081 if (temp3)
38082 delete arg3;
38083 }
38084 return NULL;
38085 }
38086
38087
38088 SWIGINTERN PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38089 PyObject *resultobj = 0;
38090 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38091 void *argp1 = 0 ;
38092 int res1 = 0 ;
38093 PyObject *swig_obj[1] ;
38094
38095 if (!args) SWIG_fail;
38096 swig_obj[0] = args;
38097 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38098 if (!SWIG_IsOK(res1)) {
38099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_DoResize" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38100 }
38101 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38102 {
38103 PyThreadState* __tstate = wxPyBeginAllowThreads();
38104 (arg1)->DoResize();
38105 wxPyEndAllowThreads(__tstate);
38106 if (PyErr_Occurred()) SWIG_fail;
38107 }
38108 resultobj = SWIG_Py_Void();
38109 return resultobj;
38110 fail:
38111 return NULL;
38112 }
38113
38114
38115 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38116 PyObject *resultobj = 0;
38117 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38118 void *argp1 = 0 ;
38119 int res1 = 0 ;
38120 PyObject *swig_obj[1] ;
38121
38122 if (!args) SWIG_fail;
38123 swig_obj[0] = args;
38124 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38125 if (!SWIG_IsOK(res1)) {
38126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ReCreateTree" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38127 }
38128 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38129 {
38130 PyThreadState* __tstate = wxPyBeginAllowThreads();
38131 (arg1)->ReCreateTree();
38132 wxPyEndAllowThreads(__tstate);
38133 if (PyErr_Occurred()) SWIG_fail;
38134 }
38135 resultobj = SWIG_Py_Void();
38136 return resultobj;
38137 fail:
38138 return NULL;
38139 }
38140
38141
38142 SWIGINTERN PyObject *GenericDirCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38143 PyObject *obj;
38144 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38145 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDirCtrl, SWIG_NewClientData(obj));
38146 return SWIG_Py_Void();
38147 }
38148
38149 SWIGINTERN PyObject *GenericDirCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38150 return SWIG_Python_InitShadowInstance(args);
38151 }
38152
38153 SWIGINTERN PyObject *_wrap_new_DirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38154 PyObject *resultobj = 0;
38155 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38156 int arg2 = (int) (int)-1 ;
38157 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38158 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38159 wxSize const &arg4_defvalue = wxDefaultSize ;
38160 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38161 long arg5 = (long) 0 ;
38162 wxDirFilterListCtrl *result = 0 ;
38163 void *argp1 = 0 ;
38164 int res1 = 0 ;
38165 int val2 ;
38166 int ecode2 = 0 ;
38167 wxPoint temp3 ;
38168 wxSize temp4 ;
38169 long val5 ;
38170 int ecode5 = 0 ;
38171 PyObject * obj0 = 0 ;
38172 PyObject * obj1 = 0 ;
38173 PyObject * obj2 = 0 ;
38174 PyObject * obj3 = 0 ;
38175 PyObject * obj4 = 0 ;
38176 char * kwnames[] = {
38177 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38178 };
38179
38180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38182 if (!SWIG_IsOK(res1)) {
38183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38184 }
38185 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38186 if (obj1) {
38187 ecode2 = SWIG_AsVal_int(obj1, &val2);
38188 if (!SWIG_IsOK(ecode2)) {
38189 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirFilterListCtrl" "', expected argument " "2"" of type '" "int""'");
38190 }
38191 arg2 = static_cast< int >(val2);
38192 }
38193 if (obj2) {
38194 {
38195 arg3 = &temp3;
38196 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38197 }
38198 }
38199 if (obj3) {
38200 {
38201 arg4 = &temp4;
38202 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
38203 }
38204 }
38205 if (obj4) {
38206 ecode5 = SWIG_AsVal_long(obj4, &val5);
38207 if (!SWIG_IsOK(ecode5)) {
38208 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DirFilterListCtrl" "', expected argument " "5"" of type '" "long""'");
38209 }
38210 arg5 = static_cast< long >(val5);
38211 }
38212 {
38213 if (!wxPyCheckForApp()) SWIG_fail;
38214 PyThreadState* __tstate = wxPyBeginAllowThreads();
38215 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
38216 wxPyEndAllowThreads(__tstate);
38217 if (PyErr_Occurred()) SWIG_fail;
38218 }
38219 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_NEW | 0 );
38220 return resultobj;
38221 fail:
38222 return NULL;
38223 }
38224
38225
38226 SWIGINTERN PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38227 PyObject *resultobj = 0;
38228 wxDirFilterListCtrl *result = 0 ;
38229
38230 if (!SWIG_Python_UnpackTuple(args,"new_PreDirFilterListCtrl",0,0,0)) SWIG_fail;
38231 {
38232 if (!wxPyCheckForApp()) SWIG_fail;
38233 PyThreadState* __tstate = wxPyBeginAllowThreads();
38234 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
38235 wxPyEndAllowThreads(__tstate);
38236 if (PyErr_Occurred()) SWIG_fail;
38237 }
38238 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_OWN | 0 );
38239 return resultobj;
38240 fail:
38241 return NULL;
38242 }
38243
38244
38245 SWIGINTERN PyObject *_wrap_DirFilterListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38246 PyObject *resultobj = 0;
38247 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38248 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
38249 int arg3 = (int) (int)-1 ;
38250 wxPoint const &arg4_defvalue = wxDefaultPosition ;
38251 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
38252 wxSize const &arg5_defvalue = wxDefaultSize ;
38253 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
38254 long arg6 = (long) 0 ;
38255 bool result;
38256 void *argp1 = 0 ;
38257 int res1 = 0 ;
38258 void *argp2 = 0 ;
38259 int res2 = 0 ;
38260 int val3 ;
38261 int ecode3 = 0 ;
38262 wxPoint temp4 ;
38263 wxSize temp5 ;
38264 long val6 ;
38265 int ecode6 = 0 ;
38266 PyObject * obj0 = 0 ;
38267 PyObject * obj1 = 0 ;
38268 PyObject * obj2 = 0 ;
38269 PyObject * obj3 = 0 ;
38270 PyObject * obj4 = 0 ;
38271 PyObject * obj5 = 0 ;
38272 char * kwnames[] = {
38273 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38274 };
38275
38276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38278 if (!SWIG_IsOK(res1)) {
38279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_Create" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38280 }
38281 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38282 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38283 if (!SWIG_IsOK(res2)) {
38284 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirFilterListCtrl_Create" "', expected argument " "2"" of type '" "wxGenericDirCtrl *""'");
38285 }
38286 arg2 = reinterpret_cast< wxGenericDirCtrl * >(argp2);
38287 if (obj2) {
38288 ecode3 = SWIG_AsVal_int(obj2, &val3);
38289 if (!SWIG_IsOK(ecode3)) {
38290 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
38291 }
38292 arg3 = static_cast< int >(val3);
38293 }
38294 if (obj3) {
38295 {
38296 arg4 = &temp4;
38297 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
38298 }
38299 }
38300 if (obj4) {
38301 {
38302 arg5 = &temp5;
38303 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
38304 }
38305 }
38306 if (obj5) {
38307 ecode6 = SWIG_AsVal_long(obj5, &val6);
38308 if (!SWIG_IsOK(ecode6)) {
38309 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DirFilterListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
38310 }
38311 arg6 = static_cast< long >(val6);
38312 }
38313 {
38314 PyThreadState* __tstate = wxPyBeginAllowThreads();
38315 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
38316 wxPyEndAllowThreads(__tstate);
38317 if (PyErr_Occurred()) SWIG_fail;
38318 }
38319 {
38320 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38321 }
38322 return resultobj;
38323 fail:
38324 return NULL;
38325 }
38326
38327
38328 SWIGINTERN PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38329 PyObject *resultobj = 0;
38330 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38331 wxString *arg2 = 0 ;
38332 int arg3 ;
38333 void *argp1 = 0 ;
38334 int res1 = 0 ;
38335 bool temp2 = false ;
38336 int val3 ;
38337 int ecode3 = 0 ;
38338 PyObject * obj0 = 0 ;
38339 PyObject * obj1 = 0 ;
38340 PyObject * obj2 = 0 ;
38341 char * kwnames[] = {
38342 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
38343 };
38344
38345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38346 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38347 if (!SWIG_IsOK(res1)) {
38348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38349 }
38350 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38351 {
38352 arg2 = wxString_in_helper(obj1);
38353 if (arg2 == NULL) SWIG_fail;
38354 temp2 = true;
38355 }
38356 ecode3 = SWIG_AsVal_int(obj2, &val3);
38357 if (!SWIG_IsOK(ecode3)) {
38358 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "3"" of type '" "int""'");
38359 }
38360 arg3 = static_cast< int >(val3);
38361 {
38362 PyThreadState* __tstate = wxPyBeginAllowThreads();
38363 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
38364 wxPyEndAllowThreads(__tstate);
38365 if (PyErr_Occurred()) SWIG_fail;
38366 }
38367 resultobj = SWIG_Py_Void();
38368 {
38369 if (temp2)
38370 delete arg2;
38371 }
38372 return resultobj;
38373 fail:
38374 {
38375 if (temp2)
38376 delete arg2;
38377 }
38378 return NULL;
38379 }
38380
38381
38382 SWIGINTERN PyObject *DirFilterListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38383 PyObject *obj;
38384 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38385 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirFilterListCtrl, SWIG_NewClientData(obj));
38386 return SWIG_Py_Void();
38387 }
38388
38389 SWIGINTERN PyObject *DirFilterListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38390 return SWIG_Python_InitShadowInstance(args);
38391 }
38392
38393 SWIGINTERN PyObject *_wrap_new_PyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38394 PyObject *resultobj = 0;
38395 wxWindow *arg1 = (wxWindow *) 0 ;
38396 int arg2 = (int) (int)-1 ;
38397 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38398 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38399 wxSize const &arg4_defvalue = wxDefaultSize ;
38400 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38401 long arg5 = (long) 0 ;
38402 wxValidator const &arg6_defvalue = wxDefaultValidator ;
38403 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
38404 wxString const &arg7_defvalue = wxPyControlNameStr ;
38405 wxString *arg7 = (wxString *) &arg7_defvalue ;
38406 wxPyControl *result = 0 ;
38407 void *argp1 = 0 ;
38408 int res1 = 0 ;
38409 int val2 ;
38410 int ecode2 = 0 ;
38411 wxPoint temp3 ;
38412 wxSize temp4 ;
38413 long val5 ;
38414 int ecode5 = 0 ;
38415 void *argp6 = 0 ;
38416 int res6 = 0 ;
38417 bool temp7 = false ;
38418 PyObject * obj0 = 0 ;
38419 PyObject * obj1 = 0 ;
38420 PyObject * obj2 = 0 ;
38421 PyObject * obj3 = 0 ;
38422 PyObject * obj4 = 0 ;
38423 PyObject * obj5 = 0 ;
38424 PyObject * obj6 = 0 ;
38425 char * kwnames[] = {
38426 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
38427 };
38428
38429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
38430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38431 if (!SWIG_IsOK(res1)) {
38432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyControl" "', expected argument " "1"" of type '" "wxWindow *""'");
38433 }
38434 arg1 = reinterpret_cast< wxWindow * >(argp1);
38435 if (obj1) {
38436 ecode2 = SWIG_AsVal_int(obj1, &val2);
38437 if (!SWIG_IsOK(ecode2)) {
38438 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyControl" "', expected argument " "2"" of type '" "int""'");
38439 }
38440 arg2 = static_cast< int >(val2);
38441 }
38442 if (obj2) {
38443 {
38444 arg3 = &temp3;
38445 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38446 }
38447 }
38448 if (obj3) {
38449 {
38450 arg4 = &temp4;
38451 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
38452 }
38453 }
38454 if (obj4) {
38455 ecode5 = SWIG_AsVal_long(obj4, &val5);
38456 if (!SWIG_IsOK(ecode5)) {
38457 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyControl" "', expected argument " "5"" of type '" "long""'");
38458 }
38459 arg5 = static_cast< long >(val5);
38460 }
38461 if (obj5) {
38462 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
38463 if (!SWIG_IsOK(res6)) {
38464 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
38465 }
38466 if (!argp6) {
38467 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
38468 }
38469 arg6 = reinterpret_cast< wxValidator * >(argp6);
38470 }
38471 if (obj6) {
38472 {
38473 arg7 = wxString_in_helper(obj6);
38474 if (arg7 == NULL) SWIG_fail;
38475 temp7 = true;
38476 }
38477 }
38478 {
38479 if (!wxPyCheckForApp()) SWIG_fail;
38480 PyThreadState* __tstate = wxPyBeginAllowThreads();
38481 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
38482 wxPyEndAllowThreads(__tstate);
38483 if (PyErr_Occurred()) SWIG_fail;
38484 }
38485 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_NEW | 0 );
38486 {
38487 if (temp7)
38488 delete arg7;
38489 }
38490 return resultobj;
38491 fail:
38492 {
38493 if (temp7)
38494 delete arg7;
38495 }
38496 return NULL;
38497 }
38498
38499
38500 SWIGINTERN PyObject *_wrap_new_PrePyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38501 PyObject *resultobj = 0;
38502 wxPyControl *result = 0 ;
38503
38504 if (!SWIG_Python_UnpackTuple(args,"new_PrePyControl",0,0,0)) SWIG_fail;
38505 {
38506 if (!wxPyCheckForApp()) SWIG_fail;
38507 PyThreadState* __tstate = wxPyBeginAllowThreads();
38508 result = (wxPyControl *)new wxPyControl();
38509 wxPyEndAllowThreads(__tstate);
38510 if (PyErr_Occurred()) SWIG_fail;
38511 }
38512 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_OWN | 0 );
38513 return resultobj;
38514 fail:
38515 return NULL;
38516 }
38517
38518
38519 SWIGINTERN PyObject *_wrap_PyControl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38520 PyObject *resultobj = 0;
38521 wxPyControl *arg1 = (wxPyControl *) 0 ;
38522 PyObject *arg2 = (PyObject *) 0 ;
38523 PyObject *arg3 = (PyObject *) 0 ;
38524 void *argp1 = 0 ;
38525 int res1 = 0 ;
38526 PyObject * obj0 = 0 ;
38527 PyObject * obj1 = 0 ;
38528 PyObject * obj2 = 0 ;
38529 char * kwnames[] = {
38530 (char *) "self",(char *) "self",(char *) "_class", NULL
38531 };
38532
38533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38535 if (!SWIG_IsOK(res1)) {
38536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyControl *""'");
38537 }
38538 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38539 arg2 = obj1;
38540 arg3 = obj2;
38541 {
38542 PyThreadState* __tstate = wxPyBeginAllowThreads();
38543 (arg1)->_setCallbackInfo(arg2,arg3);
38544 wxPyEndAllowThreads(__tstate);
38545 if (PyErr_Occurred()) SWIG_fail;
38546 }
38547 resultobj = SWIG_Py_Void();
38548 return resultobj;
38549 fail:
38550 return NULL;
38551 }
38552
38553
38554 SWIGINTERN PyObject *_wrap_PyControl_SetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38555 PyObject *resultobj = 0;
38556 wxPyControl *arg1 = (wxPyControl *) 0 ;
38557 wxSize *arg2 = 0 ;
38558 void *argp1 = 0 ;
38559 int res1 = 0 ;
38560 wxSize temp2 ;
38561 PyObject * obj0 = 0 ;
38562 PyObject * obj1 = 0 ;
38563 char * kwnames[] = {
38564 (char *) "self",(char *) "size", NULL
38565 };
38566
38567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
38568 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38569 if (!SWIG_IsOK(res1)) {
38570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_SetBestSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38571 }
38572 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38573 {
38574 arg2 = &temp2;
38575 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
38576 }
38577 {
38578 PyThreadState* __tstate = wxPyBeginAllowThreads();
38579 (arg1)->SetBestSize((wxSize const &)*arg2);
38580 wxPyEndAllowThreads(__tstate);
38581 if (PyErr_Occurred()) SWIG_fail;
38582 }
38583 resultobj = SWIG_Py_Void();
38584 return resultobj;
38585 fail:
38586 return NULL;
38587 }
38588
38589
38590 SWIGINTERN PyObject *_wrap_PyControl_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38591 PyObject *resultobj = 0;
38592 wxPyControl *arg1 = (wxPyControl *) 0 ;
38593 wxDC *arg2 = (wxDC *) 0 ;
38594 bool result;
38595 void *argp1 = 0 ;
38596 int res1 = 0 ;
38597 void *argp2 = 0 ;
38598 int res2 = 0 ;
38599 PyObject * obj0 = 0 ;
38600 PyObject * obj1 = 0 ;
38601 char * kwnames[] = {
38602 (char *) "self",(char *) "dc", NULL
38603 };
38604
38605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38607 if (!SWIG_IsOK(res1)) {
38608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyControl *""'");
38609 }
38610 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38611 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
38612 if (!SWIG_IsOK(res2)) {
38613 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyControl_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'");
38614 }
38615 arg2 = reinterpret_cast< wxDC * >(argp2);
38616 {
38617 PyThreadState* __tstate = wxPyBeginAllowThreads();
38618 result = (bool)(arg1)->DoEraseBackground(arg2);
38619 wxPyEndAllowThreads(__tstate);
38620 if (PyErr_Occurred()) SWIG_fail;
38621 }
38622 {
38623 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38624 }
38625 return resultobj;
38626 fail:
38627 return NULL;
38628 }
38629
38630
38631 SWIGINTERN PyObject *_wrap_PyControl_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38632 PyObject *resultobj = 0;
38633 wxPyControl *arg1 = (wxPyControl *) 0 ;
38634 int arg2 ;
38635 int arg3 ;
38636 int arg4 ;
38637 int arg5 ;
38638 void *argp1 = 0 ;
38639 int res1 = 0 ;
38640 int val2 ;
38641 int ecode2 = 0 ;
38642 int val3 ;
38643 int ecode3 = 0 ;
38644 int val4 ;
38645 int ecode4 = 0 ;
38646 int val5 ;
38647 int ecode5 = 0 ;
38648 PyObject * obj0 = 0 ;
38649 PyObject * obj1 = 0 ;
38650 PyObject * obj2 = 0 ;
38651 PyObject * obj3 = 0 ;
38652 PyObject * obj4 = 0 ;
38653 char * kwnames[] = {
38654 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
38655 };
38656
38657 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38658 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38659 if (!SWIG_IsOK(res1)) {
38660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyControl *""'");
38661 }
38662 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38663 ecode2 = SWIG_AsVal_int(obj1, &val2);
38664 if (!SWIG_IsOK(ecode2)) {
38665 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoMoveWindow" "', expected argument " "2"" of type '" "int""'");
38666 }
38667 arg2 = static_cast< int >(val2);
38668 ecode3 = SWIG_AsVal_int(obj2, &val3);
38669 if (!SWIG_IsOK(ecode3)) {
38670 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoMoveWindow" "', expected argument " "3"" of type '" "int""'");
38671 }
38672 arg3 = static_cast< int >(val3);
38673 ecode4 = SWIG_AsVal_int(obj3, &val4);
38674 if (!SWIG_IsOK(ecode4)) {
38675 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoMoveWindow" "', expected argument " "4"" of type '" "int""'");
38676 }
38677 arg4 = static_cast< int >(val4);
38678 ecode5 = SWIG_AsVal_int(obj4, &val5);
38679 if (!SWIG_IsOK(ecode5)) {
38680 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoMoveWindow" "', expected argument " "5"" of type '" "int""'");
38681 }
38682 arg5 = static_cast< int >(val5);
38683 {
38684 PyThreadState* __tstate = wxPyBeginAllowThreads();
38685 (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5);
38686 wxPyEndAllowThreads(__tstate);
38687 if (PyErr_Occurred()) SWIG_fail;
38688 }
38689 resultobj = SWIG_Py_Void();
38690 return resultobj;
38691 fail:
38692 return NULL;
38693 }
38694
38695
38696 SWIGINTERN PyObject *_wrap_PyControl_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38697 PyObject *resultobj = 0;
38698 wxPyControl *arg1 = (wxPyControl *) 0 ;
38699 int arg2 ;
38700 int arg3 ;
38701 int arg4 ;
38702 int arg5 ;
38703 int arg6 = (int) wxSIZE_AUTO ;
38704 void *argp1 = 0 ;
38705 int res1 = 0 ;
38706 int val2 ;
38707 int ecode2 = 0 ;
38708 int val3 ;
38709 int ecode3 = 0 ;
38710 int val4 ;
38711 int ecode4 = 0 ;
38712 int val5 ;
38713 int ecode5 = 0 ;
38714 int val6 ;
38715 int ecode6 = 0 ;
38716 PyObject * obj0 = 0 ;
38717 PyObject * obj1 = 0 ;
38718 PyObject * obj2 = 0 ;
38719 PyObject * obj3 = 0 ;
38720 PyObject * obj4 = 0 ;
38721 PyObject * obj5 = 0 ;
38722 char * kwnames[] = {
38723 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
38724 };
38725
38726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38728 if (!SWIG_IsOK(res1)) {
38729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38730 }
38731 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38732 ecode2 = SWIG_AsVal_int(obj1, &val2);
38733 if (!SWIG_IsOK(ecode2)) {
38734 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetSize" "', expected argument " "2"" of type '" "int""'");
38735 }
38736 arg2 = static_cast< int >(val2);
38737 ecode3 = SWIG_AsVal_int(obj2, &val3);
38738 if (!SWIG_IsOK(ecode3)) {
38739 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetSize" "', expected argument " "3"" of type '" "int""'");
38740 }
38741 arg3 = static_cast< int >(val3);
38742 ecode4 = SWIG_AsVal_int(obj3, &val4);
38743 if (!SWIG_IsOK(ecode4)) {
38744 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoSetSize" "', expected argument " "4"" of type '" "int""'");
38745 }
38746 arg4 = static_cast< int >(val4);
38747 ecode5 = SWIG_AsVal_int(obj4, &val5);
38748 if (!SWIG_IsOK(ecode5)) {
38749 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoSetSize" "', expected argument " "5"" of type '" "int""'");
38750 }
38751 arg5 = static_cast< int >(val5);
38752 if (obj5) {
38753 ecode6 = SWIG_AsVal_int(obj5, &val6);
38754 if (!SWIG_IsOK(ecode6)) {
38755 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyControl_DoSetSize" "', expected argument " "6"" of type '" "int""'");
38756 }
38757 arg6 = static_cast< int >(val6);
38758 }
38759 {
38760 PyThreadState* __tstate = wxPyBeginAllowThreads();
38761 (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6);
38762 wxPyEndAllowThreads(__tstate);
38763 if (PyErr_Occurred()) SWIG_fail;
38764 }
38765 resultobj = SWIG_Py_Void();
38766 return resultobj;
38767 fail:
38768 return NULL;
38769 }
38770
38771
38772 SWIGINTERN PyObject *_wrap_PyControl_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38773 PyObject *resultobj = 0;
38774 wxPyControl *arg1 = (wxPyControl *) 0 ;
38775 int arg2 ;
38776 int arg3 ;
38777 void *argp1 = 0 ;
38778 int res1 = 0 ;
38779 int val2 ;
38780 int ecode2 = 0 ;
38781 int val3 ;
38782 int ecode3 = 0 ;
38783 PyObject * obj0 = 0 ;
38784 PyObject * obj1 = 0 ;
38785 PyObject * obj2 = 0 ;
38786 char * kwnames[] = {
38787 (char *) "self",(char *) "width",(char *) "height", NULL
38788 };
38789
38790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38792 if (!SWIG_IsOK(res1)) {
38793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38794 }
38795 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38796 ecode2 = SWIG_AsVal_int(obj1, &val2);
38797 if (!SWIG_IsOK(ecode2)) {
38798 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetClientSize" "', expected argument " "2"" of type '" "int""'");
38799 }
38800 arg2 = static_cast< int >(val2);
38801 ecode3 = SWIG_AsVal_int(obj2, &val3);
38802 if (!SWIG_IsOK(ecode3)) {
38803 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetClientSize" "', expected argument " "3"" of type '" "int""'");
38804 }
38805 arg3 = static_cast< int >(val3);
38806 {
38807 PyThreadState* __tstate = wxPyBeginAllowThreads();
38808 (arg1)->DoSetClientSize(arg2,arg3);
38809 wxPyEndAllowThreads(__tstate);
38810 if (PyErr_Occurred()) SWIG_fail;
38811 }
38812 resultobj = SWIG_Py_Void();
38813 return resultobj;
38814 fail:
38815 return NULL;
38816 }
38817
38818
38819 SWIGINTERN PyObject *_wrap_PyControl_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38820 PyObject *resultobj = 0;
38821 wxPyControl *arg1 = (wxPyControl *) 0 ;
38822 int arg2 ;
38823 int arg3 ;
38824 void *argp1 = 0 ;
38825 int res1 = 0 ;
38826 int val2 ;
38827 int ecode2 = 0 ;
38828 int val3 ;
38829 int ecode3 = 0 ;
38830 PyObject * obj0 = 0 ;
38831 PyObject * obj1 = 0 ;
38832 PyObject * obj2 = 0 ;
38833 char * kwnames[] = {
38834 (char *) "self",(char *) "x",(char *) "y", NULL
38835 };
38836
38837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38839 if (!SWIG_IsOK(res1)) {
38840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38841 }
38842 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38843 ecode2 = SWIG_AsVal_int(obj1, &val2);
38844 if (!SWIG_IsOK(ecode2)) {
38845 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'");
38846 }
38847 arg2 = static_cast< int >(val2);
38848 ecode3 = SWIG_AsVal_int(obj2, &val3);
38849 if (!SWIG_IsOK(ecode3)) {
38850 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'");
38851 }
38852 arg3 = static_cast< int >(val3);
38853 {
38854 PyThreadState* __tstate = wxPyBeginAllowThreads();
38855 (arg1)->DoSetVirtualSize(arg2,arg3);
38856 wxPyEndAllowThreads(__tstate);
38857 if (PyErr_Occurred()) SWIG_fail;
38858 }
38859 resultobj = SWIG_Py_Void();
38860 return resultobj;
38861 fail:
38862 return NULL;
38863 }
38864
38865
38866 SWIGINTERN PyObject *_wrap_PyControl_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38867 PyObject *resultobj = 0;
38868 wxPyControl *arg1 = (wxPyControl *) 0 ;
38869 int *arg2 = (int *) 0 ;
38870 int *arg3 = (int *) 0 ;
38871 void *argp1 = 0 ;
38872 int res1 = 0 ;
38873 int temp2 ;
38874 int res2 = SWIG_TMPOBJ ;
38875 int temp3 ;
38876 int res3 = SWIG_TMPOBJ ;
38877 PyObject *swig_obj[1] ;
38878
38879 arg2 = &temp2;
38880 arg3 = &temp3;
38881 if (!args) SWIG_fail;
38882 swig_obj[0] = args;
38883 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38884 if (!SWIG_IsOK(res1)) {
38885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38886 }
38887 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38888 {
38889 PyThreadState* __tstate = wxPyBeginAllowThreads();
38890 ((wxPyControl const *)arg1)->DoGetSize(arg2,arg3);
38891 wxPyEndAllowThreads(__tstate);
38892 if (PyErr_Occurred()) SWIG_fail;
38893 }
38894 resultobj = SWIG_Py_Void();
38895 if (SWIG_IsTmpObj(res2)) {
38896 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38897 } else {
38898 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38899 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38900 }
38901 if (SWIG_IsTmpObj(res3)) {
38902 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38903 } else {
38904 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38905 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38906 }
38907 return resultobj;
38908 fail:
38909 return NULL;
38910 }
38911
38912
38913 SWIGINTERN PyObject *_wrap_PyControl_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38914 PyObject *resultobj = 0;
38915 wxPyControl *arg1 = (wxPyControl *) 0 ;
38916 int *arg2 = (int *) 0 ;
38917 int *arg3 = (int *) 0 ;
38918 void *argp1 = 0 ;
38919 int res1 = 0 ;
38920 int temp2 ;
38921 int res2 = SWIG_TMPOBJ ;
38922 int temp3 ;
38923 int res3 = SWIG_TMPOBJ ;
38924 PyObject *swig_obj[1] ;
38925
38926 arg2 = &temp2;
38927 arg3 = &temp3;
38928 if (!args) SWIG_fail;
38929 swig_obj[0] = args;
38930 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38931 if (!SWIG_IsOK(res1)) {
38932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38933 }
38934 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38935 {
38936 PyThreadState* __tstate = wxPyBeginAllowThreads();
38937 ((wxPyControl const *)arg1)->DoGetClientSize(arg2,arg3);
38938 wxPyEndAllowThreads(__tstate);
38939 if (PyErr_Occurred()) SWIG_fail;
38940 }
38941 resultobj = SWIG_Py_Void();
38942 if (SWIG_IsTmpObj(res2)) {
38943 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38944 } else {
38945 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38946 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38947 }
38948 if (SWIG_IsTmpObj(res3)) {
38949 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38950 } else {
38951 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38952 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38953 }
38954 return resultobj;
38955 fail:
38956 return NULL;
38957 }
38958
38959
38960 SWIGINTERN PyObject *_wrap_PyControl_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38961 PyObject *resultobj = 0;
38962 wxPyControl *arg1 = (wxPyControl *) 0 ;
38963 int *arg2 = (int *) 0 ;
38964 int *arg3 = (int *) 0 ;
38965 void *argp1 = 0 ;
38966 int res1 = 0 ;
38967 int temp2 ;
38968 int res2 = SWIG_TMPOBJ ;
38969 int temp3 ;
38970 int res3 = SWIG_TMPOBJ ;
38971 PyObject *swig_obj[1] ;
38972
38973 arg2 = &temp2;
38974 arg3 = &temp3;
38975 if (!args) SWIG_fail;
38976 swig_obj[0] = args;
38977 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38978 if (!SWIG_IsOK(res1)) {
38979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetPosition" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38980 }
38981 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38982 {
38983 PyThreadState* __tstate = wxPyBeginAllowThreads();
38984 ((wxPyControl const *)arg1)->DoGetPosition(arg2,arg3);
38985 wxPyEndAllowThreads(__tstate);
38986 if (PyErr_Occurred()) SWIG_fail;
38987 }
38988 resultobj = SWIG_Py_Void();
38989 if (SWIG_IsTmpObj(res2)) {
38990 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38991 } else {
38992 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38993 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38994 }
38995 if (SWIG_IsTmpObj(res3)) {
38996 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38997 } else {
38998 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38999 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39000 }
39001 return resultobj;
39002 fail:
39003 return NULL;
39004 }
39005
39006
39007 SWIGINTERN PyObject *_wrap_PyControl_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39008 PyObject *resultobj = 0;
39009 wxPyControl *arg1 = (wxPyControl *) 0 ;
39010 wxSize result;
39011 void *argp1 = 0 ;
39012 int res1 = 0 ;
39013 PyObject *swig_obj[1] ;
39014
39015 if (!args) SWIG_fail;
39016 swig_obj[0] = args;
39017 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39018 if (!SWIG_IsOK(res1)) {
39019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39020 }
39021 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39022 {
39023 PyThreadState* __tstate = wxPyBeginAllowThreads();
39024 result = ((wxPyControl const *)arg1)->DoGetVirtualSize();
39025 wxPyEndAllowThreads(__tstate);
39026 if (PyErr_Occurred()) SWIG_fail;
39027 }
39028 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39029 return resultobj;
39030 fail:
39031 return NULL;
39032 }
39033
39034
39035 SWIGINTERN PyObject *_wrap_PyControl_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39036 PyObject *resultobj = 0;
39037 wxPyControl *arg1 = (wxPyControl *) 0 ;
39038 wxSize result;
39039 void *argp1 = 0 ;
39040 int res1 = 0 ;
39041 PyObject *swig_obj[1] ;
39042
39043 if (!args) SWIG_fail;
39044 swig_obj[0] = args;
39045 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39046 if (!SWIG_IsOK(res1)) {
39047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39048 }
39049 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39050 {
39051 PyThreadState* __tstate = wxPyBeginAllowThreads();
39052 result = ((wxPyControl const *)arg1)->DoGetBestSize();
39053 wxPyEndAllowThreads(__tstate);
39054 if (PyErr_Occurred()) SWIG_fail;
39055 }
39056 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39057 return resultobj;
39058 fail:
39059 return NULL;
39060 }
39061
39062
39063 SWIGINTERN PyObject *_wrap_PyControl_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39064 PyObject *resultobj = 0;
39065 wxPyControl *arg1 = (wxPyControl *) 0 ;
39066 SwigValueWrapper<wxVisualAttributes > result;
39067 void *argp1 = 0 ;
39068 int res1 = 0 ;
39069 PyObject *swig_obj[1] ;
39070
39071 if (!args) SWIG_fail;
39072 swig_obj[0] = args;
39073 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39074 if (!SWIG_IsOK(res1)) {
39075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyControl *""'");
39076 }
39077 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39078 {
39079 PyThreadState* __tstate = wxPyBeginAllowThreads();
39080 result = (arg1)->GetDefaultAttributes();
39081 wxPyEndAllowThreads(__tstate);
39082 if (PyErr_Occurred()) SWIG_fail;
39083 }
39084 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
39085 return resultobj;
39086 fail:
39087 return NULL;
39088 }
39089
39090
39091 SWIGINTERN PyObject *_wrap_PyControl_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39092 PyObject *resultobj = 0;
39093 wxPyControl *arg1 = (wxPyControl *) 0 ;
39094 void *argp1 = 0 ;
39095 int res1 = 0 ;
39096 PyObject *swig_obj[1] ;
39097
39098 if (!args) SWIG_fail;
39099 swig_obj[0] = args;
39100 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39101 if (!SWIG_IsOK(res1)) {
39102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyControl *""'");
39103 }
39104 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39105 {
39106 PyThreadState* __tstate = wxPyBeginAllowThreads();
39107 (arg1)->OnInternalIdle();
39108 wxPyEndAllowThreads(__tstate);
39109 if (PyErr_Occurred()) SWIG_fail;
39110 }
39111 resultobj = SWIG_Py_Void();
39112 return resultobj;
39113 fail:
39114 return NULL;
39115 }
39116
39117
39118 SWIGINTERN PyObject *PyControl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39119 PyObject *obj;
39120 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39121 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyControl, SWIG_NewClientData(obj));
39122 return SWIG_Py_Void();
39123 }
39124
39125 SWIGINTERN PyObject *PyControl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39126 return SWIG_Python_InitShadowInstance(args);
39127 }
39128
39129 SWIGINTERN PyObject *_wrap_new_HelpEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39130 PyObject *resultobj = 0;
39131 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
39132 int arg2 = (int) 0 ;
39133 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39134 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39135 wxHelpEvent::Origin arg4 = (wxHelpEvent::Origin) wxHelpEvent::Origin_Unknown ;
39136 wxHelpEvent *result = 0 ;
39137 int val1 ;
39138 int ecode1 = 0 ;
39139 int val2 ;
39140 int ecode2 = 0 ;
39141 wxPoint temp3 ;
39142 int val4 ;
39143 int ecode4 = 0 ;
39144 PyObject * obj0 = 0 ;
39145 PyObject * obj1 = 0 ;
39146 PyObject * obj2 = 0 ;
39147 PyObject * obj3 = 0 ;
39148 char * kwnames[] = {
39149 (char *) "type",(char *) "winid",(char *) "pt",(char *) "origin", NULL
39150 };
39151
39152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
39153 if (obj0) {
39154 ecode1 = SWIG_AsVal_int(obj0, &val1);
39155 if (!SWIG_IsOK(ecode1)) {
39156 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HelpEvent" "', expected argument " "1"" of type '" "wxEventType""'");
39157 }
39158 arg1 = static_cast< wxEventType >(val1);
39159 }
39160 if (obj1) {
39161 ecode2 = SWIG_AsVal_int(obj1, &val2);
39162 if (!SWIG_IsOK(ecode2)) {
39163 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HelpEvent" "', expected argument " "2"" of type '" "int""'");
39164 }
39165 arg2 = static_cast< int >(val2);
39166 }
39167 if (obj2) {
39168 {
39169 arg3 = &temp3;
39170 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
39171 }
39172 }
39173 if (obj3) {
39174 ecode4 = SWIG_AsVal_int(obj3, &val4);
39175 if (!SWIG_IsOK(ecode4)) {
39176 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_HelpEvent" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
39177 }
39178 arg4 = static_cast< wxHelpEvent::Origin >(val4);
39179 }
39180 {
39181 PyThreadState* __tstate = wxPyBeginAllowThreads();
39182 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3,arg4);
39183 wxPyEndAllowThreads(__tstate);
39184 if (PyErr_Occurred()) SWIG_fail;
39185 }
39186 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_NEW | 0 );
39187 return resultobj;
39188 fail:
39189 return NULL;
39190 }
39191
39192
39193 SWIGINTERN PyObject *_wrap_HelpEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39194 PyObject *resultobj = 0;
39195 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39196 wxPoint result;
39197 void *argp1 = 0 ;
39198 int res1 = 0 ;
39199 PyObject *swig_obj[1] ;
39200
39201 if (!args) SWIG_fail;
39202 swig_obj[0] = args;
39203 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39204 if (!SWIG_IsOK(res1)) {
39205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetPosition" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39206 }
39207 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39208 {
39209 PyThreadState* __tstate = wxPyBeginAllowThreads();
39210 result = ((wxHelpEvent const *)arg1)->GetPosition();
39211 wxPyEndAllowThreads(__tstate);
39212 if (PyErr_Occurred()) SWIG_fail;
39213 }
39214 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
39215 return resultobj;
39216 fail:
39217 return NULL;
39218 }
39219
39220
39221 SWIGINTERN PyObject *_wrap_HelpEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39222 PyObject *resultobj = 0;
39223 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39224 wxPoint *arg2 = 0 ;
39225 void *argp1 = 0 ;
39226 int res1 = 0 ;
39227 wxPoint temp2 ;
39228 PyObject * obj0 = 0 ;
39229 PyObject * obj1 = 0 ;
39230 char * kwnames[] = {
39231 (char *) "self",(char *) "pos", NULL
39232 };
39233
39234 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
39235 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39236 if (!SWIG_IsOK(res1)) {
39237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetPosition" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39238 }
39239 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39240 {
39241 arg2 = &temp2;
39242 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39243 }
39244 {
39245 PyThreadState* __tstate = wxPyBeginAllowThreads();
39246 (arg1)->SetPosition((wxPoint const &)*arg2);
39247 wxPyEndAllowThreads(__tstate);
39248 if (PyErr_Occurred()) SWIG_fail;
39249 }
39250 resultobj = SWIG_Py_Void();
39251 return resultobj;
39252 fail:
39253 return NULL;
39254 }
39255
39256
39257 SWIGINTERN PyObject *_wrap_HelpEvent_GetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39258 PyObject *resultobj = 0;
39259 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39260 wxString *result = 0 ;
39261 void *argp1 = 0 ;
39262 int res1 = 0 ;
39263 PyObject *swig_obj[1] ;
39264
39265 if (!args) SWIG_fail;
39266 swig_obj[0] = args;
39267 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39268 if (!SWIG_IsOK(res1)) {
39269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetLink" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39270 }
39271 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39272 {
39273 PyThreadState* __tstate = wxPyBeginAllowThreads();
39274 {
39275 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
39276 result = (wxString *) &_result_ref;
39277 }
39278 wxPyEndAllowThreads(__tstate);
39279 if (PyErr_Occurred()) SWIG_fail;
39280 }
39281 {
39282 #if wxUSE_UNICODE
39283 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39284 #else
39285 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39286 #endif
39287 }
39288 return resultobj;
39289 fail:
39290 return NULL;
39291 }
39292
39293
39294 SWIGINTERN PyObject *_wrap_HelpEvent_SetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39295 PyObject *resultobj = 0;
39296 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39297 wxString *arg2 = 0 ;
39298 void *argp1 = 0 ;
39299 int res1 = 0 ;
39300 bool temp2 = false ;
39301 PyObject * obj0 = 0 ;
39302 PyObject * obj1 = 0 ;
39303 char * kwnames[] = {
39304 (char *) "self",(char *) "link", NULL
39305 };
39306
39307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) SWIG_fail;
39308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39309 if (!SWIG_IsOK(res1)) {
39310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetLink" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39311 }
39312 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39313 {
39314 arg2 = wxString_in_helper(obj1);
39315 if (arg2 == NULL) SWIG_fail;
39316 temp2 = true;
39317 }
39318 {
39319 PyThreadState* __tstate = wxPyBeginAllowThreads();
39320 (arg1)->SetLink((wxString const &)*arg2);
39321 wxPyEndAllowThreads(__tstate);
39322 if (PyErr_Occurred()) SWIG_fail;
39323 }
39324 resultobj = SWIG_Py_Void();
39325 {
39326 if (temp2)
39327 delete arg2;
39328 }
39329 return resultobj;
39330 fail:
39331 {
39332 if (temp2)
39333 delete arg2;
39334 }
39335 return NULL;
39336 }
39337
39338
39339 SWIGINTERN PyObject *_wrap_HelpEvent_GetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39340 PyObject *resultobj = 0;
39341 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39342 wxString *result = 0 ;
39343 void *argp1 = 0 ;
39344 int res1 = 0 ;
39345 PyObject *swig_obj[1] ;
39346
39347 if (!args) SWIG_fail;
39348 swig_obj[0] = args;
39349 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39350 if (!SWIG_IsOK(res1)) {
39351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetTarget" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39352 }
39353 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39354 {
39355 PyThreadState* __tstate = wxPyBeginAllowThreads();
39356 {
39357 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
39358 result = (wxString *) &_result_ref;
39359 }
39360 wxPyEndAllowThreads(__tstate);
39361 if (PyErr_Occurred()) SWIG_fail;
39362 }
39363 {
39364 #if wxUSE_UNICODE
39365 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39366 #else
39367 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39368 #endif
39369 }
39370 return resultobj;
39371 fail:
39372 return NULL;
39373 }
39374
39375
39376 SWIGINTERN PyObject *_wrap_HelpEvent_SetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39377 PyObject *resultobj = 0;
39378 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39379 wxString *arg2 = 0 ;
39380 void *argp1 = 0 ;
39381 int res1 = 0 ;
39382 bool temp2 = false ;
39383 PyObject * obj0 = 0 ;
39384 PyObject * obj1 = 0 ;
39385 char * kwnames[] = {
39386 (char *) "self",(char *) "target", NULL
39387 };
39388
39389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) SWIG_fail;
39390 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39391 if (!SWIG_IsOK(res1)) {
39392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetTarget" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39393 }
39394 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39395 {
39396 arg2 = wxString_in_helper(obj1);
39397 if (arg2 == NULL) SWIG_fail;
39398 temp2 = true;
39399 }
39400 {
39401 PyThreadState* __tstate = wxPyBeginAllowThreads();
39402 (arg1)->SetTarget((wxString const &)*arg2);
39403 wxPyEndAllowThreads(__tstate);
39404 if (PyErr_Occurred()) SWIG_fail;
39405 }
39406 resultobj = SWIG_Py_Void();
39407 {
39408 if (temp2)
39409 delete arg2;
39410 }
39411 return resultobj;
39412 fail:
39413 {
39414 if (temp2)
39415 delete arg2;
39416 }
39417 return NULL;
39418 }
39419
39420
39421 SWIGINTERN PyObject *_wrap_HelpEvent_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39422 PyObject *resultobj = 0;
39423 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39424 wxHelpEvent::Origin result;
39425 void *argp1 = 0 ;
39426 int res1 = 0 ;
39427 PyObject *swig_obj[1] ;
39428
39429 if (!args) SWIG_fail;
39430 swig_obj[0] = args;
39431 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39432 if (!SWIG_IsOK(res1)) {
39433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39434 }
39435 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39436 {
39437 PyThreadState* __tstate = wxPyBeginAllowThreads();
39438 result = (wxHelpEvent::Origin)((wxHelpEvent const *)arg1)->GetOrigin();
39439 wxPyEndAllowThreads(__tstate);
39440 if (PyErr_Occurred()) SWIG_fail;
39441 }
39442 resultobj = SWIG_From_int(static_cast< int >(result));
39443 return resultobj;
39444 fail:
39445 return NULL;
39446 }
39447
39448
39449 SWIGINTERN PyObject *_wrap_HelpEvent_SetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39450 PyObject *resultobj = 0;
39451 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39452 wxHelpEvent::Origin arg2 ;
39453 void *argp1 = 0 ;
39454 int res1 = 0 ;
39455 int val2 ;
39456 int ecode2 = 0 ;
39457 PyObject * obj0 = 0 ;
39458 PyObject * obj1 = 0 ;
39459 char * kwnames[] = {
39460 (char *) "self",(char *) "origin", NULL
39461 };
39462
39463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetOrigin",kwnames,&obj0,&obj1)) SWIG_fail;
39464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39465 if (!SWIG_IsOK(res1)) {
39466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39467 }
39468 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39469 ecode2 = SWIG_AsVal_int(obj1, &val2);
39470 if (!SWIG_IsOK(ecode2)) {
39471 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpEvent_SetOrigin" "', expected argument " "2"" of type '" "wxHelpEvent::Origin""'");
39472 }
39473 arg2 = static_cast< wxHelpEvent::Origin >(val2);
39474 {
39475 PyThreadState* __tstate = wxPyBeginAllowThreads();
39476 (arg1)->SetOrigin(arg2);
39477 wxPyEndAllowThreads(__tstate);
39478 if (PyErr_Occurred()) SWIG_fail;
39479 }
39480 resultobj = SWIG_Py_Void();
39481 return resultobj;
39482 fail:
39483 return NULL;
39484 }
39485
39486
39487 SWIGINTERN PyObject *HelpEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39488 PyObject *obj;
39489 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39490 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpEvent, SWIG_NewClientData(obj));
39491 return SWIG_Py_Void();
39492 }
39493
39494 SWIGINTERN PyObject *HelpEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39495 return SWIG_Python_InitShadowInstance(args);
39496 }
39497
39498 SWIGINTERN PyObject *_wrap_new_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39499 PyObject *resultobj = 0;
39500 wxWindow *arg1 = (wxWindow *) NULL ;
39501 bool arg2 = (bool) true ;
39502 wxContextHelp *result = 0 ;
39503 void *argp1 = 0 ;
39504 int res1 = 0 ;
39505 bool val2 ;
39506 int ecode2 = 0 ;
39507 PyObject * obj0 = 0 ;
39508 PyObject * obj1 = 0 ;
39509 char * kwnames[] = {
39510 (char *) "window",(char *) "doNow", NULL
39511 };
39512
39513 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39514 if (obj0) {
39515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39516 if (!SWIG_IsOK(res1)) {
39517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelp" "', expected argument " "1"" of type '" "wxWindow *""'");
39518 }
39519 arg1 = reinterpret_cast< wxWindow * >(argp1);
39520 }
39521 if (obj1) {
39522 ecode2 = SWIG_AsVal_bool(obj1, &val2);
39523 if (!SWIG_IsOK(ecode2)) {
39524 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelp" "', expected argument " "2"" of type '" "bool""'");
39525 }
39526 arg2 = static_cast< bool >(val2);
39527 }
39528 {
39529 if (!wxPyCheckForApp()) SWIG_fail;
39530 PyThreadState* __tstate = wxPyBeginAllowThreads();
39531 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
39532 wxPyEndAllowThreads(__tstate);
39533 if (PyErr_Occurred()) SWIG_fail;
39534 }
39535 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelp, SWIG_POINTER_NEW | 0 );
39536 return resultobj;
39537 fail:
39538 return NULL;
39539 }
39540
39541
39542 SWIGINTERN PyObject *_wrap_delete_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39543 PyObject *resultobj = 0;
39544 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39545 void *argp1 = 0 ;
39546 int res1 = 0 ;
39547 PyObject *swig_obj[1] ;
39548
39549 if (!args) SWIG_fail;
39550 swig_obj[0] = args;
39551 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, SWIG_POINTER_DISOWN | 0 );
39552 if (!SWIG_IsOK(res1)) {
39553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39554 }
39555 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39556 {
39557 PyThreadState* __tstate = wxPyBeginAllowThreads();
39558 delete arg1;
39559
39560 wxPyEndAllowThreads(__tstate);
39561 if (PyErr_Occurred()) SWIG_fail;
39562 }
39563 resultobj = SWIG_Py_Void();
39564 return resultobj;
39565 fail:
39566 return NULL;
39567 }
39568
39569
39570 SWIGINTERN PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39571 PyObject *resultobj = 0;
39572 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39573 wxWindow *arg2 = (wxWindow *) NULL ;
39574 bool result;
39575 void *argp1 = 0 ;
39576 int res1 = 0 ;
39577 void *argp2 = 0 ;
39578 int res2 = 0 ;
39579 PyObject * obj0 = 0 ;
39580 PyObject * obj1 = 0 ;
39581 char * kwnames[] = {
39582 (char *) "self",(char *) "window", NULL
39583 };
39584
39585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39587 if (!SWIG_IsOK(res1)) {
39588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39589 }
39590 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39591 if (obj1) {
39592 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39593 if (!SWIG_IsOK(res2)) {
39594 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39595 }
39596 arg2 = reinterpret_cast< wxWindow * >(argp2);
39597 }
39598 {
39599 PyThreadState* __tstate = wxPyBeginAllowThreads();
39600 result = (bool)(arg1)->BeginContextHelp(arg2);
39601 wxPyEndAllowThreads(__tstate);
39602 if (PyErr_Occurred()) SWIG_fail;
39603 }
39604 {
39605 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39606 }
39607 return resultobj;
39608 fail:
39609 return NULL;
39610 }
39611
39612
39613 SWIGINTERN PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39614 PyObject *resultobj = 0;
39615 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39616 bool result;
39617 void *argp1 = 0 ;
39618 int res1 = 0 ;
39619 PyObject *swig_obj[1] ;
39620
39621 if (!args) SWIG_fail;
39622 swig_obj[0] = args;
39623 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39624 if (!SWIG_IsOK(res1)) {
39625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_EndContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39626 }
39627 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39628 {
39629 PyThreadState* __tstate = wxPyBeginAllowThreads();
39630 result = (bool)(arg1)->EndContextHelp();
39631 wxPyEndAllowThreads(__tstate);
39632 if (PyErr_Occurred()) SWIG_fail;
39633 }
39634 {
39635 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39636 }
39637 return resultobj;
39638 fail:
39639 return NULL;
39640 }
39641
39642
39643 SWIGINTERN PyObject *ContextHelp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39644 PyObject *obj;
39645 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39646 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelp, SWIG_NewClientData(obj));
39647 return SWIG_Py_Void();
39648 }
39649
39650 SWIGINTERN PyObject *ContextHelp_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39651 return SWIG_Python_InitShadowInstance(args);
39652 }
39653
39654 SWIGINTERN PyObject *_wrap_new_ContextHelpButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39655 PyObject *resultobj = 0;
39656 wxWindow *arg1 = (wxWindow *) 0 ;
39657 int arg2 = (int) wxID_CONTEXT_HELP ;
39658 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39659 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39660 wxSize const &arg4_defvalue = wxDefaultSize ;
39661 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
39662 long arg5 = (long) wxBU_AUTODRAW ;
39663 wxContextHelpButton *result = 0 ;
39664 void *argp1 = 0 ;
39665 int res1 = 0 ;
39666 int val2 ;
39667 int ecode2 = 0 ;
39668 wxPoint temp3 ;
39669 wxSize temp4 ;
39670 long val5 ;
39671 int ecode5 = 0 ;
39672 PyObject * obj0 = 0 ;
39673 PyObject * obj1 = 0 ;
39674 PyObject * obj2 = 0 ;
39675 PyObject * obj3 = 0 ;
39676 PyObject * obj4 = 0 ;
39677 char * kwnames[] = {
39678 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
39679 };
39680
39681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39683 if (!SWIG_IsOK(res1)) {
39684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelpButton" "', expected argument " "1"" of type '" "wxWindow *""'");
39685 }
39686 arg1 = reinterpret_cast< wxWindow * >(argp1);
39687 if (obj1) {
39688 ecode2 = SWIG_AsVal_int(obj1, &val2);
39689 if (!SWIG_IsOK(ecode2)) {
39690 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelpButton" "', expected argument " "2"" of type '" "int""'");
39691 }
39692 arg2 = static_cast< int >(val2);
39693 }
39694 if (obj2) {
39695 {
39696 arg3 = &temp3;
39697 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
39698 }
39699 }
39700 if (obj3) {
39701 {
39702 arg4 = &temp4;
39703 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
39704 }
39705 }
39706 if (obj4) {
39707 ecode5 = SWIG_AsVal_long(obj4, &val5);
39708 if (!SWIG_IsOK(ecode5)) {
39709 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ContextHelpButton" "', expected argument " "5"" of type '" "long""'");
39710 }
39711 arg5 = static_cast< long >(val5);
39712 }
39713 {
39714 if (!wxPyCheckForApp()) SWIG_fail;
39715 PyThreadState* __tstate = wxPyBeginAllowThreads();
39716 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
39717 wxPyEndAllowThreads(__tstate);
39718 if (PyErr_Occurred()) SWIG_fail;
39719 }
39720 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelpButton, SWIG_POINTER_NEW | 0 );
39721 return resultobj;
39722 fail:
39723 return NULL;
39724 }
39725
39726
39727 SWIGINTERN PyObject *ContextHelpButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39728 PyObject *obj;
39729 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39730 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelpButton, SWIG_NewClientData(obj));
39731 return SWIG_Py_Void();
39732 }
39733
39734 SWIGINTERN PyObject *ContextHelpButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39735 return SWIG_Python_InitShadowInstance(args);
39736 }
39737
39738 SWIGINTERN PyObject *_wrap_delete_HelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39739 PyObject *resultobj = 0;
39740 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39741 void *argp1 = 0 ;
39742 int res1 = 0 ;
39743 PyObject *swig_obj[1] ;
39744
39745 if (!args) SWIG_fail;
39746 swig_obj[0] = args;
39747 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
39748 if (!SWIG_IsOK(res1)) {
39749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HelpProvider" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39750 }
39751 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39752 {
39753 PyThreadState* __tstate = wxPyBeginAllowThreads();
39754 delete arg1;
39755
39756 wxPyEndAllowThreads(__tstate);
39757 if (PyErr_Occurred()) SWIG_fail;
39758 }
39759 resultobj = SWIG_Py_Void();
39760 return resultobj;
39761 fail:
39762 return NULL;
39763 }
39764
39765
39766 SWIGINTERN PyObject *_wrap_HelpProvider_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39767 PyObject *resultobj = 0;
39768 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39769 wxHelpProvider *result = 0 ;
39770 int res1 = 0 ;
39771 PyObject * obj0 = 0 ;
39772 char * kwnames[] = {
39773 (char *) "helpProvider", NULL
39774 };
39775
39776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) SWIG_fail;
39777 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
39778 if (!SWIG_IsOK(res1)) {
39779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Set" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39780 }
39781 {
39782 PyThreadState* __tstate = wxPyBeginAllowThreads();
39783 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
39784 wxPyEndAllowThreads(__tstate);
39785 if (PyErr_Occurred()) SWIG_fail;
39786 }
39787 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_OWN | 0 );
39788 return resultobj;
39789 fail:
39790 return NULL;
39791 }
39792
39793
39794 SWIGINTERN PyObject *_wrap_HelpProvider_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39795 PyObject *resultobj = 0;
39796 wxHelpProvider *result = 0 ;
39797
39798 if (!SWIG_Python_UnpackTuple(args,"HelpProvider_Get",0,0,0)) SWIG_fail;
39799 {
39800 PyThreadState* __tstate = wxPyBeginAllowThreads();
39801 result = (wxHelpProvider *)wxHelpProvider::Get();
39802 wxPyEndAllowThreads(__tstate);
39803 if (PyErr_Occurred()) SWIG_fail;
39804 }
39805 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39806 return resultobj;
39807 fail:
39808 return NULL;
39809 }
39810
39811
39812 SWIGINTERN PyObject *_wrap_HelpProvider_GetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39813 PyObject *resultobj = 0;
39814 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39815 wxWindow *arg2 = (wxWindow *) 0 ;
39816 wxString result;
39817 void *argp1 = 0 ;
39818 int res1 = 0 ;
39819 void *argp2 = 0 ;
39820 int res2 = 0 ;
39821 PyObject * obj0 = 0 ;
39822 PyObject * obj1 = 0 ;
39823 char * kwnames[] = {
39824 (char *) "self",(char *) "window", NULL
39825 };
39826
39827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39829 if (!SWIG_IsOK(res1)) {
39830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_GetHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39831 }
39832 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39833 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39834 if (!SWIG_IsOK(res2)) {
39835 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_GetHelp" "', expected argument " "2"" of type '" "wxWindow const *""'");
39836 }
39837 arg2 = reinterpret_cast< wxWindow * >(argp2);
39838 {
39839 PyThreadState* __tstate = wxPyBeginAllowThreads();
39840 result = (arg1)->GetHelp((wxWindow const *)arg2);
39841 wxPyEndAllowThreads(__tstate);
39842 if (PyErr_Occurred()) SWIG_fail;
39843 }
39844 {
39845 #if wxUSE_UNICODE
39846 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
39847 #else
39848 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
39849 #endif
39850 }
39851 return resultobj;
39852 fail:
39853 return NULL;
39854 }
39855
39856
39857 SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39858 PyObject *resultobj = 0;
39859 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39860 wxWindow *arg2 = (wxWindow *) 0 ;
39861 bool result;
39862 void *argp1 = 0 ;
39863 int res1 = 0 ;
39864 void *argp2 = 0 ;
39865 int res2 = 0 ;
39866 PyObject * obj0 = 0 ;
39867 PyObject * obj1 = 0 ;
39868 char * kwnames[] = {
39869 (char *) "self",(char *) "window", NULL
39870 };
39871
39872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39874 if (!SWIG_IsOK(res1)) {
39875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39876 }
39877 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39878 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39879 if (!SWIG_IsOK(res2)) {
39880 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39881 }
39882 arg2 = reinterpret_cast< wxWindow * >(argp2);
39883 {
39884 PyThreadState* __tstate = wxPyBeginAllowThreads();
39885 result = (bool)(arg1)->ShowHelp(arg2);
39886 wxPyEndAllowThreads(__tstate);
39887 if (PyErr_Occurred()) SWIG_fail;
39888 }
39889 {
39890 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39891 }
39892 return resultobj;
39893 fail:
39894 return NULL;
39895 }
39896
39897
39898 SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelpAtPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39899 PyObject *resultobj = 0;
39900 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39901 wxWindowBase *arg2 = (wxWindowBase *) 0 ;
39902 wxPoint *arg3 = 0 ;
39903 wxHelpEvent::Origin arg4 ;
39904 bool result;
39905 void *argp1 = 0 ;
39906 int res1 = 0 ;
39907 void *argp2 = 0 ;
39908 int res2 = 0 ;
39909 wxPoint temp3 ;
39910 int val4 ;
39911 int ecode4 = 0 ;
39912 PyObject * obj0 = 0 ;
39913 PyObject * obj1 = 0 ;
39914 PyObject * obj2 = 0 ;
39915 PyObject * obj3 = 0 ;
39916 char * kwnames[] = {
39917 (char *) "self",(char *) "window",(char *) "pt",(char *) "origin", NULL
39918 };
39919
39920 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:HelpProvider_ShowHelpAtPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
39921 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39922 if (!SWIG_IsOK(res1)) {
39923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39924 }
39925 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39926 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindowBase, 0 | 0 );
39927 if (!SWIG_IsOK(res2)) {
39928 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "2"" of type '" "wxWindowBase *""'");
39929 }
39930 arg2 = reinterpret_cast< wxWindowBase * >(argp2);
39931 {
39932 arg3 = &temp3;
39933 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
39934 }
39935 ecode4 = SWIG_AsVal_int(obj3, &val4);
39936 if (!SWIG_IsOK(ecode4)) {
39937 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
39938 }
39939 arg4 = static_cast< wxHelpEvent::Origin >(val4);
39940 {
39941 PyThreadState* __tstate = wxPyBeginAllowThreads();
39942 result = (bool)(arg1)->ShowHelpAtPoint(arg2,(wxPoint const &)*arg3,arg4);
39943 wxPyEndAllowThreads(__tstate);
39944 if (PyErr_Occurred()) SWIG_fail;
39945 }
39946 {
39947 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39948 }
39949 return resultobj;
39950 fail:
39951 return NULL;
39952 }
39953
39954
39955 SWIGINTERN PyObject *_wrap_HelpProvider_AddHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39956 PyObject *resultobj = 0;
39957 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39958 wxWindow *arg2 = (wxWindow *) 0 ;
39959 wxString *arg3 = 0 ;
39960 void *argp1 = 0 ;
39961 int res1 = 0 ;
39962 void *argp2 = 0 ;
39963 int res2 = 0 ;
39964 bool temp3 = false ;
39965 PyObject * obj0 = 0 ;
39966 PyObject * obj1 = 0 ;
39967 PyObject * obj2 = 0 ;
39968 char * kwnames[] = {
39969 (char *) "self",(char *) "window",(char *) "text", NULL
39970 };
39971
39972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39974 if (!SWIG_IsOK(res1)) {
39975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39976 }
39977 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39978 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39979 if (!SWIG_IsOK(res2)) {
39980 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_AddHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39981 }
39982 arg2 = reinterpret_cast< wxWindow * >(argp2);
39983 {
39984 arg3 = wxString_in_helper(obj2);
39985 if (arg3 == NULL) SWIG_fail;
39986 temp3 = true;
39987 }
39988 {
39989 PyThreadState* __tstate = wxPyBeginAllowThreads();
39990 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
39991 wxPyEndAllowThreads(__tstate);
39992 if (PyErr_Occurred()) SWIG_fail;
39993 }
39994 resultobj = SWIG_Py_Void();
39995 {
39996 if (temp3)
39997 delete arg3;
39998 }
39999 return resultobj;
40000 fail:
40001 {
40002 if (temp3)
40003 delete arg3;
40004 }
40005 return NULL;
40006 }
40007
40008
40009 SWIGINTERN PyObject *_wrap_HelpProvider_AddHelpById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40010 PyObject *resultobj = 0;
40011 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40012 int arg2 ;
40013 wxString *arg3 = 0 ;
40014 void *argp1 = 0 ;
40015 int res1 = 0 ;
40016 int val2 ;
40017 int ecode2 = 0 ;
40018 bool temp3 = false ;
40019 PyObject * obj0 = 0 ;
40020 PyObject * obj1 = 0 ;
40021 PyObject * obj2 = 0 ;
40022 char * kwnames[] = {
40023 (char *) "self",(char *) "id",(char *) "text", NULL
40024 };
40025
40026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40028 if (!SWIG_IsOK(res1)) {
40029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelpById" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40030 }
40031 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40032 ecode2 = SWIG_AsVal_int(obj1, &val2);
40033 if (!SWIG_IsOK(ecode2)) {
40034 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpProvider_AddHelpById" "', expected argument " "2"" of type '" "int""'");
40035 }
40036 arg2 = static_cast< int >(val2);
40037 {
40038 arg3 = wxString_in_helper(obj2);
40039 if (arg3 == NULL) SWIG_fail;
40040 temp3 = true;
40041 }
40042 {
40043 PyThreadState* __tstate = wxPyBeginAllowThreads();
40044 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40045 wxPyEndAllowThreads(__tstate);
40046 if (PyErr_Occurred()) SWIG_fail;
40047 }
40048 resultobj = SWIG_Py_Void();
40049 {
40050 if (temp3)
40051 delete arg3;
40052 }
40053 return resultobj;
40054 fail:
40055 {
40056 if (temp3)
40057 delete arg3;
40058 }
40059 return NULL;
40060 }
40061
40062
40063 SWIGINTERN PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40064 PyObject *resultobj = 0;
40065 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40066 wxWindow *arg2 = (wxWindow *) 0 ;
40067 void *argp1 = 0 ;
40068 int res1 = 0 ;
40069 void *argp2 = 0 ;
40070 int res2 = 0 ;
40071 PyObject * obj0 = 0 ;
40072 PyObject * obj1 = 0 ;
40073 char * kwnames[] = {
40074 (char *) "self",(char *) "window", NULL
40075 };
40076
40077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40079 if (!SWIG_IsOK(res1)) {
40080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40081 }
40082 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40083 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40084 if (!SWIG_IsOK(res2)) {
40085 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40086 }
40087 arg2 = reinterpret_cast< wxWindow * >(argp2);
40088 {
40089 PyThreadState* __tstate = wxPyBeginAllowThreads();
40090 (arg1)->RemoveHelp(arg2);
40091 wxPyEndAllowThreads(__tstate);
40092 if (PyErr_Occurred()) SWIG_fail;
40093 }
40094 resultobj = SWIG_Py_Void();
40095 return resultobj;
40096 fail:
40097 return NULL;
40098 }
40099
40100
40101 SWIGINTERN PyObject *_wrap_HelpProvider_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40102 PyObject *resultobj = 0;
40103 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40104 void *argp1 = 0 ;
40105 int res1 = 0 ;
40106 PyObject *swig_obj[1] ;
40107
40108 if (!args) SWIG_fail;
40109 swig_obj[0] = args;
40110 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40111 if (!SWIG_IsOK(res1)) {
40112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Destroy" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40113 }
40114 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40115 {
40116 PyThreadState* __tstate = wxPyBeginAllowThreads();
40117 wxHelpProvider_Destroy(arg1);
40118 wxPyEndAllowThreads(__tstate);
40119 if (PyErr_Occurred()) SWIG_fail;
40120 }
40121 resultobj = SWIG_Py_Void();
40122 return resultobj;
40123 fail:
40124 return NULL;
40125 }
40126
40127
40128 SWIGINTERN PyObject *HelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40129 PyObject *obj;
40130 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40131 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpProvider, SWIG_NewClientData(obj));
40132 return SWIG_Py_Void();
40133 }
40134
40135 SWIGINTERN PyObject *_wrap_new_SimpleHelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40136 PyObject *resultobj = 0;
40137 wxSimpleHelpProvider *result = 0 ;
40138
40139 if (!SWIG_Python_UnpackTuple(args,"new_SimpleHelpProvider",0,0,0)) SWIG_fail;
40140 {
40141 PyThreadState* __tstate = wxPyBeginAllowThreads();
40142 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
40143 wxPyEndAllowThreads(__tstate);
40144 if (PyErr_Occurred()) SWIG_fail;
40145 }
40146 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSimpleHelpProvider, SWIG_POINTER_NEW | 0 );
40147 return resultobj;
40148 fail:
40149 return NULL;
40150 }
40151
40152
40153 SWIGINTERN PyObject *SimpleHelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40154 PyObject *obj;
40155 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40156 SWIG_TypeNewClientData(SWIGTYPE_p_wxSimpleHelpProvider, SWIG_NewClientData(obj));
40157 return SWIG_Py_Void();
40158 }
40159
40160 SWIGINTERN PyObject *SimpleHelpProvider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40161 return SWIG_Python_InitShadowInstance(args);
40162 }
40163
40164 SWIGINTERN PyObject *_wrap_new_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40165 PyObject *resultobj = 0;
40166 wxBitmap *arg1 = 0 ;
40167 wxCursor const &arg2_defvalue = wxNullCursor ;
40168 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40169 wxGenericDragImage *result = 0 ;
40170 void *argp1 = 0 ;
40171 int res1 = 0 ;
40172 void *argp2 = 0 ;
40173 int res2 = 0 ;
40174 PyObject * obj0 = 0 ;
40175 PyObject * obj1 = 0 ;
40176 char * kwnames[] = {
40177 (char *) "image",(char *) "cursor", NULL
40178 };
40179
40180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) SWIG_fail;
40181 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
40182 if (!SWIG_IsOK(res1)) {
40183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40184 }
40185 if (!argp1) {
40186 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40187 }
40188 arg1 = reinterpret_cast< wxBitmap * >(argp1);
40189 if (obj1) {
40190 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40191 if (!SWIG_IsOK(res2)) {
40192 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
40193 }
40194 if (!argp2) {
40195 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
40196 }
40197 arg2 = reinterpret_cast< wxCursor * >(argp2);
40198 }
40199 {
40200 if (!wxPyCheckForApp()) SWIG_fail;
40201 PyThreadState* __tstate = wxPyBeginAllowThreads();
40202 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
40203 wxPyEndAllowThreads(__tstate);
40204 if (PyErr_Occurred()) SWIG_fail;
40205 }
40206 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_NEW | 0 );
40207 return resultobj;
40208 fail:
40209 return NULL;
40210 }
40211
40212
40213 SWIGINTERN PyObject *_wrap_new_DragIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40214 PyObject *resultobj = 0;
40215 wxIcon *arg1 = 0 ;
40216 wxCursor const &arg2_defvalue = wxNullCursor ;
40217 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40218 wxGenericDragImage *result = 0 ;
40219 void *argp1 = 0 ;
40220 int res1 = 0 ;
40221 void *argp2 = 0 ;
40222 int res2 = 0 ;
40223 PyObject * obj0 = 0 ;
40224 PyObject * obj1 = 0 ;
40225 char * kwnames[] = {
40226 (char *) "image",(char *) "cursor", NULL
40227 };
40228
40229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) SWIG_fail;
40230 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
40231 if (!SWIG_IsOK(res1)) {
40232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40233 }
40234 if (!argp1) {
40235 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40236 }
40237 arg1 = reinterpret_cast< wxIcon * >(argp1);
40238 if (obj1) {
40239 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40240 if (!SWIG_IsOK(res2)) {
40241 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
40242 }
40243 if (!argp2) {
40244 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
40245 }
40246 arg2 = reinterpret_cast< wxCursor * >(argp2);
40247 }
40248 {
40249 if (!wxPyCheckForApp()) SWIG_fail;
40250 PyThreadState* __tstate = wxPyBeginAllowThreads();
40251 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
40252 wxPyEndAllowThreads(__tstate);
40253 if (PyErr_Occurred()) SWIG_fail;
40254 }
40255 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40256 return resultobj;
40257 fail:
40258 return NULL;
40259 }
40260
40261
40262 SWIGINTERN PyObject *_wrap_new_DragString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40263 PyObject *resultobj = 0;
40264 wxString *arg1 = 0 ;
40265 wxCursor const &arg2_defvalue = wxNullCursor ;
40266 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40267 wxGenericDragImage *result = 0 ;
40268 bool temp1 = false ;
40269 void *argp2 = 0 ;
40270 int res2 = 0 ;
40271 PyObject * obj0 = 0 ;
40272 PyObject * obj1 = 0 ;
40273 char * kwnames[] = {
40274 (char *) "str",(char *) "cursor", NULL
40275 };
40276
40277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) SWIG_fail;
40278 {
40279 arg1 = wxString_in_helper(obj0);
40280 if (arg1 == NULL) SWIG_fail;
40281 temp1 = true;
40282 }
40283 if (obj1) {
40284 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40285 if (!SWIG_IsOK(res2)) {
40286 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
40287 }
40288 if (!argp2) {
40289 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
40290 }
40291 arg2 = reinterpret_cast< wxCursor * >(argp2);
40292 }
40293 {
40294 if (!wxPyCheckForApp()) SWIG_fail;
40295 PyThreadState* __tstate = wxPyBeginAllowThreads();
40296 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
40297 wxPyEndAllowThreads(__tstate);
40298 if (PyErr_Occurred()) SWIG_fail;
40299 }
40300 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40301 {
40302 if (temp1)
40303 delete arg1;
40304 }
40305 return resultobj;
40306 fail:
40307 {
40308 if (temp1)
40309 delete arg1;
40310 }
40311 return NULL;
40312 }
40313
40314
40315 SWIGINTERN PyObject *_wrap_new_DragTreeItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40316 PyObject *resultobj = 0;
40317 wxPyTreeCtrl *arg1 = 0 ;
40318 wxTreeItemId *arg2 = 0 ;
40319 wxGenericDragImage *result = 0 ;
40320 void *argp1 = 0 ;
40321 int res1 = 0 ;
40322 void *argp2 = 0 ;
40323 int res2 = 0 ;
40324 PyObject * obj0 = 0 ;
40325 PyObject * obj1 = 0 ;
40326 char * kwnames[] = {
40327 (char *) "treeCtrl",(char *) "id", NULL
40328 };
40329
40330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) SWIG_fail;
40331 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyTreeCtrl, 0 | 0);
40332 if (!SWIG_IsOK(res1)) {
40333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40334 }
40335 if (!argp1) {
40336 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40337 }
40338 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
40339 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 );
40340 if (!SWIG_IsOK(res2)) {
40341 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40342 }
40343 if (!argp2) {
40344 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40345 }
40346 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
40347 {
40348 if (!wxPyCheckForApp()) SWIG_fail;
40349 PyThreadState* __tstate = wxPyBeginAllowThreads();
40350 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
40351 wxPyEndAllowThreads(__tstate);
40352 if (PyErr_Occurred()) SWIG_fail;
40353 }
40354 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40355 return resultobj;
40356 fail:
40357 return NULL;
40358 }
40359
40360
40361 SWIGINTERN PyObject *_wrap_new_DragListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40362 PyObject *resultobj = 0;
40363 wxPyListCtrl *arg1 = 0 ;
40364 long arg2 ;
40365 wxGenericDragImage *result = 0 ;
40366 void *argp1 = 0 ;
40367 int res1 = 0 ;
40368 long val2 ;
40369 int ecode2 = 0 ;
40370 PyObject * obj0 = 0 ;
40371 PyObject * obj1 = 0 ;
40372 char * kwnames[] = {
40373 (char *) "listCtrl",(char *) "id", NULL
40374 };
40375
40376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) SWIG_fail;
40377 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyListCtrl, 0 | 0);
40378 if (!SWIG_IsOK(res1)) {
40379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40380 }
40381 if (!argp1) {
40382 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40383 }
40384 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
40385 ecode2 = SWIG_AsVal_long(obj1, &val2);
40386 if (!SWIG_IsOK(ecode2)) {
40387 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DragListItem" "', expected argument " "2"" of type '" "long""'");
40388 }
40389 arg2 = static_cast< long >(val2);
40390 {
40391 if (!wxPyCheckForApp()) SWIG_fail;
40392 PyThreadState* __tstate = wxPyBeginAllowThreads();
40393 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
40394 wxPyEndAllowThreads(__tstate);
40395 if (PyErr_Occurred()) SWIG_fail;
40396 }
40397 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40398 return resultobj;
40399 fail:
40400 return NULL;
40401 }
40402
40403
40404 SWIGINTERN PyObject *_wrap_delete_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40405 PyObject *resultobj = 0;
40406 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40407 void *argp1 = 0 ;
40408 int res1 = 0 ;
40409 PyObject *swig_obj[1] ;
40410
40411 if (!args) SWIG_fail;
40412 swig_obj[0] = args;
40413 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_DISOWN | 0 );
40414 if (!SWIG_IsOK(res1)) {
40415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DragImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40416 }
40417 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40418 {
40419 PyThreadState* __tstate = wxPyBeginAllowThreads();
40420 delete arg1;
40421
40422 wxPyEndAllowThreads(__tstate);
40423 if (PyErr_Occurred()) SWIG_fail;
40424 }
40425 resultobj = SWIG_Py_Void();
40426 return resultobj;
40427 fail:
40428 return NULL;
40429 }
40430
40431
40432 SWIGINTERN PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40433 PyObject *resultobj = 0;
40434 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40435 wxBitmap *arg2 = (wxBitmap *) 0 ;
40436 void *argp1 = 0 ;
40437 int res1 = 0 ;
40438 void *argp2 = 0 ;
40439 int res2 = 0 ;
40440 PyObject * obj0 = 0 ;
40441 PyObject * obj1 = 0 ;
40442 char * kwnames[] = {
40443 (char *) "self",(char *) "bitmap", NULL
40444 };
40445
40446 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
40447 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40448 if (!SWIG_IsOK(res1)) {
40449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40450 }
40451 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40452 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
40453 if (!SWIG_IsOK(res2)) {
40454 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "2"" of type '" "wxBitmap *""'");
40455 }
40456 arg2 = reinterpret_cast< wxBitmap * >(argp2);
40457 {
40458 PyThreadState* __tstate = wxPyBeginAllowThreads();
40459 (arg1)->SetBackingBitmap(arg2);
40460 wxPyEndAllowThreads(__tstate);
40461 if (PyErr_Occurred()) SWIG_fail;
40462 }
40463 resultobj = SWIG_Py_Void();
40464 return resultobj;
40465 fail:
40466 return NULL;
40467 }
40468
40469
40470 SWIGINTERN PyObject *_wrap_DragImage_BeginDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40471 PyObject *resultobj = 0;
40472 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40473 wxPoint *arg2 = 0 ;
40474 wxWindow *arg3 = (wxWindow *) 0 ;
40475 bool arg4 = (bool) false ;
40476 wxRect *arg5 = (wxRect *) NULL ;
40477 bool result;
40478 void *argp1 = 0 ;
40479 int res1 = 0 ;
40480 wxPoint temp2 ;
40481 void *argp3 = 0 ;
40482 int res3 = 0 ;
40483 bool val4 ;
40484 int ecode4 = 0 ;
40485 void *argp5 = 0 ;
40486 int res5 = 0 ;
40487 PyObject * obj0 = 0 ;
40488 PyObject * obj1 = 0 ;
40489 PyObject * obj2 = 0 ;
40490 PyObject * obj3 = 0 ;
40491 PyObject * obj4 = 0 ;
40492 char * kwnames[] = {
40493 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
40494 };
40495
40496 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40497 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40498 if (!SWIG_IsOK(res1)) {
40499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40500 }
40501 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40502 {
40503 arg2 = &temp2;
40504 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40505 }
40506 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40507 if (!SWIG_IsOK(res3)) {
40508 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDrag" "', expected argument " "3"" of type '" "wxWindow *""'");
40509 }
40510 arg3 = reinterpret_cast< wxWindow * >(argp3);
40511 if (obj3) {
40512 ecode4 = SWIG_AsVal_bool(obj3, &val4);
40513 if (!SWIG_IsOK(ecode4)) {
40514 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_BeginDrag" "', expected argument " "4"" of type '" "bool""'");
40515 }
40516 arg4 = static_cast< bool >(val4);
40517 }
40518 if (obj4) {
40519 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxRect, 0 | 0 );
40520 if (!SWIG_IsOK(res5)) {
40521 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DragImage_BeginDrag" "', expected argument " "5"" of type '" "wxRect *""'");
40522 }
40523 arg5 = reinterpret_cast< wxRect * >(argp5);
40524 }
40525 {
40526 PyThreadState* __tstate = wxPyBeginAllowThreads();
40527 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
40528 wxPyEndAllowThreads(__tstate);
40529 if (PyErr_Occurred()) SWIG_fail;
40530 }
40531 {
40532 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40533 }
40534 return resultobj;
40535 fail:
40536 return NULL;
40537 }
40538
40539
40540 SWIGINTERN PyObject *_wrap_DragImage_BeginDragBounded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40541 PyObject *resultobj = 0;
40542 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40543 wxPoint *arg2 = 0 ;
40544 wxWindow *arg3 = (wxWindow *) 0 ;
40545 wxWindow *arg4 = (wxWindow *) 0 ;
40546 bool result;
40547 void *argp1 = 0 ;
40548 int res1 = 0 ;
40549 wxPoint temp2 ;
40550 void *argp3 = 0 ;
40551 int res3 = 0 ;
40552 void *argp4 = 0 ;
40553 int res4 = 0 ;
40554 PyObject * obj0 = 0 ;
40555 PyObject * obj1 = 0 ;
40556 PyObject * obj2 = 0 ;
40557 PyObject * obj3 = 0 ;
40558 char * kwnames[] = {
40559 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
40560 };
40561
40562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40564 if (!SWIG_IsOK(res1)) {
40565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDragBounded" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40566 }
40567 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40568 {
40569 arg2 = &temp2;
40570 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40571 }
40572 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40573 if (!SWIG_IsOK(res3)) {
40574 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDragBounded" "', expected argument " "3"" of type '" "wxWindow *""'");
40575 }
40576 arg3 = reinterpret_cast< wxWindow * >(argp3);
40577 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
40578 if (!SWIG_IsOK(res4)) {
40579 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DragImage_BeginDragBounded" "', expected argument " "4"" of type '" "wxWindow *""'");
40580 }
40581 arg4 = reinterpret_cast< wxWindow * >(argp4);
40582 {
40583 PyThreadState* __tstate = wxPyBeginAllowThreads();
40584 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
40585 wxPyEndAllowThreads(__tstate);
40586 if (PyErr_Occurred()) SWIG_fail;
40587 }
40588 {
40589 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40590 }
40591 return resultobj;
40592 fail:
40593 return NULL;
40594 }
40595
40596
40597 SWIGINTERN PyObject *_wrap_DragImage_EndDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40598 PyObject *resultobj = 0;
40599 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40600 bool result;
40601 void *argp1 = 0 ;
40602 int res1 = 0 ;
40603 PyObject *swig_obj[1] ;
40604
40605 if (!args) SWIG_fail;
40606 swig_obj[0] = args;
40607 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40608 if (!SWIG_IsOK(res1)) {
40609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_EndDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40610 }
40611 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40612 {
40613 PyThreadState* __tstate = wxPyBeginAllowThreads();
40614 result = (bool)(arg1)->EndDrag();
40615 wxPyEndAllowThreads(__tstate);
40616 if (PyErr_Occurred()) SWIG_fail;
40617 }
40618 {
40619 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40620 }
40621 return resultobj;
40622 fail:
40623 return NULL;
40624 }
40625
40626
40627 SWIGINTERN PyObject *_wrap_DragImage_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40628 PyObject *resultobj = 0;
40629 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40630 wxPoint *arg2 = 0 ;
40631 bool result;
40632 void *argp1 = 0 ;
40633 int res1 = 0 ;
40634 wxPoint temp2 ;
40635 PyObject * obj0 = 0 ;
40636 PyObject * obj1 = 0 ;
40637 char * kwnames[] = {
40638 (char *) "self",(char *) "pt", NULL
40639 };
40640
40641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) SWIG_fail;
40642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40643 if (!SWIG_IsOK(res1)) {
40644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Move" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40645 }
40646 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40647 {
40648 arg2 = &temp2;
40649 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40650 }
40651 {
40652 PyThreadState* __tstate = wxPyBeginAllowThreads();
40653 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
40654 wxPyEndAllowThreads(__tstate);
40655 if (PyErr_Occurred()) SWIG_fail;
40656 }
40657 {
40658 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40659 }
40660 return resultobj;
40661 fail:
40662 return NULL;
40663 }
40664
40665
40666 SWIGINTERN PyObject *_wrap_DragImage_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40667 PyObject *resultobj = 0;
40668 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40669 bool result;
40670 void *argp1 = 0 ;
40671 int res1 = 0 ;
40672 PyObject *swig_obj[1] ;
40673
40674 if (!args) SWIG_fail;
40675 swig_obj[0] = args;
40676 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40677 if (!SWIG_IsOK(res1)) {
40678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Show" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40679 }
40680 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40681 {
40682 PyThreadState* __tstate = wxPyBeginAllowThreads();
40683 result = (bool)(arg1)->Show();
40684 wxPyEndAllowThreads(__tstate);
40685 if (PyErr_Occurred()) SWIG_fail;
40686 }
40687 {
40688 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40689 }
40690 return resultobj;
40691 fail:
40692 return NULL;
40693 }
40694
40695
40696 SWIGINTERN PyObject *_wrap_DragImage_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40697 PyObject *resultobj = 0;
40698 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40699 bool result;
40700 void *argp1 = 0 ;
40701 int res1 = 0 ;
40702 PyObject *swig_obj[1] ;
40703
40704 if (!args) SWIG_fail;
40705 swig_obj[0] = args;
40706 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40707 if (!SWIG_IsOK(res1)) {
40708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Hide" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40709 }
40710 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40711 {
40712 PyThreadState* __tstate = wxPyBeginAllowThreads();
40713 result = (bool)(arg1)->Hide();
40714 wxPyEndAllowThreads(__tstate);
40715 if (PyErr_Occurred()) SWIG_fail;
40716 }
40717 {
40718 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40719 }
40720 return resultobj;
40721 fail:
40722 return NULL;
40723 }
40724
40725
40726 SWIGINTERN PyObject *_wrap_DragImage_GetImageRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40727 PyObject *resultobj = 0;
40728 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40729 wxPoint *arg2 = 0 ;
40730 wxRect result;
40731 void *argp1 = 0 ;
40732 int res1 = 0 ;
40733 wxPoint temp2 ;
40734 PyObject * obj0 = 0 ;
40735 PyObject * obj1 = 0 ;
40736 char * kwnames[] = {
40737 (char *) "self",(char *) "pos", NULL
40738 };
40739
40740 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) SWIG_fail;
40741 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40742 if (!SWIG_IsOK(res1)) {
40743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_GetImageRect" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40744 }
40745 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40746 {
40747 arg2 = &temp2;
40748 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40749 }
40750 {
40751 PyThreadState* __tstate = wxPyBeginAllowThreads();
40752 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
40753 wxPyEndAllowThreads(__tstate);
40754 if (PyErr_Occurred()) SWIG_fail;
40755 }
40756 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
40757 return resultobj;
40758 fail:
40759 return NULL;
40760 }
40761
40762
40763 SWIGINTERN PyObject *_wrap_DragImage_DoDrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40764 PyObject *resultobj = 0;
40765 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40766 wxDC *arg2 = 0 ;
40767 wxPoint *arg3 = 0 ;
40768 bool result;
40769 void *argp1 = 0 ;
40770 int res1 = 0 ;
40771 void *argp2 = 0 ;
40772 int res2 = 0 ;
40773 wxPoint temp3 ;
40774 PyObject * obj0 = 0 ;
40775 PyObject * obj1 = 0 ;
40776 PyObject * obj2 = 0 ;
40777 char * kwnames[] = {
40778 (char *) "self",(char *) "dc",(char *) "pos", NULL
40779 };
40780
40781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40783 if (!SWIG_IsOK(res1)) {
40784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_DoDrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40785 }
40786 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40787 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
40788 if (!SWIG_IsOK(res2)) {
40789 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
40790 }
40791 if (!argp2) {
40792 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
40793 }
40794 arg2 = reinterpret_cast< wxDC * >(argp2);
40795 {
40796 arg3 = &temp3;
40797 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40798 }
40799 {
40800 PyThreadState* __tstate = wxPyBeginAllowThreads();
40801 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
40802 wxPyEndAllowThreads(__tstate);
40803 if (PyErr_Occurred()) SWIG_fail;
40804 }
40805 {
40806 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40807 }
40808 return resultobj;
40809 fail:
40810 return NULL;
40811 }
40812
40813
40814 SWIGINTERN PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40815 PyObject *resultobj = 0;
40816 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40817 wxDC *arg2 = 0 ;
40818 wxMemoryDC *arg3 = 0 ;
40819 wxRect *arg4 = 0 ;
40820 wxRect *arg5 = 0 ;
40821 bool result;
40822 void *argp1 = 0 ;
40823 int res1 = 0 ;
40824 void *argp2 = 0 ;
40825 int res2 = 0 ;
40826 void *argp3 = 0 ;
40827 int res3 = 0 ;
40828 wxRect temp4 ;
40829 wxRect temp5 ;
40830 PyObject * obj0 = 0 ;
40831 PyObject * obj1 = 0 ;
40832 PyObject * obj2 = 0 ;
40833 PyObject * obj3 = 0 ;
40834 PyObject * obj4 = 0 ;
40835 char * kwnames[] = {
40836 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
40837 };
40838
40839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40841 if (!SWIG_IsOK(res1)) {
40842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40843 }
40844 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40845 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
40846 if (!SWIG_IsOK(res2)) {
40847 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
40848 }
40849 if (!argp2) {
40850 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
40851 }
40852 arg2 = reinterpret_cast< wxDC * >(argp2);
40853 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxMemoryDC, 0 );
40854 if (!SWIG_IsOK(res3)) {
40855 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
40856 }
40857 if (!argp3) {
40858 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
40859 }
40860 arg3 = reinterpret_cast< wxMemoryDC * >(argp3);
40861 {
40862 arg4 = &temp4;
40863 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
40864 }
40865 {
40866 arg5 = &temp5;
40867 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
40868 }
40869 {
40870 PyThreadState* __tstate = wxPyBeginAllowThreads();
40871 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
40872 wxPyEndAllowThreads(__tstate);
40873 if (PyErr_Occurred()) SWIG_fail;
40874 }
40875 {
40876 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40877 }
40878 return resultobj;
40879 fail:
40880 return NULL;
40881 }
40882
40883
40884 SWIGINTERN PyObject *_wrap_DragImage_RedrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40885 PyObject *resultobj = 0;
40886 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40887 wxPoint *arg2 = 0 ;
40888 wxPoint *arg3 = 0 ;
40889 bool arg4 ;
40890 bool arg5 ;
40891 bool result;
40892 void *argp1 = 0 ;
40893 int res1 = 0 ;
40894 wxPoint temp2 ;
40895 wxPoint temp3 ;
40896 bool val4 ;
40897 int ecode4 = 0 ;
40898 bool val5 ;
40899 int ecode5 = 0 ;
40900 PyObject * obj0 = 0 ;
40901 PyObject * obj1 = 0 ;
40902 PyObject * obj2 = 0 ;
40903 PyObject * obj3 = 0 ;
40904 PyObject * obj4 = 0 ;
40905 char * kwnames[] = {
40906 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
40907 };
40908
40909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40910 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40911 if (!SWIG_IsOK(res1)) {
40912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_RedrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40913 }
40914 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40915 {
40916 arg2 = &temp2;
40917 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40918 }
40919 {
40920 arg3 = &temp3;
40921 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40922 }
40923 ecode4 = SWIG_AsVal_bool(obj3, &val4);
40924 if (!SWIG_IsOK(ecode4)) {
40925 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_RedrawImage" "', expected argument " "4"" of type '" "bool""'");
40926 }
40927 arg4 = static_cast< bool >(val4);
40928 ecode5 = SWIG_AsVal_bool(obj4, &val5);
40929 if (!SWIG_IsOK(ecode5)) {
40930 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DragImage_RedrawImage" "', expected argument " "5"" of type '" "bool""'");
40931 }
40932 arg5 = static_cast< bool >(val5);
40933 {
40934 PyThreadState* __tstate = wxPyBeginAllowThreads();
40935 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
40936 wxPyEndAllowThreads(__tstate);
40937 if (PyErr_Occurred()) SWIG_fail;
40938 }
40939 {
40940 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40941 }
40942 return resultobj;
40943 fail:
40944 return NULL;
40945 }
40946
40947
40948 SWIGINTERN PyObject *DragImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40949 PyObject *obj;
40950 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40951 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDragImage, SWIG_NewClientData(obj));
40952 return SWIG_Py_Void();
40953 }
40954
40955 SWIGINTERN PyObject *DragImage_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40956 return SWIG_Python_InitShadowInstance(args);
40957 }
40958
40959 SWIGINTERN int DatePickerCtrlNameStr_set(PyObject *) {
40960 SWIG_Error(SWIG_AttributeError,"Variable DatePickerCtrlNameStr is read-only.");
40961 return 1;
40962 }
40963
40964
40965 SWIGINTERN PyObject *DatePickerCtrlNameStr_get(void) {
40966 PyObject *pyobj = 0;
40967
40968 {
40969 #if wxUSE_UNICODE
40970 pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
40971 #else
40972 pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
40973 #endif
40974 }
40975 return pyobj;
40976 }
40977
40978
40979 SWIGINTERN PyObject *_wrap_new_DatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40980 PyObject *resultobj = 0;
40981 wxWindow *arg1 = (wxWindow *) 0 ;
40982 int arg2 = (int) -1 ;
40983 wxDateTime const &arg3_defvalue = wxDefaultDateTime ;
40984 wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ;
40985 wxPoint const &arg4_defvalue = wxDefaultPosition ;
40986 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
40987 wxSize const &arg5_defvalue = wxDefaultSize ;
40988 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
40989 long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
40990 wxValidator const &arg7_defvalue = wxDefaultValidator ;
40991 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
40992 wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ;
40993 wxString *arg8 = (wxString *) &arg8_defvalue ;
40994 wxDatePickerCtrl *result = 0 ;
40995 void *argp1 = 0 ;
40996 int res1 = 0 ;
40997 int val2 ;
40998 int ecode2 = 0 ;
40999 void *argp3 = 0 ;
41000 int res3 = 0 ;
41001 wxPoint temp4 ;
41002 wxSize temp5 ;
41003 long val6 ;
41004 int ecode6 = 0 ;
41005 void *argp7 = 0 ;
41006 int res7 = 0 ;
41007 bool temp8 = false ;
41008 PyObject * obj0 = 0 ;
41009 PyObject * obj1 = 0 ;
41010 PyObject * obj2 = 0 ;
41011 PyObject * obj3 = 0 ;
41012 PyObject * obj4 = 0 ;
41013 PyObject * obj5 = 0 ;
41014 PyObject * obj6 = 0 ;
41015 PyObject * obj7 = 0 ;
41016 char * kwnames[] = {
41017 (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41018 };
41019
41020 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41021 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41022 if (!SWIG_IsOK(res1)) {
41023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41024 }
41025 arg1 = reinterpret_cast< wxWindow * >(argp1);
41026 if (obj1) {
41027 ecode2 = SWIG_AsVal_int(obj1, &val2);
41028 if (!SWIG_IsOK(ecode2)) {
41029 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatePickerCtrl" "', expected argument " "2"" of type '" "int""'");
41030 }
41031 arg2 = static_cast< int >(val2);
41032 }
41033 if (obj2) {
41034 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41035 if (!SWIG_IsOK(res3)) {
41036 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41037 }
41038 if (!argp3) {
41039 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41040 }
41041 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41042 }
41043 if (obj3) {
41044 {
41045 arg4 = &temp4;
41046 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
41047 }
41048 }
41049 if (obj4) {
41050 {
41051 arg5 = &temp5;
41052 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
41053 }
41054 }
41055 if (obj5) {
41056 ecode6 = SWIG_AsVal_long(obj5, &val6);
41057 if (!SWIG_IsOK(ecode6)) {
41058 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DatePickerCtrl" "', expected argument " "6"" of type '" "long""'");
41059 }
41060 arg6 = static_cast< long >(val6);
41061 }
41062 if (obj6) {
41063 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
41064 if (!SWIG_IsOK(res7)) {
41065 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
41066 }
41067 if (!argp7) {
41068 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
41069 }
41070 arg7 = reinterpret_cast< wxValidator * >(argp7);
41071 }
41072 if (obj7) {
41073 {
41074 arg8 = wxString_in_helper(obj7);
41075 if (arg8 == NULL) SWIG_fail;
41076 temp8 = true;
41077 }
41078 }
41079 {
41080 if (!wxPyCheckForApp()) SWIG_fail;
41081 PyThreadState* __tstate = wxPyBeginAllowThreads();
41082 result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
41083 wxPyEndAllowThreads(__tstate);
41084 if (PyErr_Occurred()) SWIG_fail;
41085 }
41086 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_NEW | 0 );
41087 {
41088 if (temp8)
41089 delete arg8;
41090 }
41091 return resultobj;
41092 fail:
41093 {
41094 if (temp8)
41095 delete arg8;
41096 }
41097 return NULL;
41098 }
41099
41100
41101 SWIGINTERN PyObject *_wrap_new_PreDatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41102 PyObject *resultobj = 0;
41103 wxDatePickerCtrl *result = 0 ;
41104
41105 if (!SWIG_Python_UnpackTuple(args,"new_PreDatePickerCtrl",0,0,0)) SWIG_fail;
41106 {
41107 if (!wxPyCheckForApp()) SWIG_fail;
41108 PyThreadState* __tstate = wxPyBeginAllowThreads();
41109 result = (wxDatePickerCtrl *)new wxDatePickerCtrl();
41110 wxPyEndAllowThreads(__tstate);
41111 if (PyErr_Occurred()) SWIG_fail;
41112 }
41113 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_OWN | 0 );
41114 return resultobj;
41115 fail:
41116 return NULL;
41117 }
41118
41119
41120 SWIGINTERN PyObject *_wrap_DatePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41121 PyObject *resultobj = 0;
41122 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41123 wxWindow *arg2 = (wxWindow *) 0 ;
41124 int arg3 = (int) -1 ;
41125 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
41126 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
41127 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41128 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41129 wxSize const &arg6_defvalue = wxDefaultSize ;
41130 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41131 long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41132 wxValidator const &arg8_defvalue = wxDefaultValidator ;
41133 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
41134 wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ;
41135 wxString *arg9 = (wxString *) &arg9_defvalue ;
41136 bool result;
41137 void *argp1 = 0 ;
41138 int res1 = 0 ;
41139 void *argp2 = 0 ;
41140 int res2 = 0 ;
41141 int val3 ;
41142 int ecode3 = 0 ;
41143 void *argp4 = 0 ;
41144 int res4 = 0 ;
41145 wxPoint temp5 ;
41146 wxSize temp6 ;
41147 long val7 ;
41148 int ecode7 = 0 ;
41149 void *argp8 = 0 ;
41150 int res8 = 0 ;
41151 bool temp9 = false ;
41152 PyObject * obj0 = 0 ;
41153 PyObject * obj1 = 0 ;
41154 PyObject * obj2 = 0 ;
41155 PyObject * obj3 = 0 ;
41156 PyObject * obj4 = 0 ;
41157 PyObject * obj5 = 0 ;
41158 PyObject * obj6 = 0 ;
41159 PyObject * obj7 = 0 ;
41160 PyObject * obj8 = 0 ;
41161 char * kwnames[] = {
41162 (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41163 };
41164
41165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41166 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41167 if (!SWIG_IsOK(res1)) {
41168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_Create" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41169 }
41170 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41171 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41172 if (!SWIG_IsOK(res2)) {
41173 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41174 }
41175 arg2 = reinterpret_cast< wxWindow * >(argp2);
41176 if (obj2) {
41177 ecode3 = SWIG_AsVal_int(obj2, &val3);
41178 if (!SWIG_IsOK(ecode3)) {
41179 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DatePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41180 }
41181 arg3 = static_cast< int >(val3);
41182 }
41183 if (obj3) {
41184 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDateTime, 0 | 0);
41185 if (!SWIG_IsOK(res4)) {
41186 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
41187 }
41188 if (!argp4) {
41189 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
41190 }
41191 arg4 = reinterpret_cast< wxDateTime * >(argp4);
41192 }
41193 if (obj4) {
41194 {
41195 arg5 = &temp5;
41196 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
41197 }
41198 }
41199 if (obj5) {
41200 {
41201 arg6 = &temp6;
41202 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
41203 }
41204 }
41205 if (obj6) {
41206 ecode7 = SWIG_AsVal_long(obj6, &val7);
41207 if (!SWIG_IsOK(ecode7)) {
41208 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DatePickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
41209 }
41210 arg7 = static_cast< long >(val7);
41211 }
41212 if (obj7) {
41213 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
41214 if (!SWIG_IsOK(res8)) {
41215 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
41216 }
41217 if (!argp8) {
41218 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
41219 }
41220 arg8 = reinterpret_cast< wxValidator * >(argp8);
41221 }
41222 if (obj8) {
41223 {
41224 arg9 = wxString_in_helper(obj8);
41225 if (arg9 == NULL) SWIG_fail;
41226 temp9 = true;
41227 }
41228 }
41229 {
41230 PyThreadState* __tstate = wxPyBeginAllowThreads();
41231 result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
41232 wxPyEndAllowThreads(__tstate);
41233 if (PyErr_Occurred()) SWIG_fail;
41234 }
41235 {
41236 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41237 }
41238 {
41239 if (temp9)
41240 delete arg9;
41241 }
41242 return resultobj;
41243 fail:
41244 {
41245 if (temp9)
41246 delete arg9;
41247 }
41248 return NULL;
41249 }
41250
41251
41252 SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41253 PyObject *resultobj = 0;
41254 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41255 wxDateTime *arg2 = 0 ;
41256 void *argp1 = 0 ;
41257 int res1 = 0 ;
41258 void *argp2 = 0 ;
41259 int res2 = 0 ;
41260 PyObject * obj0 = 0 ;
41261 PyObject * obj1 = 0 ;
41262 char * kwnames[] = {
41263 (char *) "self",(char *) "dt", NULL
41264 };
41265
41266 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
41267 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41268 if (!SWIG_IsOK(res1)) {
41269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41270 }
41271 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41272 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41273 if (!SWIG_IsOK(res2)) {
41274 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41275 }
41276 if (!argp2) {
41277 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41278 }
41279 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41280 {
41281 PyThreadState* __tstate = wxPyBeginAllowThreads();
41282 (arg1)->SetValue((wxDateTime const &)*arg2);
41283 wxPyEndAllowThreads(__tstate);
41284 if (PyErr_Occurred()) SWIG_fail;
41285 }
41286 resultobj = SWIG_Py_Void();
41287 return resultobj;
41288 fail:
41289 return NULL;
41290 }
41291
41292
41293 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41294 PyObject *resultobj = 0;
41295 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41296 wxDateTime result;
41297 void *argp1 = 0 ;
41298 int res1 = 0 ;
41299 PyObject *swig_obj[1] ;
41300
41301 if (!args) SWIG_fail;
41302 swig_obj[0] = args;
41303 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41304 if (!SWIG_IsOK(res1)) {
41305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl const *""'");
41306 }
41307 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41308 {
41309 PyThreadState* __tstate = wxPyBeginAllowThreads();
41310 result = ((wxDatePickerCtrl const *)arg1)->GetValue();
41311 wxPyEndAllowThreads(__tstate);
41312 if (PyErr_Occurred()) SWIG_fail;
41313 }
41314 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41315 return resultobj;
41316 fail:
41317 return NULL;
41318 }
41319
41320
41321 SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41322 PyObject *resultobj = 0;
41323 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41324 wxDateTime *arg2 = 0 ;
41325 wxDateTime *arg3 = 0 ;
41326 void *argp1 = 0 ;
41327 int res1 = 0 ;
41328 void *argp2 = 0 ;
41329 int res2 = 0 ;
41330 void *argp3 = 0 ;
41331 int res3 = 0 ;
41332 PyObject * obj0 = 0 ;
41333 PyObject * obj1 = 0 ;
41334 PyObject * obj2 = 0 ;
41335 char * kwnames[] = {
41336 (char *) "self",(char *) "dt1",(char *) "dt2", NULL
41337 };
41338
41339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
41340 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41341 if (!SWIG_IsOK(res1)) {
41342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41343 }
41344 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41345 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41346 if (!SWIG_IsOK(res2)) {
41347 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41348 }
41349 if (!argp2) {
41350 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41351 }
41352 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41353 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41354 if (!SWIG_IsOK(res3)) {
41355 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41356 }
41357 if (!argp3) {
41358 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41359 }
41360 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41361 {
41362 PyThreadState* __tstate = wxPyBeginAllowThreads();
41363 (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
41364 wxPyEndAllowThreads(__tstate);
41365 if (PyErr_Occurred()) SWIG_fail;
41366 }
41367 resultobj = SWIG_Py_Void();
41368 return resultobj;
41369 fail:
41370 return NULL;
41371 }
41372
41373
41374 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41375 PyObject *resultobj = 0;
41376 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41377 wxDateTime result;
41378 void *argp1 = 0 ;
41379 int res1 = 0 ;
41380 PyObject *swig_obj[1] ;
41381
41382 if (!args) SWIG_fail;
41383 swig_obj[0] = args;
41384 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41385 if (!SWIG_IsOK(res1)) {
41386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetLowerLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41387 }
41388 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41389 {
41390 PyThreadState* __tstate = wxPyBeginAllowThreads();
41391 result = wxDatePickerCtrl_GetLowerLimit(arg1);
41392 wxPyEndAllowThreads(__tstate);
41393 if (PyErr_Occurred()) SWIG_fail;
41394 }
41395 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41396 return resultobj;
41397 fail:
41398 return NULL;
41399 }
41400
41401
41402 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41403 PyObject *resultobj = 0;
41404 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41405 wxDateTime result;
41406 void *argp1 = 0 ;
41407 int res1 = 0 ;
41408 PyObject *swig_obj[1] ;
41409
41410 if (!args) SWIG_fail;
41411 swig_obj[0] = args;
41412 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41413 if (!SWIG_IsOK(res1)) {
41414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetUpperLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41415 }
41416 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41417 {
41418 PyThreadState* __tstate = wxPyBeginAllowThreads();
41419 result = wxDatePickerCtrl_GetUpperLimit(arg1);
41420 wxPyEndAllowThreads(__tstate);
41421 if (PyErr_Occurred()) SWIG_fail;
41422 }
41423 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41424 return resultobj;
41425 fail:
41426 return NULL;
41427 }
41428
41429
41430 SWIGINTERN PyObject *DatePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41431 PyObject *obj;
41432 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41433 SWIG_TypeNewClientData(SWIGTYPE_p_wxDatePickerCtrl, SWIG_NewClientData(obj));
41434 return SWIG_Py_Void();
41435 }
41436
41437 SWIGINTERN PyObject *DatePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41438 return SWIG_Python_InitShadowInstance(args);
41439 }
41440
41441 SWIGINTERN int HyperlinkCtrlNameStr_set(PyObject *) {
41442 SWIG_Error(SWIG_AttributeError,"Variable HyperlinkCtrlNameStr is read-only.");
41443 return 1;
41444 }
41445
41446
41447 SWIGINTERN PyObject *HyperlinkCtrlNameStr_get(void) {
41448 PyObject *pyobj = 0;
41449
41450 {
41451 #if wxUSE_UNICODE
41452 pyobj = PyUnicode_FromWideChar((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41453 #else
41454 pyobj = PyString_FromStringAndSize((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41455 #endif
41456 }
41457 return pyobj;
41458 }
41459
41460
41461 SWIGINTERN PyObject *_wrap_new_HyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41462 PyObject *resultobj = 0;
41463 wxWindow *arg1 = (wxWindow *) 0 ;
41464 int arg2 ;
41465 wxString *arg3 = 0 ;
41466 wxString *arg4 = 0 ;
41467 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41468 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41469 wxSize const &arg6_defvalue = wxDefaultSize ;
41470 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41471 long arg7 = (long) wxHL_DEFAULT_STYLE ;
41472 wxString const &arg8_defvalue = wxPyHyperlinkCtrlNameStr ;
41473 wxString *arg8 = (wxString *) &arg8_defvalue ;
41474 wxHyperlinkCtrl *result = 0 ;
41475 void *argp1 = 0 ;
41476 int res1 = 0 ;
41477 int val2 ;
41478 int ecode2 = 0 ;
41479 bool temp3 = false ;
41480 bool temp4 = false ;
41481 wxPoint temp5 ;
41482 wxSize temp6 ;
41483 long val7 ;
41484 int ecode7 = 0 ;
41485 bool temp8 = false ;
41486 PyObject * obj0 = 0 ;
41487 PyObject * obj1 = 0 ;
41488 PyObject * obj2 = 0 ;
41489 PyObject * obj3 = 0 ;
41490 PyObject * obj4 = 0 ;
41491 PyObject * obj5 = 0 ;
41492 PyObject * obj6 = 0 ;
41493 PyObject * obj7 = 0 ;
41494 char * kwnames[] = {
41495 (char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41496 };
41497
41498 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:new_HyperlinkCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41499 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41500 if (!SWIG_IsOK(res1)) {
41501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41502 }
41503 arg1 = reinterpret_cast< wxWindow * >(argp1);
41504 ecode2 = SWIG_AsVal_int(obj1, &val2);
41505 if (!SWIG_IsOK(ecode2)) {
41506 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkCtrl" "', expected argument " "2"" of type '" "int""'");
41507 }
41508 arg2 = static_cast< int >(val2);
41509 {
41510 arg3 = wxString_in_helper(obj2);
41511 if (arg3 == NULL) SWIG_fail;
41512 temp3 = true;
41513 }
41514 {
41515 arg4 = wxString_in_helper(obj3);
41516 if (arg4 == NULL) SWIG_fail;
41517 temp4 = true;
41518 }
41519 if (obj4) {
41520 {
41521 arg5 = &temp5;
41522 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
41523 }
41524 }
41525 if (obj5) {
41526 {
41527 arg6 = &temp6;
41528 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
41529 }
41530 }
41531 if (obj6) {
41532 ecode7 = SWIG_AsVal_long(obj6, &val7);
41533 if (!SWIG_IsOK(ecode7)) {
41534 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_HyperlinkCtrl" "', expected argument " "7"" of type '" "long""'");
41535 }
41536 arg7 = static_cast< long >(val7);
41537 }
41538 if (obj7) {
41539 {
41540 arg8 = wxString_in_helper(obj7);
41541 if (arg8 == NULL) SWIG_fail;
41542 temp8 = true;
41543 }
41544 }
41545 {
41546 if (!wxPyCheckForApp()) SWIG_fail;
41547 PyThreadState* __tstate = wxPyBeginAllowThreads();
41548 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
41549 wxPyEndAllowThreads(__tstate);
41550 if (PyErr_Occurred()) SWIG_fail;
41551 }
41552 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_NEW | 0 );
41553 {
41554 if (temp3)
41555 delete arg3;
41556 }
41557 {
41558 if (temp4)
41559 delete arg4;
41560 }
41561 {
41562 if (temp8)
41563 delete arg8;
41564 }
41565 return resultobj;
41566 fail:
41567 {
41568 if (temp3)
41569 delete arg3;
41570 }
41571 {
41572 if (temp4)
41573 delete arg4;
41574 }
41575 {
41576 if (temp8)
41577 delete arg8;
41578 }
41579 return NULL;
41580 }
41581
41582
41583 SWIGINTERN PyObject *_wrap_new_PreHyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41584 PyObject *resultobj = 0;
41585 wxHyperlinkCtrl *result = 0 ;
41586
41587 if (!SWIG_Python_UnpackTuple(args,"new_PreHyperlinkCtrl",0,0,0)) SWIG_fail;
41588 {
41589 if (!wxPyCheckForApp()) SWIG_fail;
41590 PyThreadState* __tstate = wxPyBeginAllowThreads();
41591 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl();
41592 wxPyEndAllowThreads(__tstate);
41593 if (PyErr_Occurred()) SWIG_fail;
41594 }
41595 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_OWN | 0 );
41596 return resultobj;
41597 fail:
41598 return NULL;
41599 }
41600
41601
41602 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41603 PyObject *resultobj = 0;
41604 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41605 wxWindow *arg2 = (wxWindow *) 0 ;
41606 int arg3 ;
41607 wxString *arg4 = 0 ;
41608 wxString *arg5 = 0 ;
41609 wxPoint const &arg6_defvalue = wxDefaultPosition ;
41610 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
41611 wxSize const &arg7_defvalue = wxDefaultSize ;
41612 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
41613 long arg8 = (long) wxHL_DEFAULT_STYLE ;
41614 wxString const &arg9_defvalue = wxPyHyperlinkCtrlNameStr ;
41615 wxString *arg9 = (wxString *) &arg9_defvalue ;
41616 bool result;
41617 void *argp1 = 0 ;
41618 int res1 = 0 ;
41619 void *argp2 = 0 ;
41620 int res2 = 0 ;
41621 int val3 ;
41622 int ecode3 = 0 ;
41623 bool temp4 = false ;
41624 bool temp5 = false ;
41625 wxPoint temp6 ;
41626 wxSize temp7 ;
41627 long val8 ;
41628 int ecode8 = 0 ;
41629 bool temp9 = false ;
41630 PyObject * obj0 = 0 ;
41631 PyObject * obj1 = 0 ;
41632 PyObject * obj2 = 0 ;
41633 PyObject * obj3 = 0 ;
41634 PyObject * obj4 = 0 ;
41635 PyObject * obj5 = 0 ;
41636 PyObject * obj6 = 0 ;
41637 PyObject * obj7 = 0 ;
41638 PyObject * obj8 = 0 ;
41639 char * kwnames[] = {
41640 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41641 };
41642
41643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOO:HyperlinkCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41645 if (!SWIG_IsOK(res1)) {
41646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_Create" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41647 }
41648 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41649 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41650 if (!SWIG_IsOK(res2)) {
41651 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HyperlinkCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41652 }
41653 arg2 = reinterpret_cast< wxWindow * >(argp2);
41654 ecode3 = SWIG_AsVal_int(obj2, &val3);
41655 if (!SWIG_IsOK(ecode3)) {
41656 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HyperlinkCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41657 }
41658 arg3 = static_cast< int >(val3);
41659 {
41660 arg4 = wxString_in_helper(obj3);
41661 if (arg4 == NULL) SWIG_fail;
41662 temp4 = true;
41663 }
41664 {
41665 arg5 = wxString_in_helper(obj4);
41666 if (arg5 == NULL) SWIG_fail;
41667 temp5 = true;
41668 }
41669 if (obj5) {
41670 {
41671 arg6 = &temp6;
41672 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
41673 }
41674 }
41675 if (obj6) {
41676 {
41677 arg7 = &temp7;
41678 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
41679 }
41680 }
41681 if (obj7) {
41682 ecode8 = SWIG_AsVal_long(obj7, &val8);
41683 if (!SWIG_IsOK(ecode8)) {
41684 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "HyperlinkCtrl_Create" "', expected argument " "8"" of type '" "long""'");
41685 }
41686 arg8 = static_cast< long >(val8);
41687 }
41688 if (obj8) {
41689 {
41690 arg9 = wxString_in_helper(obj8);
41691 if (arg9 == NULL) SWIG_fail;
41692 temp9 = true;
41693 }
41694 }
41695 {
41696 PyThreadState* __tstate = wxPyBeginAllowThreads();
41697 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxString const &)*arg9);
41698 wxPyEndAllowThreads(__tstate);
41699 if (PyErr_Occurred()) SWIG_fail;
41700 }
41701 {
41702 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41703 }
41704 {
41705 if (temp4)
41706 delete arg4;
41707 }
41708 {
41709 if (temp5)
41710 delete arg5;
41711 }
41712 {
41713 if (temp9)
41714 delete arg9;
41715 }
41716 return resultobj;
41717 fail:
41718 {
41719 if (temp4)
41720 delete arg4;
41721 }
41722 {
41723 if (temp5)
41724 delete arg5;
41725 }
41726 {
41727 if (temp9)
41728 delete arg9;
41729 }
41730 return NULL;
41731 }
41732
41733
41734 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41735 PyObject *resultobj = 0;
41736 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41737 wxColour result;
41738 void *argp1 = 0 ;
41739 int res1 = 0 ;
41740 PyObject *swig_obj[1] ;
41741
41742 if (!args) SWIG_fail;
41743 swig_obj[0] = args;
41744 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41745 if (!SWIG_IsOK(res1)) {
41746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41747 }
41748 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41749 {
41750 PyThreadState* __tstate = wxPyBeginAllowThreads();
41751 result = ((wxHyperlinkCtrl const *)arg1)->GetHoverColour();
41752 wxPyEndAllowThreads(__tstate);
41753 if (PyErr_Occurred()) SWIG_fail;
41754 }
41755 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
41756 return resultobj;
41757 fail:
41758 return NULL;
41759 }
41760
41761
41762 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41763 PyObject *resultobj = 0;
41764 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41765 wxColour *arg2 = 0 ;
41766 void *argp1 = 0 ;
41767 int res1 = 0 ;
41768 wxColour temp2 ;
41769 PyObject * obj0 = 0 ;
41770 PyObject * obj1 = 0 ;
41771 char * kwnames[] = {
41772 (char *) "self",(char *) "colour", NULL
41773 };
41774
41775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetHoverColour",kwnames,&obj0,&obj1)) SWIG_fail;
41776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41777 if (!SWIG_IsOK(res1)) {
41778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41779 }
41780 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41781 {
41782 arg2 = &temp2;
41783 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
41784 }
41785 {
41786 PyThreadState* __tstate = wxPyBeginAllowThreads();
41787 (arg1)->SetHoverColour((wxColour const &)*arg2);
41788 wxPyEndAllowThreads(__tstate);
41789 if (PyErr_Occurred()) SWIG_fail;
41790 }
41791 resultobj = SWIG_Py_Void();
41792 return resultobj;
41793 fail:
41794 return NULL;
41795 }
41796
41797
41798 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41799 PyObject *resultobj = 0;
41800 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41801 wxColour result;
41802 void *argp1 = 0 ;
41803 int res1 = 0 ;
41804 PyObject *swig_obj[1] ;
41805
41806 if (!args) SWIG_fail;
41807 swig_obj[0] = args;
41808 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41809 if (!SWIG_IsOK(res1)) {
41810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41811 }
41812 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41813 {
41814 PyThreadState* __tstate = wxPyBeginAllowThreads();
41815 result = ((wxHyperlinkCtrl const *)arg1)->GetNormalColour();
41816 wxPyEndAllowThreads(__tstate);
41817 if (PyErr_Occurred()) SWIG_fail;
41818 }
41819 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
41820 return resultobj;
41821 fail:
41822 return NULL;
41823 }
41824
41825
41826 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41827 PyObject *resultobj = 0;
41828 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41829 wxColour *arg2 = 0 ;
41830 void *argp1 = 0 ;
41831 int res1 = 0 ;
41832 wxColour temp2 ;
41833 PyObject * obj0 = 0 ;
41834 PyObject * obj1 = 0 ;
41835 char * kwnames[] = {
41836 (char *) "self",(char *) "colour", NULL
41837 };
41838
41839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetNormalColour",kwnames,&obj0,&obj1)) SWIG_fail;
41840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41841 if (!SWIG_IsOK(res1)) {
41842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41843 }
41844 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41845 {
41846 arg2 = &temp2;
41847 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
41848 }
41849 {
41850 PyThreadState* __tstate = wxPyBeginAllowThreads();
41851 (arg1)->SetNormalColour((wxColour const &)*arg2);
41852 wxPyEndAllowThreads(__tstate);
41853 if (PyErr_Occurred()) SWIG_fail;
41854 }
41855 resultobj = SWIG_Py_Void();
41856 return resultobj;
41857 fail:
41858 return NULL;
41859 }
41860
41861
41862 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41863 PyObject *resultobj = 0;
41864 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41865 wxColour result;
41866 void *argp1 = 0 ;
41867 int res1 = 0 ;
41868 PyObject *swig_obj[1] ;
41869
41870 if (!args) SWIG_fail;
41871 swig_obj[0] = args;
41872 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41873 if (!SWIG_IsOK(res1)) {
41874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41875 }
41876 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41877 {
41878 PyThreadState* __tstate = wxPyBeginAllowThreads();
41879 result = ((wxHyperlinkCtrl const *)arg1)->GetVisitedColour();
41880 wxPyEndAllowThreads(__tstate);
41881 if (PyErr_Occurred()) SWIG_fail;
41882 }
41883 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
41884 return resultobj;
41885 fail:
41886 return NULL;
41887 }
41888
41889
41890 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41891 PyObject *resultobj = 0;
41892 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41893 wxColour *arg2 = 0 ;
41894 void *argp1 = 0 ;
41895 int res1 = 0 ;
41896 wxColour temp2 ;
41897 PyObject * obj0 = 0 ;
41898 PyObject * obj1 = 0 ;
41899 char * kwnames[] = {
41900 (char *) "self",(char *) "colour", NULL
41901 };
41902
41903 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetVisitedColour",kwnames,&obj0,&obj1)) SWIG_fail;
41904 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41905 if (!SWIG_IsOK(res1)) {
41906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41907 }
41908 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41909 {
41910 arg2 = &temp2;
41911 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
41912 }
41913 {
41914 PyThreadState* __tstate = wxPyBeginAllowThreads();
41915 (arg1)->SetVisitedColour((wxColour const &)*arg2);
41916 wxPyEndAllowThreads(__tstate);
41917 if (PyErr_Occurred()) SWIG_fail;
41918 }
41919 resultobj = SWIG_Py_Void();
41920 return resultobj;
41921 fail:
41922 return NULL;
41923 }
41924
41925
41926 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41927 PyObject *resultobj = 0;
41928 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41929 wxString result;
41930 void *argp1 = 0 ;
41931 int res1 = 0 ;
41932 PyObject *swig_obj[1] ;
41933
41934 if (!args) SWIG_fail;
41935 swig_obj[0] = args;
41936 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41937 if (!SWIG_IsOK(res1)) {
41938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41939 }
41940 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41941 {
41942 PyThreadState* __tstate = wxPyBeginAllowThreads();
41943 result = ((wxHyperlinkCtrl const *)arg1)->GetURL();
41944 wxPyEndAllowThreads(__tstate);
41945 if (PyErr_Occurred()) SWIG_fail;
41946 }
41947 {
41948 #if wxUSE_UNICODE
41949 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
41950 #else
41951 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
41952 #endif
41953 }
41954 return resultobj;
41955 fail:
41956 return NULL;
41957 }
41958
41959
41960 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41961 PyObject *resultobj = 0;
41962 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41963 wxString *arg2 = 0 ;
41964 void *argp1 = 0 ;
41965 int res1 = 0 ;
41966 bool temp2 = false ;
41967 PyObject * obj0 = 0 ;
41968 PyObject * obj1 = 0 ;
41969 char * kwnames[] = {
41970 (char *) "self",(char *) "url", NULL
41971 };
41972
41973 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
41974 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41975 if (!SWIG_IsOK(res1)) {
41976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41977 }
41978 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41979 {
41980 arg2 = wxString_in_helper(obj1);
41981 if (arg2 == NULL) SWIG_fail;
41982 temp2 = true;
41983 }
41984 {
41985 PyThreadState* __tstate = wxPyBeginAllowThreads();
41986 (arg1)->SetURL((wxString const &)*arg2);
41987 wxPyEndAllowThreads(__tstate);
41988 if (PyErr_Occurred()) SWIG_fail;
41989 }
41990 resultobj = SWIG_Py_Void();
41991 {
41992 if (temp2)
41993 delete arg2;
41994 }
41995 return resultobj;
41996 fail:
41997 {
41998 if (temp2)
41999 delete arg2;
42000 }
42001 return NULL;
42002 }
42003
42004
42005 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42006 PyObject *resultobj = 0;
42007 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42008 bool arg2 = (bool) true ;
42009 void *argp1 = 0 ;
42010 int res1 = 0 ;
42011 bool val2 ;
42012 int ecode2 = 0 ;
42013 PyObject * obj0 = 0 ;
42014 PyObject * obj1 = 0 ;
42015 char * kwnames[] = {
42016 (char *) "self",(char *) "visited", NULL
42017 };
42018
42019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:HyperlinkCtrl_SetVisited",kwnames,&obj0,&obj1)) SWIG_fail;
42020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42021 if (!SWIG_IsOK(res1)) {
42022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42023 }
42024 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42025 if (obj1) {
42026 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42027 if (!SWIG_IsOK(ecode2)) {
42028 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "2"" of type '" "bool""'");
42029 }
42030 arg2 = static_cast< bool >(val2);
42031 }
42032 {
42033 PyThreadState* __tstate = wxPyBeginAllowThreads();
42034 (arg1)->SetVisited(arg2);
42035 wxPyEndAllowThreads(__tstate);
42036 if (PyErr_Occurred()) SWIG_fail;
42037 }
42038 resultobj = SWIG_Py_Void();
42039 return resultobj;
42040 fail:
42041 return NULL;
42042 }
42043
42044
42045 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42046 PyObject *resultobj = 0;
42047 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42048 bool result;
42049 void *argp1 = 0 ;
42050 int res1 = 0 ;
42051 PyObject *swig_obj[1] ;
42052
42053 if (!args) SWIG_fail;
42054 swig_obj[0] = args;
42055 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42056 if (!SWIG_IsOK(res1)) {
42057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42058 }
42059 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42060 {
42061 PyThreadState* __tstate = wxPyBeginAllowThreads();
42062 result = (bool)((wxHyperlinkCtrl const *)arg1)->GetVisited();
42063 wxPyEndAllowThreads(__tstate);
42064 if (PyErr_Occurred()) SWIG_fail;
42065 }
42066 {
42067 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42068 }
42069 return resultobj;
42070 fail:
42071 return NULL;
42072 }
42073
42074
42075 SWIGINTERN PyObject *HyperlinkCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42076 PyObject *obj;
42077 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42078 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkCtrl, SWIG_NewClientData(obj));
42079 return SWIG_Py_Void();
42080 }
42081
42082 SWIGINTERN PyObject *HyperlinkCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42083 return SWIG_Python_InitShadowInstance(args);
42084 }
42085
42086 SWIGINTERN PyObject *_wrap_new_HyperlinkEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42087 PyObject *resultobj = 0;
42088 wxObject *arg1 = (wxObject *) 0 ;
42089 int arg2 ;
42090 wxString *arg3 = 0 ;
42091 wxHyperlinkEvent *result = 0 ;
42092 void *argp1 = 0 ;
42093 int res1 = 0 ;
42094 int val2 ;
42095 int ecode2 = 0 ;
42096 bool temp3 = false ;
42097 PyObject * obj0 = 0 ;
42098 PyObject * obj1 = 0 ;
42099 PyObject * obj2 = 0 ;
42100 char * kwnames[] = {
42101 (char *) "generator",(char *) "id",(char *) "url", NULL
42102 };
42103
42104 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_HyperlinkEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
42105 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
42106 if (!SWIG_IsOK(res1)) {
42107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkEvent" "', expected argument " "1"" of type '" "wxObject *""'");
42108 }
42109 arg1 = reinterpret_cast< wxObject * >(argp1);
42110 ecode2 = SWIG_AsVal_int(obj1, &val2);
42111 if (!SWIG_IsOK(ecode2)) {
42112 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkEvent" "', expected argument " "2"" of type '" "int""'");
42113 }
42114 arg2 = static_cast< int >(val2);
42115 {
42116 arg3 = wxString_in_helper(obj2);
42117 if (arg3 == NULL) SWIG_fail;
42118 temp3 = true;
42119 }
42120 {
42121 PyThreadState* __tstate = wxPyBeginAllowThreads();
42122 result = (wxHyperlinkEvent *)new wxHyperlinkEvent(arg1,arg2,(wxString const &)*arg3);
42123 wxPyEndAllowThreads(__tstate);
42124 if (PyErr_Occurred()) SWIG_fail;
42125 }
42126 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkEvent, SWIG_POINTER_NEW | 0 );
42127 {
42128 if (temp3)
42129 delete arg3;
42130 }
42131 return resultobj;
42132 fail:
42133 {
42134 if (temp3)
42135 delete arg3;
42136 }
42137 return NULL;
42138 }
42139
42140
42141 SWIGINTERN PyObject *_wrap_HyperlinkEvent_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42142 PyObject *resultobj = 0;
42143 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42144 wxString result;
42145 void *argp1 = 0 ;
42146 int res1 = 0 ;
42147 PyObject *swig_obj[1] ;
42148
42149 if (!args) SWIG_fail;
42150 swig_obj[0] = args;
42151 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42152 if (!SWIG_IsOK(res1)) {
42153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent const *""'");
42154 }
42155 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42156 {
42157 PyThreadState* __tstate = wxPyBeginAllowThreads();
42158 result = ((wxHyperlinkEvent const *)arg1)->GetURL();
42159 wxPyEndAllowThreads(__tstate);
42160 if (PyErr_Occurred()) SWIG_fail;
42161 }
42162 {
42163 #if wxUSE_UNICODE
42164 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42165 #else
42166 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42167 #endif
42168 }
42169 return resultobj;
42170 fail:
42171 return NULL;
42172 }
42173
42174
42175 SWIGINTERN PyObject *_wrap_HyperlinkEvent_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42176 PyObject *resultobj = 0;
42177 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42178 wxString *arg2 = 0 ;
42179 void *argp1 = 0 ;
42180 int res1 = 0 ;
42181 bool temp2 = false ;
42182 PyObject * obj0 = 0 ;
42183 PyObject * obj1 = 0 ;
42184 char * kwnames[] = {
42185 (char *) "self",(char *) "url", NULL
42186 };
42187
42188 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkEvent_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42189 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42190 if (!SWIG_IsOK(res1)) {
42191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent *""'");
42192 }
42193 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42194 {
42195 arg2 = wxString_in_helper(obj1);
42196 if (arg2 == NULL) SWIG_fail;
42197 temp2 = true;
42198 }
42199 {
42200 PyThreadState* __tstate = wxPyBeginAllowThreads();
42201 (arg1)->SetURL((wxString const &)*arg2);
42202 wxPyEndAllowThreads(__tstate);
42203 if (PyErr_Occurred()) SWIG_fail;
42204 }
42205 resultobj = SWIG_Py_Void();
42206 {
42207 if (temp2)
42208 delete arg2;
42209 }
42210 return resultobj;
42211 fail:
42212 {
42213 if (temp2)
42214 delete arg2;
42215 }
42216 return NULL;
42217 }
42218
42219
42220 SWIGINTERN PyObject *HyperlinkEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42221 PyObject *obj;
42222 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42223 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkEvent, SWIG_NewClientData(obj));
42224 return SWIG_Py_Void();
42225 }
42226
42227 SWIGINTERN PyObject *HyperlinkEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42228 return SWIG_Python_InitShadowInstance(args);
42229 }
42230
42231 SWIGINTERN PyObject *_wrap_PickerBase_CreateBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42232 PyObject *resultobj = 0;
42233 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42234 wxWindow *arg2 = (wxWindow *) 0 ;
42235 int arg3 ;
42236 wxString const &arg4_defvalue = wxEmptyString ;
42237 wxString *arg4 = (wxString *) &arg4_defvalue ;
42238 wxPoint const &arg5_defvalue = wxDefaultPosition ;
42239 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
42240 wxSize const &arg6_defvalue = wxDefaultSize ;
42241 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
42242 long arg7 = (long) 0 ;
42243 wxValidator const &arg8_defvalue = wxDefaultValidator ;
42244 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
42245 wxString const &arg9_defvalue = wxButtonNameStr ;
42246 wxString *arg9 = (wxString *) &arg9_defvalue ;
42247 bool result;
42248 void *argp1 = 0 ;
42249 int res1 = 0 ;
42250 void *argp2 = 0 ;
42251 int res2 = 0 ;
42252 int val3 ;
42253 int ecode3 = 0 ;
42254 bool temp4 = false ;
42255 wxPoint temp5 ;
42256 wxSize temp6 ;
42257 long val7 ;
42258 int ecode7 = 0 ;
42259 void *argp8 = 0 ;
42260 int res8 = 0 ;
42261 bool temp9 = false ;
42262 PyObject * obj0 = 0 ;
42263 PyObject * obj1 = 0 ;
42264 PyObject * obj2 = 0 ;
42265 PyObject * obj3 = 0 ;
42266 PyObject * obj4 = 0 ;
42267 PyObject * obj5 = 0 ;
42268 PyObject * obj6 = 0 ;
42269 PyObject * obj7 = 0 ;
42270 PyObject * obj8 = 0 ;
42271 char * kwnames[] = {
42272 (char *) "self",(char *) "parent",(char *) "id",(char *) "text",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
42273 };
42274
42275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:PickerBase_CreateBase",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
42276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42277 if (!SWIG_IsOK(res1)) {
42278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_CreateBase" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42279 }
42280 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42281 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
42282 if (!SWIG_IsOK(res2)) {
42283 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PickerBase_CreateBase" "', expected argument " "2"" of type '" "wxWindow *""'");
42284 }
42285 arg2 = reinterpret_cast< wxWindow * >(argp2);
42286 ecode3 = SWIG_AsVal_int(obj2, &val3);
42287 if (!SWIG_IsOK(ecode3)) {
42288 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PickerBase_CreateBase" "', expected argument " "3"" of type '" "int""'");
42289 }
42290 arg3 = static_cast< int >(val3);
42291 if (obj3) {
42292 {
42293 arg4 = wxString_in_helper(obj3);
42294 if (arg4 == NULL) SWIG_fail;
42295 temp4 = true;
42296 }
42297 }
42298 if (obj4) {
42299 {
42300 arg5 = &temp5;
42301 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
42302 }
42303 }
42304 if (obj5) {
42305 {
42306 arg6 = &temp6;
42307 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
42308 }
42309 }
42310 if (obj6) {
42311 ecode7 = SWIG_AsVal_long(obj6, &val7);
42312 if (!SWIG_IsOK(ecode7)) {
42313 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PickerBase_CreateBase" "', expected argument " "7"" of type '" "long""'");
42314 }
42315 arg7 = static_cast< long >(val7);
42316 }
42317 if (obj7) {
42318 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
42319 if (!SWIG_IsOK(res8)) {
42320 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42321 }
42322 if (!argp8) {
42323 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42324 }
42325 arg8 = reinterpret_cast< wxValidator * >(argp8);
42326 }
42327 if (obj8) {
42328 {
42329 arg9 = wxString_in_helper(obj8);
42330 if (arg9 == NULL) SWIG_fail;
42331 temp9 = true;
42332 }
42333 }
42334 {
42335 PyThreadState* __tstate = wxPyBeginAllowThreads();
42336 result = (bool)(arg1)->CreateBase(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
42337 wxPyEndAllowThreads(__tstate);
42338 if (PyErr_Occurred()) SWIG_fail;
42339 }
42340 {
42341 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42342 }
42343 {
42344 if (temp4)
42345 delete arg4;
42346 }
42347 {
42348 if (temp9)
42349 delete arg9;
42350 }
42351 return resultobj;
42352 fail:
42353 {
42354 if (temp4)
42355 delete arg4;
42356 }
42357 {
42358 if (temp9)
42359 delete arg9;
42360 }
42361 return NULL;
42362 }
42363
42364
42365 SWIGINTERN PyObject *_wrap_PickerBase_SetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42366 PyObject *resultobj = 0;
42367 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42368 int arg2 ;
42369 void *argp1 = 0 ;
42370 int res1 = 0 ;
42371 int val2 ;
42372 int ecode2 = 0 ;
42373 PyObject * obj0 = 0 ;
42374 PyObject * obj1 = 0 ;
42375 char * kwnames[] = {
42376 (char *) "self",(char *) "newmargin", NULL
42377 };
42378
42379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetInternalMargin",kwnames,&obj0,&obj1)) SWIG_fail;
42380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42381 if (!SWIG_IsOK(res1)) {
42382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42383 }
42384 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42385 ecode2 = SWIG_AsVal_int(obj1, &val2);
42386 if (!SWIG_IsOK(ecode2)) {
42387 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "2"" of type '" "int""'");
42388 }
42389 arg2 = static_cast< int >(val2);
42390 {
42391 PyThreadState* __tstate = wxPyBeginAllowThreads();
42392 (arg1)->SetInternalMargin(arg2);
42393 wxPyEndAllowThreads(__tstate);
42394 if (PyErr_Occurred()) SWIG_fail;
42395 }
42396 resultobj = SWIG_Py_Void();
42397 return resultobj;
42398 fail:
42399 return NULL;
42400 }
42401
42402
42403 SWIGINTERN PyObject *_wrap_PickerBase_GetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42404 PyObject *resultobj = 0;
42405 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42406 int result;
42407 void *argp1 = 0 ;
42408 int res1 = 0 ;
42409 PyObject *swig_obj[1] ;
42410
42411 if (!args) SWIG_fail;
42412 swig_obj[0] = args;
42413 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42414 if (!SWIG_IsOK(res1)) {
42415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42416 }
42417 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42418 {
42419 PyThreadState* __tstate = wxPyBeginAllowThreads();
42420 result = (int)((wxPickerBase const *)arg1)->GetInternalMargin();
42421 wxPyEndAllowThreads(__tstate);
42422 if (PyErr_Occurred()) SWIG_fail;
42423 }
42424 resultobj = SWIG_From_int(static_cast< int >(result));
42425 return resultobj;
42426 fail:
42427 return NULL;
42428 }
42429
42430
42431 SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42432 PyObject *resultobj = 0;
42433 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42434 int arg2 ;
42435 void *argp1 = 0 ;
42436 int res1 = 0 ;
42437 int val2 ;
42438 int ecode2 = 0 ;
42439 PyObject * obj0 = 0 ;
42440 PyObject * obj1 = 0 ;
42441 char * kwnames[] = {
42442 (char *) "self",(char *) "prop", NULL
42443 };
42444
42445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetTextCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
42446 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42447 if (!SWIG_IsOK(res1)) {
42448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42449 }
42450 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42451 ecode2 = SWIG_AsVal_int(obj1, &val2);
42452 if (!SWIG_IsOK(ecode2)) {
42453 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "2"" of type '" "int""'");
42454 }
42455 arg2 = static_cast< int >(val2);
42456 {
42457 PyThreadState* __tstate = wxPyBeginAllowThreads();
42458 (arg1)->SetTextCtrlProportion(arg2);
42459 wxPyEndAllowThreads(__tstate);
42460 if (PyErr_Occurred()) SWIG_fail;
42461 }
42462 resultobj = SWIG_Py_Void();
42463 return resultobj;
42464 fail:
42465 return NULL;
42466 }
42467
42468
42469 SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42470 PyObject *resultobj = 0;
42471 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42472 int result;
42473 void *argp1 = 0 ;
42474 int res1 = 0 ;
42475 PyObject *swig_obj[1] ;
42476
42477 if (!args) SWIG_fail;
42478 swig_obj[0] = args;
42479 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42480 if (!SWIG_IsOK(res1)) {
42481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42482 }
42483 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42484 {
42485 PyThreadState* __tstate = wxPyBeginAllowThreads();
42486 result = (int)((wxPickerBase const *)arg1)->GetTextCtrlProportion();
42487 wxPyEndAllowThreads(__tstate);
42488 if (PyErr_Occurred()) SWIG_fail;
42489 }
42490 resultobj = SWIG_From_int(static_cast< int >(result));
42491 return resultobj;
42492 fail:
42493 return NULL;
42494 }
42495
42496
42497 SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42498 PyObject *resultobj = 0;
42499 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42500 int arg2 ;
42501 void *argp1 = 0 ;
42502 int res1 = 0 ;
42503 int val2 ;
42504 int ecode2 = 0 ;
42505 PyObject * obj0 = 0 ;
42506 PyObject * obj1 = 0 ;
42507 char * kwnames[] = {
42508 (char *) "self",(char *) "prop", NULL
42509 };
42510
42511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetPickerCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
42512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42513 if (!SWIG_IsOK(res1)) {
42514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42515 }
42516 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42517 ecode2 = SWIG_AsVal_int(obj1, &val2);
42518 if (!SWIG_IsOK(ecode2)) {
42519 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "2"" of type '" "int""'");
42520 }
42521 arg2 = static_cast< int >(val2);
42522 {
42523 PyThreadState* __tstate = wxPyBeginAllowThreads();
42524 (arg1)->SetPickerCtrlProportion(arg2);
42525 wxPyEndAllowThreads(__tstate);
42526 if (PyErr_Occurred()) SWIG_fail;
42527 }
42528 resultobj = SWIG_Py_Void();
42529 return resultobj;
42530 fail:
42531 return NULL;
42532 }
42533
42534
42535 SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42536 PyObject *resultobj = 0;
42537 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42538 int result;
42539 void *argp1 = 0 ;
42540 int res1 = 0 ;
42541 PyObject *swig_obj[1] ;
42542
42543 if (!args) SWIG_fail;
42544 swig_obj[0] = args;
42545 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42546 if (!SWIG_IsOK(res1)) {
42547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42548 }
42549 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42550 {
42551 PyThreadState* __tstate = wxPyBeginAllowThreads();
42552 result = (int)((wxPickerBase const *)arg1)->GetPickerCtrlProportion();
42553 wxPyEndAllowThreads(__tstate);
42554 if (PyErr_Occurred()) SWIG_fail;
42555 }
42556 resultobj = SWIG_From_int(static_cast< int >(result));
42557 return resultobj;
42558 fail:
42559 return NULL;
42560 }
42561
42562
42563 SWIGINTERN PyObject *_wrap_PickerBase_IsTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42564 PyObject *resultobj = 0;
42565 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42566 bool result;
42567 void *argp1 = 0 ;
42568 int res1 = 0 ;
42569 PyObject *swig_obj[1] ;
42570
42571 if (!args) SWIG_fail;
42572 swig_obj[0] = args;
42573 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42574 if (!SWIG_IsOK(res1)) {
42575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42576 }
42577 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42578 {
42579 PyThreadState* __tstate = wxPyBeginAllowThreads();
42580 result = (bool)((wxPickerBase const *)arg1)->IsTextCtrlGrowable();
42581 wxPyEndAllowThreads(__tstate);
42582 if (PyErr_Occurred()) SWIG_fail;
42583 }
42584 {
42585 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42586 }
42587 return resultobj;
42588 fail:
42589 return NULL;
42590 }
42591
42592
42593 SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42594 PyObject *resultobj = 0;
42595 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42596 bool arg2 = (bool) true ;
42597 void *argp1 = 0 ;
42598 int res1 = 0 ;
42599 bool val2 ;
42600 int ecode2 = 0 ;
42601 PyObject * obj0 = 0 ;
42602 PyObject * obj1 = 0 ;
42603 char * kwnames[] = {
42604 (char *) "self",(char *) "grow", NULL
42605 };
42606
42607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetTextCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
42608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42609 if (!SWIG_IsOK(res1)) {
42610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42611 }
42612 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42613 if (obj1) {
42614 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42615 if (!SWIG_IsOK(ecode2)) {
42616 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
42617 }
42618 arg2 = static_cast< bool >(val2);
42619 }
42620 {
42621 PyThreadState* __tstate = wxPyBeginAllowThreads();
42622 (arg1)->SetTextCtrlGrowable(arg2);
42623 wxPyEndAllowThreads(__tstate);
42624 if (PyErr_Occurred()) SWIG_fail;
42625 }
42626 resultobj = SWIG_Py_Void();
42627 return resultobj;
42628 fail:
42629 return NULL;
42630 }
42631
42632
42633 SWIGINTERN PyObject *_wrap_PickerBase_IsPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42634 PyObject *resultobj = 0;
42635 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42636 bool result;
42637 void *argp1 = 0 ;
42638 int res1 = 0 ;
42639 PyObject *swig_obj[1] ;
42640
42641 if (!args) SWIG_fail;
42642 swig_obj[0] = args;
42643 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42644 if (!SWIG_IsOK(res1)) {
42645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42646 }
42647 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42648 {
42649 PyThreadState* __tstate = wxPyBeginAllowThreads();
42650 result = (bool)((wxPickerBase const *)arg1)->IsPickerCtrlGrowable();
42651 wxPyEndAllowThreads(__tstate);
42652 if (PyErr_Occurred()) SWIG_fail;
42653 }
42654 {
42655 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42656 }
42657 return resultobj;
42658 fail:
42659 return NULL;
42660 }
42661
42662
42663 SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42664 PyObject *resultobj = 0;
42665 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42666 bool arg2 = (bool) true ;
42667 void *argp1 = 0 ;
42668 int res1 = 0 ;
42669 bool val2 ;
42670 int ecode2 = 0 ;
42671 PyObject * obj0 = 0 ;
42672 PyObject * obj1 = 0 ;
42673 char * kwnames[] = {
42674 (char *) "self",(char *) "grow", NULL
42675 };
42676
42677 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetPickerCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
42678 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42679 if (!SWIG_IsOK(res1)) {
42680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42681 }
42682 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42683 if (obj1) {
42684 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42685 if (!SWIG_IsOK(ecode2)) {
42686 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
42687 }
42688 arg2 = static_cast< bool >(val2);
42689 }
42690 {
42691 PyThreadState* __tstate = wxPyBeginAllowThreads();
42692 (arg1)->SetPickerCtrlGrowable(arg2);
42693 wxPyEndAllowThreads(__tstate);
42694 if (PyErr_Occurred()) SWIG_fail;
42695 }
42696 resultobj = SWIG_Py_Void();
42697 return resultobj;
42698 fail:
42699 return NULL;
42700 }
42701
42702
42703 SWIGINTERN PyObject *_wrap_PickerBase_HasTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42704 PyObject *resultobj = 0;
42705 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42706 bool result;
42707 void *argp1 = 0 ;
42708 int res1 = 0 ;
42709 PyObject *swig_obj[1] ;
42710
42711 if (!args) SWIG_fail;
42712 swig_obj[0] = args;
42713 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42714 if (!SWIG_IsOK(res1)) {
42715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_HasTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42716 }
42717 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42718 {
42719 PyThreadState* __tstate = wxPyBeginAllowThreads();
42720 result = (bool)((wxPickerBase const *)arg1)->HasTextCtrl();
42721 wxPyEndAllowThreads(__tstate);
42722 if (PyErr_Occurred()) SWIG_fail;
42723 }
42724 {
42725 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42726 }
42727 return resultobj;
42728 fail:
42729 return NULL;
42730 }
42731
42732
42733 SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42734 PyObject *resultobj = 0;
42735 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42736 wxTextCtrl *result = 0 ;
42737 void *argp1 = 0 ;
42738 int res1 = 0 ;
42739 PyObject *swig_obj[1] ;
42740
42741 if (!args) SWIG_fail;
42742 swig_obj[0] = args;
42743 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42744 if (!SWIG_IsOK(res1)) {
42745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42746 }
42747 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42748 {
42749 PyThreadState* __tstate = wxPyBeginAllowThreads();
42750 result = (wxTextCtrl *)(arg1)->GetTextCtrl();
42751 wxPyEndAllowThreads(__tstate);
42752 if (PyErr_Occurred()) SWIG_fail;
42753 }
42754 {
42755 resultobj = wxPyMake_wxObject(result, 0);
42756 }
42757 return resultobj;
42758 fail:
42759 return NULL;
42760 }
42761
42762
42763 SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42764 PyObject *resultobj = 0;
42765 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42766 wxControl *result = 0 ;
42767 void *argp1 = 0 ;
42768 int res1 = 0 ;
42769 PyObject *swig_obj[1] ;
42770
42771 if (!args) SWIG_fail;
42772 swig_obj[0] = args;
42773 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42774 if (!SWIG_IsOK(res1)) {
42775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42776 }
42777 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42778 {
42779 PyThreadState* __tstate = wxPyBeginAllowThreads();
42780 result = (wxControl *)(arg1)->GetPickerCtrl();
42781 wxPyEndAllowThreads(__tstate);
42782 if (PyErr_Occurred()) SWIG_fail;
42783 }
42784 {
42785 resultobj = wxPyMake_wxObject(result, 0);
42786 }
42787 return resultobj;
42788 fail:
42789 return NULL;
42790 }
42791
42792
42793 SWIGINTERN PyObject *PickerBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42794 PyObject *obj;
42795 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42796 SWIG_TypeNewClientData(SWIGTYPE_p_wxPickerBase, SWIG_NewClientData(obj));
42797 return SWIG_Py_Void();
42798 }
42799
42800 SWIGINTERN int ColourPickerCtrlNameStr_set(PyObject *) {
42801 SWIG_Error(SWIG_AttributeError,"Variable ColourPickerCtrlNameStr is read-only.");
42802 return 1;
42803 }
42804
42805
42806 SWIGINTERN PyObject *ColourPickerCtrlNameStr_get(void) {
42807 PyObject *pyobj = 0;
42808
42809 {
42810 #if wxUSE_UNICODE
42811 pyobj = PyUnicode_FromWideChar((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
42812 #else
42813 pyobj = PyString_FromStringAndSize((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
42814 #endif
42815 }
42816 return pyobj;
42817 }
42818
42819
42820 SWIGINTERN PyObject *_wrap_new_ColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42821 PyObject *resultobj = 0;
42822 wxWindow *arg1 = (wxWindow *) 0 ;
42823 int arg2 = (int) -1 ;
42824 wxColour const &arg3_defvalue = *wxBLACK ;
42825 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
42826 wxPoint const &arg4_defvalue = wxDefaultPosition ;
42827 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
42828 wxSize const &arg5_defvalue = wxDefaultSize ;
42829 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
42830 long arg6 = (long) wxCLRP_DEFAULT_STYLE ;
42831 wxValidator const &arg7_defvalue = wxDefaultValidator ;
42832 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
42833 wxString const &arg8_defvalue = wxPyColourPickerCtrlNameStr ;
42834 wxString *arg8 = (wxString *) &arg8_defvalue ;
42835 wxColourPickerCtrl *result = 0 ;
42836 void *argp1 = 0 ;
42837 int res1 = 0 ;
42838 int val2 ;
42839 int ecode2 = 0 ;
42840 wxColour temp3 ;
42841 wxPoint temp4 ;
42842 wxSize temp5 ;
42843 long val6 ;
42844 int ecode6 = 0 ;
42845 void *argp7 = 0 ;
42846 int res7 = 0 ;
42847 bool temp8 = false ;
42848 PyObject * obj0 = 0 ;
42849 PyObject * obj1 = 0 ;
42850 PyObject * obj2 = 0 ;
42851 PyObject * obj3 = 0 ;
42852 PyObject * obj4 = 0 ;
42853 PyObject * obj5 = 0 ;
42854 PyObject * obj6 = 0 ;
42855 PyObject * obj7 = 0 ;
42856 char * kwnames[] = {
42857 (char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
42858 };
42859
42860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ColourPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
42861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
42862 if (!SWIG_IsOK(res1)) {
42863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
42864 }
42865 arg1 = reinterpret_cast< wxWindow * >(argp1);
42866 if (obj1) {
42867 ecode2 = SWIG_AsVal_int(obj1, &val2);
42868 if (!SWIG_IsOK(ecode2)) {
42869 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerCtrl" "', expected argument " "2"" of type '" "int""'");
42870 }
42871 arg2 = static_cast< int >(val2);
42872 }
42873 if (obj2) {
42874 {
42875 arg3 = &temp3;
42876 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
42877 }
42878 }
42879 if (obj3) {
42880 {
42881 arg4 = &temp4;
42882 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
42883 }
42884 }
42885 if (obj4) {
42886 {
42887 arg5 = &temp5;
42888 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
42889 }
42890 }
42891 if (obj5) {
42892 ecode6 = SWIG_AsVal_long(obj5, &val6);
42893 if (!SWIG_IsOK(ecode6)) {
42894 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ColourPickerCtrl" "', expected argument " "6"" of type '" "long""'");
42895 }
42896 arg6 = static_cast< long >(val6);
42897 }
42898 if (obj6) {
42899 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
42900 if (!SWIG_IsOK(res7)) {
42901 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
42902 }
42903 if (!argp7) {
42904 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
42905 }
42906 arg7 = reinterpret_cast< wxValidator * >(argp7);
42907 }
42908 if (obj7) {
42909 {
42910 arg8 = wxString_in_helper(obj7);
42911 if (arg8 == NULL) SWIG_fail;
42912 temp8 = true;
42913 }
42914 }
42915 {
42916 if (!wxPyCheckForApp()) SWIG_fail;
42917 PyThreadState* __tstate = wxPyBeginAllowThreads();
42918 result = (wxColourPickerCtrl *)new wxColourPickerCtrl(arg1,arg2,(wxColour const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
42919 wxPyEndAllowThreads(__tstate);
42920 if (PyErr_Occurred()) SWIG_fail;
42921 }
42922 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_NEW | 0 );
42923 {
42924 if (temp8)
42925 delete arg8;
42926 }
42927 return resultobj;
42928 fail:
42929 {
42930 if (temp8)
42931 delete arg8;
42932 }
42933 return NULL;
42934 }
42935
42936
42937 SWIGINTERN PyObject *_wrap_new_PreColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42938 PyObject *resultobj = 0;
42939 wxColourPickerCtrl *result = 0 ;
42940
42941 if (!SWIG_Python_UnpackTuple(args,"new_PreColourPickerCtrl",0,0,0)) SWIG_fail;
42942 {
42943 if (!wxPyCheckForApp()) SWIG_fail;
42944 PyThreadState* __tstate = wxPyBeginAllowThreads();
42945 result = (wxColourPickerCtrl *)new wxColourPickerCtrl();
42946 wxPyEndAllowThreads(__tstate);
42947 if (PyErr_Occurred()) SWIG_fail;
42948 }
42949 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_OWN | 0 );
42950 return resultobj;
42951 fail:
42952 return NULL;
42953 }
42954
42955
42956 SWIGINTERN PyObject *_wrap_ColourPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42957 PyObject *resultobj = 0;
42958 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
42959 wxWindow *arg2 = (wxWindow *) 0 ;
42960 int arg3 ;
42961 wxColour const &arg4_defvalue = *wxBLACK ;
42962 wxColour *arg4 = (wxColour *) &arg4_defvalue ;
42963 wxPoint const &arg5_defvalue = wxDefaultPosition ;
42964 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
42965 wxSize const &arg6_defvalue = wxDefaultSize ;
42966 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
42967 long arg7 = (long) wxCLRP_DEFAULT_STYLE ;
42968 wxValidator const &arg8_defvalue = wxDefaultValidator ;
42969 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
42970 wxString const &arg9_defvalue = wxPyColourPickerCtrlNameStr ;
42971 wxString *arg9 = (wxString *) &arg9_defvalue ;
42972 bool result;
42973 void *argp1 = 0 ;
42974 int res1 = 0 ;
42975 void *argp2 = 0 ;
42976 int res2 = 0 ;
42977 int val3 ;
42978 int ecode3 = 0 ;
42979 wxColour temp4 ;
42980 wxPoint temp5 ;
42981 wxSize temp6 ;
42982 long val7 ;
42983 int ecode7 = 0 ;
42984 void *argp8 = 0 ;
42985 int res8 = 0 ;
42986 bool temp9 = false ;
42987 PyObject * obj0 = 0 ;
42988 PyObject * obj1 = 0 ;
42989 PyObject * obj2 = 0 ;
42990 PyObject * obj3 = 0 ;
42991 PyObject * obj4 = 0 ;
42992 PyObject * obj5 = 0 ;
42993 PyObject * obj6 = 0 ;
42994 PyObject * obj7 = 0 ;
42995 PyObject * obj8 = 0 ;
42996 char * kwnames[] = {
42997 (char *) "self",(char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
42998 };
42999
43000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ColourPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
43001 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43002 if (!SWIG_IsOK(res1)) {
43003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_Create" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43004 }
43005 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43006 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
43007 if (!SWIG_IsOK(res2)) {
43008 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ColourPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
43009 }
43010 arg2 = reinterpret_cast< wxWindow * >(argp2);
43011 ecode3 = SWIG_AsVal_int(obj2, &val3);
43012 if (!SWIG_IsOK(ecode3)) {
43013 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
43014 }
43015 arg3 = static_cast< int >(val3);
43016 if (obj3) {
43017 {
43018 arg4 = &temp4;
43019 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
43020 }
43021 }
43022 if (obj4) {
43023 {
43024 arg5 = &temp5;
43025 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
43026 }
43027 }
43028 if (obj5) {
43029 {
43030 arg6 = &temp6;
43031 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
43032 }
43033 }
43034 if (obj6) {
43035 ecode7 = SWIG_AsVal_long(obj6, &val7);
43036 if (!SWIG_IsOK(ecode7)) {
43037 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ColourPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
43038 }
43039 arg7 = static_cast< long >(val7);
43040 }
43041 if (obj7) {
43042 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
43043 if (!SWIG_IsOK(res8)) {
43044 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43045 }
43046 if (!argp8) {
43047 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43048 }
43049 arg8 = reinterpret_cast< wxValidator * >(argp8);
43050 }
43051 if (obj8) {
43052 {
43053 arg9 = wxString_in_helper(obj8);
43054 if (arg9 == NULL) SWIG_fail;
43055 temp9 = true;
43056 }
43057 }
43058 {
43059 PyThreadState* __tstate = wxPyBeginAllowThreads();
43060 result = (bool)(arg1)->Create(arg2,arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
43061 wxPyEndAllowThreads(__tstate);
43062 if (PyErr_Occurred()) SWIG_fail;
43063 }
43064 {
43065 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43066 }
43067 {
43068 if (temp9)
43069 delete arg9;
43070 }
43071 return resultobj;
43072 fail:
43073 {
43074 if (temp9)
43075 delete arg9;
43076 }
43077 return NULL;
43078 }
43079
43080
43081 SWIGINTERN PyObject *_wrap_ColourPickerCtrl_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43082 PyObject *resultobj = 0;
43083 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43084 wxColour result;
43085 void *argp1 = 0 ;
43086 int res1 = 0 ;
43087 PyObject *swig_obj[1] ;
43088
43089 if (!args) SWIG_fail;
43090 swig_obj[0] = args;
43091 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43092 if (!SWIG_IsOK(res1)) {
43093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_GetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl const *""'");
43094 }
43095 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43096 {
43097 PyThreadState* __tstate = wxPyBeginAllowThreads();
43098 result = ((wxColourPickerCtrl const *)arg1)->GetColour();
43099 wxPyEndAllowThreads(__tstate);
43100 if (PyErr_Occurred()) SWIG_fail;
43101 }
43102 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43103 return resultobj;
43104 fail:
43105 return NULL;
43106 }
43107
43108
43109 SWIGINTERN PyObject *_wrap_ColourPickerCtrl_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43110 PyObject *resultobj = 0;
43111 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43112 wxColour *arg2 = 0 ;
43113 void *argp1 = 0 ;
43114 int res1 = 0 ;
43115 wxColour temp2 ;
43116 PyObject * obj0 = 0 ;
43117 PyObject * obj1 = 0 ;
43118 char * kwnames[] = {
43119 (char *) "self",(char *) "col", NULL
43120 };
43121
43122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerCtrl_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43124 if (!SWIG_IsOK(res1)) {
43125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_SetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43126 }
43127 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43128 {
43129 arg2 = &temp2;
43130 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43131 }
43132 {
43133 PyThreadState* __tstate = wxPyBeginAllowThreads();
43134 (arg1)->SetColour((wxColour const &)*arg2);
43135 wxPyEndAllowThreads(__tstate);
43136 if (PyErr_Occurred()) SWIG_fail;
43137 }
43138 resultobj = SWIG_Py_Void();
43139 return resultobj;
43140 fail:
43141 return NULL;
43142 }
43143
43144
43145 SWIGINTERN PyObject *ColourPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43146 PyObject *obj;
43147 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43148 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerCtrl, SWIG_NewClientData(obj));
43149 return SWIG_Py_Void();
43150 }
43151
43152 SWIGINTERN PyObject *ColourPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43153 return SWIG_Python_InitShadowInstance(args);
43154 }
43155
43156 SWIGINTERN PyObject *_wrap_new_ColourPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43157 PyObject *resultobj = 0;
43158 wxObject *arg1 = (wxObject *) 0 ;
43159 int arg2 ;
43160 wxColour *arg3 = 0 ;
43161 wxColourPickerEvent *result = 0 ;
43162 void *argp1 = 0 ;
43163 int res1 = 0 ;
43164 int val2 ;
43165 int ecode2 = 0 ;
43166 wxColour temp3 ;
43167 PyObject * obj0 = 0 ;
43168 PyObject * obj1 = 0 ;
43169 PyObject * obj2 = 0 ;
43170 char * kwnames[] = {
43171 (char *) "generator",(char *) "id",(char *) "col", NULL
43172 };
43173
43174 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ColourPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
43175 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
43176 if (!SWIG_IsOK(res1)) {
43177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
43178 }
43179 arg1 = reinterpret_cast< wxObject * >(argp1);
43180 ecode2 = SWIG_AsVal_int(obj1, &val2);
43181 if (!SWIG_IsOK(ecode2)) {
43182 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerEvent" "', expected argument " "2"" of type '" "int""'");
43183 }
43184 arg2 = static_cast< int >(val2);
43185 {
43186 arg3 = &temp3;
43187 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
43188 }
43189 {
43190 PyThreadState* __tstate = wxPyBeginAllowThreads();
43191 result = (wxColourPickerEvent *)new wxColourPickerEvent(arg1,arg2,(wxColour const &)*arg3);
43192 wxPyEndAllowThreads(__tstate);
43193 if (PyErr_Occurred()) SWIG_fail;
43194 }
43195 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerEvent, SWIG_POINTER_NEW | 0 );
43196 return resultobj;
43197 fail:
43198 return NULL;
43199 }
43200
43201
43202 SWIGINTERN PyObject *_wrap_ColourPickerEvent_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43203 PyObject *resultobj = 0;
43204 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43205 wxColour result;
43206 void *argp1 = 0 ;
43207 int res1 = 0 ;
43208 PyObject *swig_obj[1] ;
43209
43210 if (!args) SWIG_fail;
43211 swig_obj[0] = args;
43212 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43213 if (!SWIG_IsOK(res1)) {
43214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_GetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent const *""'");
43215 }
43216 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43217 {
43218 PyThreadState* __tstate = wxPyBeginAllowThreads();
43219 result = ((wxColourPickerEvent const *)arg1)->GetColour();
43220 wxPyEndAllowThreads(__tstate);
43221 if (PyErr_Occurred()) SWIG_fail;
43222 }
43223 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43224 return resultobj;
43225 fail:
43226 return NULL;
43227 }
43228
43229
43230 SWIGINTERN PyObject *_wrap_ColourPickerEvent_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43231 PyObject *resultobj = 0;
43232 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43233 wxColour *arg2 = 0 ;
43234 void *argp1 = 0 ;
43235 int res1 = 0 ;
43236 wxColour temp2 ;
43237 PyObject * obj0 = 0 ;
43238 PyObject * obj1 = 0 ;
43239 char * kwnames[] = {
43240 (char *) "self",(char *) "c", NULL
43241 };
43242
43243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerEvent_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43245 if (!SWIG_IsOK(res1)) {
43246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_SetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent *""'");
43247 }
43248 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43249 {
43250 arg2 = &temp2;
43251 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43252 }
43253 {
43254 PyThreadState* __tstate = wxPyBeginAllowThreads();
43255 (arg1)->SetColour((wxColour const &)*arg2);
43256 wxPyEndAllowThreads(__tstate);
43257 if (PyErr_Occurred()) SWIG_fail;
43258 }
43259 resultobj = SWIG_Py_Void();
43260 return resultobj;
43261 fail:
43262 return NULL;
43263 }
43264
43265
43266 SWIGINTERN PyObject *ColourPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43267 PyObject *obj;
43268 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43269 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerEvent, SWIG_NewClientData(obj));
43270 return SWIG_Py_Void();
43271 }
43272
43273 SWIGINTERN PyObject *ColourPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43274 return SWIG_Python_InitShadowInstance(args);
43275 }
43276
43277 SWIGINTERN int FilePickerCtrlNameStr_set(PyObject *) {
43278 SWIG_Error(SWIG_AttributeError,"Variable FilePickerCtrlNameStr is read-only.");
43279 return 1;
43280 }
43281
43282
43283 SWIGINTERN PyObject *FilePickerCtrlNameStr_get(void) {
43284 PyObject *pyobj = 0;
43285
43286 {
43287 #if wxUSE_UNICODE
43288 pyobj = PyUnicode_FromWideChar((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43289 #else
43290 pyobj = PyString_FromStringAndSize((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43291 #endif
43292 }
43293 return pyobj;
43294 }
43295
43296
43297 SWIGINTERN int FileSelectorPromptStr_set(PyObject *) {
43298 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorPromptStr is read-only.");
43299 return 1;
43300 }
43301
43302
43303 SWIGINTERN PyObject *FileSelectorPromptStr_get(void) {
43304 PyObject *pyobj = 0;
43305
43306 {
43307 #if wxUSE_UNICODE
43308 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43309 #else
43310 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43311 #endif
43312 }
43313 return pyobj;
43314 }
43315
43316
43317 SWIGINTERN int DirPickerCtrlNameStr_set(PyObject *) {
43318 SWIG_Error(SWIG_AttributeError,"Variable DirPickerCtrlNameStr is read-only.");
43319 return 1;
43320 }
43321
43322
43323 SWIGINTERN PyObject *DirPickerCtrlNameStr_get(void) {
43324 PyObject *pyobj = 0;
43325
43326 {
43327 #if wxUSE_UNICODE
43328 pyobj = PyUnicode_FromWideChar((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43329 #else
43330 pyobj = PyString_FromStringAndSize((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43331 #endif
43332 }
43333 return pyobj;
43334 }
43335
43336
43337 SWIGINTERN int DirSelectorPromptStr_set(PyObject *) {
43338 SWIG_Error(SWIG_AttributeError,"Variable DirSelectorPromptStr is read-only.");
43339 return 1;
43340 }
43341
43342
43343 SWIGINTERN PyObject *DirSelectorPromptStr_get(void) {
43344 PyObject *pyobj = 0;
43345
43346 {
43347 #if wxUSE_UNICODE
43348 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
43349 #else
43350 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
43351 #endif
43352 }
43353 return pyobj;
43354 }
43355
43356
43357 SWIGINTERN int FileSelectorDefaultWildcardStr_set(PyObject *) {
43358 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
43359 return 1;
43360 }
43361
43362
43363 SWIGINTERN PyObject *FileSelectorDefaultWildcardStr_get(void) {
43364 PyObject *pyobj = 0;
43365
43366 {
43367 #if wxUSE_UNICODE
43368 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
43369 #else
43370 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
43371 #endif
43372 }
43373 return pyobj;
43374 }
43375
43376
43377 SWIGINTERN PyObject *_wrap_new_FilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43378 PyObject *resultobj = 0;
43379 wxWindow *arg1 = (wxWindow *) 0 ;
43380 int arg2 = (int) -1 ;
43381 wxString const &arg3_defvalue = wxPyEmptyString ;
43382 wxString *arg3 = (wxString *) &arg3_defvalue ;
43383 wxString const &arg4_defvalue = wxPyFileSelectorPromptStr ;
43384 wxString *arg4 = (wxString *) &arg4_defvalue ;
43385 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
43386 wxString *arg5 = (wxString *) &arg5_defvalue ;
43387 wxPoint const &arg6_defvalue = wxDefaultPosition ;
43388 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
43389 wxSize const &arg7_defvalue = wxDefaultSize ;
43390 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
43391 long arg8 = (long) wxFLP_DEFAULT_STYLE ;
43392 wxValidator const &arg9_defvalue = wxDefaultValidator ;
43393 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
43394 wxString const &arg10_defvalue = wxPyFilePickerCtrlNameStr ;
43395 wxString *arg10 = (wxString *) &arg10_defvalue ;
43396 wxFilePickerCtrl *result = 0 ;
43397 void *argp1 = 0 ;
43398 int res1 = 0 ;
43399 int val2 ;
43400 int ecode2 = 0 ;
43401 bool temp3 = false ;
43402 bool temp4 = false ;
43403 bool temp5 = false ;
43404 wxPoint temp6 ;
43405 wxSize temp7 ;
43406 long val8 ;
43407 int ecode8 = 0 ;
43408 void *argp9 = 0 ;
43409 int res9 = 0 ;
43410 bool temp10 = false ;
43411 PyObject * obj0 = 0 ;
43412 PyObject * obj1 = 0 ;
43413 PyObject * obj2 = 0 ;
43414 PyObject * obj3 = 0 ;
43415 PyObject * obj4 = 0 ;
43416 PyObject * obj5 = 0 ;
43417 PyObject * obj6 = 0 ;
43418 PyObject * obj7 = 0 ;
43419 PyObject * obj8 = 0 ;
43420 PyObject * obj9 = 0 ;
43421 char * kwnames[] = {
43422 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43423 };
43424
43425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_FilePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
43426 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43427 if (!SWIG_IsOK(res1)) {
43428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FilePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43429 }
43430 arg1 = reinterpret_cast< wxWindow * >(argp1);
43431 if (obj1) {
43432 ecode2 = SWIG_AsVal_int(obj1, &val2);
43433 if (!SWIG_IsOK(ecode2)) {
43434 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FilePickerCtrl" "', expected argument " "2"" of type '" "int""'");
43435 }
43436 arg2 = static_cast< int >(val2);
43437 }
43438 if (obj2) {
43439 {
43440 arg3 = wxString_in_helper(obj2);
43441 if (arg3 == NULL) SWIG_fail;
43442 temp3 = true;
43443 }
43444 }
43445 if (obj3) {
43446 {
43447 arg4 = wxString_in_helper(obj3);
43448 if (arg4 == NULL) SWIG_fail;
43449 temp4 = true;
43450 }
43451 }
43452 if (obj4) {
43453 {
43454 arg5 = wxString_in_helper(obj4);
43455 if (arg5 == NULL) SWIG_fail;
43456 temp5 = true;
43457 }
43458 }
43459 if (obj5) {
43460 {
43461 arg6 = &temp6;
43462 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
43463 }
43464 }
43465 if (obj6) {
43466 {
43467 arg7 = &temp7;
43468 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
43469 }
43470 }
43471 if (obj7) {
43472 ecode8 = SWIG_AsVal_long(obj7, &val8);
43473 if (!SWIG_IsOK(ecode8)) {
43474 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_FilePickerCtrl" "', expected argument " "8"" of type '" "long""'");
43475 }
43476 arg8 = static_cast< long >(val8);
43477 }
43478 if (obj8) {
43479 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
43480 if (!SWIG_IsOK(res9)) {
43481 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
43482 }
43483 if (!argp9) {
43484 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
43485 }
43486 arg9 = reinterpret_cast< wxValidator * >(argp9);
43487 }
43488 if (obj9) {
43489 {
43490 arg10 = wxString_in_helper(obj9);
43491 if (arg10 == NULL) SWIG_fail;
43492 temp10 = true;
43493 }
43494 }
43495 {
43496 if (!wxPyCheckForApp()) SWIG_fail;
43497 PyThreadState* __tstate = wxPyBeginAllowThreads();
43498 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);
43499 wxPyEndAllowThreads(__tstate);
43500 if (PyErr_Occurred()) SWIG_fail;
43501 }
43502 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_NEW | 0 );
43503 {
43504 if (temp3)
43505 delete arg3;
43506 }
43507 {
43508 if (temp4)
43509 delete arg4;
43510 }
43511 {
43512 if (temp5)
43513 delete arg5;
43514 }
43515 {
43516 if (temp10)
43517 delete arg10;
43518 }
43519 return resultobj;
43520 fail:
43521 {
43522 if (temp3)
43523 delete arg3;
43524 }
43525 {
43526 if (temp4)
43527 delete arg4;
43528 }
43529 {
43530 if (temp5)
43531 delete arg5;
43532 }
43533 {
43534 if (temp10)
43535 delete arg10;
43536 }
43537 return NULL;
43538 }
43539
43540
43541 SWIGINTERN PyObject *_wrap_new_PreFilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43542 PyObject *resultobj = 0;
43543 wxFilePickerCtrl *result = 0 ;
43544
43545 if (!SWIG_Python_UnpackTuple(args,"new_PreFilePickerCtrl",0,0,0)) SWIG_fail;
43546 {
43547 if (!wxPyCheckForApp()) SWIG_fail;
43548 PyThreadState* __tstate = wxPyBeginAllowThreads();
43549 result = (wxFilePickerCtrl *)new wxFilePickerCtrl();
43550 wxPyEndAllowThreads(__tstate);
43551 if (PyErr_Occurred()) SWIG_fail;
43552 }
43553 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_OWN | 0 );
43554 return resultobj;
43555 fail:
43556 return NULL;
43557 }
43558
43559
43560 SWIGINTERN PyObject *_wrap_FilePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43561 PyObject *resultobj = 0;
43562 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43563 wxWindow *arg2 = (wxWindow *) 0 ;
43564 int arg3 = (int) -1 ;
43565 wxString const &arg4_defvalue = wxPyEmptyString ;
43566 wxString *arg4 = (wxString *) &arg4_defvalue ;
43567 wxString const &arg5_defvalue = wxPyFileSelectorPromptStr ;
43568 wxString *arg5 = (wxString *) &arg5_defvalue ;
43569 wxString const &arg6_defvalue = wxPyFileSelectorDefaultWildcardStr ;
43570 wxString *arg6 = (wxString *) &arg6_defvalue ;
43571 wxPoint const &arg7_defvalue = wxDefaultPosition ;
43572 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
43573 wxSize const &arg8_defvalue = wxDefaultSize ;
43574 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
43575 long arg9 = (long) wxFLP_DEFAULT_STYLE ;
43576 wxValidator const &arg10_defvalue = wxDefaultValidator ;
43577 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
43578 wxString const &arg11_defvalue = wxPyFilePickerCtrlNameStr ;
43579 wxString *arg11 = (wxString *) &arg11_defvalue ;
43580 bool result;
43581 void *argp1 = 0 ;
43582 int res1 = 0 ;
43583 void *argp2 = 0 ;
43584 int res2 = 0 ;
43585 int val3 ;
43586 int ecode3 = 0 ;
43587 bool temp4 = false ;
43588 bool temp5 = false ;
43589 bool temp6 = false ;
43590 wxPoint temp7 ;
43591 wxSize temp8 ;
43592 long val9 ;
43593 int ecode9 = 0 ;
43594 void *argp10 = 0 ;
43595 int res10 = 0 ;
43596 bool temp11 = false ;
43597 PyObject * obj0 = 0 ;
43598 PyObject * obj1 = 0 ;
43599 PyObject * obj2 = 0 ;
43600 PyObject * obj3 = 0 ;
43601 PyObject * obj4 = 0 ;
43602 PyObject * obj5 = 0 ;
43603 PyObject * obj6 = 0 ;
43604 PyObject * obj7 = 0 ;
43605 PyObject * obj8 = 0 ;
43606 PyObject * obj9 = 0 ;
43607 PyObject * obj10 = 0 ;
43608 char * kwnames[] = {
43609 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43610 };
43611
43612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:FilePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
43613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43614 if (!SWIG_IsOK(res1)) {
43615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_Create" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
43616 }
43617 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43618 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
43619 if (!SWIG_IsOK(res2)) {
43620 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FilePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
43621 }
43622 arg2 = reinterpret_cast< wxWindow * >(argp2);
43623 if (obj2) {
43624 ecode3 = SWIG_AsVal_int(obj2, &val3);
43625 if (!SWIG_IsOK(ecode3)) {
43626 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FilePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
43627 }
43628 arg3 = static_cast< int >(val3);
43629 }
43630 if (obj3) {
43631 {
43632 arg4 = wxString_in_helper(obj3);
43633 if (arg4 == NULL) SWIG_fail;
43634 temp4 = true;
43635 }
43636 }
43637 if (obj4) {
43638 {
43639 arg5 = wxString_in_helper(obj4);
43640 if (arg5 == NULL) SWIG_fail;
43641 temp5 = true;
43642 }
43643 }
43644 if (obj5) {
43645 {
43646 arg6 = wxString_in_helper(obj5);
43647 if (arg6 == NULL) SWIG_fail;
43648 temp6 = true;
43649 }
43650 }
43651 if (obj6) {
43652 {
43653 arg7 = &temp7;
43654 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
43655 }
43656 }
43657 if (obj7) {
43658 {
43659 arg8 = &temp8;
43660 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
43661 }
43662 }
43663 if (obj8) {
43664 ecode9 = SWIG_AsVal_long(obj8, &val9);
43665 if (!SWIG_IsOK(ecode9)) {
43666 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "FilePickerCtrl_Create" "', expected argument " "9"" of type '" "long""'");
43667 }
43668 arg9 = static_cast< long >(val9);
43669 }
43670 if (obj9) {
43671 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
43672 if (!SWIG_IsOK(res10)) {
43673 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
43674 }
43675 if (!argp10) {
43676 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
43677 }
43678 arg10 = reinterpret_cast< wxValidator * >(argp10);
43679 }
43680 if (obj10) {
43681 {
43682 arg11 = wxString_in_helper(obj10);
43683 if (arg11 == NULL) SWIG_fail;
43684 temp11 = true;
43685 }
43686 }
43687 {
43688 PyThreadState* __tstate = wxPyBeginAllowThreads();
43689 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);
43690 wxPyEndAllowThreads(__tstate);
43691 if (PyErr_Occurred()) SWIG_fail;
43692 }
43693 {
43694 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43695 }
43696 {
43697 if (temp4)
43698 delete arg4;
43699 }
43700 {
43701 if (temp5)
43702 delete arg5;
43703 }
43704 {
43705 if (temp6)
43706 delete arg6;
43707 }
43708 {
43709 if (temp11)
43710 delete arg11;
43711 }
43712 return resultobj;
43713 fail:
43714 {
43715 if (temp4)
43716 delete arg4;
43717 }
43718 {
43719 if (temp5)
43720 delete arg5;
43721 }
43722 {
43723 if (temp6)
43724 delete arg6;
43725 }
43726 {
43727 if (temp11)
43728 delete arg11;
43729 }
43730 return NULL;
43731 }
43732
43733
43734 SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43735 PyObject *resultobj = 0;
43736 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43737 wxString result;
43738 void *argp1 = 0 ;
43739 int res1 = 0 ;
43740 PyObject *swig_obj[1] ;
43741
43742 if (!args) SWIG_fail;
43743 swig_obj[0] = args;
43744 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43745 if (!SWIG_IsOK(res1)) {
43746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
43747 }
43748 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43749 {
43750 PyThreadState* __tstate = wxPyBeginAllowThreads();
43751 result = ((wxFilePickerCtrl const *)arg1)->GetPath();
43752 wxPyEndAllowThreads(__tstate);
43753 if (PyErr_Occurred()) SWIG_fail;
43754 }
43755 {
43756 #if wxUSE_UNICODE
43757 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
43758 #else
43759 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
43760 #endif
43761 }
43762 return resultobj;
43763 fail:
43764 return NULL;
43765 }
43766
43767
43768 SWIGINTERN PyObject *_wrap_FilePickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43769 PyObject *resultobj = 0;
43770 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43771 wxString *arg2 = 0 ;
43772 void *argp1 = 0 ;
43773 int res1 = 0 ;
43774 bool temp2 = false ;
43775 PyObject * obj0 = 0 ;
43776 PyObject * obj1 = 0 ;
43777 char * kwnames[] = {
43778 (char *) "self",(char *) "str", NULL
43779 };
43780
43781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
43782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43783 if (!SWIG_IsOK(res1)) {
43784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
43785 }
43786 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43787 {
43788 arg2 = wxString_in_helper(obj1);
43789 if (arg2 == NULL) SWIG_fail;
43790 temp2 = true;
43791 }
43792 {
43793 PyThreadState* __tstate = wxPyBeginAllowThreads();
43794 (arg1)->SetPath((wxString const &)*arg2);
43795 wxPyEndAllowThreads(__tstate);
43796 if (PyErr_Occurred()) SWIG_fail;
43797 }
43798 resultobj = SWIG_Py_Void();
43799 {
43800 if (temp2)
43801 delete arg2;
43802 }
43803 return resultobj;
43804 fail:
43805 {
43806 if (temp2)
43807 delete arg2;
43808 }
43809 return NULL;
43810 }
43811
43812
43813 SWIGINTERN PyObject *_wrap_FilePickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43814 PyObject *resultobj = 0;
43815 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43816 wxString *arg2 = 0 ;
43817 bool result;
43818 void *argp1 = 0 ;
43819 int res1 = 0 ;
43820 bool temp2 = false ;
43821 PyObject * obj0 = 0 ;
43822 PyObject * obj1 = 0 ;
43823 char * kwnames[] = {
43824 (char *) "self",(char *) "path", NULL
43825 };
43826
43827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
43828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43829 if (!SWIG_IsOK(res1)) {
43830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
43831 }
43832 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43833 {
43834 arg2 = wxString_in_helper(obj1);
43835 if (arg2 == NULL) SWIG_fail;
43836 temp2 = true;
43837 }
43838 {
43839 PyThreadState* __tstate = wxPyBeginAllowThreads();
43840 result = (bool)((wxFilePickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
43841 wxPyEndAllowThreads(__tstate);
43842 if (PyErr_Occurred()) SWIG_fail;
43843 }
43844 {
43845 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43846 }
43847 {
43848 if (temp2)
43849 delete arg2;
43850 }
43851 return resultobj;
43852 fail:
43853 {
43854 if (temp2)
43855 delete arg2;
43856 }
43857 return NULL;
43858 }
43859
43860
43861 SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43862 PyObject *resultobj = 0;
43863 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43864 wxString result;
43865 void *argp1 = 0 ;
43866 int res1 = 0 ;
43867 PyObject *swig_obj[1] ;
43868
43869 if (!args) SWIG_fail;
43870 swig_obj[0] = args;
43871 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43872 if (!SWIG_IsOK(res1)) {
43873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
43874 }
43875 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43876 {
43877 PyThreadState* __tstate = wxPyBeginAllowThreads();
43878 result = ((wxFilePickerCtrl const *)arg1)->GetTextCtrlValue();
43879 wxPyEndAllowThreads(__tstate);
43880 if (PyErr_Occurred()) SWIG_fail;
43881 }
43882 {
43883 #if wxUSE_UNICODE
43884 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
43885 #else
43886 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
43887 #endif
43888 }
43889 return resultobj;
43890 fail:
43891 return NULL;
43892 }
43893
43894
43895 SWIGINTERN PyObject *FilePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43896 PyObject *obj;
43897 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43898 SWIG_TypeNewClientData(SWIGTYPE_p_wxFilePickerCtrl, SWIG_NewClientData(obj));
43899 return SWIG_Py_Void();
43900 }
43901
43902 SWIGINTERN PyObject *FilePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43903 return SWIG_Python_InitShadowInstance(args);
43904 }
43905
43906 SWIGINTERN PyObject *_wrap_new_DirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43907 PyObject *resultobj = 0;
43908 wxWindow *arg1 = (wxWindow *) 0 ;
43909 int arg2 = (int) -1 ;
43910 wxString const &arg3_defvalue = wxPyEmptyString ;
43911 wxString *arg3 = (wxString *) &arg3_defvalue ;
43912 wxString const &arg4_defvalue = wxPyDirSelectorPromptStr ;
43913 wxString *arg4 = (wxString *) &arg4_defvalue ;
43914 wxPoint const &arg5_defvalue = wxDefaultPosition ;
43915 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
43916 wxSize const &arg6_defvalue = wxDefaultSize ;
43917 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
43918 long arg7 = (long) wxDIRP_DEFAULT_STYLE ;
43919 wxValidator const &arg8_defvalue = wxDefaultValidator ;
43920 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
43921 wxString const &arg9_defvalue = wxPyDirPickerCtrlNameStr ;
43922 wxString *arg9 = (wxString *) &arg9_defvalue ;
43923 wxDirPickerCtrl *result = 0 ;
43924 void *argp1 = 0 ;
43925 int res1 = 0 ;
43926 int val2 ;
43927 int ecode2 = 0 ;
43928 bool temp3 = false ;
43929 bool temp4 = false ;
43930 wxPoint temp5 ;
43931 wxSize temp6 ;
43932 long val7 ;
43933 int ecode7 = 0 ;
43934 void *argp8 = 0 ;
43935 int res8 = 0 ;
43936 bool temp9 = false ;
43937 PyObject * obj0 = 0 ;
43938 PyObject * obj1 = 0 ;
43939 PyObject * obj2 = 0 ;
43940 PyObject * obj3 = 0 ;
43941 PyObject * obj4 = 0 ;
43942 PyObject * obj5 = 0 ;
43943 PyObject * obj6 = 0 ;
43944 PyObject * obj7 = 0 ;
43945 PyObject * obj8 = 0 ;
43946 char * kwnames[] = {
43947 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43948 };
43949
43950 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_DirPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
43951 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43952 if (!SWIG_IsOK(res1)) {
43953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43954 }
43955 arg1 = reinterpret_cast< wxWindow * >(argp1);
43956 if (obj1) {
43957 ecode2 = SWIG_AsVal_int(obj1, &val2);
43958 if (!SWIG_IsOK(ecode2)) {
43959 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirPickerCtrl" "', expected argument " "2"" of type '" "int""'");
43960 }
43961 arg2 = static_cast< int >(val2);
43962 }
43963 if (obj2) {
43964 {
43965 arg3 = wxString_in_helper(obj2);
43966 if (arg3 == NULL) SWIG_fail;
43967 temp3 = true;
43968 }
43969 }
43970 if (obj3) {
43971 {
43972 arg4 = wxString_in_helper(obj3);
43973 if (arg4 == NULL) SWIG_fail;
43974 temp4 = true;
43975 }
43976 }
43977 if (obj4) {
43978 {
43979 arg5 = &temp5;
43980 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
43981 }
43982 }
43983 if (obj5) {
43984 {
43985 arg6 = &temp6;
43986 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
43987 }
43988 }
43989 if (obj6) {
43990 ecode7 = SWIG_AsVal_long(obj6, &val7);
43991 if (!SWIG_IsOK(ecode7)) {
43992 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_DirPickerCtrl" "', expected argument " "7"" of type '" "long""'");
43993 }
43994 arg7 = static_cast< long >(val7);
43995 }
43996 if (obj7) {
43997 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
43998 if (!SWIG_IsOK(res8)) {
43999 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
44000 }
44001 if (!argp8) {
44002 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
44003 }
44004 arg8 = reinterpret_cast< wxValidator * >(argp8);
44005 }
44006 if (obj8) {
44007 {
44008 arg9 = wxString_in_helper(obj8);
44009 if (arg9 == NULL) SWIG_fail;
44010 temp9 = true;
44011 }
44012 }
44013 {
44014 if (!wxPyCheckForApp()) SWIG_fail;
44015 PyThreadState* __tstate = wxPyBeginAllowThreads();
44016 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);
44017 wxPyEndAllowThreads(__tstate);
44018 if (PyErr_Occurred()) SWIG_fail;
44019 }
44020 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_NEW | 0 );
44021 {
44022 if (temp3)
44023 delete arg3;
44024 }
44025 {
44026 if (temp4)
44027 delete arg4;
44028 }
44029 {
44030 if (temp9)
44031 delete arg9;
44032 }
44033 return resultobj;
44034 fail:
44035 {
44036 if (temp3)
44037 delete arg3;
44038 }
44039 {
44040 if (temp4)
44041 delete arg4;
44042 }
44043 {
44044 if (temp9)
44045 delete arg9;
44046 }
44047 return NULL;
44048 }
44049
44050
44051 SWIGINTERN PyObject *_wrap_new_PreDirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44052 PyObject *resultobj = 0;
44053 wxDirPickerCtrl *result = 0 ;
44054
44055 if (!SWIG_Python_UnpackTuple(args,"new_PreDirPickerCtrl",0,0,0)) SWIG_fail;
44056 {
44057 if (!wxPyCheckForApp()) SWIG_fail;
44058 PyThreadState* __tstate = wxPyBeginAllowThreads();
44059 result = (wxDirPickerCtrl *)new wxDirPickerCtrl();
44060 wxPyEndAllowThreads(__tstate);
44061 if (PyErr_Occurred()) SWIG_fail;
44062 }
44063 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_OWN | 0 );
44064 return resultobj;
44065 fail:
44066 return NULL;
44067 }
44068
44069
44070 SWIGINTERN PyObject *_wrap_DirPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44071 PyObject *resultobj = 0;
44072 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44073 wxWindow *arg2 = (wxWindow *) 0 ;
44074 int arg3 = (int) -1 ;
44075 wxString const &arg4_defvalue = wxPyEmptyString ;
44076 wxString *arg4 = (wxString *) &arg4_defvalue ;
44077 wxString const &arg5_defvalue = wxPyDirSelectorPromptStr ;
44078 wxString *arg5 = (wxString *) &arg5_defvalue ;
44079 wxPoint const &arg6_defvalue = wxDefaultPosition ;
44080 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
44081 wxSize const &arg7_defvalue = wxDefaultSize ;
44082 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
44083 long arg8 = (long) wxDIRP_DEFAULT_STYLE ;
44084 wxValidator const &arg9_defvalue = wxDefaultValidator ;
44085 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
44086 wxString const &arg10_defvalue = wxPyDirPickerCtrlNameStr ;
44087 wxString *arg10 = (wxString *) &arg10_defvalue ;
44088 bool result;
44089 void *argp1 = 0 ;
44090 int res1 = 0 ;
44091 void *argp2 = 0 ;
44092 int res2 = 0 ;
44093 int val3 ;
44094 int ecode3 = 0 ;
44095 bool temp4 = false ;
44096 bool temp5 = false ;
44097 wxPoint temp6 ;
44098 wxSize temp7 ;
44099 long val8 ;
44100 int ecode8 = 0 ;
44101 void *argp9 = 0 ;
44102 int res9 = 0 ;
44103 bool temp10 = false ;
44104 PyObject * obj0 = 0 ;
44105 PyObject * obj1 = 0 ;
44106 PyObject * obj2 = 0 ;
44107 PyObject * obj3 = 0 ;
44108 PyObject * obj4 = 0 ;
44109 PyObject * obj5 = 0 ;
44110 PyObject * obj6 = 0 ;
44111 PyObject * obj7 = 0 ;
44112 PyObject * obj8 = 0 ;
44113 PyObject * obj9 = 0 ;
44114 char * kwnames[] = {
44115 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44116 };
44117
44118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:DirPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
44119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44120 if (!SWIG_IsOK(res1)) {
44121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_Create" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44122 }
44123 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44124 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44125 if (!SWIG_IsOK(res2)) {
44126 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44127 }
44128 arg2 = reinterpret_cast< wxWindow * >(argp2);
44129 if (obj2) {
44130 ecode3 = SWIG_AsVal_int(obj2, &val3);
44131 if (!SWIG_IsOK(ecode3)) {
44132 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44133 }
44134 arg3 = static_cast< int >(val3);
44135 }
44136 if (obj3) {
44137 {
44138 arg4 = wxString_in_helper(obj3);
44139 if (arg4 == NULL) SWIG_fail;
44140 temp4 = true;
44141 }
44142 }
44143 if (obj4) {
44144 {
44145 arg5 = wxString_in_helper(obj4);
44146 if (arg5 == NULL) SWIG_fail;
44147 temp5 = true;
44148 }
44149 }
44150 if (obj5) {
44151 {
44152 arg6 = &temp6;
44153 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
44154 }
44155 }
44156 if (obj6) {
44157 {
44158 arg7 = &temp7;
44159 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
44160 }
44161 }
44162 if (obj7) {
44163 ecode8 = SWIG_AsVal_long(obj7, &val8);
44164 if (!SWIG_IsOK(ecode8)) {
44165 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DirPickerCtrl_Create" "', expected argument " "8"" of type '" "long""'");
44166 }
44167 arg8 = static_cast< long >(val8);
44168 }
44169 if (obj8) {
44170 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
44171 if (!SWIG_IsOK(res9)) {
44172 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44173 }
44174 if (!argp9) {
44175 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44176 }
44177 arg9 = reinterpret_cast< wxValidator * >(argp9);
44178 }
44179 if (obj9) {
44180 {
44181 arg10 = wxString_in_helper(obj9);
44182 if (arg10 == NULL) SWIG_fail;
44183 temp10 = true;
44184 }
44185 }
44186 {
44187 PyThreadState* __tstate = wxPyBeginAllowThreads();
44188 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);
44189 wxPyEndAllowThreads(__tstate);
44190 if (PyErr_Occurred()) SWIG_fail;
44191 }
44192 {
44193 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44194 }
44195 {
44196 if (temp4)
44197 delete arg4;
44198 }
44199 {
44200 if (temp5)
44201 delete arg5;
44202 }
44203 {
44204 if (temp10)
44205 delete arg10;
44206 }
44207 return resultobj;
44208 fail:
44209 {
44210 if (temp4)
44211 delete arg4;
44212 }
44213 {
44214 if (temp5)
44215 delete arg5;
44216 }
44217 {
44218 if (temp10)
44219 delete arg10;
44220 }
44221 return NULL;
44222 }
44223
44224
44225 SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44226 PyObject *resultobj = 0;
44227 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44228 wxString result;
44229 void *argp1 = 0 ;
44230 int res1 = 0 ;
44231 PyObject *swig_obj[1] ;
44232
44233 if (!args) SWIG_fail;
44234 swig_obj[0] = args;
44235 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44236 if (!SWIG_IsOK(res1)) {
44237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44238 }
44239 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44240 {
44241 PyThreadState* __tstate = wxPyBeginAllowThreads();
44242 result = ((wxDirPickerCtrl const *)arg1)->GetPath();
44243 wxPyEndAllowThreads(__tstate);
44244 if (PyErr_Occurred()) SWIG_fail;
44245 }
44246 {
44247 #if wxUSE_UNICODE
44248 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44249 #else
44250 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44251 #endif
44252 }
44253 return resultobj;
44254 fail:
44255 return NULL;
44256 }
44257
44258
44259 SWIGINTERN PyObject *_wrap_DirPickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44260 PyObject *resultobj = 0;
44261 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44262 wxString *arg2 = 0 ;
44263 void *argp1 = 0 ;
44264 int res1 = 0 ;
44265 bool temp2 = false ;
44266 PyObject * obj0 = 0 ;
44267 PyObject * obj1 = 0 ;
44268 char * kwnames[] = {
44269 (char *) "self",(char *) "str", NULL
44270 };
44271
44272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44274 if (!SWIG_IsOK(res1)) {
44275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44276 }
44277 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44278 {
44279 arg2 = wxString_in_helper(obj1);
44280 if (arg2 == NULL) SWIG_fail;
44281 temp2 = true;
44282 }
44283 {
44284 PyThreadState* __tstate = wxPyBeginAllowThreads();
44285 (arg1)->SetPath((wxString const &)*arg2);
44286 wxPyEndAllowThreads(__tstate);
44287 if (PyErr_Occurred()) SWIG_fail;
44288 }
44289 resultobj = SWIG_Py_Void();
44290 {
44291 if (temp2)
44292 delete arg2;
44293 }
44294 return resultobj;
44295 fail:
44296 {
44297 if (temp2)
44298 delete arg2;
44299 }
44300 return NULL;
44301 }
44302
44303
44304 SWIGINTERN PyObject *_wrap_DirPickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44305 PyObject *resultobj = 0;
44306 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44307 wxString *arg2 = 0 ;
44308 bool result;
44309 void *argp1 = 0 ;
44310 int res1 = 0 ;
44311 bool temp2 = false ;
44312 PyObject * obj0 = 0 ;
44313 PyObject * obj1 = 0 ;
44314 char * kwnames[] = {
44315 (char *) "self",(char *) "path", NULL
44316 };
44317
44318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
44319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44320 if (!SWIG_IsOK(res1)) {
44321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44322 }
44323 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44324 {
44325 arg2 = wxString_in_helper(obj1);
44326 if (arg2 == NULL) SWIG_fail;
44327 temp2 = true;
44328 }
44329 {
44330 PyThreadState* __tstate = wxPyBeginAllowThreads();
44331 result = (bool)((wxDirPickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
44332 wxPyEndAllowThreads(__tstate);
44333 if (PyErr_Occurred()) SWIG_fail;
44334 }
44335 {
44336 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44337 }
44338 {
44339 if (temp2)
44340 delete arg2;
44341 }
44342 return resultobj;
44343 fail:
44344 {
44345 if (temp2)
44346 delete arg2;
44347 }
44348 return NULL;
44349 }
44350
44351
44352 SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44353 PyObject *resultobj = 0;
44354 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44355 wxString result;
44356 void *argp1 = 0 ;
44357 int res1 = 0 ;
44358 PyObject *swig_obj[1] ;
44359
44360 if (!args) SWIG_fail;
44361 swig_obj[0] = args;
44362 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44363 if (!SWIG_IsOK(res1)) {
44364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44365 }
44366 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44367 {
44368 PyThreadState* __tstate = wxPyBeginAllowThreads();
44369 result = ((wxDirPickerCtrl const *)arg1)->GetTextCtrlValue();
44370 wxPyEndAllowThreads(__tstate);
44371 if (PyErr_Occurred()) SWIG_fail;
44372 }
44373 {
44374 #if wxUSE_UNICODE
44375 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44376 #else
44377 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44378 #endif
44379 }
44380 return resultobj;
44381 fail:
44382 return NULL;
44383 }
44384
44385
44386 SWIGINTERN PyObject *DirPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44387 PyObject *obj;
44388 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44389 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirPickerCtrl, SWIG_NewClientData(obj));
44390 return SWIG_Py_Void();
44391 }
44392
44393 SWIGINTERN PyObject *DirPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44394 return SWIG_Python_InitShadowInstance(args);
44395 }
44396
44397 SWIGINTERN PyObject *_wrap_new_FileDirPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44398 PyObject *resultobj = 0;
44399 wxEventType arg1 ;
44400 wxObject *arg2 = (wxObject *) 0 ;
44401 int arg3 ;
44402 wxString *arg4 = 0 ;
44403 wxFileDirPickerEvent *result = 0 ;
44404 int val1 ;
44405 int ecode1 = 0 ;
44406 void *argp2 = 0 ;
44407 int res2 = 0 ;
44408 int val3 ;
44409 int ecode3 = 0 ;
44410 bool temp4 = false ;
44411 PyObject * obj0 = 0 ;
44412 PyObject * obj1 = 0 ;
44413 PyObject * obj2 = 0 ;
44414 PyObject * obj3 = 0 ;
44415 char * kwnames[] = {
44416 (char *) "type",(char *) "generator",(char *) "id",(char *) "path", NULL
44417 };
44418
44419 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileDirPickerEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
44420 ecode1 = SWIG_AsVal_int(obj0, &val1);
44421 if (!SWIG_IsOK(ecode1)) {
44422 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FileDirPickerEvent" "', expected argument " "1"" of type '" "wxEventType""'");
44423 }
44424 arg1 = static_cast< wxEventType >(val1);
44425 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxObject, 0 | 0 );
44426 if (!SWIG_IsOK(res2)) {
44427 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FileDirPickerEvent" "', expected argument " "2"" of type '" "wxObject *""'");
44428 }
44429 arg2 = reinterpret_cast< wxObject * >(argp2);
44430 ecode3 = SWIG_AsVal_int(obj2, &val3);
44431 if (!SWIG_IsOK(ecode3)) {
44432 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FileDirPickerEvent" "', expected argument " "3"" of type '" "int""'");
44433 }
44434 arg3 = static_cast< int >(val3);
44435 {
44436 arg4 = wxString_in_helper(obj3);
44437 if (arg4 == NULL) SWIG_fail;
44438 temp4 = true;
44439 }
44440 {
44441 PyThreadState* __tstate = wxPyBeginAllowThreads();
44442 result = (wxFileDirPickerEvent *)new wxFileDirPickerEvent(arg1,arg2,arg3,(wxString const &)*arg4);
44443 wxPyEndAllowThreads(__tstate);
44444 if (PyErr_Occurred()) SWIG_fail;
44445 }
44446 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileDirPickerEvent, SWIG_POINTER_NEW | 0 );
44447 {
44448 if (temp4)
44449 delete arg4;
44450 }
44451 return resultobj;
44452 fail:
44453 {
44454 if (temp4)
44455 delete arg4;
44456 }
44457 return NULL;
44458 }
44459
44460
44461 SWIGINTERN PyObject *_wrap_FileDirPickerEvent_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44462 PyObject *resultobj = 0;
44463 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
44464 wxString result;
44465 void *argp1 = 0 ;
44466 int res1 = 0 ;
44467 PyObject *swig_obj[1] ;
44468
44469 if (!args) SWIG_fail;
44470 swig_obj[0] = args;
44471 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
44472 if (!SWIG_IsOK(res1)) {
44473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_GetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent const *""'");
44474 }
44475 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
44476 {
44477 PyThreadState* __tstate = wxPyBeginAllowThreads();
44478 result = ((wxFileDirPickerEvent const *)arg1)->GetPath();
44479 wxPyEndAllowThreads(__tstate);
44480 if (PyErr_Occurred()) SWIG_fail;
44481 }
44482 {
44483 #if wxUSE_UNICODE
44484 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44485 #else
44486 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44487 #endif
44488 }
44489 return resultobj;
44490 fail:
44491 return NULL;
44492 }
44493
44494
44495 SWIGINTERN PyObject *_wrap_FileDirPickerEvent_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44496 PyObject *resultobj = 0;
44497 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
44498 wxString *arg2 = 0 ;
44499 void *argp1 = 0 ;
44500 int res1 = 0 ;
44501 bool temp2 = false ;
44502 PyObject * obj0 = 0 ;
44503 PyObject * obj1 = 0 ;
44504 char * kwnames[] = {
44505 (char *) "self",(char *) "p", NULL
44506 };
44507
44508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDirPickerEvent_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44509 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
44510 if (!SWIG_IsOK(res1)) {
44511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_SetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent *""'");
44512 }
44513 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
44514 {
44515 arg2 = wxString_in_helper(obj1);
44516 if (arg2 == NULL) SWIG_fail;
44517 temp2 = true;
44518 }
44519 {
44520 PyThreadState* __tstate = wxPyBeginAllowThreads();
44521 (arg1)->SetPath((wxString const &)*arg2);
44522 wxPyEndAllowThreads(__tstate);
44523 if (PyErr_Occurred()) SWIG_fail;
44524 }
44525 resultobj = SWIG_Py_Void();
44526 {
44527 if (temp2)
44528 delete arg2;
44529 }
44530 return resultobj;
44531 fail:
44532 {
44533 if (temp2)
44534 delete arg2;
44535 }
44536 return NULL;
44537 }
44538
44539
44540 SWIGINTERN PyObject *FileDirPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44541 PyObject *obj;
44542 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44543 SWIG_TypeNewClientData(SWIGTYPE_p_wxFileDirPickerEvent, SWIG_NewClientData(obj));
44544 return SWIG_Py_Void();
44545 }
44546
44547 SWIGINTERN PyObject *FileDirPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44548 return SWIG_Python_InitShadowInstance(args);
44549 }
44550
44551 SWIGINTERN int FontPickerCtrlNameStr_set(PyObject *) {
44552 SWIG_Error(SWIG_AttributeError,"Variable FontPickerCtrlNameStr is read-only.");
44553 return 1;
44554 }
44555
44556
44557 SWIGINTERN PyObject *FontPickerCtrlNameStr_get(void) {
44558 PyObject *pyobj = 0;
44559
44560 {
44561 #if wxUSE_UNICODE
44562 pyobj = PyUnicode_FromWideChar((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
44563 #else
44564 pyobj = PyString_FromStringAndSize((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
44565 #endif
44566 }
44567 return pyobj;
44568 }
44569
44570
44571 SWIGINTERN PyObject *_wrap_new_FontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44572 PyObject *resultobj = 0;
44573 wxWindow *arg1 = (wxWindow *) 0 ;
44574 int arg2 = (int) -1 ;
44575 wxFont const &arg3_defvalue = *wxNORMAL_FONT ;
44576 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
44577 wxPoint const &arg4_defvalue = wxDefaultPosition ;
44578 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
44579 wxSize const &arg5_defvalue = wxDefaultSize ;
44580 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
44581 long arg6 = (long) wxFNTP_DEFAULT_STYLE ;
44582 wxValidator const &arg7_defvalue = wxDefaultValidator ;
44583 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
44584 wxString const &arg8_defvalue = wxPyFontPickerCtrlNameStr ;
44585 wxString *arg8 = (wxString *) &arg8_defvalue ;
44586 wxFontPickerCtrl *result = 0 ;
44587 void *argp1 = 0 ;
44588 int res1 = 0 ;
44589 int val2 ;
44590 int ecode2 = 0 ;
44591 void *argp3 = 0 ;
44592 int res3 = 0 ;
44593 wxPoint temp4 ;
44594 wxSize temp5 ;
44595 long val6 ;
44596 int ecode6 = 0 ;
44597 void *argp7 = 0 ;
44598 int res7 = 0 ;
44599 bool temp8 = false ;
44600 PyObject * obj0 = 0 ;
44601 PyObject * obj1 = 0 ;
44602 PyObject * obj2 = 0 ;
44603 PyObject * obj3 = 0 ;
44604 PyObject * obj4 = 0 ;
44605 PyObject * obj5 = 0 ;
44606 PyObject * obj6 = 0 ;
44607 PyObject * obj7 = 0 ;
44608 char * kwnames[] = {
44609 (char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44610 };
44611
44612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_FontPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
44613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
44614 if (!SWIG_IsOK(res1)) {
44615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
44616 }
44617 arg1 = reinterpret_cast< wxWindow * >(argp1);
44618 if (obj1) {
44619 ecode2 = SWIG_AsVal_int(obj1, &val2);
44620 if (!SWIG_IsOK(ecode2)) {
44621 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerCtrl" "', expected argument " "2"" of type '" "int""'");
44622 }
44623 arg2 = static_cast< int >(val2);
44624 }
44625 if (obj2) {
44626 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
44627 if (!SWIG_IsOK(res3)) {
44628 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
44629 }
44630 if (!argp3) {
44631 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
44632 }
44633 arg3 = reinterpret_cast< wxFont * >(argp3);
44634 }
44635 if (obj3) {
44636 {
44637 arg4 = &temp4;
44638 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
44639 }
44640 }
44641 if (obj4) {
44642 {
44643 arg5 = &temp5;
44644 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
44645 }
44646 }
44647 if (obj5) {
44648 ecode6 = SWIG_AsVal_long(obj5, &val6);
44649 if (!SWIG_IsOK(ecode6)) {
44650 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FontPickerCtrl" "', expected argument " "6"" of type '" "long""'");
44651 }
44652 arg6 = static_cast< long >(val6);
44653 }
44654 if (obj6) {
44655 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
44656 if (!SWIG_IsOK(res7)) {
44657 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
44658 }
44659 if (!argp7) {
44660 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
44661 }
44662 arg7 = reinterpret_cast< wxValidator * >(argp7);
44663 }
44664 if (obj7) {
44665 {
44666 arg8 = wxString_in_helper(obj7);
44667 if (arg8 == NULL) SWIG_fail;
44668 temp8 = true;
44669 }
44670 }
44671 {
44672 if (!wxPyCheckForApp()) SWIG_fail;
44673 PyThreadState* __tstate = wxPyBeginAllowThreads();
44674 result = (wxFontPickerCtrl *)new wxFontPickerCtrl(arg1,arg2,(wxFont const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
44675 wxPyEndAllowThreads(__tstate);
44676 if (PyErr_Occurred()) SWIG_fail;
44677 }
44678 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_NEW | 0 );
44679 {
44680 if (temp8)
44681 delete arg8;
44682 }
44683 return resultobj;
44684 fail:
44685 {
44686 if (temp8)
44687 delete arg8;
44688 }
44689 return NULL;
44690 }
44691
44692
44693 SWIGINTERN PyObject *_wrap_new_PreFontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44694 PyObject *resultobj = 0;
44695 wxFontPickerCtrl *result = 0 ;
44696
44697 if (!SWIG_Python_UnpackTuple(args,"new_PreFontPickerCtrl",0,0,0)) SWIG_fail;
44698 {
44699 if (!wxPyCheckForApp()) SWIG_fail;
44700 PyThreadState* __tstate = wxPyBeginAllowThreads();
44701 result = (wxFontPickerCtrl *)new wxFontPickerCtrl();
44702 wxPyEndAllowThreads(__tstate);
44703 if (PyErr_Occurred()) SWIG_fail;
44704 }
44705 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_OWN | 0 );
44706 return resultobj;
44707 fail:
44708 return NULL;
44709 }
44710
44711
44712 SWIGINTERN PyObject *_wrap_FontPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44713 PyObject *resultobj = 0;
44714 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44715 wxWindow *arg2 = (wxWindow *) 0 ;
44716 int arg3 = (int) -1 ;
44717 wxFont const &arg4_defvalue = *wxNORMAL_FONT ;
44718 wxFont *arg4 = (wxFont *) &arg4_defvalue ;
44719 wxPoint const &arg5_defvalue = wxDefaultPosition ;
44720 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
44721 wxSize const &arg6_defvalue = wxDefaultSize ;
44722 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
44723 long arg7 = (long) wxFNTP_DEFAULT_STYLE ;
44724 wxValidator const &arg8_defvalue = wxDefaultValidator ;
44725 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
44726 wxString const &arg9_defvalue = wxPyFontPickerCtrlNameStr ;
44727 wxString *arg9 = (wxString *) &arg9_defvalue ;
44728 bool result;
44729 void *argp1 = 0 ;
44730 int res1 = 0 ;
44731 void *argp2 = 0 ;
44732 int res2 = 0 ;
44733 int val3 ;
44734 int ecode3 = 0 ;
44735 void *argp4 = 0 ;
44736 int res4 = 0 ;
44737 wxPoint temp5 ;
44738 wxSize temp6 ;
44739 long val7 ;
44740 int ecode7 = 0 ;
44741 void *argp8 = 0 ;
44742 int res8 = 0 ;
44743 bool temp9 = false ;
44744 PyObject * obj0 = 0 ;
44745 PyObject * obj1 = 0 ;
44746 PyObject * obj2 = 0 ;
44747 PyObject * obj3 = 0 ;
44748 PyObject * obj4 = 0 ;
44749 PyObject * obj5 = 0 ;
44750 PyObject * obj6 = 0 ;
44751 PyObject * obj7 = 0 ;
44752 PyObject * obj8 = 0 ;
44753 char * kwnames[] = {
44754 (char *) "self",(char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44755 };
44756
44757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:FontPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
44758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
44759 if (!SWIG_IsOK(res1)) {
44760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_Create" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
44761 }
44762 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
44763 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44764 if (!SWIG_IsOK(res2)) {
44765 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44766 }
44767 arg2 = reinterpret_cast< wxWindow * >(argp2);
44768 if (obj2) {
44769 ecode3 = SWIG_AsVal_int(obj2, &val3);
44770 if (!SWIG_IsOK(ecode3)) {
44771 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44772 }
44773 arg3 = static_cast< int >(val3);
44774 }
44775 if (obj3) {
44776 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxFont, 0 | 0);
44777 if (!SWIG_IsOK(res4)) {
44778 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
44779 }
44780 if (!argp4) {
44781 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
44782 }
44783 arg4 = reinterpret_cast< wxFont * >(argp4);
44784 }
44785 if (obj4) {
44786 {
44787 arg5 = &temp5;
44788 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
44789 }
44790 }
44791 if (obj5) {
44792 {
44793 arg6 = &temp6;
44794 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
44795 }
44796 }
44797 if (obj6) {
44798 ecode7 = SWIG_AsVal_long(obj6, &val7);
44799 if (!SWIG_IsOK(ecode7)) {
44800 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "FontPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
44801 }
44802 arg7 = static_cast< long >(val7);
44803 }
44804 if (obj7) {
44805 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
44806 if (!SWIG_IsOK(res8)) {
44807 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
44808 }
44809 if (!argp8) {
44810 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
44811 }
44812 arg8 = reinterpret_cast< wxValidator * >(argp8);
44813 }
44814 if (obj8) {
44815 {
44816 arg9 = wxString_in_helper(obj8);
44817 if (arg9 == NULL) SWIG_fail;
44818 temp9 = true;
44819 }
44820 }
44821 {
44822 PyThreadState* __tstate = wxPyBeginAllowThreads();
44823 result = (bool)(arg1)->Create(arg2,arg3,(wxFont const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
44824 wxPyEndAllowThreads(__tstate);
44825 if (PyErr_Occurred()) SWIG_fail;
44826 }
44827 {
44828 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44829 }
44830 {
44831 if (temp9)
44832 delete arg9;
44833 }
44834 return resultobj;
44835 fail:
44836 {
44837 if (temp9)
44838 delete arg9;
44839 }
44840 return NULL;
44841 }
44842
44843
44844 SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44845 PyObject *resultobj = 0;
44846 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44847 wxFont result;
44848 void *argp1 = 0 ;
44849 int res1 = 0 ;
44850 PyObject *swig_obj[1] ;
44851
44852 if (!args) SWIG_fail;
44853 swig_obj[0] = args;
44854 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
44855 if (!SWIG_IsOK(res1)) {
44856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
44857 }
44858 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
44859 {
44860 PyThreadState* __tstate = wxPyBeginAllowThreads();
44861 result = ((wxFontPickerCtrl const *)arg1)->GetSelectedFont();
44862 wxPyEndAllowThreads(__tstate);
44863 if (PyErr_Occurred()) SWIG_fail;
44864 }
44865 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
44866 return resultobj;
44867 fail:
44868 return NULL;
44869 }
44870
44871
44872 SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44873 PyObject *resultobj = 0;
44874 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44875 wxFont *arg2 = 0 ;
44876 void *argp1 = 0 ;
44877 int res1 = 0 ;
44878 void *argp2 = 0 ;
44879 int res2 = 0 ;
44880 PyObject * obj0 = 0 ;
44881 PyObject * obj1 = 0 ;
44882 char * kwnames[] = {
44883 (char *) "self",(char *) "f", NULL
44884 };
44885
44886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetSelectedFont",kwnames,&obj0,&obj1)) SWIG_fail;
44887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
44888 if (!SWIG_IsOK(res1)) {
44889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
44890 }
44891 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
44892 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
44893 if (!SWIG_IsOK(res2)) {
44894 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
44895 }
44896 if (!argp2) {
44897 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
44898 }
44899 arg2 = reinterpret_cast< wxFont * >(argp2);
44900 {
44901 PyThreadState* __tstate = wxPyBeginAllowThreads();
44902 (arg1)->SetSelectedFont((wxFont const &)*arg2);
44903 wxPyEndAllowThreads(__tstate);
44904 if (PyErr_Occurred()) SWIG_fail;
44905 }
44906 resultobj = SWIG_Py_Void();
44907 return resultobj;
44908 fail:
44909 return NULL;
44910 }
44911
44912
44913 SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44914 PyObject *resultobj = 0;
44915 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44916 unsigned int arg2 ;
44917 void *argp1 = 0 ;
44918 int res1 = 0 ;
44919 unsigned int val2 ;
44920 int ecode2 = 0 ;
44921 PyObject * obj0 = 0 ;
44922 PyObject * obj1 = 0 ;
44923 char * kwnames[] = {
44924 (char *) "self",(char *) "max", NULL
44925 };
44926
44927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetMaxPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
44928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
44929 if (!SWIG_IsOK(res1)) {
44930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
44931 }
44932 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
44933 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
44934 if (!SWIG_IsOK(ecode2)) {
44935 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "2"" of type '" "unsigned int""'");
44936 }
44937 arg2 = static_cast< unsigned int >(val2);
44938 {
44939 PyThreadState* __tstate = wxPyBeginAllowThreads();
44940 (arg1)->SetMaxPointSize(arg2);
44941 wxPyEndAllowThreads(__tstate);
44942 if (PyErr_Occurred()) SWIG_fail;
44943 }
44944 resultobj = SWIG_Py_Void();
44945 return resultobj;
44946 fail:
44947 return NULL;
44948 }
44949
44950
44951 SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44952 PyObject *resultobj = 0;
44953 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44954 unsigned int result;
44955 void *argp1 = 0 ;
44956 int res1 = 0 ;
44957 PyObject *swig_obj[1] ;
44958
44959 if (!args) SWIG_fail;
44960 swig_obj[0] = args;
44961 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
44962 if (!SWIG_IsOK(res1)) {
44963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
44964 }
44965 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
44966 {
44967 PyThreadState* __tstate = wxPyBeginAllowThreads();
44968 result = (unsigned int)((wxFontPickerCtrl const *)arg1)->GetMaxPointSize();
44969 wxPyEndAllowThreads(__tstate);
44970 if (PyErr_Occurred()) SWIG_fail;
44971 }
44972 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
44973 return resultobj;
44974 fail:
44975 return NULL;
44976 }
44977
44978
44979 SWIGINTERN PyObject *FontPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44980 PyObject *obj;
44981 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44982 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerCtrl, SWIG_NewClientData(obj));
44983 return SWIG_Py_Void();
44984 }
44985
44986 SWIGINTERN PyObject *FontPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44987 return SWIG_Python_InitShadowInstance(args);
44988 }
44989
44990 SWIGINTERN PyObject *_wrap_new_FontPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44991 PyObject *resultobj = 0;
44992 wxObject *arg1 = (wxObject *) 0 ;
44993 int arg2 ;
44994 wxFont *arg3 = 0 ;
44995 wxFontPickerEvent *result = 0 ;
44996 void *argp1 = 0 ;
44997 int res1 = 0 ;
44998 int val2 ;
44999 int ecode2 = 0 ;
45000 void *argp3 = 0 ;
45001 int res3 = 0 ;
45002 PyObject * obj0 = 0 ;
45003 PyObject * obj1 = 0 ;
45004 PyObject * obj2 = 0 ;
45005 char * kwnames[] = {
45006 (char *) "generator",(char *) "id",(char *) "f", NULL
45007 };
45008
45009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_FontPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
45010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
45011 if (!SWIG_IsOK(res1)) {
45012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
45013 }
45014 arg1 = reinterpret_cast< wxObject * >(argp1);
45015 ecode2 = SWIG_AsVal_int(obj1, &val2);
45016 if (!SWIG_IsOK(ecode2)) {
45017 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerEvent" "', expected argument " "2"" of type '" "int""'");
45018 }
45019 arg2 = static_cast< int >(val2);
45020 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
45021 if (!SWIG_IsOK(res3)) {
45022 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45023 }
45024 if (!argp3) {
45025 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45026 }
45027 arg3 = reinterpret_cast< wxFont * >(argp3);
45028 {
45029 PyThreadState* __tstate = wxPyBeginAllowThreads();
45030 result = (wxFontPickerEvent *)new wxFontPickerEvent(arg1,arg2,(wxFont const &)*arg3);
45031 wxPyEndAllowThreads(__tstate);
45032 if (PyErr_Occurred()) SWIG_fail;
45033 }
45034 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerEvent, SWIG_POINTER_NEW | 0 );
45035 return resultobj;
45036 fail:
45037 return NULL;
45038 }
45039
45040
45041 SWIGINTERN PyObject *_wrap_FontPickerEvent_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45042 PyObject *resultobj = 0;
45043 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45044 wxFont result;
45045 void *argp1 = 0 ;
45046 int res1 = 0 ;
45047 PyObject *swig_obj[1] ;
45048
45049 if (!args) SWIG_fail;
45050 swig_obj[0] = args;
45051 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45052 if (!SWIG_IsOK(res1)) {
45053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_GetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent const *""'");
45054 }
45055 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45056 {
45057 PyThreadState* __tstate = wxPyBeginAllowThreads();
45058 result = ((wxFontPickerEvent const *)arg1)->GetFont();
45059 wxPyEndAllowThreads(__tstate);
45060 if (PyErr_Occurred()) SWIG_fail;
45061 }
45062 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
45063 return resultobj;
45064 fail:
45065 return NULL;
45066 }
45067
45068
45069 SWIGINTERN PyObject *_wrap_FontPickerEvent_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45070 PyObject *resultobj = 0;
45071 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45072 wxFont *arg2 = 0 ;
45073 void *argp1 = 0 ;
45074 int res1 = 0 ;
45075 void *argp2 = 0 ;
45076 int res2 = 0 ;
45077 PyObject * obj0 = 0 ;
45078 PyObject * obj1 = 0 ;
45079 char * kwnames[] = {
45080 (char *) "self",(char *) "c", NULL
45081 };
45082
45083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerEvent_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
45084 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45085 if (!SWIG_IsOK(res1)) {
45086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_SetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent *""'");
45087 }
45088 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45089 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
45090 if (!SWIG_IsOK(res2)) {
45091 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45092 }
45093 if (!argp2) {
45094 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45095 }
45096 arg2 = reinterpret_cast< wxFont * >(argp2);
45097 {
45098 PyThreadState* __tstate = wxPyBeginAllowThreads();
45099 (arg1)->SetFont((wxFont const &)*arg2);
45100 wxPyEndAllowThreads(__tstate);
45101 if (PyErr_Occurred()) SWIG_fail;
45102 }
45103 resultobj = SWIG_Py_Void();
45104 return resultobj;
45105 fail:
45106 return NULL;
45107 }
45108
45109
45110 SWIGINTERN PyObject *FontPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45111 PyObject *obj;
45112 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45113 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerEvent, SWIG_NewClientData(obj));
45114 return SWIG_Py_Void();
45115 }
45116
45117 SWIGINTERN PyObject *FontPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45118 return SWIG_Python_InitShadowInstance(args);
45119 }
45120
45121 static PyMethodDef SwigMethods[] = {
45122 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL},
45123 { (char *)"new_PreButton", (PyCFunction)_wrap_new_PreButton, METH_NOARGS, NULL},
45124 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45125 { (char *)"Button_SetDefault", (PyCFunction)_wrap_Button_SetDefault, METH_O, NULL},
45126 { (char *)"Button_GetDefaultSize", (PyCFunction)_wrap_Button_GetDefaultSize, METH_NOARGS, NULL},
45127 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45128 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL},
45129 { (char *)"Button_swiginit", Button_swiginit, METH_VARARGS, NULL},
45130 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL},
45131 { (char *)"new_PreBitmapButton", (PyCFunction)_wrap_new_PreBitmapButton, METH_NOARGS, NULL},
45132 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45133 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction)_wrap_BitmapButton_GetBitmapLabel, METH_O, NULL},
45134 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction)_wrap_BitmapButton_GetBitmapDisabled, METH_O, NULL},
45135 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction)_wrap_BitmapButton_GetBitmapFocus, METH_O, NULL},
45136 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction)_wrap_BitmapButton_GetBitmapSelected, METH_O, NULL},
45137 { (char *)"BitmapButton_GetBitmapHover", (PyCFunction)_wrap_BitmapButton_GetBitmapHover, METH_O, NULL},
45138 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL},
45139 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL},
45140 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45141 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45142 { (char *)"BitmapButton_SetBitmapHover", (PyCFunction) _wrap_BitmapButton_SetBitmapHover, METH_VARARGS | METH_KEYWORDS, NULL},
45143 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
45144 { (char *)"BitmapButton_GetMarginX", (PyCFunction)_wrap_BitmapButton_GetMarginX, METH_O, NULL},
45145 { (char *)"BitmapButton_GetMarginY", (PyCFunction)_wrap_BitmapButton_GetMarginY, METH_O, NULL},
45146 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL},
45147 { (char *)"BitmapButton_swiginit", BitmapButton_swiginit, METH_VARARGS, NULL},
45148 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
45149 { (char *)"new_PreCheckBox", (PyCFunction)_wrap_new_PreCheckBox, METH_NOARGS, NULL},
45150 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45151 { (char *)"CheckBox_GetValue", (PyCFunction)_wrap_CheckBox_GetValue, METH_O, NULL},
45152 { (char *)"CheckBox_IsChecked", (PyCFunction)_wrap_CheckBox_IsChecked, METH_O, NULL},
45153 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45154 { (char *)"CheckBox_Get3StateValue", (PyCFunction)_wrap_CheckBox_Get3StateValue, METH_O, NULL},
45155 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL},
45156 { (char *)"CheckBox_Is3State", (PyCFunction)_wrap_CheckBox_Is3State, METH_O, NULL},
45157 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction)_wrap_CheckBox_Is3rdStateAllowedForUser, METH_O, NULL},
45158 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45159 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL},
45160 { (char *)"CheckBox_swiginit", CheckBox_swiginit, METH_VARARGS, NULL},
45161 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL},
45162 { (char *)"new_PreChoice", (PyCFunction)_wrap_new_PreChoice, METH_NOARGS, NULL},
45163 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45164 { (char *)"Choice_GetCurrentSelection", (PyCFunction)_wrap_Choice_GetCurrentSelection, METH_O, NULL},
45165 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45166 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL},
45167 { (char *)"Choice_swiginit", Choice_swiginit, METH_VARARGS, NULL},
45168 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL},
45169 { (char *)"new_PreComboBox", (PyCFunction)_wrap_new_PreComboBox, METH_NOARGS, NULL},
45170 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45171 { (char *)"ComboBox_GetValue", (PyCFunction)_wrap_ComboBox_GetValue, METH_O, NULL},
45172 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45173 { (char *)"ComboBox_Copy", (PyCFunction)_wrap_ComboBox_Copy, METH_O, NULL},
45174 { (char *)"ComboBox_Cut", (PyCFunction)_wrap_ComboBox_Cut, METH_O, NULL},
45175 { (char *)"ComboBox_Paste", (PyCFunction)_wrap_ComboBox_Paste, METH_O, NULL},
45176 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
45177 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction)_wrap_ComboBox_GetInsertionPoint, METH_O, NULL},
45178 { (char *)"ComboBox_GetLastPosition", (PyCFunction)_wrap_ComboBox_GetLastPosition, METH_O, NULL},
45179 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
45180 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL},
45181 { (char *)"ComboBox_GetCurrentSelection", (PyCFunction)_wrap_ComboBox_GetCurrentSelection, METH_O, NULL},
45182 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45183 { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
45184 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
45185 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction)_wrap_ComboBox_SetInsertionPointEnd, METH_O, NULL},
45186 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
45187 { (char *)"ComboBox_IsEditable", (PyCFunction)_wrap_ComboBox_IsEditable, METH_O, NULL},
45188 { (char *)"ComboBox_Undo", (PyCFunction)_wrap_ComboBox_Undo, METH_O, NULL},
45189 { (char *)"ComboBox_Redo", (PyCFunction)_wrap_ComboBox_Redo, METH_O, NULL},
45190 { (char *)"ComboBox_SelectAll", (PyCFunction)_wrap_ComboBox_SelectAll, METH_O, NULL},
45191 { (char *)"ComboBox_CanCopy", (PyCFunction)_wrap_ComboBox_CanCopy, METH_O, NULL},
45192 { (char *)"ComboBox_CanCut", (PyCFunction)_wrap_ComboBox_CanCut, METH_O, NULL},
45193 { (char *)"ComboBox_CanPaste", (PyCFunction)_wrap_ComboBox_CanPaste, METH_O, NULL},
45194 { (char *)"ComboBox_CanUndo", (PyCFunction)_wrap_ComboBox_CanUndo, METH_O, NULL},
45195 { (char *)"ComboBox_CanRedo", (PyCFunction)_wrap_ComboBox_CanRedo, METH_O, NULL},
45196 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45197 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL},
45198 { (char *)"ComboBox_swiginit", ComboBox_swiginit, METH_VARARGS, NULL},
45199 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL},
45200 { (char *)"new_PreGauge", (PyCFunction)_wrap_new_PreGauge, METH_NOARGS, NULL},
45201 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45202 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45203 { (char *)"Gauge_GetRange", (PyCFunction)_wrap_Gauge_GetRange, METH_O, NULL},
45204 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45205 { (char *)"Gauge_GetValue", (PyCFunction)_wrap_Gauge_GetValue, METH_O, NULL},
45206 { (char *)"Gauge_Pulse", (PyCFunction)_wrap_Gauge_Pulse, METH_O, NULL},
45207 { (char *)"Gauge_IsVertical", (PyCFunction)_wrap_Gauge_IsVertical, METH_O, NULL},
45208 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45209 { (char *)"Gauge_GetShadowWidth", (PyCFunction)_wrap_Gauge_GetShadowWidth, METH_O, NULL},
45210 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL},
45211 { (char *)"Gauge_GetBezelFace", (PyCFunction)_wrap_Gauge_GetBezelFace, METH_O, NULL},
45212 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45213 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL},
45214 { (char *)"Gauge_swiginit", Gauge_swiginit, METH_VARARGS, NULL},
45215 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL},
45216 { (char *)"new_PreStaticBox", (PyCFunction)_wrap_new_PreStaticBox, METH_NOARGS, NULL},
45217 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45218 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45219 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL},
45220 { (char *)"StaticBox_swiginit", StaticBox_swiginit, METH_VARARGS, NULL},
45221 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL},
45222 { (char *)"new_PreStaticLine", (PyCFunction)_wrap_new_PreStaticLine, METH_NOARGS, NULL},
45223 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45224 { (char *)"StaticLine_IsVertical", (PyCFunction)_wrap_StaticLine_IsVertical, METH_O, NULL},
45225 { (char *)"StaticLine_GetDefaultSize", (PyCFunction)_wrap_StaticLine_GetDefaultSize, METH_NOARGS, NULL},
45226 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45227 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL},
45228 { (char *)"StaticLine_swiginit", StaticLine_swiginit, METH_VARARGS, NULL},
45229 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL},
45230 { (char *)"new_PreStaticText", (PyCFunction)_wrap_new_PreStaticText, METH_NOARGS, NULL},
45231 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45232 { (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL},
45233 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45234 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL},
45235 { (char *)"StaticText_swiginit", StaticText_swiginit, METH_VARARGS, NULL},
45236 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45237 { (char *)"new_PreStaticBitmap", (PyCFunction)_wrap_new_PreStaticBitmap, METH_NOARGS, NULL},
45238 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45239 { (char *)"StaticBitmap_GetBitmap", (PyCFunction)_wrap_StaticBitmap_GetBitmap, METH_O, NULL},
45240 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45241 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
45242 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45243 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL},
45244 { (char *)"StaticBitmap_swiginit", StaticBitmap_swiginit, METH_VARARGS, NULL},
45245 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL},
45246 { (char *)"new_PreListBox", (PyCFunction)_wrap_new_PreListBox, METH_NOARGS, NULL},
45247 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45248 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
45249 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL},
45250 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL},
45251 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45252 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45253 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL},
45254 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL},
45255 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL},
45256 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45257 { (char *)"ListBox_GetSelections", (PyCFunction)_wrap_ListBox_GetSelections, METH_O, NULL},
45258 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL},
45259 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL},
45260 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45261 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45262 { (char *)"ListBox_IsSorted", (PyCFunction)_wrap_ListBox_IsSorted, METH_O, NULL},
45263 { (char *)"ListBox_HitTest", (PyCFunction) _wrap_ListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
45264 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45265 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45266 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
45267 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45268 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL},
45269 { (char *)"ListBox_swiginit", ListBox_swiginit, METH_VARARGS, NULL},
45270 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL},
45271 { (char *)"new_PreCheckListBox", (PyCFunction)_wrap_new_PreCheckListBox, METH_NOARGS, NULL},
45272 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45273 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL},
45274 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL},
45275 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL},
45276 { (char *)"CheckListBox_swiginit", CheckListBox_swiginit, METH_VARARGS, NULL},
45277 { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL},
45278 { (char *)"delete_TextAttr", (PyCFunction)_wrap_delete_TextAttr, METH_O, NULL},
45279 { (char *)"TextAttr_Init", (PyCFunction)_wrap_TextAttr_Init, METH_O, NULL},
45280 { (char *)"TextAttr_Merge", (PyCFunction) _wrap_TextAttr_Merge, METH_VARARGS | METH_KEYWORDS, NULL},
45281 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45282 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45283 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
45284 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL},
45285 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL},
45286 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL},
45287 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL},
45288 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
45289 { (char *)"TextAttr_HasTextColour", (PyCFunction)_wrap_TextAttr_HasTextColour, METH_O, NULL},
45290 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction)_wrap_TextAttr_HasBackgroundColour, METH_O, NULL},
45291 { (char *)"TextAttr_HasFont", (PyCFunction)_wrap_TextAttr_HasFont, METH_O, NULL},
45292 { (char *)"TextAttr_HasAlignment", (PyCFunction)_wrap_TextAttr_HasAlignment, METH_O, NULL},
45293 { (char *)"TextAttr_HasTabs", (PyCFunction)_wrap_TextAttr_HasTabs, METH_O, NULL},
45294 { (char *)"TextAttr_HasLeftIndent", (PyCFunction)_wrap_TextAttr_HasLeftIndent, METH_O, NULL},
45295 { (char *)"TextAttr_HasRightIndent", (PyCFunction)_wrap_TextAttr_HasRightIndent, METH_O, NULL},
45296 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL},
45297 { (char *)"TextAttr_GetTextColour", (PyCFunction)_wrap_TextAttr_GetTextColour, METH_O, NULL},
45298 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction)_wrap_TextAttr_GetBackgroundColour, METH_O, NULL},
45299 { (char *)"TextAttr_GetFont", (PyCFunction)_wrap_TextAttr_GetFont, METH_O, NULL},
45300 { (char *)"TextAttr_GetAlignment", (PyCFunction)_wrap_TextAttr_GetAlignment, METH_O, NULL},
45301 { (char *)"TextAttr_GetTabs", (PyCFunction)_wrap_TextAttr_GetTabs, METH_O, NULL},
45302 { (char *)"TextAttr_GetLeftIndent", (PyCFunction)_wrap_TextAttr_GetLeftIndent, METH_O, NULL},
45303 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction)_wrap_TextAttr_GetLeftSubIndent, METH_O, NULL},
45304 { (char *)"TextAttr_GetRightIndent", (PyCFunction)_wrap_TextAttr_GetRightIndent, METH_O, NULL},
45305 { (char *)"TextAttr_GetFlags", (PyCFunction)_wrap_TextAttr_GetFlags, METH_O, NULL},
45306 { (char *)"TextAttr_IsDefault", (PyCFunction)_wrap_TextAttr_IsDefault, METH_O, NULL},
45307 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL},
45308 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL},
45309 { (char *)"TextAttr_swiginit", TextAttr_swiginit, METH_VARARGS, NULL},
45310 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45311 { (char *)"new_PreTextCtrl", (PyCFunction)_wrap_new_PreTextCtrl, METH_NOARGS, NULL},
45312 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45313 { (char *)"TextCtrl_GetValue", (PyCFunction)_wrap_TextCtrl_GetValue, METH_O, NULL},
45314 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45315 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45316 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL},
45317 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL},
45318 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction)_wrap_TextCtrl_GetNumberOfLines, METH_O, NULL},
45319 { (char *)"TextCtrl_IsModified", (PyCFunction)_wrap_TextCtrl_IsModified, METH_O, NULL},
45320 { (char *)"TextCtrl_IsEditable", (PyCFunction)_wrap_TextCtrl_IsEditable, METH_O, NULL},
45321 { (char *)"TextCtrl_IsSingleLine", (PyCFunction)_wrap_TextCtrl_IsSingleLine, METH_O, NULL},
45322 { (char *)"TextCtrl_IsMultiLine", (PyCFunction)_wrap_TextCtrl_IsMultiLine, METH_O, NULL},
45323 { (char *)"TextCtrl_GetSelection", (PyCFunction)_wrap_TextCtrl_GetSelection, METH_O, NULL},
45324 { (char *)"TextCtrl_GetStringSelection", (PyCFunction)_wrap_TextCtrl_GetStringSelection, METH_O, NULL},
45325 { (char *)"TextCtrl_Clear", (PyCFunction)_wrap_TextCtrl_Clear, METH_O, NULL},
45326 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
45327 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
45328 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
45329 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
45330 { (char *)"TextCtrl_MarkDirty", (PyCFunction)_wrap_TextCtrl_MarkDirty, METH_O, NULL},
45331 { (char *)"TextCtrl_DiscardEdits", (PyCFunction)_wrap_TextCtrl_DiscardEdits, METH_O, NULL},
45332 { (char *)"TextCtrl_SetModified", (PyCFunction) _wrap_TextCtrl_SetModified, METH_VARARGS | METH_KEYWORDS, NULL},
45333 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL},
45334 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL},
45335 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL},
45336 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL},
45337 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45338 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45339 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45340 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction)_wrap_TextCtrl_GetDefaultStyle, METH_O, NULL},
45341 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45342 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL},
45343 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45344 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
45345 { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL},
45346 { (char *)"TextCtrl_Copy", (PyCFunction)_wrap_TextCtrl_Copy, METH_O, NULL},
45347 { (char *)"TextCtrl_Cut", (PyCFunction)_wrap_TextCtrl_Cut, METH_O, NULL},
45348 { (char *)"TextCtrl_Paste", (PyCFunction)_wrap_TextCtrl_Paste, METH_O, NULL},
45349 { (char *)"TextCtrl_CanCopy", (PyCFunction)_wrap_TextCtrl_CanCopy, METH_O, NULL},
45350 { (char *)"TextCtrl_CanCut", (PyCFunction)_wrap_TextCtrl_CanCut, METH_O, NULL},
45351 { (char *)"TextCtrl_CanPaste", (PyCFunction)_wrap_TextCtrl_CanPaste, METH_O, NULL},
45352 { (char *)"TextCtrl_Undo", (PyCFunction)_wrap_TextCtrl_Undo, METH_O, NULL},
45353 { (char *)"TextCtrl_Redo", (PyCFunction)_wrap_TextCtrl_Redo, METH_O, NULL},
45354 { (char *)"TextCtrl_CanUndo", (PyCFunction)_wrap_TextCtrl_CanUndo, METH_O, NULL},
45355 { (char *)"TextCtrl_CanRedo", (PyCFunction)_wrap_TextCtrl_CanRedo, METH_O, NULL},
45356 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
45357 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_TextCtrl_SetInsertionPointEnd, METH_O, NULL},
45358 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction)_wrap_TextCtrl_GetInsertionPoint, METH_O, NULL},
45359 { (char *)"TextCtrl_GetLastPosition", (PyCFunction)_wrap_TextCtrl_GetLastPosition, METH_O, NULL},
45360 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45361 { (char *)"TextCtrl_SelectAll", (PyCFunction)_wrap_TextCtrl_SelectAll, METH_O, NULL},
45362 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
45363 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL},
45364 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
45365 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45366 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL},
45367 { (char *)"TextCtrl_swiginit", TextCtrl_swiginit, METH_VARARGS, NULL},
45368 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45369 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction)_wrap_TextUrlEvent_GetMouseEvent, METH_O, NULL},
45370 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction)_wrap_TextUrlEvent_GetURLStart, METH_O, NULL},
45371 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction)_wrap_TextUrlEvent_GetURLEnd, METH_O, NULL},
45372 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL},
45373 { (char *)"TextUrlEvent_swiginit", TextUrlEvent_swiginit, METH_VARARGS, NULL},
45374 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL},
45375 { (char *)"new_PreScrollBar", (PyCFunction)_wrap_new_PreScrollBar, METH_NOARGS, NULL},
45376 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45377 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction)_wrap_ScrollBar_GetThumbPosition, METH_O, NULL},
45378 { (char *)"ScrollBar_GetThumbSize", (PyCFunction)_wrap_ScrollBar_GetThumbSize, METH_O, NULL},
45379 { (char *)"ScrollBar_GetPageSize", (PyCFunction)_wrap_ScrollBar_GetPageSize, METH_O, NULL},
45380 { (char *)"ScrollBar_GetRange", (PyCFunction)_wrap_ScrollBar_GetRange, METH_O, NULL},
45381 { (char *)"ScrollBar_IsVertical", (PyCFunction)_wrap_ScrollBar_IsVertical, METH_O, NULL},
45382 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45383 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45384 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL},
45385 { (char *)"ScrollBar_swiginit", ScrollBar_swiginit, METH_VARARGS, NULL},
45386 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL},
45387 { (char *)"new_PreSpinButton", (PyCFunction)_wrap_new_PreSpinButton, METH_NOARGS, NULL},
45388 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45389 { (char *)"SpinButton_GetValue", (PyCFunction)_wrap_SpinButton_GetValue, METH_O, NULL},
45390 { (char *)"SpinButton_GetMin", (PyCFunction)_wrap_SpinButton_GetMin, METH_O, NULL},
45391 { (char *)"SpinButton_GetMax", (PyCFunction)_wrap_SpinButton_GetMax, METH_O, NULL},
45392 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45393 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
45394 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
45395 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45396 { (char *)"SpinButton_IsVertical", (PyCFunction)_wrap_SpinButton_IsVertical, METH_O, NULL},
45397 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45398 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL},
45399 { (char *)"SpinButton_swiginit", SpinButton_swiginit, METH_VARARGS, NULL},
45400 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45401 { (char *)"new_PreSpinCtrl", (PyCFunction)_wrap_new_PreSpinCtrl, METH_NOARGS, NULL},
45402 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45403 { (char *)"SpinCtrl_GetValue", (PyCFunction)_wrap_SpinCtrl_GetValue, METH_O, NULL},
45404 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45405 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL},
45406 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45407 { (char *)"SpinCtrl_GetMin", (PyCFunction)_wrap_SpinCtrl_GetMin, METH_O, NULL},
45408 { (char *)"SpinCtrl_GetMax", (PyCFunction)_wrap_SpinCtrl_GetMax, METH_O, NULL},
45409 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45410 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45411 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL},
45412 { (char *)"SpinCtrl_swiginit", SpinCtrl_swiginit, METH_VARARGS, NULL},
45413 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45414 { (char *)"SpinEvent_GetPosition", (PyCFunction)_wrap_SpinEvent_GetPosition, METH_O, NULL},
45415 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45416 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL},
45417 { (char *)"SpinEvent_swiginit", SpinEvent_swiginit, METH_VARARGS, NULL},
45418 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL},
45419 { (char *)"new_PreRadioBox", (PyCFunction)_wrap_new_PreRadioBox, METH_NOARGS, NULL},
45420 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45421 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45422 { (char *)"RadioBox_GetSelection", (PyCFunction)_wrap_RadioBox_GetSelection, METH_O, NULL},
45423 { (char *)"RadioBox_GetStringSelection", (PyCFunction)_wrap_RadioBox_GetStringSelection, METH_O, NULL},
45424 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45425 { (char *)"RadioBox_GetCount", (PyCFunction)_wrap_RadioBox_GetCount, METH_O, NULL},
45426 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL},
45427 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
45428 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
45429 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL},
45430 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL},
45431 { (char *)"RadioBox_IsItemEnabled", (PyCFunction) _wrap_RadioBox_IsItemEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
45432 { (char *)"RadioBox_IsItemShown", (PyCFunction) _wrap_RadioBox_IsItemShown, METH_VARARGS | METH_KEYWORDS, NULL},
45433 { (char *)"RadioBox_GetColumnCount", (PyCFunction)_wrap_RadioBox_GetColumnCount, METH_O, NULL},
45434 { (char *)"RadioBox_GetRowCount", (PyCFunction)_wrap_RadioBox_GetRowCount, METH_O, NULL},
45435 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
45436 { (char *)"RadioBox_SetItemToolTip", (PyCFunction) _wrap_RadioBox_SetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
45437 { (char *)"RadioBox_GetItemToolTip", (PyCFunction) _wrap_RadioBox_GetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
45438 { (char *)"RadioBox_SetItemHelpText", (PyCFunction) _wrap_RadioBox_SetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
45439 { (char *)"RadioBox_GetItemHelpText", (PyCFunction) _wrap_RadioBox_GetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
45440 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45441 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL},
45442 { (char *)"RadioBox_swiginit", RadioBox_swiginit, METH_VARARGS, NULL},
45443 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL},
45444 { (char *)"new_PreRadioButton", (PyCFunction)_wrap_new_PreRadioButton, METH_NOARGS, NULL},
45445 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45446 { (char *)"RadioButton_GetValue", (PyCFunction)_wrap_RadioButton_GetValue, METH_O, NULL},
45447 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45448 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45449 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL},
45450 { (char *)"RadioButton_swiginit", RadioButton_swiginit, METH_VARARGS, NULL},
45451 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL},
45452 { (char *)"new_PreSlider", (PyCFunction)_wrap_new_PreSlider, METH_NOARGS, NULL},
45453 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45454 { (char *)"Slider_GetValue", (PyCFunction)_wrap_Slider_GetValue, METH_O, NULL},
45455 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45456 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45457 { (char *)"Slider_GetMin", (PyCFunction)_wrap_Slider_GetMin, METH_O, NULL},
45458 { (char *)"Slider_GetMax", (PyCFunction)_wrap_Slider_GetMax, METH_O, NULL},
45459 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
45460 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
45461 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL},
45462 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
45463 { (char *)"Slider_GetLineSize", (PyCFunction)_wrap_Slider_GetLineSize, METH_O, NULL},
45464 { (char *)"Slider_GetPageSize", (PyCFunction)_wrap_Slider_GetPageSize, METH_O, NULL},
45465 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL},
45466 { (char *)"Slider_GetThumbLength", (PyCFunction)_wrap_Slider_GetThumbLength, METH_O, NULL},
45467 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL},
45468 { (char *)"Slider_GetTickFreq", (PyCFunction)_wrap_Slider_GetTickFreq, METH_O, NULL},
45469 { (char *)"Slider_ClearTicks", (PyCFunction)_wrap_Slider_ClearTicks, METH_O, NULL},
45470 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL},
45471 { (char *)"Slider_ClearSel", (PyCFunction)_wrap_Slider_ClearSel, METH_O, NULL},
45472 { (char *)"Slider_GetSelEnd", (PyCFunction)_wrap_Slider_GetSelEnd, METH_O, NULL},
45473 { (char *)"Slider_GetSelStart", (PyCFunction)_wrap_Slider_GetSelStart, METH_O, NULL},
45474 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45475 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45476 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL},
45477 { (char *)"Slider_swiginit", Slider_swiginit, METH_VARARGS, NULL},
45478 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL},
45479 { (char *)"new_PreToggleButton", (PyCFunction)_wrap_new_PreToggleButton, METH_NOARGS, NULL},
45480 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45481 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45482 { (char *)"ToggleButton_GetValue", (PyCFunction)_wrap_ToggleButton_GetValue, METH_O, NULL},
45483 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45484 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL},
45485 { (char *)"ToggleButton_swiginit", ToggleButton_swiginit, METH_VARARGS, NULL},
45486 { (char *)"BookCtrlBase_GetPageCount", (PyCFunction)_wrap_BookCtrlBase_GetPageCount, METH_O, NULL},
45487 { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL},
45488 { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetCurrentPage, METH_O, NULL},
45489 { (char *)"BookCtrlBase_GetSelection", (PyCFunction)_wrap_BookCtrlBase_GetSelection, METH_O, NULL},
45490 { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
45491 { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
45492 { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45493 { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45494 { (char *)"BookCtrlBase_GetImageList", (PyCFunction)_wrap_BookCtrlBase_GetImageList, METH_O, NULL},
45495 { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
45496 { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
45497 { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
45498 { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL},
45499 { (char *)"BookCtrlBase_GetInternalBorder", (PyCFunction)_wrap_BookCtrlBase_GetInternalBorder, METH_O, NULL},
45500 { (char *)"BookCtrlBase_SetInternalBorder", (PyCFunction) _wrap_BookCtrlBase_SetInternalBorder, METH_VARARGS | METH_KEYWORDS, NULL},
45501 { (char *)"BookCtrlBase_IsVertical", (PyCFunction)_wrap_BookCtrlBase_IsVertical, METH_O, NULL},
45502 { (char *)"BookCtrlBase_SetControlMargin", (PyCFunction) _wrap_BookCtrlBase_SetControlMargin, METH_VARARGS | METH_KEYWORDS, NULL},
45503 { (char *)"BookCtrlBase_GetControlMargin", (PyCFunction)_wrap_BookCtrlBase_GetControlMargin, METH_O, NULL},
45504 { (char *)"BookCtrlBase_SetFitToCurrentPage", (PyCFunction) _wrap_BookCtrlBase_SetFitToCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL},
45505 { (char *)"BookCtrlBase_GetFitToCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetFitToCurrentPage, METH_O, NULL},
45506 { (char *)"BookCtrlBase_GetControlSizer", (PyCFunction)_wrap_BookCtrlBase_GetControlSizer, METH_O, NULL},
45507 { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL},
45508 { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL},
45509 { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction)_wrap_BookCtrlBase_DeleteAllPages, METH_O, NULL},
45510 { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL},
45511 { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL},
45512 { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45513 { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45514 { (char *)"BookCtrlBase_HitTest", (PyCFunction) _wrap_BookCtrlBase_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
45515 { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45516 { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL},
45517 { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45518 { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetSelection, METH_O, NULL},
45519 { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45520 { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetOldSelection, METH_O, NULL},
45521 { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45522 { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL},
45523 { (char *)"BookCtrlBaseEvent_swiginit", BookCtrlBaseEvent_swiginit, METH_VARARGS, NULL},
45524 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL},
45525 { (char *)"new_PreNotebook", (PyCFunction)_wrap_new_PreNotebook, METH_NOARGS, NULL},
45526 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45527 { (char *)"Notebook_GetRowCount", (PyCFunction)_wrap_Notebook_GetRowCount, METH_O, NULL},
45528 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL},
45529 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL},
45530 { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction)_wrap_Notebook_GetThemeBackgroundColour, METH_O, NULL},
45531 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45532 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL},
45533 { (char *)"Notebook_swiginit", Notebook_swiginit, METH_VARARGS, NULL},
45534 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45535 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL},
45536 { (char *)"NotebookEvent_swiginit", NotebookEvent_swiginit, METH_VARARGS, NULL},
45537 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL},
45538 { (char *)"new_PreListbook", (PyCFunction)_wrap_new_PreListbook, METH_NOARGS, NULL},
45539 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45540 { (char *)"Listbook_GetListView", (PyCFunction)_wrap_Listbook_GetListView, METH_O, NULL},
45541 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL},
45542 { (char *)"Listbook_swiginit", Listbook_swiginit, METH_VARARGS, NULL},
45543 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45544 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL},
45545 { (char *)"ListbookEvent_swiginit", ListbookEvent_swiginit, METH_VARARGS, NULL},
45546 { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL},
45547 { (char *)"new_PreChoicebook", (PyCFunction)_wrap_new_PreChoicebook, METH_NOARGS, NULL},
45548 { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45549 { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction)_wrap_Choicebook_GetChoiceCtrl, METH_O, NULL},
45550 { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL},
45551 { (char *)"Choicebook_swiginit", Choicebook_swiginit, METH_VARARGS, NULL},
45552 { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45553 { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL},
45554 { (char *)"ChoicebookEvent_swiginit", ChoicebookEvent_swiginit, METH_VARARGS, NULL},
45555 { (char *)"new_Treebook", (PyCFunction) _wrap_new_Treebook, METH_VARARGS | METH_KEYWORDS, NULL},
45556 { (char *)"new_PreTreebook", (PyCFunction)_wrap_new_PreTreebook, METH_NOARGS, NULL},
45557 { (char *)"Treebook_Create", (PyCFunction) _wrap_Treebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45558 { (char *)"Treebook_InsertSubPage", (PyCFunction) _wrap_Treebook_InsertSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
45559 { (char *)"Treebook_AddSubPage", (PyCFunction) _wrap_Treebook_AddSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
45560 { (char *)"Treebook_IsNodeExpanded", (PyCFunction) _wrap_Treebook_IsNodeExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
45561 { (char *)"Treebook_ExpandNode", (PyCFunction) _wrap_Treebook_ExpandNode, METH_VARARGS | METH_KEYWORDS, NULL},
45562 { (char *)"Treebook_CollapseNode", (PyCFunction) _wrap_Treebook_CollapseNode, METH_VARARGS | METH_KEYWORDS, NULL},
45563 { (char *)"Treebook_GetPageParent", (PyCFunction) _wrap_Treebook_GetPageParent, METH_VARARGS | METH_KEYWORDS, NULL},
45564 { (char *)"Treebook_GetTreeCtrl", (PyCFunction)_wrap_Treebook_GetTreeCtrl, METH_O, NULL},
45565 { (char *)"Treebook_swigregister", Treebook_swigregister, METH_VARARGS, NULL},
45566 { (char *)"Treebook_swiginit", Treebook_swiginit, METH_VARARGS, NULL},
45567 { (char *)"new_TreebookEvent", (PyCFunction) _wrap_new_TreebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45568 { (char *)"TreebookEvent_swigregister", TreebookEvent_swigregister, METH_VARARGS, NULL},
45569 { (char *)"TreebookEvent_swiginit", TreebookEvent_swiginit, METH_VARARGS, NULL},
45570 { (char *)"new_Toolbook", (PyCFunction) _wrap_new_Toolbook, METH_VARARGS | METH_KEYWORDS, NULL},
45571 { (char *)"new_PreToolbook", (PyCFunction)_wrap_new_PreToolbook, METH_NOARGS, NULL},
45572 { (char *)"Toolbook_Create", (PyCFunction) _wrap_Toolbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45573 { (char *)"Toolbook_GetToolBar", (PyCFunction)_wrap_Toolbook_GetToolBar, METH_O, NULL},
45574 { (char *)"Toolbook_Realize", (PyCFunction)_wrap_Toolbook_Realize, METH_O, NULL},
45575 { (char *)"Toolbook_swigregister", Toolbook_swigregister, METH_VARARGS, NULL},
45576 { (char *)"Toolbook_swiginit", Toolbook_swiginit, METH_VARARGS, NULL},
45577 { (char *)"new_ToolbookEvent", (PyCFunction) _wrap_new_ToolbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45578 { (char *)"ToolbookEvent_swigregister", ToolbookEvent_swigregister, METH_VARARGS, NULL},
45579 { (char *)"ToolbookEvent_swiginit", ToolbookEvent_swiginit, METH_VARARGS, NULL},
45580 { (char *)"ToolBarToolBase_GetId", (PyCFunction)_wrap_ToolBarToolBase_GetId, METH_O, NULL},
45581 { (char *)"ToolBarToolBase_GetControl", (PyCFunction)_wrap_ToolBarToolBase_GetControl, METH_O, NULL},
45582 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction)_wrap_ToolBarToolBase_GetToolBar, METH_O, NULL},
45583 { (char *)"ToolBarToolBase_IsButton", (PyCFunction)_wrap_ToolBarToolBase_IsButton, METH_O, NULL},
45584 { (char *)"ToolBarToolBase_IsControl", (PyCFunction)_wrap_ToolBarToolBase_IsControl, METH_O, NULL},
45585 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction)_wrap_ToolBarToolBase_IsSeparator, METH_O, NULL},
45586 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction)_wrap_ToolBarToolBase_GetStyle, METH_O, NULL},
45587 { (char *)"ToolBarToolBase_GetKind", (PyCFunction)_wrap_ToolBarToolBase_GetKind, METH_O, NULL},
45588 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction)_wrap_ToolBarToolBase_IsEnabled, METH_O, NULL},
45589 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction)_wrap_ToolBarToolBase_IsToggled, METH_O, NULL},
45590 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction)_wrap_ToolBarToolBase_CanBeToggled, METH_O, NULL},
45591 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetNormalBitmap, METH_O, NULL},
45592 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetDisabledBitmap, METH_O, NULL},
45593 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetBitmap, METH_O, NULL},
45594 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction)_wrap_ToolBarToolBase_GetLabel, METH_O, NULL},
45595 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction)_wrap_ToolBarToolBase_GetShortHelp, METH_O, NULL},
45596 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction)_wrap_ToolBarToolBase_GetLongHelp, METH_O, NULL},
45597 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
45598 { (char *)"ToolBarToolBase_Toggle", (PyCFunction)_wrap_ToolBarToolBase_Toggle, METH_O, NULL},
45599 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
45600 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45601 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45602 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45603 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45604 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45605 { (char *)"ToolBarToolBase_Detach", (PyCFunction)_wrap_ToolBarToolBase_Detach, METH_O, NULL},
45606 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL},
45607 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction)_wrap_ToolBarToolBase_GetClientData, METH_O, NULL},
45608 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
45609 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL},
45610 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL},
45611 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL},
45612 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
45613 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
45614 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL},
45615 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL},
45616 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL},
45617 { (char *)"ToolBarBase_AddSeparator", (PyCFunction)_wrap_ToolBarBase_AddSeparator, METH_O, NULL},
45618 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL},
45619 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL},
45620 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL},
45621 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL},
45622 { (char *)"ToolBarBase_ClearTools", (PyCFunction)_wrap_ToolBarBase_ClearTools, METH_O, NULL},
45623 { (char *)"ToolBarBase_Realize", (PyCFunction)_wrap_ToolBarBase_Realize, METH_O, NULL},
45624 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL},
45625 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL},
45626 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
45627 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
45628 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
45629 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL},
45630 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL},
45631 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
45632 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45633 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45634 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45635 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45636 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL},
45637 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
45638 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL},
45639 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL},
45640 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction)_wrap_ToolBarBase_GetToolMargins, METH_O, NULL},
45641 { (char *)"ToolBarBase_GetMargins", (PyCFunction)_wrap_ToolBarBase_GetMargins, METH_O, NULL},
45642 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction)_wrap_ToolBarBase_GetToolPacking, METH_O, NULL},
45643 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction)_wrap_ToolBarBase_GetToolSeparation, METH_O, NULL},
45644 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL},
45645 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL},
45646 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction)_wrap_ToolBarBase_GetMaxRows, METH_O, NULL},
45647 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction)_wrap_ToolBarBase_GetMaxCols, METH_O, NULL},
45648 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL},
45649 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction)_wrap_ToolBarBase_GetToolBitmapSize, METH_O, NULL},
45650 { (char *)"ToolBarBase_GetToolSize", (PyCFunction)_wrap_ToolBarBase_GetToolSize, METH_O, NULL},
45651 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45652 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL},
45653 { (char *)"ToolBarBase_IsVertical", (PyCFunction)_wrap_ToolBarBase_IsVertical, METH_O, NULL},
45654 { (char *)"ToolBarBase_GetToolsCount", (PyCFunction)_wrap_ToolBarBase_GetToolsCount, METH_O, NULL},
45655 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL},
45656 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL},
45657 { (char *)"new_PreToolBar", (PyCFunction)_wrap_new_PreToolBar, METH_NOARGS, NULL},
45658 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45659 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45660 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL},
45661 { (char *)"ToolBar_swiginit", ToolBar_swiginit, METH_VARARGS, NULL},
45662 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL},
45663 { (char *)"delete_ListItemAttr", (PyCFunction)_wrap_delete_ListItemAttr, METH_O, NULL},
45664 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45665 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45666 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
45667 { (char *)"ListItemAttr_HasTextColour", (PyCFunction)_wrap_ListItemAttr_HasTextColour, METH_O, NULL},
45668 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction)_wrap_ListItemAttr_HasBackgroundColour, METH_O, NULL},
45669 { (char *)"ListItemAttr_HasFont", (PyCFunction)_wrap_ListItemAttr_HasFont, METH_O, NULL},
45670 { (char *)"ListItemAttr_GetTextColour", (PyCFunction)_wrap_ListItemAttr_GetTextColour, METH_O, NULL},
45671 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction)_wrap_ListItemAttr_GetBackgroundColour, METH_O, NULL},
45672 { (char *)"ListItemAttr_GetFont", (PyCFunction)_wrap_ListItemAttr_GetFont, METH_O, NULL},
45673 { (char *)"ListItemAttr_AssignFrom", (PyCFunction) _wrap_ListItemAttr_AssignFrom, METH_VARARGS | METH_KEYWORDS, NULL},
45674 { (char *)"ListItemAttr_Destroy", (PyCFunction)_wrap_ListItemAttr_Destroy, METH_O, NULL},
45675 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL},
45676 { (char *)"ListItemAttr_swiginit", ListItemAttr_swiginit, METH_VARARGS, NULL},
45677 { (char *)"new_ListItem", (PyCFunction)_wrap_new_ListItem, METH_NOARGS, NULL},
45678 { (char *)"delete_ListItem", (PyCFunction)_wrap_delete_ListItem, METH_O, NULL},
45679 { (char *)"ListItem_Clear", (PyCFunction)_wrap_ListItem_Clear, METH_O, NULL},
45680 { (char *)"ListItem_ClearAttributes", (PyCFunction)_wrap_ListItem_ClearAttributes, METH_O, NULL},
45681 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
45682 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
45683 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45684 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
45685 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL},
45686 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
45687 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL},
45688 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
45689 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45690 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL},
45691 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45692 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45693 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
45694 { (char *)"ListItem_GetMask", (PyCFunction)_wrap_ListItem_GetMask, METH_O, NULL},
45695 { (char *)"ListItem_GetId", (PyCFunction)_wrap_ListItem_GetId, METH_O, NULL},
45696 { (char *)"ListItem_GetColumn", (PyCFunction)_wrap_ListItem_GetColumn, METH_O, NULL},
45697 { (char *)"ListItem_GetState", (PyCFunction)_wrap_ListItem_GetState, METH_O, NULL},
45698 { (char *)"ListItem_GetText", (PyCFunction)_wrap_ListItem_GetText, METH_O, NULL},
45699 { (char *)"ListItem_GetImage", (PyCFunction)_wrap_ListItem_GetImage, METH_O, NULL},
45700 { (char *)"ListItem_GetData", (PyCFunction)_wrap_ListItem_GetData, METH_O, NULL},
45701 { (char *)"ListItem_GetWidth", (PyCFunction)_wrap_ListItem_GetWidth, METH_O, NULL},
45702 { (char *)"ListItem_GetAlign", (PyCFunction)_wrap_ListItem_GetAlign, METH_O, NULL},
45703 { (char *)"ListItem_GetAttributes", (PyCFunction)_wrap_ListItem_GetAttributes, METH_O, NULL},
45704 { (char *)"ListItem_HasAttributes", (PyCFunction)_wrap_ListItem_HasAttributes, METH_O, NULL},
45705 { (char *)"ListItem_GetTextColour", (PyCFunction)_wrap_ListItem_GetTextColour, METH_O, NULL},
45706 { (char *)"ListItem_GetBackgroundColour", (PyCFunction)_wrap_ListItem_GetBackgroundColour, METH_O, NULL},
45707 { (char *)"ListItem_GetFont", (PyCFunction)_wrap_ListItem_GetFont, METH_O, NULL},
45708 { (char *)"ListItem_m_mask_set", _wrap_ListItem_m_mask_set, METH_VARARGS, NULL},
45709 { (char *)"ListItem_m_mask_get", (PyCFunction)_wrap_ListItem_m_mask_get, METH_O, NULL},
45710 { (char *)"ListItem_m_itemId_set", _wrap_ListItem_m_itemId_set, METH_VARARGS, NULL},
45711 { (char *)"ListItem_m_itemId_get", (PyCFunction)_wrap_ListItem_m_itemId_get, METH_O, NULL},
45712 { (char *)"ListItem_m_col_set", _wrap_ListItem_m_col_set, METH_VARARGS, NULL},
45713 { (char *)"ListItem_m_col_get", (PyCFunction)_wrap_ListItem_m_col_get, METH_O, NULL},
45714 { (char *)"ListItem_m_state_set", _wrap_ListItem_m_state_set, METH_VARARGS, NULL},
45715 { (char *)"ListItem_m_state_get", (PyCFunction)_wrap_ListItem_m_state_get, METH_O, NULL},
45716 { (char *)"ListItem_m_stateMask_set", _wrap_ListItem_m_stateMask_set, METH_VARARGS, NULL},
45717 { (char *)"ListItem_m_stateMask_get", (PyCFunction)_wrap_ListItem_m_stateMask_get, METH_O, NULL},
45718 { (char *)"ListItem_m_text_set", _wrap_ListItem_m_text_set, METH_VARARGS, NULL},
45719 { (char *)"ListItem_m_text_get", (PyCFunction)_wrap_ListItem_m_text_get, METH_O, NULL},
45720 { (char *)"ListItem_m_image_set", _wrap_ListItem_m_image_set, METH_VARARGS, NULL},
45721 { (char *)"ListItem_m_image_get", (PyCFunction)_wrap_ListItem_m_image_get, METH_O, NULL},
45722 { (char *)"ListItem_m_data_set", _wrap_ListItem_m_data_set, METH_VARARGS, NULL},
45723 { (char *)"ListItem_m_data_get", (PyCFunction)_wrap_ListItem_m_data_get, METH_O, NULL},
45724 { (char *)"ListItem_m_format_set", _wrap_ListItem_m_format_set, METH_VARARGS, NULL},
45725 { (char *)"ListItem_m_format_get", (PyCFunction)_wrap_ListItem_m_format_get, METH_O, NULL},
45726 { (char *)"ListItem_m_width_set", _wrap_ListItem_m_width_set, METH_VARARGS, NULL},
45727 { (char *)"ListItem_m_width_get", (PyCFunction)_wrap_ListItem_m_width_get, METH_O, NULL},
45728 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL},
45729 { (char *)"ListItem_swiginit", ListItem_swiginit, METH_VARARGS, NULL},
45730 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45731 { (char *)"ListEvent_m_code_set", _wrap_ListEvent_m_code_set, METH_VARARGS, NULL},
45732 { (char *)"ListEvent_m_code_get", (PyCFunction)_wrap_ListEvent_m_code_get, METH_O, NULL},
45733 { (char *)"ListEvent_m_oldItemIndex_set", _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS, NULL},
45734 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction)_wrap_ListEvent_m_oldItemIndex_get, METH_O, NULL},
45735 { (char *)"ListEvent_m_itemIndex_set", _wrap_ListEvent_m_itemIndex_set, METH_VARARGS, NULL},
45736 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction)_wrap_ListEvent_m_itemIndex_get, METH_O, NULL},
45737 { (char *)"ListEvent_m_col_set", _wrap_ListEvent_m_col_set, METH_VARARGS, NULL},
45738 { (char *)"ListEvent_m_col_get", (PyCFunction)_wrap_ListEvent_m_col_get, METH_O, NULL},
45739 { (char *)"ListEvent_m_pointDrag_set", _wrap_ListEvent_m_pointDrag_set, METH_VARARGS, NULL},
45740 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction)_wrap_ListEvent_m_pointDrag_get, METH_O, NULL},
45741 { (char *)"ListEvent_m_item_get", (PyCFunction)_wrap_ListEvent_m_item_get, METH_O, NULL},
45742 { (char *)"ListEvent_GetKeyCode", (PyCFunction)_wrap_ListEvent_GetKeyCode, METH_O, NULL},
45743 { (char *)"ListEvent_GetIndex", (PyCFunction)_wrap_ListEvent_GetIndex, METH_O, NULL},
45744 { (char *)"ListEvent_GetColumn", (PyCFunction)_wrap_ListEvent_GetColumn, METH_O, NULL},
45745 { (char *)"ListEvent_GetPoint", (PyCFunction)_wrap_ListEvent_GetPoint, METH_O, NULL},
45746 { (char *)"ListEvent_GetLabel", (PyCFunction)_wrap_ListEvent_GetLabel, METH_O, NULL},
45747 { (char *)"ListEvent_GetText", (PyCFunction)_wrap_ListEvent_GetText, METH_O, NULL},
45748 { (char *)"ListEvent_GetImage", (PyCFunction)_wrap_ListEvent_GetImage, METH_O, NULL},
45749 { (char *)"ListEvent_GetData", (PyCFunction)_wrap_ListEvent_GetData, METH_O, NULL},
45750 { (char *)"ListEvent_GetMask", (PyCFunction)_wrap_ListEvent_GetMask, METH_O, NULL},
45751 { (char *)"ListEvent_GetItem", (PyCFunction)_wrap_ListEvent_GetItem, METH_O, NULL},
45752 { (char *)"ListEvent_GetCacheFrom", (PyCFunction)_wrap_ListEvent_GetCacheFrom, METH_O, NULL},
45753 { (char *)"ListEvent_GetCacheTo", (PyCFunction)_wrap_ListEvent_GetCacheTo, METH_O, NULL},
45754 { (char *)"ListEvent_IsEditCancelled", (PyCFunction)_wrap_ListEvent_IsEditCancelled, METH_O, NULL},
45755 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
45756 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL},
45757 { (char *)"ListEvent_swiginit", ListEvent_swiginit, METH_VARARGS, NULL},
45758 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45759 { (char *)"new_PreListCtrl", (PyCFunction)_wrap_new_PreListCtrl, METH_NOARGS, NULL},
45760 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45761 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
45762 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45763 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45764 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45765 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45766 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction)_wrap_ListCtrl_GetCountPerPage, METH_O, NULL},
45767 { (char *)"ListCtrl_GetViewRect", (PyCFunction)_wrap_ListCtrl_GetViewRect, METH_O, NULL},
45768 { (char *)"ListCtrl_GetEditControl", (PyCFunction)_wrap_ListCtrl_GetEditControl, METH_O, NULL},
45769 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL},
45770 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
45771 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
45772 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
45773 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
45774 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
45775 { (char *)"ListCtrl_SetItemColumnImage", (PyCFunction) _wrap_ListCtrl_SetItemColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
45776 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
45777 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
45778 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45779 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45780 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45781 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL},
45782 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45783 { (char *)"ListCtrl_GetItemCount", (PyCFunction)_wrap_ListCtrl_GetItemCount, METH_O, NULL},
45784 { (char *)"ListCtrl_GetColumnCount", (PyCFunction)_wrap_ListCtrl_GetColumnCount, METH_O, NULL},
45785 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction)_wrap_ListCtrl_GetItemSpacing, METH_O, NULL},
45786 { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
45787 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction)_wrap_ListCtrl_GetSelectedItemCount, METH_O, NULL},
45788 { (char *)"ListCtrl_GetTextColour", (PyCFunction)_wrap_ListCtrl_GetTextColour, METH_O, NULL},
45789 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45790 { (char *)"ListCtrl_GetTopItem", (PyCFunction)_wrap_ListCtrl_GetTopItem, METH_O, NULL},
45791 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45792 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
45793 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45794 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45795 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45796 { (char *)"ListCtrl_InReportView", (PyCFunction)_wrap_ListCtrl_InReportView, METH_O, NULL},
45797 { (char *)"ListCtrl_IsVirtual", (PyCFunction)_wrap_ListCtrl_IsVirtual, METH_O, NULL},
45798 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL},
45799 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL},
45800 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL},
45801 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL},
45802 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction)_wrap_ListCtrl_DeleteAllItems, METH_O, NULL},
45803 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45804 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction)_wrap_ListCtrl_DeleteAllColumns, METH_O, NULL},
45805 { (char *)"ListCtrl_ClearAll", (PyCFunction)_wrap_ListCtrl_ClearAll, METH_O, NULL},
45806 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45807 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45808 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL},
45809 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45810 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL},
45811 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
45812 { (char *)"ListCtrl_HitTestSubItem", (PyCFunction) _wrap_ListCtrl_HitTestSubItem, METH_VARARGS | METH_KEYWORDS, NULL},
45813 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
45814 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
45815 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL},
45816 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
45817 { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL},
45818 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45819 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL},
45820 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL},
45821 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45822 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45823 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45824 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45825 { (char *)"ListCtrl_SetItemFont", (PyCFunction) _wrap_ListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
45826 { (char *)"ListCtrl_GetItemFont", (PyCFunction) _wrap_ListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
45827 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL},
45828 { (char *)"ListCtrl_GetMainWindow", (PyCFunction)_wrap_ListCtrl_GetMainWindow, METH_O, NULL},
45829 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45830 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL},
45831 { (char *)"ListCtrl_swiginit", ListCtrl_swiginit, METH_VARARGS, NULL},
45832 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL},
45833 { (char *)"new_PreListView", (PyCFunction)_wrap_new_PreListView, METH_NOARGS, NULL},
45834 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45835 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL},
45836 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL},
45837 { (char *)"ListView_GetFocusedItem", (PyCFunction)_wrap_ListView_GetFocusedItem, METH_O, NULL},
45838 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45839 { (char *)"ListView_GetFirstSelected", (PyCFunction)_wrap_ListView_GetFirstSelected, METH_O, NULL},
45840 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45841 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
45842 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
45843 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL},
45844 { (char *)"ListView_swiginit", ListView_swiginit, METH_VARARGS, NULL},
45845 { (char *)"new_TreeItemId", (PyCFunction)_wrap_new_TreeItemId, METH_NOARGS, NULL},
45846 { (char *)"delete_TreeItemId", (PyCFunction)_wrap_delete_TreeItemId, METH_O, NULL},
45847 { (char *)"TreeItemId_IsOk", (PyCFunction)_wrap_TreeItemId_IsOk, METH_O, NULL},
45848 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
45849 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
45850 { (char *)"TreeItemId_m_pItem_set", _wrap_TreeItemId_m_pItem_set, METH_VARARGS, NULL},
45851 { (char *)"TreeItemId_m_pItem_get", (PyCFunction)_wrap_TreeItemId_m_pItem_get, METH_O, NULL},
45852 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL},
45853 { (char *)"TreeItemId_swiginit", TreeItemId_swiginit, METH_VARARGS, NULL},
45854 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45855 { (char *)"delete_TreeItemData", (PyCFunction)_wrap_delete_TreeItemData, METH_O, NULL},
45856 { (char *)"TreeItemData_GetData", (PyCFunction)_wrap_TreeItemData_GetData, METH_O, NULL},
45857 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
45858 { (char *)"TreeItemData_GetId", (PyCFunction)_wrap_TreeItemData_GetId, METH_O, NULL},
45859 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
45860 { (char *)"TreeItemData_Destroy", (PyCFunction)_wrap_TreeItemData_Destroy, METH_O, NULL},
45861 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL},
45862 { (char *)"TreeItemData_swiginit", TreeItemData_swiginit, METH_VARARGS, NULL},
45863 { (char *)"new_TreeEvent", _wrap_new_TreeEvent, METH_VARARGS, NULL},
45864 { (char *)"TreeEvent_GetItem", (PyCFunction)_wrap_TreeEvent_GetItem, METH_O, NULL},
45865 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
45866 { (char *)"TreeEvent_GetOldItem", (PyCFunction)_wrap_TreeEvent_GetOldItem, METH_O, NULL},
45867 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL},
45868 { (char *)"TreeEvent_GetPoint", (PyCFunction)_wrap_TreeEvent_GetPoint, METH_O, NULL},
45869 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL},
45870 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction)_wrap_TreeEvent_GetKeyEvent, METH_O, NULL},
45871 { (char *)"TreeEvent_GetKeyCode", (PyCFunction)_wrap_TreeEvent_GetKeyCode, METH_O, NULL},
45872 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45873 { (char *)"TreeEvent_GetLabel", (PyCFunction)_wrap_TreeEvent_GetLabel, METH_O, NULL},
45874 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45875 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction)_wrap_TreeEvent_IsEditCancelled, METH_O, NULL},
45876 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
45877 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
45878 { (char *)"TreeEvent_GetToolTip", (PyCFunction)_wrap_TreeEvent_GetToolTip, METH_O, NULL},
45879 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL},
45880 { (char *)"TreeEvent_swiginit", TreeEvent_swiginit, METH_VARARGS, NULL},
45881 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45882 { (char *)"new_PreTreeCtrl", (PyCFunction)_wrap_new_PreTreeCtrl, METH_NOARGS, NULL},
45883 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45884 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
45885 { (char *)"TreeCtrl_GetCount", (PyCFunction)_wrap_TreeCtrl_GetCount, METH_O, NULL},
45886 { (char *)"TreeCtrl_GetIndent", (PyCFunction)_wrap_TreeCtrl_GetIndent, METH_O, NULL},
45887 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL},
45888 { (char *)"TreeCtrl_GetSpacing", (PyCFunction)_wrap_TreeCtrl_GetSpacing, METH_O, NULL},
45889 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
45890 { (char *)"TreeCtrl_GetImageList", (PyCFunction)_wrap_TreeCtrl_GetImageList, METH_O, NULL},
45891 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction)_wrap_TreeCtrl_GetStateImageList, METH_O, NULL},
45892 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45893 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45894 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45895 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45896 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
45897 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
45898 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45899 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
45900 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45901 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45902 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
45903 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
45904 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
45905 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45906 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
45907 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
45908 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL},
45909 { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL},
45910 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45911 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45912 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
45913 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45914 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
45915 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
45916 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45917 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL},
45918 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL},
45919 { (char *)"TreeCtrl_GetRootItem", (PyCFunction)_wrap_TreeCtrl_GetRootItem, METH_O, NULL},
45920 { (char *)"TreeCtrl_GetSelection", (PyCFunction)_wrap_TreeCtrl_GetSelection, METH_O, NULL},
45921 { (char *)"TreeCtrl_GetSelections", (PyCFunction)_wrap_TreeCtrl_GetSelections, METH_O, NULL},
45922 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL},
45923 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL},
45924 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL},
45925 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL},
45926 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL},
45927 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL},
45928 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction)_wrap_TreeCtrl_GetFirstVisibleItem, METH_O, NULL},
45929 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45930 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45931 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL},
45932 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL},
45933 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
45934 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL},
45935 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL},
45936 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
45937 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL},
45938 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction)_wrap_TreeCtrl_DeleteAllItems, METH_O, NULL},
45939 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL},
45940 { (char *)"TreeCtrl_ExpandAllChildren", (PyCFunction) _wrap_TreeCtrl_ExpandAllChildren, METH_VARARGS | METH_KEYWORDS, NULL},
45941 { (char *)"TreeCtrl_ExpandAll", (PyCFunction)_wrap_TreeCtrl_ExpandAll, METH_O, NULL},
45942 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
45943 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL},
45944 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL},
45945 { (char *)"TreeCtrl_Unselect", (PyCFunction)_wrap_TreeCtrl_Unselect, METH_O, NULL},
45946 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL},
45947 { (char *)"TreeCtrl_UnselectAll", (PyCFunction)_wrap_TreeCtrl_UnselectAll, METH_O, NULL},
45948 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL},
45949 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45950 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45951 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL},
45952 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45953 { (char *)"TreeCtrl_GetEditControl", (PyCFunction)_wrap_TreeCtrl_GetEditControl, METH_O, NULL},
45954 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL},
45955 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
45956 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL},
45957 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45958 { (char *)"TreeCtrl_SetQuickBestSize", (PyCFunction) _wrap_TreeCtrl_SetQuickBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
45959 { (char *)"TreeCtrl_GetQuickBestSize", (PyCFunction)_wrap_TreeCtrl_GetQuickBestSize, METH_O, NULL},
45960 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL},
45961 { (char *)"TreeCtrl_swiginit", TreeCtrl_swiginit, METH_VARARGS, NULL},
45962 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45963 { (char *)"new_PreGenericDirCtrl", (PyCFunction)_wrap_new_PreGenericDirCtrl, METH_NOARGS, NULL},
45964 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45965 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL},
45966 { (char *)"GenericDirCtrl_CollapsePath", (PyCFunction) _wrap_GenericDirCtrl_CollapsePath, METH_VARARGS | METH_KEYWORDS, NULL},
45967 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction)_wrap_GenericDirCtrl_GetDefaultPath, METH_O, NULL},
45968 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL},
45969 { (char *)"GenericDirCtrl_GetPath", (PyCFunction)_wrap_GenericDirCtrl_GetPath, METH_O, NULL},
45970 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction)_wrap_GenericDirCtrl_GetFilePath, METH_O, NULL},
45971 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
45972 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL},
45973 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction)_wrap_GenericDirCtrl_GetShowHidden, METH_O, NULL},
45974 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction)_wrap_GenericDirCtrl_GetFilter, METH_O, NULL},
45975 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL},
45976 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction)_wrap_GenericDirCtrl_GetFilterIndex, METH_O, NULL},
45977 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL},
45978 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction)_wrap_GenericDirCtrl_GetRootId, METH_O, NULL},
45979 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetTreeCtrl, METH_O, NULL},
45980 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetFilterListCtrl, METH_O, NULL},
45981 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL},
45982 { (char *)"GenericDirCtrl_DoResize", (PyCFunction)_wrap_GenericDirCtrl_DoResize, METH_O, NULL},
45983 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction)_wrap_GenericDirCtrl_ReCreateTree, METH_O, NULL},
45984 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL},
45985 { (char *)"GenericDirCtrl_swiginit", GenericDirCtrl_swiginit, METH_VARARGS, NULL},
45986 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45987 { (char *)"new_PreDirFilterListCtrl", (PyCFunction)_wrap_new_PreDirFilterListCtrl, METH_NOARGS, NULL},
45988 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45989 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL},
45990 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL},
45991 { (char *)"DirFilterListCtrl_swiginit", DirFilterListCtrl_swiginit, METH_VARARGS, NULL},
45992 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL},
45993 { (char *)"new_PrePyControl", (PyCFunction)_wrap_new_PrePyControl, METH_NOARGS, NULL},
45994 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
45995 { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
45996 { (char *)"PyControl_DoEraseBackground", (PyCFunction) _wrap_PyControl_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL},
45997 { (char *)"PyControl_DoMoveWindow", (PyCFunction) _wrap_PyControl_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL},
45998 { (char *)"PyControl_DoSetSize", (PyCFunction) _wrap_PyControl_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL},
45999 { (char *)"PyControl_DoSetClientSize", (PyCFunction) _wrap_PyControl_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL},
46000 { (char *)"PyControl_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL},
46001 { (char *)"PyControl_DoGetSize", (PyCFunction)_wrap_PyControl_DoGetSize, METH_O, NULL},
46002 { (char *)"PyControl_DoGetClientSize", (PyCFunction)_wrap_PyControl_DoGetClientSize, METH_O, NULL},
46003 { (char *)"PyControl_DoGetPosition", (PyCFunction)_wrap_PyControl_DoGetPosition, METH_O, NULL},
46004 { (char *)"PyControl_DoGetVirtualSize", (PyCFunction)_wrap_PyControl_DoGetVirtualSize, METH_O, NULL},
46005 { (char *)"PyControl_DoGetBestSize", (PyCFunction)_wrap_PyControl_DoGetBestSize, METH_O, NULL},
46006 { (char *)"PyControl_GetDefaultAttributes", (PyCFunction)_wrap_PyControl_GetDefaultAttributes, METH_O, NULL},
46007 { (char *)"PyControl_OnInternalIdle", (PyCFunction)_wrap_PyControl_OnInternalIdle, METH_O, NULL},
46008 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL},
46009 { (char *)"PyControl_swiginit", PyControl_swiginit, METH_VARARGS, NULL},
46010 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46011 { (char *)"HelpEvent_GetPosition", (PyCFunction)_wrap_HelpEvent_GetPosition, METH_O, NULL},
46012 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46013 { (char *)"HelpEvent_GetLink", (PyCFunction)_wrap_HelpEvent_GetLink, METH_O, NULL},
46014 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL},
46015 { (char *)"HelpEvent_GetTarget", (PyCFunction)_wrap_HelpEvent_GetTarget, METH_O, NULL},
46016 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL},
46017 { (char *)"HelpEvent_GetOrigin", (PyCFunction)_wrap_HelpEvent_GetOrigin, METH_O, NULL},
46018 { (char *)"HelpEvent_SetOrigin", (PyCFunction) _wrap_HelpEvent_SetOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
46019 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL},
46020 { (char *)"HelpEvent_swiginit", HelpEvent_swiginit, METH_VARARGS, NULL},
46021 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46022 { (char *)"delete_ContextHelp", (PyCFunction)_wrap_delete_ContextHelp, METH_O, NULL},
46023 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46024 { (char *)"ContextHelp_EndContextHelp", (PyCFunction)_wrap_ContextHelp_EndContextHelp, METH_O, NULL},
46025 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL},
46026 { (char *)"ContextHelp_swiginit", ContextHelp_swiginit, METH_VARARGS, NULL},
46027 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL},
46028 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL},
46029 { (char *)"ContextHelpButton_swiginit", ContextHelpButton_swiginit, METH_VARARGS, NULL},
46030 { (char *)"delete_HelpProvider", (PyCFunction)_wrap_delete_HelpProvider, METH_O, NULL},
46031 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL},
46032 { (char *)"HelpProvider_Get", (PyCFunction)_wrap_HelpProvider_Get, METH_NOARGS, NULL},
46033 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46034 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46035 { (char *)"HelpProvider_ShowHelpAtPoint", (PyCFunction) _wrap_HelpProvider_ShowHelpAtPoint, METH_VARARGS | METH_KEYWORDS, NULL},
46036 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46037 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL},
46038 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46039 { (char *)"HelpProvider_Destroy", (PyCFunction)_wrap_HelpProvider_Destroy, METH_O, NULL},
46040 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL},
46041 { (char *)"new_SimpleHelpProvider", (PyCFunction)_wrap_new_SimpleHelpProvider, METH_NOARGS, NULL},
46042 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL},
46043 { (char *)"SimpleHelpProvider_swiginit", SimpleHelpProvider_swiginit, METH_VARARGS, NULL},
46044 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL},
46045 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL},
46046 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL},
46047 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL},
46048 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL},
46049 { (char *)"delete_DragImage", (PyCFunction)_wrap_delete_DragImage, METH_O, NULL},
46050 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
46051 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL},
46052 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL},
46053 { (char *)"DragImage_EndDrag", (PyCFunction)_wrap_DragImage_EndDrag, METH_O, NULL},
46054 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL},
46055 { (char *)"DragImage_Show", (PyCFunction)_wrap_DragImage_Show, METH_O, NULL},
46056 { (char *)"DragImage_Hide", (PyCFunction)_wrap_DragImage_Hide, METH_O, NULL},
46057 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL},
46058 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
46059 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL},
46060 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
46061 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL},
46062 { (char *)"DragImage_swiginit", DragImage_swiginit, METH_VARARGS, NULL},
46063 { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46064 { (char *)"new_PreDatePickerCtrl", (PyCFunction)_wrap_new_PreDatePickerCtrl, METH_NOARGS, NULL},
46065 { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46066 { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46067 { (char *)"DatePickerCtrl_GetValue", (PyCFunction)_wrap_DatePickerCtrl_GetValue, METH_O, NULL},
46068 { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46069 { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction)_wrap_DatePickerCtrl_GetLowerLimit, METH_O, NULL},
46070 { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction)_wrap_DatePickerCtrl_GetUpperLimit, METH_O, NULL},
46071 { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL},
46072 { (char *)"DatePickerCtrl_swiginit", DatePickerCtrl_swiginit, METH_VARARGS, NULL},
46073 { (char *)"new_HyperlinkCtrl", (PyCFunction) _wrap_new_HyperlinkCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46074 { (char *)"new_PreHyperlinkCtrl", (PyCFunction)_wrap_new_PreHyperlinkCtrl, METH_NOARGS, NULL},
46075 { (char *)"HyperlinkCtrl_Create", (PyCFunction) _wrap_HyperlinkCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46076 { (char *)"HyperlinkCtrl_GetHoverColour", (PyCFunction)_wrap_HyperlinkCtrl_GetHoverColour, METH_O, NULL},
46077 { (char *)"HyperlinkCtrl_SetHoverColour", (PyCFunction) _wrap_HyperlinkCtrl_SetHoverColour, METH_VARARGS | METH_KEYWORDS, NULL},
46078 { (char *)"HyperlinkCtrl_GetNormalColour", (PyCFunction)_wrap_HyperlinkCtrl_GetNormalColour, METH_O, NULL},
46079 { (char *)"HyperlinkCtrl_SetNormalColour", (PyCFunction) _wrap_HyperlinkCtrl_SetNormalColour, METH_VARARGS | METH_KEYWORDS, NULL},
46080 { (char *)"HyperlinkCtrl_GetVisitedColour", (PyCFunction)_wrap_HyperlinkCtrl_GetVisitedColour, METH_O, NULL},
46081 { (char *)"HyperlinkCtrl_SetVisitedColour", (PyCFunction) _wrap_HyperlinkCtrl_SetVisitedColour, METH_VARARGS | METH_KEYWORDS, NULL},
46082 { (char *)"HyperlinkCtrl_GetURL", (PyCFunction)_wrap_HyperlinkCtrl_GetURL, METH_O, NULL},
46083 { (char *)"HyperlinkCtrl_SetURL", (PyCFunction) _wrap_HyperlinkCtrl_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
46084 { (char *)"HyperlinkCtrl_SetVisited", (PyCFunction) _wrap_HyperlinkCtrl_SetVisited, METH_VARARGS | METH_KEYWORDS, NULL},
46085 { (char *)"HyperlinkCtrl_GetVisited", (PyCFunction)_wrap_HyperlinkCtrl_GetVisited, METH_O, NULL},
46086 { (char *)"HyperlinkCtrl_swigregister", HyperlinkCtrl_swigregister, METH_VARARGS, NULL},
46087 { (char *)"HyperlinkCtrl_swiginit", HyperlinkCtrl_swiginit, METH_VARARGS, NULL},
46088 { (char *)"new_HyperlinkEvent", (PyCFunction) _wrap_new_HyperlinkEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46089 { (char *)"HyperlinkEvent_GetURL", (PyCFunction)_wrap_HyperlinkEvent_GetURL, METH_O, NULL},
46090 { (char *)"HyperlinkEvent_SetURL", (PyCFunction) _wrap_HyperlinkEvent_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
46091 { (char *)"HyperlinkEvent_swigregister", HyperlinkEvent_swigregister, METH_VARARGS, NULL},
46092 { (char *)"HyperlinkEvent_swiginit", HyperlinkEvent_swiginit, METH_VARARGS, NULL},
46093 { (char *)"PickerBase_CreateBase", (PyCFunction) _wrap_PickerBase_CreateBase, METH_VARARGS | METH_KEYWORDS, NULL},
46094 { (char *)"PickerBase_SetInternalMargin", (PyCFunction) _wrap_PickerBase_SetInternalMargin, METH_VARARGS | METH_KEYWORDS, NULL},
46095 { (char *)"PickerBase_GetInternalMargin", (PyCFunction)_wrap_PickerBase_GetInternalMargin, METH_O, NULL},
46096 { (char *)"PickerBase_SetTextCtrlProportion", (PyCFunction) _wrap_PickerBase_SetTextCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
46097 { (char *)"PickerBase_GetTextCtrlProportion", (PyCFunction)_wrap_PickerBase_GetTextCtrlProportion, METH_O, NULL},
46098 { (char *)"PickerBase_SetPickerCtrlProportion", (PyCFunction) _wrap_PickerBase_SetPickerCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
46099 { (char *)"PickerBase_GetPickerCtrlProportion", (PyCFunction)_wrap_PickerBase_GetPickerCtrlProportion, METH_O, NULL},
46100 { (char *)"PickerBase_IsTextCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsTextCtrlGrowable, METH_O, NULL},
46101 { (char *)"PickerBase_SetTextCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetTextCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
46102 { (char *)"PickerBase_IsPickerCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsPickerCtrlGrowable, METH_O, NULL},
46103 { (char *)"PickerBase_SetPickerCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetPickerCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
46104 { (char *)"PickerBase_HasTextCtrl", (PyCFunction)_wrap_PickerBase_HasTextCtrl, METH_O, NULL},
46105 { (char *)"PickerBase_GetTextCtrl", (PyCFunction)_wrap_PickerBase_GetTextCtrl, METH_O, NULL},
46106 { (char *)"PickerBase_GetPickerCtrl", (PyCFunction)_wrap_PickerBase_GetPickerCtrl, METH_O, NULL},
46107 { (char *)"PickerBase_swigregister", PickerBase_swigregister, METH_VARARGS, NULL},
46108 { (char *)"new_ColourPickerCtrl", (PyCFunction) _wrap_new_ColourPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46109 { (char *)"new_PreColourPickerCtrl", (PyCFunction)_wrap_new_PreColourPickerCtrl, METH_NOARGS, NULL},
46110 { (char *)"ColourPickerCtrl_Create", (PyCFunction) _wrap_ColourPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46111 { (char *)"ColourPickerCtrl_GetColour", (PyCFunction)_wrap_ColourPickerCtrl_GetColour, METH_O, NULL},
46112 { (char *)"ColourPickerCtrl_SetColour", (PyCFunction) _wrap_ColourPickerCtrl_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
46113 { (char *)"ColourPickerCtrl_swigregister", ColourPickerCtrl_swigregister, METH_VARARGS, NULL},
46114 { (char *)"ColourPickerCtrl_swiginit", ColourPickerCtrl_swiginit, METH_VARARGS, NULL},
46115 { (char *)"new_ColourPickerEvent", (PyCFunction) _wrap_new_ColourPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46116 { (char *)"ColourPickerEvent_GetColour", (PyCFunction)_wrap_ColourPickerEvent_GetColour, METH_O, NULL},
46117 { (char *)"ColourPickerEvent_SetColour", (PyCFunction) _wrap_ColourPickerEvent_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
46118 { (char *)"ColourPickerEvent_swigregister", ColourPickerEvent_swigregister, METH_VARARGS, NULL},
46119 { (char *)"ColourPickerEvent_swiginit", ColourPickerEvent_swiginit, METH_VARARGS, NULL},
46120 { (char *)"new_FilePickerCtrl", (PyCFunction) _wrap_new_FilePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46121 { (char *)"new_PreFilePickerCtrl", (PyCFunction)_wrap_new_PreFilePickerCtrl, METH_NOARGS, NULL},
46122 { (char *)"FilePickerCtrl_Create", (PyCFunction) _wrap_FilePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46123 { (char *)"FilePickerCtrl_GetPath", (PyCFunction)_wrap_FilePickerCtrl_GetPath, METH_O, NULL},
46124 { (char *)"FilePickerCtrl_SetPath", (PyCFunction) _wrap_FilePickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
46125 { (char *)"FilePickerCtrl_CheckPath", (PyCFunction) _wrap_FilePickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
46126 { (char *)"FilePickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_FilePickerCtrl_GetTextCtrlValue, METH_O, NULL},
46127 { (char *)"FilePickerCtrl_swigregister", FilePickerCtrl_swigregister, METH_VARARGS, NULL},
46128 { (char *)"FilePickerCtrl_swiginit", FilePickerCtrl_swiginit, METH_VARARGS, NULL},
46129 { (char *)"new_DirPickerCtrl", (PyCFunction) _wrap_new_DirPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46130 { (char *)"new_PreDirPickerCtrl", (PyCFunction)_wrap_new_PreDirPickerCtrl, METH_NOARGS, NULL},
46131 { (char *)"DirPickerCtrl_Create", (PyCFunction) _wrap_DirPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46132 { (char *)"DirPickerCtrl_GetPath", (PyCFunction)_wrap_DirPickerCtrl_GetPath, METH_O, NULL},
46133 { (char *)"DirPickerCtrl_SetPath", (PyCFunction) _wrap_DirPickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
46134 { (char *)"DirPickerCtrl_CheckPath", (PyCFunction) _wrap_DirPickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
46135 { (char *)"DirPickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_DirPickerCtrl_GetTextCtrlValue, METH_O, NULL},
46136 { (char *)"DirPickerCtrl_swigregister", DirPickerCtrl_swigregister, METH_VARARGS, NULL},
46137 { (char *)"DirPickerCtrl_swiginit", DirPickerCtrl_swiginit, METH_VARARGS, NULL},
46138 { (char *)"new_FileDirPickerEvent", (PyCFunction) _wrap_new_FileDirPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46139 { (char *)"FileDirPickerEvent_GetPath", (PyCFunction)_wrap_FileDirPickerEvent_GetPath, METH_O, NULL},
46140 { (char *)"FileDirPickerEvent_SetPath", (PyCFunction) _wrap_FileDirPickerEvent_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
46141 { (char *)"FileDirPickerEvent_swigregister", FileDirPickerEvent_swigregister, METH_VARARGS, NULL},
46142 { (char *)"FileDirPickerEvent_swiginit", FileDirPickerEvent_swiginit, METH_VARARGS, NULL},
46143 { (char *)"new_FontPickerCtrl", (PyCFunction) _wrap_new_FontPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46144 { (char *)"new_PreFontPickerCtrl", (PyCFunction)_wrap_new_PreFontPickerCtrl, METH_NOARGS, NULL},
46145 { (char *)"FontPickerCtrl_Create", (PyCFunction) _wrap_FontPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46146 { (char *)"FontPickerCtrl_GetSelectedFont", (PyCFunction)_wrap_FontPickerCtrl_GetSelectedFont, METH_O, NULL},
46147 { (char *)"FontPickerCtrl_SetSelectedFont", (PyCFunction) _wrap_FontPickerCtrl_SetSelectedFont, METH_VARARGS | METH_KEYWORDS, NULL},
46148 { (char *)"FontPickerCtrl_SetMaxPointSize", (PyCFunction) _wrap_FontPickerCtrl_SetMaxPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
46149 { (char *)"FontPickerCtrl_GetMaxPointSize", (PyCFunction)_wrap_FontPickerCtrl_GetMaxPointSize, METH_O, NULL},
46150 { (char *)"FontPickerCtrl_swigregister", FontPickerCtrl_swigregister, METH_VARARGS, NULL},
46151 { (char *)"FontPickerCtrl_swiginit", FontPickerCtrl_swiginit, METH_VARARGS, NULL},
46152 { (char *)"new_FontPickerEvent", (PyCFunction) _wrap_new_FontPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46153 { (char *)"FontPickerEvent_GetFont", (PyCFunction)_wrap_FontPickerEvent_GetFont, METH_O, NULL},
46154 { (char *)"FontPickerEvent_SetFont", (PyCFunction) _wrap_FontPickerEvent_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
46155 { (char *)"FontPickerEvent_swigregister", FontPickerEvent_swigregister, METH_VARARGS, NULL},
46156 { (char *)"FontPickerEvent_swiginit", FontPickerEvent_swiginit, METH_VARARGS, NULL},
46157 { NULL, NULL, 0, NULL }
46158 };
46159
46160
46161 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
46162
46163 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
46164 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
46165 }
46166 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
46167 return (void *)((wxEvent *) ((wxMenuEvent *) x));
46168 }
46169 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
46170 return (void *)((wxEvent *) ((wxCloseEvent *) x));
46171 }
46172 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
46173 return (void *)((wxEvent *) ((wxMouseEvent *) x));
46174 }
46175 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
46176 return (void *)((wxEvent *) ((wxEraseEvent *) x));
46177 }
46178 static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) {
46179 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
46180 }
46181 static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
46182 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
46183 }
46184 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
46185 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
46186 }
46187 static void *_p_wxColourPickerEventTo_p_wxEvent(void *x) {
46188 return (void *)((wxEvent *) (wxCommandEvent *) ((wxColourPickerEvent *) x));
46189 }
46190 static void *_p_wxFileDirPickerEventTo_p_wxEvent(void *x) {
46191 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFileDirPickerEvent *) x));
46192 }
46193 static void *_p_wxFontPickerEventTo_p_wxEvent(void *x) {
46194 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFontPickerEvent *) x));
46195 }
46196 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
46197 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
46198 }
46199 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
46200 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
46201 }
46202 static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
46203 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
46204 }
46205 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
46206 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
46207 }
46208 static void *_p_wxMouseCaptureLostEventTo_p_wxEvent(void *x) {
46209 return (void *)((wxEvent *) ((wxMouseCaptureLostEvent *) x));
46210 }
46211 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
46212 return (void *)((wxEvent *) ((wxPyEvent *) x));
46213 }
46214 static void *_p_wxListEventTo_p_wxEvent(void *x) {
46215 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
46216 }
46217 static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
46218 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
46219 }
46220 static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
46221 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
46222 }
46223 static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) {
46224 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
46225 }
46226 static void *_p_wxTreebookEventTo_p_wxEvent(void *x) {
46227 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
46228 }
46229 static void *_p_wxToolbookEventTo_p_wxEvent(void *x) {
46230 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
46231 }
46232 static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
46233 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
46234 }
46235 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
46236 return (void *)((wxEvent *) ((wxIdleEvent *) x));
46237 }
46238 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
46239 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
46240 }
46241 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
46242 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
46243 }
46244 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
46245 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
46246 }
46247 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
46248 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
46249 }
46250 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
46251 return (void *)((wxEvent *) ((wxActivateEvent *) x));
46252 }
46253 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
46254 return (void *)((wxEvent *) ((wxSizeEvent *) x));
46255 }
46256 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
46257 return (void *)((wxEvent *) ((wxMoveEvent *) x));
46258 }
46259 static void *_p_wxDateEventTo_p_wxEvent(void *x) {
46260 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
46261 }
46262 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
46263 return (void *)((wxEvent *) ((wxPaintEvent *) x));
46264 }
46265 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
46266 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
46267 }
46268 static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) {
46269 return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x));
46270 }
46271 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
46272 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
46273 }
46274 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
46275 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
46276 }
46277 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
46278 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
46279 }
46280 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
46281 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
46282 }
46283 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
46284 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
46285 }
46286 static void *_p_wxHyperlinkEventTo_p_wxEvent(void *x) {
46287 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHyperlinkEvent *) x));
46288 }
46289 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
46290 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
46291 }
46292 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
46293 return (void *)((wxEvent *) ((wxFocusEvent *) x));
46294 }
46295 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
46296 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
46297 }
46298 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
46299 return (void *)((wxEvent *) ((wxShowEvent *) x));
46300 }
46301 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
46302 return (void *)((wxEvent *) ((wxCommandEvent *) x));
46303 }
46304 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
46305 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
46306 }
46307 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
46308 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
46309 }
46310 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
46311 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
46312 }
46313 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
46314 return (void *)((wxEvent *) ((wxKeyEvent *) x));
46315 }
46316 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
46317 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
46318 }
46319 static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
46320 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
46321 }
46322 static void *_p_wxColourPickerCtrlTo_p_wxPickerBase(void *x) {
46323 return (void *)((wxPickerBase *) ((wxColourPickerCtrl *) x));
46324 }
46325 static void *_p_wxFilePickerCtrlTo_p_wxPickerBase(void *x) {
46326 return (void *)((wxPickerBase *) ((wxFilePickerCtrl *) x));
46327 }
46328 static void *_p_wxDirPickerCtrlTo_p_wxPickerBase(void *x) {
46329 return (void *)((wxPickerBase *) ((wxDirPickerCtrl *) x));
46330 }
46331 static void *_p_wxFontPickerCtrlTo_p_wxPickerBase(void *x) {
46332 return (void *)((wxPickerBase *) ((wxFontPickerCtrl *) x));
46333 }
46334 static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
46335 return (void *)((wxItemContainer *) ((wxComboBox *) x));
46336 }
46337 static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
46338 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46339 }
46340 static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
46341 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
46342 }
46343 static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
46344 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
46345 }
46346 static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
46347 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
46348 }
46349 static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
46350 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
46351 }
46352 static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
46353 return (void *)((wxPyListCtrl *) ((wxListView *) x));
46354 }
46355 static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) {
46356 return (void *)((wxControl *) ((wxBookCtrlBase *) x));
46357 }
46358 static void *_p_wxToolBarTo_p_wxControl(void *x) {
46359 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
46360 }
46361 static void *_p_wxPickerBaseTo_p_wxControl(void *x) {
46362 return (void *)((wxControl *) ((wxPickerBase *) x));
46363 }
46364 static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
46365 return (void *)((wxControl *) ((wxToggleButton *) x));
46366 }
46367 static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
46368 return (void *)((wxControl *) ((wxRadioButton *) x));
46369 }
46370 static void *_p_wxToolbookTo_p_wxControl(void *x) {
46371 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxToolbook *) x));
46372 }
46373 static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
46374 return (void *)((wxControl *) ((wxToolBarBase *) x));
46375 }
46376 static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
46377 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46378 }
46379 static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
46380 return (void *)((wxControl *) ((wxPyListCtrl *) x));
46381 }
46382 static void *_p_wxComboBoxTo_p_wxControl(void *x) {
46383 return (void *)((wxControl *) ((wxComboBox *) x));
46384 }
46385 static void *_p_wxPyControlTo_p_wxControl(void *x) {
46386 return (void *)((wxControl *) ((wxPyControl *) x));
46387 }
46388 static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
46389 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
46390 }
46391 static void *_p_wxScrollBarTo_p_wxControl(void *x) {
46392 return (void *)((wxControl *) ((wxScrollBar *) x));
46393 }
46394 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
46395 return (void *)((wxControl *) ((wxControlWithItems *) x));
46396 }
46397 static void *_p_wxGaugeTo_p_wxControl(void *x) {
46398 return (void *)((wxControl *) ((wxGauge *) x));
46399 }
46400 static void *_p_wxStaticLineTo_p_wxControl(void *x) {
46401 return (void *)((wxControl *) ((wxStaticLine *) x));
46402 }
46403 static void *_p_wxChoicebookTo_p_wxControl(void *x) {
46404 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x));
46405 }
46406 static void *_p_wxListbookTo_p_wxControl(void *x) {
46407 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x));
46408 }
46409 static void *_p_wxHyperlinkCtrlTo_p_wxControl(void *x) {
46410 return (void *)((wxControl *) ((wxHyperlinkCtrl *) x));
46411 }
46412 static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
46413 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
46414 }
46415 static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
46416 return (void *)((wxControl *) ((wxCheckBox *) x));
46417 }
46418 static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
46419 return (void *)((wxControl *) ((wxRadioBox *) x));
46420 }
46421 static void *_p_wxChoiceTo_p_wxControl(void *x) {
46422 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
46423 }
46424 static void *_p_wxListBoxTo_p_wxControl(void *x) {
46425 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
46426 }
46427 static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
46428 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
46429 }
46430 static void *_p_wxListViewTo_p_wxControl(void *x) {
46431 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
46432 }
46433 static void *_p_wxNotebookTo_p_wxControl(void *x) {
46434 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x));
46435 }
46436 static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
46437 return (void *)((wxControl *) ((wxStaticBitmap *) x));
46438 }
46439 static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
46440 return (void *)((wxControl *) ((wxSpinCtrl *) x));
46441 }
46442 static void *_p_wxStaticTextTo_p_wxControl(void *x) {
46443 return (void *)((wxControl *) ((wxStaticText *) x));
46444 }
46445 static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
46446 return (void *)((wxControl *) ((wxStaticBox *) x));
46447 }
46448 static void *_p_wxSliderTo_p_wxControl(void *x) {
46449 return (void *)((wxControl *) ((wxSlider *) x));
46450 }
46451 static void *_p_wxTreebookTo_p_wxControl(void *x) {
46452 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxTreebook *) x));
46453 }
46454 static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
46455 return (void *)((wxControl *) ((wxSpinButton *) x));
46456 }
46457 static void *_p_wxButtonTo_p_wxControl(void *x) {
46458 return (void *)((wxControl *) ((wxButton *) x));
46459 }
46460 static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
46461 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
46462 }
46463 static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
46464 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
46465 }
46466 static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) {
46467 return (void *)((wxControl *) ((wxDatePickerCtrl *) x));
46468 }
46469 static void *_p_wxColourPickerCtrlTo_p_wxControl(void *x) {
46470 return (void *)((wxControl *) (wxPickerBase *) ((wxColourPickerCtrl *) x));
46471 }
46472 static void *_p_wxFilePickerCtrlTo_p_wxControl(void *x) {
46473 return (void *)((wxControl *) (wxPickerBase *) ((wxFilePickerCtrl *) x));
46474 }
46475 static void *_p_wxDirPickerCtrlTo_p_wxControl(void *x) {
46476 return (void *)((wxControl *) (wxPickerBase *) ((wxDirPickerCtrl *) x));
46477 }
46478 static void *_p_wxFontPickerCtrlTo_p_wxControl(void *x) {
46479 return (void *)((wxControl *) (wxPickerBase *) ((wxFontPickerCtrl *) x));
46480 }
46481 static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
46482 return (void *)((wxControl *) ((wxTextCtrl *) x));
46483 }
46484 static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
46485 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
46486 }
46487 static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
46488 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
46489 }
46490 static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) {
46491 return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
46492 }
46493 static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
46494 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
46495 }
46496 static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
46497 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
46498 }
46499 static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
46500 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
46501 }
46502 static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
46503 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
46504 }
46505 static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
46506 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
46507 }
46508 static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) {
46509 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
46510 }
46511 static void *_p_wxTreebookEventTo_p_wxNotifyEvent(void *x) {
46512 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
46513 }
46514 static void *_p_wxToolbookEventTo_p_wxNotifyEvent(void *x) {
46515 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
46516 }
46517 static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) {
46518 return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x));
46519 }
46520 static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) {
46521 return (void *)((wxBookCtrlBase *) ((wxListbook *) x));
46522 }
46523 static void *_p_wxToolbookTo_p_wxBookCtrlBase(void *x) {
46524 return (void *)((wxBookCtrlBase *) ((wxToolbook *) x));
46525 }
46526 static void *_p_wxTreebookTo_p_wxBookCtrlBase(void *x) {
46527 return (void *)((wxBookCtrlBase *) ((wxTreebook *) x));
46528 }
46529 static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) {
46530 return (void *)((wxBookCtrlBase *) ((wxNotebook *) x));
46531 }
46532 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
46533 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
46534 }
46535 static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) {
46536 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
46537 }
46538 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
46539 return (void *)((wxEvtHandler *) ((wxValidator *) x));
46540 }
46541 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
46542 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
46543 }
46544 static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
46545 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
46546 }
46547 static void *_p_wxPickerBaseTo_p_wxEvtHandler(void *x) {
46548 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPickerBase *) x));
46549 }
46550 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
46551 return (void *)((wxEvtHandler *) ((wxMenu *) x));
46552 }
46553 static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
46554 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
46555 }
46556 static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
46557 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
46558 }
46559 static void *_p_wxToolbookTo_p_wxEvtHandler(void *x) {
46560 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
46561 }
46562 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
46563 return (void *)((wxEvtHandler *) ((wxWindow *) x));
46564 }
46565 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
46566 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
46567 }
46568 static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
46569 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x));
46570 }
46571 static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
46572 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
46573 }
46574 static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
46575 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
46576 }
46577 static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
46578 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46579 }
46580 static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
46581 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
46582 }
46583 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
46584 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
46585 }
46586 static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
46587 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
46588 }
46589 static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
46590 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
46591 }
46592 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
46593 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
46594 }
46595 static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
46596 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
46597 }
46598 static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
46599 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
46600 }
46601 static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) {
46602 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
46603 }
46604 static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
46605 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
46606 }
46607 static void *_p_wxHyperlinkCtrlTo_p_wxEvtHandler(void *x) {
46608 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
46609 }
46610 static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
46611 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
46612 }
46613 static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
46614 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
46615 }
46616 static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
46617 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
46618 }
46619 static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
46620 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
46621 }
46622 static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
46623 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
46624 }
46625 static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
46626 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
46627 }
46628 static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
46629 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
46630 }
46631 static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
46632 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
46633 }
46634 static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
46635 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
46636 }
46637 static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
46638 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
46639 }
46640 static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
46641 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
46642 }
46643 static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
46644 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
46645 }
46646 static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
46647 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
46648 }
46649 static void *_p_wxTreebookTo_p_wxEvtHandler(void *x) {
46650 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
46651 }
46652 static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
46653 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
46654 }
46655 static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
46656 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
46657 }
46658 static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
46659 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
46660 }
46661 static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
46662 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
46663 }
46664 static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) {
46665 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
46666 }
46667 static void *_p_wxColourPickerCtrlTo_p_wxEvtHandler(void *x) {
46668 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
46669 }
46670 static void *_p_wxFilePickerCtrlTo_p_wxEvtHandler(void *x) {
46671 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
46672 }
46673 static void *_p_wxDirPickerCtrlTo_p_wxEvtHandler(void *x) {
46674 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
46675 }
46676 static void *_p_wxFontPickerCtrlTo_p_wxEvtHandler(void *x) {
46677 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
46678 }
46679 static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
46680 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
46681 }
46682 static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
46683 return (void *)((wxListBox *) ((wxCheckListBox *) x));
46684 }
46685 static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
46686 return (void *)((wxButton *) ((wxBitmapButton *) x));
46687 }
46688 static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
46689 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
46690 }
46691 static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
46692 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
46693 }
46694 static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
46695 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
46696 }
46697 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
46698 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
46699 }
46700 static void *_p_wxToolbookTo_p_wxObject(void *x) {
46701 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
46702 }
46703 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
46704 return (void *)((wxObject *) ((wxSizerItem *) x));
46705 }
46706 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
46707 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
46708 }
46709 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
46710 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
46711 }
46712 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
46713 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
46714 }
46715 static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
46716 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
46717 }
46718 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
46719 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
46720 }
46721 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
46722 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
46723 }
46724 static void *_p_wxSizerTo_p_wxObject(void *x) {
46725 return (void *)((wxObject *) ((wxSizer *) x));
46726 }
46727 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
46728 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
46729 }
46730 static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
46731 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
46732 }
46733 static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
46734 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
46735 }
46736 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
46737 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
46738 }
46739 static void *_p_wxEventTo_p_wxObject(void *x) {
46740 return (void *)((wxObject *) ((wxEvent *) x));
46741 }
46742 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
46743 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
46744 }
46745 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
46746 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
46747 }
46748 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
46749 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
46750 }
46751 static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
46752 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
46753 }
46754 static void *_p_wxPickerBaseTo_p_wxObject(void *x) {
46755 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPickerBase *) x));
46756 }
46757 static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
46758 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
46759 }
46760 static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
46761 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46762 }
46763 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
46764 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
46765 }
46766 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
46767 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
46768 }
46769 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
46770 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
46771 }
46772 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
46773 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
46774 }
46775 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
46776 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
46777 }
46778 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
46779 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
46780 }
46781 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
46782 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
46783 }
46784 static void *_p_wxStaticLineTo_p_wxObject(void *x) {
46785 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
46786 }
46787 static void *_p_wxControlTo_p_wxObject(void *x) {
46788 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
46789 }
46790 static void *_p_wxPyControlTo_p_wxObject(void *x) {
46791 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
46792 }
46793 static void *_p_wxGaugeTo_p_wxObject(void *x) {
46794 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
46795 }
46796 static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
46797 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
46798 }
46799 static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
46800 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
46801 }
46802 static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
46803 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
46804 }
46805 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
46806 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
46807 }
46808 static void *_p_wxColourPickerEventTo_p_wxObject(void *x) {
46809 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxColourPickerEvent *) x));
46810 }
46811 static void *_p_wxFileDirPickerEventTo_p_wxObject(void *x) {
46812 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFileDirPickerEvent *) x));
46813 }
46814 static void *_p_wxFontPickerEventTo_p_wxObject(void *x) {
46815 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFontPickerEvent *) x));
46816 }
46817 static void *_p_wxChoiceTo_p_wxObject(void *x) {
46818 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
46819 }
46820 static void *_p_wxFSFileTo_p_wxObject(void *x) {
46821 return (void *)((wxObject *) ((wxFSFile *) x));
46822 }
46823 static void *_p_wxPySizerTo_p_wxObject(void *x) {
46824 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
46825 }
46826 static void *_p_wxTreebookTo_p_wxObject(void *x) {
46827 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
46828 }
46829 static void *_p_wxListViewTo_p_wxObject(void *x) {
46830 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
46831 }
46832 static void *_p_wxHyperlinkEventTo_p_wxObject(void *x) {
46833 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHyperlinkEvent *) x));
46834 }
46835 static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
46836 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
46837 }
46838 static void *_p_wxNotebookTo_p_wxObject(void *x) {
46839 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
46840 }
46841 static void *_p_wxPyEventTo_p_wxObject(void *x) {
46842 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
46843 }
46844 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
46845 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
46846 }
46847 static void *_p_wxChoicebookTo_p_wxObject(void *x) {
46848 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
46849 }
46850 static void *_p_wxListbookTo_p_wxObject(void *x) {
46851 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
46852 }
46853 static void *_p_wxShowEventTo_p_wxObject(void *x) {
46854 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
46855 }
46856 static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
46857 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
46858 }
46859 static void *_p_wxSliderTo_p_wxObject(void *x) {
46860 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
46861 }
46862 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
46863 return (void *)((wxObject *) ((wxMenuItem *) x));
46864 }
46865 static void *_p_wxDateEventTo_p_wxObject(void *x) {
46866 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
46867 }
46868 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
46869 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
46870 }
46871 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
46872 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
46873 }
46874 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
46875 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
46876 }
46877 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
46878 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
46879 }
46880 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
46881 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
46882 }
46883 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
46884 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
46885 }
46886 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
46887 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
46888 }
46889 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
46890 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
46891 }
46892 static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
46893 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
46894 }
46895 static void *_p_wxContextHelpTo_p_wxObject(void *x) {
46896 return (void *)((wxObject *) ((wxContextHelp *) x));
46897 }
46898 static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) {
46899 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
46900 }
46901 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
46902 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
46903 }
46904 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
46905 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
46906 }
46907 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
46908 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
46909 }
46910 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
46911 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
46912 }
46913 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
46914 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
46915 }
46916 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
46917 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
46918 }
46919 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
46920 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
46921 }
46922 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
46923 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
46924 }
46925 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
46926 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
46927 }
46928 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
46929 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
46930 }
46931 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
46932 return (void *)((wxObject *) ((wxImageHandler *) x));
46933 }
46934 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
46935 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
46936 }
46937 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
46938 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
46939 }
46940 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
46941 return (void *)((wxObject *) ((wxEvtHandler *) x));
46942 }
46943 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
46944 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
46945 }
46946 static void *_p_wxListEventTo_p_wxObject(void *x) {
46947 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
46948 }
46949 static void *_p_wxListBoxTo_p_wxObject(void *x) {
46950 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
46951 }
46952 static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
46953 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
46954 }
46955 static void *_p_wxButtonTo_p_wxObject(void *x) {
46956 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
46957 }
46958 static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
46959 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
46960 }
46961 static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
46962 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
46963 }
46964 static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
46965 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
46966 }
46967 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
46968 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
46969 }
46970 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
46971 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
46972 }
46973 static void *_p_wxScrollBarTo_p_wxObject(void *x) {
46974 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
46975 }
46976 static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
46977 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
46978 }
46979 static void *_p_wxComboBoxTo_p_wxObject(void *x) {
46980 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x));
46981 }
46982 static void *_p_wxHelpEventTo_p_wxObject(void *x) {
46983 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
46984 }
46985 static void *_p_wxListItemTo_p_wxObject(void *x) {
46986 return (void *)((wxObject *) ((wxListItem *) x));
46987 }
46988 static void *_p_wxImageTo_p_wxObject(void *x) {
46989 return (void *)((wxObject *) ((wxImage *) x));
46990 }
46991 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
46992 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
46993 }
46994 static void *_p_wxSpinEventTo_p_wxObject(void *x) {
46995 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
46996 }
46997 static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
46998 return (void *)((wxObject *) ((wxGenericDragImage *) x));
46999 }
47000 static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
47001 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
47002 }
47003 static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
47004 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47005 }
47006 static void *_p_wxListbookEventTo_p_wxObject(void *x) {
47007 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47008 }
47009 static void *_p_wxChoicebookEventTo_p_wxObject(void *x) {
47010 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47011 }
47012 static void *_p_wxTreebookEventTo_p_wxObject(void *x) {
47013 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47014 }
47015 static void *_p_wxToolbookEventTo_p_wxObject(void *x) {
47016 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47017 }
47018 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
47019 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
47020 }
47021 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
47022 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
47023 }
47024 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
47025 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
47026 }
47027 static void *_p_wxWindowTo_p_wxObject(void *x) {
47028 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
47029 }
47030 static void *_p_wxMenuTo_p_wxObject(void *x) {
47031 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
47032 }
47033 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
47034 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
47035 }
47036 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
47037 return (void *)((wxObject *) ((wxFileSystem *) x));
47038 }
47039 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
47040 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
47041 }
47042 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
47043 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
47044 }
47045 static void *_p_wxPyAppTo_p_wxObject(void *x) {
47046 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
47047 }
47048 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
47049 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
47050 }
47051 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
47052 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
47053 }
47054 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
47055 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
47056 }
47057 static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) {
47058 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
47059 }
47060 static void *_p_wxTreeEventTo_p_wxObject(void *x) {
47061 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
47062 }
47063 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
47064 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
47065 }
47066 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
47067 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
47068 }
47069 static void *_p_wxStaticTextTo_p_wxObject(void *x) {
47070 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
47071 }
47072 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
47073 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
47074 }
47075 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
47076 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
47077 }
47078 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
47079 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
47080 }
47081 static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) {
47082 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
47083 }
47084 static void *_p_wxColourPickerCtrlTo_p_wxObject(void *x) {
47085 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
47086 }
47087 static void *_p_wxFilePickerCtrlTo_p_wxObject(void *x) {
47088 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
47089 }
47090 static void *_p_wxDirPickerCtrlTo_p_wxObject(void *x) {
47091 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
47092 }
47093 static void *_p_wxFontPickerCtrlTo_p_wxObject(void *x) {
47094 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
47095 }
47096 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
47097 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
47098 }
47099 static void *_p_wxHyperlinkCtrlTo_p_wxObject(void *x) {
47100 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
47101 }
47102 static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
47103 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
47104 }
47105 static void *_p_wxToolBarTo_p_wxObject(void *x) {
47106 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
47107 }
47108 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
47109 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
47110 }
47111 static void *_p_wxValidatorTo_p_wxObject(void *x) {
47112 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
47113 }
47114 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
47115 return (void *)((wxWindow *) ((wxMenuBar *) x));
47116 }
47117 static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) {
47118 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x));
47119 }
47120 static void *_p_wxToolBarTo_p_wxWindow(void *x) {
47121 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
47122 }
47123 static void *_p_wxPickerBaseTo_p_wxWindow(void *x) {
47124 return (void *)((wxWindow *) (wxControl *) ((wxPickerBase *) x));
47125 }
47126 static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
47127 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
47128 }
47129 static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
47130 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
47131 }
47132 static void *_p_wxToolbookTo_p_wxWindow(void *x) {
47133 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
47134 }
47135 static void *_p_wxControlTo_p_wxWindow(void *x) {
47136 return (void *)((wxWindow *) ((wxControl *) x));
47137 }
47138 static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
47139 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
47140 }
47141 static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
47142 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
47143 }
47144 static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
47145 return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x));
47146 }
47147 static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
47148 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
47149 }
47150 static void *_p_wxPyControlTo_p_wxWindow(void *x) {
47151 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
47152 }
47153 static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
47154 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
47155 }
47156 static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
47157 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
47158 }
47159 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
47160 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
47161 }
47162 static void *_p_wxGaugeTo_p_wxWindow(void *x) {
47163 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
47164 }
47165 static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
47166 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
47167 }
47168 static void *_p_wxChoicebookTo_p_wxWindow(void *x) {
47169 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
47170 }
47171 static void *_p_wxListbookTo_p_wxWindow(void *x) {
47172 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
47173 }
47174 static void *_p_wxHyperlinkCtrlTo_p_wxWindow(void *x) {
47175 return (void *)((wxWindow *) (wxControl *) ((wxHyperlinkCtrl *) x));
47176 }
47177 static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
47178 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
47179 }
47180 static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
47181 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
47182 }
47183 static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
47184 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
47185 }
47186 static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
47187 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
47188 }
47189 static void *_p_wxChoiceTo_p_wxWindow(void *x) {
47190 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
47191 }
47192 static void *_p_wxListBoxTo_p_wxWindow(void *x) {
47193 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
47194 }
47195 static void *_p_wxListViewTo_p_wxWindow(void *x) {
47196 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
47197 }
47198 static void *_p_wxNotebookTo_p_wxWindow(void *x) {
47199 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
47200 }
47201 static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
47202 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
47203 }
47204 static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
47205 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
47206 }
47207 static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
47208 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
47209 }
47210 static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
47211 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
47212 }
47213 static void *_p_wxSliderTo_p_wxWindow(void *x) {
47214 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
47215 }
47216 static void *_p_wxTreebookTo_p_wxWindow(void *x) {
47217 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
47218 }
47219 static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
47220 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
47221 }
47222 static void *_p_wxButtonTo_p_wxWindow(void *x) {
47223 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
47224 }
47225 static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
47226 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
47227 }
47228 static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
47229 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
47230 }
47231 static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) {
47232 return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x));
47233 }
47234 static void *_p_wxColourPickerCtrlTo_p_wxWindow(void *x) {
47235 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
47236 }
47237 static void *_p_wxFilePickerCtrlTo_p_wxWindow(void *x) {
47238 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
47239 }
47240 static void *_p_wxDirPickerCtrlTo_p_wxWindow(void *x) {
47241 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
47242 }
47243 static void *_p_wxFontPickerCtrlTo_p_wxWindow(void *x) {
47244 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
47245 }
47246 static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
47247 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
47248 }
47249 static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47250 return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47251 }
47252 static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47253 return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47254 }
47255 static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47256 return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47257 }
47258 static void *_p_wxTreebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47259 return (void *)((wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47260 }
47261 static void *_p_wxToolbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47262 return (void *)((wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47263 }
47264 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
47265 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
47266 }
47267 static void *_p_wxHyperlinkEventTo_p_wxCommandEvent(void *x) {
47268 return (void *)((wxCommandEvent *) ((wxHyperlinkEvent *) x));
47269 }
47270 static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) {
47271 return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x));
47272 }
47273 static void *_p_wxColourPickerEventTo_p_wxCommandEvent(void *x) {
47274 return (void *)((wxCommandEvent *) ((wxColourPickerEvent *) x));
47275 }
47276 static void *_p_wxFileDirPickerEventTo_p_wxCommandEvent(void *x) {
47277 return (void *)((wxCommandEvent *) ((wxFileDirPickerEvent *) x));
47278 }
47279 static void *_p_wxFontPickerEventTo_p_wxCommandEvent(void *x) {
47280 return (void *)((wxCommandEvent *) ((wxFontPickerEvent *) x));
47281 }
47282 static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
47283 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
47284 }
47285 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
47286 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
47287 }
47288 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
47289 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
47290 }
47291 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
47292 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
47293 }
47294 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
47295 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
47296 }
47297 static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
47298 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47299 }
47300 static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
47301 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47302 }
47303 static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) {
47304 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47305 }
47306 static void *_p_wxTreebookEventTo_p_wxCommandEvent(void *x) {
47307 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47308 }
47309 static void *_p_wxToolbookEventTo_p_wxCommandEvent(void *x) {
47310 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47311 }
47312 static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
47313 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
47314 }
47315 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
47316 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
47317 }
47318 static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
47319 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
47320 }
47321 static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) {
47322 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
47323 }
47324 static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
47325 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
47326 }
47327 static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
47328 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
47329 }
47330 static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
47331 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
47332 }
47333 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
47334 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
47335 }
47336 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
47337 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
47338 }
47339 static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
47340 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
47341 }
47342 static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
47343 return (void *)((wxControlWithItems *) ((wxChoice *) x));
47344 }
47345 static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
47346 return (void *)((wxControlWithItems *) ((wxListBox *) x));
47347 }
47348 static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
47349 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
47350 }
47351 static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
47352 return (void *)((wxValidator *) ((wxPyValidator *) x));
47353 }
47354 static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0};
47355 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
47356 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};
47357 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
47358 static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
47359 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
47360 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
47361 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
47362 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
47363 static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0};
47364 static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0};
47365 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
47366 static swig_type_info _swigt__p_wxBitmapButton = {"_p_wxBitmapButton", "wxBitmapButton *", 0, 0, (void*)0, 0};
47367 static swig_type_info _swigt__p_wxBookCtrlBase = {"_p_wxBookCtrlBase", "wxBookCtrlBase *", 0, 0, (void*)0, 0};
47368 static swig_type_info _swigt__p_wxBookCtrlBaseEvent = {"_p_wxBookCtrlBaseEvent", "wxBookCtrlBaseEvent *", 0, 0, (void*)0, 0};
47369 static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, (void*)0, 0};
47370 static swig_type_info _swigt__p_wxCheckBox = {"_p_wxCheckBox", "wxCheckBox *", 0, 0, (void*)0, 0};
47371 static swig_type_info _swigt__p_wxCheckListBox = {"_p_wxCheckListBox", "wxCheckListBox *", 0, 0, (void*)0, 0};
47372 static swig_type_info _swigt__p_wxChoice = {"_p_wxChoice", "wxChoice *", 0, 0, (void*)0, 0};
47373 static swig_type_info _swigt__p_wxChoicebook = {"_p_wxChoicebook", "wxChoicebook *", 0, 0, (void*)0, 0};
47374 static swig_type_info _swigt__p_wxChoicebookEvent = {"_p_wxChoicebookEvent", "wxChoicebookEvent *", 0, 0, (void*)0, 0};
47375 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
47376 static swig_type_info _swigt__p_wxColourPickerCtrl = {"_p_wxColourPickerCtrl", "wxColourPickerCtrl *", 0, 0, (void*)0, 0};
47377 static swig_type_info _swigt__p_wxColourPickerEvent = {"_p_wxColourPickerEvent", "wxColourPickerEvent *", 0, 0, (void*)0, 0};
47378 static swig_type_info _swigt__p_wxComboBox = {"_p_wxComboBox", "wxComboBox *", 0, 0, (void*)0, 0};
47379 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0};
47380 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
47381 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
47382 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
47383 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
47384 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
47385 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
47386 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
47387 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
47388 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
47389 static swig_type_info _swigt__p_wxContextHelp = {"_p_wxContextHelp", "wxContextHelp *", 0, 0, (void*)0, 0};
47390 static swig_type_info _swigt__p_wxContextHelpButton = {"_p_wxContextHelpButton", "wxContextHelpButton *", 0, 0, (void*)0, 0};
47391 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, (void*)0, 0};
47392 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, (void*)0, 0};
47393 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
47394 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
47395 static swig_type_info _swigt__p_wxDatePickerCtrl = {"_p_wxDatePickerCtrl", "wxDatePickerCtrl *", 0, 0, (void*)0, 0};
47396 static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0};
47397 static swig_type_info _swigt__p_wxDirFilterListCtrl = {"_p_wxDirFilterListCtrl", "wxDirFilterListCtrl *", 0, 0, (void*)0, 0};
47398 static swig_type_info _swigt__p_wxDirPickerCtrl = {"_p_wxDirPickerCtrl", "wxDirPickerCtrl *", 0, 0, (void*)0, 0};
47399 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
47400 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0};
47401 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
47402 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
47403 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
47404 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
47405 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
47406 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
47407 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
47408 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
47409 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
47410 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
47411 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
47412 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
47413 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
47414 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
47415 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
47416 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
47417 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
47418 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
47419 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
47420 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
47421 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
47422 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
47423 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
47424 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
47425 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
47426 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0};
47427 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
47428 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
47429 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
47430 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
47431 static swig_type_info _swigt__p_wxFileDirPickerEvent = {"_p_wxFileDirPickerEvent", "wxFileDirPickerEvent *", 0, 0, (void*)0, 0};
47432 static swig_type_info _swigt__p_wxFilePickerCtrl = {"_p_wxFilePickerCtrl", "wxFilePickerCtrl *", 0, 0, (void*)0, 0};
47433 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
47434 static swig_type_info _swigt__p_wxFontPickerCtrl = {"_p_wxFontPickerCtrl", "wxFontPickerCtrl *", 0, 0, (void*)0, 0};
47435 static swig_type_info _swigt__p_wxFontPickerEvent = {"_p_wxFontPickerEvent", "wxFontPickerEvent *", 0, 0, (void*)0, 0};
47436 static swig_type_info _swigt__p_wxGauge = {"_p_wxGauge", "wxGauge *", 0, 0, (void*)0, 0};
47437 static swig_type_info _swigt__p_wxGenericDirCtrl = {"_p_wxGenericDirCtrl", "wxGenericDirCtrl *", 0, 0, (void*)0, 0};
47438 static swig_type_info _swigt__p_wxGenericDragImage = {"_p_wxGenericDragImage", "wxGenericDragImage *", 0, 0, (void*)0, 0};
47439 static swig_type_info _swigt__p_wxHelpEvent = {"_p_wxHelpEvent", "wxHelpEvent *", 0, 0, (void*)0, 0};
47440 static swig_type_info _swigt__p_wxHelpProvider = {"_p_wxHelpProvider", "wxHelpProvider *", 0, 0, (void*)0, 0};
47441 static swig_type_info _swigt__p_wxHyperlinkCtrl = {"_p_wxHyperlinkCtrl", "wxHyperlinkCtrl *", 0, 0, (void*)0, 0};
47442 static swig_type_info _swigt__p_wxHyperlinkEvent = {"_p_wxHyperlinkEvent", "wxHyperlinkEvent *", 0, 0, (void*)0, 0};
47443 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
47444 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
47445 static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, (void*)0, 0};
47446 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, (void*)0, 0};
47447 static swig_type_info _swigt__p_wxListBox = {"_p_wxListBox", "wxListBox *", 0, 0, (void*)0, 0};
47448 static swig_type_info _swigt__p_wxListEvent = {"_p_wxListEvent", "wxListEvent *", 0, 0, (void*)0, 0};
47449 static swig_type_info _swigt__p_wxListItem = {"_p_wxListItem", "wxListItem *", 0, 0, (void*)0, 0};
47450 static swig_type_info _swigt__p_wxListItemAttr = {"_p_wxListItemAttr", "wxListItemAttr *", 0, 0, (void*)0, 0};
47451 static swig_type_info _swigt__p_wxListView = {"_p_wxListView", "wxListView *", 0, 0, (void*)0, 0};
47452 static swig_type_info _swigt__p_wxListbook = {"_p_wxListbook", "wxListbook *", 0, 0, (void*)0, 0};
47453 static swig_type_info _swigt__p_wxListbookEvent = {"_p_wxListbookEvent", "wxListbookEvent *", 0, 0, (void*)0, 0};
47454 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
47455 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, (void*)0, 0};
47456 static swig_type_info _swigt__p_wxNotebook = {"_p_wxNotebook", "wxNotebook *", 0, 0, (void*)0, 0};
47457 static swig_type_info _swigt__p_wxNotebookEvent = {"_p_wxNotebookEvent", "wxNotebookEvent *", 0, 0, (void*)0, 0};
47458 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0};
47459 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
47460 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
47461 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
47462 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
47463 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
47464 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
47465 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
47466 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
47467 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
47468 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
47469 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
47470 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
47471 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
47472 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
47473 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
47474 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
47475 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
47476 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
47477 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
47478 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
47479 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
47480 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
47481 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
47482 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
47483 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
47484 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
47485 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
47486 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
47487 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
47488 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0};
47489 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
47490 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
47491 static swig_type_info _swigt__p_wxPickerBase = {"_p_wxPickerBase", "wxPickerBase *", 0, 0, (void*)0, 0};
47492 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
47493 static swig_type_info _swigt__p_wxPyControl = {"_p_wxPyControl", "wxPyControl *", 0, 0, (void*)0, 0};
47494 static swig_type_info _swigt__p_wxPyListCtrl = {"_p_wxPyListCtrl", "wxPyListCtrl *", 0, 0, (void*)0, 0};
47495 static swig_type_info _swigt__p_wxPyTreeCtrl = {"_p_wxPyTreeCtrl", "wxPyTreeCtrl *", 0, 0, (void*)0, 0};
47496 static swig_type_info _swigt__p_wxPyTreeItemData = {"_p_wxPyTreeItemData", "wxPyTreeItemData *", 0, 0, (void*)0, 0};
47497 static swig_type_info _swigt__p_wxRadioBox = {"_p_wxRadioBox", "wxRadioBox *", 0, 0, (void*)0, 0};
47498 static swig_type_info _swigt__p_wxRadioButton = {"_p_wxRadioButton", "wxRadioButton *", 0, 0, (void*)0, 0};
47499 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
47500 static swig_type_info _swigt__p_wxScrollBar = {"_p_wxScrollBar", "wxScrollBar *", 0, 0, (void*)0, 0};
47501 static swig_type_info _swigt__p_wxSimpleHelpProvider = {"_p_wxSimpleHelpProvider", "wxSimpleHelpProvider *", 0, 0, (void*)0, 0};
47502 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
47503 static swig_type_info _swigt__p_wxSlider = {"_p_wxSlider", "wxSlider *", 0, 0, (void*)0, 0};
47504 static swig_type_info _swigt__p_wxSpinButton = {"_p_wxSpinButton", "wxSpinButton *", 0, 0, (void*)0, 0};
47505 static swig_type_info _swigt__p_wxSpinCtrl = {"_p_wxSpinCtrl", "wxSpinCtrl *", 0, 0, (void*)0, 0};
47506 static swig_type_info _swigt__p_wxSpinEvent = {"_p_wxSpinEvent", "wxSpinEvent *", 0, 0, (void*)0, 0};
47507 static swig_type_info _swigt__p_wxStaticBitmap = {"_p_wxStaticBitmap", "wxStaticBitmap *", 0, 0, (void*)0, 0};
47508 static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, (void*)0, 0};
47509 static swig_type_info _swigt__p_wxStaticLine = {"_p_wxStaticLine", "wxStaticLine *", 0, 0, (void*)0, 0};
47510 static swig_type_info _swigt__p_wxStaticText = {"_p_wxStaticText", "wxStaticText *", 0, 0, (void*)0, 0};
47511 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
47512 static swig_type_info _swigt__p_wxTextAttr = {"_p_wxTextAttr", "wxTextAttr *", 0, 0, (void*)0, 0};
47513 static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, (void*)0, 0};
47514 static swig_type_info _swigt__p_wxTextUrlEvent = {"_p_wxTextUrlEvent", "wxTextUrlEvent *", 0, 0, (void*)0, 0};
47515 static swig_type_info _swigt__p_wxToggleButton = {"_p_wxToggleButton", "wxToggleButton *", 0, 0, (void*)0, 0};
47516 static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0};
47517 static swig_type_info _swigt__p_wxToolBarBase = {"_p_wxToolBarBase", "wxToolBarBase *", 0, 0, (void*)0, 0};
47518 static swig_type_info _swigt__p_wxToolBarToolBase = {"_p_wxToolBarToolBase", "wxToolBarToolBase *", 0, 0, (void*)0, 0};
47519 static swig_type_info _swigt__p_wxToolbook = {"_p_wxToolbook", "wxToolbook *", 0, 0, (void*)0, 0};
47520 static swig_type_info _swigt__p_wxToolbookEvent = {"_p_wxToolbookEvent", "wxToolbookEvent *", 0, 0, (void*)0, 0};
47521 static swig_type_info _swigt__p_wxTreeEvent = {"_p_wxTreeEvent", "wxTreeEvent *", 0, 0, (void*)0, 0};
47522 static swig_type_info _swigt__p_wxTreeItemId = {"_p_wxTreeItemId", "wxTreeItemId *", 0, 0, (void*)0, 0};
47523 static swig_type_info _swigt__p_wxTreebook = {"_p_wxTreebook", "wxTreebook *", 0, 0, (void*)0, 0};
47524 static swig_type_info _swigt__p_wxTreebookEvent = {"_p_wxTreebookEvent", "wxTreebookEvent *", 0, 0, (void*)0, 0};
47525 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, (void*)0, 0};
47526 static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0};
47527 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
47528 static swig_type_info _swigt__p_wxWindowBase = {"_p_wxWindowBase", "wxWindowBase *", 0, 0, (void*)0, 0};
47529
47530 static swig_type_info *swig_type_initial[] = {
47531 &_swigt__p_bool,
47532 &_swigt__p_char,
47533 &_swigt__p_form_ops_t,
47534 &_swigt__p_int,
47535 &_swigt__p_long,
47536 &_swigt__p_unsigned_char,
47537 &_swigt__p_unsigned_int,
47538 &_swigt__p_unsigned_long,
47539 &_swigt__p_void,
47540 &_swigt__p_wxANIHandler,
47541 &_swigt__p_wxAcceleratorTable,
47542 &_swigt__p_wxActivateEvent,
47543 &_swigt__p_wxArrayInt,
47544 &_swigt__p_wxArrayString,
47545 &_swigt__p_wxBMPHandler,
47546 &_swigt__p_wxBitmap,
47547 &_swigt__p_wxBitmapButton,
47548 &_swigt__p_wxBookCtrlBase,
47549 &_swigt__p_wxBookCtrlBaseEvent,
47550 &_swigt__p_wxBoxSizer,
47551 &_swigt__p_wxButton,
47552 &_swigt__p_wxCURHandler,
47553 &_swigt__p_wxCheckBox,
47554 &_swigt__p_wxCheckListBox,
47555 &_swigt__p_wxChildFocusEvent,
47556 &_swigt__p_wxChoice,
47557 &_swigt__p_wxChoicebook,
47558 &_swigt__p_wxChoicebookEvent,
47559 &_swigt__p_wxClipboardTextEvent,
47560 &_swigt__p_wxCloseEvent,
47561 &_swigt__p_wxColour,
47562 &_swigt__p_wxColourPickerCtrl,
47563 &_swigt__p_wxColourPickerEvent,
47564 &_swigt__p_wxComboBox,
47565 &_swigt__p_wxCommandEvent,
47566 &_swigt__p_wxContextHelp,
47567 &_swigt__p_wxContextHelpButton,
47568 &_swigt__p_wxContextMenuEvent,
47569 &_swigt__p_wxControl,
47570 &_swigt__p_wxControlWithItems,
47571 &_swigt__p_wxCursor,
47572 &_swigt__p_wxDC,
47573 &_swigt__p_wxDateEvent,
47574 &_swigt__p_wxDatePickerCtrl,
47575 &_swigt__p_wxDateTime,
47576 &_swigt__p_wxDirFilterListCtrl,
47577 &_swigt__p_wxDirPickerCtrl,
47578 &_swigt__p_wxDisplayChangedEvent,
47579 &_swigt__p_wxDropFilesEvent,
47580 &_swigt__p_wxDuplexMode,
47581 &_swigt__p_wxEraseEvent,
47582 &_swigt__p_wxEvent,
47583 &_swigt__p_wxEvtHandler,
47584 &_swigt__p_wxFSFile,
47585 &_swigt__p_wxFileDirPickerEvent,
47586 &_swigt__p_wxFilePickerCtrl,
47587 &_swigt__p_wxFileSystem,
47588 &_swigt__p_wxFlexGridSizer,
47589 &_swigt__p_wxFocusEvent,
47590 &_swigt__p_wxFont,
47591 &_swigt__p_wxFontPickerCtrl,
47592 &_swigt__p_wxFontPickerEvent,
47593 &_swigt__p_wxGBSizerItem,
47594 &_swigt__p_wxGIFHandler,
47595 &_swigt__p_wxGauge,
47596 &_swigt__p_wxGenericDirCtrl,
47597 &_swigt__p_wxGenericDragImage,
47598 &_swigt__p_wxGridBagSizer,
47599 &_swigt__p_wxGridSizer,
47600 &_swigt__p_wxHelpEvent,
47601 &_swigt__p_wxHelpProvider,
47602 &_swigt__p_wxHyperlinkCtrl,
47603 &_swigt__p_wxHyperlinkEvent,
47604 &_swigt__p_wxICOHandler,
47605 &_swigt__p_wxIcon,
47606 &_swigt__p_wxIconizeEvent,
47607 &_swigt__p_wxIdleEvent,
47608 &_swigt__p_wxImage,
47609 &_swigt__p_wxImageHandler,
47610 &_swigt__p_wxImageList,
47611 &_swigt__p_wxIndividualLayoutConstraint,
47612 &_swigt__p_wxInitDialogEvent,
47613 &_swigt__p_wxItemContainer,
47614 &_swigt__p_wxJPEGHandler,
47615 &_swigt__p_wxKeyEvent,
47616 &_swigt__p_wxLayoutConstraints,
47617 &_swigt__p_wxListBox,
47618 &_swigt__p_wxListEvent,
47619 &_swigt__p_wxListItem,
47620 &_swigt__p_wxListItemAttr,
47621 &_swigt__p_wxListView,
47622 &_swigt__p_wxListbook,
47623 &_swigt__p_wxListbookEvent,
47624 &_swigt__p_wxMaximizeEvent,
47625 &_swigt__p_wxMemoryDC,
47626 &_swigt__p_wxMenu,
47627 &_swigt__p_wxMenuBar,
47628 &_swigt__p_wxMenuEvent,
47629 &_swigt__p_wxMenuItem,
47630 &_swigt__p_wxMouseCaptureChangedEvent,
47631 &_swigt__p_wxMouseCaptureLostEvent,
47632 &_swigt__p_wxMouseEvent,
47633 &_swigt__p_wxMoveEvent,
47634 &_swigt__p_wxNavigationKeyEvent,
47635 &_swigt__p_wxNcPaintEvent,
47636 &_swigt__p_wxNotebook,
47637 &_swigt__p_wxNotebookEvent,
47638 &_swigt__p_wxNotifyEvent,
47639 &_swigt__p_wxObject,
47640 &_swigt__p_wxPCXHandler,
47641 &_swigt__p_wxPNGHandler,
47642 &_swigt__p_wxPNMHandler,
47643 &_swigt__p_wxPaintEvent,
47644 &_swigt__p_wxPaletteChangedEvent,
47645 &_swigt__p_wxPaperSize,
47646 &_swigt__p_wxPickerBase,
47647 &_swigt__p_wxPoint,
47648 &_swigt__p_wxPyApp,
47649 &_swigt__p_wxPyCommandEvent,
47650 &_swigt__p_wxPyControl,
47651 &_swigt__p_wxPyEvent,
47652 &_swigt__p_wxPyImageHandler,
47653 &_swigt__p_wxPyListCtrl,
47654 &_swigt__p_wxPySizer,
47655 &_swigt__p_wxPyTreeCtrl,
47656 &_swigt__p_wxPyTreeItemData,
47657 &_swigt__p_wxPyValidator,
47658 &_swigt__p_wxQueryNewPaletteEvent,
47659 &_swigt__p_wxRadioBox,
47660 &_swigt__p_wxRadioButton,
47661 &_swigt__p_wxRect,
47662 &_swigt__p_wxScrollBar,
47663 &_swigt__p_wxScrollEvent,
47664 &_swigt__p_wxScrollWinEvent,
47665 &_swigt__p_wxSetCursorEvent,
47666 &_swigt__p_wxShowEvent,
47667 &_swigt__p_wxSimpleHelpProvider,
47668 &_swigt__p_wxSize,
47669 &_swigt__p_wxSizeEvent,
47670 &_swigt__p_wxSizer,
47671 &_swigt__p_wxSizerItem,
47672 &_swigt__p_wxSlider,
47673 &_swigt__p_wxSpinButton,
47674 &_swigt__p_wxSpinCtrl,
47675 &_swigt__p_wxSpinEvent,
47676 &_swigt__p_wxStaticBitmap,
47677 &_swigt__p_wxStaticBox,
47678 &_swigt__p_wxStaticBoxSizer,
47679 &_swigt__p_wxStaticLine,
47680 &_swigt__p_wxStaticText,
47681 &_swigt__p_wxStdDialogButtonSizer,
47682 &_swigt__p_wxString,
47683 &_swigt__p_wxSysColourChangedEvent,
47684 &_swigt__p_wxTIFFHandler,
47685 &_swigt__p_wxTextAttr,
47686 &_swigt__p_wxTextCtrl,
47687 &_swigt__p_wxTextUrlEvent,
47688 &_swigt__p_wxToggleButton,
47689 &_swigt__p_wxToolBar,
47690 &_swigt__p_wxToolBarBase,
47691 &_swigt__p_wxToolBarToolBase,
47692 &_swigt__p_wxToolbook,
47693 &_swigt__p_wxToolbookEvent,
47694 &_swigt__p_wxTreeEvent,
47695 &_swigt__p_wxTreeItemId,
47696 &_swigt__p_wxTreebook,
47697 &_swigt__p_wxTreebookEvent,
47698 &_swigt__p_wxUpdateUIEvent,
47699 &_swigt__p_wxValidator,
47700 &_swigt__p_wxVisualAttributes,
47701 &_swigt__p_wxWindow,
47702 &_swigt__p_wxWindowBase,
47703 &_swigt__p_wxWindowCreateEvent,
47704 &_swigt__p_wxWindowDestroyEvent,
47705 &_swigt__p_wxXPMHandler,
47706 };
47707
47708 static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}};
47709 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
47710 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
47711 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
47712 static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
47713 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
47714 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
47715 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
47716 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
47717 static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}};
47718 static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}};
47719 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
47720 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}};
47721 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}};
47722 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}};
47723 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}};
47724 static swig_cast_info _swigc__p_wxCheckBox[] = { {&_swigt__p_wxCheckBox, 0, 0, 0},{0, 0, 0, 0}};
47725 static swig_cast_info _swigc__p_wxCheckListBox[] = { {&_swigt__p_wxCheckListBox, 0, 0, 0},{0, 0, 0, 0}};
47726 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}};
47727 static swig_cast_info _swigc__p_wxChoicebook[] = { {&_swigt__p_wxChoicebook, 0, 0, 0},{0, 0, 0, 0}};
47728 static swig_cast_info _swigc__p_wxChoicebookEvent[] = { {&_swigt__p_wxChoicebookEvent, 0, 0, 0},{0, 0, 0, 0}};
47729 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
47730 static swig_cast_info _swigc__p_wxColourPickerCtrl[] = { {&_swigt__p_wxColourPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
47731 static swig_cast_info _swigc__p_wxColourPickerEvent[] = { {&_swigt__p_wxColourPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
47732 static swig_cast_info _swigc__p_wxComboBox[] = { {&_swigt__p_wxComboBox, 0, 0, 0},{0, 0, 0, 0}};
47733 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
47734 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
47735 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
47736 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
47737 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
47738 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
47739 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
47740 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
47741 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
47742 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}};
47743 static swig_cast_info _swigc__p_wxContextHelp[] = { {&_swigt__p_wxContextHelp, 0, 0, 0},{0, 0, 0, 0}};
47744 static swig_cast_info _swigc__p_wxContextHelpButton[] = { {&_swigt__p_wxContextHelpButton, 0, 0, 0},{0, 0, 0, 0}};
47745 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}};
47746 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}};
47747 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
47748 static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}};
47749 static swig_cast_info _swigc__p_wxDatePickerCtrl[] = { {&_swigt__p_wxDatePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
47750 static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}};
47751 static swig_cast_info _swigc__p_wxDirFilterListCtrl[] = { {&_swigt__p_wxDirFilterListCtrl, 0, 0, 0},{0, 0, 0, 0}};
47752 static swig_cast_info _swigc__p_wxDirPickerCtrl[] = { {&_swigt__p_wxDirPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
47753 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
47754 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
47755 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
47756 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
47757 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
47758 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
47759 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
47760 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
47761 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
47762 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
47763 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
47764 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
47765 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
47766 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
47767 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
47768 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
47769 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
47770 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
47771 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
47772 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
47773 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
47774 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
47775 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
47776 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
47777 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
47778 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
47779 static swig_cast_info _swigc__p_wxEvent[] = { {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEvent, 0, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxEvent, 0, 0},{0, 0, 0, 0}};
47780 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
47781 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
47782 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
47783 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
47784 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}};
47785 static swig_cast_info _swigc__p_wxFileDirPickerEvent[] = { {&_swigt__p_wxFileDirPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
47786 static swig_cast_info _swigc__p_wxFilePickerCtrl[] = { {&_swigt__p_wxFilePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
47787 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
47788 static swig_cast_info _swigc__p_wxFontPickerCtrl[] = { {&_swigt__p_wxFontPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
47789 static swig_cast_info _swigc__p_wxFontPickerEvent[] = { {&_swigt__p_wxFontPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
47790 static swig_cast_info _swigc__p_wxGauge[] = { {&_swigt__p_wxGauge, 0, 0, 0},{0, 0, 0, 0}};
47791 static swig_cast_info _swigc__p_wxGenericDirCtrl[] = { {&_swigt__p_wxGenericDirCtrl, 0, 0, 0},{0, 0, 0, 0}};
47792 static swig_cast_info _swigc__p_wxGenericDragImage[] = { {&_swigt__p_wxGenericDragImage, 0, 0, 0},{0, 0, 0, 0}};
47793 static swig_cast_info _swigc__p_wxHelpEvent[] = { {&_swigt__p_wxHelpEvent, 0, 0, 0},{0, 0, 0, 0}};
47794 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}};
47795 static swig_cast_info _swigc__p_wxHyperlinkCtrl[] = { {&_swigt__p_wxHyperlinkCtrl, 0, 0, 0},{0, 0, 0, 0}};
47796 static swig_cast_info _swigc__p_wxHyperlinkEvent[] = { {&_swigt__p_wxHyperlinkEvent, 0, 0, 0},{0, 0, 0, 0}};
47797 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
47798 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
47799 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}};
47800 static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
47801 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}};
47802 static swig_cast_info _swigc__p_wxListEvent[] = { {&_swigt__p_wxListEvent, 0, 0, 0},{0, 0, 0, 0}};
47803 static swig_cast_info _swigc__p_wxListItem[] = { {&_swigt__p_wxListItem, 0, 0, 0},{0, 0, 0, 0}};
47804 static swig_cast_info _swigc__p_wxListItemAttr[] = { {&_swigt__p_wxListItemAttr, 0, 0, 0},{0, 0, 0, 0}};
47805 static swig_cast_info _swigc__p_wxListView[] = { {&_swigt__p_wxListView, 0, 0, 0},{0, 0, 0, 0}};
47806 static swig_cast_info _swigc__p_wxListbook[] = { {&_swigt__p_wxListbook, 0, 0, 0},{0, 0, 0, 0}};
47807 static swig_cast_info _swigc__p_wxListbookEvent[] = { {&_swigt__p_wxListbookEvent, 0, 0, 0},{0, 0, 0, 0}};
47808 static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}};
47809 static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
47810 static swig_cast_info _swigc__p_wxNotebook[] = { {&_swigt__p_wxNotebook, 0, 0, 0},{0, 0, 0, 0}};
47811 static swig_cast_info _swigc__p_wxNotebookEvent[] = { {&_swigt__p_wxNotebookEvent, 0, 0, 0},{0, 0, 0, 0}};
47812 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}};
47813 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
47814 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
47815 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
47816 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
47817 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
47818 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
47819 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
47820 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
47821 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
47822 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
47823 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
47824 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
47825 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
47826 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
47827 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
47828 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
47829 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
47830 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
47831 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
47832 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
47833 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
47834 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
47835 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
47836 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
47837 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
47838 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
47839 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
47840 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
47841 static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
47842 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
47843 static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxObject, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextHelp, _p_wxContextHelpTo_p_wxObject, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxListItem, _p_wxListItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGenericDragImage, _p_wxGenericDragImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBarToolBase, _p_wxToolBarToolBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
47844 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
47845 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}};
47846 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
47847 static swig_cast_info _swigc__p_wxPyControl[] = { {&_swigt__p_wxPyControl, 0, 0, 0},{0, 0, 0, 0}};
47848 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}};
47849 static swig_cast_info _swigc__p_wxPyTreeCtrl[] = { {&_swigt__p_wxPyTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
47850 static swig_cast_info _swigc__p_wxPyTreeItemData[] = { {&_swigt__p_wxPyTreeItemData, 0, 0, 0},{0, 0, 0, 0}};
47851 static swig_cast_info _swigc__p_wxRadioBox[] = { {&_swigt__p_wxRadioBox, 0, 0, 0},{0, 0, 0, 0}};
47852 static swig_cast_info _swigc__p_wxRadioButton[] = { {&_swigt__p_wxRadioButton, 0, 0, 0},{0, 0, 0, 0}};
47853 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
47854 static swig_cast_info _swigc__p_wxScrollBar[] = { {&_swigt__p_wxScrollBar, 0, 0, 0},{0, 0, 0, 0}};
47855 static swig_cast_info _swigc__p_wxSimpleHelpProvider[] = { {&_swigt__p_wxSimpleHelpProvider, 0, 0, 0},{0, 0, 0, 0}};
47856 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
47857 static swig_cast_info _swigc__p_wxSlider[] = { {&_swigt__p_wxSlider, 0, 0, 0},{0, 0, 0, 0}};
47858 static swig_cast_info _swigc__p_wxSpinButton[] = { {&_swigt__p_wxSpinButton, 0, 0, 0},{0, 0, 0, 0}};
47859 static swig_cast_info _swigc__p_wxSpinCtrl[] = { {&_swigt__p_wxSpinCtrl, 0, 0, 0},{0, 0, 0, 0}};
47860 static swig_cast_info _swigc__p_wxSpinEvent[] = { {&_swigt__p_wxSpinEvent, 0, 0, 0},{0, 0, 0, 0}};
47861 static swig_cast_info _swigc__p_wxStaticBitmap[] = { {&_swigt__p_wxStaticBitmap, 0, 0, 0},{0, 0, 0, 0}};
47862 static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}};
47863 static swig_cast_info _swigc__p_wxStaticLine[] = { {&_swigt__p_wxStaticLine, 0, 0, 0},{0, 0, 0, 0}};
47864 static swig_cast_info _swigc__p_wxStaticText[] = { {&_swigt__p_wxStaticText, 0, 0, 0},{0, 0, 0, 0}};
47865 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
47866 static swig_cast_info _swigc__p_wxTextAttr[] = { {&_swigt__p_wxTextAttr, 0, 0, 0},{0, 0, 0, 0}};
47867 static swig_cast_info _swigc__p_wxTextCtrl[] = { {&_swigt__p_wxTextCtrl, 0, 0, 0},{0, 0, 0, 0}};
47868 static swig_cast_info _swigc__p_wxTextUrlEvent[] = { {&_swigt__p_wxTextUrlEvent, 0, 0, 0},{0, 0, 0, 0}};
47869 static swig_cast_info _swigc__p_wxToggleButton[] = { {&_swigt__p_wxToggleButton, 0, 0, 0},{0, 0, 0, 0}};
47870 static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}};
47871 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}};
47872 static swig_cast_info _swigc__p_wxToolBarToolBase[] = { {&_swigt__p_wxToolBarToolBase, 0, 0, 0},{0, 0, 0, 0}};
47873 static swig_cast_info _swigc__p_wxToolbook[] = { {&_swigt__p_wxToolbook, 0, 0, 0},{0, 0, 0, 0}};
47874 static swig_cast_info _swigc__p_wxToolbookEvent[] = { {&_swigt__p_wxToolbookEvent, 0, 0, 0},{0, 0, 0, 0}};
47875 static swig_cast_info _swigc__p_wxTreeEvent[] = { {&_swigt__p_wxTreeEvent, 0, 0, 0},{0, 0, 0, 0}};
47876 static swig_cast_info _swigc__p_wxTreeItemId[] = { {&_swigt__p_wxTreeItemId, 0, 0, 0},{0, 0, 0, 0}};
47877 static swig_cast_info _swigc__p_wxTreebook[] = { {&_swigt__p_wxTreebook, 0, 0, 0},{0, 0, 0, 0}};
47878 static swig_cast_info _swigc__p_wxTreebookEvent[] = { {&_swigt__p_wxTreebookEvent, 0, 0, 0},{0, 0, 0, 0}};
47879 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}};
47880 static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}};
47881 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}};
47882 static swig_cast_info _swigc__p_wxWindowBase[] = { {&_swigt__p_wxWindowBase, 0, 0, 0},{0, 0, 0, 0}};
47883
47884 static swig_cast_info *swig_cast_initial[] = {
47885 _swigc__p_bool,
47886 _swigc__p_char,
47887 _swigc__p_form_ops_t,
47888 _swigc__p_int,
47889 _swigc__p_long,
47890 _swigc__p_unsigned_char,
47891 _swigc__p_unsigned_int,
47892 _swigc__p_unsigned_long,
47893 _swigc__p_void,
47894 _swigc__p_wxANIHandler,
47895 _swigc__p_wxAcceleratorTable,
47896 _swigc__p_wxActivateEvent,
47897 _swigc__p_wxArrayInt,
47898 _swigc__p_wxArrayString,
47899 _swigc__p_wxBMPHandler,
47900 _swigc__p_wxBitmap,
47901 _swigc__p_wxBitmapButton,
47902 _swigc__p_wxBookCtrlBase,
47903 _swigc__p_wxBookCtrlBaseEvent,
47904 _swigc__p_wxBoxSizer,
47905 _swigc__p_wxButton,
47906 _swigc__p_wxCURHandler,
47907 _swigc__p_wxCheckBox,
47908 _swigc__p_wxCheckListBox,
47909 _swigc__p_wxChildFocusEvent,
47910 _swigc__p_wxChoice,
47911 _swigc__p_wxChoicebook,
47912 _swigc__p_wxChoicebookEvent,
47913 _swigc__p_wxClipboardTextEvent,
47914 _swigc__p_wxCloseEvent,
47915 _swigc__p_wxColour,
47916 _swigc__p_wxColourPickerCtrl,
47917 _swigc__p_wxColourPickerEvent,
47918 _swigc__p_wxComboBox,
47919 _swigc__p_wxCommandEvent,
47920 _swigc__p_wxContextHelp,
47921 _swigc__p_wxContextHelpButton,
47922 _swigc__p_wxContextMenuEvent,
47923 _swigc__p_wxControl,
47924 _swigc__p_wxControlWithItems,
47925 _swigc__p_wxCursor,
47926 _swigc__p_wxDC,
47927 _swigc__p_wxDateEvent,
47928 _swigc__p_wxDatePickerCtrl,
47929 _swigc__p_wxDateTime,
47930 _swigc__p_wxDirFilterListCtrl,
47931 _swigc__p_wxDirPickerCtrl,
47932 _swigc__p_wxDisplayChangedEvent,
47933 _swigc__p_wxDropFilesEvent,
47934 _swigc__p_wxDuplexMode,
47935 _swigc__p_wxEraseEvent,
47936 _swigc__p_wxEvent,
47937 _swigc__p_wxEvtHandler,
47938 _swigc__p_wxFSFile,
47939 _swigc__p_wxFileDirPickerEvent,
47940 _swigc__p_wxFilePickerCtrl,
47941 _swigc__p_wxFileSystem,
47942 _swigc__p_wxFlexGridSizer,
47943 _swigc__p_wxFocusEvent,
47944 _swigc__p_wxFont,
47945 _swigc__p_wxFontPickerCtrl,
47946 _swigc__p_wxFontPickerEvent,
47947 _swigc__p_wxGBSizerItem,
47948 _swigc__p_wxGIFHandler,
47949 _swigc__p_wxGauge,
47950 _swigc__p_wxGenericDirCtrl,
47951 _swigc__p_wxGenericDragImage,
47952 _swigc__p_wxGridBagSizer,
47953 _swigc__p_wxGridSizer,
47954 _swigc__p_wxHelpEvent,
47955 _swigc__p_wxHelpProvider,
47956 _swigc__p_wxHyperlinkCtrl,
47957 _swigc__p_wxHyperlinkEvent,
47958 _swigc__p_wxICOHandler,
47959 _swigc__p_wxIcon,
47960 _swigc__p_wxIconizeEvent,
47961 _swigc__p_wxIdleEvent,
47962 _swigc__p_wxImage,
47963 _swigc__p_wxImageHandler,
47964 _swigc__p_wxImageList,
47965 _swigc__p_wxIndividualLayoutConstraint,
47966 _swigc__p_wxInitDialogEvent,
47967 _swigc__p_wxItemContainer,
47968 _swigc__p_wxJPEGHandler,
47969 _swigc__p_wxKeyEvent,
47970 _swigc__p_wxLayoutConstraints,
47971 _swigc__p_wxListBox,
47972 _swigc__p_wxListEvent,
47973 _swigc__p_wxListItem,
47974 _swigc__p_wxListItemAttr,
47975 _swigc__p_wxListView,
47976 _swigc__p_wxListbook,
47977 _swigc__p_wxListbookEvent,
47978 _swigc__p_wxMaximizeEvent,
47979 _swigc__p_wxMemoryDC,
47980 _swigc__p_wxMenu,
47981 _swigc__p_wxMenuBar,
47982 _swigc__p_wxMenuEvent,
47983 _swigc__p_wxMenuItem,
47984 _swigc__p_wxMouseCaptureChangedEvent,
47985 _swigc__p_wxMouseCaptureLostEvent,
47986 _swigc__p_wxMouseEvent,
47987 _swigc__p_wxMoveEvent,
47988 _swigc__p_wxNavigationKeyEvent,
47989 _swigc__p_wxNcPaintEvent,
47990 _swigc__p_wxNotebook,
47991 _swigc__p_wxNotebookEvent,
47992 _swigc__p_wxNotifyEvent,
47993 _swigc__p_wxObject,
47994 _swigc__p_wxPCXHandler,
47995 _swigc__p_wxPNGHandler,
47996 _swigc__p_wxPNMHandler,
47997 _swigc__p_wxPaintEvent,
47998 _swigc__p_wxPaletteChangedEvent,
47999 _swigc__p_wxPaperSize,
48000 _swigc__p_wxPickerBase,
48001 _swigc__p_wxPoint,
48002 _swigc__p_wxPyApp,
48003 _swigc__p_wxPyCommandEvent,
48004 _swigc__p_wxPyControl,
48005 _swigc__p_wxPyEvent,
48006 _swigc__p_wxPyImageHandler,
48007 _swigc__p_wxPyListCtrl,
48008 _swigc__p_wxPySizer,
48009 _swigc__p_wxPyTreeCtrl,
48010 _swigc__p_wxPyTreeItemData,
48011 _swigc__p_wxPyValidator,
48012 _swigc__p_wxQueryNewPaletteEvent,
48013 _swigc__p_wxRadioBox,
48014 _swigc__p_wxRadioButton,
48015 _swigc__p_wxRect,
48016 _swigc__p_wxScrollBar,
48017 _swigc__p_wxScrollEvent,
48018 _swigc__p_wxScrollWinEvent,
48019 _swigc__p_wxSetCursorEvent,
48020 _swigc__p_wxShowEvent,
48021 _swigc__p_wxSimpleHelpProvider,
48022 _swigc__p_wxSize,
48023 _swigc__p_wxSizeEvent,
48024 _swigc__p_wxSizer,
48025 _swigc__p_wxSizerItem,
48026 _swigc__p_wxSlider,
48027 _swigc__p_wxSpinButton,
48028 _swigc__p_wxSpinCtrl,
48029 _swigc__p_wxSpinEvent,
48030 _swigc__p_wxStaticBitmap,
48031 _swigc__p_wxStaticBox,
48032 _swigc__p_wxStaticBoxSizer,
48033 _swigc__p_wxStaticLine,
48034 _swigc__p_wxStaticText,
48035 _swigc__p_wxStdDialogButtonSizer,
48036 _swigc__p_wxString,
48037 _swigc__p_wxSysColourChangedEvent,
48038 _swigc__p_wxTIFFHandler,
48039 _swigc__p_wxTextAttr,
48040 _swigc__p_wxTextCtrl,
48041 _swigc__p_wxTextUrlEvent,
48042 _swigc__p_wxToggleButton,
48043 _swigc__p_wxToolBar,
48044 _swigc__p_wxToolBarBase,
48045 _swigc__p_wxToolBarToolBase,
48046 _swigc__p_wxToolbook,
48047 _swigc__p_wxToolbookEvent,
48048 _swigc__p_wxTreeEvent,
48049 _swigc__p_wxTreeItemId,
48050 _swigc__p_wxTreebook,
48051 _swigc__p_wxTreebookEvent,
48052 _swigc__p_wxUpdateUIEvent,
48053 _swigc__p_wxValidator,
48054 _swigc__p_wxVisualAttributes,
48055 _swigc__p_wxWindow,
48056 _swigc__p_wxWindowBase,
48057 _swigc__p_wxWindowCreateEvent,
48058 _swigc__p_wxWindowDestroyEvent,
48059 _swigc__p_wxXPMHandler,
48060 };
48061
48062
48063 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
48064
48065 static swig_const_info swig_const_table[] = {
48066 {0, 0, 0, 0.0, 0, 0}};
48067
48068 #ifdef __cplusplus
48069 }
48070 #endif
48071 /* -----------------------------------------------------------------------------
48072 * Type initialization:
48073 * This problem is tough by the requirement that no dynamic
48074 * memory is used. Also, since swig_type_info structures store pointers to
48075 * swig_cast_info structures and swig_cast_info structures store pointers back
48076 * to swig_type_info structures, we need some lookup code at initialization.
48077 * The idea is that swig generates all the structures that are needed.
48078 * The runtime then collects these partially filled structures.
48079 * The SWIG_InitializeModule function takes these initial arrays out of
48080 * swig_module, and does all the lookup, filling in the swig_module.types
48081 * array with the correct data and linking the correct swig_cast_info
48082 * structures together.
48083 *
48084 * The generated swig_type_info structures are assigned staticly to an initial
48085 * array. We just loop though that array, and handle each type individually.
48086 * First we lookup if this type has been already loaded, and if so, use the
48087 * loaded structure instead of the generated one. Then we have to fill in the
48088 * cast linked list. The cast data is initially stored in something like a
48089 * two-dimensional array. Each row corresponds to a type (there are the same
48090 * number of rows as there are in the swig_type_initial array). Each entry in
48091 * a column is one of the swig_cast_info structures for that type.
48092 * The cast_initial array is actually an array of arrays, because each row has
48093 * a variable number of columns. So to actually build the cast linked list,
48094 * we find the array of casts associated with the type, and loop through it
48095 * adding the casts to the list. The one last trick we need to do is making
48096 * sure the type pointer in the swig_cast_info struct is correct.
48097 *
48098 * First off, we lookup the cast->type name to see if it is already loaded.
48099 * There are three cases to handle:
48100 * 1) If the cast->type has already been loaded AND the type we are adding
48101 * casting info to has not been loaded (it is in this module), THEN we
48102 * replace the cast->type pointer with the type pointer that has already
48103 * been loaded.
48104 * 2) If BOTH types (the one we are adding casting info to, and the
48105 * cast->type) are loaded, THEN the cast info has already been loaded by
48106 * the previous module so we just ignore it.
48107 * 3) Finally, if cast->type has not already been loaded, then we add that
48108 * swig_cast_info to the linked list (because the cast->type) pointer will
48109 * be correct.
48110 * ----------------------------------------------------------------------------- */
48111
48112 #ifdef __cplusplus
48113 extern "C" {
48114 #if 0
48115 } /* c-mode */
48116 #endif
48117 #endif
48118
48119 #if 0
48120 #define SWIGRUNTIME_DEBUG
48121 #endif
48122
48123 SWIGRUNTIME void
48124 SWIG_InitializeModule(void *clientdata) {
48125 size_t i;
48126 swig_module_info *module_head;
48127 static int init_run = 0;
48128
48129 clientdata = clientdata;
48130
48131 if (init_run) return;
48132 init_run = 1;
48133
48134 /* Initialize the swig_module */
48135 swig_module.type_initial = swig_type_initial;
48136 swig_module.cast_initial = swig_cast_initial;
48137
48138 /* Try and load any already created modules */
48139 module_head = SWIG_GetModule(clientdata);
48140 if (module_head) {
48141 swig_module.next = module_head->next;
48142 module_head->next = &swig_module;
48143 } else {
48144 /* This is the first module loaded */
48145 swig_module.next = &swig_module;
48146 SWIG_SetModule(clientdata, &swig_module);
48147 }
48148
48149 /* Now work on filling in swig_module.types */
48150 #ifdef SWIGRUNTIME_DEBUG
48151 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
48152 #endif
48153 for (i = 0; i < swig_module.size; ++i) {
48154 swig_type_info *type = 0;
48155 swig_type_info *ret;
48156 swig_cast_info *cast;
48157
48158 #ifdef SWIGRUNTIME_DEBUG
48159 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
48160 #endif
48161
48162 /* if there is another module already loaded */
48163 if (swig_module.next != &swig_module) {
48164 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
48165 }
48166 if (type) {
48167 /* Overwrite clientdata field */
48168 #ifdef SWIGRUNTIME_DEBUG
48169 printf("SWIG_InitializeModule: found type %s\n", type->name);
48170 #endif
48171 if (swig_module.type_initial[i]->clientdata) {
48172 type->clientdata = swig_module.type_initial[i]->clientdata;
48173 #ifdef SWIGRUNTIME_DEBUG
48174 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
48175 #endif
48176 }
48177 } else {
48178 type = swig_module.type_initial[i];
48179 }
48180
48181 /* Insert casting types */
48182 cast = swig_module.cast_initial[i];
48183 while (cast->type) {
48184 /* Don't need to add information already in the list */
48185 ret = 0;
48186 #ifdef SWIGRUNTIME_DEBUG
48187 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
48188 #endif
48189 if (swig_module.next != &swig_module) {
48190 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
48191 #ifdef SWIGRUNTIME_DEBUG
48192 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
48193 #endif
48194 }
48195 if (ret) {
48196 if (type == swig_module.type_initial[i]) {
48197 #ifdef SWIGRUNTIME_DEBUG
48198 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
48199 #endif
48200 cast->type = ret;
48201 ret = 0;
48202 } else {
48203 /* Check for casting already in the list */
48204 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
48205 #ifdef SWIGRUNTIME_DEBUG
48206 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
48207 #endif
48208 if (!ocast) ret = 0;
48209 }
48210 }
48211
48212 if (!ret) {
48213 #ifdef SWIGRUNTIME_DEBUG
48214 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
48215 #endif
48216 if (type->cast) {
48217 type->cast->prev = cast;
48218 cast->next = type->cast;
48219 }
48220 type->cast = cast;
48221 }
48222 cast++;
48223 }
48224 /* Set entry in modules->types array equal to the type */
48225 swig_module.types[i] = type;
48226 }
48227 swig_module.types[i] = 0;
48228
48229 #ifdef SWIGRUNTIME_DEBUG
48230 printf("**** SWIG_InitializeModule: Cast List ******\n");
48231 for (i = 0; i < swig_module.size; ++i) {
48232 int j = 0;
48233 swig_cast_info *cast = swig_module.cast_initial[i];
48234 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
48235 while (cast->type) {
48236 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
48237 cast++;
48238 ++j;
48239 }
48240 printf("---- Total casts: %d\n",j);
48241 }
48242 printf("**** SWIG_InitializeModule: Cast List ******\n");
48243 #endif
48244 }
48245
48246 /* This function will propagate the clientdata field of type to
48247 * any new swig_type_info structures that have been added into the list
48248 * of equivalent types. It is like calling
48249 * SWIG_TypeClientData(type, clientdata) a second time.
48250 */
48251 SWIGRUNTIME void
48252 SWIG_PropagateClientData(void) {
48253 size_t i;
48254 swig_cast_info *equiv;
48255 static int init_run = 0;
48256
48257 if (init_run) return;
48258 init_run = 1;
48259
48260 for (i = 0; i < swig_module.size; i++) {
48261 if (swig_module.types[i]->clientdata) {
48262 equiv = swig_module.types[i]->cast;
48263 while (equiv) {
48264 if (!equiv->converter) {
48265 if (equiv->type && !equiv->type->clientdata)
48266 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
48267 }
48268 equiv = equiv->next;
48269 }
48270 }
48271 }
48272 }
48273
48274 #ifdef __cplusplus
48275 #if 0
48276 {
48277 /* c-mode */
48278 #endif
48279 }
48280 #endif
48281
48282
48283
48284 #ifdef __cplusplus
48285 extern "C" {
48286 #endif
48287
48288 /* Python-specific SWIG API */
48289 #define SWIG_newvarlink() SWIG_Python_newvarlink()
48290 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
48291 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
48292
48293 /* -----------------------------------------------------------------------------
48294 * global variable support code.
48295 * ----------------------------------------------------------------------------- */
48296
48297 typedef struct swig_globalvar {
48298 char *name; /* Name of global variable */
48299 PyObject *(*get_attr)(void); /* Return the current value */
48300 int (*set_attr)(PyObject *); /* Set the value */
48301 struct swig_globalvar *next;
48302 } swig_globalvar;
48303
48304 typedef struct swig_varlinkobject {
48305 PyObject_HEAD
48306 swig_globalvar *vars;
48307 } swig_varlinkobject;
48308
48309 SWIGINTERN PyObject *
48310 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
48311 return PyString_FromString("<Swig global variables>");
48312 }
48313
48314 SWIGINTERN PyObject *
48315 swig_varlink_str(swig_varlinkobject *v) {
48316 PyObject *str = PyString_FromString("(");
48317 swig_globalvar *var;
48318 for (var = v->vars; var; var=var->next) {
48319 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
48320 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
48321 }
48322 PyString_ConcatAndDel(&str,PyString_FromString(")"));
48323 return str;
48324 }
48325
48326 SWIGINTERN int
48327 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
48328 PyObject *str = swig_varlink_str(v);
48329 fprintf(fp,"Swig global variables ");
48330 fprintf(fp,"%s\n", PyString_AsString(str));
48331 Py_DECREF(str);
48332 return 0;
48333 }
48334
48335 SWIGINTERN void
48336 swig_varlink_dealloc(swig_varlinkobject *v) {
48337 swig_globalvar *var = v->vars;
48338 while (var) {
48339 swig_globalvar *n = var->next;
48340 free(var->name);
48341 free(var);
48342 var = n;
48343 }
48344 }
48345
48346 SWIGINTERN PyObject *
48347 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
48348 PyObject *res = NULL;
48349 swig_globalvar *var = v->vars;
48350 while (var) {
48351 if (strcmp(var->name,n) == 0) {
48352 res = (*var->get_attr)();
48353 break;
48354 }
48355 var = var->next;
48356 }
48357 if (res == NULL && !PyErr_Occurred()) {
48358 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
48359 }
48360 return res;
48361 }
48362
48363 SWIGINTERN int
48364 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
48365 int res = 1;
48366 swig_globalvar *var = v->vars;
48367 while (var) {
48368 if (strcmp(var->name,n) == 0) {
48369 res = (*var->set_attr)(p);
48370 break;
48371 }
48372 var = var->next;
48373 }
48374 if (res == 1 && !PyErr_Occurred()) {
48375 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
48376 }
48377 return res;
48378 }
48379
48380 SWIGINTERN PyTypeObject*
48381 swig_varlink_type(void) {
48382 static char varlink__doc__[] = "Swig var link object";
48383 static PyTypeObject varlink_type;
48384 static int type_init = 0;
48385 if (!type_init) {
48386 const PyTypeObject tmp
48387 = {
48388 PyObject_HEAD_INIT(NULL)
48389 0, /* Number of items in variable part (ob_size) */
48390 (char *)"swigvarlink", /* Type name (tp_name) */
48391 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
48392 0, /* Itemsize (tp_itemsize) */
48393 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
48394 (printfunc) swig_varlink_print, /* Print (tp_print) */
48395 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
48396 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
48397 0, /* tp_compare */
48398 (reprfunc) swig_varlink_repr, /* tp_repr */
48399 0, /* tp_as_number */
48400 0, /* tp_as_sequence */
48401 0, /* tp_as_mapping */
48402 0, /* tp_hash */
48403 0, /* tp_call */
48404 (reprfunc)swig_varlink_str, /* tp_str */
48405 0, /* tp_getattro */
48406 0, /* tp_setattro */
48407 0, /* tp_as_buffer */
48408 0, /* tp_flags */
48409 varlink__doc__, /* tp_doc */
48410 0, /* tp_traverse */
48411 0, /* tp_clear */
48412 0, /* tp_richcompare */
48413 0, /* tp_weaklistoffset */
48414 #if PY_VERSION_HEX >= 0x02020000
48415 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
48416 #endif
48417 #if PY_VERSION_HEX >= 0x02030000
48418 0, /* tp_del */
48419 #endif
48420 #ifdef COUNT_ALLOCS
48421 0,0,0,0 /* tp_alloc -> tp_next */
48422 #endif
48423 };
48424 varlink_type = tmp;
48425 varlink_type.ob_type = &PyType_Type;
48426 type_init = 1;
48427 }
48428 return &varlink_type;
48429 }
48430
48431 /* Create a variable linking object for use later */
48432 SWIGINTERN PyObject *
48433 SWIG_Python_newvarlink(void) {
48434 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
48435 if (result) {
48436 result->vars = 0;
48437 }
48438 return ((PyObject*) result);
48439 }
48440
48441 SWIGINTERN void
48442 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
48443 swig_varlinkobject *v = (swig_varlinkobject *) p;
48444 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
48445 if (gv) {
48446 size_t size = strlen(name)+1;
48447 gv->name = (char *)malloc(size);
48448 if (gv->name) {
48449 strncpy(gv->name,name,size);
48450 gv->get_attr = get_attr;
48451 gv->set_attr = set_attr;
48452 gv->next = v->vars;
48453 }
48454 }
48455 v->vars = gv;
48456 }
48457
48458 SWIGINTERN PyObject *
48459 SWIG_globals() {
48460 static PyObject *_SWIG_globals = 0;
48461 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
48462 return _SWIG_globals;
48463 }
48464
48465 /* -----------------------------------------------------------------------------
48466 * constants/methods manipulation
48467 * ----------------------------------------------------------------------------- */
48468
48469 /* Install Constants */
48470 SWIGINTERN void
48471 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
48472 PyObject *obj = 0;
48473 size_t i;
48474 for (i = 0; constants[i].type; ++i) {
48475 switch(constants[i].type) {
48476 case SWIG_PY_POINTER:
48477 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
48478 break;
48479 case SWIG_PY_BINARY:
48480 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
48481 break;
48482 default:
48483 obj = 0;
48484 break;
48485 }
48486 if (obj) {
48487 PyDict_SetItemString(d, constants[i].name, obj);
48488 Py_DECREF(obj);
48489 }
48490 }
48491 }
48492
48493 /* -----------------------------------------------------------------------------*/
48494 /* Fix SwigMethods to carry the callback ptrs when needed */
48495 /* -----------------------------------------------------------------------------*/
48496
48497 SWIGINTERN void
48498 SWIG_Python_FixMethods(PyMethodDef *methods,
48499 swig_const_info *const_table,
48500 swig_type_info **types,
48501 swig_type_info **types_initial) {
48502 size_t i;
48503 for (i = 0; methods[i].ml_name; ++i) {
48504 const char *c = methods[i].ml_doc;
48505 if (c && (c = strstr(c, "swig_ptr: "))) {
48506 int j;
48507 swig_const_info *ci = 0;
48508 const char *name = c + 10;
48509 for (j = 0; const_table[j].type; ++j) {
48510 if (strncmp(const_table[j].name, name,
48511 strlen(const_table[j].name)) == 0) {
48512 ci = &(const_table[j]);
48513 break;
48514 }
48515 }
48516 if (ci) {
48517 size_t shift = (ci->ptype) - types;
48518 swig_type_info *ty = types_initial[shift];
48519 size_t ldoc = (c - methods[i].ml_doc);
48520 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
48521 char *ndoc = (char*)malloc(ldoc + lptr + 10);
48522 if (ndoc) {
48523 char *buff = ndoc;
48524 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
48525 if (ptr) {
48526 strncpy(buff, methods[i].ml_doc, ldoc);
48527 buff += ldoc;
48528 strncpy(buff, "swig_ptr: ", 10);
48529 buff += 10;
48530 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
48531 methods[i].ml_doc = ndoc;
48532 }
48533 }
48534 }
48535 }
48536 }
48537 }
48538
48539 #ifdef __cplusplus
48540 }
48541 #endif
48542
48543 /* -----------------------------------------------------------------------------*
48544 * Partial Init method
48545 * -----------------------------------------------------------------------------*/
48546
48547 #ifdef __cplusplus
48548 extern "C"
48549 #endif
48550 SWIGEXPORT void SWIG_init(void) {
48551 PyObject *m, *d;
48552
48553 /* Fix SwigMethods to carry the callback ptrs when needed */
48554 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
48555
48556 m = Py_InitModule((char *) SWIG_name, SwigMethods);
48557 d = PyModule_GetDict(m);
48558
48559 SWIG_InitializeModule(0);
48560 SWIG_InstallConstants(d,swig_const_table);
48561
48562
48563 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
48564 SWIG_addvarlink(SWIG_globals(),(char*)"ButtonNameStr",ButtonNameStr_get, ButtonNameStr_set);
48565 SWIG_Python_SetConstant(d, "BU_LEFT",SWIG_From_int(static_cast< int >(wxBU_LEFT)));
48566 SWIG_Python_SetConstant(d, "BU_TOP",SWIG_From_int(static_cast< int >(wxBU_TOP)));
48567 SWIG_Python_SetConstant(d, "BU_RIGHT",SWIG_From_int(static_cast< int >(wxBU_RIGHT)));
48568 SWIG_Python_SetConstant(d, "BU_BOTTOM",SWIG_From_int(static_cast< int >(wxBU_BOTTOM)));
48569 SWIG_Python_SetConstant(d, "BU_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBU_ALIGN_MASK)));
48570 SWIG_Python_SetConstant(d, "BU_EXACTFIT",SWIG_From_int(static_cast< int >(wxBU_EXACTFIT)));
48571 SWIG_Python_SetConstant(d, "BU_AUTODRAW",SWIG_From_int(static_cast< int >(wxBU_AUTODRAW)));
48572 SWIG_addvarlink(SWIG_globals(),(char*)"CheckBoxNameStr",CheckBoxNameStr_get, CheckBoxNameStr_set);
48573 SWIG_Python_SetConstant(d, "CHK_2STATE",SWIG_From_int(static_cast< int >(wxCHK_2STATE)));
48574 SWIG_Python_SetConstant(d, "CHK_3STATE",SWIG_From_int(static_cast< int >(wxCHK_3STATE)));
48575 SWIG_Python_SetConstant(d, "CHK_ALLOW_3RD_STATE_FOR_USER",SWIG_From_int(static_cast< int >(wxCHK_ALLOW_3RD_STATE_FOR_USER)));
48576 SWIG_Python_SetConstant(d, "CHK_UNCHECKED",SWIG_From_int(static_cast< int >(wxCHK_UNCHECKED)));
48577 SWIG_Python_SetConstant(d, "CHK_CHECKED",SWIG_From_int(static_cast< int >(wxCHK_CHECKED)));
48578 SWIG_Python_SetConstant(d, "CHK_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCHK_UNDETERMINED)));
48579 SWIG_addvarlink(SWIG_globals(),(char*)"ChoiceNameStr",ChoiceNameStr_get, ChoiceNameStr_set);
48580 SWIG_addvarlink(SWIG_globals(),(char*)"ComboBoxNameStr",ComboBoxNameStr_get, ComboBoxNameStr_set);
48581 SWIG_addvarlink(SWIG_globals(),(char*)"GaugeNameStr",GaugeNameStr_get, GaugeNameStr_set);
48582 SWIG_Python_SetConstant(d, "GA_HORIZONTAL",SWIG_From_int(static_cast< int >(wxGA_HORIZONTAL)));
48583 SWIG_Python_SetConstant(d, "GA_VERTICAL",SWIG_From_int(static_cast< int >(wxGA_VERTICAL)));
48584 SWIG_Python_SetConstant(d, "GA_SMOOTH",SWIG_From_int(static_cast< int >(wxGA_SMOOTH)));
48585 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBitmapNameStr",StaticBitmapNameStr_get, StaticBitmapNameStr_set);
48586 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBoxNameStr",StaticBoxNameStr_get, StaticBoxNameStr_set);
48587 SWIG_addvarlink(SWIG_globals(),(char*)"StaticTextNameStr",StaticTextNameStr_get, StaticTextNameStr_set);
48588 SWIG_addvarlink(SWIG_globals(),(char*)"ListBoxNameStr",ListBoxNameStr_get, ListBoxNameStr_set);
48589 SWIG_addvarlink(SWIG_globals(),(char*)"TextCtrlNameStr",TextCtrlNameStr_get, TextCtrlNameStr_set);
48590 SWIG_Python_SetConstant(d, "TE_NO_VSCROLL",SWIG_From_int(static_cast< int >(wxTE_NO_VSCROLL)));
48591 SWIG_Python_SetConstant(d, "TE_AUTO_SCROLL",SWIG_From_int(static_cast< int >(wxTE_AUTO_SCROLL)));
48592 SWIG_Python_SetConstant(d, "TE_READONLY",SWIG_From_int(static_cast< int >(wxTE_READONLY)));
48593 SWIG_Python_SetConstant(d, "TE_MULTILINE",SWIG_From_int(static_cast< int >(wxTE_MULTILINE)));
48594 SWIG_Python_SetConstant(d, "TE_PROCESS_TAB",SWIG_From_int(static_cast< int >(wxTE_PROCESS_TAB)));
48595 SWIG_Python_SetConstant(d, "TE_LEFT",SWIG_From_int(static_cast< int >(wxTE_LEFT)));
48596 SWIG_Python_SetConstant(d, "TE_CENTER",SWIG_From_int(static_cast< int >(wxTE_CENTER)));
48597 SWIG_Python_SetConstant(d, "TE_RIGHT",SWIG_From_int(static_cast< int >(wxTE_RIGHT)));
48598 SWIG_Python_SetConstant(d, "TE_CENTRE",SWIG_From_int(static_cast< int >(wxTE_CENTRE)));
48599 SWIG_Python_SetConstant(d, "TE_RICH",SWIG_From_int(static_cast< int >(wxTE_RICH)));
48600 SWIG_Python_SetConstant(d, "TE_PROCESS_ENTER",SWIG_From_int(static_cast< int >(wxTE_PROCESS_ENTER)));
48601 SWIG_Python_SetConstant(d, "TE_PASSWORD",SWIG_From_int(static_cast< int >(wxTE_PASSWORD)));
48602 SWIG_Python_SetConstant(d, "TE_AUTO_URL",SWIG_From_int(static_cast< int >(wxTE_AUTO_URL)));
48603 SWIG_Python_SetConstant(d, "TE_NOHIDESEL",SWIG_From_int(static_cast< int >(wxTE_NOHIDESEL)));
48604 SWIG_Python_SetConstant(d, "TE_DONTWRAP",SWIG_From_int(static_cast< int >(wxTE_DONTWRAP)));
48605 SWIG_Python_SetConstant(d, "TE_CHARWRAP",SWIG_From_int(static_cast< int >(wxTE_CHARWRAP)));
48606 SWIG_Python_SetConstant(d, "TE_WORDWRAP",SWIG_From_int(static_cast< int >(wxTE_WORDWRAP)));
48607 SWIG_Python_SetConstant(d, "TE_BESTWRAP",SWIG_From_int(static_cast< int >(wxTE_BESTWRAP)));
48608 SWIG_Python_SetConstant(d, "TE_RICH2",SWIG_From_int(static_cast< int >(wxTE_RICH2)));
48609 SWIG_Python_SetConstant(d, "TE_CAPITALIZE",SWIG_From_int(static_cast< int >(wxTE_CAPITALIZE)));
48610 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT)));
48611 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT)));
48612 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE)));
48613 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER)));
48614 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT)));
48615 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED)));
48616 SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR)));
48617 SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR)));
48618 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE)));
48619 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE)));
48620 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT)));
48621 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC)));
48622 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE)));
48623 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT)));
48624 SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT)));
48625 SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT)));
48626 SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT)));
48627 SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS)));
48628 SWIG_Python_SetConstant(d, "TE_HT_UNKNOWN",SWIG_From_int(static_cast< int >(wxTE_HT_UNKNOWN)));
48629 SWIG_Python_SetConstant(d, "TE_HT_BEFORE",SWIG_From_int(static_cast< int >(wxTE_HT_BEFORE)));
48630 SWIG_Python_SetConstant(d, "TE_HT_ON_TEXT",SWIG_From_int(static_cast< int >(wxTE_HT_ON_TEXT)));
48631 SWIG_Python_SetConstant(d, "TE_HT_BELOW",SWIG_From_int(static_cast< int >(wxTE_HT_BELOW)));
48632 SWIG_Python_SetConstant(d, "TE_HT_BEYOND",SWIG_From_int(static_cast< int >(wxTE_HT_BEYOND)));
48633 SWIG_Python_SetConstant(d, "OutOfRangeTextCoord",SWIG_From_int(static_cast< int >(wxOutOfRangeTextCoord)));
48634 SWIG_Python_SetConstant(d, "InvalidTextCoord",SWIG_From_int(static_cast< int >(wxInvalidTextCoord)));
48635 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
48636 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
48637 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
48638 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
48639 SWIG_addvarlink(SWIG_globals(),(char*)"ScrollBarNameStr",ScrollBarNameStr_get, ScrollBarNameStr_set);
48640 SWIG_addvarlink(SWIG_globals(),(char*)"SPIN_BUTTON_NAME",SPIN_BUTTON_NAME_get, SPIN_BUTTON_NAME_set);
48641 SWIG_addvarlink(SWIG_globals(),(char*)"SpinCtrlNameStr",SpinCtrlNameStr_get, SpinCtrlNameStr_set);
48642 SWIG_Python_SetConstant(d, "SP_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSP_HORIZONTAL)));
48643 SWIG_Python_SetConstant(d, "SP_VERTICAL",SWIG_From_int(static_cast< int >(wxSP_VERTICAL)));
48644 SWIG_Python_SetConstant(d, "SP_ARROW_KEYS",SWIG_From_int(static_cast< int >(wxSP_ARROW_KEYS)));
48645 SWIG_Python_SetConstant(d, "SP_WRAP",SWIG_From_int(static_cast< int >(wxSP_WRAP)));
48646 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
48647 SWIG_addvarlink(SWIG_globals(),(char*)"RadioBoxNameStr",RadioBoxNameStr_get, RadioBoxNameStr_set);
48648 SWIG_addvarlink(SWIG_globals(),(char*)"RadioButtonNameStr",RadioButtonNameStr_get, RadioButtonNameStr_set);
48649 SWIG_addvarlink(SWIG_globals(),(char*)"SliderNameStr",SliderNameStr_get, SliderNameStr_set);
48650 SWIG_Python_SetConstant(d, "SL_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSL_HORIZONTAL)));
48651 SWIG_Python_SetConstant(d, "SL_VERTICAL",SWIG_From_int(static_cast< int >(wxSL_VERTICAL)));
48652 SWIG_Python_SetConstant(d, "SL_TICKS",SWIG_From_int(static_cast< int >(wxSL_TICKS)));
48653 SWIG_Python_SetConstant(d, "SL_AUTOTICKS",SWIG_From_int(static_cast< int >(wxSL_AUTOTICKS)));
48654 SWIG_Python_SetConstant(d, "SL_LABELS",SWIG_From_int(static_cast< int >(wxSL_LABELS)));
48655 SWIG_Python_SetConstant(d, "SL_LEFT",SWIG_From_int(static_cast< int >(wxSL_LEFT)));
48656 SWIG_Python_SetConstant(d, "SL_TOP",SWIG_From_int(static_cast< int >(wxSL_TOP)));
48657 SWIG_Python_SetConstant(d, "SL_RIGHT",SWIG_From_int(static_cast< int >(wxSL_RIGHT)));
48658 SWIG_Python_SetConstant(d, "SL_BOTTOM",SWIG_From_int(static_cast< int >(wxSL_BOTTOM)));
48659 SWIG_Python_SetConstant(d, "SL_BOTH",SWIG_From_int(static_cast< int >(wxSL_BOTH)));
48660 SWIG_Python_SetConstant(d, "SL_SELRANGE",SWIG_From_int(static_cast< int >(wxSL_SELRANGE)));
48661 SWIG_Python_SetConstant(d, "SL_INVERSE",SWIG_From_int(static_cast< int >(wxSL_INVERSE)));
48662 SWIG_addvarlink(SWIG_globals(),(char*)"ToggleButtonNameStr",ToggleButtonNameStr_get, ToggleButtonNameStr_set);
48663 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
48664 SWIG_addvarlink(SWIG_globals(),(char*)"NotebookNameStr",NotebookNameStr_get, NotebookNameStr_set);
48665 SWIG_Python_SetConstant(d, "BK_DEFAULT",SWIG_From_int(static_cast< int >(wxBK_DEFAULT)));
48666 SWIG_Python_SetConstant(d, "BK_TOP",SWIG_From_int(static_cast< int >(wxBK_TOP)));
48667 SWIG_Python_SetConstant(d, "BK_BOTTOM",SWIG_From_int(static_cast< int >(wxBK_BOTTOM)));
48668 SWIG_Python_SetConstant(d, "BK_LEFT",SWIG_From_int(static_cast< int >(wxBK_LEFT)));
48669 SWIG_Python_SetConstant(d, "BK_RIGHT",SWIG_From_int(static_cast< int >(wxBK_RIGHT)));
48670 SWIG_Python_SetConstant(d, "BK_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBK_ALIGN_MASK)));
48671 SWIG_Python_SetConstant(d, "BK_BUTTONBAR",SWIG_From_int(static_cast< int >(wxBK_BUTTONBAR)));
48672 SWIG_Python_SetConstant(d, "BK_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_NOWHERE)));
48673 SWIG_Python_SetConstant(d, "BK_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONICON)));
48674 SWIG_Python_SetConstant(d, "BK_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONLABEL)));
48675 SWIG_Python_SetConstant(d, "BK_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONITEM)));
48676 SWIG_Python_SetConstant(d, "BK_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONPAGE)));
48677 SWIG_Python_SetConstant(d, "NB_FIXEDWIDTH",SWIG_From_int(static_cast< int >(wxNB_FIXEDWIDTH)));
48678 SWIG_Python_SetConstant(d, "NB_TOP",SWIG_From_int(static_cast< int >(wxNB_TOP)));
48679 SWIG_Python_SetConstant(d, "NB_LEFT",SWIG_From_int(static_cast< int >(wxNB_LEFT)));
48680 SWIG_Python_SetConstant(d, "NB_RIGHT",SWIG_From_int(static_cast< int >(wxNB_RIGHT)));
48681 SWIG_Python_SetConstant(d, "NB_BOTTOM",SWIG_From_int(static_cast< int >(wxNB_BOTTOM)));
48682 SWIG_Python_SetConstant(d, "NB_MULTILINE",SWIG_From_int(static_cast< int >(wxNB_MULTILINE)));
48683 SWIG_Python_SetConstant(d, "NB_NOPAGETHEME",SWIG_From_int(static_cast< int >(wxNB_NOPAGETHEME)));
48684 SWIG_Python_SetConstant(d, "NB_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_NOWHERE)));
48685 SWIG_Python_SetConstant(d, "NB_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONICON)));
48686 SWIG_Python_SetConstant(d, "NB_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONLABEL)));
48687 SWIG_Python_SetConstant(d, "NB_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONITEM)));
48688 SWIG_Python_SetConstant(d, "NB_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONPAGE)));
48689 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
48690 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
48691 SWIG_Python_SetConstant(d, "LB_DEFAULT",SWIG_From_int(static_cast< int >(wxLB_DEFAULT)));
48692 SWIG_Python_SetConstant(d, "LB_TOP",SWIG_From_int(static_cast< int >(wxLB_TOP)));
48693 SWIG_Python_SetConstant(d, "LB_BOTTOM",SWIG_From_int(static_cast< int >(wxLB_BOTTOM)));
48694 SWIG_Python_SetConstant(d, "LB_LEFT",SWIG_From_int(static_cast< int >(wxLB_LEFT)));
48695 SWIG_Python_SetConstant(d, "LB_RIGHT",SWIG_From_int(static_cast< int >(wxLB_RIGHT)));
48696 SWIG_Python_SetConstant(d, "LB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxLB_ALIGN_MASK)));
48697 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
48698 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
48699 SWIG_Python_SetConstant(d, "CHB_DEFAULT",SWIG_From_int(static_cast< int >(wxCHB_DEFAULT)));
48700 SWIG_Python_SetConstant(d, "CHB_TOP",SWIG_From_int(static_cast< int >(wxCHB_TOP)));
48701 SWIG_Python_SetConstant(d, "CHB_BOTTOM",SWIG_From_int(static_cast< int >(wxCHB_BOTTOM)));
48702 SWIG_Python_SetConstant(d, "CHB_LEFT",SWIG_From_int(static_cast< int >(wxCHB_LEFT)));
48703 SWIG_Python_SetConstant(d, "CHB_RIGHT",SWIG_From_int(static_cast< int >(wxCHB_RIGHT)));
48704 SWIG_Python_SetConstant(d, "CHB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxCHB_ALIGN_MASK)));
48705 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED));
48706 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING));
48707 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED));
48708 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING));
48709 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED));
48710 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED));
48711 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED));
48712 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING));
48713 SWIG_Python_SetConstant(d, "TOOL_STYLE_BUTTON",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_BUTTON)));
48714 SWIG_Python_SetConstant(d, "TOOL_STYLE_SEPARATOR",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_SEPARATOR)));
48715 SWIG_Python_SetConstant(d, "TOOL_STYLE_CONTROL",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_CONTROL)));
48716 SWIG_Python_SetConstant(d, "TB_HORIZONTAL",SWIG_From_int(static_cast< int >(wxTB_HORIZONTAL)));
48717 SWIG_Python_SetConstant(d, "TB_VERTICAL",SWIG_From_int(static_cast< int >(wxTB_VERTICAL)));
48718 SWIG_Python_SetConstant(d, "TB_3DBUTTONS",SWIG_From_int(static_cast< int >(wxTB_3DBUTTONS)));
48719 SWIG_Python_SetConstant(d, "TB_FLAT",SWIG_From_int(static_cast< int >(wxTB_FLAT)));
48720 SWIG_Python_SetConstant(d, "TB_DOCKABLE",SWIG_From_int(static_cast< int >(wxTB_DOCKABLE)));
48721 SWIG_Python_SetConstant(d, "TB_NOICONS",SWIG_From_int(static_cast< int >(wxTB_NOICONS)));
48722 SWIG_Python_SetConstant(d, "TB_TEXT",SWIG_From_int(static_cast< int >(wxTB_TEXT)));
48723 SWIG_Python_SetConstant(d, "TB_NODIVIDER",SWIG_From_int(static_cast< int >(wxTB_NODIVIDER)));
48724 SWIG_Python_SetConstant(d, "TB_NOALIGN",SWIG_From_int(static_cast< int >(wxTB_NOALIGN)));
48725 SWIG_Python_SetConstant(d, "TB_HORZ_LAYOUT",SWIG_From_int(static_cast< int >(wxTB_HORZ_LAYOUT)));
48726 SWIG_Python_SetConstant(d, "TB_HORZ_TEXT",SWIG_From_int(static_cast< int >(wxTB_HORZ_TEXT)));
48727 SWIG_Python_SetConstant(d, "TB_NO_TOOLTIPS",SWIG_From_int(static_cast< int >(wxTB_NO_TOOLTIPS)));
48728 SWIG_addvarlink(SWIG_globals(),(char*)"ListCtrlNameStr",ListCtrlNameStr_get, ListCtrlNameStr_set);
48729 SWIG_Python_SetConstant(d, "LC_VRULES",SWIG_From_int(static_cast< int >(wxLC_VRULES)));
48730 SWIG_Python_SetConstant(d, "LC_HRULES",SWIG_From_int(static_cast< int >(wxLC_HRULES)));
48731 SWIG_Python_SetConstant(d, "LC_ICON",SWIG_From_int(static_cast< int >(wxLC_ICON)));
48732 SWIG_Python_SetConstant(d, "LC_SMALL_ICON",SWIG_From_int(static_cast< int >(wxLC_SMALL_ICON)));
48733 SWIG_Python_SetConstant(d, "LC_LIST",SWIG_From_int(static_cast< int >(wxLC_LIST)));
48734 SWIG_Python_SetConstant(d, "LC_REPORT",SWIG_From_int(static_cast< int >(wxLC_REPORT)));
48735 SWIG_Python_SetConstant(d, "LC_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLC_ALIGN_TOP)));
48736 SWIG_Python_SetConstant(d, "LC_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLC_ALIGN_LEFT)));
48737 SWIG_Python_SetConstant(d, "LC_AUTOARRANGE",SWIG_From_int(static_cast< int >(wxLC_AUTOARRANGE)));
48738 SWIG_Python_SetConstant(d, "LC_VIRTUAL",SWIG_From_int(static_cast< int >(wxLC_VIRTUAL)));
48739 SWIG_Python_SetConstant(d, "LC_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxLC_EDIT_LABELS)));
48740 SWIG_Python_SetConstant(d, "LC_NO_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_HEADER)));
48741 SWIG_Python_SetConstant(d, "LC_NO_SORT_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_SORT_HEADER)));
48742 SWIG_Python_SetConstant(d, "LC_SINGLE_SEL",SWIG_From_int(static_cast< int >(wxLC_SINGLE_SEL)));
48743 SWIG_Python_SetConstant(d, "LC_SORT_ASCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_ASCENDING)));
48744 SWIG_Python_SetConstant(d, "LC_SORT_DESCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_DESCENDING)));
48745 SWIG_Python_SetConstant(d, "LC_MASK_TYPE",SWIG_From_int(static_cast< int >(wxLC_MASK_TYPE)));
48746 SWIG_Python_SetConstant(d, "LC_MASK_ALIGN",SWIG_From_int(static_cast< int >(wxLC_MASK_ALIGN)));
48747 SWIG_Python_SetConstant(d, "LC_MASK_SORT",SWIG_From_int(static_cast< int >(wxLC_MASK_SORT)));
48748 SWIG_Python_SetConstant(d, "LIST_MASK_STATE",SWIG_From_int(static_cast< int >(wxLIST_MASK_STATE)));
48749 SWIG_Python_SetConstant(d, "LIST_MASK_TEXT",SWIG_From_int(static_cast< int >(wxLIST_MASK_TEXT)));
48750 SWIG_Python_SetConstant(d, "LIST_MASK_IMAGE",SWIG_From_int(static_cast< int >(wxLIST_MASK_IMAGE)));
48751 SWIG_Python_SetConstant(d, "LIST_MASK_DATA",SWIG_From_int(static_cast< int >(wxLIST_MASK_DATA)));
48752 SWIG_Python_SetConstant(d, "LIST_SET_ITEM",SWIG_From_int(static_cast< int >(wxLIST_SET_ITEM)));
48753 SWIG_Python_SetConstant(d, "LIST_MASK_WIDTH",SWIG_From_int(static_cast< int >(wxLIST_MASK_WIDTH)));
48754 SWIG_Python_SetConstant(d, "LIST_MASK_FORMAT",SWIG_From_int(static_cast< int >(wxLIST_MASK_FORMAT)));
48755 SWIG_Python_SetConstant(d, "LIST_STATE_DONTCARE",SWIG_From_int(static_cast< int >(wxLIST_STATE_DONTCARE)));
48756 SWIG_Python_SetConstant(d, "LIST_STATE_DROPHILITED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DROPHILITED)));
48757 SWIG_Python_SetConstant(d, "LIST_STATE_FOCUSED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FOCUSED)));
48758 SWIG_Python_SetConstant(d, "LIST_STATE_SELECTED",SWIG_From_int(static_cast< int >(wxLIST_STATE_SELECTED)));
48759 SWIG_Python_SetConstant(d, "LIST_STATE_CUT",SWIG_From_int(static_cast< int >(wxLIST_STATE_CUT)));
48760 SWIG_Python_SetConstant(d, "LIST_STATE_DISABLED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DISABLED)));
48761 SWIG_Python_SetConstant(d, "LIST_STATE_FILTERED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FILTERED)));
48762 SWIG_Python_SetConstant(d, "LIST_STATE_INUSE",SWIG_From_int(static_cast< int >(wxLIST_STATE_INUSE)));
48763 SWIG_Python_SetConstant(d, "LIST_STATE_PICKED",SWIG_From_int(static_cast< int >(wxLIST_STATE_PICKED)));
48764 SWIG_Python_SetConstant(d, "LIST_STATE_SOURCE",SWIG_From_int(static_cast< int >(wxLIST_STATE_SOURCE)));
48765 SWIG_Python_SetConstant(d, "LIST_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ABOVE)));
48766 SWIG_Python_SetConstant(d, "LIST_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_BELOW)));
48767 SWIG_Python_SetConstant(d, "LIST_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_NOWHERE)));
48768 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMICON)));
48769 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMLABEL)));
48770 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMRIGHT)));
48771 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMSTATEICON)));
48772 SWIG_Python_SetConstant(d, "LIST_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TOLEFT)));
48773 SWIG_Python_SetConstant(d, "LIST_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TORIGHT)));
48774 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEM)));
48775 SWIG_Python_SetConstant(d, "LIST_GETSUBITEMRECT_WHOLEITEM",SWIG_From_int(static_cast< int >(wxLIST_GETSUBITEMRECT_WHOLEITEM)));
48776 SWIG_Python_SetConstant(d, "LIST_NEXT_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ABOVE)));
48777 SWIG_Python_SetConstant(d, "LIST_NEXT_ALL",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ALL)));
48778 SWIG_Python_SetConstant(d, "LIST_NEXT_BELOW",SWIG_From_int(static_cast< int >(wxLIST_NEXT_BELOW)));
48779 SWIG_Python_SetConstant(d, "LIST_NEXT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_LEFT)));
48780 SWIG_Python_SetConstant(d, "LIST_NEXT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_RIGHT)));
48781 SWIG_Python_SetConstant(d, "LIST_ALIGN_DEFAULT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_DEFAULT)));
48782 SWIG_Python_SetConstant(d, "LIST_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_LEFT)));
48783 SWIG_Python_SetConstant(d, "LIST_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_TOP)));
48784 SWIG_Python_SetConstant(d, "LIST_ALIGN_SNAP_TO_GRID",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_SNAP_TO_GRID)));
48785 SWIG_Python_SetConstant(d, "LIST_FORMAT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_LEFT)));
48786 SWIG_Python_SetConstant(d, "LIST_FORMAT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_RIGHT)));
48787 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTRE",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTRE)));
48788 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTER",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTER)));
48789 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE)));
48790 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE_USEHEADER",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE_USEHEADER)));
48791 SWIG_Python_SetConstant(d, "LIST_RECT_BOUNDS",SWIG_From_int(static_cast< int >(wxLIST_RECT_BOUNDS)));
48792 SWIG_Python_SetConstant(d, "LIST_RECT_ICON",SWIG_From_int(static_cast< int >(wxLIST_RECT_ICON)));
48793 SWIG_Python_SetConstant(d, "LIST_RECT_LABEL",SWIG_From_int(static_cast< int >(wxLIST_RECT_LABEL)));
48794 SWIG_Python_SetConstant(d, "LIST_FIND_UP",SWIG_From_int(static_cast< int >(wxLIST_FIND_UP)));
48795 SWIG_Python_SetConstant(d, "LIST_FIND_DOWN",SWIG_From_int(static_cast< int >(wxLIST_FIND_DOWN)));
48796 SWIG_Python_SetConstant(d, "LIST_FIND_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FIND_LEFT)));
48797 SWIG_Python_SetConstant(d, "LIST_FIND_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FIND_RIGHT)));
48798 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
48799 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
48800 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
48801 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
48802 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
48803 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
48804 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
48805 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
48806 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
48807 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
48808 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
48809 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
48810 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
48811 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
48812 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
48813 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
48814 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
48815 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
48816 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
48817 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
48818
48819 // Map renamed classes back to their common name for OOR
48820 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
48821
48822 SWIG_addvarlink(SWIG_globals(),(char*)"TreeCtrlNameStr",TreeCtrlNameStr_get, TreeCtrlNameStr_set);
48823 SWIG_Python_SetConstant(d, "TR_NO_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_NO_BUTTONS)));
48824 SWIG_Python_SetConstant(d, "TR_HAS_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_HAS_BUTTONS)));
48825 SWIG_Python_SetConstant(d, "TR_NO_LINES",SWIG_From_int(static_cast< int >(wxTR_NO_LINES)));
48826 SWIG_Python_SetConstant(d, "TR_LINES_AT_ROOT",SWIG_From_int(static_cast< int >(wxTR_LINES_AT_ROOT)));
48827 SWIG_Python_SetConstant(d, "TR_SINGLE",SWIG_From_int(static_cast< int >(wxTR_SINGLE)));
48828 SWIG_Python_SetConstant(d, "TR_MULTIPLE",SWIG_From_int(static_cast< int >(wxTR_MULTIPLE)));
48829 SWIG_Python_SetConstant(d, "TR_EXTENDED",SWIG_From_int(static_cast< int >(wxTR_EXTENDED)));
48830 SWIG_Python_SetConstant(d, "TR_HAS_VARIABLE_ROW_HEIGHT",SWIG_From_int(static_cast< int >(wxTR_HAS_VARIABLE_ROW_HEIGHT)));
48831 SWIG_Python_SetConstant(d, "TR_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxTR_EDIT_LABELS)));
48832 SWIG_Python_SetConstant(d, "TR_HIDE_ROOT",SWIG_From_int(static_cast< int >(wxTR_HIDE_ROOT)));
48833 SWIG_Python_SetConstant(d, "TR_ROW_LINES",SWIG_From_int(static_cast< int >(wxTR_ROW_LINES)));
48834 SWIG_Python_SetConstant(d, "TR_FULL_ROW_HIGHLIGHT",SWIG_From_int(static_cast< int >(wxTR_FULL_ROW_HIGHLIGHT)));
48835 SWIG_Python_SetConstant(d, "TR_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxTR_DEFAULT_STYLE)));
48836 SWIG_Python_SetConstant(d, "TR_TWIST_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_TWIST_BUTTONS)));
48837 SWIG_Python_SetConstant(d, "TreeItemIcon_Normal",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Normal)));
48838 SWIG_Python_SetConstant(d, "TreeItemIcon_Selected",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Selected)));
48839 SWIG_Python_SetConstant(d, "TreeItemIcon_Expanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Expanded)));
48840 SWIG_Python_SetConstant(d, "TreeItemIcon_SelectedExpanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_SelectedExpanded)));
48841 SWIG_Python_SetConstant(d, "TreeItemIcon_Max",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Max)));
48842 SWIG_Python_SetConstant(d, "TREE_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ABOVE)));
48843 SWIG_Python_SetConstant(d, "TREE_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_BELOW)));
48844 SWIG_Python_SetConstant(d, "TREE_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_NOWHERE)));
48845 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMBUTTON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMBUTTON)));
48846 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMICON)));
48847 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMINDENT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMINDENT)));
48848 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLABEL)));
48849 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMRIGHT)));
48850 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMSTATEICON)));
48851 SWIG_Python_SetConstant(d, "TREE_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TOLEFT)));
48852 SWIG_Python_SetConstant(d, "TREE_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TORIGHT)));
48853 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMUPPERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMUPPERPART)));
48854 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLOWERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLOWERPART)));
48855 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEM)));
48856 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
48857 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
48858 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
48859 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
48860 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
48861 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
48862 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
48863 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
48864 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
48865 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
48866 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
48867 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
48868 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
48869 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
48870 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
48871 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
48872 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
48873 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
48874 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
48875 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
48876 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU));
48877 SWIG_addvarlink(SWIG_globals(),(char*)"NullTreeItemId",NullTreeItemId_get, NullTreeItemId_set);
48878
48879 // Map renamed classes back to their common name for OOR
48880 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
48881 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
48882
48883 SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogDefaultFolderStr",DirDialogDefaultFolderStr_get, DirDialogDefaultFolderStr_set);
48884 SWIG_Python_SetConstant(d, "DIRCTRL_DIR_ONLY",SWIG_From_int(static_cast< int >(wxDIRCTRL_DIR_ONLY)));
48885 SWIG_Python_SetConstant(d, "DIRCTRL_SELECT_FIRST",SWIG_From_int(static_cast< int >(wxDIRCTRL_SELECT_FIRST)));
48886 SWIG_Python_SetConstant(d, "DIRCTRL_SHOW_FILTERS",SWIG_From_int(static_cast< int >(wxDIRCTRL_SHOW_FILTERS)));
48887 SWIG_Python_SetConstant(d, "DIRCTRL_3D_INTERNAL",SWIG_From_int(static_cast< int >(wxDIRCTRL_3D_INTERNAL)));
48888 SWIG_Python_SetConstant(d, "DIRCTRL_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxDIRCTRL_EDIT_LABELS)));
48889 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
48890 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
48891 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Unknown",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Unknown)));
48892 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Keyboard",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Keyboard)));
48893 SWIG_Python_SetConstant(d, "HelpEvent_Origin_HelpButton",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_HelpButton)));
48894
48895 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
48896
48897 SWIG_addvarlink(SWIG_globals(),(char*)"DatePickerCtrlNameStr",DatePickerCtrlNameStr_get, DatePickerCtrlNameStr_set);
48898 SWIG_Python_SetConstant(d, "DP_DEFAULT",SWIG_From_int(static_cast< int >(wxDP_DEFAULT)));
48899 SWIG_Python_SetConstant(d, "DP_SPIN",SWIG_From_int(static_cast< int >(wxDP_SPIN)));
48900 SWIG_Python_SetConstant(d, "DP_DROPDOWN",SWIG_From_int(static_cast< int >(wxDP_DROPDOWN)));
48901 SWIG_Python_SetConstant(d, "DP_SHOWCENTURY",SWIG_From_int(static_cast< int >(wxDP_SHOWCENTURY)));
48902 SWIG_Python_SetConstant(d, "DP_ALLOWNONE",SWIG_From_int(static_cast< int >(wxDP_ALLOWNONE)));
48903 SWIG_addvarlink(SWIG_globals(),(char*)"HyperlinkCtrlNameStr",HyperlinkCtrlNameStr_get, HyperlinkCtrlNameStr_set);
48904 SWIG_Python_SetConstant(d, "HL_CONTEXTMENU",SWIG_From_int(static_cast< int >(wxHL_CONTEXTMENU)));
48905 SWIG_Python_SetConstant(d, "HL_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxHL_DEFAULT_STYLE)));
48906 PyDict_SetItemString(d, "wxEVT_COMMAND_HYPERLINK", PyInt_FromLong(wxEVT_COMMAND_HYPERLINK));
48907 SWIG_Python_SetConstant(d, "PB_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxPB_USE_TEXTCTRL)));
48908 SWIG_addvarlink(SWIG_globals(),(char*)"ColourPickerCtrlNameStr",ColourPickerCtrlNameStr_get, ColourPickerCtrlNameStr_set);
48909 SWIG_Python_SetConstant(d, "CLRP_SHOW_LABEL",SWIG_From_int(static_cast< int >(wxCLRP_SHOW_LABEL)));
48910 SWIG_Python_SetConstant(d, "CLRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxCLRP_USE_TEXTCTRL)));
48911 SWIG_Python_SetConstant(d, "CLRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxCLRP_DEFAULT_STYLE)));
48912 PyDict_SetItemString(d, "wxEVT_COMMAND_COLOURPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_COLOURPICKER_CHANGED));
48913 SWIG_addvarlink(SWIG_globals(),(char*)"FilePickerCtrlNameStr",FilePickerCtrlNameStr_get, FilePickerCtrlNameStr_set);
48914 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorPromptStr",FileSelectorPromptStr_get, FileSelectorPromptStr_set);
48915 SWIG_addvarlink(SWIG_globals(),(char*)"DirPickerCtrlNameStr",DirPickerCtrlNameStr_get, DirPickerCtrlNameStr_set);
48916 SWIG_addvarlink(SWIG_globals(),(char*)"DirSelectorPromptStr",DirSelectorPromptStr_get, DirSelectorPromptStr_set);
48917 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorDefaultWildcardStr",FileSelectorDefaultWildcardStr_get, FileSelectorDefaultWildcardStr_set);
48918 SWIG_Python_SetConstant(d, "FLP_OPEN",SWIG_From_int(static_cast< int >(wxFLP_OPEN)));
48919 SWIG_Python_SetConstant(d, "FLP_SAVE",SWIG_From_int(static_cast< int >(wxFLP_SAVE)));
48920 SWIG_Python_SetConstant(d, "FLP_OVERWRITE_PROMPT",SWIG_From_int(static_cast< int >(wxFLP_OVERWRITE_PROMPT)));
48921 SWIG_Python_SetConstant(d, "FLP_FILE_MUST_EXIST",SWIG_From_int(static_cast< int >(wxFLP_FILE_MUST_EXIST)));
48922 SWIG_Python_SetConstant(d, "FLP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxFLP_CHANGE_DIR)));
48923 SWIG_Python_SetConstant(d, "DIRP_DIR_MUST_EXIST",SWIG_From_int(static_cast< int >(wxDIRP_DIR_MUST_EXIST)));
48924 SWIG_Python_SetConstant(d, "DIRP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxDIRP_CHANGE_DIR)));
48925 SWIG_Python_SetConstant(d, "FLP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFLP_USE_TEXTCTRL)));
48926 SWIG_Python_SetConstant(d, "FLP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFLP_DEFAULT_STYLE)));
48927 SWIG_Python_SetConstant(d, "DIRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxDIRP_USE_TEXTCTRL)));
48928 SWIG_Python_SetConstant(d, "DIRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxDIRP_DEFAULT_STYLE)));
48929 PyDict_SetItemString(d, "wxEVT_COMMAND_FILEPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FILEPICKER_CHANGED));
48930 PyDict_SetItemString(d, "wxEVT_COMMAND_DIRPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_DIRPICKER_CHANGED));
48931 SWIG_addvarlink(SWIG_globals(),(char*)"FontPickerCtrlNameStr",FontPickerCtrlNameStr_get, FontPickerCtrlNameStr_set);
48932 SWIG_Python_SetConstant(d, "FNTP_FONTDESC_AS_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_FONTDESC_AS_LABEL)));
48933 SWIG_Python_SetConstant(d, "FNTP_USEFONT_FOR_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_USEFONT_FOR_LABEL)));
48934 SWIG_Python_SetConstant(d, "FNTP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFNTP_USE_TEXTCTRL)));
48935 SWIG_Python_SetConstant(d, "FNTP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFNTP_DEFAULT_STYLE)));
48936 PyDict_SetItemString(d, "wxEVT_COMMAND_FONTPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FONTPICKER_CHANGED));
48937 }
48938