]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/_controls_wrap.cpp
Minor tweaks to get up to date with wx CVS
[wxWidgets.git] / wxPython / src / msw / _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_wxCollapsiblePane swig_types[30]
2497 #define SWIGTYPE_p_wxCollapsiblePaneEvent swig_types[31]
2498 #define SWIGTYPE_p_wxColour swig_types[32]
2499 #define SWIGTYPE_p_wxColourPickerCtrl swig_types[33]
2500 #define SWIGTYPE_p_wxColourPickerEvent swig_types[34]
2501 #define SWIGTYPE_p_wxComboBox swig_types[35]
2502 #define SWIGTYPE_p_wxCommandEvent swig_types[36]
2503 #define SWIGTYPE_p_wxContextHelp swig_types[37]
2504 #define SWIGTYPE_p_wxContextHelpButton swig_types[38]
2505 #define SWIGTYPE_p_wxContextMenuEvent swig_types[39]
2506 #define SWIGTYPE_p_wxControl swig_types[40]
2507 #define SWIGTYPE_p_wxControlWithItems swig_types[41]
2508 #define SWIGTYPE_p_wxCursor swig_types[42]
2509 #define SWIGTYPE_p_wxDC swig_types[43]
2510 #define SWIGTYPE_p_wxDateEvent swig_types[44]
2511 #define SWIGTYPE_p_wxDatePickerCtrl swig_types[45]
2512 #define SWIGTYPE_p_wxDateTime swig_types[46]
2513 #define SWIGTYPE_p_wxDirFilterListCtrl swig_types[47]
2514 #define SWIGTYPE_p_wxDirPickerCtrl swig_types[48]
2515 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[49]
2516 #define SWIGTYPE_p_wxDropFilesEvent swig_types[50]
2517 #define SWIGTYPE_p_wxDuplexMode swig_types[51]
2518 #define SWIGTYPE_p_wxEraseEvent swig_types[52]
2519 #define SWIGTYPE_p_wxEvent swig_types[53]
2520 #define SWIGTYPE_p_wxEvtHandler swig_types[54]
2521 #define SWIGTYPE_p_wxFSFile swig_types[55]
2522 #define SWIGTYPE_p_wxFileDirPickerEvent swig_types[56]
2523 #define SWIGTYPE_p_wxFilePickerCtrl swig_types[57]
2524 #define SWIGTYPE_p_wxFileSystem swig_types[58]
2525 #define SWIGTYPE_p_wxFlexGridSizer swig_types[59]
2526 #define SWIGTYPE_p_wxFocusEvent swig_types[60]
2527 #define SWIGTYPE_p_wxFont swig_types[61]
2528 #define SWIGTYPE_p_wxFontPickerCtrl swig_types[62]
2529 #define SWIGTYPE_p_wxFontPickerEvent swig_types[63]
2530 #define SWIGTYPE_p_wxGBSizerItem swig_types[64]
2531 #define SWIGTYPE_p_wxGIFHandler swig_types[65]
2532 #define SWIGTYPE_p_wxGauge swig_types[66]
2533 #define SWIGTYPE_p_wxGenericDirCtrl swig_types[67]
2534 #define SWIGTYPE_p_wxGenericDragImage swig_types[68]
2535 #define SWIGTYPE_p_wxGridBagSizer swig_types[69]
2536 #define SWIGTYPE_p_wxGridSizer swig_types[70]
2537 #define SWIGTYPE_p_wxHelpEvent swig_types[71]
2538 #define SWIGTYPE_p_wxHelpProvider swig_types[72]
2539 #define SWIGTYPE_p_wxHyperlinkCtrl swig_types[73]
2540 #define SWIGTYPE_p_wxHyperlinkEvent swig_types[74]
2541 #define SWIGTYPE_p_wxICOHandler swig_types[75]
2542 #define SWIGTYPE_p_wxIcon swig_types[76]
2543 #define SWIGTYPE_p_wxIconizeEvent swig_types[77]
2544 #define SWIGTYPE_p_wxIdleEvent swig_types[78]
2545 #define SWIGTYPE_p_wxImage swig_types[79]
2546 #define SWIGTYPE_p_wxImageHandler swig_types[80]
2547 #define SWIGTYPE_p_wxImageList swig_types[81]
2548 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[82]
2549 #define SWIGTYPE_p_wxInitDialogEvent swig_types[83]
2550 #define SWIGTYPE_p_wxItemContainer swig_types[84]
2551 #define SWIGTYPE_p_wxJPEGHandler swig_types[85]
2552 #define SWIGTYPE_p_wxKeyEvent swig_types[86]
2553 #define SWIGTYPE_p_wxLayoutConstraints swig_types[87]
2554 #define SWIGTYPE_p_wxListBox swig_types[88]
2555 #define SWIGTYPE_p_wxListEvent swig_types[89]
2556 #define SWIGTYPE_p_wxListItem swig_types[90]
2557 #define SWIGTYPE_p_wxListItemAttr swig_types[91]
2558 #define SWIGTYPE_p_wxListView swig_types[92]
2559 #define SWIGTYPE_p_wxListbook swig_types[93]
2560 #define SWIGTYPE_p_wxListbookEvent swig_types[94]
2561 #define SWIGTYPE_p_wxMaximizeEvent swig_types[95]
2562 #define SWIGTYPE_p_wxMemoryDC swig_types[96]
2563 #define SWIGTYPE_p_wxMenu swig_types[97]
2564 #define SWIGTYPE_p_wxMenuBar swig_types[98]
2565 #define SWIGTYPE_p_wxMenuEvent swig_types[99]
2566 #define SWIGTYPE_p_wxMenuItem swig_types[100]
2567 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[101]
2568 #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[102]
2569 #define SWIGTYPE_p_wxMouseEvent swig_types[103]
2570 #define SWIGTYPE_p_wxMoveEvent swig_types[104]
2571 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[105]
2572 #define SWIGTYPE_p_wxNcPaintEvent swig_types[106]
2573 #define SWIGTYPE_p_wxNotebook swig_types[107]
2574 #define SWIGTYPE_p_wxNotebookEvent swig_types[108]
2575 #define SWIGTYPE_p_wxNotifyEvent swig_types[109]
2576 #define SWIGTYPE_p_wxObject swig_types[110]
2577 #define SWIGTYPE_p_wxPCXHandler swig_types[111]
2578 #define SWIGTYPE_p_wxPNGHandler swig_types[112]
2579 #define SWIGTYPE_p_wxPNMHandler swig_types[113]
2580 #define SWIGTYPE_p_wxPaintEvent swig_types[114]
2581 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[115]
2582 #define SWIGTYPE_p_wxPaperSize swig_types[116]
2583 #define SWIGTYPE_p_wxPickerBase swig_types[117]
2584 #define SWIGTYPE_p_wxPoint swig_types[118]
2585 #define SWIGTYPE_p_wxPyApp swig_types[119]
2586 #define SWIGTYPE_p_wxPyCommandEvent swig_types[120]
2587 #define SWIGTYPE_p_wxPyControl swig_types[121]
2588 #define SWIGTYPE_p_wxPyEvent swig_types[122]
2589 #define SWIGTYPE_p_wxPyImageHandler swig_types[123]
2590 #define SWIGTYPE_p_wxPyListCtrl swig_types[124]
2591 #define SWIGTYPE_p_wxPySizer swig_types[125]
2592 #define SWIGTYPE_p_wxPyTreeCtrl swig_types[126]
2593 #define SWIGTYPE_p_wxPyTreeItemData swig_types[127]
2594 #define SWIGTYPE_p_wxPyValidator swig_types[128]
2595 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[129]
2596 #define SWIGTYPE_p_wxRadioBox swig_types[130]
2597 #define SWIGTYPE_p_wxRadioButton swig_types[131]
2598 #define SWIGTYPE_p_wxRect swig_types[132]
2599 #define SWIGTYPE_p_wxScrollBar swig_types[133]
2600 #define SWIGTYPE_p_wxScrollEvent swig_types[134]
2601 #define SWIGTYPE_p_wxScrollWinEvent swig_types[135]
2602 #define SWIGTYPE_p_wxSearchCtrl swig_types[136]
2603 #define SWIGTYPE_p_wxSetCursorEvent swig_types[137]
2604 #define SWIGTYPE_p_wxShowEvent swig_types[138]
2605 #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[139]
2606 #define SWIGTYPE_p_wxSize swig_types[140]
2607 #define SWIGTYPE_p_wxSizeEvent swig_types[141]
2608 #define SWIGTYPE_p_wxSizer swig_types[142]
2609 #define SWIGTYPE_p_wxSizerItem swig_types[143]
2610 #define SWIGTYPE_p_wxSlider swig_types[144]
2611 #define SWIGTYPE_p_wxSpinButton swig_types[145]
2612 #define SWIGTYPE_p_wxSpinCtrl swig_types[146]
2613 #define SWIGTYPE_p_wxSpinEvent swig_types[147]
2614 #define SWIGTYPE_p_wxStaticBitmap swig_types[148]
2615 #define SWIGTYPE_p_wxStaticBox swig_types[149]
2616 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[150]
2617 #define SWIGTYPE_p_wxStaticLine swig_types[151]
2618 #define SWIGTYPE_p_wxStaticText swig_types[152]
2619 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[153]
2620 #define SWIGTYPE_p_wxString swig_types[154]
2621 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[155]
2622 #define SWIGTYPE_p_wxTGAHandler swig_types[156]
2623 #define SWIGTYPE_p_wxTIFFHandler swig_types[157]
2624 #define SWIGTYPE_p_wxTextAttr swig_types[158]
2625 #define SWIGTYPE_p_wxTextCtrl swig_types[159]
2626 #define SWIGTYPE_p_wxTextUrlEvent swig_types[160]
2627 #define SWIGTYPE_p_wxToggleButton swig_types[161]
2628 #define SWIGTYPE_p_wxToolBar swig_types[162]
2629 #define SWIGTYPE_p_wxToolBarBase swig_types[163]
2630 #define SWIGTYPE_p_wxToolBarToolBase swig_types[164]
2631 #define SWIGTYPE_p_wxToolbook swig_types[165]
2632 #define SWIGTYPE_p_wxToolbookEvent swig_types[166]
2633 #define SWIGTYPE_p_wxTreeEvent swig_types[167]
2634 #define SWIGTYPE_p_wxTreeItemId swig_types[168]
2635 #define SWIGTYPE_p_wxTreebook swig_types[169]
2636 #define SWIGTYPE_p_wxTreebookEvent swig_types[170]
2637 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[171]
2638 #define SWIGTYPE_p_wxValidator swig_types[172]
2639 #define SWIGTYPE_p_wxVisualAttributes swig_types[173]
2640 #define SWIGTYPE_p_wxWindow swig_types[174]
2641 #define SWIGTYPE_p_wxWindowBase swig_types[175]
2642 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[176]
2643 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[177]
2644 #define SWIGTYPE_p_wxXPMHandler swig_types[178]
2645 static swig_type_info *swig_types[180];
2646 static swig_module_info swig_module = {swig_types, 179, 0, 0, 0, 0};
2647 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2648 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2649
2650 /* -------- TYPES TABLE (END) -------- */
2651
2652 #if (PY_VERSION_HEX <= 0x02000000)
2653 # if !defined(SWIG_PYTHON_CLASSIC)
2654 # error "This python version requires to use swig with the '-classic' option"
2655 # endif
2656 #endif
2657 #if (PY_VERSION_HEX <= 0x02020000)
2658 # error "This python version requires to use swig with the '-nomodern' option"
2659 #endif
2660 #if (PY_VERSION_HEX <= 0x02020000)
2661 # error "This python version requires to use swig with the '-nomodernargs' option"
2662 #endif
2663 #ifndef METH_O
2664 # error "This python version requires to use swig with the '-nofastunpack' option"
2665 #endif
2666
2667 /*-----------------------------------------------
2668 @(target):= _controls_.so
2669 ------------------------------------------------*/
2670 #define SWIG_init init_controls_
2671
2672 #define SWIG_name "_controls_"
2673
2674 #define SWIGVERSION 0x010329
2675
2676
2677 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2678 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2679
2680
2681 #include <stdexcept>
2682
2683
2684 namespace swig {
2685 class PyObject_ptr {
2686 protected:
2687 PyObject *_obj;
2688
2689 public:
2690 PyObject_ptr() :_obj(0)
2691 {
2692 }
2693
2694 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2695 {
2696 Py_XINCREF(_obj);
2697 }
2698
2699 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2700 {
2701 if (initial_ref) Py_XINCREF(_obj);
2702 }
2703
2704 PyObject_ptr & operator=(const PyObject_ptr& item)
2705 {
2706 Py_XINCREF(item._obj);
2707 Py_XDECREF(_obj);
2708 _obj = item._obj;
2709 return *this;
2710 }
2711
2712 ~PyObject_ptr()
2713 {
2714 Py_XDECREF(_obj);
2715 }
2716
2717 operator PyObject *() const
2718 {
2719 return _obj;
2720 }
2721
2722 PyObject *operator->() const
2723 {
2724 return _obj;
2725 }
2726 };
2727 }
2728
2729
2730 namespace swig {
2731 struct PyObject_var : PyObject_ptr {
2732 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2733
2734 PyObject_var & operator = (PyObject* obj)
2735 {
2736 Py_XDECREF(_obj);
2737 _obj = obj;
2738 return *this;
2739 }
2740 };
2741 }
2742
2743
2744 #include "wx/wxPython/wxPython.h"
2745 #include "wx/wxPython/pyclasses.h"
2746
2747 static const wxString wxPyPanelNameStr(wxPanelNameStr);
2748 static const wxString wxPyEmptyString(wxEmptyString);
2749 static const wxString wxPyControlNameStr(wxControlNameStr);
2750
2751 const wxArrayString wxPyEmptyStringArray;
2752
2753 static const wxString wxPyButtonNameStr(wxButtonNameStr);
2754
2755 #define SWIG_From_long PyInt_FromLong
2756
2757
2758 SWIGINTERNINLINE PyObject *
2759 SWIG_From_int (int value)
2760 {
2761 return SWIG_From_long (value);
2762 }
2763
2764
2765 #include <limits.h>
2766 #ifndef LLONG_MIN
2767 # define LLONG_MIN LONG_LONG_MIN
2768 #endif
2769 #ifndef LLONG_MAX
2770 # define LLONG_MAX LONG_LONG_MAX
2771 #endif
2772 #ifndef ULLONG_MAX
2773 # define ULLONG_MAX ULONG_LONG_MAX
2774 #endif
2775
2776
2777 SWIGINTERN int
2778 SWIG_AsVal_long (PyObject* obj, long* val)
2779 {
2780 if (PyNumber_Check(obj)) {
2781 if (val) *val = PyInt_AsLong(obj);
2782 return SWIG_OK;
2783 }
2784 return SWIG_TypeError;
2785 }
2786
2787
2788 SWIGINTERN int
2789 SWIG_AsVal_int (PyObject * obj, int *val)
2790 {
2791 long v;
2792 int res = SWIG_AsVal_long (obj, &v);
2793 if (SWIG_IsOK(res)) {
2794 if ((v < INT_MIN || v > INT_MAX)) {
2795 return SWIG_OverflowError;
2796 } else {
2797 if (val) *val = static_cast< int >(v);
2798 }
2799 }
2800 return res;
2801 }
2802
2803 static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr);
2804
2805 SWIGINTERN int
2806 SWIG_AsVal_bool (PyObject *obj, bool *val)
2807 {
2808 if (obj == Py_True) {
2809 if (val) *val = true;
2810 return SWIG_OK;
2811 } else if (obj == Py_False) {
2812 if (val) *val = false;
2813 return SWIG_OK;
2814 } else {
2815 long v = 0;
2816 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2817 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2818 return res;
2819 }
2820 }
2821
2822 static const wxString wxPyChoiceNameStr(wxChoiceNameStr);
2823 static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr);
2824 static const wxString wxPyGaugeNameStr(wxGaugeNameStr);
2825 static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr);
2826 static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr);
2827 static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr);
2828 static const wxString wxPyStaticLineNameStr(wxStaticLineNameStr);
2829
2830 #include <wx/checklst.h>
2831
2832 static const wxString wxPyListBoxNameStr(wxListBoxNameStr);
2833 SWIGINTERN void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData=NULL){
2834 if (clientData)
2835 {
2836 wxPyClientData* data = new wxPyClientData(clientData);
2837 self->Insert(item, pos, data);
2838 }
2839 else
2840 self->Insert(item, pos);
2841 }
2842
2843 SWIGINTERN int
2844 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2845 {
2846 long v = 0;
2847 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2848 return SWIG_TypeError;
2849 }
2850 else if (val)
2851 *val = (unsigned long)v;
2852 return SWIG_OK;
2853 }
2854
2855
2856 SWIGINTERN int
2857 SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
2858 {
2859 unsigned long v;
2860 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2861 if (SWIG_IsOK(res)) {
2862 if ((v > UINT_MAX)) {
2863 return SWIG_OverflowError;
2864 } else {
2865 if (val) *val = static_cast< unsigned int >(v);
2866 }
2867 }
2868 return res;
2869 }
2870
2871 SWIGINTERN PyObject *wxListBox_GetSelections(wxListBox *self){
2872 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2873 wxArrayInt lst;
2874 self->GetSelections(lst);
2875 PyObject *tup = PyTuple_New(lst.GetCount());
2876 for (size_t i=0; i<lst.GetCount(); i++)
2877 {
2878 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
2879 }
2880 wxPyEndBlockThreads(blocked);
2881 return tup;
2882 }
2883 SWIGINTERN void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){
2884 #ifdef __WXMSW__
2885 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2886 self->GetItem(item)->SetTextColour(c);
2887 #endif
2888 }
2889 SWIGINTERN void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){
2890 #ifdef __WXMSW__
2891 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2892 self->GetItem(item)->SetBackgroundColour(c);
2893 #endif
2894 }
2895 SWIGINTERN void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){
2896 #ifdef __WXMSW__
2897 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2898 self->GetItem(item)->SetFont(f);
2899 #endif
2900 }
2901 static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr);
2902 SWIGINTERN void wxTextCtrl_MacCheckSpelling(wxTextCtrl *self,bool check){}
2903 SWIGINTERN void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
2904 self->AppendText(text);
2905 }
2906 SWIGINTERN wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
2907 return self->GetValue().Mid(from, to - from);
2908 }
2909 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
2910 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
2911 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
2912 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
2913 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
2914
2915 SWIGINTERNINLINE PyObject*
2916 SWIG_From_unsigned_SS_long (unsigned long value)
2917 {
2918 return (value > LONG_MAX) ?
2919 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2920 }
2921
2922
2923 SWIGINTERNINLINE PyObject *
2924 SWIG_From_size_t (size_t value)
2925 {
2926 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
2927 }
2928
2929
2930 SWIGINTERNINLINE PyObject *
2931 SWIG_From_unsigned_SS_int (unsigned int value)
2932 {
2933 return SWIG_From_unsigned_SS_long (value);
2934 }
2935
2936
2937 #include <wx/slider.h>
2938
2939
2940 static const wxString wxPySliderNameStr(wxSliderNameStr);
2941 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
2942
2943 #if !wxUSE_TOGGLEBTN
2944 // implement dummy items for platforms that don't have this class
2945
2946 #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
2947
2948 class wxToggleButton : public wxControl
2949 {
2950 public:
2951 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
2952 const wxPoint&, const wxSize&, long,
2953 const wxValidator&, const wxString&)
2954 { wxPyRaiseNotImplemented(); }
2955
2956 wxToggleButton()
2957 { wxPyRaiseNotImplemented(); }
2958 };
2959 #endif
2960
2961 static const wxString wxPyNotebookNameStr(wxNotebookNameStr);
2962
2963 SWIGINTERNINLINE int
2964 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
2965 {
2966 unsigned long v;
2967 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
2968 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
2969 return res;
2970 }
2971
2972 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
2973 SWIGINTERN PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
2974 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
2975 if (udata) {
2976 Py_INCREF(udata->m_obj);
2977 return udata->m_obj;
2978 } else {
2979 Py_INCREF(Py_None);
2980 return Py_None;
2981 }
2982 }
2983 SWIGINTERN void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
2984 self->SetClientData(new wxPyUserData(clientData));
2985 }
2986 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){
2987 wxPyUserData* udata = NULL;
2988 if (clientData && clientData != Py_None)
2989 udata = new wxPyUserData(clientData);
2990 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
2991 shortHelp, longHelp, udata);
2992 }
2993 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){
2994 wxPyUserData* udata = NULL;
2995 if (clientData && clientData != Py_None)
2996 udata = new wxPyUserData(clientData);
2997 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
2998 shortHelp, longHelp, udata);
2999 }
3000 SWIGINTERN PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
3001 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
3002 if (udata) {
3003 Py_INCREF(udata->m_obj);
3004 return udata->m_obj;
3005 } else {
3006 Py_INCREF(Py_None);
3007 return Py_None;
3008 }
3009 }
3010 SWIGINTERN void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
3011 self->SetToolClientData(id, new wxPyUserData(clientData));
3012 }
3013
3014 #include <wx/listctrl.h>
3015
3016 static const wxString wxPyListCtrlNameStr(wxListCtrlNameStr);
3017 SWIGINTERN void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
3018 // Python aware sorting function for wxPyListCtrl
3019 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
3020 int retval = 0;
3021 PyObject* func = (PyObject*)funcPtr;
3022 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3023
3024 PyObject* args = Py_BuildValue("(ii)", item1, item2);
3025 PyObject* result = PyEval_CallObject(func, args);
3026 Py_DECREF(args);
3027 if (result) {
3028 retval = PyInt_AsLong(result);
3029 Py_DECREF(result);
3030 }
3031
3032 wxPyEndBlockThreads(blocked);
3033 return retval;
3034 }
3035
3036 // C++ Version of a Python aware class
3037 class wxPyListCtrl : public wxListCtrl {
3038 DECLARE_ABSTRACT_CLASS(wxPyListCtrl)
3039 public:
3040 wxPyListCtrl() : wxListCtrl() {}
3041 wxPyListCtrl(wxWindow* parent, wxWindowID id,
3042 const wxPoint& pos,
3043 const wxSize& size,
3044 long style,
3045 const wxValidator& validator,
3046 const wxString& name) :
3047 wxListCtrl(parent, id, pos, size, style, validator, name) {}
3048
3049 bool Create(wxWindow* parent, wxWindowID id,
3050 const wxPoint& pos,
3051 const wxSize& size,
3052 long style,
3053 const wxValidator& validator,
3054 const wxString& name) {
3055 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
3056 }
3057
3058 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
3059 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
3060
3061 // use the virtual version to avoid a confusing assert in the base class
3062 DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage);
3063 DEC_PYCALLBACK_INT_LONGLONG(OnGetItemColumnImage);
3064
3065 PYPRIVATE;
3066 };
3067
3068 IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
3069
3070 IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
3071 IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
3072 IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage);
3073 IMP_PYCALLBACK_INT_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemColumnImage);
3074
3075
3076 SWIGINTERN wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
3077 wxListItem item;
3078 item.SetMask( wxLIST_MASK_STATE |
3079 wxLIST_MASK_TEXT |
3080 wxLIST_MASK_IMAGE |
3081 wxLIST_MASK_DATA |
3082 wxLIST_SET_ITEM |
3083 wxLIST_MASK_WIDTH |
3084 wxLIST_MASK_FORMAT
3085 );
3086 if (self->GetColumn(col, item))
3087 return new wxListItem(item);
3088 else
3089 return NULL;
3090 }
3091 SWIGINTERN wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col=0){
3092 wxListItem* info = new wxListItem;
3093 info->m_itemId = itemId;
3094 info->m_col = col;
3095 info->m_mask = 0xFFFF;
3096 self->GetItem(*info);
3097 return info;
3098 }
3099 SWIGINTERN wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
3100 wxPoint pos;
3101 self->GetItemPosition(item, pos);
3102 return pos;
3103 }
3104 SWIGINTERN wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code=wxLIST_RECT_BOUNDS){
3105 wxRect rect;
3106 self->GetItemRect(item, rect, code);
3107 return rect;
3108 }
3109 SWIGINTERN bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
3110 if (!PyCallable_Check(func))
3111 return false;
3112 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
3113 }
3114 SWIGINTERN wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
3115
3116 return self;
3117
3118
3119
3120 }
3121
3122 #include <wx/treectrl.h>
3123 #include "wx/wxPython/pytree.h"
3124
3125 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
3126 SWIGINTERN bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; }
3127 SWIGINTERN bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; }
3128 SWIGINTERN void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
3129
3130 static wxTreeItemId wxNullTreeItemId;
3131
3132 // C++ version of Python aware wxTreeCtrl
3133 class wxPyTreeCtrl : public wxTreeCtrl {
3134 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl)
3135 public:
3136 wxPyTreeCtrl() : wxTreeCtrl() {}
3137 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
3138 const wxPoint& pos,
3139 const wxSize& size,
3140 long style,
3141 const wxValidator& validator,
3142 const wxString& name) :
3143 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
3144
3145 bool Create(wxWindow *parent, wxWindowID id,
3146 const wxPoint& pos,
3147 const wxSize& size,
3148 long style,
3149 const wxValidator& validator,
3150 const wxString& name) {
3151 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
3152 }
3153
3154
3155 int OnCompareItems(const wxTreeItemId& item1,
3156 const wxTreeItemId& item2) {
3157 int rval = 0;
3158 bool found;
3159 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3160 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
3161 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false);
3162 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false);
3163 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
3164 Py_DECREF(o1);
3165 Py_DECREF(o2);
3166 }
3167 wxPyEndBlockThreads(blocked);
3168 if (! found)
3169 rval = wxTreeCtrl::OnCompareItems(item1, item2);
3170 return rval;
3171 }
3172 PYPRIVATE;
3173 };
3174
3175 IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
3176
3177
3178 SWIGINTERN wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
3179 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3180 if (data == NULL) {
3181 data = new wxPyTreeItemData();
3182 data->SetId(item); // set the id
3183 self->SetItemData(item, data);
3184 }
3185 return data;
3186 }
3187 SWIGINTERN PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
3188 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3189 if (data == NULL) {
3190 data = new wxPyTreeItemData();
3191 data->SetId(item); // set the id
3192 self->SetItemData(item, data);
3193 }
3194 return data->GetData();
3195 }
3196 SWIGINTERN void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
3197 data->SetId(item); // set the id
3198 self->SetItemData(item, data);
3199 }
3200 SWIGINTERN void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
3201 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3202 if (data == NULL) {
3203 data = new wxPyTreeItemData(obj);
3204 data->SetId(item); // set the id
3205 self->SetItemData(item, data);
3206 } else
3207 data->SetData(obj);
3208 }
3209 SWIGINTERN PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
3210 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3211 PyObject* rval = PyList_New(0);
3212 wxArrayTreeItemIds array;
3213 size_t num, x;
3214 num = self->GetSelections(array);
3215 for (x=0; x < num; x++) {
3216 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
3217 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true);
3218 PyList_Append(rval, item);
3219 Py_DECREF(item);
3220 }
3221 wxPyEndBlockThreads(blocked);
3222 return rval;
3223 }
3224 SWIGINTERN PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
3225 void* cookie = 0;
3226 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
3227 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3228 PyObject* tup = PyTuple_New(2);
3229 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
3230 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3231 wxPyEndBlockThreads(blocked);
3232 return tup;
3233 }
3234 SWIGINTERN PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
3235 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
3236 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3237 PyObject* tup = PyTuple_New(2);
3238 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
3239 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3240 wxPyEndBlockThreads(blocked);
3241 return tup;
3242 }
3243 SWIGINTERN PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly=false){
3244 wxRect rect;
3245 if (self->GetBoundingRect(item, rect, textOnly)) {
3246 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3247 wxRect* r = new wxRect(rect);
3248 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true);
3249 wxPyEndBlockThreads(blocked);
3250 return val;
3251 }
3252 else
3253 RETURN_NONE();
3254 }
3255 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
3256
3257 SWIGINTERNINLINE PyObject*
3258 SWIG_From_bool (bool value)
3259 {
3260 return PyBool_FromLong(value ? 1 : 0);
3261 }
3262
3263 // C++ version of Python aware wxControl
3264 class wxPyControl : public wxControl
3265 {
3266 DECLARE_DYNAMIC_CLASS(wxPyControl)
3267 public:
3268 wxPyControl() : wxControl() {}
3269 wxPyControl(wxWindow* parent, const wxWindowID id,
3270 const wxPoint& pos = wxDefaultPosition,
3271 const wxSize& size = wxDefaultSize,
3272 long style = 0,
3273 const wxValidator& validator=wxDefaultValidator,
3274 const wxString& name = wxPyControlNameStr)
3275 : wxControl(parent, id, pos, size, style, validator, name) {}
3276
3277
3278 bool DoEraseBackground(wxDC* dc) {
3279 #ifdef __WXMSW__
3280 return wxWindow::DoEraseBackground(dc->GetHDC());
3281 #else
3282 dc->SetBackground(wxBrush(GetBackgroundColour()));
3283 dc->Clear();
3284 return true;
3285 #endif
3286 }
3287
3288 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
3289 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
3290 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
3291 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
3292
3293 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
3294 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
3295 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
3296
3297 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
3298 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
3299
3300 DEC_PYCALLBACK__(InitDialog);
3301 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
3302 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
3303 DEC_PYCALLBACK_BOOL_(Validate);
3304
3305 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
3306 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
3307 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
3308
3309 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
3310 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
3311
3312 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
3313 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
3314
3315 DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
3316
3317 DEC_PYCALLBACK_VOID_(OnInternalIdle);
3318
3319 PYPRIVATE;
3320 };
3321
3322 IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
3323
3324 IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
3325 IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
3326 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
3327 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
3328
3329 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
3330 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
3331 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
3332
3333 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
3334 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
3335
3336 IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
3337 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
3338 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
3339 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
3340
3341 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
3342 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
3343 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
3344
3345 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
3346 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
3347
3348 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours);
3349 IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
3350
3351 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground);
3352
3353 IMP_PYCALLBACK_VOID_(wxPyControl, wxControl, OnInternalIdle);
3354
3355
3356
3357 SWIGINTERN void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
3358
3359 #include <wx/generic/dragimgg.h>
3360
3361 static const wxString wxPyDatePickerCtrlNameStr(wxDatePickerCtrlNameStr);
3362 SWIGINTERN wxDateTime wxDatePickerCtrl_GetLowerLimit(wxDatePickerCtrl *self){
3363 wxDateTime rv;
3364 self->GetRange(&rv, NULL);
3365 return rv;
3366 }
3367 SWIGINTERN wxDateTime wxDatePickerCtrl_GetUpperLimit(wxDatePickerCtrl *self){
3368 wxDateTime rv;
3369 self->GetRange(NULL, &rv);
3370 return rv;
3371 }
3372 static const wxString wxPyHyperlinkCtrlNameStr(wxHyperlinkCtrlNameStr);
3373 static const wxString wxPyColourPickerCtrlNameStr(wxColourPickerCtrlNameStr);
3374 static const wxString wxPyFilePickerCtrlNameStr(wxFilePickerCtrlNameStr);
3375 static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
3376 static const wxString wxPyDirPickerCtrlNameStr(wxDirPickerCtrlNameStr);
3377 static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
3378 static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr);
3379 static const wxString wxPyFontPickerCtrlNameStr(wxFontPickerCtrlNameStr);
3380 static const wxString wxPyCollapsiblePaneNameStr(wxCollapsiblePaneNameStr);
3381 static const wxString wxPySearchCtrlNameStr(wxSearchCtrlNameStr);
3382
3383 #if !defined(wxUSE_SEARCHCTRL) || !wxUSE_SEARCHCTRL
3384 // define a dummy class for builds that don't have wxSearchCtrl
3385
3386 enum {
3387 wxEVT_COMMAND_SEARCHCTRL_CANCEL_BTN,
3388 wxEVT_COMMAND_SEARCHCTRL_SEARCH_BTN
3389 };
3390
3391 class wxSearchCtrl : public wxTextCtrl
3392 {
3393 public:
3394 wxSearchCtrl() { wxPyRaiseNotImplemented(); }
3395 wxSearchCtrl(wxWindow*, wxWindowID,
3396 const wxString&,
3397 const wxPoint&,
3398 const wxSize&,
3399 long style,
3400 const wxValidator&,
3401 const wxString& name)
3402 { wxPyRaiseNotImplemented(); }
3403
3404 bool Create( wxWindow*, wxWindowID,
3405 const wxString&,
3406 const wxPoint&,
3407 const wxSize&,
3408 long style,
3409 const wxValidator&,
3410 const wxString& name) {}
3411
3412 virtual void SetMenu( wxMenu* ) {}
3413 virtual wxMenu* GetMenu() { return NULL; }
3414
3415 // get/set search options
3416 // ----------------------
3417 virtual void ShowSearchButton( bool ) {}
3418 virtual bool IsSearchButtonVisible() const { return false; }
3419
3420 virtual void ShowCancelButton( bool ) {}
3421 virtual bool IsCancelButtonVisible() const { return false; }
3422 };
3423 #endif
3424
3425 #ifdef __cplusplus
3426 extern "C" {
3427 #endif
3428 SWIGINTERN int ButtonNameStr_set(PyObject *) {
3429 SWIG_Error(SWIG_AttributeError,"Variable ButtonNameStr is read-only.");
3430 return 1;
3431 }
3432
3433
3434 SWIGINTERN PyObject *ButtonNameStr_get(void) {
3435 PyObject *pyobj = 0;
3436
3437 {
3438 #if wxUSE_UNICODE
3439 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
3440 #else
3441 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
3442 #endif
3443 }
3444 return pyobj;
3445 }
3446
3447
3448 SWIGINTERN PyObject *_wrap_new_Button(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3449 PyObject *resultobj = 0;
3450 wxWindow *arg1 = (wxWindow *) 0 ;
3451 int arg2 = (int) -1 ;
3452 wxString const &arg3_defvalue = wxPyEmptyString ;
3453 wxString *arg3 = (wxString *) &arg3_defvalue ;
3454 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3455 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3456 wxSize const &arg5_defvalue = wxDefaultSize ;
3457 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3458 long arg6 = (long) 0 ;
3459 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3460 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3461 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3462 wxString *arg8 = (wxString *) &arg8_defvalue ;
3463 wxButton *result = 0 ;
3464 void *argp1 = 0 ;
3465 int res1 = 0 ;
3466 int val2 ;
3467 int ecode2 = 0 ;
3468 bool temp3 = false ;
3469 wxPoint temp4 ;
3470 wxSize temp5 ;
3471 long val6 ;
3472 int ecode6 = 0 ;
3473 void *argp7 = 0 ;
3474 int res7 = 0 ;
3475 bool temp8 = false ;
3476 PyObject * obj0 = 0 ;
3477 PyObject * obj1 = 0 ;
3478 PyObject * obj2 = 0 ;
3479 PyObject * obj3 = 0 ;
3480 PyObject * obj4 = 0 ;
3481 PyObject * obj5 = 0 ;
3482 PyObject * obj6 = 0 ;
3483 PyObject * obj7 = 0 ;
3484 char * kwnames[] = {
3485 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3486 };
3487
3488 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3489 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3490 if (!SWIG_IsOK(res1)) {
3491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Button" "', expected argument " "1"" of type '" "wxWindow *""'");
3492 }
3493 arg1 = reinterpret_cast< wxWindow * >(argp1);
3494 if (obj1) {
3495 ecode2 = SWIG_AsVal_int(obj1, &val2);
3496 if (!SWIG_IsOK(ecode2)) {
3497 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Button" "', expected argument " "2"" of type '" "int""'");
3498 }
3499 arg2 = static_cast< int >(val2);
3500 }
3501 if (obj2) {
3502 {
3503 arg3 = wxString_in_helper(obj2);
3504 if (arg3 == NULL) SWIG_fail;
3505 temp3 = true;
3506 }
3507 }
3508 if (obj3) {
3509 {
3510 arg4 = &temp4;
3511 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3512 }
3513 }
3514 if (obj4) {
3515 {
3516 arg5 = &temp5;
3517 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3518 }
3519 }
3520 if (obj5) {
3521 ecode6 = SWIG_AsVal_long(obj5, &val6);
3522 if (!SWIG_IsOK(ecode6)) {
3523 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Button" "', expected argument " "6"" of type '" "long""'");
3524 }
3525 arg6 = static_cast< long >(val6);
3526 }
3527 if (obj6) {
3528 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3529 if (!SWIG_IsOK(res7)) {
3530 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
3531 }
3532 if (!argp7) {
3533 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
3534 }
3535 arg7 = reinterpret_cast< wxValidator * >(argp7);
3536 }
3537 if (obj7) {
3538 {
3539 arg8 = wxString_in_helper(obj7);
3540 if (arg8 == NULL) SWIG_fail;
3541 temp8 = true;
3542 }
3543 }
3544 {
3545 if (!wxPyCheckForApp()) SWIG_fail;
3546 PyThreadState* __tstate = wxPyBeginAllowThreads();
3547 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3548 wxPyEndAllowThreads(__tstate);
3549 if (PyErr_Occurred()) SWIG_fail;
3550 }
3551 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_NEW | 0 );
3552 {
3553 if (temp3)
3554 delete arg3;
3555 }
3556 {
3557 if (temp8)
3558 delete arg8;
3559 }
3560 return resultobj;
3561 fail:
3562 {
3563 if (temp3)
3564 delete arg3;
3565 }
3566 {
3567 if (temp8)
3568 delete arg8;
3569 }
3570 return NULL;
3571 }
3572
3573
3574 SWIGINTERN PyObject *_wrap_new_PreButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3575 PyObject *resultobj = 0;
3576 wxButton *result = 0 ;
3577
3578 if (!SWIG_Python_UnpackTuple(args,"new_PreButton",0,0,0)) SWIG_fail;
3579 {
3580 if (!wxPyCheckForApp()) SWIG_fail;
3581 PyThreadState* __tstate = wxPyBeginAllowThreads();
3582 result = (wxButton *)new wxButton();
3583 wxPyEndAllowThreads(__tstate);
3584 if (PyErr_Occurred()) SWIG_fail;
3585 }
3586 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_OWN | 0 );
3587 return resultobj;
3588 fail:
3589 return NULL;
3590 }
3591
3592
3593 SWIGINTERN PyObject *_wrap_Button_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3594 PyObject *resultobj = 0;
3595 wxButton *arg1 = (wxButton *) 0 ;
3596 wxWindow *arg2 = (wxWindow *) 0 ;
3597 int arg3 = (int) -1 ;
3598 wxString const &arg4_defvalue = wxPyEmptyString ;
3599 wxString *arg4 = (wxString *) &arg4_defvalue ;
3600 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3601 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3602 wxSize const &arg6_defvalue = wxDefaultSize ;
3603 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3604 long arg7 = (long) 0 ;
3605 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3606 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3607 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3608 wxString *arg9 = (wxString *) &arg9_defvalue ;
3609 bool result;
3610 void *argp1 = 0 ;
3611 int res1 = 0 ;
3612 void *argp2 = 0 ;
3613 int res2 = 0 ;
3614 int val3 ;
3615 int ecode3 = 0 ;
3616 bool temp4 = false ;
3617 wxPoint temp5 ;
3618 wxSize temp6 ;
3619 long val7 ;
3620 int ecode7 = 0 ;
3621 void *argp8 = 0 ;
3622 int res8 = 0 ;
3623 bool temp9 = false ;
3624 PyObject * obj0 = 0 ;
3625 PyObject * obj1 = 0 ;
3626 PyObject * obj2 = 0 ;
3627 PyObject * obj3 = 0 ;
3628 PyObject * obj4 = 0 ;
3629 PyObject * obj5 = 0 ;
3630 PyObject * obj6 = 0 ;
3631 PyObject * obj7 = 0 ;
3632 PyObject * obj8 = 0 ;
3633 char * kwnames[] = {
3634 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3635 };
3636
3637 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3638 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3639 if (!SWIG_IsOK(res1)) {
3640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_Create" "', expected argument " "1"" of type '" "wxButton *""'");
3641 }
3642 arg1 = reinterpret_cast< wxButton * >(argp1);
3643 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3644 if (!SWIG_IsOK(res2)) {
3645 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Button_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3646 }
3647 arg2 = reinterpret_cast< wxWindow * >(argp2);
3648 if (obj2) {
3649 ecode3 = SWIG_AsVal_int(obj2, &val3);
3650 if (!SWIG_IsOK(ecode3)) {
3651 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Button_Create" "', expected argument " "3"" of type '" "int""'");
3652 }
3653 arg3 = static_cast< int >(val3);
3654 }
3655 if (obj3) {
3656 {
3657 arg4 = wxString_in_helper(obj3);
3658 if (arg4 == NULL) SWIG_fail;
3659 temp4 = true;
3660 }
3661 }
3662 if (obj4) {
3663 {
3664 arg5 = &temp5;
3665 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3666 }
3667 }
3668 if (obj5) {
3669 {
3670 arg6 = &temp6;
3671 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3672 }
3673 }
3674 if (obj6) {
3675 ecode7 = SWIG_AsVal_long(obj6, &val7);
3676 if (!SWIG_IsOK(ecode7)) {
3677 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Button_Create" "', expected argument " "7"" of type '" "long""'");
3678 }
3679 arg7 = static_cast< long >(val7);
3680 }
3681 if (obj7) {
3682 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3683 if (!SWIG_IsOK(res8)) {
3684 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3685 }
3686 if (!argp8) {
3687 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3688 }
3689 arg8 = reinterpret_cast< wxValidator * >(argp8);
3690 }
3691 if (obj8) {
3692 {
3693 arg9 = wxString_in_helper(obj8);
3694 if (arg9 == NULL) SWIG_fail;
3695 temp9 = true;
3696 }
3697 }
3698 {
3699 PyThreadState* __tstate = wxPyBeginAllowThreads();
3700 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3701 wxPyEndAllowThreads(__tstate);
3702 if (PyErr_Occurred()) SWIG_fail;
3703 }
3704 {
3705 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3706 }
3707 {
3708 if (temp4)
3709 delete arg4;
3710 }
3711 {
3712 if (temp9)
3713 delete arg9;
3714 }
3715 return resultobj;
3716 fail:
3717 {
3718 if (temp4)
3719 delete arg4;
3720 }
3721 {
3722 if (temp9)
3723 delete arg9;
3724 }
3725 return NULL;
3726 }
3727
3728
3729 SWIGINTERN PyObject *_wrap_Button_SetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3730 PyObject *resultobj = 0;
3731 wxButton *arg1 = (wxButton *) 0 ;
3732 void *argp1 = 0 ;
3733 int res1 = 0 ;
3734 PyObject *swig_obj[1] ;
3735
3736 if (!args) SWIG_fail;
3737 swig_obj[0] = args;
3738 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3739 if (!SWIG_IsOK(res1)) {
3740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_SetDefault" "', expected argument " "1"" of type '" "wxButton *""'");
3741 }
3742 arg1 = reinterpret_cast< wxButton * >(argp1);
3743 {
3744 PyThreadState* __tstate = wxPyBeginAllowThreads();
3745 (arg1)->SetDefault();
3746 wxPyEndAllowThreads(__tstate);
3747 if (PyErr_Occurred()) SWIG_fail;
3748 }
3749 resultobj = SWIG_Py_Void();
3750 return resultobj;
3751 fail:
3752 return NULL;
3753 }
3754
3755
3756 SWIGINTERN PyObject *_wrap_Button_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3757 PyObject *resultobj = 0;
3758 wxSize result;
3759
3760 if (!SWIG_Python_UnpackTuple(args,"Button_GetDefaultSize",0,0,0)) SWIG_fail;
3761 {
3762 PyThreadState* __tstate = wxPyBeginAllowThreads();
3763 result = wxButton::GetDefaultSize();
3764 wxPyEndAllowThreads(__tstate);
3765 if (PyErr_Occurred()) SWIG_fail;
3766 }
3767 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
3768 return resultobj;
3769 fail:
3770 return NULL;
3771 }
3772
3773
3774 SWIGINTERN PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3775 PyObject *resultobj = 0;
3776 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
3777 SwigValueWrapper<wxVisualAttributes > result;
3778 int val1 ;
3779 int ecode1 = 0 ;
3780 PyObject * obj0 = 0 ;
3781 char * kwnames[] = {
3782 (char *) "variant", NULL
3783 };
3784
3785 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
3786 if (obj0) {
3787 ecode1 = SWIG_AsVal_int(obj0, &val1);
3788 if (!SWIG_IsOK(ecode1)) {
3789 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Button_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
3790 }
3791 arg1 = static_cast< wxWindowVariant >(val1);
3792 }
3793 {
3794 if (!wxPyCheckForApp()) SWIG_fail;
3795 PyThreadState* __tstate = wxPyBeginAllowThreads();
3796 result = wxButton::GetClassDefaultAttributes(arg1);
3797 wxPyEndAllowThreads(__tstate);
3798 if (PyErr_Occurred()) SWIG_fail;
3799 }
3800 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
3801 return resultobj;
3802 fail:
3803 return NULL;
3804 }
3805
3806
3807 SWIGINTERN PyObject *Button_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3808 PyObject *obj;
3809 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3810 SWIG_TypeNewClientData(SWIGTYPE_p_wxButton, SWIG_NewClientData(obj));
3811 return SWIG_Py_Void();
3812 }
3813
3814 SWIGINTERN PyObject *Button_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3815 return SWIG_Python_InitShadowInstance(args);
3816 }
3817
3818 SWIGINTERN PyObject *_wrap_new_BitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3819 PyObject *resultobj = 0;
3820 wxWindow *arg1 = (wxWindow *) 0 ;
3821 int arg2 = (int) -1 ;
3822 wxBitmap const &arg3_defvalue = wxNullBitmap ;
3823 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
3824 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3825 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3826 wxSize const &arg5_defvalue = wxDefaultSize ;
3827 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3828 long arg6 = (long) wxBU_AUTODRAW ;
3829 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3830 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3831 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3832 wxString *arg8 = (wxString *) &arg8_defvalue ;
3833 wxBitmapButton *result = 0 ;
3834 void *argp1 = 0 ;
3835 int res1 = 0 ;
3836 int val2 ;
3837 int ecode2 = 0 ;
3838 void *argp3 = 0 ;
3839 int res3 = 0 ;
3840 wxPoint temp4 ;
3841 wxSize temp5 ;
3842 long val6 ;
3843 int ecode6 = 0 ;
3844 void *argp7 = 0 ;
3845 int res7 = 0 ;
3846 bool temp8 = false ;
3847 PyObject * obj0 = 0 ;
3848 PyObject * obj1 = 0 ;
3849 PyObject * obj2 = 0 ;
3850 PyObject * obj3 = 0 ;
3851 PyObject * obj4 = 0 ;
3852 PyObject * obj5 = 0 ;
3853 PyObject * obj6 = 0 ;
3854 PyObject * obj7 = 0 ;
3855 char * kwnames[] = {
3856 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3857 };
3858
3859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3861 if (!SWIG_IsOK(res1)) {
3862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapButton" "', expected argument " "1"" of type '" "wxWindow *""'");
3863 }
3864 arg1 = reinterpret_cast< wxWindow * >(argp1);
3865 if (obj1) {
3866 ecode2 = SWIG_AsVal_int(obj1, &val2);
3867 if (!SWIG_IsOK(ecode2)) {
3868 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapButton" "', expected argument " "2"" of type '" "int""'");
3869 }
3870 arg2 = static_cast< int >(val2);
3871 }
3872 if (obj2) {
3873 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
3874 if (!SWIG_IsOK(res3)) {
3875 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3876 }
3877 if (!argp3) {
3878 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3879 }
3880 arg3 = reinterpret_cast< wxBitmap * >(argp3);
3881 }
3882 if (obj3) {
3883 {
3884 arg4 = &temp4;
3885 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3886 }
3887 }
3888 if (obj4) {
3889 {
3890 arg5 = &temp5;
3891 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3892 }
3893 }
3894 if (obj5) {
3895 ecode6 = SWIG_AsVal_long(obj5, &val6);
3896 if (!SWIG_IsOK(ecode6)) {
3897 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_BitmapButton" "', expected argument " "6"" of type '" "long""'");
3898 }
3899 arg6 = static_cast< long >(val6);
3900 }
3901 if (obj6) {
3902 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3903 if (!SWIG_IsOK(res7)) {
3904 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
3905 }
3906 if (!argp7) {
3907 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
3908 }
3909 arg7 = reinterpret_cast< wxValidator * >(argp7);
3910 }
3911 if (obj7) {
3912 {
3913 arg8 = wxString_in_helper(obj7);
3914 if (arg8 == NULL) SWIG_fail;
3915 temp8 = true;
3916 }
3917 }
3918 {
3919 if (!wxPyCheckForApp()) SWIG_fail;
3920 PyThreadState* __tstate = wxPyBeginAllowThreads();
3921 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3922 wxPyEndAllowThreads(__tstate);
3923 if (PyErr_Occurred()) SWIG_fail;
3924 }
3925 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_NEW | 0 );
3926 {
3927 if (temp8)
3928 delete arg8;
3929 }
3930 return resultobj;
3931 fail:
3932 {
3933 if (temp8)
3934 delete arg8;
3935 }
3936 return NULL;
3937 }
3938
3939
3940 SWIGINTERN PyObject *_wrap_new_PreBitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3941 PyObject *resultobj = 0;
3942 wxBitmapButton *result = 0 ;
3943
3944 if (!SWIG_Python_UnpackTuple(args,"new_PreBitmapButton",0,0,0)) SWIG_fail;
3945 {
3946 if (!wxPyCheckForApp()) SWIG_fail;
3947 PyThreadState* __tstate = wxPyBeginAllowThreads();
3948 result = (wxBitmapButton *)new wxBitmapButton();
3949 wxPyEndAllowThreads(__tstate);
3950 if (PyErr_Occurred()) SWIG_fail;
3951 }
3952 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_OWN | 0 );
3953 return resultobj;
3954 fail:
3955 return NULL;
3956 }
3957
3958
3959 SWIGINTERN PyObject *_wrap_BitmapButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3960 PyObject *resultobj = 0;
3961 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
3962 wxWindow *arg2 = (wxWindow *) 0 ;
3963 int arg3 = (int) -1 ;
3964 wxBitmap const &arg4_defvalue = wxNullBitmap ;
3965 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
3966 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3967 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3968 wxSize const &arg6_defvalue = wxDefaultSize ;
3969 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3970 long arg7 = (long) wxBU_AUTODRAW ;
3971 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3972 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3973 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3974 wxString *arg9 = (wxString *) &arg9_defvalue ;
3975 bool result;
3976 void *argp1 = 0 ;
3977 int res1 = 0 ;
3978 void *argp2 = 0 ;
3979 int res2 = 0 ;
3980 int val3 ;
3981 int ecode3 = 0 ;
3982 void *argp4 = 0 ;
3983 int res4 = 0 ;
3984 wxPoint temp5 ;
3985 wxSize temp6 ;
3986 long val7 ;
3987 int ecode7 = 0 ;
3988 void *argp8 = 0 ;
3989 int res8 = 0 ;
3990 bool temp9 = false ;
3991 PyObject * obj0 = 0 ;
3992 PyObject * obj1 = 0 ;
3993 PyObject * obj2 = 0 ;
3994 PyObject * obj3 = 0 ;
3995 PyObject * obj4 = 0 ;
3996 PyObject * obj5 = 0 ;
3997 PyObject * obj6 = 0 ;
3998 PyObject * obj7 = 0 ;
3999 PyObject * obj8 = 0 ;
4000 char * kwnames[] = {
4001 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4002 };
4003
4004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
4005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4006 if (!SWIG_IsOK(res1)) {
4007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_Create" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4008 }
4009 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4010 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
4011 if (!SWIG_IsOK(res2)) {
4012 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
4013 }
4014 arg2 = reinterpret_cast< wxWindow * >(argp2);
4015 if (obj2) {
4016 ecode3 = SWIG_AsVal_int(obj2, &val3);
4017 if (!SWIG_IsOK(ecode3)) {
4018 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_Create" "', expected argument " "3"" of type '" "int""'");
4019 }
4020 arg3 = static_cast< int >(val3);
4021 }
4022 if (obj3) {
4023 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
4024 if (!SWIG_IsOK(res4)) {
4025 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
4026 }
4027 if (!argp4) {
4028 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
4029 }
4030 arg4 = reinterpret_cast< wxBitmap * >(argp4);
4031 }
4032 if (obj4) {
4033 {
4034 arg5 = &temp5;
4035 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4036 }
4037 }
4038 if (obj5) {
4039 {
4040 arg6 = &temp6;
4041 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4042 }
4043 }
4044 if (obj6) {
4045 ecode7 = SWIG_AsVal_long(obj6, &val7);
4046 if (!SWIG_IsOK(ecode7)) {
4047 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "BitmapButton_Create" "', expected argument " "7"" of type '" "long""'");
4048 }
4049 arg7 = static_cast< long >(val7);
4050 }
4051 if (obj7) {
4052 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4053 if (!SWIG_IsOK(res8)) {
4054 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4055 }
4056 if (!argp8) {
4057 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4058 }
4059 arg8 = reinterpret_cast< wxValidator * >(argp8);
4060 }
4061 if (obj8) {
4062 {
4063 arg9 = wxString_in_helper(obj8);
4064 if (arg9 == NULL) SWIG_fail;
4065 temp9 = true;
4066 }
4067 }
4068 {
4069 PyThreadState* __tstate = wxPyBeginAllowThreads();
4070 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4071 wxPyEndAllowThreads(__tstate);
4072 if (PyErr_Occurred()) SWIG_fail;
4073 }
4074 {
4075 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4076 }
4077 {
4078 if (temp9)
4079 delete arg9;
4080 }
4081 return resultobj;
4082 fail:
4083 {
4084 if (temp9)
4085 delete arg9;
4086 }
4087 return NULL;
4088 }
4089
4090
4091 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4092 PyObject *resultobj = 0;
4093 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4094 wxBitmap result;
4095 void *argp1 = 0 ;
4096 int res1 = 0 ;
4097 PyObject *swig_obj[1] ;
4098
4099 if (!args) SWIG_fail;
4100 swig_obj[0] = args;
4101 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4102 if (!SWIG_IsOK(res1)) {
4103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4104 }
4105 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4106 {
4107 PyThreadState* __tstate = wxPyBeginAllowThreads();
4108 result = (arg1)->GetBitmapLabel();
4109 wxPyEndAllowThreads(__tstate);
4110 if (PyErr_Occurred()) SWIG_fail;
4111 }
4112 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4113 return resultobj;
4114 fail:
4115 return NULL;
4116 }
4117
4118
4119 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4120 PyObject *resultobj = 0;
4121 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4122 wxBitmap result;
4123 void *argp1 = 0 ;
4124 int res1 = 0 ;
4125 PyObject *swig_obj[1] ;
4126
4127 if (!args) SWIG_fail;
4128 swig_obj[0] = args;
4129 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4130 if (!SWIG_IsOK(res1)) {
4131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4132 }
4133 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4134 {
4135 PyThreadState* __tstate = wxPyBeginAllowThreads();
4136 result = (arg1)->GetBitmapDisabled();
4137 wxPyEndAllowThreads(__tstate);
4138 if (PyErr_Occurred()) SWIG_fail;
4139 }
4140 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4141 return resultobj;
4142 fail:
4143 return NULL;
4144 }
4145
4146
4147 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4148 PyObject *resultobj = 0;
4149 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4150 wxBitmap result;
4151 void *argp1 = 0 ;
4152 int res1 = 0 ;
4153 PyObject *swig_obj[1] ;
4154
4155 if (!args) SWIG_fail;
4156 swig_obj[0] = args;
4157 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4158 if (!SWIG_IsOK(res1)) {
4159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4160 }
4161 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4162 {
4163 PyThreadState* __tstate = wxPyBeginAllowThreads();
4164 result = (arg1)->GetBitmapFocus();
4165 wxPyEndAllowThreads(__tstate);
4166 if (PyErr_Occurred()) SWIG_fail;
4167 }
4168 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4169 return resultobj;
4170 fail:
4171 return NULL;
4172 }
4173
4174
4175 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4176 PyObject *resultobj = 0;
4177 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4178 wxBitmap result;
4179 void *argp1 = 0 ;
4180 int res1 = 0 ;
4181 PyObject *swig_obj[1] ;
4182
4183 if (!args) SWIG_fail;
4184 swig_obj[0] = args;
4185 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4186 if (!SWIG_IsOK(res1)) {
4187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4188 }
4189 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4190 {
4191 PyThreadState* __tstate = wxPyBeginAllowThreads();
4192 result = (arg1)->GetBitmapSelected();
4193 wxPyEndAllowThreads(__tstate);
4194 if (PyErr_Occurred()) SWIG_fail;
4195 }
4196 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4197 return resultobj;
4198 fail:
4199 return NULL;
4200 }
4201
4202
4203 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4204 PyObject *resultobj = 0;
4205 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4206 wxBitmap result;
4207 void *argp1 = 0 ;
4208 int res1 = 0 ;
4209 PyObject *swig_obj[1] ;
4210
4211 if (!args) SWIG_fail;
4212 swig_obj[0] = args;
4213 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4214 if (!SWIG_IsOK(res1)) {
4215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4216 }
4217 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4218 {
4219 PyThreadState* __tstate = wxPyBeginAllowThreads();
4220 result = (arg1)->GetBitmapHover();
4221 wxPyEndAllowThreads(__tstate);
4222 if (PyErr_Occurred()) SWIG_fail;
4223 }
4224 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4225 return resultobj;
4226 fail:
4227 return NULL;
4228 }
4229
4230
4231 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4232 PyObject *resultobj = 0;
4233 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4234 wxBitmap *arg2 = 0 ;
4235 void *argp1 = 0 ;
4236 int res1 = 0 ;
4237 void *argp2 = 0 ;
4238 int res2 = 0 ;
4239 PyObject * obj0 = 0 ;
4240 PyObject * obj1 = 0 ;
4241 char * kwnames[] = {
4242 (char *) "self",(char *) "bitmap", NULL
4243 };
4244
4245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) SWIG_fail;
4246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4247 if (!SWIG_IsOK(res1)) {
4248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4249 }
4250 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4251 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4252 if (!SWIG_IsOK(res2)) {
4253 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4254 }
4255 if (!argp2) {
4256 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4257 }
4258 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4259 {
4260 PyThreadState* __tstate = wxPyBeginAllowThreads();
4261 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
4262 wxPyEndAllowThreads(__tstate);
4263 if (PyErr_Occurred()) SWIG_fail;
4264 }
4265 resultobj = SWIG_Py_Void();
4266 return resultobj;
4267 fail:
4268 return NULL;
4269 }
4270
4271
4272 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4273 PyObject *resultobj = 0;
4274 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4275 wxBitmap *arg2 = 0 ;
4276 void *argp1 = 0 ;
4277 int res1 = 0 ;
4278 void *argp2 = 0 ;
4279 int res2 = 0 ;
4280 PyObject * obj0 = 0 ;
4281 PyObject * obj1 = 0 ;
4282 char * kwnames[] = {
4283 (char *) "self",(char *) "bitmap", NULL
4284 };
4285
4286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) SWIG_fail;
4287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4288 if (!SWIG_IsOK(res1)) {
4289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4290 }
4291 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4292 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4293 if (!SWIG_IsOK(res2)) {
4294 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4295 }
4296 if (!argp2) {
4297 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4298 }
4299 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4300 {
4301 PyThreadState* __tstate = wxPyBeginAllowThreads();
4302 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
4303 wxPyEndAllowThreads(__tstate);
4304 if (PyErr_Occurred()) SWIG_fail;
4305 }
4306 resultobj = SWIG_Py_Void();
4307 return resultobj;
4308 fail:
4309 return NULL;
4310 }
4311
4312
4313 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4314 PyObject *resultobj = 0;
4315 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4316 wxBitmap *arg2 = 0 ;
4317 void *argp1 = 0 ;
4318 int res1 = 0 ;
4319 void *argp2 = 0 ;
4320 int res2 = 0 ;
4321 PyObject * obj0 = 0 ;
4322 PyObject * obj1 = 0 ;
4323 char * kwnames[] = {
4324 (char *) "self",(char *) "bitmap", NULL
4325 };
4326
4327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) SWIG_fail;
4328 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4329 if (!SWIG_IsOK(res1)) {
4330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4331 }
4332 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4333 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4334 if (!SWIG_IsOK(res2)) {
4335 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4336 }
4337 if (!argp2) {
4338 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4339 }
4340 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4341 {
4342 PyThreadState* __tstate = wxPyBeginAllowThreads();
4343 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
4344 wxPyEndAllowThreads(__tstate);
4345 if (PyErr_Occurred()) SWIG_fail;
4346 }
4347 resultobj = SWIG_Py_Void();
4348 return resultobj;
4349 fail:
4350 return NULL;
4351 }
4352
4353
4354 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4355 PyObject *resultobj = 0;
4356 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4357 wxBitmap *arg2 = 0 ;
4358 void *argp1 = 0 ;
4359 int res1 = 0 ;
4360 void *argp2 = 0 ;
4361 int res2 = 0 ;
4362 PyObject * obj0 = 0 ;
4363 PyObject * obj1 = 0 ;
4364 char * kwnames[] = {
4365 (char *) "self",(char *) "bitmap", NULL
4366 };
4367
4368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) SWIG_fail;
4369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4370 if (!SWIG_IsOK(res1)) {
4371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4372 }
4373 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4374 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4375 if (!SWIG_IsOK(res2)) {
4376 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4377 }
4378 if (!argp2) {
4379 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4380 }
4381 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4382 {
4383 PyThreadState* __tstate = wxPyBeginAllowThreads();
4384 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
4385 wxPyEndAllowThreads(__tstate);
4386 if (PyErr_Occurred()) SWIG_fail;
4387 }
4388 resultobj = SWIG_Py_Void();
4389 return resultobj;
4390 fail:
4391 return NULL;
4392 }
4393
4394
4395 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4396 PyObject *resultobj = 0;
4397 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4398 wxBitmap *arg2 = 0 ;
4399 void *argp1 = 0 ;
4400 int res1 = 0 ;
4401 void *argp2 = 0 ;
4402 int res2 = 0 ;
4403 PyObject * obj0 = 0 ;
4404 PyObject * obj1 = 0 ;
4405 char * kwnames[] = {
4406 (char *) "self",(char *) "hover", NULL
4407 };
4408
4409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapHover",kwnames,&obj0,&obj1)) SWIG_fail;
4410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4411 if (!SWIG_IsOK(res1)) {
4412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4413 }
4414 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4415 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4416 if (!SWIG_IsOK(res2)) {
4417 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4418 }
4419 if (!argp2) {
4420 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4421 }
4422 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4423 {
4424 PyThreadState* __tstate = wxPyBeginAllowThreads();
4425 (arg1)->SetBitmapHover((wxBitmap const &)*arg2);
4426 wxPyEndAllowThreads(__tstate);
4427 if (PyErr_Occurred()) SWIG_fail;
4428 }
4429 resultobj = SWIG_Py_Void();
4430 return resultobj;
4431 fail:
4432 return NULL;
4433 }
4434
4435
4436 SWIGINTERN PyObject *_wrap_BitmapButton_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4437 PyObject *resultobj = 0;
4438 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4439 int arg2 ;
4440 int arg3 ;
4441 void *argp1 = 0 ;
4442 int res1 = 0 ;
4443 int val2 ;
4444 int ecode2 = 0 ;
4445 int val3 ;
4446 int ecode3 = 0 ;
4447 PyObject * obj0 = 0 ;
4448 PyObject * obj1 = 0 ;
4449 PyObject * obj2 = 0 ;
4450 char * kwnames[] = {
4451 (char *) "self",(char *) "x",(char *) "y", NULL
4452 };
4453
4454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4456 if (!SWIG_IsOK(res1)) {
4457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetMargins" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4458 }
4459 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4460 ecode2 = SWIG_AsVal_int(obj1, &val2);
4461 if (!SWIG_IsOK(ecode2)) {
4462 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BitmapButton_SetMargins" "', expected argument " "2"" of type '" "int""'");
4463 }
4464 arg2 = static_cast< int >(val2);
4465 ecode3 = SWIG_AsVal_int(obj2, &val3);
4466 if (!SWIG_IsOK(ecode3)) {
4467 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_SetMargins" "', expected argument " "3"" of type '" "int""'");
4468 }
4469 arg3 = static_cast< int >(val3);
4470 {
4471 PyThreadState* __tstate = wxPyBeginAllowThreads();
4472 (arg1)->SetMargins(arg2,arg3);
4473 wxPyEndAllowThreads(__tstate);
4474 if (PyErr_Occurred()) SWIG_fail;
4475 }
4476 resultobj = SWIG_Py_Void();
4477 return resultobj;
4478 fail:
4479 return NULL;
4480 }
4481
4482
4483 SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4484 PyObject *resultobj = 0;
4485 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4486 int result;
4487 void *argp1 = 0 ;
4488 int res1 = 0 ;
4489 PyObject *swig_obj[1] ;
4490
4491 if (!args) SWIG_fail;
4492 swig_obj[0] = args;
4493 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4494 if (!SWIG_IsOK(res1)) {
4495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginX" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4496 }
4497 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4498 {
4499 PyThreadState* __tstate = wxPyBeginAllowThreads();
4500 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
4501 wxPyEndAllowThreads(__tstate);
4502 if (PyErr_Occurred()) SWIG_fail;
4503 }
4504 resultobj = SWIG_From_int(static_cast< int >(result));
4505 return resultobj;
4506 fail:
4507 return NULL;
4508 }
4509
4510
4511 SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4512 PyObject *resultobj = 0;
4513 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4514 int result;
4515 void *argp1 = 0 ;
4516 int res1 = 0 ;
4517 PyObject *swig_obj[1] ;
4518
4519 if (!args) SWIG_fail;
4520 swig_obj[0] = args;
4521 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4522 if (!SWIG_IsOK(res1)) {
4523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginY" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4524 }
4525 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4526 {
4527 PyThreadState* __tstate = wxPyBeginAllowThreads();
4528 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
4529 wxPyEndAllowThreads(__tstate);
4530 if (PyErr_Occurred()) SWIG_fail;
4531 }
4532 resultobj = SWIG_From_int(static_cast< int >(result));
4533 return resultobj;
4534 fail:
4535 return NULL;
4536 }
4537
4538
4539 SWIGINTERN PyObject *BitmapButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4540 PyObject *obj;
4541 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4542 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmapButton, SWIG_NewClientData(obj));
4543 return SWIG_Py_Void();
4544 }
4545
4546 SWIGINTERN PyObject *BitmapButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4547 return SWIG_Python_InitShadowInstance(args);
4548 }
4549
4550 SWIGINTERN int CheckBoxNameStr_set(PyObject *) {
4551 SWIG_Error(SWIG_AttributeError,"Variable CheckBoxNameStr is read-only.");
4552 return 1;
4553 }
4554
4555
4556 SWIGINTERN PyObject *CheckBoxNameStr_get(void) {
4557 PyObject *pyobj = 0;
4558
4559 {
4560 #if wxUSE_UNICODE
4561 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4562 #else
4563 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4564 #endif
4565 }
4566 return pyobj;
4567 }
4568
4569
4570 SWIGINTERN PyObject *_wrap_new_CheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4571 PyObject *resultobj = 0;
4572 wxWindow *arg1 = (wxWindow *) 0 ;
4573 int arg2 = (int) -1 ;
4574 wxString const &arg3_defvalue = wxPyEmptyString ;
4575 wxString *arg3 = (wxString *) &arg3_defvalue ;
4576 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4577 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4578 wxSize const &arg5_defvalue = wxDefaultSize ;
4579 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4580 long arg6 = (long) 0 ;
4581 wxValidator const &arg7_defvalue = wxDefaultValidator ;
4582 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
4583 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
4584 wxString *arg8 = (wxString *) &arg8_defvalue ;
4585 wxCheckBox *result = 0 ;
4586 void *argp1 = 0 ;
4587 int res1 = 0 ;
4588 int val2 ;
4589 int ecode2 = 0 ;
4590 bool temp3 = false ;
4591 wxPoint temp4 ;
4592 wxSize temp5 ;
4593 long val6 ;
4594 int ecode6 = 0 ;
4595 void *argp7 = 0 ;
4596 int res7 = 0 ;
4597 bool temp8 = false ;
4598 PyObject * obj0 = 0 ;
4599 PyObject * obj1 = 0 ;
4600 PyObject * obj2 = 0 ;
4601 PyObject * obj3 = 0 ;
4602 PyObject * obj4 = 0 ;
4603 PyObject * obj5 = 0 ;
4604 PyObject * obj6 = 0 ;
4605 PyObject * obj7 = 0 ;
4606 char * kwnames[] = {
4607 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4608 };
4609
4610 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
4611 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
4612 if (!SWIG_IsOK(res1)) {
4613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckBox" "', expected argument " "1"" of type '" "wxWindow *""'");
4614 }
4615 arg1 = reinterpret_cast< wxWindow * >(argp1);
4616 if (obj1) {
4617 ecode2 = SWIG_AsVal_int(obj1, &val2);
4618 if (!SWIG_IsOK(ecode2)) {
4619 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckBox" "', expected argument " "2"" of type '" "int""'");
4620 }
4621 arg2 = static_cast< int >(val2);
4622 }
4623 if (obj2) {
4624 {
4625 arg3 = wxString_in_helper(obj2);
4626 if (arg3 == NULL) SWIG_fail;
4627 temp3 = true;
4628 }
4629 }
4630 if (obj3) {
4631 {
4632 arg4 = &temp4;
4633 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4634 }
4635 }
4636 if (obj4) {
4637 {
4638 arg5 = &temp5;
4639 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4640 }
4641 }
4642 if (obj5) {
4643 ecode6 = SWIG_AsVal_long(obj5, &val6);
4644 if (!SWIG_IsOK(ecode6)) {
4645 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckBox" "', expected argument " "6"" of type '" "long""'");
4646 }
4647 arg6 = static_cast< long >(val6);
4648 }
4649 if (obj6) {
4650 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
4651 if (!SWIG_IsOK(res7)) {
4652 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4653 }
4654 if (!argp7) {
4655 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4656 }
4657 arg7 = reinterpret_cast< wxValidator * >(argp7);
4658 }
4659 if (obj7) {
4660 {
4661 arg8 = wxString_in_helper(obj7);
4662 if (arg8 == NULL) SWIG_fail;
4663 temp8 = true;
4664 }
4665 }
4666 {
4667 if (!wxPyCheckForApp()) SWIG_fail;
4668 PyThreadState* __tstate = wxPyBeginAllowThreads();
4669 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
4670 wxPyEndAllowThreads(__tstate);
4671 if (PyErr_Occurred()) SWIG_fail;
4672 }
4673 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_NEW | 0 );
4674 {
4675 if (temp3)
4676 delete arg3;
4677 }
4678 {
4679 if (temp8)
4680 delete arg8;
4681 }
4682 return resultobj;
4683 fail:
4684 {
4685 if (temp3)
4686 delete arg3;
4687 }
4688 {
4689 if (temp8)
4690 delete arg8;
4691 }
4692 return NULL;
4693 }
4694
4695
4696 SWIGINTERN PyObject *_wrap_new_PreCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4697 PyObject *resultobj = 0;
4698 wxCheckBox *result = 0 ;
4699
4700 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckBox",0,0,0)) SWIG_fail;
4701 {
4702 if (!wxPyCheckForApp()) SWIG_fail;
4703 PyThreadState* __tstate = wxPyBeginAllowThreads();
4704 result = (wxCheckBox *)new wxCheckBox();
4705 wxPyEndAllowThreads(__tstate);
4706 if (PyErr_Occurred()) SWIG_fail;
4707 }
4708 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_OWN | 0 );
4709 return resultobj;
4710 fail:
4711 return NULL;
4712 }
4713
4714
4715 SWIGINTERN PyObject *_wrap_CheckBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4716 PyObject *resultobj = 0;
4717 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4718 wxWindow *arg2 = (wxWindow *) 0 ;
4719 int arg3 = (int) -1 ;
4720 wxString const &arg4_defvalue = wxPyEmptyString ;
4721 wxString *arg4 = (wxString *) &arg4_defvalue ;
4722 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4723 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4724 wxSize const &arg6_defvalue = wxDefaultSize ;
4725 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4726 long arg7 = (long) 0 ;
4727 wxValidator const &arg8_defvalue = wxDefaultValidator ;
4728 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
4729 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
4730 wxString *arg9 = (wxString *) &arg9_defvalue ;
4731 bool result;
4732 void *argp1 = 0 ;
4733 int res1 = 0 ;
4734 void *argp2 = 0 ;
4735 int res2 = 0 ;
4736 int val3 ;
4737 int ecode3 = 0 ;
4738 bool temp4 = false ;
4739 wxPoint temp5 ;
4740 wxSize temp6 ;
4741 long val7 ;
4742 int ecode7 = 0 ;
4743 void *argp8 = 0 ;
4744 int res8 = 0 ;
4745 bool temp9 = false ;
4746 PyObject * obj0 = 0 ;
4747 PyObject * obj1 = 0 ;
4748 PyObject * obj2 = 0 ;
4749 PyObject * obj3 = 0 ;
4750 PyObject * obj4 = 0 ;
4751 PyObject * obj5 = 0 ;
4752 PyObject * obj6 = 0 ;
4753 PyObject * obj7 = 0 ;
4754 PyObject * obj8 = 0 ;
4755 char * kwnames[] = {
4756 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4757 };
4758
4759 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
4760 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4761 if (!SWIG_IsOK(res1)) {
4762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Create" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4763 }
4764 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4765 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
4766 if (!SWIG_IsOK(res2)) {
4767 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
4768 }
4769 arg2 = reinterpret_cast< wxWindow * >(argp2);
4770 if (obj2) {
4771 ecode3 = SWIG_AsVal_int(obj2, &val3);
4772 if (!SWIG_IsOK(ecode3)) {
4773 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckBox_Create" "', expected argument " "3"" of type '" "int""'");
4774 }
4775 arg3 = static_cast< int >(val3);
4776 }
4777 if (obj3) {
4778 {
4779 arg4 = wxString_in_helper(obj3);
4780 if (arg4 == NULL) SWIG_fail;
4781 temp4 = true;
4782 }
4783 }
4784 if (obj4) {
4785 {
4786 arg5 = &temp5;
4787 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4788 }
4789 }
4790 if (obj5) {
4791 {
4792 arg6 = &temp6;
4793 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4794 }
4795 }
4796 if (obj6) {
4797 ecode7 = SWIG_AsVal_long(obj6, &val7);
4798 if (!SWIG_IsOK(ecode7)) {
4799 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckBox_Create" "', expected argument " "7"" of type '" "long""'");
4800 }
4801 arg7 = static_cast< long >(val7);
4802 }
4803 if (obj7) {
4804 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4805 if (!SWIG_IsOK(res8)) {
4806 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4807 }
4808 if (!argp8) {
4809 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4810 }
4811 arg8 = reinterpret_cast< wxValidator * >(argp8);
4812 }
4813 if (obj8) {
4814 {
4815 arg9 = wxString_in_helper(obj8);
4816 if (arg9 == NULL) SWIG_fail;
4817 temp9 = true;
4818 }
4819 }
4820 {
4821 PyThreadState* __tstate = wxPyBeginAllowThreads();
4822 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4823 wxPyEndAllowThreads(__tstate);
4824 if (PyErr_Occurred()) SWIG_fail;
4825 }
4826 {
4827 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4828 }
4829 {
4830 if (temp4)
4831 delete arg4;
4832 }
4833 {
4834 if (temp9)
4835 delete arg9;
4836 }
4837 return resultobj;
4838 fail:
4839 {
4840 if (temp4)
4841 delete arg4;
4842 }
4843 {
4844 if (temp9)
4845 delete arg9;
4846 }
4847 return NULL;
4848 }
4849
4850
4851 SWIGINTERN PyObject *_wrap_CheckBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4852 PyObject *resultobj = 0;
4853 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4854 bool result;
4855 void *argp1 = 0 ;
4856 int res1 = 0 ;
4857 PyObject *swig_obj[1] ;
4858
4859 if (!args) SWIG_fail;
4860 swig_obj[0] = args;
4861 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4862 if (!SWIG_IsOK(res1)) {
4863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_GetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4864 }
4865 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4866 {
4867 PyThreadState* __tstate = wxPyBeginAllowThreads();
4868 result = (bool)(arg1)->GetValue();
4869 wxPyEndAllowThreads(__tstate);
4870 if (PyErr_Occurred()) SWIG_fail;
4871 }
4872 {
4873 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4874 }
4875 return resultobj;
4876 fail:
4877 return NULL;
4878 }
4879
4880
4881 SWIGINTERN PyObject *_wrap_CheckBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4882 PyObject *resultobj = 0;
4883 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4884 bool result;
4885 void *argp1 = 0 ;
4886 int res1 = 0 ;
4887 PyObject *swig_obj[1] ;
4888
4889 if (!args) SWIG_fail;
4890 swig_obj[0] = args;
4891 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4892 if (!SWIG_IsOK(res1)) {
4893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4894 }
4895 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4896 {
4897 PyThreadState* __tstate = wxPyBeginAllowThreads();
4898 result = (bool)(arg1)->IsChecked();
4899 wxPyEndAllowThreads(__tstate);
4900 if (PyErr_Occurred()) SWIG_fail;
4901 }
4902 {
4903 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4904 }
4905 return resultobj;
4906 fail:
4907 return NULL;
4908 }
4909
4910
4911 SWIGINTERN PyObject *_wrap_CheckBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4912 PyObject *resultobj = 0;
4913 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4914 bool arg2 ;
4915 void *argp1 = 0 ;
4916 int res1 = 0 ;
4917 bool val2 ;
4918 int ecode2 = 0 ;
4919 PyObject * obj0 = 0 ;
4920 PyObject * obj1 = 0 ;
4921 char * kwnames[] = {
4922 (char *) "self",(char *) "state", NULL
4923 };
4924
4925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
4926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4927 if (!SWIG_IsOK(res1)) {
4928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_SetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4929 }
4930 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4931 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4932 if (!SWIG_IsOK(ecode2)) {
4933 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_SetValue" "', expected argument " "2"" of type '" "bool""'");
4934 }
4935 arg2 = static_cast< bool >(val2);
4936 {
4937 PyThreadState* __tstate = wxPyBeginAllowThreads();
4938 (arg1)->SetValue(arg2);
4939 wxPyEndAllowThreads(__tstate);
4940 if (PyErr_Occurred()) SWIG_fail;
4941 }
4942 resultobj = SWIG_Py_Void();
4943 return resultobj;
4944 fail:
4945 return NULL;
4946 }
4947
4948
4949 SWIGINTERN PyObject *_wrap_CheckBox_Get3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4950 PyObject *resultobj = 0;
4951 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4952 wxCheckBoxState result;
4953 void *argp1 = 0 ;
4954 int res1 = 0 ;
4955 PyObject *swig_obj[1] ;
4956
4957 if (!args) SWIG_fail;
4958 swig_obj[0] = args;
4959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4960 if (!SWIG_IsOK(res1)) {
4961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Get3StateValue" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4962 }
4963 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4964 {
4965 PyThreadState* __tstate = wxPyBeginAllowThreads();
4966 result = (wxCheckBoxState)((wxCheckBox const *)arg1)->Get3StateValue();
4967 wxPyEndAllowThreads(__tstate);
4968 if (PyErr_Occurred()) SWIG_fail;
4969 }
4970 resultobj = SWIG_From_int(static_cast< int >(result));
4971 return resultobj;
4972 fail:
4973 return NULL;
4974 }
4975
4976
4977 SWIGINTERN PyObject *_wrap_CheckBox_Set3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4978 PyObject *resultobj = 0;
4979 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4980 wxCheckBoxState arg2 ;
4981 void *argp1 = 0 ;
4982 int res1 = 0 ;
4983 int val2 ;
4984 int ecode2 = 0 ;
4985 PyObject * obj0 = 0 ;
4986 PyObject * obj1 = 0 ;
4987 char * kwnames[] = {
4988 (char *) "self",(char *) "state", NULL
4989 };
4990
4991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) SWIG_fail;
4992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4993 if (!SWIG_IsOK(res1)) {
4994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Set3StateValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4995 }
4996 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4997 ecode2 = SWIG_AsVal_int(obj1, &val2);
4998 if (!SWIG_IsOK(ecode2)) {
4999 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_Set3StateValue" "', expected argument " "2"" of type '" "wxCheckBoxState""'");
5000 }
5001 arg2 = static_cast< wxCheckBoxState >(val2);
5002 {
5003 PyThreadState* __tstate = wxPyBeginAllowThreads();
5004 (arg1)->Set3StateValue(arg2);
5005 wxPyEndAllowThreads(__tstate);
5006 if (PyErr_Occurred()) SWIG_fail;
5007 }
5008 resultobj = SWIG_Py_Void();
5009 return resultobj;
5010 fail:
5011 return NULL;
5012 }
5013
5014
5015 SWIGINTERN PyObject *_wrap_CheckBox_Is3State(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5016 PyObject *resultobj = 0;
5017 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
5018 bool result;
5019 void *argp1 = 0 ;
5020 int res1 = 0 ;
5021 PyObject *swig_obj[1] ;
5022
5023 if (!args) SWIG_fail;
5024 swig_obj[0] = args;
5025 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
5026 if (!SWIG_IsOK(res1)) {
5027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3State" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
5028 }
5029 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
5030 {
5031 PyThreadState* __tstate = wxPyBeginAllowThreads();
5032 result = (bool)((wxCheckBox const *)arg1)->Is3State();
5033 wxPyEndAllowThreads(__tstate);
5034 if (PyErr_Occurred()) SWIG_fail;
5035 }
5036 {
5037 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5038 }
5039 return resultobj;
5040 fail:
5041 return NULL;
5042 }
5043
5044
5045 SWIGINTERN PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5046 PyObject *resultobj = 0;
5047 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
5048 bool result;
5049 void *argp1 = 0 ;
5050 int res1 = 0 ;
5051 PyObject *swig_obj[1] ;
5052
5053 if (!args) SWIG_fail;
5054 swig_obj[0] = args;
5055 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
5056 if (!SWIG_IsOK(res1)) {
5057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3rdStateAllowedForUser" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
5058 }
5059 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
5060 {
5061 PyThreadState* __tstate = wxPyBeginAllowThreads();
5062 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
5063 wxPyEndAllowThreads(__tstate);
5064 if (PyErr_Occurred()) SWIG_fail;
5065 }
5066 {
5067 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5068 }
5069 return resultobj;
5070 fail:
5071 return NULL;
5072 }
5073
5074
5075 SWIGINTERN PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5076 PyObject *resultobj = 0;
5077 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5078 SwigValueWrapper<wxVisualAttributes > result;
5079 int val1 ;
5080 int ecode1 = 0 ;
5081 PyObject * obj0 = 0 ;
5082 char * kwnames[] = {
5083 (char *) "variant", NULL
5084 };
5085
5086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5087 if (obj0) {
5088 ecode1 = SWIG_AsVal_int(obj0, &val1);
5089 if (!SWIG_IsOK(ecode1)) {
5090 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CheckBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5091 }
5092 arg1 = static_cast< wxWindowVariant >(val1);
5093 }
5094 {
5095 if (!wxPyCheckForApp()) SWIG_fail;
5096 PyThreadState* __tstate = wxPyBeginAllowThreads();
5097 result = wxCheckBox::GetClassDefaultAttributes(arg1);
5098 wxPyEndAllowThreads(__tstate);
5099 if (PyErr_Occurred()) SWIG_fail;
5100 }
5101 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5102 return resultobj;
5103 fail:
5104 return NULL;
5105 }
5106
5107
5108 SWIGINTERN PyObject *CheckBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5109 PyObject *obj;
5110 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5111 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckBox, SWIG_NewClientData(obj));
5112 return SWIG_Py_Void();
5113 }
5114
5115 SWIGINTERN PyObject *CheckBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5116 return SWIG_Python_InitShadowInstance(args);
5117 }
5118
5119 SWIGINTERN int ChoiceNameStr_set(PyObject *) {
5120 SWIG_Error(SWIG_AttributeError,"Variable ChoiceNameStr is read-only.");
5121 return 1;
5122 }
5123
5124
5125 SWIGINTERN PyObject *ChoiceNameStr_get(void) {
5126 PyObject *pyobj = 0;
5127
5128 {
5129 #if wxUSE_UNICODE
5130 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5131 #else
5132 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5133 #endif
5134 }
5135 return pyobj;
5136 }
5137
5138
5139 SWIGINTERN PyObject *_wrap_new_Choice(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5140 PyObject *resultobj = 0;
5141 wxWindow *arg1 = (wxWindow *) 0 ;
5142 int arg2 = (int) -1 ;
5143 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5144 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5145 wxSize const &arg4_defvalue = wxDefaultSize ;
5146 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5147 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5148 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5149 long arg6 = (long) 0 ;
5150 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5151 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5152 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
5153 wxString *arg8 = (wxString *) &arg8_defvalue ;
5154 wxChoice *result = 0 ;
5155 void *argp1 = 0 ;
5156 int res1 = 0 ;
5157 int val2 ;
5158 int ecode2 = 0 ;
5159 wxPoint temp3 ;
5160 wxSize temp4 ;
5161 bool temp5 = false ;
5162 long val6 ;
5163 int ecode6 = 0 ;
5164 void *argp7 = 0 ;
5165 int res7 = 0 ;
5166 bool temp8 = false ;
5167 PyObject * obj0 = 0 ;
5168 PyObject * obj1 = 0 ;
5169 PyObject * obj2 = 0 ;
5170 PyObject * obj3 = 0 ;
5171 PyObject * obj4 = 0 ;
5172 PyObject * obj5 = 0 ;
5173 PyObject * obj6 = 0 ;
5174 PyObject * obj7 = 0 ;
5175 char * kwnames[] = {
5176 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5177 };
5178
5179 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
5180 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5181 if (!SWIG_IsOK(res1)) {
5182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choice" "', expected argument " "1"" of type '" "wxWindow *""'");
5183 }
5184 arg1 = reinterpret_cast< wxWindow * >(argp1);
5185 if (obj1) {
5186 ecode2 = SWIG_AsVal_int(obj1, &val2);
5187 if (!SWIG_IsOK(ecode2)) {
5188 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choice" "', expected argument " "2"" of type '" "int""'");
5189 }
5190 arg2 = static_cast< int >(val2);
5191 }
5192 if (obj2) {
5193 {
5194 arg3 = &temp3;
5195 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
5196 }
5197 }
5198 if (obj3) {
5199 {
5200 arg4 = &temp4;
5201 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
5202 }
5203 }
5204 if (obj4) {
5205 {
5206 if (! PySequence_Check(obj4)) {
5207 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5208 SWIG_fail;
5209 }
5210 arg5 = new wxArrayString;
5211 temp5 = true;
5212 int i, len=PySequence_Length(obj4);
5213 for (i=0; i<len; i++) {
5214 PyObject* item = PySequence_GetItem(obj4, i);
5215 wxString* s = wxString_in_helper(item);
5216 if (PyErr_Occurred()) SWIG_fail;
5217 arg5->Add(*s);
5218 delete s;
5219 Py_DECREF(item);
5220 }
5221 }
5222 }
5223 if (obj5) {
5224 ecode6 = SWIG_AsVal_long(obj5, &val6);
5225 if (!SWIG_IsOK(ecode6)) {
5226 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Choice" "', expected argument " "6"" of type '" "long""'");
5227 }
5228 arg6 = static_cast< long >(val6);
5229 }
5230 if (obj6) {
5231 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
5232 if (!SWIG_IsOK(res7)) {
5233 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5234 }
5235 if (!argp7) {
5236 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5237 }
5238 arg7 = reinterpret_cast< wxValidator * >(argp7);
5239 }
5240 if (obj7) {
5241 {
5242 arg8 = wxString_in_helper(obj7);
5243 if (arg8 == NULL) SWIG_fail;
5244 temp8 = true;
5245 }
5246 }
5247 {
5248 if (!wxPyCheckForApp()) SWIG_fail;
5249 PyThreadState* __tstate = wxPyBeginAllowThreads();
5250 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5251 wxPyEndAllowThreads(__tstate);
5252 if (PyErr_Occurred()) SWIG_fail;
5253 }
5254 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_NEW | 0 );
5255 {
5256 if (temp5) delete arg5;
5257 }
5258 {
5259 if (temp8)
5260 delete arg8;
5261 }
5262 return resultobj;
5263 fail:
5264 {
5265 if (temp5) delete arg5;
5266 }
5267 {
5268 if (temp8)
5269 delete arg8;
5270 }
5271 return NULL;
5272 }
5273
5274
5275 SWIGINTERN PyObject *_wrap_new_PreChoice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5276 PyObject *resultobj = 0;
5277 wxChoice *result = 0 ;
5278
5279 if (!SWIG_Python_UnpackTuple(args,"new_PreChoice",0,0,0)) SWIG_fail;
5280 {
5281 if (!wxPyCheckForApp()) SWIG_fail;
5282 PyThreadState* __tstate = wxPyBeginAllowThreads();
5283 result = (wxChoice *)new wxChoice();
5284 wxPyEndAllowThreads(__tstate);
5285 if (PyErr_Occurred()) SWIG_fail;
5286 }
5287 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_OWN | 0 );
5288 return resultobj;
5289 fail:
5290 return NULL;
5291 }
5292
5293
5294 SWIGINTERN PyObject *_wrap_Choice_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5295 PyObject *resultobj = 0;
5296 wxChoice *arg1 = (wxChoice *) 0 ;
5297 wxWindow *arg2 = (wxWindow *) 0 ;
5298 int arg3 = (int) -1 ;
5299 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5300 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5301 wxSize const &arg5_defvalue = wxDefaultSize ;
5302 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5303 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5304 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5305 long arg7 = (long) 0 ;
5306 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5307 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5308 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
5309 wxString *arg9 = (wxString *) &arg9_defvalue ;
5310 bool result;
5311 void *argp1 = 0 ;
5312 int res1 = 0 ;
5313 void *argp2 = 0 ;
5314 int res2 = 0 ;
5315 int val3 ;
5316 int ecode3 = 0 ;
5317 wxPoint temp4 ;
5318 wxSize temp5 ;
5319 bool temp6 = false ;
5320 long val7 ;
5321 int ecode7 = 0 ;
5322 void *argp8 = 0 ;
5323 int res8 = 0 ;
5324 bool temp9 = false ;
5325 PyObject * obj0 = 0 ;
5326 PyObject * obj1 = 0 ;
5327 PyObject * obj2 = 0 ;
5328 PyObject * obj3 = 0 ;
5329 PyObject * obj4 = 0 ;
5330 PyObject * obj5 = 0 ;
5331 PyObject * obj6 = 0 ;
5332 PyObject * obj7 = 0 ;
5333 PyObject * obj8 = 0 ;
5334 char * kwnames[] = {
5335 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5336 };
5337
5338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5340 if (!SWIG_IsOK(res1)) {
5341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_Create" "', expected argument " "1"" of type '" "wxChoice *""'");
5342 }
5343 arg1 = reinterpret_cast< wxChoice * >(argp1);
5344 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5345 if (!SWIG_IsOK(res2)) {
5346 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choice_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5347 }
5348 arg2 = reinterpret_cast< wxWindow * >(argp2);
5349 if (obj2) {
5350 ecode3 = SWIG_AsVal_int(obj2, &val3);
5351 if (!SWIG_IsOK(ecode3)) {
5352 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choice_Create" "', expected argument " "3"" of type '" "int""'");
5353 }
5354 arg3 = static_cast< int >(val3);
5355 }
5356 if (obj3) {
5357 {
5358 arg4 = &temp4;
5359 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5360 }
5361 }
5362 if (obj4) {
5363 {
5364 arg5 = &temp5;
5365 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5366 }
5367 }
5368 if (obj5) {
5369 {
5370 if (! PySequence_Check(obj5)) {
5371 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5372 SWIG_fail;
5373 }
5374 arg6 = new wxArrayString;
5375 temp6 = true;
5376 int i, len=PySequence_Length(obj5);
5377 for (i=0; i<len; i++) {
5378 PyObject* item = PySequence_GetItem(obj5, i);
5379 wxString* s = wxString_in_helper(item);
5380 if (PyErr_Occurred()) SWIG_fail;
5381 arg6->Add(*s);
5382 delete s;
5383 Py_DECREF(item);
5384 }
5385 }
5386 }
5387 if (obj6) {
5388 ecode7 = SWIG_AsVal_long(obj6, &val7);
5389 if (!SWIG_IsOK(ecode7)) {
5390 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Choice_Create" "', expected argument " "7"" of type '" "long""'");
5391 }
5392 arg7 = static_cast< long >(val7);
5393 }
5394 if (obj7) {
5395 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5396 if (!SWIG_IsOK(res8)) {
5397 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5398 }
5399 if (!argp8) {
5400 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5401 }
5402 arg8 = reinterpret_cast< wxValidator * >(argp8);
5403 }
5404 if (obj8) {
5405 {
5406 arg9 = wxString_in_helper(obj8);
5407 if (arg9 == NULL) SWIG_fail;
5408 temp9 = true;
5409 }
5410 }
5411 {
5412 PyThreadState* __tstate = wxPyBeginAllowThreads();
5413 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5414 wxPyEndAllowThreads(__tstate);
5415 if (PyErr_Occurred()) SWIG_fail;
5416 }
5417 {
5418 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5419 }
5420 {
5421 if (temp6) delete arg6;
5422 }
5423 {
5424 if (temp9)
5425 delete arg9;
5426 }
5427 return resultobj;
5428 fail:
5429 {
5430 if (temp6) delete arg6;
5431 }
5432 {
5433 if (temp9)
5434 delete arg9;
5435 }
5436 return NULL;
5437 }
5438
5439
5440 SWIGINTERN PyObject *_wrap_Choice_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5441 PyObject *resultobj = 0;
5442 wxChoice *arg1 = (wxChoice *) 0 ;
5443 int result;
5444 void *argp1 = 0 ;
5445 int res1 = 0 ;
5446 PyObject *swig_obj[1] ;
5447
5448 if (!args) SWIG_fail;
5449 swig_obj[0] = args;
5450 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5451 if (!SWIG_IsOK(res1)) {
5452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_GetCurrentSelection" "', expected argument " "1"" of type '" "wxChoice const *""'");
5453 }
5454 arg1 = reinterpret_cast< wxChoice * >(argp1);
5455 {
5456 PyThreadState* __tstate = wxPyBeginAllowThreads();
5457 result = (int)((wxChoice const *)arg1)->GetCurrentSelection();
5458 wxPyEndAllowThreads(__tstate);
5459 if (PyErr_Occurred()) SWIG_fail;
5460 }
5461 resultobj = SWIG_From_int(static_cast< int >(result));
5462 return resultobj;
5463 fail:
5464 return NULL;
5465 }
5466
5467
5468 SWIGINTERN PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5469 PyObject *resultobj = 0;
5470 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5471 SwigValueWrapper<wxVisualAttributes > result;
5472 int val1 ;
5473 int ecode1 = 0 ;
5474 PyObject * obj0 = 0 ;
5475 char * kwnames[] = {
5476 (char *) "variant", NULL
5477 };
5478
5479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5480 if (obj0) {
5481 ecode1 = SWIG_AsVal_int(obj0, &val1);
5482 if (!SWIG_IsOK(ecode1)) {
5483 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Choice_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5484 }
5485 arg1 = static_cast< wxWindowVariant >(val1);
5486 }
5487 {
5488 if (!wxPyCheckForApp()) SWIG_fail;
5489 PyThreadState* __tstate = wxPyBeginAllowThreads();
5490 result = wxChoice::GetClassDefaultAttributes(arg1);
5491 wxPyEndAllowThreads(__tstate);
5492 if (PyErr_Occurred()) SWIG_fail;
5493 }
5494 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5495 return resultobj;
5496 fail:
5497 return NULL;
5498 }
5499
5500
5501 SWIGINTERN PyObject *Choice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5502 PyObject *obj;
5503 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5504 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoice, SWIG_NewClientData(obj));
5505 return SWIG_Py_Void();
5506 }
5507
5508 SWIGINTERN PyObject *Choice_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5509 return SWIG_Python_InitShadowInstance(args);
5510 }
5511
5512 SWIGINTERN int ComboBoxNameStr_set(PyObject *) {
5513 SWIG_Error(SWIG_AttributeError,"Variable ComboBoxNameStr is read-only.");
5514 return 1;
5515 }
5516
5517
5518 SWIGINTERN PyObject *ComboBoxNameStr_get(void) {
5519 PyObject *pyobj = 0;
5520
5521 {
5522 #if wxUSE_UNICODE
5523 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
5524 #else
5525 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
5526 #endif
5527 }
5528 return pyobj;
5529 }
5530
5531
5532 SWIGINTERN PyObject *_wrap_new_ComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5533 PyObject *resultobj = 0;
5534 wxWindow *arg1 = (wxWindow *) 0 ;
5535 int arg2 = (int) -1 ;
5536 wxString const &arg3_defvalue = wxPyEmptyString ;
5537 wxString *arg3 = (wxString *) &arg3_defvalue ;
5538 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5539 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5540 wxSize const &arg5_defvalue = wxDefaultSize ;
5541 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5542 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5543 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5544 long arg7 = (long) 0 ;
5545 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5546 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5547 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
5548 wxString *arg9 = (wxString *) &arg9_defvalue ;
5549 wxComboBox *result = 0 ;
5550 void *argp1 = 0 ;
5551 int res1 = 0 ;
5552 int val2 ;
5553 int ecode2 = 0 ;
5554 bool temp3 = false ;
5555 wxPoint temp4 ;
5556 wxSize temp5 ;
5557 bool temp6 = false ;
5558 long val7 ;
5559 int ecode7 = 0 ;
5560 void *argp8 = 0 ;
5561 int res8 = 0 ;
5562 bool temp9 = false ;
5563 PyObject * obj0 = 0 ;
5564 PyObject * obj1 = 0 ;
5565 PyObject * obj2 = 0 ;
5566 PyObject * obj3 = 0 ;
5567 PyObject * obj4 = 0 ;
5568 PyObject * obj5 = 0 ;
5569 PyObject * obj6 = 0 ;
5570 PyObject * obj7 = 0 ;
5571 PyObject * obj8 = 0 ;
5572 char * kwnames[] = {
5573 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5574 };
5575
5576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5578 if (!SWIG_IsOK(res1)) {
5579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ComboBox" "', expected argument " "1"" of type '" "wxWindow *""'");
5580 }
5581 arg1 = reinterpret_cast< wxWindow * >(argp1);
5582 if (obj1) {
5583 ecode2 = SWIG_AsVal_int(obj1, &val2);
5584 if (!SWIG_IsOK(ecode2)) {
5585 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ComboBox" "', expected argument " "2"" of type '" "int""'");
5586 }
5587 arg2 = static_cast< int >(val2);
5588 }
5589 if (obj2) {
5590 {
5591 arg3 = wxString_in_helper(obj2);
5592 if (arg3 == NULL) SWIG_fail;
5593 temp3 = true;
5594 }
5595 }
5596 if (obj3) {
5597 {
5598 arg4 = &temp4;
5599 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5600 }
5601 }
5602 if (obj4) {
5603 {
5604 arg5 = &temp5;
5605 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5606 }
5607 }
5608 if (obj5) {
5609 {
5610 if (! PySequence_Check(obj5)) {
5611 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5612 SWIG_fail;
5613 }
5614 arg6 = new wxArrayString;
5615 temp6 = true;
5616 int i, len=PySequence_Length(obj5);
5617 for (i=0; i<len; i++) {
5618 PyObject* item = PySequence_GetItem(obj5, i);
5619 wxString* s = wxString_in_helper(item);
5620 if (PyErr_Occurred()) SWIG_fail;
5621 arg6->Add(*s);
5622 delete s;
5623 Py_DECREF(item);
5624 }
5625 }
5626 }
5627 if (obj6) {
5628 ecode7 = SWIG_AsVal_long(obj6, &val7);
5629 if (!SWIG_IsOK(ecode7)) {
5630 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ComboBox" "', expected argument " "7"" of type '" "long""'");
5631 }
5632 arg7 = static_cast< long >(val7);
5633 }
5634 if (obj7) {
5635 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5636 if (!SWIG_IsOK(res8)) {
5637 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5638 }
5639 if (!argp8) {
5640 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5641 }
5642 arg8 = reinterpret_cast< wxValidator * >(argp8);
5643 }
5644 if (obj8) {
5645 {
5646 arg9 = wxString_in_helper(obj8);
5647 if (arg9 == NULL) SWIG_fail;
5648 temp9 = true;
5649 }
5650 }
5651 {
5652 if (!wxPyCheckForApp()) SWIG_fail;
5653 PyThreadState* __tstate = wxPyBeginAllowThreads();
5654 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);
5655 wxPyEndAllowThreads(__tstate);
5656 if (PyErr_Occurred()) SWIG_fail;
5657 }
5658 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_NEW | 0 );
5659 {
5660 if (temp3)
5661 delete arg3;
5662 }
5663 {
5664 if (temp6) delete arg6;
5665 }
5666 {
5667 if (temp9)
5668 delete arg9;
5669 }
5670 return resultobj;
5671 fail:
5672 {
5673 if (temp3)
5674 delete arg3;
5675 }
5676 {
5677 if (temp6) delete arg6;
5678 }
5679 {
5680 if (temp9)
5681 delete arg9;
5682 }
5683 return NULL;
5684 }
5685
5686
5687 SWIGINTERN PyObject *_wrap_new_PreComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5688 PyObject *resultobj = 0;
5689 wxComboBox *result = 0 ;
5690
5691 if (!SWIG_Python_UnpackTuple(args,"new_PreComboBox",0,0,0)) SWIG_fail;
5692 {
5693 if (!wxPyCheckForApp()) SWIG_fail;
5694 PyThreadState* __tstate = wxPyBeginAllowThreads();
5695 result = (wxComboBox *)new wxComboBox();
5696 wxPyEndAllowThreads(__tstate);
5697 if (PyErr_Occurred()) SWIG_fail;
5698 }
5699 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_OWN | 0 );
5700 return resultobj;
5701 fail:
5702 return NULL;
5703 }
5704
5705
5706 SWIGINTERN PyObject *_wrap_ComboBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5707 PyObject *resultobj = 0;
5708 wxComboBox *arg1 = (wxComboBox *) 0 ;
5709 wxWindow *arg2 = (wxWindow *) 0 ;
5710 int arg3 = (int) -1 ;
5711 wxString const &arg4_defvalue = wxPyEmptyString ;
5712 wxString *arg4 = (wxString *) &arg4_defvalue ;
5713 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5714 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5715 wxSize const &arg6_defvalue = wxDefaultSize ;
5716 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5717 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
5718 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
5719 long arg8 = (long) 0 ;
5720 wxValidator const &arg9_defvalue = wxDefaultValidator ;
5721 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
5722 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
5723 wxString *arg10 = (wxString *) &arg10_defvalue ;
5724 bool result;
5725 void *argp1 = 0 ;
5726 int res1 = 0 ;
5727 void *argp2 = 0 ;
5728 int res2 = 0 ;
5729 int val3 ;
5730 int ecode3 = 0 ;
5731 bool temp4 = false ;
5732 wxPoint temp5 ;
5733 wxSize temp6 ;
5734 bool temp7 = false ;
5735 long val8 ;
5736 int ecode8 = 0 ;
5737 void *argp9 = 0 ;
5738 int res9 = 0 ;
5739 bool temp10 = false ;
5740 PyObject * obj0 = 0 ;
5741 PyObject * obj1 = 0 ;
5742 PyObject * obj2 = 0 ;
5743 PyObject * obj3 = 0 ;
5744 PyObject * obj4 = 0 ;
5745 PyObject * obj5 = 0 ;
5746 PyObject * obj6 = 0 ;
5747 PyObject * obj7 = 0 ;
5748 PyObject * obj8 = 0 ;
5749 PyObject * obj9 = 0 ;
5750 char * kwnames[] = {
5751 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5752 };
5753
5754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
5755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5756 if (!SWIG_IsOK(res1)) {
5757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Create" "', expected argument " "1"" of type '" "wxComboBox *""'");
5758 }
5759 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5760 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5761 if (!SWIG_IsOK(res2)) {
5762 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ComboBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5763 }
5764 arg2 = reinterpret_cast< wxWindow * >(argp2);
5765 if (obj2) {
5766 ecode3 = SWIG_AsVal_int(obj2, &val3);
5767 if (!SWIG_IsOK(ecode3)) {
5768 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Create" "', expected argument " "3"" of type '" "int""'");
5769 }
5770 arg3 = static_cast< int >(val3);
5771 }
5772 if (obj3) {
5773 {
5774 arg4 = wxString_in_helper(obj3);
5775 if (arg4 == NULL) SWIG_fail;
5776 temp4 = true;
5777 }
5778 }
5779 if (obj4) {
5780 {
5781 arg5 = &temp5;
5782 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5783 }
5784 }
5785 if (obj5) {
5786 {
5787 arg6 = &temp6;
5788 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5789 }
5790 }
5791 if (obj6) {
5792 {
5793 if (! PySequence_Check(obj6)) {
5794 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5795 SWIG_fail;
5796 }
5797 arg7 = new wxArrayString;
5798 temp7 = true;
5799 int i, len=PySequence_Length(obj6);
5800 for (i=0; i<len; i++) {
5801 PyObject* item = PySequence_GetItem(obj6, i);
5802 wxString* s = wxString_in_helper(item);
5803 if (PyErr_Occurred()) SWIG_fail;
5804 arg7->Add(*s);
5805 delete s;
5806 Py_DECREF(item);
5807 }
5808 }
5809 }
5810 if (obj7) {
5811 ecode8 = SWIG_AsVal_long(obj7, &val8);
5812 if (!SWIG_IsOK(ecode8)) {
5813 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ComboBox_Create" "', expected argument " "8"" of type '" "long""'");
5814 }
5815 arg8 = static_cast< long >(val8);
5816 }
5817 if (obj8) {
5818 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
5819 if (!SWIG_IsOK(res9)) {
5820 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
5821 }
5822 if (!argp9) {
5823 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
5824 }
5825 arg9 = reinterpret_cast< wxValidator * >(argp9);
5826 }
5827 if (obj9) {
5828 {
5829 arg10 = wxString_in_helper(obj9);
5830 if (arg10 == NULL) SWIG_fail;
5831 temp10 = true;
5832 }
5833 }
5834 {
5835 PyThreadState* __tstate = wxPyBeginAllowThreads();
5836 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);
5837 wxPyEndAllowThreads(__tstate);
5838 if (PyErr_Occurred()) SWIG_fail;
5839 }
5840 {
5841 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5842 }
5843 {
5844 if (temp4)
5845 delete arg4;
5846 }
5847 {
5848 if (temp7) delete arg7;
5849 }
5850 {
5851 if (temp10)
5852 delete arg10;
5853 }
5854 return resultobj;
5855 fail:
5856 {
5857 if (temp4)
5858 delete arg4;
5859 }
5860 {
5861 if (temp7) delete arg7;
5862 }
5863 {
5864 if (temp10)
5865 delete arg10;
5866 }
5867 return NULL;
5868 }
5869
5870
5871 SWIGINTERN PyObject *_wrap_ComboBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5872 PyObject *resultobj = 0;
5873 wxComboBox *arg1 = (wxComboBox *) 0 ;
5874 wxString result;
5875 void *argp1 = 0 ;
5876 int res1 = 0 ;
5877 PyObject *swig_obj[1] ;
5878
5879 if (!args) SWIG_fail;
5880 swig_obj[0] = args;
5881 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5882 if (!SWIG_IsOK(res1)) {
5883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetValue" "', expected argument " "1"" of type '" "wxComboBox const *""'");
5884 }
5885 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5886 {
5887 PyThreadState* __tstate = wxPyBeginAllowThreads();
5888 result = ((wxComboBox const *)arg1)->GetValue();
5889 wxPyEndAllowThreads(__tstate);
5890 if (PyErr_Occurred()) SWIG_fail;
5891 }
5892 {
5893 #if wxUSE_UNICODE
5894 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5895 #else
5896 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5897 #endif
5898 }
5899 return resultobj;
5900 fail:
5901 return NULL;
5902 }
5903
5904
5905 SWIGINTERN PyObject *_wrap_ComboBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5906 PyObject *resultobj = 0;
5907 wxComboBox *arg1 = (wxComboBox *) 0 ;
5908 wxString *arg2 = 0 ;
5909 void *argp1 = 0 ;
5910 int res1 = 0 ;
5911 bool temp2 = false ;
5912 PyObject * obj0 = 0 ;
5913 PyObject * obj1 = 0 ;
5914 char * kwnames[] = {
5915 (char *) "self",(char *) "value", NULL
5916 };
5917
5918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
5919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5920 if (!SWIG_IsOK(res1)) {
5921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetValue" "', expected argument " "1"" of type '" "wxComboBox *""'");
5922 }
5923 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5924 {
5925 arg2 = wxString_in_helper(obj1);
5926 if (arg2 == NULL) SWIG_fail;
5927 temp2 = true;
5928 }
5929 {
5930 PyThreadState* __tstate = wxPyBeginAllowThreads();
5931 (arg1)->SetValue((wxString const &)*arg2);
5932 wxPyEndAllowThreads(__tstate);
5933 if (PyErr_Occurred()) SWIG_fail;
5934 }
5935 resultobj = SWIG_Py_Void();
5936 {
5937 if (temp2)
5938 delete arg2;
5939 }
5940 return resultobj;
5941 fail:
5942 {
5943 if (temp2)
5944 delete arg2;
5945 }
5946 return NULL;
5947 }
5948
5949
5950 SWIGINTERN PyObject *_wrap_ComboBox_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5951 PyObject *resultobj = 0;
5952 wxComboBox *arg1 = (wxComboBox *) 0 ;
5953 void *argp1 = 0 ;
5954 int res1 = 0 ;
5955 PyObject *swig_obj[1] ;
5956
5957 if (!args) SWIG_fail;
5958 swig_obj[0] = args;
5959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5960 if (!SWIG_IsOK(res1)) {
5961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Copy" "', expected argument " "1"" of type '" "wxComboBox *""'");
5962 }
5963 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5964 {
5965 PyThreadState* __tstate = wxPyBeginAllowThreads();
5966 (arg1)->Copy();
5967 wxPyEndAllowThreads(__tstate);
5968 if (PyErr_Occurred()) SWIG_fail;
5969 }
5970 resultobj = SWIG_Py_Void();
5971 return resultobj;
5972 fail:
5973 return NULL;
5974 }
5975
5976
5977 SWIGINTERN PyObject *_wrap_ComboBox_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5978 PyObject *resultobj = 0;
5979 wxComboBox *arg1 = (wxComboBox *) 0 ;
5980 void *argp1 = 0 ;
5981 int res1 = 0 ;
5982 PyObject *swig_obj[1] ;
5983
5984 if (!args) SWIG_fail;
5985 swig_obj[0] = args;
5986 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5987 if (!SWIG_IsOK(res1)) {
5988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Cut" "', expected argument " "1"" of type '" "wxComboBox *""'");
5989 }
5990 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5991 {
5992 PyThreadState* __tstate = wxPyBeginAllowThreads();
5993 (arg1)->Cut();
5994 wxPyEndAllowThreads(__tstate);
5995 if (PyErr_Occurred()) SWIG_fail;
5996 }
5997 resultobj = SWIG_Py_Void();
5998 return resultobj;
5999 fail:
6000 return NULL;
6001 }
6002
6003
6004 SWIGINTERN PyObject *_wrap_ComboBox_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6005 PyObject *resultobj = 0;
6006 wxComboBox *arg1 = (wxComboBox *) 0 ;
6007 void *argp1 = 0 ;
6008 int res1 = 0 ;
6009 PyObject *swig_obj[1] ;
6010
6011 if (!args) SWIG_fail;
6012 swig_obj[0] = args;
6013 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6014 if (!SWIG_IsOK(res1)) {
6015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Paste" "', expected argument " "1"" of type '" "wxComboBox *""'");
6016 }
6017 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6018 {
6019 PyThreadState* __tstate = wxPyBeginAllowThreads();
6020 (arg1)->Paste();
6021 wxPyEndAllowThreads(__tstate);
6022 if (PyErr_Occurred()) SWIG_fail;
6023 }
6024 resultobj = SWIG_Py_Void();
6025 return resultobj;
6026 fail:
6027 return NULL;
6028 }
6029
6030
6031 SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6032 PyObject *resultobj = 0;
6033 wxComboBox *arg1 = (wxComboBox *) 0 ;
6034 long arg2 ;
6035 void *argp1 = 0 ;
6036 int res1 = 0 ;
6037 long val2 ;
6038 int ecode2 = 0 ;
6039 PyObject * obj0 = 0 ;
6040 PyObject * obj1 = 0 ;
6041 char * kwnames[] = {
6042 (char *) "self",(char *) "pos", NULL
6043 };
6044
6045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
6046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6047 if (!SWIG_IsOK(res1)) {
6048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox *""'");
6049 }
6050 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6051 ecode2 = SWIG_AsVal_long(obj1, &val2);
6052 if (!SWIG_IsOK(ecode2)) {
6053 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
6054 }
6055 arg2 = static_cast< long >(val2);
6056 {
6057 PyThreadState* __tstate = wxPyBeginAllowThreads();
6058 (arg1)->SetInsertionPoint(arg2);
6059 wxPyEndAllowThreads(__tstate);
6060 if (PyErr_Occurred()) SWIG_fail;
6061 }
6062 resultobj = SWIG_Py_Void();
6063 return resultobj;
6064 fail:
6065 return NULL;
6066 }
6067
6068
6069 SWIGINTERN PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6070 PyObject *resultobj = 0;
6071 wxComboBox *arg1 = (wxComboBox *) 0 ;
6072 long result;
6073 void *argp1 = 0 ;
6074 int res1 = 0 ;
6075 PyObject *swig_obj[1] ;
6076
6077 if (!args) SWIG_fail;
6078 swig_obj[0] = args;
6079 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6080 if (!SWIG_IsOK(res1)) {
6081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6082 }
6083 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6084 {
6085 PyThreadState* __tstate = wxPyBeginAllowThreads();
6086 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
6087 wxPyEndAllowThreads(__tstate);
6088 if (PyErr_Occurred()) SWIG_fail;
6089 }
6090 resultobj = SWIG_From_long(static_cast< long >(result));
6091 return resultobj;
6092 fail:
6093 return NULL;
6094 }
6095
6096
6097 SWIGINTERN PyObject *_wrap_ComboBox_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6098 PyObject *resultobj = 0;
6099 wxComboBox *arg1 = (wxComboBox *) 0 ;
6100 long result;
6101 void *argp1 = 0 ;
6102 int res1 = 0 ;
6103 PyObject *swig_obj[1] ;
6104
6105 if (!args) SWIG_fail;
6106 swig_obj[0] = args;
6107 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6108 if (!SWIG_IsOK(res1)) {
6109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetLastPosition" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6110 }
6111 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6112 {
6113 PyThreadState* __tstate = wxPyBeginAllowThreads();
6114 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
6115 wxPyEndAllowThreads(__tstate);
6116 if (PyErr_Occurred()) SWIG_fail;
6117 }
6118 resultobj = SWIG_From_long(static_cast< long >(result));
6119 return resultobj;
6120 fail:
6121 return NULL;
6122 }
6123
6124
6125 SWIGINTERN PyObject *_wrap_ComboBox_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6126 PyObject *resultobj = 0;
6127 wxComboBox *arg1 = (wxComboBox *) 0 ;
6128 long arg2 ;
6129 long arg3 ;
6130 wxString *arg4 = 0 ;
6131 void *argp1 = 0 ;
6132 int res1 = 0 ;
6133 long val2 ;
6134 int ecode2 = 0 ;
6135 long val3 ;
6136 int ecode3 = 0 ;
6137 bool temp4 = false ;
6138 PyObject * obj0 = 0 ;
6139 PyObject * obj1 = 0 ;
6140 PyObject * obj2 = 0 ;
6141 PyObject * obj3 = 0 ;
6142 char * kwnames[] = {
6143 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
6144 };
6145
6146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6148 if (!SWIG_IsOK(res1)) {
6149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Replace" "', expected argument " "1"" of type '" "wxComboBox *""'");
6150 }
6151 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6152 ecode2 = SWIG_AsVal_long(obj1, &val2);
6153 if (!SWIG_IsOK(ecode2)) {
6154 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Replace" "', expected argument " "2"" of type '" "long""'");
6155 }
6156 arg2 = static_cast< long >(val2);
6157 ecode3 = SWIG_AsVal_long(obj2, &val3);
6158 if (!SWIG_IsOK(ecode3)) {
6159 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Replace" "', expected argument " "3"" of type '" "long""'");
6160 }
6161 arg3 = static_cast< long >(val3);
6162 {
6163 arg4 = wxString_in_helper(obj3);
6164 if (arg4 == NULL) SWIG_fail;
6165 temp4 = true;
6166 }
6167 {
6168 PyThreadState* __tstate = wxPyBeginAllowThreads();
6169 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
6170 wxPyEndAllowThreads(__tstate);
6171 if (PyErr_Occurred()) SWIG_fail;
6172 }
6173 resultobj = SWIG_Py_Void();
6174 {
6175 if (temp4)
6176 delete arg4;
6177 }
6178 return resultobj;
6179 fail:
6180 {
6181 if (temp4)
6182 delete arg4;
6183 }
6184 return NULL;
6185 }
6186
6187
6188 SWIGINTERN PyObject *_wrap_ComboBox_SetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6189 PyObject *resultobj = 0;
6190 wxComboBox *arg1 = (wxComboBox *) 0 ;
6191 long arg2 ;
6192 long arg3 ;
6193 void *argp1 = 0 ;
6194 int res1 = 0 ;
6195 long val2 ;
6196 int ecode2 = 0 ;
6197 long val3 ;
6198 int ecode3 = 0 ;
6199 PyObject * obj0 = 0 ;
6200 PyObject * obj1 = 0 ;
6201 PyObject * obj2 = 0 ;
6202 char * kwnames[] = {
6203 (char *) "self",(char *) "from",(char *) "to", NULL
6204 };
6205
6206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6207 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6208 if (!SWIG_IsOK(res1)) {
6209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6210 }
6211 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6212 ecode2 = SWIG_AsVal_long(obj1, &val2);
6213 if (!SWIG_IsOK(ecode2)) {
6214 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetMark" "', expected argument " "2"" of type '" "long""'");
6215 }
6216 arg2 = static_cast< long >(val2);
6217 ecode3 = SWIG_AsVal_long(obj2, &val3);
6218 if (!SWIG_IsOK(ecode3)) {
6219 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_SetMark" "', expected argument " "3"" of type '" "long""'");
6220 }
6221 arg3 = static_cast< long >(val3);
6222 {
6223 PyThreadState* __tstate = wxPyBeginAllowThreads();
6224 (arg1)->SetSelection(arg2,arg3);
6225 wxPyEndAllowThreads(__tstate);
6226 if (PyErr_Occurred()) SWIG_fail;
6227 }
6228 resultobj = SWIG_Py_Void();
6229 return resultobj;
6230 fail:
6231 return NULL;
6232 }
6233
6234
6235 SWIGINTERN PyObject *_wrap_ComboBox_GetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6236 PyObject *resultobj = 0;
6237 wxComboBox *arg1 = (wxComboBox *) 0 ;
6238 long *arg2 = (long *) 0 ;
6239 long *arg3 = (long *) 0 ;
6240 void *argp1 = 0 ;
6241 int res1 = 0 ;
6242 long temp2 ;
6243 int res2 = SWIG_TMPOBJ ;
6244 long temp3 ;
6245 int res3 = SWIG_TMPOBJ ;
6246 PyObject *swig_obj[1] ;
6247
6248 arg2 = &temp2;
6249 arg3 = &temp3;
6250 if (!args) SWIG_fail;
6251 swig_obj[0] = args;
6252 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6253 if (!SWIG_IsOK(res1)) {
6254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6255 }
6256 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6257 {
6258 PyThreadState* __tstate = wxPyBeginAllowThreads();
6259 (arg1)->GetSelection(arg2,arg3);
6260 wxPyEndAllowThreads(__tstate);
6261 if (PyErr_Occurred()) SWIG_fail;
6262 }
6263 resultobj = SWIG_Py_Void();
6264 if (SWIG_IsTmpObj(res2)) {
6265 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
6266 } else {
6267 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6268 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
6269 }
6270 if (SWIG_IsTmpObj(res3)) {
6271 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
6272 } else {
6273 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6274 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
6275 }
6276 return resultobj;
6277 fail:
6278 return NULL;
6279 }
6280
6281
6282 SWIGINTERN PyObject *_wrap_ComboBox_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6283 PyObject *resultobj = 0;
6284 wxComboBox *arg1 = (wxComboBox *) 0 ;
6285 int result;
6286 void *argp1 = 0 ;
6287 int res1 = 0 ;
6288 PyObject *swig_obj[1] ;
6289
6290 if (!args) SWIG_fail;
6291 swig_obj[0] = args;
6292 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6293 if (!SWIG_IsOK(res1)) {
6294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetCurrentSelection" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6295 }
6296 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6297 {
6298 PyThreadState* __tstate = wxPyBeginAllowThreads();
6299 result = (int)((wxComboBox const *)arg1)->GetCurrentSelection();
6300 wxPyEndAllowThreads(__tstate);
6301 if (PyErr_Occurred()) SWIG_fail;
6302 }
6303 resultobj = SWIG_From_int(static_cast< int >(result));
6304 return resultobj;
6305 fail:
6306 return NULL;
6307 }
6308
6309
6310 SWIGINTERN PyObject *_wrap_ComboBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6311 PyObject *resultobj = 0;
6312 wxComboBox *arg1 = (wxComboBox *) 0 ;
6313 wxString *arg2 = 0 ;
6314 bool result;
6315 void *argp1 = 0 ;
6316 int res1 = 0 ;
6317 bool temp2 = false ;
6318 PyObject * obj0 = 0 ;
6319 PyObject * obj1 = 0 ;
6320 char * kwnames[] = {
6321 (char *) "self",(char *) "string", NULL
6322 };
6323
6324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
6325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6326 if (!SWIG_IsOK(res1)) {
6327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetStringSelection" "', expected argument " "1"" of type '" "wxComboBox *""'");
6328 }
6329 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6330 {
6331 arg2 = wxString_in_helper(obj1);
6332 if (arg2 == NULL) SWIG_fail;
6333 temp2 = true;
6334 }
6335 {
6336 PyThreadState* __tstate = wxPyBeginAllowThreads();
6337 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
6338 wxPyEndAllowThreads(__tstate);
6339 if (PyErr_Occurred()) SWIG_fail;
6340 }
6341 {
6342 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6343 }
6344 {
6345 if (temp2)
6346 delete arg2;
6347 }
6348 return resultobj;
6349 fail:
6350 {
6351 if (temp2)
6352 delete arg2;
6353 }
6354 return NULL;
6355 }
6356
6357
6358 SWIGINTERN PyObject *_wrap_ComboBox_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6359 PyObject *resultobj = 0;
6360 wxComboBox *arg1 = (wxComboBox *) 0 ;
6361 bool arg2 ;
6362 void *argp1 = 0 ;
6363 int res1 = 0 ;
6364 bool val2 ;
6365 int ecode2 = 0 ;
6366 PyObject * obj0 = 0 ;
6367 PyObject * obj1 = 0 ;
6368 char * kwnames[] = {
6369 (char *) "self",(char *) "editable", NULL
6370 };
6371
6372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
6373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6374 if (!SWIG_IsOK(res1)) {
6375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetEditable" "', expected argument " "1"" of type '" "wxComboBox *""'");
6376 }
6377 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6378 ecode2 = SWIG_AsVal_bool(obj1, &val2);
6379 if (!SWIG_IsOK(ecode2)) {
6380 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetEditable" "', expected argument " "2"" of type '" "bool""'");
6381 }
6382 arg2 = static_cast< bool >(val2);
6383 {
6384 PyThreadState* __tstate = wxPyBeginAllowThreads();
6385 (arg1)->SetEditable(arg2);
6386 wxPyEndAllowThreads(__tstate);
6387 if (PyErr_Occurred()) SWIG_fail;
6388 }
6389 resultobj = SWIG_Py_Void();
6390 return resultobj;
6391 fail:
6392 return NULL;
6393 }
6394
6395
6396 SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6397 PyObject *resultobj = 0;
6398 wxComboBox *arg1 = (wxComboBox *) 0 ;
6399 void *argp1 = 0 ;
6400 int res1 = 0 ;
6401 PyObject *swig_obj[1] ;
6402
6403 if (!args) SWIG_fail;
6404 swig_obj[0] = args;
6405 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6406 if (!SWIG_IsOK(res1)) {
6407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxComboBox *""'");
6408 }
6409 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6410 {
6411 PyThreadState* __tstate = wxPyBeginAllowThreads();
6412 (arg1)->SetInsertionPointEnd();
6413 wxPyEndAllowThreads(__tstate);
6414 if (PyErr_Occurred()) SWIG_fail;
6415 }
6416 resultobj = SWIG_Py_Void();
6417 return resultobj;
6418 fail:
6419 return NULL;
6420 }
6421
6422
6423 SWIGINTERN PyObject *_wrap_ComboBox_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6424 PyObject *resultobj = 0;
6425 wxComboBox *arg1 = (wxComboBox *) 0 ;
6426 long arg2 ;
6427 long arg3 ;
6428 void *argp1 = 0 ;
6429 int res1 = 0 ;
6430 long val2 ;
6431 int ecode2 = 0 ;
6432 long val3 ;
6433 int ecode3 = 0 ;
6434 PyObject * obj0 = 0 ;
6435 PyObject * obj1 = 0 ;
6436 PyObject * obj2 = 0 ;
6437 char * kwnames[] = {
6438 (char *) "self",(char *) "from",(char *) "to", NULL
6439 };
6440
6441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6443 if (!SWIG_IsOK(res1)) {
6444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Remove" "', expected argument " "1"" of type '" "wxComboBox *""'");
6445 }
6446 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6447 ecode2 = SWIG_AsVal_long(obj1, &val2);
6448 if (!SWIG_IsOK(ecode2)) {
6449 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Remove" "', expected argument " "2"" of type '" "long""'");
6450 }
6451 arg2 = static_cast< long >(val2);
6452 ecode3 = SWIG_AsVal_long(obj2, &val3);
6453 if (!SWIG_IsOK(ecode3)) {
6454 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Remove" "', expected argument " "3"" of type '" "long""'");
6455 }
6456 arg3 = static_cast< long >(val3);
6457 {
6458 PyThreadState* __tstate = wxPyBeginAllowThreads();
6459 (arg1)->Remove(arg2,arg3);
6460 wxPyEndAllowThreads(__tstate);
6461 if (PyErr_Occurred()) SWIG_fail;
6462 }
6463 resultobj = SWIG_Py_Void();
6464 return resultobj;
6465 fail:
6466 return NULL;
6467 }
6468
6469
6470 SWIGINTERN PyObject *_wrap_ComboBox_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6471 PyObject *resultobj = 0;
6472 wxComboBox *arg1 = (wxComboBox *) 0 ;
6473 bool result;
6474 void *argp1 = 0 ;
6475 int res1 = 0 ;
6476 PyObject *swig_obj[1] ;
6477
6478 if (!args) SWIG_fail;
6479 swig_obj[0] = args;
6480 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6481 if (!SWIG_IsOK(res1)) {
6482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_IsEditable" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6483 }
6484 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6485 {
6486 PyThreadState* __tstate = wxPyBeginAllowThreads();
6487 result = (bool)((wxComboBox const *)arg1)->IsEditable();
6488 wxPyEndAllowThreads(__tstate);
6489 if (PyErr_Occurred()) SWIG_fail;
6490 }
6491 {
6492 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6493 }
6494 return resultobj;
6495 fail:
6496 return NULL;
6497 }
6498
6499
6500 SWIGINTERN PyObject *_wrap_ComboBox_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6501 PyObject *resultobj = 0;
6502 wxComboBox *arg1 = (wxComboBox *) 0 ;
6503 void *argp1 = 0 ;
6504 int res1 = 0 ;
6505 PyObject *swig_obj[1] ;
6506
6507 if (!args) SWIG_fail;
6508 swig_obj[0] = args;
6509 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6510 if (!SWIG_IsOK(res1)) {
6511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Undo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6512 }
6513 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6514 {
6515 PyThreadState* __tstate = wxPyBeginAllowThreads();
6516 (arg1)->Undo();
6517 wxPyEndAllowThreads(__tstate);
6518 if (PyErr_Occurred()) SWIG_fail;
6519 }
6520 resultobj = SWIG_Py_Void();
6521 return resultobj;
6522 fail:
6523 return NULL;
6524 }
6525
6526
6527 SWIGINTERN PyObject *_wrap_ComboBox_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6528 PyObject *resultobj = 0;
6529 wxComboBox *arg1 = (wxComboBox *) 0 ;
6530 void *argp1 = 0 ;
6531 int res1 = 0 ;
6532 PyObject *swig_obj[1] ;
6533
6534 if (!args) SWIG_fail;
6535 swig_obj[0] = args;
6536 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6537 if (!SWIG_IsOK(res1)) {
6538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Redo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6539 }
6540 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6541 {
6542 PyThreadState* __tstate = wxPyBeginAllowThreads();
6543 (arg1)->Redo();
6544 wxPyEndAllowThreads(__tstate);
6545 if (PyErr_Occurred()) SWIG_fail;
6546 }
6547 resultobj = SWIG_Py_Void();
6548 return resultobj;
6549 fail:
6550 return NULL;
6551 }
6552
6553
6554 SWIGINTERN PyObject *_wrap_ComboBox_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6555 PyObject *resultobj = 0;
6556 wxComboBox *arg1 = (wxComboBox *) 0 ;
6557 void *argp1 = 0 ;
6558 int res1 = 0 ;
6559 PyObject *swig_obj[1] ;
6560
6561 if (!args) SWIG_fail;
6562 swig_obj[0] = args;
6563 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6564 if (!SWIG_IsOK(res1)) {
6565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SelectAll" "', expected argument " "1"" of type '" "wxComboBox *""'");
6566 }
6567 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6568 {
6569 PyThreadState* __tstate = wxPyBeginAllowThreads();
6570 (arg1)->SelectAll();
6571 wxPyEndAllowThreads(__tstate);
6572 if (PyErr_Occurred()) SWIG_fail;
6573 }
6574 resultobj = SWIG_Py_Void();
6575 return resultobj;
6576 fail:
6577 return NULL;
6578 }
6579
6580
6581 SWIGINTERN PyObject *_wrap_ComboBox_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6582 PyObject *resultobj = 0;
6583 wxComboBox *arg1 = (wxComboBox *) 0 ;
6584 bool result;
6585 void *argp1 = 0 ;
6586 int res1 = 0 ;
6587 PyObject *swig_obj[1] ;
6588
6589 if (!args) SWIG_fail;
6590 swig_obj[0] = args;
6591 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6592 if (!SWIG_IsOK(res1)) {
6593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCopy" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6594 }
6595 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6596 {
6597 PyThreadState* __tstate = wxPyBeginAllowThreads();
6598 result = (bool)((wxComboBox const *)arg1)->CanCopy();
6599 wxPyEndAllowThreads(__tstate);
6600 if (PyErr_Occurred()) SWIG_fail;
6601 }
6602 {
6603 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6604 }
6605 return resultobj;
6606 fail:
6607 return NULL;
6608 }
6609
6610
6611 SWIGINTERN PyObject *_wrap_ComboBox_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6612 PyObject *resultobj = 0;
6613 wxComboBox *arg1 = (wxComboBox *) 0 ;
6614 bool result;
6615 void *argp1 = 0 ;
6616 int res1 = 0 ;
6617 PyObject *swig_obj[1] ;
6618
6619 if (!args) SWIG_fail;
6620 swig_obj[0] = args;
6621 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6622 if (!SWIG_IsOK(res1)) {
6623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCut" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6624 }
6625 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6626 {
6627 PyThreadState* __tstate = wxPyBeginAllowThreads();
6628 result = (bool)((wxComboBox const *)arg1)->CanCut();
6629 wxPyEndAllowThreads(__tstate);
6630 if (PyErr_Occurred()) SWIG_fail;
6631 }
6632 {
6633 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6634 }
6635 return resultobj;
6636 fail:
6637 return NULL;
6638 }
6639
6640
6641 SWIGINTERN PyObject *_wrap_ComboBox_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6642 PyObject *resultobj = 0;
6643 wxComboBox *arg1 = (wxComboBox *) 0 ;
6644 bool result;
6645 void *argp1 = 0 ;
6646 int res1 = 0 ;
6647 PyObject *swig_obj[1] ;
6648
6649 if (!args) SWIG_fail;
6650 swig_obj[0] = args;
6651 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6652 if (!SWIG_IsOK(res1)) {
6653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanPaste" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6654 }
6655 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6656 {
6657 PyThreadState* __tstate = wxPyBeginAllowThreads();
6658 result = (bool)((wxComboBox const *)arg1)->CanPaste();
6659 wxPyEndAllowThreads(__tstate);
6660 if (PyErr_Occurred()) SWIG_fail;
6661 }
6662 {
6663 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6664 }
6665 return resultobj;
6666 fail:
6667 return NULL;
6668 }
6669
6670
6671 SWIGINTERN PyObject *_wrap_ComboBox_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6672 PyObject *resultobj = 0;
6673 wxComboBox *arg1 = (wxComboBox *) 0 ;
6674 bool result;
6675 void *argp1 = 0 ;
6676 int res1 = 0 ;
6677 PyObject *swig_obj[1] ;
6678
6679 if (!args) SWIG_fail;
6680 swig_obj[0] = args;
6681 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6682 if (!SWIG_IsOK(res1)) {
6683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanUndo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6684 }
6685 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6686 {
6687 PyThreadState* __tstate = wxPyBeginAllowThreads();
6688 result = (bool)((wxComboBox const *)arg1)->CanUndo();
6689 wxPyEndAllowThreads(__tstate);
6690 if (PyErr_Occurred()) SWIG_fail;
6691 }
6692 {
6693 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6694 }
6695 return resultobj;
6696 fail:
6697 return NULL;
6698 }
6699
6700
6701 SWIGINTERN PyObject *_wrap_ComboBox_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6702 PyObject *resultobj = 0;
6703 wxComboBox *arg1 = (wxComboBox *) 0 ;
6704 bool result;
6705 void *argp1 = 0 ;
6706 int res1 = 0 ;
6707 PyObject *swig_obj[1] ;
6708
6709 if (!args) SWIG_fail;
6710 swig_obj[0] = args;
6711 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6712 if (!SWIG_IsOK(res1)) {
6713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanRedo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6714 }
6715 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6716 {
6717 PyThreadState* __tstate = wxPyBeginAllowThreads();
6718 result = (bool)((wxComboBox const *)arg1)->CanRedo();
6719 wxPyEndAllowThreads(__tstate);
6720 if (PyErr_Occurred()) SWIG_fail;
6721 }
6722 {
6723 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6724 }
6725 return resultobj;
6726 fail:
6727 return NULL;
6728 }
6729
6730
6731 SWIGINTERN PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6732 PyObject *resultobj = 0;
6733 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
6734 SwigValueWrapper<wxVisualAttributes > result;
6735 int val1 ;
6736 int ecode1 = 0 ;
6737 PyObject * obj0 = 0 ;
6738 char * kwnames[] = {
6739 (char *) "variant", NULL
6740 };
6741
6742 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
6743 if (obj0) {
6744 ecode1 = SWIG_AsVal_int(obj0, &val1);
6745 if (!SWIG_IsOK(ecode1)) {
6746 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ComboBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
6747 }
6748 arg1 = static_cast< wxWindowVariant >(val1);
6749 }
6750 {
6751 if (!wxPyCheckForApp()) SWIG_fail;
6752 PyThreadState* __tstate = wxPyBeginAllowThreads();
6753 result = wxComboBox::GetClassDefaultAttributes(arg1);
6754 wxPyEndAllowThreads(__tstate);
6755 if (PyErr_Occurred()) SWIG_fail;
6756 }
6757 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
6758 return resultobj;
6759 fail:
6760 return NULL;
6761 }
6762
6763
6764 SWIGINTERN PyObject *ComboBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6765 PyObject *obj;
6766 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6767 SWIG_TypeNewClientData(SWIGTYPE_p_wxComboBox, SWIG_NewClientData(obj));
6768 return SWIG_Py_Void();
6769 }
6770
6771 SWIGINTERN PyObject *ComboBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6772 return SWIG_Python_InitShadowInstance(args);
6773 }
6774
6775 SWIGINTERN int GaugeNameStr_set(PyObject *) {
6776 SWIG_Error(SWIG_AttributeError,"Variable GaugeNameStr is read-only.");
6777 return 1;
6778 }
6779
6780
6781 SWIGINTERN PyObject *GaugeNameStr_get(void) {
6782 PyObject *pyobj = 0;
6783
6784 {
6785 #if wxUSE_UNICODE
6786 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6787 #else
6788 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6789 #endif
6790 }
6791 return pyobj;
6792 }
6793
6794
6795 SWIGINTERN PyObject *_wrap_new_Gauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6796 PyObject *resultobj = 0;
6797 wxWindow *arg1 = (wxWindow *) 0 ;
6798 int arg2 = (int) -1 ;
6799 int arg3 = (int) 100 ;
6800 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6801 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6802 wxSize const &arg5_defvalue = wxDefaultSize ;
6803 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6804 long arg6 = (long) wxGA_HORIZONTAL ;
6805 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6806 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6807 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
6808 wxString *arg8 = (wxString *) &arg8_defvalue ;
6809 wxGauge *result = 0 ;
6810 void *argp1 = 0 ;
6811 int res1 = 0 ;
6812 int val2 ;
6813 int ecode2 = 0 ;
6814 int val3 ;
6815 int ecode3 = 0 ;
6816 wxPoint temp4 ;
6817 wxSize temp5 ;
6818 long val6 ;
6819 int ecode6 = 0 ;
6820 void *argp7 = 0 ;
6821 int res7 = 0 ;
6822 bool temp8 = false ;
6823 PyObject * obj0 = 0 ;
6824 PyObject * obj1 = 0 ;
6825 PyObject * obj2 = 0 ;
6826 PyObject * obj3 = 0 ;
6827 PyObject * obj4 = 0 ;
6828 PyObject * obj5 = 0 ;
6829 PyObject * obj6 = 0 ;
6830 PyObject * obj7 = 0 ;
6831 char * kwnames[] = {
6832 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6833 };
6834
6835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
6836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
6837 if (!SWIG_IsOK(res1)) {
6838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gauge" "', expected argument " "1"" of type '" "wxWindow *""'");
6839 }
6840 arg1 = reinterpret_cast< wxWindow * >(argp1);
6841 if (obj1) {
6842 ecode2 = SWIG_AsVal_int(obj1, &val2);
6843 if (!SWIG_IsOK(ecode2)) {
6844 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gauge" "', expected argument " "2"" of type '" "int""'");
6845 }
6846 arg2 = static_cast< int >(val2);
6847 }
6848 if (obj2) {
6849 ecode3 = SWIG_AsVal_int(obj2, &val3);
6850 if (!SWIG_IsOK(ecode3)) {
6851 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gauge" "', expected argument " "3"" of type '" "int""'");
6852 }
6853 arg3 = static_cast< int >(val3);
6854 }
6855 if (obj3) {
6856 {
6857 arg4 = &temp4;
6858 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
6859 }
6860 }
6861 if (obj4) {
6862 {
6863 arg5 = &temp5;
6864 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
6865 }
6866 }
6867 if (obj5) {
6868 ecode6 = SWIG_AsVal_long(obj5, &val6);
6869 if (!SWIG_IsOK(ecode6)) {
6870 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Gauge" "', expected argument " "6"" of type '" "long""'");
6871 }
6872 arg6 = static_cast< long >(val6);
6873 }
6874 if (obj6) {
6875 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
6876 if (!SWIG_IsOK(res7)) {
6877 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6878 }
6879 if (!argp7) {
6880 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6881 }
6882 arg7 = reinterpret_cast< wxValidator * >(argp7);
6883 }
6884 if (obj7) {
6885 {
6886 arg8 = wxString_in_helper(obj7);
6887 if (arg8 == NULL) SWIG_fail;
6888 temp8 = true;
6889 }
6890 }
6891 {
6892 if (!wxPyCheckForApp()) SWIG_fail;
6893 PyThreadState* __tstate = wxPyBeginAllowThreads();
6894 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6895 wxPyEndAllowThreads(__tstate);
6896 if (PyErr_Occurred()) SWIG_fail;
6897 }
6898 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_NEW | 0 );
6899 {
6900 if (temp8)
6901 delete arg8;
6902 }
6903 return resultobj;
6904 fail:
6905 {
6906 if (temp8)
6907 delete arg8;
6908 }
6909 return NULL;
6910 }
6911
6912
6913 SWIGINTERN PyObject *_wrap_new_PreGauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6914 PyObject *resultobj = 0;
6915 wxGauge *result = 0 ;
6916
6917 if (!SWIG_Python_UnpackTuple(args,"new_PreGauge",0,0,0)) SWIG_fail;
6918 {
6919 if (!wxPyCheckForApp()) SWIG_fail;
6920 PyThreadState* __tstate = wxPyBeginAllowThreads();
6921 result = (wxGauge *)new wxGauge();
6922 wxPyEndAllowThreads(__tstate);
6923 if (PyErr_Occurred()) SWIG_fail;
6924 }
6925 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_OWN | 0 );
6926 return resultobj;
6927 fail:
6928 return NULL;
6929 }
6930
6931
6932 SWIGINTERN PyObject *_wrap_Gauge_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6933 PyObject *resultobj = 0;
6934 wxGauge *arg1 = (wxGauge *) 0 ;
6935 wxWindow *arg2 = (wxWindow *) 0 ;
6936 int arg3 = (int) -1 ;
6937 int arg4 = (int) 100 ;
6938 wxPoint const &arg5_defvalue = wxDefaultPosition ;
6939 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
6940 wxSize const &arg6_defvalue = wxDefaultSize ;
6941 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
6942 long arg7 = (long) wxGA_HORIZONTAL ;
6943 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6944 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6945 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
6946 wxString *arg9 = (wxString *) &arg9_defvalue ;
6947 bool result;
6948 void *argp1 = 0 ;
6949 int res1 = 0 ;
6950 void *argp2 = 0 ;
6951 int res2 = 0 ;
6952 int val3 ;
6953 int ecode3 = 0 ;
6954 int val4 ;
6955 int ecode4 = 0 ;
6956 wxPoint temp5 ;
6957 wxSize temp6 ;
6958 long val7 ;
6959 int ecode7 = 0 ;
6960 void *argp8 = 0 ;
6961 int res8 = 0 ;
6962 bool temp9 = false ;
6963 PyObject * obj0 = 0 ;
6964 PyObject * obj1 = 0 ;
6965 PyObject * obj2 = 0 ;
6966 PyObject * obj3 = 0 ;
6967 PyObject * obj4 = 0 ;
6968 PyObject * obj5 = 0 ;
6969 PyObject * obj6 = 0 ;
6970 PyObject * obj7 = 0 ;
6971 PyObject * obj8 = 0 ;
6972 char * kwnames[] = {
6973 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6974 };
6975
6976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
6977 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
6978 if (!SWIG_IsOK(res1)) {
6979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Create" "', expected argument " "1"" of type '" "wxGauge *""'");
6980 }
6981 arg1 = reinterpret_cast< wxGauge * >(argp1);
6982 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
6983 if (!SWIG_IsOK(res2)) {
6984 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gauge_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
6985 }
6986 arg2 = reinterpret_cast< wxWindow * >(argp2);
6987 if (obj2) {
6988 ecode3 = SWIG_AsVal_int(obj2, &val3);
6989 if (!SWIG_IsOK(ecode3)) {
6990 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Gauge_Create" "', expected argument " "3"" of type '" "int""'");
6991 }
6992 arg3 = static_cast< int >(val3);
6993 }
6994 if (obj3) {
6995 ecode4 = SWIG_AsVal_int(obj3, &val4);
6996 if (!SWIG_IsOK(ecode4)) {
6997 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Gauge_Create" "', expected argument " "4"" of type '" "int""'");
6998 }
6999 arg4 = static_cast< int >(val4);
7000 }
7001 if (obj4) {
7002 {
7003 arg5 = &temp5;
7004 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
7005 }
7006 }
7007 if (obj5) {
7008 {
7009 arg6 = &temp6;
7010 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
7011 }
7012 }
7013 if (obj6) {
7014 ecode7 = SWIG_AsVal_long(obj6, &val7);
7015 if (!SWIG_IsOK(ecode7)) {
7016 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Gauge_Create" "', expected argument " "7"" of type '" "long""'");
7017 }
7018 arg7 = static_cast< long >(val7);
7019 }
7020 if (obj7) {
7021 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
7022 if (!SWIG_IsOK(res8)) {
7023 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
7024 }
7025 if (!argp8) {
7026 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
7027 }
7028 arg8 = reinterpret_cast< wxValidator * >(argp8);
7029 }
7030 if (obj8) {
7031 {
7032 arg9 = wxString_in_helper(obj8);
7033 if (arg9 == NULL) SWIG_fail;
7034 temp9 = true;
7035 }
7036 }
7037 {
7038 PyThreadState* __tstate = wxPyBeginAllowThreads();
7039 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
7040 wxPyEndAllowThreads(__tstate);
7041 if (PyErr_Occurred()) SWIG_fail;
7042 }
7043 {
7044 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7045 }
7046 {
7047 if (temp9)
7048 delete arg9;
7049 }
7050 return resultobj;
7051 fail:
7052 {
7053 if (temp9)
7054 delete arg9;
7055 }
7056 return NULL;
7057 }
7058
7059
7060 SWIGINTERN PyObject *_wrap_Gauge_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7061 PyObject *resultobj = 0;
7062 wxGauge *arg1 = (wxGauge *) 0 ;
7063 int arg2 ;
7064 void *argp1 = 0 ;
7065 int res1 = 0 ;
7066 int val2 ;
7067 int ecode2 = 0 ;
7068 PyObject * obj0 = 0 ;
7069 PyObject * obj1 = 0 ;
7070 char * kwnames[] = {
7071 (char *) "self",(char *) "range", NULL
7072 };
7073
7074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) SWIG_fail;
7075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7076 if (!SWIG_IsOK(res1)) {
7077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetRange" "', expected argument " "1"" of type '" "wxGauge *""'");
7078 }
7079 arg1 = reinterpret_cast< wxGauge * >(argp1);
7080 ecode2 = SWIG_AsVal_int(obj1, &val2);
7081 if (!SWIG_IsOK(ecode2)) {
7082 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetRange" "', expected argument " "2"" of type '" "int""'");
7083 }
7084 arg2 = static_cast< int >(val2);
7085 {
7086 PyThreadState* __tstate = wxPyBeginAllowThreads();
7087 (arg1)->SetRange(arg2);
7088 wxPyEndAllowThreads(__tstate);
7089 if (PyErr_Occurred()) SWIG_fail;
7090 }
7091 resultobj = SWIG_Py_Void();
7092 return resultobj;
7093 fail:
7094 return NULL;
7095 }
7096
7097
7098 SWIGINTERN PyObject *_wrap_Gauge_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7099 PyObject *resultobj = 0;
7100 wxGauge *arg1 = (wxGauge *) 0 ;
7101 int result;
7102 void *argp1 = 0 ;
7103 int res1 = 0 ;
7104 PyObject *swig_obj[1] ;
7105
7106 if (!args) SWIG_fail;
7107 swig_obj[0] = args;
7108 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7109 if (!SWIG_IsOK(res1)) {
7110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetRange" "', expected argument " "1"" of type '" "wxGauge const *""'");
7111 }
7112 arg1 = reinterpret_cast< wxGauge * >(argp1);
7113 {
7114 PyThreadState* __tstate = wxPyBeginAllowThreads();
7115 result = (int)((wxGauge const *)arg1)->GetRange();
7116 wxPyEndAllowThreads(__tstate);
7117 if (PyErr_Occurred()) SWIG_fail;
7118 }
7119 resultobj = SWIG_From_int(static_cast< int >(result));
7120 return resultobj;
7121 fail:
7122 return NULL;
7123 }
7124
7125
7126 SWIGINTERN PyObject *_wrap_Gauge_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7127 PyObject *resultobj = 0;
7128 wxGauge *arg1 = (wxGauge *) 0 ;
7129 int arg2 ;
7130 void *argp1 = 0 ;
7131 int res1 = 0 ;
7132 int val2 ;
7133 int ecode2 = 0 ;
7134 PyObject * obj0 = 0 ;
7135 PyObject * obj1 = 0 ;
7136 char * kwnames[] = {
7137 (char *) "self",(char *) "pos", NULL
7138 };
7139
7140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
7141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7142 if (!SWIG_IsOK(res1)) {
7143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetValue" "', expected argument " "1"" of type '" "wxGauge *""'");
7144 }
7145 arg1 = reinterpret_cast< wxGauge * >(argp1);
7146 ecode2 = SWIG_AsVal_int(obj1, &val2);
7147 if (!SWIG_IsOK(ecode2)) {
7148 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetValue" "', expected argument " "2"" of type '" "int""'");
7149 }
7150 arg2 = static_cast< int >(val2);
7151 {
7152 PyThreadState* __tstate = wxPyBeginAllowThreads();
7153 (arg1)->SetValue(arg2);
7154 wxPyEndAllowThreads(__tstate);
7155 if (PyErr_Occurred()) SWIG_fail;
7156 }
7157 resultobj = SWIG_Py_Void();
7158 return resultobj;
7159 fail:
7160 return NULL;
7161 }
7162
7163
7164 SWIGINTERN PyObject *_wrap_Gauge_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7165 PyObject *resultobj = 0;
7166 wxGauge *arg1 = (wxGauge *) 0 ;
7167 int result;
7168 void *argp1 = 0 ;
7169 int res1 = 0 ;
7170 PyObject *swig_obj[1] ;
7171
7172 if (!args) SWIG_fail;
7173 swig_obj[0] = args;
7174 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7175 if (!SWIG_IsOK(res1)) {
7176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetValue" "', expected argument " "1"" of type '" "wxGauge const *""'");
7177 }
7178 arg1 = reinterpret_cast< wxGauge * >(argp1);
7179 {
7180 PyThreadState* __tstate = wxPyBeginAllowThreads();
7181 result = (int)((wxGauge const *)arg1)->GetValue();
7182 wxPyEndAllowThreads(__tstate);
7183 if (PyErr_Occurred()) SWIG_fail;
7184 }
7185 resultobj = SWIG_From_int(static_cast< int >(result));
7186 return resultobj;
7187 fail:
7188 return NULL;
7189 }
7190
7191
7192 SWIGINTERN PyObject *_wrap_Gauge_Pulse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7193 PyObject *resultobj = 0;
7194 wxGauge *arg1 = (wxGauge *) 0 ;
7195 void *argp1 = 0 ;
7196 int res1 = 0 ;
7197 PyObject *swig_obj[1] ;
7198
7199 if (!args) SWIG_fail;
7200 swig_obj[0] = args;
7201 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7202 if (!SWIG_IsOK(res1)) {
7203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Pulse" "', expected argument " "1"" of type '" "wxGauge *""'");
7204 }
7205 arg1 = reinterpret_cast< wxGauge * >(argp1);
7206 {
7207 PyThreadState* __tstate = wxPyBeginAllowThreads();
7208 (arg1)->Pulse();
7209 wxPyEndAllowThreads(__tstate);
7210 if (PyErr_Occurred()) SWIG_fail;
7211 }
7212 resultobj = SWIG_Py_Void();
7213 return resultobj;
7214 fail:
7215 return NULL;
7216 }
7217
7218
7219 SWIGINTERN PyObject *_wrap_Gauge_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7220 PyObject *resultobj = 0;
7221 wxGauge *arg1 = (wxGauge *) 0 ;
7222 bool result;
7223 void *argp1 = 0 ;
7224 int res1 = 0 ;
7225 PyObject *swig_obj[1] ;
7226
7227 if (!args) SWIG_fail;
7228 swig_obj[0] = args;
7229 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7230 if (!SWIG_IsOK(res1)) {
7231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_IsVertical" "', expected argument " "1"" of type '" "wxGauge const *""'");
7232 }
7233 arg1 = reinterpret_cast< wxGauge * >(argp1);
7234 {
7235 PyThreadState* __tstate = wxPyBeginAllowThreads();
7236 result = (bool)((wxGauge const *)arg1)->IsVertical();
7237 wxPyEndAllowThreads(__tstate);
7238 if (PyErr_Occurred()) SWIG_fail;
7239 }
7240 {
7241 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7242 }
7243 return resultobj;
7244 fail:
7245 return NULL;
7246 }
7247
7248
7249 SWIGINTERN PyObject *_wrap_Gauge_SetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7250 PyObject *resultobj = 0;
7251 wxGauge *arg1 = (wxGauge *) 0 ;
7252 int arg2 ;
7253 void *argp1 = 0 ;
7254 int res1 = 0 ;
7255 int val2 ;
7256 int ecode2 = 0 ;
7257 PyObject * obj0 = 0 ;
7258 PyObject * obj1 = 0 ;
7259 char * kwnames[] = {
7260 (char *) "self",(char *) "w", NULL
7261 };
7262
7263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7265 if (!SWIG_IsOK(res1)) {
7266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetShadowWidth" "', expected argument " "1"" of type '" "wxGauge *""'");
7267 }
7268 arg1 = reinterpret_cast< wxGauge * >(argp1);
7269 ecode2 = SWIG_AsVal_int(obj1, &val2);
7270 if (!SWIG_IsOK(ecode2)) {
7271 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetShadowWidth" "', expected argument " "2"" of type '" "int""'");
7272 }
7273 arg2 = static_cast< int >(val2);
7274 {
7275 PyThreadState* __tstate = wxPyBeginAllowThreads();
7276 (arg1)->SetShadowWidth(arg2);
7277 wxPyEndAllowThreads(__tstate);
7278 if (PyErr_Occurred()) SWIG_fail;
7279 }
7280 resultobj = SWIG_Py_Void();
7281 return resultobj;
7282 fail:
7283 return NULL;
7284 }
7285
7286
7287 SWIGINTERN PyObject *_wrap_Gauge_GetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7288 PyObject *resultobj = 0;
7289 wxGauge *arg1 = (wxGauge *) 0 ;
7290 int result;
7291 void *argp1 = 0 ;
7292 int res1 = 0 ;
7293 PyObject *swig_obj[1] ;
7294
7295 if (!args) SWIG_fail;
7296 swig_obj[0] = args;
7297 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7298 if (!SWIG_IsOK(res1)) {
7299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetShadowWidth" "', expected argument " "1"" of type '" "wxGauge const *""'");
7300 }
7301 arg1 = reinterpret_cast< wxGauge * >(argp1);
7302 {
7303 PyThreadState* __tstate = wxPyBeginAllowThreads();
7304 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
7305 wxPyEndAllowThreads(__tstate);
7306 if (PyErr_Occurred()) SWIG_fail;
7307 }
7308 resultobj = SWIG_From_int(static_cast< int >(result));
7309 return resultobj;
7310 fail:
7311 return NULL;
7312 }
7313
7314
7315 SWIGINTERN PyObject *_wrap_Gauge_SetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7316 PyObject *resultobj = 0;
7317 wxGauge *arg1 = (wxGauge *) 0 ;
7318 int arg2 ;
7319 void *argp1 = 0 ;
7320 int res1 = 0 ;
7321 int val2 ;
7322 int ecode2 = 0 ;
7323 PyObject * obj0 = 0 ;
7324 PyObject * obj1 = 0 ;
7325 char * kwnames[] = {
7326 (char *) "self",(char *) "w", NULL
7327 };
7328
7329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) SWIG_fail;
7330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7331 if (!SWIG_IsOK(res1)) {
7332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetBezelFace" "', expected argument " "1"" of type '" "wxGauge *""'");
7333 }
7334 arg1 = reinterpret_cast< wxGauge * >(argp1);
7335 ecode2 = SWIG_AsVal_int(obj1, &val2);
7336 if (!SWIG_IsOK(ecode2)) {
7337 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetBezelFace" "', expected argument " "2"" of type '" "int""'");
7338 }
7339 arg2 = static_cast< int >(val2);
7340 {
7341 PyThreadState* __tstate = wxPyBeginAllowThreads();
7342 (arg1)->SetBezelFace(arg2);
7343 wxPyEndAllowThreads(__tstate);
7344 if (PyErr_Occurred()) SWIG_fail;
7345 }
7346 resultobj = SWIG_Py_Void();
7347 return resultobj;
7348 fail:
7349 return NULL;
7350 }
7351
7352
7353 SWIGINTERN PyObject *_wrap_Gauge_GetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7354 PyObject *resultobj = 0;
7355 wxGauge *arg1 = (wxGauge *) 0 ;
7356 int result;
7357 void *argp1 = 0 ;
7358 int res1 = 0 ;
7359 PyObject *swig_obj[1] ;
7360
7361 if (!args) SWIG_fail;
7362 swig_obj[0] = args;
7363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7364 if (!SWIG_IsOK(res1)) {
7365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetBezelFace" "', expected argument " "1"" of type '" "wxGauge const *""'");
7366 }
7367 arg1 = reinterpret_cast< wxGauge * >(argp1);
7368 {
7369 PyThreadState* __tstate = wxPyBeginAllowThreads();
7370 result = (int)((wxGauge const *)arg1)->GetBezelFace();
7371 wxPyEndAllowThreads(__tstate);
7372 if (PyErr_Occurred()) SWIG_fail;
7373 }
7374 resultobj = SWIG_From_int(static_cast< int >(result));
7375 return resultobj;
7376 fail:
7377 return NULL;
7378 }
7379
7380
7381 SWIGINTERN PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7382 PyObject *resultobj = 0;
7383 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7384 SwigValueWrapper<wxVisualAttributes > result;
7385 int val1 ;
7386 int ecode1 = 0 ;
7387 PyObject * obj0 = 0 ;
7388 char * kwnames[] = {
7389 (char *) "variant", NULL
7390 };
7391
7392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7393 if (obj0) {
7394 ecode1 = SWIG_AsVal_int(obj0, &val1);
7395 if (!SWIG_IsOK(ecode1)) {
7396 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Gauge_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7397 }
7398 arg1 = static_cast< wxWindowVariant >(val1);
7399 }
7400 {
7401 if (!wxPyCheckForApp()) SWIG_fail;
7402 PyThreadState* __tstate = wxPyBeginAllowThreads();
7403 result = wxGauge::GetClassDefaultAttributes(arg1);
7404 wxPyEndAllowThreads(__tstate);
7405 if (PyErr_Occurred()) SWIG_fail;
7406 }
7407 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7408 return resultobj;
7409 fail:
7410 return NULL;
7411 }
7412
7413
7414 SWIGINTERN PyObject *Gauge_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7415 PyObject *obj;
7416 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7417 SWIG_TypeNewClientData(SWIGTYPE_p_wxGauge, SWIG_NewClientData(obj));
7418 return SWIG_Py_Void();
7419 }
7420
7421 SWIGINTERN PyObject *Gauge_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7422 return SWIG_Python_InitShadowInstance(args);
7423 }
7424
7425 SWIGINTERN int StaticBitmapNameStr_set(PyObject *) {
7426 SWIG_Error(SWIG_AttributeError,"Variable StaticBitmapNameStr is read-only.");
7427 return 1;
7428 }
7429
7430
7431 SWIGINTERN PyObject *StaticBitmapNameStr_get(void) {
7432 PyObject *pyobj = 0;
7433
7434 {
7435 #if wxUSE_UNICODE
7436 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7437 #else
7438 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7439 #endif
7440 }
7441 return pyobj;
7442 }
7443
7444
7445 SWIGINTERN int StaticBoxNameStr_set(PyObject *) {
7446 SWIG_Error(SWIG_AttributeError,"Variable StaticBoxNameStr is read-only.");
7447 return 1;
7448 }
7449
7450
7451 SWIGINTERN PyObject *StaticBoxNameStr_get(void) {
7452 PyObject *pyobj = 0;
7453
7454 {
7455 #if wxUSE_UNICODE
7456 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7457 #else
7458 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7459 #endif
7460 }
7461 return pyobj;
7462 }
7463
7464
7465 SWIGINTERN int StaticTextNameStr_set(PyObject *) {
7466 SWIG_Error(SWIG_AttributeError,"Variable StaticTextNameStr is read-only.");
7467 return 1;
7468 }
7469
7470
7471 SWIGINTERN PyObject *StaticTextNameStr_get(void) {
7472 PyObject *pyobj = 0;
7473
7474 {
7475 #if wxUSE_UNICODE
7476 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7477 #else
7478 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7479 #endif
7480 }
7481 return pyobj;
7482 }
7483
7484
7485 SWIGINTERN int StaticLineNameStr_set(PyObject *) {
7486 SWIG_Error(SWIG_AttributeError,"Variable StaticLineNameStr is read-only.");
7487 return 1;
7488 }
7489
7490
7491 SWIGINTERN PyObject *StaticLineNameStr_get(void) {
7492 PyObject *pyobj = 0;
7493
7494 {
7495 #if wxUSE_UNICODE
7496 pyobj = PyUnicode_FromWideChar((&wxPyStaticLineNameStr)->c_str(), (&wxPyStaticLineNameStr)->Len());
7497 #else
7498 pyobj = PyString_FromStringAndSize((&wxPyStaticLineNameStr)->c_str(), (&wxPyStaticLineNameStr)->Len());
7499 #endif
7500 }
7501 return pyobj;
7502 }
7503
7504
7505 SWIGINTERN PyObject *_wrap_new_StaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7506 PyObject *resultobj = 0;
7507 wxWindow *arg1 = (wxWindow *) 0 ;
7508 int arg2 = (int) -1 ;
7509 wxString const &arg3_defvalue = wxPyEmptyString ;
7510 wxString *arg3 = (wxString *) &arg3_defvalue ;
7511 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7512 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7513 wxSize const &arg5_defvalue = wxDefaultSize ;
7514 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7515 long arg6 = (long) 0 ;
7516 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
7517 wxString *arg7 = (wxString *) &arg7_defvalue ;
7518 wxStaticBox *result = 0 ;
7519 void *argp1 = 0 ;
7520 int res1 = 0 ;
7521 int val2 ;
7522 int ecode2 = 0 ;
7523 bool temp3 = false ;
7524 wxPoint temp4 ;
7525 wxSize temp5 ;
7526 long val6 ;
7527 int ecode6 = 0 ;
7528 bool temp7 = false ;
7529 PyObject * obj0 = 0 ;
7530 PyObject * obj1 = 0 ;
7531 PyObject * obj2 = 0 ;
7532 PyObject * obj3 = 0 ;
7533 PyObject * obj4 = 0 ;
7534 PyObject * obj5 = 0 ;
7535 PyObject * obj6 = 0 ;
7536 char * kwnames[] = {
7537 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7538 };
7539
7540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7541 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7542 if (!SWIG_IsOK(res1)) {
7543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBox" "', expected argument " "1"" of type '" "wxWindow *""'");
7544 }
7545 arg1 = reinterpret_cast< wxWindow * >(argp1);
7546 if (obj1) {
7547 ecode2 = SWIG_AsVal_int(obj1, &val2);
7548 if (!SWIG_IsOK(ecode2)) {
7549 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBox" "', expected argument " "2"" of type '" "int""'");
7550 }
7551 arg2 = static_cast< int >(val2);
7552 }
7553 if (obj2) {
7554 {
7555 arg3 = wxString_in_helper(obj2);
7556 if (arg3 == NULL) SWIG_fail;
7557 temp3 = true;
7558 }
7559 }
7560 if (obj3) {
7561 {
7562 arg4 = &temp4;
7563 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7564 }
7565 }
7566 if (obj4) {
7567 {
7568 arg5 = &temp5;
7569 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7570 }
7571 }
7572 if (obj5) {
7573 ecode6 = SWIG_AsVal_long(obj5, &val6);
7574 if (!SWIG_IsOK(ecode6)) {
7575 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBox" "', expected argument " "6"" of type '" "long""'");
7576 }
7577 arg6 = static_cast< long >(val6);
7578 }
7579 if (obj6) {
7580 {
7581 arg7 = wxString_in_helper(obj6);
7582 if (arg7 == NULL) SWIG_fail;
7583 temp7 = true;
7584 }
7585 }
7586 {
7587 if (!wxPyCheckForApp()) SWIG_fail;
7588 PyThreadState* __tstate = wxPyBeginAllowThreads();
7589 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7590 wxPyEndAllowThreads(__tstate);
7591 if (PyErr_Occurred()) SWIG_fail;
7592 }
7593 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_NEW | 0 );
7594 {
7595 if (temp3)
7596 delete arg3;
7597 }
7598 {
7599 if (temp7)
7600 delete arg7;
7601 }
7602 return resultobj;
7603 fail:
7604 {
7605 if (temp3)
7606 delete arg3;
7607 }
7608 {
7609 if (temp7)
7610 delete arg7;
7611 }
7612 return NULL;
7613 }
7614
7615
7616 SWIGINTERN PyObject *_wrap_new_PreStaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7617 PyObject *resultobj = 0;
7618 wxStaticBox *result = 0 ;
7619
7620 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBox",0,0,0)) SWIG_fail;
7621 {
7622 if (!wxPyCheckForApp()) SWIG_fail;
7623 PyThreadState* __tstate = wxPyBeginAllowThreads();
7624 result = (wxStaticBox *)new wxStaticBox();
7625 wxPyEndAllowThreads(__tstate);
7626 if (PyErr_Occurred()) SWIG_fail;
7627 }
7628 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_OWN | 0 );
7629 return resultobj;
7630 fail:
7631 return NULL;
7632 }
7633
7634
7635 SWIGINTERN PyObject *_wrap_StaticBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7636 PyObject *resultobj = 0;
7637 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
7638 wxWindow *arg2 = (wxWindow *) 0 ;
7639 int arg3 = (int) -1 ;
7640 wxString const &arg4_defvalue = wxPyEmptyString ;
7641 wxString *arg4 = (wxString *) &arg4_defvalue ;
7642 wxPoint const &arg5_defvalue = wxDefaultPosition ;
7643 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
7644 wxSize const &arg6_defvalue = wxDefaultSize ;
7645 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
7646 long arg7 = (long) 0 ;
7647 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
7648 wxString *arg8 = (wxString *) &arg8_defvalue ;
7649 bool result;
7650 void *argp1 = 0 ;
7651 int res1 = 0 ;
7652 void *argp2 = 0 ;
7653 int res2 = 0 ;
7654 int val3 ;
7655 int ecode3 = 0 ;
7656 bool temp4 = false ;
7657 wxPoint temp5 ;
7658 wxSize temp6 ;
7659 long val7 ;
7660 int ecode7 = 0 ;
7661 bool temp8 = false ;
7662 PyObject * obj0 = 0 ;
7663 PyObject * obj1 = 0 ;
7664 PyObject * obj2 = 0 ;
7665 PyObject * obj3 = 0 ;
7666 PyObject * obj4 = 0 ;
7667 PyObject * obj5 = 0 ;
7668 PyObject * obj6 = 0 ;
7669 PyObject * obj7 = 0 ;
7670 char * kwnames[] = {
7671 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7672 };
7673
7674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
7675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBox, 0 | 0 );
7676 if (!SWIG_IsOK(res1)) {
7677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBox_Create" "', expected argument " "1"" of type '" "wxStaticBox *""'");
7678 }
7679 arg1 = reinterpret_cast< wxStaticBox * >(argp1);
7680 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7681 if (!SWIG_IsOK(res2)) {
7682 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7683 }
7684 arg2 = reinterpret_cast< wxWindow * >(argp2);
7685 if (obj2) {
7686 ecode3 = SWIG_AsVal_int(obj2, &val3);
7687 if (!SWIG_IsOK(ecode3)) {
7688 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBox_Create" "', expected argument " "3"" of type '" "int""'");
7689 }
7690 arg3 = static_cast< int >(val3);
7691 }
7692 if (obj3) {
7693 {
7694 arg4 = wxString_in_helper(obj3);
7695 if (arg4 == NULL) SWIG_fail;
7696 temp4 = true;
7697 }
7698 }
7699 if (obj4) {
7700 {
7701 arg5 = &temp5;
7702 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
7703 }
7704 }
7705 if (obj5) {
7706 {
7707 arg6 = &temp6;
7708 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
7709 }
7710 }
7711 if (obj6) {
7712 ecode7 = SWIG_AsVal_long(obj6, &val7);
7713 if (!SWIG_IsOK(ecode7)) {
7714 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBox_Create" "', expected argument " "7"" of type '" "long""'");
7715 }
7716 arg7 = static_cast< long >(val7);
7717 }
7718 if (obj7) {
7719 {
7720 arg8 = wxString_in_helper(obj7);
7721 if (arg8 == NULL) SWIG_fail;
7722 temp8 = true;
7723 }
7724 }
7725 {
7726 PyThreadState* __tstate = wxPyBeginAllowThreads();
7727 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
7728 wxPyEndAllowThreads(__tstate);
7729 if (PyErr_Occurred()) SWIG_fail;
7730 }
7731 {
7732 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7733 }
7734 {
7735 if (temp4)
7736 delete arg4;
7737 }
7738 {
7739 if (temp8)
7740 delete arg8;
7741 }
7742 return resultobj;
7743 fail:
7744 {
7745 if (temp4)
7746 delete arg4;
7747 }
7748 {
7749 if (temp8)
7750 delete arg8;
7751 }
7752 return NULL;
7753 }
7754
7755
7756 SWIGINTERN PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7757 PyObject *resultobj = 0;
7758 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7759 SwigValueWrapper<wxVisualAttributes > result;
7760 int val1 ;
7761 int ecode1 = 0 ;
7762 PyObject * obj0 = 0 ;
7763 char * kwnames[] = {
7764 (char *) "variant", NULL
7765 };
7766
7767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7768 if (obj0) {
7769 ecode1 = SWIG_AsVal_int(obj0, &val1);
7770 if (!SWIG_IsOK(ecode1)) {
7771 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7772 }
7773 arg1 = static_cast< wxWindowVariant >(val1);
7774 }
7775 {
7776 if (!wxPyCheckForApp()) SWIG_fail;
7777 PyThreadState* __tstate = wxPyBeginAllowThreads();
7778 result = wxStaticBox::GetClassDefaultAttributes(arg1);
7779 wxPyEndAllowThreads(__tstate);
7780 if (PyErr_Occurred()) SWIG_fail;
7781 }
7782 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7783 return resultobj;
7784 fail:
7785 return NULL;
7786 }
7787
7788
7789 SWIGINTERN PyObject *StaticBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7790 PyObject *obj;
7791 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7792 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBox, SWIG_NewClientData(obj));
7793 return SWIG_Py_Void();
7794 }
7795
7796 SWIGINTERN PyObject *StaticBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7797 return SWIG_Python_InitShadowInstance(args);
7798 }
7799
7800 SWIGINTERN PyObject *_wrap_new_StaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7801 PyObject *resultobj = 0;
7802 wxWindow *arg1 = (wxWindow *) 0 ;
7803 int arg2 = (int) -1 ;
7804 wxPoint const &arg3_defvalue = wxDefaultPosition ;
7805 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
7806 wxSize const &arg4_defvalue = wxDefaultSize ;
7807 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
7808 long arg5 = (long) wxLI_HORIZONTAL ;
7809 wxString const &arg6_defvalue = wxPyStaticLineNameStr ;
7810 wxString *arg6 = (wxString *) &arg6_defvalue ;
7811 wxStaticLine *result = 0 ;
7812 void *argp1 = 0 ;
7813 int res1 = 0 ;
7814 int val2 ;
7815 int ecode2 = 0 ;
7816 wxPoint temp3 ;
7817 wxSize temp4 ;
7818 long val5 ;
7819 int ecode5 = 0 ;
7820 bool temp6 = false ;
7821 PyObject * obj0 = 0 ;
7822 PyObject * obj1 = 0 ;
7823 PyObject * obj2 = 0 ;
7824 PyObject * obj3 = 0 ;
7825 PyObject * obj4 = 0 ;
7826 PyObject * obj5 = 0 ;
7827 char * kwnames[] = {
7828 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7829 };
7830
7831 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
7832 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7833 if (!SWIG_IsOK(res1)) {
7834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticLine" "', expected argument " "1"" of type '" "wxWindow *""'");
7835 }
7836 arg1 = reinterpret_cast< wxWindow * >(argp1);
7837 if (obj1) {
7838 ecode2 = SWIG_AsVal_int(obj1, &val2);
7839 if (!SWIG_IsOK(ecode2)) {
7840 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticLine" "', expected argument " "2"" of type '" "int""'");
7841 }
7842 arg2 = static_cast< int >(val2);
7843 }
7844 if (obj2) {
7845 {
7846 arg3 = &temp3;
7847 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
7848 }
7849 }
7850 if (obj3) {
7851 {
7852 arg4 = &temp4;
7853 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
7854 }
7855 }
7856 if (obj4) {
7857 ecode5 = SWIG_AsVal_long(obj4, &val5);
7858 if (!SWIG_IsOK(ecode5)) {
7859 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_StaticLine" "', expected argument " "5"" of type '" "long""'");
7860 }
7861 arg5 = static_cast< long >(val5);
7862 }
7863 if (obj5) {
7864 {
7865 arg6 = wxString_in_helper(obj5);
7866 if (arg6 == NULL) SWIG_fail;
7867 temp6 = true;
7868 }
7869 }
7870 {
7871 if (!wxPyCheckForApp()) SWIG_fail;
7872 PyThreadState* __tstate = wxPyBeginAllowThreads();
7873 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
7874 wxPyEndAllowThreads(__tstate);
7875 if (PyErr_Occurred()) SWIG_fail;
7876 }
7877 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_NEW | 0 );
7878 {
7879 if (temp6)
7880 delete arg6;
7881 }
7882 return resultobj;
7883 fail:
7884 {
7885 if (temp6)
7886 delete arg6;
7887 }
7888 return NULL;
7889 }
7890
7891
7892 SWIGINTERN PyObject *_wrap_new_PreStaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7893 PyObject *resultobj = 0;
7894 wxStaticLine *result = 0 ;
7895
7896 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticLine",0,0,0)) SWIG_fail;
7897 {
7898 if (!wxPyCheckForApp()) SWIG_fail;
7899 PyThreadState* __tstate = wxPyBeginAllowThreads();
7900 result = (wxStaticLine *)new wxStaticLine();
7901 wxPyEndAllowThreads(__tstate);
7902 if (PyErr_Occurred()) SWIG_fail;
7903 }
7904 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_OWN | 0 );
7905 return resultobj;
7906 fail:
7907 return NULL;
7908 }
7909
7910
7911 SWIGINTERN PyObject *_wrap_StaticLine_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7912 PyObject *resultobj = 0;
7913 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7914 wxWindow *arg2 = (wxWindow *) 0 ;
7915 int arg3 = (int) -1 ;
7916 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7917 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7918 wxSize const &arg5_defvalue = wxDefaultSize ;
7919 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7920 long arg6 = (long) wxLI_HORIZONTAL ;
7921 wxString const &arg7_defvalue = wxPyStaticLineNameStr ;
7922 wxString *arg7 = (wxString *) &arg7_defvalue ;
7923 bool result;
7924 void *argp1 = 0 ;
7925 int res1 = 0 ;
7926 void *argp2 = 0 ;
7927 int res2 = 0 ;
7928 int val3 ;
7929 int ecode3 = 0 ;
7930 wxPoint temp4 ;
7931 wxSize temp5 ;
7932 long val6 ;
7933 int ecode6 = 0 ;
7934 bool temp7 = false ;
7935 PyObject * obj0 = 0 ;
7936 PyObject * obj1 = 0 ;
7937 PyObject * obj2 = 0 ;
7938 PyObject * obj3 = 0 ;
7939 PyObject * obj4 = 0 ;
7940 PyObject * obj5 = 0 ;
7941 PyObject * obj6 = 0 ;
7942 char * kwnames[] = {
7943 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7944 };
7945
7946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7948 if (!SWIG_IsOK(res1)) {
7949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_Create" "', expected argument " "1"" of type '" "wxStaticLine *""'");
7950 }
7951 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7952 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7953 if (!SWIG_IsOK(res2)) {
7954 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticLine_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7955 }
7956 arg2 = reinterpret_cast< wxWindow * >(argp2);
7957 if (obj2) {
7958 ecode3 = SWIG_AsVal_int(obj2, &val3);
7959 if (!SWIG_IsOK(ecode3)) {
7960 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticLine_Create" "', expected argument " "3"" of type '" "int""'");
7961 }
7962 arg3 = static_cast< int >(val3);
7963 }
7964 if (obj3) {
7965 {
7966 arg4 = &temp4;
7967 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7968 }
7969 }
7970 if (obj4) {
7971 {
7972 arg5 = &temp5;
7973 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7974 }
7975 }
7976 if (obj5) {
7977 ecode6 = SWIG_AsVal_long(obj5, &val6);
7978 if (!SWIG_IsOK(ecode6)) {
7979 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "StaticLine_Create" "', expected argument " "6"" of type '" "long""'");
7980 }
7981 arg6 = static_cast< long >(val6);
7982 }
7983 if (obj6) {
7984 {
7985 arg7 = wxString_in_helper(obj6);
7986 if (arg7 == NULL) SWIG_fail;
7987 temp7 = true;
7988 }
7989 }
7990 {
7991 PyThreadState* __tstate = wxPyBeginAllowThreads();
7992 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7993 wxPyEndAllowThreads(__tstate);
7994 if (PyErr_Occurred()) SWIG_fail;
7995 }
7996 {
7997 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7998 }
7999 {
8000 if (temp7)
8001 delete arg7;
8002 }
8003 return resultobj;
8004 fail:
8005 {
8006 if (temp7)
8007 delete arg7;
8008 }
8009 return NULL;
8010 }
8011
8012
8013 SWIGINTERN PyObject *_wrap_StaticLine_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8014 PyObject *resultobj = 0;
8015 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
8016 bool result;
8017 void *argp1 = 0 ;
8018 int res1 = 0 ;
8019 PyObject *swig_obj[1] ;
8020
8021 if (!args) SWIG_fail;
8022 swig_obj[0] = args;
8023 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
8024 if (!SWIG_IsOK(res1)) {
8025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_IsVertical" "', expected argument " "1"" of type '" "wxStaticLine const *""'");
8026 }
8027 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
8028 {
8029 PyThreadState* __tstate = wxPyBeginAllowThreads();
8030 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
8031 wxPyEndAllowThreads(__tstate);
8032 if (PyErr_Occurred()) SWIG_fail;
8033 }
8034 {
8035 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8036 }
8037 return resultobj;
8038 fail:
8039 return NULL;
8040 }
8041
8042
8043 SWIGINTERN PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8044 PyObject *resultobj = 0;
8045 int result;
8046
8047 if (!SWIG_Python_UnpackTuple(args,"StaticLine_GetDefaultSize",0,0,0)) SWIG_fail;
8048 {
8049 PyThreadState* __tstate = wxPyBeginAllowThreads();
8050 result = (int)wxStaticLine::GetDefaultSize();
8051 wxPyEndAllowThreads(__tstate);
8052 if (PyErr_Occurred()) SWIG_fail;
8053 }
8054 resultobj = SWIG_From_int(static_cast< int >(result));
8055 return resultobj;
8056 fail:
8057 return NULL;
8058 }
8059
8060
8061 SWIGINTERN PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8062 PyObject *resultobj = 0;
8063 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8064 SwigValueWrapper<wxVisualAttributes > result;
8065 int val1 ;
8066 int ecode1 = 0 ;
8067 PyObject * obj0 = 0 ;
8068 char * kwnames[] = {
8069 (char *) "variant", NULL
8070 };
8071
8072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8073 if (obj0) {
8074 ecode1 = SWIG_AsVal_int(obj0, &val1);
8075 if (!SWIG_IsOK(ecode1)) {
8076 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticLine_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8077 }
8078 arg1 = static_cast< wxWindowVariant >(val1);
8079 }
8080 {
8081 if (!wxPyCheckForApp()) SWIG_fail;
8082 PyThreadState* __tstate = wxPyBeginAllowThreads();
8083 result = wxStaticLine::GetClassDefaultAttributes(arg1);
8084 wxPyEndAllowThreads(__tstate);
8085 if (PyErr_Occurred()) SWIG_fail;
8086 }
8087 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8088 return resultobj;
8089 fail:
8090 return NULL;
8091 }
8092
8093
8094 SWIGINTERN PyObject *StaticLine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8095 PyObject *obj;
8096 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8097 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticLine, SWIG_NewClientData(obj));
8098 return SWIG_Py_Void();
8099 }
8100
8101 SWIGINTERN PyObject *StaticLine_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8102 return SWIG_Python_InitShadowInstance(args);
8103 }
8104
8105 SWIGINTERN PyObject *_wrap_new_StaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8106 PyObject *resultobj = 0;
8107 wxWindow *arg1 = (wxWindow *) 0 ;
8108 int arg2 = (int) -1 ;
8109 wxString const &arg3_defvalue = wxPyEmptyString ;
8110 wxString *arg3 = (wxString *) &arg3_defvalue ;
8111 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8112 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8113 wxSize const &arg5_defvalue = wxDefaultSize ;
8114 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8115 long arg6 = (long) 0 ;
8116 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
8117 wxString *arg7 = (wxString *) &arg7_defvalue ;
8118 wxStaticText *result = 0 ;
8119 void *argp1 = 0 ;
8120 int res1 = 0 ;
8121 int val2 ;
8122 int ecode2 = 0 ;
8123 bool temp3 = false ;
8124 wxPoint temp4 ;
8125 wxSize temp5 ;
8126 long val6 ;
8127 int ecode6 = 0 ;
8128 bool temp7 = false ;
8129 PyObject * obj0 = 0 ;
8130 PyObject * obj1 = 0 ;
8131 PyObject * obj2 = 0 ;
8132 PyObject * obj3 = 0 ;
8133 PyObject * obj4 = 0 ;
8134 PyObject * obj5 = 0 ;
8135 PyObject * obj6 = 0 ;
8136 char * kwnames[] = {
8137 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8138 };
8139
8140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8142 if (!SWIG_IsOK(res1)) {
8143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticText" "', expected argument " "1"" of type '" "wxWindow *""'");
8144 }
8145 arg1 = reinterpret_cast< wxWindow * >(argp1);
8146 if (obj1) {
8147 ecode2 = SWIG_AsVal_int(obj1, &val2);
8148 if (!SWIG_IsOK(ecode2)) {
8149 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticText" "', expected argument " "2"" of type '" "int""'");
8150 }
8151 arg2 = static_cast< int >(val2);
8152 }
8153 if (obj2) {
8154 {
8155 arg3 = wxString_in_helper(obj2);
8156 if (arg3 == NULL) SWIG_fail;
8157 temp3 = true;
8158 }
8159 }
8160 if (obj3) {
8161 {
8162 arg4 = &temp4;
8163 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8164 }
8165 }
8166 if (obj4) {
8167 {
8168 arg5 = &temp5;
8169 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8170 }
8171 }
8172 if (obj5) {
8173 ecode6 = SWIG_AsVal_long(obj5, &val6);
8174 if (!SWIG_IsOK(ecode6)) {
8175 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticText" "', expected argument " "6"" of type '" "long""'");
8176 }
8177 arg6 = static_cast< long >(val6);
8178 }
8179 if (obj6) {
8180 {
8181 arg7 = wxString_in_helper(obj6);
8182 if (arg7 == NULL) SWIG_fail;
8183 temp7 = true;
8184 }
8185 }
8186 {
8187 if (!wxPyCheckForApp()) SWIG_fail;
8188 PyThreadState* __tstate = wxPyBeginAllowThreads();
8189 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8190 wxPyEndAllowThreads(__tstate);
8191 if (PyErr_Occurred()) SWIG_fail;
8192 }
8193 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_NEW | 0 );
8194 {
8195 if (temp3)
8196 delete arg3;
8197 }
8198 {
8199 if (temp7)
8200 delete arg7;
8201 }
8202 return resultobj;
8203 fail:
8204 {
8205 if (temp3)
8206 delete arg3;
8207 }
8208 {
8209 if (temp7)
8210 delete arg7;
8211 }
8212 return NULL;
8213 }
8214
8215
8216 SWIGINTERN PyObject *_wrap_new_PreStaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8217 PyObject *resultobj = 0;
8218 wxStaticText *result = 0 ;
8219
8220 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticText",0,0,0)) SWIG_fail;
8221 {
8222 if (!wxPyCheckForApp()) SWIG_fail;
8223 PyThreadState* __tstate = wxPyBeginAllowThreads();
8224 result = (wxStaticText *)new wxStaticText();
8225 wxPyEndAllowThreads(__tstate);
8226 if (PyErr_Occurred()) SWIG_fail;
8227 }
8228 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_OWN | 0 );
8229 return resultobj;
8230 fail:
8231 return NULL;
8232 }
8233
8234
8235 SWIGINTERN PyObject *_wrap_StaticText_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8236 PyObject *resultobj = 0;
8237 wxStaticText *arg1 = (wxStaticText *) 0 ;
8238 wxWindow *arg2 = (wxWindow *) 0 ;
8239 int arg3 = (int) -1 ;
8240 wxString const &arg4_defvalue = wxPyEmptyString ;
8241 wxString *arg4 = (wxString *) &arg4_defvalue ;
8242 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8243 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8244 wxSize const &arg6_defvalue = wxDefaultSize ;
8245 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8246 long arg7 = (long) 0 ;
8247 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
8248 wxString *arg8 = (wxString *) &arg8_defvalue ;
8249 bool result;
8250 void *argp1 = 0 ;
8251 int res1 = 0 ;
8252 void *argp2 = 0 ;
8253 int res2 = 0 ;
8254 int val3 ;
8255 int ecode3 = 0 ;
8256 bool temp4 = false ;
8257 wxPoint temp5 ;
8258 wxSize temp6 ;
8259 long val7 ;
8260 int ecode7 = 0 ;
8261 bool temp8 = false ;
8262 PyObject * obj0 = 0 ;
8263 PyObject * obj1 = 0 ;
8264 PyObject * obj2 = 0 ;
8265 PyObject * obj3 = 0 ;
8266 PyObject * obj4 = 0 ;
8267 PyObject * obj5 = 0 ;
8268 PyObject * obj6 = 0 ;
8269 PyObject * obj7 = 0 ;
8270 char * kwnames[] = {
8271 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8272 };
8273
8274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8276 if (!SWIG_IsOK(res1)) {
8277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Create" "', expected argument " "1"" of type '" "wxStaticText *""'");
8278 }
8279 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8280 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8281 if (!SWIG_IsOK(res2)) {
8282 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticText_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8283 }
8284 arg2 = reinterpret_cast< wxWindow * >(argp2);
8285 if (obj2) {
8286 ecode3 = SWIG_AsVal_int(obj2, &val3);
8287 if (!SWIG_IsOK(ecode3)) {
8288 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticText_Create" "', expected argument " "3"" of type '" "int""'");
8289 }
8290 arg3 = static_cast< int >(val3);
8291 }
8292 if (obj3) {
8293 {
8294 arg4 = wxString_in_helper(obj3);
8295 if (arg4 == NULL) SWIG_fail;
8296 temp4 = true;
8297 }
8298 }
8299 if (obj4) {
8300 {
8301 arg5 = &temp5;
8302 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8303 }
8304 }
8305 if (obj5) {
8306 {
8307 arg6 = &temp6;
8308 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8309 }
8310 }
8311 if (obj6) {
8312 ecode7 = SWIG_AsVal_long(obj6, &val7);
8313 if (!SWIG_IsOK(ecode7)) {
8314 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticText_Create" "', expected argument " "7"" of type '" "long""'");
8315 }
8316 arg7 = static_cast< long >(val7);
8317 }
8318 if (obj7) {
8319 {
8320 arg8 = wxString_in_helper(obj7);
8321 if (arg8 == NULL) SWIG_fail;
8322 temp8 = true;
8323 }
8324 }
8325 {
8326 PyThreadState* __tstate = wxPyBeginAllowThreads();
8327 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8328 wxPyEndAllowThreads(__tstate);
8329 if (PyErr_Occurred()) SWIG_fail;
8330 }
8331 {
8332 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8333 }
8334 {
8335 if (temp4)
8336 delete arg4;
8337 }
8338 {
8339 if (temp8)
8340 delete arg8;
8341 }
8342 return resultobj;
8343 fail:
8344 {
8345 if (temp4)
8346 delete arg4;
8347 }
8348 {
8349 if (temp8)
8350 delete arg8;
8351 }
8352 return NULL;
8353 }
8354
8355
8356 SWIGINTERN PyObject *_wrap_StaticText_Wrap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8357 PyObject *resultobj = 0;
8358 wxStaticText *arg1 = (wxStaticText *) 0 ;
8359 int arg2 ;
8360 void *argp1 = 0 ;
8361 int res1 = 0 ;
8362 int val2 ;
8363 int ecode2 = 0 ;
8364 PyObject * obj0 = 0 ;
8365 PyObject * obj1 = 0 ;
8366 char * kwnames[] = {
8367 (char *) "self",(char *) "width", NULL
8368 };
8369
8370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticText_Wrap",kwnames,&obj0,&obj1)) SWIG_fail;
8371 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8372 if (!SWIG_IsOK(res1)) {
8373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Wrap" "', expected argument " "1"" of type '" "wxStaticText *""'");
8374 }
8375 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8376 ecode2 = SWIG_AsVal_int(obj1, &val2);
8377 if (!SWIG_IsOK(ecode2)) {
8378 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StaticText_Wrap" "', expected argument " "2"" of type '" "int""'");
8379 }
8380 arg2 = static_cast< int >(val2);
8381 {
8382 PyThreadState* __tstate = wxPyBeginAllowThreads();
8383 (arg1)->Wrap(arg2);
8384 wxPyEndAllowThreads(__tstate);
8385 if (PyErr_Occurred()) SWIG_fail;
8386 }
8387 resultobj = SWIG_Py_Void();
8388 return resultobj;
8389 fail:
8390 return NULL;
8391 }
8392
8393
8394 SWIGINTERN PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8395 PyObject *resultobj = 0;
8396 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8397 SwigValueWrapper<wxVisualAttributes > result;
8398 int val1 ;
8399 int ecode1 = 0 ;
8400 PyObject * obj0 = 0 ;
8401 char * kwnames[] = {
8402 (char *) "variant", NULL
8403 };
8404
8405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8406 if (obj0) {
8407 ecode1 = SWIG_AsVal_int(obj0, &val1);
8408 if (!SWIG_IsOK(ecode1)) {
8409 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticText_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8410 }
8411 arg1 = static_cast< wxWindowVariant >(val1);
8412 }
8413 {
8414 if (!wxPyCheckForApp()) SWIG_fail;
8415 PyThreadState* __tstate = wxPyBeginAllowThreads();
8416 result = wxStaticText::GetClassDefaultAttributes(arg1);
8417 wxPyEndAllowThreads(__tstate);
8418 if (PyErr_Occurred()) SWIG_fail;
8419 }
8420 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8421 return resultobj;
8422 fail:
8423 return NULL;
8424 }
8425
8426
8427 SWIGINTERN PyObject *StaticText_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8428 PyObject *obj;
8429 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8430 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticText, SWIG_NewClientData(obj));
8431 return SWIG_Py_Void();
8432 }
8433
8434 SWIGINTERN PyObject *StaticText_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8435 return SWIG_Python_InitShadowInstance(args);
8436 }
8437
8438 SWIGINTERN PyObject *_wrap_new_StaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8439 PyObject *resultobj = 0;
8440 wxWindow *arg1 = (wxWindow *) 0 ;
8441 int arg2 = (int) -1 ;
8442 wxBitmap const &arg3_defvalue = wxNullBitmap ;
8443 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
8444 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8445 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8446 wxSize const &arg5_defvalue = wxDefaultSize ;
8447 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8448 long arg6 = (long) 0 ;
8449 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
8450 wxString *arg7 = (wxString *) &arg7_defvalue ;
8451 wxStaticBitmap *result = 0 ;
8452 void *argp1 = 0 ;
8453 int res1 = 0 ;
8454 int val2 ;
8455 int ecode2 = 0 ;
8456 void *argp3 = 0 ;
8457 int res3 = 0 ;
8458 wxPoint temp4 ;
8459 wxSize temp5 ;
8460 long val6 ;
8461 int ecode6 = 0 ;
8462 bool temp7 = false ;
8463 PyObject * obj0 = 0 ;
8464 PyObject * obj1 = 0 ;
8465 PyObject * obj2 = 0 ;
8466 PyObject * obj3 = 0 ;
8467 PyObject * obj4 = 0 ;
8468 PyObject * obj5 = 0 ;
8469 PyObject * obj6 = 0 ;
8470 char * kwnames[] = {
8471 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8472 };
8473
8474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8475 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8476 if (!SWIG_IsOK(res1)) {
8477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBitmap" "', expected argument " "1"" of type '" "wxWindow *""'");
8478 }
8479 arg1 = reinterpret_cast< wxWindow * >(argp1);
8480 if (obj1) {
8481 ecode2 = SWIG_AsVal_int(obj1, &val2);
8482 if (!SWIG_IsOK(ecode2)) {
8483 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBitmap" "', expected argument " "2"" of type '" "int""'");
8484 }
8485 arg2 = static_cast< int >(val2);
8486 }
8487 if (obj2) {
8488 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
8489 if (!SWIG_IsOK(res3)) {
8490 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8491 }
8492 if (!argp3) {
8493 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8494 }
8495 arg3 = reinterpret_cast< wxBitmap * >(argp3);
8496 }
8497 if (obj3) {
8498 {
8499 arg4 = &temp4;
8500 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8501 }
8502 }
8503 if (obj4) {
8504 {
8505 arg5 = &temp5;
8506 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8507 }
8508 }
8509 if (obj5) {
8510 ecode6 = SWIG_AsVal_long(obj5, &val6);
8511 if (!SWIG_IsOK(ecode6)) {
8512 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBitmap" "', expected argument " "6"" of type '" "long""'");
8513 }
8514 arg6 = static_cast< long >(val6);
8515 }
8516 if (obj6) {
8517 {
8518 arg7 = wxString_in_helper(obj6);
8519 if (arg7 == NULL) SWIG_fail;
8520 temp7 = true;
8521 }
8522 }
8523 {
8524 if (!wxPyCheckForApp()) SWIG_fail;
8525 PyThreadState* __tstate = wxPyBeginAllowThreads();
8526 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8527 wxPyEndAllowThreads(__tstate);
8528 if (PyErr_Occurred()) SWIG_fail;
8529 }
8530 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_NEW | 0 );
8531 {
8532 if (temp7)
8533 delete arg7;
8534 }
8535 return resultobj;
8536 fail:
8537 {
8538 if (temp7)
8539 delete arg7;
8540 }
8541 return NULL;
8542 }
8543
8544
8545 SWIGINTERN PyObject *_wrap_new_PreStaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8546 PyObject *resultobj = 0;
8547 wxStaticBitmap *result = 0 ;
8548
8549 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBitmap",0,0,0)) SWIG_fail;
8550 {
8551 if (!wxPyCheckForApp()) SWIG_fail;
8552 PyThreadState* __tstate = wxPyBeginAllowThreads();
8553 result = (wxStaticBitmap *)new wxStaticBitmap();
8554 wxPyEndAllowThreads(__tstate);
8555 if (PyErr_Occurred()) SWIG_fail;
8556 }
8557 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_OWN | 0 );
8558 return resultobj;
8559 fail:
8560 return NULL;
8561 }
8562
8563
8564 SWIGINTERN PyObject *_wrap_StaticBitmap_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8565 PyObject *resultobj = 0;
8566 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8567 wxWindow *arg2 = (wxWindow *) 0 ;
8568 int arg3 = (int) -1 ;
8569 wxBitmap const &arg4_defvalue = wxNullBitmap ;
8570 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
8571 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8572 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8573 wxSize const &arg6_defvalue = wxDefaultSize ;
8574 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8575 long arg7 = (long) 0 ;
8576 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
8577 wxString *arg8 = (wxString *) &arg8_defvalue ;
8578 bool result;
8579 void *argp1 = 0 ;
8580 int res1 = 0 ;
8581 void *argp2 = 0 ;
8582 int res2 = 0 ;
8583 int val3 ;
8584 int ecode3 = 0 ;
8585 void *argp4 = 0 ;
8586 int res4 = 0 ;
8587 wxPoint temp5 ;
8588 wxSize temp6 ;
8589 long val7 ;
8590 int ecode7 = 0 ;
8591 bool temp8 = false ;
8592 PyObject * obj0 = 0 ;
8593 PyObject * obj1 = 0 ;
8594 PyObject * obj2 = 0 ;
8595 PyObject * obj3 = 0 ;
8596 PyObject * obj4 = 0 ;
8597 PyObject * obj5 = 0 ;
8598 PyObject * obj6 = 0 ;
8599 PyObject * obj7 = 0 ;
8600 char * kwnames[] = {
8601 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8602 };
8603
8604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8606 if (!SWIG_IsOK(res1)) {
8607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_Create" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8608 }
8609 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8610 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8611 if (!SWIG_IsOK(res2)) {
8612 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8613 }
8614 arg2 = reinterpret_cast< wxWindow * >(argp2);
8615 if (obj2) {
8616 ecode3 = SWIG_AsVal_int(obj2, &val3);
8617 if (!SWIG_IsOK(ecode3)) {
8618 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBitmap_Create" "', expected argument " "3"" of type '" "int""'");
8619 }
8620 arg3 = static_cast< int >(val3);
8621 }
8622 if (obj3) {
8623 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
8624 if (!SWIG_IsOK(res4)) {
8625 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8626 }
8627 if (!argp4) {
8628 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8629 }
8630 arg4 = reinterpret_cast< wxBitmap * >(argp4);
8631 }
8632 if (obj4) {
8633 {
8634 arg5 = &temp5;
8635 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8636 }
8637 }
8638 if (obj5) {
8639 {
8640 arg6 = &temp6;
8641 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8642 }
8643 }
8644 if (obj6) {
8645 ecode7 = SWIG_AsVal_long(obj6, &val7);
8646 if (!SWIG_IsOK(ecode7)) {
8647 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBitmap_Create" "', expected argument " "7"" of type '" "long""'");
8648 }
8649 arg7 = static_cast< long >(val7);
8650 }
8651 if (obj7) {
8652 {
8653 arg8 = wxString_in_helper(obj7);
8654 if (arg8 == NULL) SWIG_fail;
8655 temp8 = true;
8656 }
8657 }
8658 {
8659 PyThreadState* __tstate = wxPyBeginAllowThreads();
8660 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8661 wxPyEndAllowThreads(__tstate);
8662 if (PyErr_Occurred()) SWIG_fail;
8663 }
8664 {
8665 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8666 }
8667 {
8668 if (temp8)
8669 delete arg8;
8670 }
8671 return resultobj;
8672 fail:
8673 {
8674 if (temp8)
8675 delete arg8;
8676 }
8677 return NULL;
8678 }
8679
8680
8681 SWIGINTERN PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8682 PyObject *resultobj = 0;
8683 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8684 wxBitmap result;
8685 void *argp1 = 0 ;
8686 int res1 = 0 ;
8687 PyObject *swig_obj[1] ;
8688
8689 if (!args) SWIG_fail;
8690 swig_obj[0] = args;
8691 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8692 if (!SWIG_IsOK(res1)) {
8693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_GetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8694 }
8695 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8696 {
8697 PyThreadState* __tstate = wxPyBeginAllowThreads();
8698 result = (arg1)->GetBitmap();
8699 wxPyEndAllowThreads(__tstate);
8700 if (PyErr_Occurred()) SWIG_fail;
8701 }
8702 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8703 return resultobj;
8704 fail:
8705 return NULL;
8706 }
8707
8708
8709 SWIGINTERN PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8710 PyObject *resultobj = 0;
8711 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8712 wxBitmap *arg2 = 0 ;
8713 void *argp1 = 0 ;
8714 int res1 = 0 ;
8715 void *argp2 = 0 ;
8716 int res2 = 0 ;
8717 PyObject * obj0 = 0 ;
8718 PyObject * obj1 = 0 ;
8719 char * kwnames[] = {
8720 (char *) "self",(char *) "bitmap", NULL
8721 };
8722
8723 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
8724 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8725 if (!SWIG_IsOK(res1)) {
8726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8727 }
8728 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8729 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8730 if (!SWIG_IsOK(res2)) {
8731 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8732 }
8733 if (!argp2) {
8734 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8735 }
8736 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8737 {
8738 PyThreadState* __tstate = wxPyBeginAllowThreads();
8739 (arg1)->SetBitmap((wxBitmap const &)*arg2);
8740 wxPyEndAllowThreads(__tstate);
8741 if (PyErr_Occurred()) SWIG_fail;
8742 }
8743 resultobj = SWIG_Py_Void();
8744 return resultobj;
8745 fail:
8746 return NULL;
8747 }
8748
8749
8750 SWIGINTERN PyObject *_wrap_StaticBitmap_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8751 PyObject *resultobj = 0;
8752 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8753 wxIcon *arg2 = 0 ;
8754 void *argp1 = 0 ;
8755 int res1 = 0 ;
8756 void *argp2 = 0 ;
8757 int res2 = 0 ;
8758 PyObject * obj0 = 0 ;
8759 PyObject * obj1 = 0 ;
8760 char * kwnames[] = {
8761 (char *) "self",(char *) "icon", NULL
8762 };
8763
8764 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
8765 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8766 if (!SWIG_IsOK(res1)) {
8767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetIcon" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8768 }
8769 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8770 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
8771 if (!SWIG_IsOK(res2)) {
8772 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8773 }
8774 if (!argp2) {
8775 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8776 }
8777 arg2 = reinterpret_cast< wxIcon * >(argp2);
8778 {
8779 PyThreadState* __tstate = wxPyBeginAllowThreads();
8780 (arg1)->SetIcon((wxIcon const &)*arg2);
8781 wxPyEndAllowThreads(__tstate);
8782 if (PyErr_Occurred()) SWIG_fail;
8783 }
8784 resultobj = SWIG_Py_Void();
8785 return resultobj;
8786 fail:
8787 return NULL;
8788 }
8789
8790
8791 SWIGINTERN PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8792 PyObject *resultobj = 0;
8793 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8794 SwigValueWrapper<wxVisualAttributes > result;
8795 int val1 ;
8796 int ecode1 = 0 ;
8797 PyObject * obj0 = 0 ;
8798 char * kwnames[] = {
8799 (char *) "variant", NULL
8800 };
8801
8802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8803 if (obj0) {
8804 ecode1 = SWIG_AsVal_int(obj0, &val1);
8805 if (!SWIG_IsOK(ecode1)) {
8806 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBitmap_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8807 }
8808 arg1 = static_cast< wxWindowVariant >(val1);
8809 }
8810 {
8811 if (!wxPyCheckForApp()) SWIG_fail;
8812 PyThreadState* __tstate = wxPyBeginAllowThreads();
8813 result = wxStaticBitmap::GetClassDefaultAttributes(arg1);
8814 wxPyEndAllowThreads(__tstate);
8815 if (PyErr_Occurred()) SWIG_fail;
8816 }
8817 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8818 return resultobj;
8819 fail:
8820 return NULL;
8821 }
8822
8823
8824 SWIGINTERN PyObject *StaticBitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8825 PyObject *obj;
8826 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8827 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBitmap, SWIG_NewClientData(obj));
8828 return SWIG_Py_Void();
8829 }
8830
8831 SWIGINTERN PyObject *StaticBitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8832 return SWIG_Python_InitShadowInstance(args);
8833 }
8834
8835 SWIGINTERN int ListBoxNameStr_set(PyObject *) {
8836 SWIG_Error(SWIG_AttributeError,"Variable ListBoxNameStr is read-only.");
8837 return 1;
8838 }
8839
8840
8841 SWIGINTERN PyObject *ListBoxNameStr_get(void) {
8842 PyObject *pyobj = 0;
8843
8844 {
8845 #if wxUSE_UNICODE
8846 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8847 #else
8848 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8849 #endif
8850 }
8851 return pyobj;
8852 }
8853
8854
8855 SWIGINTERN PyObject *_wrap_new_ListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8856 PyObject *resultobj = 0;
8857 wxWindow *arg1 = (wxWindow *) 0 ;
8858 int arg2 = (int) -1 ;
8859 wxPoint const &arg3_defvalue = wxDefaultPosition ;
8860 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
8861 wxSize const &arg4_defvalue = wxDefaultSize ;
8862 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
8863 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
8864 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
8865 long arg6 = (long) 0 ;
8866 wxValidator const &arg7_defvalue = wxDefaultValidator ;
8867 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
8868 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
8869 wxString *arg8 = (wxString *) &arg8_defvalue ;
8870 wxListBox *result = 0 ;
8871 void *argp1 = 0 ;
8872 int res1 = 0 ;
8873 int val2 ;
8874 int ecode2 = 0 ;
8875 wxPoint temp3 ;
8876 wxSize temp4 ;
8877 bool temp5 = false ;
8878 long val6 ;
8879 int ecode6 = 0 ;
8880 void *argp7 = 0 ;
8881 int res7 = 0 ;
8882 bool temp8 = false ;
8883 PyObject * obj0 = 0 ;
8884 PyObject * obj1 = 0 ;
8885 PyObject * obj2 = 0 ;
8886 PyObject * obj3 = 0 ;
8887 PyObject * obj4 = 0 ;
8888 PyObject * obj5 = 0 ;
8889 PyObject * obj6 = 0 ;
8890 PyObject * obj7 = 0 ;
8891 char * kwnames[] = {
8892 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8893 };
8894
8895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8897 if (!SWIG_IsOK(res1)) {
8898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
8899 }
8900 arg1 = reinterpret_cast< wxWindow * >(argp1);
8901 if (obj1) {
8902 ecode2 = SWIG_AsVal_int(obj1, &val2);
8903 if (!SWIG_IsOK(ecode2)) {
8904 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListBox" "', expected argument " "2"" of type '" "int""'");
8905 }
8906 arg2 = static_cast< int >(val2);
8907 }
8908 if (obj2) {
8909 {
8910 arg3 = &temp3;
8911 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
8912 }
8913 }
8914 if (obj3) {
8915 {
8916 arg4 = &temp4;
8917 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
8918 }
8919 }
8920 if (obj4) {
8921 {
8922 if (! PySequence_Check(obj4)) {
8923 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
8924 SWIG_fail;
8925 }
8926 arg5 = new wxArrayString;
8927 temp5 = true;
8928 int i, len=PySequence_Length(obj4);
8929 for (i=0; i<len; i++) {
8930 PyObject* item = PySequence_GetItem(obj4, i);
8931 wxString* s = wxString_in_helper(item);
8932 if (PyErr_Occurred()) SWIG_fail;
8933 arg5->Add(*s);
8934 delete s;
8935 Py_DECREF(item);
8936 }
8937 }
8938 }
8939 if (obj5) {
8940 ecode6 = SWIG_AsVal_long(obj5, &val6);
8941 if (!SWIG_IsOK(ecode6)) {
8942 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ListBox" "', expected argument " "6"" of type '" "long""'");
8943 }
8944 arg6 = static_cast< long >(val6);
8945 }
8946 if (obj6) {
8947 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
8948 if (!SWIG_IsOK(res7)) {
8949 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
8950 }
8951 if (!argp7) {
8952 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
8953 }
8954 arg7 = reinterpret_cast< wxValidator * >(argp7);
8955 }
8956 if (obj7) {
8957 {
8958 arg8 = wxString_in_helper(obj7);
8959 if (arg8 == NULL) SWIG_fail;
8960 temp8 = true;
8961 }
8962 }
8963 {
8964 if (!wxPyCheckForApp()) SWIG_fail;
8965 PyThreadState* __tstate = wxPyBeginAllowThreads();
8966 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
8967 wxPyEndAllowThreads(__tstate);
8968 if (PyErr_Occurred()) SWIG_fail;
8969 }
8970 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_NEW | 0 );
8971 {
8972 if (temp5) delete arg5;
8973 }
8974 {
8975 if (temp8)
8976 delete arg8;
8977 }
8978 return resultobj;
8979 fail:
8980 {
8981 if (temp5) delete arg5;
8982 }
8983 {
8984 if (temp8)
8985 delete arg8;
8986 }
8987 return NULL;
8988 }
8989
8990
8991 SWIGINTERN PyObject *_wrap_new_PreListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8992 PyObject *resultobj = 0;
8993 wxListBox *result = 0 ;
8994
8995 if (!SWIG_Python_UnpackTuple(args,"new_PreListBox",0,0,0)) SWIG_fail;
8996 {
8997 if (!wxPyCheckForApp()) SWIG_fail;
8998 PyThreadState* __tstate = wxPyBeginAllowThreads();
8999 result = (wxListBox *)new wxListBox();
9000 wxPyEndAllowThreads(__tstate);
9001 if (PyErr_Occurred()) SWIG_fail;
9002 }
9003 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_OWN | 0 );
9004 return resultobj;
9005 fail:
9006 return NULL;
9007 }
9008
9009
9010 SWIGINTERN PyObject *_wrap_ListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9011 PyObject *resultobj = 0;
9012 wxListBox *arg1 = (wxListBox *) 0 ;
9013 wxWindow *arg2 = (wxWindow *) 0 ;
9014 int arg3 = (int) -1 ;
9015 wxPoint const &arg4_defvalue = wxDefaultPosition ;
9016 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
9017 wxSize const &arg5_defvalue = wxDefaultSize ;
9018 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
9019 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
9020 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
9021 long arg7 = (long) 0 ;
9022 wxValidator const &arg8_defvalue = wxDefaultValidator ;
9023 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
9024 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
9025 wxString *arg9 = (wxString *) &arg9_defvalue ;
9026 bool result;
9027 void *argp1 = 0 ;
9028 int res1 = 0 ;
9029 void *argp2 = 0 ;
9030 int res2 = 0 ;
9031 int val3 ;
9032 int ecode3 = 0 ;
9033 wxPoint temp4 ;
9034 wxSize temp5 ;
9035 bool temp6 = false ;
9036 long val7 ;
9037 int ecode7 = 0 ;
9038 void *argp8 = 0 ;
9039 int res8 = 0 ;
9040 bool temp9 = false ;
9041 PyObject * obj0 = 0 ;
9042 PyObject * obj1 = 0 ;
9043 PyObject * obj2 = 0 ;
9044 PyObject * obj3 = 0 ;
9045 PyObject * obj4 = 0 ;
9046 PyObject * obj5 = 0 ;
9047 PyObject * obj6 = 0 ;
9048 PyObject * obj7 = 0 ;
9049 PyObject * obj8 = 0 ;
9050 char * kwnames[] = {
9051 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
9052 };
9053
9054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
9055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9056 if (!SWIG_IsOK(res1)) {
9057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Create" "', expected argument " "1"" of type '" "wxListBox *""'");
9058 }
9059 arg1 = reinterpret_cast< wxListBox * >(argp1);
9060 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
9061 if (!SWIG_IsOK(res2)) {
9062 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
9063 }
9064 arg2 = reinterpret_cast< wxWindow * >(argp2);
9065 if (obj2) {
9066 ecode3 = SWIG_AsVal_int(obj2, &val3);
9067 if (!SWIG_IsOK(ecode3)) {
9068 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Create" "', expected argument " "3"" of type '" "int""'");
9069 }
9070 arg3 = static_cast< int >(val3);
9071 }
9072 if (obj3) {
9073 {
9074 arg4 = &temp4;
9075 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
9076 }
9077 }
9078 if (obj4) {
9079 {
9080 arg5 = &temp5;
9081 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
9082 }
9083 }
9084 if (obj5) {
9085 {
9086 if (! PySequence_Check(obj5)) {
9087 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9088 SWIG_fail;
9089 }
9090 arg6 = new wxArrayString;
9091 temp6 = true;
9092 int i, len=PySequence_Length(obj5);
9093 for (i=0; i<len; i++) {
9094 PyObject* item = PySequence_GetItem(obj5, i);
9095 wxString* s = wxString_in_helper(item);
9096 if (PyErr_Occurred()) SWIG_fail;
9097 arg6->Add(*s);
9098 delete s;
9099 Py_DECREF(item);
9100 }
9101 }
9102 }
9103 if (obj6) {
9104 ecode7 = SWIG_AsVal_long(obj6, &val7);
9105 if (!SWIG_IsOK(ecode7)) {
9106 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ListBox_Create" "', expected argument " "7"" of type '" "long""'");
9107 }
9108 arg7 = static_cast< long >(val7);
9109 }
9110 if (obj7) {
9111 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
9112 if (!SWIG_IsOK(res8)) {
9113 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
9114 }
9115 if (!argp8) {
9116 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
9117 }
9118 arg8 = reinterpret_cast< wxValidator * >(argp8);
9119 }
9120 if (obj8) {
9121 {
9122 arg9 = wxString_in_helper(obj8);
9123 if (arg9 == NULL) SWIG_fail;
9124 temp9 = true;
9125 }
9126 }
9127 {
9128 PyThreadState* __tstate = wxPyBeginAllowThreads();
9129 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
9130 wxPyEndAllowThreads(__tstate);
9131 if (PyErr_Occurred()) SWIG_fail;
9132 }
9133 {
9134 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9135 }
9136 {
9137 if (temp6) delete arg6;
9138 }
9139 {
9140 if (temp9)
9141 delete arg9;
9142 }
9143 return resultobj;
9144 fail:
9145 {
9146 if (temp6) delete arg6;
9147 }
9148 {
9149 if (temp9)
9150 delete arg9;
9151 }
9152 return NULL;
9153 }
9154
9155
9156 SWIGINTERN PyObject *_wrap_ListBox_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9157 PyObject *resultobj = 0;
9158 wxListBox *arg1 = (wxListBox *) 0 ;
9159 wxString *arg2 = 0 ;
9160 int arg3 ;
9161 PyObject *arg4 = (PyObject *) NULL ;
9162 void *argp1 = 0 ;
9163 int res1 = 0 ;
9164 bool temp2 = false ;
9165 int val3 ;
9166 int ecode3 = 0 ;
9167 PyObject * obj0 = 0 ;
9168 PyObject * obj1 = 0 ;
9169 PyObject * obj2 = 0 ;
9170 PyObject * obj3 = 0 ;
9171 char * kwnames[] = {
9172 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
9173 };
9174
9175 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9176 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9177 if (!SWIG_IsOK(res1)) {
9178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Insert" "', expected argument " "1"" of type '" "wxListBox *""'");
9179 }
9180 arg1 = reinterpret_cast< wxListBox * >(argp1);
9181 {
9182 arg2 = wxString_in_helper(obj1);
9183 if (arg2 == NULL) SWIG_fail;
9184 temp2 = true;
9185 }
9186 ecode3 = SWIG_AsVal_int(obj2, &val3);
9187 if (!SWIG_IsOK(ecode3)) {
9188 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Insert" "', expected argument " "3"" of type '" "int""'");
9189 }
9190 arg3 = static_cast< int >(val3);
9191 if (obj3) {
9192 arg4 = obj3;
9193 }
9194 {
9195 PyThreadState* __tstate = wxPyBeginAllowThreads();
9196 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
9197 wxPyEndAllowThreads(__tstate);
9198 if (PyErr_Occurred()) SWIG_fail;
9199 }
9200 resultobj = SWIG_Py_Void();
9201 {
9202 if (temp2)
9203 delete arg2;
9204 }
9205 return resultobj;
9206 fail:
9207 {
9208 if (temp2)
9209 delete arg2;
9210 }
9211 return NULL;
9212 }
9213
9214
9215 SWIGINTERN PyObject *_wrap_ListBox_InsertItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9216 PyObject *resultobj = 0;
9217 wxListBox *arg1 = (wxListBox *) 0 ;
9218 wxArrayString *arg2 = 0 ;
9219 unsigned int arg3 ;
9220 void *argp1 = 0 ;
9221 int res1 = 0 ;
9222 bool temp2 = false ;
9223 unsigned int val3 ;
9224 int ecode3 = 0 ;
9225 PyObject * obj0 = 0 ;
9226 PyObject * obj1 = 0 ;
9227 PyObject * obj2 = 0 ;
9228 char * kwnames[] = {
9229 (char *) "self",(char *) "items",(char *) "pos", NULL
9230 };
9231
9232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9234 if (!SWIG_IsOK(res1)) {
9235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_InsertItems" "', expected argument " "1"" of type '" "wxListBox *""'");
9236 }
9237 arg1 = reinterpret_cast< wxListBox * >(argp1);
9238 {
9239 if (! PySequence_Check(obj1)) {
9240 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9241 SWIG_fail;
9242 }
9243 arg2 = new wxArrayString;
9244 temp2 = true;
9245 int i, len=PySequence_Length(obj1);
9246 for (i=0; i<len; i++) {
9247 PyObject* item = PySequence_GetItem(obj1, i);
9248 wxString* s = wxString_in_helper(item);
9249 if (PyErr_Occurred()) SWIG_fail;
9250 arg2->Add(*s);
9251 delete s;
9252 Py_DECREF(item);
9253 }
9254 }
9255 ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
9256 if (!SWIG_IsOK(ecode3)) {
9257 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_InsertItems" "', expected argument " "3"" of type '" "unsigned int""'");
9258 }
9259 arg3 = static_cast< unsigned int >(val3);
9260 {
9261 PyThreadState* __tstate = wxPyBeginAllowThreads();
9262 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
9263 wxPyEndAllowThreads(__tstate);
9264 if (PyErr_Occurred()) SWIG_fail;
9265 }
9266 resultobj = SWIG_Py_Void();
9267 {
9268 if (temp2) delete arg2;
9269 }
9270 return resultobj;
9271 fail:
9272 {
9273 if (temp2) delete arg2;
9274 }
9275 return NULL;
9276 }
9277
9278
9279 SWIGINTERN PyObject *_wrap_ListBox_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9280 PyObject *resultobj = 0;
9281 wxListBox *arg1 = (wxListBox *) 0 ;
9282 wxArrayString *arg2 = 0 ;
9283 void *argp1 = 0 ;
9284 int res1 = 0 ;
9285 bool temp2 = false ;
9286 PyObject * obj0 = 0 ;
9287 PyObject * obj1 = 0 ;
9288 char * kwnames[] = {
9289 (char *) "self",(char *) "items", NULL
9290 };
9291
9292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) SWIG_fail;
9293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9294 if (!SWIG_IsOK(res1)) {
9295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Set" "', expected argument " "1"" of type '" "wxListBox *""'");
9296 }
9297 arg1 = reinterpret_cast< wxListBox * >(argp1);
9298 {
9299 if (! PySequence_Check(obj1)) {
9300 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9301 SWIG_fail;
9302 }
9303 arg2 = new wxArrayString;
9304 temp2 = true;
9305 int i, len=PySequence_Length(obj1);
9306 for (i=0; i<len; i++) {
9307 PyObject* item = PySequence_GetItem(obj1, i);
9308 wxString* s = wxString_in_helper(item);
9309 if (PyErr_Occurred()) SWIG_fail;
9310 arg2->Add(*s);
9311 delete s;
9312 Py_DECREF(item);
9313 }
9314 }
9315 {
9316 PyThreadState* __tstate = wxPyBeginAllowThreads();
9317 (arg1)->Set((wxArrayString const &)*arg2);
9318 wxPyEndAllowThreads(__tstate);
9319 if (PyErr_Occurred()) SWIG_fail;
9320 }
9321 resultobj = SWIG_Py_Void();
9322 {
9323 if (temp2) delete arg2;
9324 }
9325 return resultobj;
9326 fail:
9327 {
9328 if (temp2) delete arg2;
9329 }
9330 return NULL;
9331 }
9332
9333
9334 SWIGINTERN PyObject *_wrap_ListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9335 PyObject *resultobj = 0;
9336 wxListBox *arg1 = (wxListBox *) 0 ;
9337 int arg2 ;
9338 bool result;
9339 void *argp1 = 0 ;
9340 int res1 = 0 ;
9341 int val2 ;
9342 int ecode2 = 0 ;
9343 PyObject * obj0 = 0 ;
9344 PyObject * obj1 = 0 ;
9345 char * kwnames[] = {
9346 (char *) "self",(char *) "n", NULL
9347 };
9348
9349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
9350 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9351 if (!SWIG_IsOK(res1)) {
9352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSelected" "', expected argument " "1"" of type '" "wxListBox const *""'");
9353 }
9354 arg1 = reinterpret_cast< wxListBox * >(argp1);
9355 ecode2 = SWIG_AsVal_int(obj1, &val2);
9356 if (!SWIG_IsOK(ecode2)) {
9357 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_IsSelected" "', expected argument " "2"" of type '" "int""'");
9358 }
9359 arg2 = static_cast< int >(val2);
9360 {
9361 PyThreadState* __tstate = wxPyBeginAllowThreads();
9362 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
9363 wxPyEndAllowThreads(__tstate);
9364 if (PyErr_Occurred()) SWIG_fail;
9365 }
9366 {
9367 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9368 }
9369 return resultobj;
9370 fail:
9371 return NULL;
9372 }
9373
9374
9375 SWIGINTERN PyObject *_wrap_ListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9376 PyObject *resultobj = 0;
9377 wxListBox *arg1 = (wxListBox *) 0 ;
9378 int arg2 ;
9379 bool arg3 = (bool) true ;
9380 void *argp1 = 0 ;
9381 int res1 = 0 ;
9382 int val2 ;
9383 int ecode2 = 0 ;
9384 bool val3 ;
9385 int ecode3 = 0 ;
9386 PyObject * obj0 = 0 ;
9387 PyObject * obj1 = 0 ;
9388 PyObject * obj2 = 0 ;
9389 char * kwnames[] = {
9390 (char *) "self",(char *) "n",(char *) "select", NULL
9391 };
9392
9393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9395 if (!SWIG_IsOK(res1)) {
9396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9397 }
9398 arg1 = reinterpret_cast< wxListBox * >(argp1);
9399 ecode2 = SWIG_AsVal_int(obj1, &val2);
9400 if (!SWIG_IsOK(ecode2)) {
9401 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
9402 }
9403 arg2 = static_cast< int >(val2);
9404 if (obj2) {
9405 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9406 if (!SWIG_IsOK(ecode3)) {
9407 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetSelection" "', expected argument " "3"" of type '" "bool""'");
9408 }
9409 arg3 = static_cast< bool >(val3);
9410 }
9411 {
9412 PyThreadState* __tstate = wxPyBeginAllowThreads();
9413 (arg1)->SetSelection(arg2,arg3);
9414 wxPyEndAllowThreads(__tstate);
9415 if (PyErr_Occurred()) SWIG_fail;
9416 }
9417 resultobj = SWIG_Py_Void();
9418 return resultobj;
9419 fail:
9420 return NULL;
9421 }
9422
9423
9424 SWIGINTERN PyObject *_wrap_ListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9425 PyObject *resultobj = 0;
9426 wxListBox *arg1 = (wxListBox *) 0 ;
9427 int arg2 ;
9428 void *argp1 = 0 ;
9429 int res1 = 0 ;
9430 int val2 ;
9431 int ecode2 = 0 ;
9432 PyObject * obj0 = 0 ;
9433 PyObject * obj1 = 0 ;
9434 char * kwnames[] = {
9435 (char *) "self",(char *) "n", NULL
9436 };
9437
9438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) SWIG_fail;
9439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9440 if (!SWIG_IsOK(res1)) {
9441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Select" "', expected argument " "1"" of type '" "wxListBox *""'");
9442 }
9443 arg1 = reinterpret_cast< wxListBox * >(argp1);
9444 ecode2 = SWIG_AsVal_int(obj1, &val2);
9445 if (!SWIG_IsOK(ecode2)) {
9446 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Select" "', expected argument " "2"" of type '" "int""'");
9447 }
9448 arg2 = static_cast< int >(val2);
9449 {
9450 PyThreadState* __tstate = wxPyBeginAllowThreads();
9451 (arg1)->Select(arg2);
9452 wxPyEndAllowThreads(__tstate);
9453 if (PyErr_Occurred()) SWIG_fail;
9454 }
9455 resultobj = SWIG_Py_Void();
9456 return resultobj;
9457 fail:
9458 return NULL;
9459 }
9460
9461
9462 SWIGINTERN PyObject *_wrap_ListBox_Deselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9463 PyObject *resultobj = 0;
9464 wxListBox *arg1 = (wxListBox *) 0 ;
9465 int arg2 ;
9466 void *argp1 = 0 ;
9467 int res1 = 0 ;
9468 int val2 ;
9469 int ecode2 = 0 ;
9470 PyObject * obj0 = 0 ;
9471 PyObject * obj1 = 0 ;
9472 char * kwnames[] = {
9473 (char *) "self",(char *) "n", NULL
9474 };
9475
9476 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) SWIG_fail;
9477 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9478 if (!SWIG_IsOK(res1)) {
9479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Deselect" "', expected argument " "1"" of type '" "wxListBox *""'");
9480 }
9481 arg1 = reinterpret_cast< wxListBox * >(argp1);
9482 ecode2 = SWIG_AsVal_int(obj1, &val2);
9483 if (!SWIG_IsOK(ecode2)) {
9484 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Deselect" "', expected argument " "2"" of type '" "int""'");
9485 }
9486 arg2 = static_cast< int >(val2);
9487 {
9488 PyThreadState* __tstate = wxPyBeginAllowThreads();
9489 (arg1)->Deselect(arg2);
9490 wxPyEndAllowThreads(__tstate);
9491 if (PyErr_Occurred()) SWIG_fail;
9492 }
9493 resultobj = SWIG_Py_Void();
9494 return resultobj;
9495 fail:
9496 return NULL;
9497 }
9498
9499
9500 SWIGINTERN PyObject *_wrap_ListBox_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9501 PyObject *resultobj = 0;
9502 wxListBox *arg1 = (wxListBox *) 0 ;
9503 int arg2 = (int) -1 ;
9504 void *argp1 = 0 ;
9505 int res1 = 0 ;
9506 int val2 ;
9507 int ecode2 = 0 ;
9508 PyObject * obj0 = 0 ;
9509 PyObject * obj1 = 0 ;
9510 char * kwnames[] = {
9511 (char *) "self",(char *) "itemToLeaveSelected", NULL
9512 };
9513
9514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) SWIG_fail;
9515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9516 if (!SWIG_IsOK(res1)) {
9517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_DeselectAll" "', expected argument " "1"" of type '" "wxListBox *""'");
9518 }
9519 arg1 = reinterpret_cast< wxListBox * >(argp1);
9520 if (obj1) {
9521 ecode2 = SWIG_AsVal_int(obj1, &val2);
9522 if (!SWIG_IsOK(ecode2)) {
9523 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_DeselectAll" "', expected argument " "2"" of type '" "int""'");
9524 }
9525 arg2 = static_cast< int >(val2);
9526 }
9527 {
9528 PyThreadState* __tstate = wxPyBeginAllowThreads();
9529 (arg1)->DeselectAll(arg2);
9530 wxPyEndAllowThreads(__tstate);
9531 if (PyErr_Occurred()) SWIG_fail;
9532 }
9533 resultobj = SWIG_Py_Void();
9534 return resultobj;
9535 fail:
9536 return NULL;
9537 }
9538
9539
9540 SWIGINTERN PyObject *_wrap_ListBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9541 PyObject *resultobj = 0;
9542 wxListBox *arg1 = (wxListBox *) 0 ;
9543 wxString *arg2 = 0 ;
9544 bool arg3 = (bool) true ;
9545 bool result;
9546 void *argp1 = 0 ;
9547 int res1 = 0 ;
9548 bool temp2 = false ;
9549 bool val3 ;
9550 int ecode3 = 0 ;
9551 PyObject * obj0 = 0 ;
9552 PyObject * obj1 = 0 ;
9553 PyObject * obj2 = 0 ;
9554 char * kwnames[] = {
9555 (char *) "self",(char *) "s",(char *) "select", NULL
9556 };
9557
9558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9560 if (!SWIG_IsOK(res1)) {
9561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetStringSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9562 }
9563 arg1 = reinterpret_cast< wxListBox * >(argp1);
9564 {
9565 arg2 = wxString_in_helper(obj1);
9566 if (arg2 == NULL) SWIG_fail;
9567 temp2 = true;
9568 }
9569 if (obj2) {
9570 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9571 if (!SWIG_IsOK(ecode3)) {
9572 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetStringSelection" "', expected argument " "3"" of type '" "bool""'");
9573 }
9574 arg3 = static_cast< bool >(val3);
9575 }
9576 {
9577 PyThreadState* __tstate = wxPyBeginAllowThreads();
9578 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
9579 wxPyEndAllowThreads(__tstate);
9580 if (PyErr_Occurred()) SWIG_fail;
9581 }
9582 {
9583 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9584 }
9585 {
9586 if (temp2)
9587 delete arg2;
9588 }
9589 return resultobj;
9590 fail:
9591 {
9592 if (temp2)
9593 delete arg2;
9594 }
9595 return NULL;
9596 }
9597
9598
9599 SWIGINTERN PyObject *_wrap_ListBox_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9600 PyObject *resultobj = 0;
9601 wxListBox *arg1 = (wxListBox *) 0 ;
9602 PyObject *result = 0 ;
9603 void *argp1 = 0 ;
9604 int res1 = 0 ;
9605 PyObject *swig_obj[1] ;
9606
9607 if (!args) SWIG_fail;
9608 swig_obj[0] = args;
9609 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9610 if (!SWIG_IsOK(res1)) {
9611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_GetSelections" "', expected argument " "1"" of type '" "wxListBox *""'");
9612 }
9613 arg1 = reinterpret_cast< wxListBox * >(argp1);
9614 {
9615 PyThreadState* __tstate = wxPyBeginAllowThreads();
9616 result = (PyObject *)wxListBox_GetSelections(arg1);
9617 wxPyEndAllowThreads(__tstate);
9618 if (PyErr_Occurred()) SWIG_fail;
9619 }
9620 resultobj = result;
9621 return resultobj;
9622 fail:
9623 return NULL;
9624 }
9625
9626
9627 SWIGINTERN PyObject *_wrap_ListBox_SetFirstItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9628 PyObject *resultobj = 0;
9629 wxListBox *arg1 = (wxListBox *) 0 ;
9630 int arg2 ;
9631 void *argp1 = 0 ;
9632 int res1 = 0 ;
9633 int val2 ;
9634 int ecode2 = 0 ;
9635 PyObject * obj0 = 0 ;
9636 PyObject * obj1 = 0 ;
9637 char * kwnames[] = {
9638 (char *) "self",(char *) "n", NULL
9639 };
9640
9641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) SWIG_fail;
9642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9643 if (!SWIG_IsOK(res1)) {
9644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItem" "', expected argument " "1"" of type '" "wxListBox *""'");
9645 }
9646 arg1 = reinterpret_cast< wxListBox * >(argp1);
9647 ecode2 = SWIG_AsVal_int(obj1, &val2);
9648 if (!SWIG_IsOK(ecode2)) {
9649 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetFirstItem" "', expected argument " "2"" of type '" "int""'");
9650 }
9651 arg2 = static_cast< int >(val2);
9652 {
9653 PyThreadState* __tstate = wxPyBeginAllowThreads();
9654 (arg1)->SetFirstItem(arg2);
9655 wxPyEndAllowThreads(__tstate);
9656 if (PyErr_Occurred()) SWIG_fail;
9657 }
9658 resultobj = SWIG_Py_Void();
9659 return resultobj;
9660 fail:
9661 return NULL;
9662 }
9663
9664
9665 SWIGINTERN PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9666 PyObject *resultobj = 0;
9667 wxListBox *arg1 = (wxListBox *) 0 ;
9668 wxString *arg2 = 0 ;
9669 void *argp1 = 0 ;
9670 int res1 = 0 ;
9671 bool temp2 = false ;
9672 PyObject * obj0 = 0 ;
9673 PyObject * obj1 = 0 ;
9674 char * kwnames[] = {
9675 (char *) "self",(char *) "s", NULL
9676 };
9677
9678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) SWIG_fail;
9679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9680 if (!SWIG_IsOK(res1)) {
9681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItemStr" "', expected argument " "1"" of type '" "wxListBox *""'");
9682 }
9683 arg1 = reinterpret_cast< wxListBox * >(argp1);
9684 {
9685 arg2 = wxString_in_helper(obj1);
9686 if (arg2 == NULL) SWIG_fail;
9687 temp2 = true;
9688 }
9689 {
9690 PyThreadState* __tstate = wxPyBeginAllowThreads();
9691 (arg1)->SetFirstItem((wxString const &)*arg2);
9692 wxPyEndAllowThreads(__tstate);
9693 if (PyErr_Occurred()) SWIG_fail;
9694 }
9695 resultobj = SWIG_Py_Void();
9696 {
9697 if (temp2)
9698 delete arg2;
9699 }
9700 return resultobj;
9701 fail:
9702 {
9703 if (temp2)
9704 delete arg2;
9705 }
9706 return NULL;
9707 }
9708
9709
9710 SWIGINTERN PyObject *_wrap_ListBox_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9711 PyObject *resultobj = 0;
9712 wxListBox *arg1 = (wxListBox *) 0 ;
9713 int arg2 ;
9714 void *argp1 = 0 ;
9715 int res1 = 0 ;
9716 int val2 ;
9717 int ecode2 = 0 ;
9718 PyObject * obj0 = 0 ;
9719 PyObject * obj1 = 0 ;
9720 char * kwnames[] = {
9721 (char *) "self",(char *) "n", NULL
9722 };
9723
9724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9725 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9726 if (!SWIG_IsOK(res1)) {
9727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_EnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9728 }
9729 arg1 = reinterpret_cast< wxListBox * >(argp1);
9730 ecode2 = SWIG_AsVal_int(obj1, &val2);
9731 if (!SWIG_IsOK(ecode2)) {
9732 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_EnsureVisible" "', expected argument " "2"" of type '" "int""'");
9733 }
9734 arg2 = static_cast< int >(val2);
9735 {
9736 PyThreadState* __tstate = wxPyBeginAllowThreads();
9737 (arg1)->EnsureVisible(arg2);
9738 wxPyEndAllowThreads(__tstate);
9739 if (PyErr_Occurred()) SWIG_fail;
9740 }
9741 resultobj = SWIG_Py_Void();
9742 return resultobj;
9743 fail:
9744 return NULL;
9745 }
9746
9747
9748 SWIGINTERN PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9749 PyObject *resultobj = 0;
9750 wxListBox *arg1 = (wxListBox *) 0 ;
9751 wxString *arg2 = 0 ;
9752 void *argp1 = 0 ;
9753 int res1 = 0 ;
9754 bool temp2 = false ;
9755 PyObject * obj0 = 0 ;
9756 PyObject * obj1 = 0 ;
9757 char * kwnames[] = {
9758 (char *) "self",(char *) "s", NULL
9759 };
9760
9761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9763 if (!SWIG_IsOK(res1)) {
9764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_AppendAndEnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9765 }
9766 arg1 = reinterpret_cast< wxListBox * >(argp1);
9767 {
9768 arg2 = wxString_in_helper(obj1);
9769 if (arg2 == NULL) SWIG_fail;
9770 temp2 = true;
9771 }
9772 {
9773 PyThreadState* __tstate = wxPyBeginAllowThreads();
9774 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
9775 wxPyEndAllowThreads(__tstate);
9776 if (PyErr_Occurred()) SWIG_fail;
9777 }
9778 resultobj = SWIG_Py_Void();
9779 {
9780 if (temp2)
9781 delete arg2;
9782 }
9783 return resultobj;
9784 fail:
9785 {
9786 if (temp2)
9787 delete arg2;
9788 }
9789 return NULL;
9790 }
9791
9792
9793 SWIGINTERN PyObject *_wrap_ListBox_IsSorted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9794 PyObject *resultobj = 0;
9795 wxListBox *arg1 = (wxListBox *) 0 ;
9796 bool result;
9797 void *argp1 = 0 ;
9798 int res1 = 0 ;
9799 PyObject *swig_obj[1] ;
9800
9801 if (!args) SWIG_fail;
9802 swig_obj[0] = args;
9803 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9804 if (!SWIG_IsOK(res1)) {
9805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSorted" "', expected argument " "1"" of type '" "wxListBox const *""'");
9806 }
9807 arg1 = reinterpret_cast< wxListBox * >(argp1);
9808 {
9809 PyThreadState* __tstate = wxPyBeginAllowThreads();
9810 result = (bool)((wxListBox const *)arg1)->IsSorted();
9811 wxPyEndAllowThreads(__tstate);
9812 if (PyErr_Occurred()) SWIG_fail;
9813 }
9814 {
9815 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9816 }
9817 return resultobj;
9818 fail:
9819 return NULL;
9820 }
9821
9822
9823 SWIGINTERN PyObject *_wrap_ListBox_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9824 PyObject *resultobj = 0;
9825 wxListBox *arg1 = (wxListBox *) 0 ;
9826 wxPoint *arg2 = 0 ;
9827 int result;
9828 void *argp1 = 0 ;
9829 int res1 = 0 ;
9830 wxPoint temp2 ;
9831 PyObject * obj0 = 0 ;
9832 PyObject * obj1 = 0 ;
9833 char * kwnames[] = {
9834 (char *) "self",(char *) "pt", NULL
9835 };
9836
9837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
9838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9839 if (!SWIG_IsOK(res1)) {
9840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_HitTest" "', expected argument " "1"" of type '" "wxListBox const *""'");
9841 }
9842 arg1 = reinterpret_cast< wxListBox * >(argp1);
9843 {
9844 arg2 = &temp2;
9845 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9846 }
9847 {
9848 PyThreadState* __tstate = wxPyBeginAllowThreads();
9849 result = (int)((wxListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
9850 wxPyEndAllowThreads(__tstate);
9851 if (PyErr_Occurred()) SWIG_fail;
9852 }
9853 resultobj = SWIG_From_int(static_cast< int >(result));
9854 return resultobj;
9855 fail:
9856 return NULL;
9857 }
9858
9859
9860 SWIGINTERN PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9861 PyObject *resultobj = 0;
9862 wxListBox *arg1 = (wxListBox *) 0 ;
9863 int arg2 ;
9864 wxColour *arg3 = 0 ;
9865 void *argp1 = 0 ;
9866 int res1 = 0 ;
9867 int val2 ;
9868 int ecode2 = 0 ;
9869 wxColour temp3 ;
9870 PyObject * obj0 = 0 ;
9871 PyObject * obj1 = 0 ;
9872 PyObject * obj2 = 0 ;
9873 char * kwnames[] = {
9874 (char *) "self",(char *) "item",(char *) "c", NULL
9875 };
9876
9877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9879 if (!SWIG_IsOK(res1)) {
9880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9881 }
9882 arg1 = reinterpret_cast< wxListBox * >(argp1);
9883 ecode2 = SWIG_AsVal_int(obj1, &val2);
9884 if (!SWIG_IsOK(ecode2)) {
9885 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "2"" of type '" "int""'");
9886 }
9887 arg2 = static_cast< int >(val2);
9888 {
9889 arg3 = &temp3;
9890 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9891 }
9892 {
9893 PyThreadState* __tstate = wxPyBeginAllowThreads();
9894 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
9895 wxPyEndAllowThreads(__tstate);
9896 if (PyErr_Occurred()) SWIG_fail;
9897 }
9898 resultobj = SWIG_Py_Void();
9899 return resultobj;
9900 fail:
9901 return NULL;
9902 }
9903
9904
9905 SWIGINTERN PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9906 PyObject *resultobj = 0;
9907 wxListBox *arg1 = (wxListBox *) 0 ;
9908 int arg2 ;
9909 wxColour *arg3 = 0 ;
9910 void *argp1 = 0 ;
9911 int res1 = 0 ;
9912 int val2 ;
9913 int ecode2 = 0 ;
9914 wxColour temp3 ;
9915 PyObject * obj0 = 0 ;
9916 PyObject * obj1 = 0 ;
9917 PyObject * obj2 = 0 ;
9918 char * kwnames[] = {
9919 (char *) "self",(char *) "item",(char *) "c", NULL
9920 };
9921
9922 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9923 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9924 if (!SWIG_IsOK(res1)) {
9925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9926 }
9927 arg1 = reinterpret_cast< wxListBox * >(argp1);
9928 ecode2 = SWIG_AsVal_int(obj1, &val2);
9929 if (!SWIG_IsOK(ecode2)) {
9930 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "2"" of type '" "int""'");
9931 }
9932 arg2 = static_cast< int >(val2);
9933 {
9934 arg3 = &temp3;
9935 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9936 }
9937 {
9938 PyThreadState* __tstate = wxPyBeginAllowThreads();
9939 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
9940 wxPyEndAllowThreads(__tstate);
9941 if (PyErr_Occurred()) SWIG_fail;
9942 }
9943 resultobj = SWIG_Py_Void();
9944 return resultobj;
9945 fail:
9946 return NULL;
9947 }
9948
9949
9950 SWIGINTERN PyObject *_wrap_ListBox_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9951 PyObject *resultobj = 0;
9952 wxListBox *arg1 = (wxListBox *) 0 ;
9953 int arg2 ;
9954 wxFont *arg3 = 0 ;
9955 void *argp1 = 0 ;
9956 int res1 = 0 ;
9957 int val2 ;
9958 int ecode2 = 0 ;
9959 void *argp3 = 0 ;
9960 int res3 = 0 ;
9961 PyObject * obj0 = 0 ;
9962 PyObject * obj1 = 0 ;
9963 PyObject * obj2 = 0 ;
9964 char * kwnames[] = {
9965 (char *) "self",(char *) "item",(char *) "f", NULL
9966 };
9967
9968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9970 if (!SWIG_IsOK(res1)) {
9971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemFont" "', expected argument " "1"" of type '" "wxListBox *""'");
9972 }
9973 arg1 = reinterpret_cast< wxListBox * >(argp1);
9974 ecode2 = SWIG_AsVal_int(obj1, &val2);
9975 if (!SWIG_IsOK(ecode2)) {
9976 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemFont" "', expected argument " "2"" of type '" "int""'");
9977 }
9978 arg2 = static_cast< int >(val2);
9979 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
9980 if (!SWIG_IsOK(res3)) {
9981 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9982 }
9983 if (!argp3) {
9984 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9985 }
9986 arg3 = reinterpret_cast< wxFont * >(argp3);
9987 {
9988 PyThreadState* __tstate = wxPyBeginAllowThreads();
9989 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
9990 wxPyEndAllowThreads(__tstate);
9991 if (PyErr_Occurred()) SWIG_fail;
9992 }
9993 resultobj = SWIG_Py_Void();
9994 return resultobj;
9995 fail:
9996 return NULL;
9997 }
9998
9999
10000 SWIGINTERN PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10001 PyObject *resultobj = 0;
10002 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
10003 SwigValueWrapper<wxVisualAttributes > result;
10004 int val1 ;
10005 int ecode1 = 0 ;
10006 PyObject * obj0 = 0 ;
10007 char * kwnames[] = {
10008 (char *) "variant", NULL
10009 };
10010
10011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
10012 if (obj0) {
10013 ecode1 = SWIG_AsVal_int(obj0, &val1);
10014 if (!SWIG_IsOK(ecode1)) {
10015 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
10016 }
10017 arg1 = static_cast< wxWindowVariant >(val1);
10018 }
10019 {
10020 if (!wxPyCheckForApp()) SWIG_fail;
10021 PyThreadState* __tstate = wxPyBeginAllowThreads();
10022 result = wxListBox::GetClassDefaultAttributes(arg1);
10023 wxPyEndAllowThreads(__tstate);
10024 if (PyErr_Occurred()) SWIG_fail;
10025 }
10026 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
10027 return resultobj;
10028 fail:
10029 return NULL;
10030 }
10031
10032
10033 SWIGINTERN PyObject *ListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10034 PyObject *obj;
10035 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10036 SWIG_TypeNewClientData(SWIGTYPE_p_wxListBox, SWIG_NewClientData(obj));
10037 return SWIG_Py_Void();
10038 }
10039
10040 SWIGINTERN PyObject *ListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10041 return SWIG_Python_InitShadowInstance(args);
10042 }
10043
10044 SWIGINTERN PyObject *_wrap_new_CheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10045 PyObject *resultobj = 0;
10046 wxWindow *arg1 = (wxWindow *) 0 ;
10047 int arg2 = (int) -1 ;
10048 wxPoint const &arg3_defvalue = wxDefaultPosition ;
10049 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
10050 wxSize const &arg4_defvalue = wxDefaultSize ;
10051 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
10052 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
10053 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
10054 long arg6 = (long) 0 ;
10055 wxValidator const &arg7_defvalue = wxDefaultValidator ;
10056 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
10057 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
10058 wxString *arg8 = (wxString *) &arg8_defvalue ;
10059 wxCheckListBox *result = 0 ;
10060 void *argp1 = 0 ;
10061 int res1 = 0 ;
10062 int val2 ;
10063 int ecode2 = 0 ;
10064 wxPoint temp3 ;
10065 wxSize temp4 ;
10066 bool temp5 = false ;
10067 long val6 ;
10068 int ecode6 = 0 ;
10069 void *argp7 = 0 ;
10070 int res7 = 0 ;
10071 bool temp8 = false ;
10072 PyObject * obj0 = 0 ;
10073 PyObject * obj1 = 0 ;
10074 PyObject * obj2 = 0 ;
10075 PyObject * obj3 = 0 ;
10076 PyObject * obj4 = 0 ;
10077 PyObject * obj5 = 0 ;
10078 PyObject * obj6 = 0 ;
10079 PyObject * obj7 = 0 ;
10080 char * kwnames[] = {
10081 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10082 };
10083
10084 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
10085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
10086 if (!SWIG_IsOK(res1)) {
10087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
10088 }
10089 arg1 = reinterpret_cast< wxWindow * >(argp1);
10090 if (obj1) {
10091 ecode2 = SWIG_AsVal_int(obj1, &val2);
10092 if (!SWIG_IsOK(ecode2)) {
10093 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckListBox" "', expected argument " "2"" of type '" "int""'");
10094 }
10095 arg2 = static_cast< int >(val2);
10096 }
10097 if (obj2) {
10098 {
10099 arg3 = &temp3;
10100 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10101 }
10102 }
10103 if (obj3) {
10104 {
10105 arg4 = &temp4;
10106 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
10107 }
10108 }
10109 if (obj4) {
10110 {
10111 if (! PySequence_Check(obj4)) {
10112 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10113 SWIG_fail;
10114 }
10115 arg5 = new wxArrayString;
10116 temp5 = true;
10117 int i, len=PySequence_Length(obj4);
10118 for (i=0; i<len; i++) {
10119 PyObject* item = PySequence_GetItem(obj4, i);
10120 wxString* s = wxString_in_helper(item);
10121 if (PyErr_Occurred()) SWIG_fail;
10122 arg5->Add(*s);
10123 delete s;
10124 Py_DECREF(item);
10125 }
10126 }
10127 }
10128 if (obj5) {
10129 ecode6 = SWIG_AsVal_long(obj5, &val6);
10130 if (!SWIG_IsOK(ecode6)) {
10131 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckListBox" "', expected argument " "6"" of type '" "long""'");
10132 }
10133 arg6 = static_cast< long >(val6);
10134 }
10135 if (obj6) {
10136 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
10137 if (!SWIG_IsOK(res7)) {
10138 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
10139 }
10140 if (!argp7) {
10141 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
10142 }
10143 arg7 = reinterpret_cast< wxValidator * >(argp7);
10144 }
10145 if (obj7) {
10146 {
10147 arg8 = wxString_in_helper(obj7);
10148 if (arg8 == NULL) SWIG_fail;
10149 temp8 = true;
10150 }
10151 }
10152 {
10153 if (!wxPyCheckForApp()) SWIG_fail;
10154 PyThreadState* __tstate = wxPyBeginAllowThreads();
10155 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10156 wxPyEndAllowThreads(__tstate);
10157 if (PyErr_Occurred()) SWIG_fail;
10158 }
10159 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_NEW | 0 );
10160 {
10161 if (temp5) delete arg5;
10162 }
10163 {
10164 if (temp8)
10165 delete arg8;
10166 }
10167 return resultobj;
10168 fail:
10169 {
10170 if (temp5) delete arg5;
10171 }
10172 {
10173 if (temp8)
10174 delete arg8;
10175 }
10176 return NULL;
10177 }
10178
10179
10180 SWIGINTERN PyObject *_wrap_new_PreCheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10181 PyObject *resultobj = 0;
10182 wxCheckListBox *result = 0 ;
10183
10184 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckListBox",0,0,0)) SWIG_fail;
10185 {
10186 if (!wxPyCheckForApp()) SWIG_fail;
10187 PyThreadState* __tstate = wxPyBeginAllowThreads();
10188 result = (wxCheckListBox *)new wxCheckListBox();
10189 wxPyEndAllowThreads(__tstate);
10190 if (PyErr_Occurred()) SWIG_fail;
10191 }
10192 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_OWN | 0 );
10193 return resultobj;
10194 fail:
10195 return NULL;
10196 }
10197
10198
10199 SWIGINTERN PyObject *_wrap_CheckListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10200 PyObject *resultobj = 0;
10201 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10202 wxWindow *arg2 = (wxWindow *) 0 ;
10203 int arg3 = (int) -1 ;
10204 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10205 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10206 wxSize const &arg5_defvalue = wxDefaultSize ;
10207 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10208 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
10209 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
10210 long arg7 = (long) 0 ;
10211 wxValidator const &arg8_defvalue = wxDefaultValidator ;
10212 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
10213 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
10214 wxString *arg9 = (wxString *) &arg9_defvalue ;
10215 bool result;
10216 void *argp1 = 0 ;
10217 int res1 = 0 ;
10218 void *argp2 = 0 ;
10219 int res2 = 0 ;
10220 int val3 ;
10221 int ecode3 = 0 ;
10222 wxPoint temp4 ;
10223 wxSize temp5 ;
10224 bool temp6 = false ;
10225 long val7 ;
10226 int ecode7 = 0 ;
10227 void *argp8 = 0 ;
10228 int res8 = 0 ;
10229 bool temp9 = false ;
10230 PyObject * obj0 = 0 ;
10231 PyObject * obj1 = 0 ;
10232 PyObject * obj2 = 0 ;
10233 PyObject * obj3 = 0 ;
10234 PyObject * obj4 = 0 ;
10235 PyObject * obj5 = 0 ;
10236 PyObject * obj6 = 0 ;
10237 PyObject * obj7 = 0 ;
10238 PyObject * obj8 = 0 ;
10239 char * kwnames[] = {
10240 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10241 };
10242
10243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
10244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10245 if (!SWIG_IsOK(res1)) {
10246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Create" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10247 }
10248 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10249 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
10250 if (!SWIG_IsOK(res2)) {
10251 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
10252 }
10253 arg2 = reinterpret_cast< wxWindow * >(argp2);
10254 if (obj2) {
10255 ecode3 = SWIG_AsVal_int(obj2, &val3);
10256 if (!SWIG_IsOK(ecode3)) {
10257 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Create" "', expected argument " "3"" of type '" "int""'");
10258 }
10259 arg3 = static_cast< int >(val3);
10260 }
10261 if (obj3) {
10262 {
10263 arg4 = &temp4;
10264 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10265 }
10266 }
10267 if (obj4) {
10268 {
10269 arg5 = &temp5;
10270 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10271 }
10272 }
10273 if (obj5) {
10274 {
10275 if (! PySequence_Check(obj5)) {
10276 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10277 SWIG_fail;
10278 }
10279 arg6 = new wxArrayString;
10280 temp6 = true;
10281 int i, len=PySequence_Length(obj5);
10282 for (i=0; i<len; i++) {
10283 PyObject* item = PySequence_GetItem(obj5, i);
10284 wxString* s = wxString_in_helper(item);
10285 if (PyErr_Occurred()) SWIG_fail;
10286 arg6->Add(*s);
10287 delete s;
10288 Py_DECREF(item);
10289 }
10290 }
10291 }
10292 if (obj6) {
10293 ecode7 = SWIG_AsVal_long(obj6, &val7);
10294 if (!SWIG_IsOK(ecode7)) {
10295 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckListBox_Create" "', expected argument " "7"" of type '" "long""'");
10296 }
10297 arg7 = static_cast< long >(val7);
10298 }
10299 if (obj7) {
10300 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
10301 if (!SWIG_IsOK(res8)) {
10302 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10303 }
10304 if (!argp8) {
10305 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10306 }
10307 arg8 = reinterpret_cast< wxValidator * >(argp8);
10308 }
10309 if (obj8) {
10310 {
10311 arg9 = wxString_in_helper(obj8);
10312 if (arg9 == NULL) SWIG_fail;
10313 temp9 = true;
10314 }
10315 }
10316 {
10317 PyThreadState* __tstate = wxPyBeginAllowThreads();
10318 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
10319 wxPyEndAllowThreads(__tstate);
10320 if (PyErr_Occurred()) SWIG_fail;
10321 }
10322 {
10323 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10324 }
10325 {
10326 if (temp6) delete arg6;
10327 }
10328 {
10329 if (temp9)
10330 delete arg9;
10331 }
10332 return resultobj;
10333 fail:
10334 {
10335 if (temp6) delete arg6;
10336 }
10337 {
10338 if (temp9)
10339 delete arg9;
10340 }
10341 return NULL;
10342 }
10343
10344
10345 SWIGINTERN PyObject *_wrap_CheckListBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10346 PyObject *resultobj = 0;
10347 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10348 unsigned int arg2 ;
10349 bool result;
10350 void *argp1 = 0 ;
10351 int res1 = 0 ;
10352 unsigned int val2 ;
10353 int ecode2 = 0 ;
10354 PyObject * obj0 = 0 ;
10355 PyObject * obj1 = 0 ;
10356 char * kwnames[] = {
10357 (char *) "self",(char *) "index", NULL
10358 };
10359
10360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) SWIG_fail;
10361 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10362 if (!SWIG_IsOK(res1)) {
10363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10364 }
10365 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10366 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
10367 if (!SWIG_IsOK(ecode2)) {
10368 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_IsChecked" "', expected argument " "2"" of type '" "unsigned int""'");
10369 }
10370 arg2 = static_cast< unsigned int >(val2);
10371 {
10372 PyThreadState* __tstate = wxPyBeginAllowThreads();
10373 result = (bool)(arg1)->IsChecked(arg2);
10374 wxPyEndAllowThreads(__tstate);
10375 if (PyErr_Occurred()) SWIG_fail;
10376 }
10377 {
10378 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10379 }
10380 return resultobj;
10381 fail:
10382 return NULL;
10383 }
10384
10385
10386 SWIGINTERN PyObject *_wrap_CheckListBox_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10387 PyObject *resultobj = 0;
10388 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10389 unsigned int arg2 ;
10390 int arg3 = (int) true ;
10391 void *argp1 = 0 ;
10392 int res1 = 0 ;
10393 unsigned int val2 ;
10394 int ecode2 = 0 ;
10395 int val3 ;
10396 int ecode3 = 0 ;
10397 PyObject * obj0 = 0 ;
10398 PyObject * obj1 = 0 ;
10399 PyObject * obj2 = 0 ;
10400 char * kwnames[] = {
10401 (char *) "self",(char *) "index",(char *) "check", NULL
10402 };
10403
10404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10406 if (!SWIG_IsOK(res1)) {
10407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Check" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10408 }
10409 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10410 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
10411 if (!SWIG_IsOK(ecode2)) {
10412 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_Check" "', expected argument " "2"" of type '" "unsigned int""'");
10413 }
10414 arg2 = static_cast< unsigned int >(val2);
10415 if (obj2) {
10416 ecode3 = SWIG_AsVal_int(obj2, &val3);
10417 if (!SWIG_IsOK(ecode3)) {
10418 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Check" "', expected argument " "3"" of type '" "int""'");
10419 }
10420 arg3 = static_cast< int >(val3);
10421 }
10422 {
10423 PyThreadState* __tstate = wxPyBeginAllowThreads();
10424 (arg1)->Check(arg2,arg3);
10425 wxPyEndAllowThreads(__tstate);
10426 if (PyErr_Occurred()) SWIG_fail;
10427 }
10428 resultobj = SWIG_Py_Void();
10429 return resultobj;
10430 fail:
10431 return NULL;
10432 }
10433
10434
10435 SWIGINTERN PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10436 PyObject *resultobj = 0;
10437 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10438 int result;
10439 void *argp1 = 0 ;
10440 int res1 = 0 ;
10441 PyObject *swig_obj[1] ;
10442
10443 if (!args) SWIG_fail;
10444 swig_obj[0] = args;
10445 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10446 if (!SWIG_IsOK(res1)) {
10447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_GetItemHeight" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10448 }
10449 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10450 {
10451 PyThreadState* __tstate = wxPyBeginAllowThreads();
10452 result = (int)(arg1)->GetItemHeight();
10453 wxPyEndAllowThreads(__tstate);
10454 if (PyErr_Occurred()) SWIG_fail;
10455 }
10456 resultobj = SWIG_From_int(static_cast< int >(result));
10457 return resultobj;
10458 fail:
10459 return NULL;
10460 }
10461
10462
10463 SWIGINTERN PyObject *CheckListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10464 PyObject *obj;
10465 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10466 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckListBox, SWIG_NewClientData(obj));
10467 return SWIG_Py_Void();
10468 }
10469
10470 SWIGINTERN PyObject *CheckListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10471 return SWIG_Python_InitShadowInstance(args);
10472 }
10473
10474 SWIGINTERN int TextCtrlNameStr_set(PyObject *) {
10475 SWIG_Error(SWIG_AttributeError,"Variable TextCtrlNameStr is read-only.");
10476 return 1;
10477 }
10478
10479
10480 SWIGINTERN PyObject *TextCtrlNameStr_get(void) {
10481 PyObject *pyobj = 0;
10482
10483 {
10484 #if wxUSE_UNICODE
10485 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10486 #else
10487 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10488 #endif
10489 }
10490 return pyobj;
10491 }
10492
10493
10494 SWIGINTERN PyObject *_wrap_new_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10495 PyObject *resultobj = 0;
10496 wxColour const &arg1_defvalue = wxNullColour ;
10497 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
10498 wxColour const &arg2_defvalue = wxNullColour ;
10499 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
10500 wxFont const &arg3_defvalue = wxNullFont ;
10501 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
10502 wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ;
10503 wxTextAttr *result = 0 ;
10504 wxColour temp1 ;
10505 wxColour temp2 ;
10506 void *argp3 = 0 ;
10507 int res3 = 0 ;
10508 int val4 ;
10509 int ecode4 = 0 ;
10510 PyObject * obj0 = 0 ;
10511 PyObject * obj1 = 0 ;
10512 PyObject * obj2 = 0 ;
10513 PyObject * obj3 = 0 ;
10514 char * kwnames[] = {
10515 (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL
10516 };
10517
10518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10519 if (obj0) {
10520 {
10521 arg1 = &temp1;
10522 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
10523 }
10524 }
10525 if (obj1) {
10526 {
10527 arg2 = &temp2;
10528 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10529 }
10530 }
10531 if (obj2) {
10532 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
10533 if (!SWIG_IsOK(res3)) {
10534 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10535 }
10536 if (!argp3) {
10537 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10538 }
10539 arg3 = reinterpret_cast< wxFont * >(argp3);
10540 }
10541 if (obj3) {
10542 ecode4 = SWIG_AsVal_int(obj3, &val4);
10543 if (!SWIG_IsOK(ecode4)) {
10544 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextAttr" "', expected argument " "4"" of type '" "wxTextAttrAlignment""'");
10545 }
10546 arg4 = static_cast< wxTextAttrAlignment >(val4);
10547 }
10548 {
10549 PyThreadState* __tstate = wxPyBeginAllowThreads();
10550 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,arg4);
10551 wxPyEndAllowThreads(__tstate);
10552 if (PyErr_Occurred()) SWIG_fail;
10553 }
10554 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_NEW | 0 );
10555 return resultobj;
10556 fail:
10557 return NULL;
10558 }
10559
10560
10561 SWIGINTERN PyObject *_wrap_delete_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10562 PyObject *resultobj = 0;
10563 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10564 void *argp1 = 0 ;
10565 int res1 = 0 ;
10566 PyObject *swig_obj[1] ;
10567
10568 if (!args) SWIG_fail;
10569 swig_obj[0] = args;
10570 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, SWIG_POINTER_DISOWN | 0 );
10571 if (!SWIG_IsOK(res1)) {
10572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TextAttr" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10573 }
10574 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10575 {
10576 PyThreadState* __tstate = wxPyBeginAllowThreads();
10577 delete arg1;
10578
10579 wxPyEndAllowThreads(__tstate);
10580 if (PyErr_Occurred()) SWIG_fail;
10581 }
10582 resultobj = SWIG_Py_Void();
10583 return resultobj;
10584 fail:
10585 return NULL;
10586 }
10587
10588
10589 SWIGINTERN PyObject *_wrap_TextAttr_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10590 PyObject *resultobj = 0;
10591 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10592 void *argp1 = 0 ;
10593 int res1 = 0 ;
10594 PyObject *swig_obj[1] ;
10595
10596 if (!args) SWIG_fail;
10597 swig_obj[0] = args;
10598 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10599 if (!SWIG_IsOK(res1)) {
10600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Init" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10601 }
10602 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10603 {
10604 PyThreadState* __tstate = wxPyBeginAllowThreads();
10605 (arg1)->Init();
10606 wxPyEndAllowThreads(__tstate);
10607 if (PyErr_Occurred()) SWIG_fail;
10608 }
10609 resultobj = SWIG_Py_Void();
10610 return resultobj;
10611 fail:
10612 return NULL;
10613 }
10614
10615
10616 SWIGINTERN PyObject *_wrap_TextAttr_Merge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10617 PyObject *resultobj = 0;
10618 wxTextAttr *arg1 = 0 ;
10619 wxTextAttr *arg2 = 0 ;
10620 wxTextAttr result;
10621 void *argp1 = 0 ;
10622 int res1 = 0 ;
10623 void *argp2 = 0 ;
10624 int res2 = 0 ;
10625 PyObject * obj0 = 0 ;
10626 PyObject * obj1 = 0 ;
10627 char * kwnames[] = {
10628 (char *) "base",(char *) "overlay", NULL
10629 };
10630
10631 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_Merge",kwnames,&obj0,&obj1)) SWIG_fail;
10632 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
10633 if (!SWIG_IsOK(res1)) {
10634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10635 }
10636 if (!argp1) {
10637 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10638 }
10639 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10640 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
10641 if (!SWIG_IsOK(res2)) {
10642 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10643 }
10644 if (!argp2) {
10645 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10646 }
10647 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
10648 {
10649 PyThreadState* __tstate = wxPyBeginAllowThreads();
10650 result = wxTextAttr::Merge((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2);
10651 wxPyEndAllowThreads(__tstate);
10652 if (PyErr_Occurred()) SWIG_fail;
10653 }
10654 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
10655 return resultobj;
10656 fail:
10657 return NULL;
10658 }
10659
10660
10661 SWIGINTERN PyObject *_wrap_TextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10662 PyObject *resultobj = 0;
10663 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10664 wxColour *arg2 = 0 ;
10665 void *argp1 = 0 ;
10666 int res1 = 0 ;
10667 wxColour temp2 ;
10668 PyObject * obj0 = 0 ;
10669 PyObject * obj1 = 0 ;
10670 char * kwnames[] = {
10671 (char *) "self",(char *) "colText", NULL
10672 };
10673
10674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
10675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10676 if (!SWIG_IsOK(res1)) {
10677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10678 }
10679 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10680 {
10681 arg2 = &temp2;
10682 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10683 }
10684 {
10685 PyThreadState* __tstate = wxPyBeginAllowThreads();
10686 (arg1)->SetTextColour((wxColour const &)*arg2);
10687 wxPyEndAllowThreads(__tstate);
10688 if (PyErr_Occurred()) SWIG_fail;
10689 }
10690 resultobj = SWIG_Py_Void();
10691 return resultobj;
10692 fail:
10693 return NULL;
10694 }
10695
10696
10697 SWIGINTERN PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10698 PyObject *resultobj = 0;
10699 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10700 wxColour *arg2 = 0 ;
10701 void *argp1 = 0 ;
10702 int res1 = 0 ;
10703 wxColour temp2 ;
10704 PyObject * obj0 = 0 ;
10705 PyObject * obj1 = 0 ;
10706 char * kwnames[] = {
10707 (char *) "self",(char *) "colBack", NULL
10708 };
10709
10710 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
10711 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10712 if (!SWIG_IsOK(res1)) {
10713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10714 }
10715 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10716 {
10717 arg2 = &temp2;
10718 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10719 }
10720 {
10721 PyThreadState* __tstate = wxPyBeginAllowThreads();
10722 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
10723 wxPyEndAllowThreads(__tstate);
10724 if (PyErr_Occurred()) SWIG_fail;
10725 }
10726 resultobj = SWIG_Py_Void();
10727 return resultobj;
10728 fail:
10729 return NULL;
10730 }
10731
10732
10733 SWIGINTERN PyObject *_wrap_TextAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10734 PyObject *resultobj = 0;
10735 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10736 wxFont *arg2 = 0 ;
10737 long arg3 = (long) wxTEXT_ATTR_FONT ;
10738 void *argp1 = 0 ;
10739 int res1 = 0 ;
10740 void *argp2 = 0 ;
10741 int res2 = 0 ;
10742 long val3 ;
10743 int ecode3 = 0 ;
10744 PyObject * obj0 = 0 ;
10745 PyObject * obj1 = 0 ;
10746 PyObject * obj2 = 0 ;
10747 char * kwnames[] = {
10748 (char *) "self",(char *) "font",(char *) "flags", NULL
10749 };
10750
10751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10753 if (!SWIG_IsOK(res1)) {
10754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFont" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10755 }
10756 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10757 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
10758 if (!SWIG_IsOK(res2)) {
10759 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10760 }
10761 if (!argp2) {
10762 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10763 }
10764 arg2 = reinterpret_cast< wxFont * >(argp2);
10765 if (obj2) {
10766 ecode3 = SWIG_AsVal_long(obj2, &val3);
10767 if (!SWIG_IsOK(ecode3)) {
10768 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetFont" "', expected argument " "3"" of type '" "long""'");
10769 }
10770 arg3 = static_cast< long >(val3);
10771 }
10772 {
10773 PyThreadState* __tstate = wxPyBeginAllowThreads();
10774 (arg1)->SetFont((wxFont const &)*arg2,arg3);
10775 wxPyEndAllowThreads(__tstate);
10776 if (PyErr_Occurred()) SWIG_fail;
10777 }
10778 resultobj = SWIG_Py_Void();
10779 return resultobj;
10780 fail:
10781 return NULL;
10782 }
10783
10784
10785 SWIGINTERN PyObject *_wrap_TextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10786 PyObject *resultobj = 0;
10787 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10788 wxTextAttrAlignment arg2 ;
10789 void *argp1 = 0 ;
10790 int res1 = 0 ;
10791 int val2 ;
10792 int ecode2 = 0 ;
10793 PyObject * obj0 = 0 ;
10794 PyObject * obj1 = 0 ;
10795 char * kwnames[] = {
10796 (char *) "self",(char *) "alignment", NULL
10797 };
10798
10799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail;
10800 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10801 if (!SWIG_IsOK(res1)) {
10802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10803 }
10804 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10805 ecode2 = SWIG_AsVal_int(obj1, &val2);
10806 if (!SWIG_IsOK(ecode2)) {
10807 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
10808 }
10809 arg2 = static_cast< wxTextAttrAlignment >(val2);
10810 {
10811 PyThreadState* __tstate = wxPyBeginAllowThreads();
10812 (arg1)->SetAlignment(arg2);
10813 wxPyEndAllowThreads(__tstate);
10814 if (PyErr_Occurred()) SWIG_fail;
10815 }
10816 resultobj = SWIG_Py_Void();
10817 return resultobj;
10818 fail:
10819 return NULL;
10820 }
10821
10822
10823 SWIGINTERN PyObject *_wrap_TextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10824 PyObject *resultobj = 0;
10825 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10826 wxArrayInt *arg2 = 0 ;
10827 void *argp1 = 0 ;
10828 int res1 = 0 ;
10829 bool temp2 = false ;
10830 PyObject * obj0 = 0 ;
10831 PyObject * obj1 = 0 ;
10832 char * kwnames[] = {
10833 (char *) "self",(char *) "tabs", NULL
10834 };
10835
10836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail;
10837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10838 if (!SWIG_IsOK(res1)) {
10839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTabs" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10840 }
10841 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10842 {
10843 if (! PySequence_Check(obj1)) {
10844 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10845 SWIG_fail;
10846 }
10847 arg2 = new wxArrayInt;
10848 temp2 = true;
10849 int i, len=PySequence_Length(obj1);
10850 for (i=0; i<len; i++) {
10851 PyObject* item = PySequence_GetItem(obj1, i);
10852 PyObject* number = PyNumber_Int(item);
10853 if (!number) {
10854 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10855 SWIG_fail;
10856 }
10857 arg2->Add(PyInt_AS_LONG(number));
10858 Py_DECREF(item);
10859 Py_DECREF(number);
10860 }
10861 }
10862 {
10863 PyThreadState* __tstate = wxPyBeginAllowThreads();
10864 (arg1)->SetTabs((wxArrayInt const &)*arg2);
10865 wxPyEndAllowThreads(__tstate);
10866 if (PyErr_Occurred()) SWIG_fail;
10867 }
10868 resultobj = SWIG_Py_Void();
10869 {
10870 if (temp2) delete arg2;
10871 }
10872 return resultobj;
10873 fail:
10874 {
10875 if (temp2) delete arg2;
10876 }
10877 return NULL;
10878 }
10879
10880
10881 SWIGINTERN PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10882 PyObject *resultobj = 0;
10883 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10884 int arg2 ;
10885 int arg3 = (int) 0 ;
10886 void *argp1 = 0 ;
10887 int res1 = 0 ;
10888 int val2 ;
10889 int ecode2 = 0 ;
10890 int val3 ;
10891 int ecode3 = 0 ;
10892 PyObject * obj0 = 0 ;
10893 PyObject * obj1 = 0 ;
10894 PyObject * obj2 = 0 ;
10895 char * kwnames[] = {
10896 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
10897 };
10898
10899 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10900 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10901 if (!SWIG_IsOK(res1)) {
10902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10903 }
10904 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10905 ecode2 = SWIG_AsVal_int(obj1, &val2);
10906 if (!SWIG_IsOK(ecode2)) {
10907 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'");
10908 }
10909 arg2 = static_cast< int >(val2);
10910 if (obj2) {
10911 ecode3 = SWIG_AsVal_int(obj2, &val3);
10912 if (!SWIG_IsOK(ecode3)) {
10913 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'");
10914 }
10915 arg3 = static_cast< int >(val3);
10916 }
10917 {
10918 PyThreadState* __tstate = wxPyBeginAllowThreads();
10919 (arg1)->SetLeftIndent(arg2,arg3);
10920 wxPyEndAllowThreads(__tstate);
10921 if (PyErr_Occurred()) SWIG_fail;
10922 }
10923 resultobj = SWIG_Py_Void();
10924 return resultobj;
10925 fail:
10926 return NULL;
10927 }
10928
10929
10930 SWIGINTERN PyObject *_wrap_TextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10931 PyObject *resultobj = 0;
10932 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10933 int arg2 ;
10934 void *argp1 = 0 ;
10935 int res1 = 0 ;
10936 int val2 ;
10937 int ecode2 = 0 ;
10938 PyObject * obj0 = 0 ;
10939 PyObject * obj1 = 0 ;
10940 char * kwnames[] = {
10941 (char *) "self",(char *) "indent", NULL
10942 };
10943
10944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail;
10945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10946 if (!SWIG_IsOK(res1)) {
10947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10948 }
10949 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10950 ecode2 = SWIG_AsVal_int(obj1, &val2);
10951 if (!SWIG_IsOK(ecode2)) {
10952 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'");
10953 }
10954 arg2 = static_cast< int >(val2);
10955 {
10956 PyThreadState* __tstate = wxPyBeginAllowThreads();
10957 (arg1)->SetRightIndent(arg2);
10958 wxPyEndAllowThreads(__tstate);
10959 if (PyErr_Occurred()) SWIG_fail;
10960 }
10961 resultobj = SWIG_Py_Void();
10962 return resultobj;
10963 fail:
10964 return NULL;
10965 }
10966
10967
10968 SWIGINTERN PyObject *_wrap_TextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10969 PyObject *resultobj = 0;
10970 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10971 long arg2 ;
10972 void *argp1 = 0 ;
10973 int res1 = 0 ;
10974 long val2 ;
10975 int ecode2 = 0 ;
10976 PyObject * obj0 = 0 ;
10977 PyObject * obj1 = 0 ;
10978 char * kwnames[] = {
10979 (char *) "self",(char *) "flags", NULL
10980 };
10981
10982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
10983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10984 if (!SWIG_IsOK(res1)) {
10985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFlags" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10986 }
10987 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10988 ecode2 = SWIG_AsVal_long(obj1, &val2);
10989 if (!SWIG_IsOK(ecode2)) {
10990 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'");
10991 }
10992 arg2 = static_cast< long >(val2);
10993 {
10994 PyThreadState* __tstate = wxPyBeginAllowThreads();
10995 (arg1)->SetFlags(arg2);
10996 wxPyEndAllowThreads(__tstate);
10997 if (PyErr_Occurred()) SWIG_fail;
10998 }
10999 resultobj = SWIG_Py_Void();
11000 return resultobj;
11001 fail:
11002 return NULL;
11003 }
11004
11005
11006 SWIGINTERN PyObject *_wrap_TextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11007 PyObject *resultobj = 0;
11008 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11009 bool result;
11010 void *argp1 = 0 ;
11011 int res1 = 0 ;
11012 PyObject *swig_obj[1] ;
11013
11014 if (!args) SWIG_fail;
11015 swig_obj[0] = args;
11016 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11017 if (!SWIG_IsOK(res1)) {
11018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11019 }
11020 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11021 {
11022 PyThreadState* __tstate = wxPyBeginAllowThreads();
11023 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
11024 wxPyEndAllowThreads(__tstate);
11025 if (PyErr_Occurred()) SWIG_fail;
11026 }
11027 {
11028 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11029 }
11030 return resultobj;
11031 fail:
11032 return NULL;
11033 }
11034
11035
11036 SWIGINTERN PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11037 PyObject *resultobj = 0;
11038 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11039 bool result;
11040 void *argp1 = 0 ;
11041 int res1 = 0 ;
11042 PyObject *swig_obj[1] ;
11043
11044 if (!args) SWIG_fail;
11045 swig_obj[0] = args;
11046 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11047 if (!SWIG_IsOK(res1)) {
11048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11049 }
11050 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11051 {
11052 PyThreadState* __tstate = wxPyBeginAllowThreads();
11053 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
11054 wxPyEndAllowThreads(__tstate);
11055 if (PyErr_Occurred()) SWIG_fail;
11056 }
11057 {
11058 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11059 }
11060 return resultobj;
11061 fail:
11062 return NULL;
11063 }
11064
11065
11066 SWIGINTERN PyObject *_wrap_TextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11067 PyObject *resultobj = 0;
11068 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11069 bool result;
11070 void *argp1 = 0 ;
11071 int res1 = 0 ;
11072 PyObject *swig_obj[1] ;
11073
11074 if (!args) SWIG_fail;
11075 swig_obj[0] = args;
11076 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11077 if (!SWIG_IsOK(res1)) {
11078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11079 }
11080 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11081 {
11082 PyThreadState* __tstate = wxPyBeginAllowThreads();
11083 result = (bool)((wxTextAttr const *)arg1)->HasFont();
11084 wxPyEndAllowThreads(__tstate);
11085 if (PyErr_Occurred()) SWIG_fail;
11086 }
11087 {
11088 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11089 }
11090 return resultobj;
11091 fail:
11092 return NULL;
11093 }
11094
11095
11096 SWIGINTERN PyObject *_wrap_TextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11097 PyObject *resultobj = 0;
11098 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11099 bool result;
11100 void *argp1 = 0 ;
11101 int res1 = 0 ;
11102 PyObject *swig_obj[1] ;
11103
11104 if (!args) SWIG_fail;
11105 swig_obj[0] = args;
11106 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11107 if (!SWIG_IsOK(res1)) {
11108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11109 }
11110 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11111 {
11112 PyThreadState* __tstate = wxPyBeginAllowThreads();
11113 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
11114 wxPyEndAllowThreads(__tstate);
11115 if (PyErr_Occurred()) SWIG_fail;
11116 }
11117 {
11118 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11119 }
11120 return resultobj;
11121 fail:
11122 return NULL;
11123 }
11124
11125
11126 SWIGINTERN PyObject *_wrap_TextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11127 PyObject *resultobj = 0;
11128 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11129 bool result;
11130 void *argp1 = 0 ;
11131 int res1 = 0 ;
11132 PyObject *swig_obj[1] ;
11133
11134 if (!args) SWIG_fail;
11135 swig_obj[0] = args;
11136 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11137 if (!SWIG_IsOK(res1)) {
11138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11139 }
11140 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11141 {
11142 PyThreadState* __tstate = wxPyBeginAllowThreads();
11143 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
11144 wxPyEndAllowThreads(__tstate);
11145 if (PyErr_Occurred()) SWIG_fail;
11146 }
11147 {
11148 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11149 }
11150 return resultobj;
11151 fail:
11152 return NULL;
11153 }
11154
11155
11156 SWIGINTERN PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11157 PyObject *resultobj = 0;
11158 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11159 bool result;
11160 void *argp1 = 0 ;
11161 int res1 = 0 ;
11162 PyObject *swig_obj[1] ;
11163
11164 if (!args) SWIG_fail;
11165 swig_obj[0] = args;
11166 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11167 if (!SWIG_IsOK(res1)) {
11168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11169 }
11170 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11171 {
11172 PyThreadState* __tstate = wxPyBeginAllowThreads();
11173 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
11174 wxPyEndAllowThreads(__tstate);
11175 if (PyErr_Occurred()) SWIG_fail;
11176 }
11177 {
11178 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11179 }
11180 return resultobj;
11181 fail:
11182 return NULL;
11183 }
11184
11185
11186 SWIGINTERN PyObject *_wrap_TextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11187 PyObject *resultobj = 0;
11188 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11189 bool result;
11190 void *argp1 = 0 ;
11191 int res1 = 0 ;
11192 PyObject *swig_obj[1] ;
11193
11194 if (!args) SWIG_fail;
11195 swig_obj[0] = args;
11196 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11197 if (!SWIG_IsOK(res1)) {
11198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11199 }
11200 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11201 {
11202 PyThreadState* __tstate = wxPyBeginAllowThreads();
11203 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
11204 wxPyEndAllowThreads(__tstate);
11205 if (PyErr_Occurred()) SWIG_fail;
11206 }
11207 {
11208 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11209 }
11210 return resultobj;
11211 fail:
11212 return NULL;
11213 }
11214
11215
11216 SWIGINTERN PyObject *_wrap_TextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11217 PyObject *resultobj = 0;
11218 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11219 long arg2 ;
11220 bool result;
11221 void *argp1 = 0 ;
11222 int res1 = 0 ;
11223 long val2 ;
11224 int ecode2 = 0 ;
11225 PyObject * obj0 = 0 ;
11226 PyObject * obj1 = 0 ;
11227 char * kwnames[] = {
11228 (char *) "self",(char *) "flag", NULL
11229 };
11230
11231 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail;
11232 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11233 if (!SWIG_IsOK(res1)) {
11234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFlag" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11235 }
11236 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11237 ecode2 = SWIG_AsVal_long(obj1, &val2);
11238 if (!SWIG_IsOK(ecode2)) {
11239 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'");
11240 }
11241 arg2 = static_cast< long >(val2);
11242 {
11243 PyThreadState* __tstate = wxPyBeginAllowThreads();
11244 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
11245 wxPyEndAllowThreads(__tstate);
11246 if (PyErr_Occurred()) SWIG_fail;
11247 }
11248 {
11249 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11250 }
11251 return resultobj;
11252 fail:
11253 return NULL;
11254 }
11255
11256
11257 SWIGINTERN PyObject *_wrap_TextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11258 PyObject *resultobj = 0;
11259 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11260 wxColour *result = 0 ;
11261 void *argp1 = 0 ;
11262 int res1 = 0 ;
11263 PyObject *swig_obj[1] ;
11264
11265 if (!args) SWIG_fail;
11266 swig_obj[0] = args;
11267 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11268 if (!SWIG_IsOK(res1)) {
11269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11270 }
11271 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11272 {
11273 PyThreadState* __tstate = wxPyBeginAllowThreads();
11274 {
11275 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
11276 result = (wxColour *) &_result_ref;
11277 }
11278 wxPyEndAllowThreads(__tstate);
11279 if (PyErr_Occurred()) SWIG_fail;
11280 }
11281 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11282 return resultobj;
11283 fail:
11284 return NULL;
11285 }
11286
11287
11288 SWIGINTERN PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11289 PyObject *resultobj = 0;
11290 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11291 wxColour *result = 0 ;
11292 void *argp1 = 0 ;
11293 int res1 = 0 ;
11294 PyObject *swig_obj[1] ;
11295
11296 if (!args) SWIG_fail;
11297 swig_obj[0] = args;
11298 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11299 if (!SWIG_IsOK(res1)) {
11300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11301 }
11302 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11303 {
11304 PyThreadState* __tstate = wxPyBeginAllowThreads();
11305 {
11306 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
11307 result = (wxColour *) &_result_ref;
11308 }
11309 wxPyEndAllowThreads(__tstate);
11310 if (PyErr_Occurred()) SWIG_fail;
11311 }
11312 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11313 return resultobj;
11314 fail:
11315 return NULL;
11316 }
11317
11318
11319 SWIGINTERN PyObject *_wrap_TextAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11320 PyObject *resultobj = 0;
11321 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11322 wxFont *result = 0 ;
11323 void *argp1 = 0 ;
11324 int res1 = 0 ;
11325 PyObject *swig_obj[1] ;
11326
11327 if (!args) SWIG_fail;
11328 swig_obj[0] = args;
11329 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11330 if (!SWIG_IsOK(res1)) {
11331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11332 }
11333 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11334 {
11335 PyThreadState* __tstate = wxPyBeginAllowThreads();
11336 {
11337 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
11338 result = (wxFont *) &_result_ref;
11339 }
11340 wxPyEndAllowThreads(__tstate);
11341 if (PyErr_Occurred()) SWIG_fail;
11342 }
11343 {
11344 wxFont* resultptr = new wxFont(*result);
11345 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
11346 }
11347 return resultobj;
11348 fail:
11349 return NULL;
11350 }
11351
11352
11353 SWIGINTERN PyObject *_wrap_TextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11354 PyObject *resultobj = 0;
11355 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11356 wxTextAttrAlignment 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_GetAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11366 }
11367 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11368 {
11369 PyThreadState* __tstate = wxPyBeginAllowThreads();
11370 result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment();
11371 wxPyEndAllowThreads(__tstate);
11372 if (PyErr_Occurred()) SWIG_fail;
11373 }
11374 resultobj = SWIG_From_int(static_cast< int >(result));
11375 return resultobj;
11376 fail:
11377 return NULL;
11378 }
11379
11380
11381 SWIGINTERN PyObject *_wrap_TextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11382 PyObject *resultobj = 0;
11383 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11384 wxArrayInt *result = 0 ;
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_GetTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11394 }
11395 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11396 {
11397 PyThreadState* __tstate = wxPyBeginAllowThreads();
11398 {
11399 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
11400 result = (wxArrayInt *) &_result_ref;
11401 }
11402 wxPyEndAllowThreads(__tstate);
11403 if (PyErr_Occurred()) SWIG_fail;
11404 }
11405 {
11406 resultobj = wxArrayInt2PyList_helper(*result);
11407 }
11408 return resultobj;
11409 fail:
11410 return NULL;
11411 }
11412
11413
11414 SWIGINTERN PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11415 PyObject *resultobj = 0;
11416 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11417 long result;
11418 void *argp1 = 0 ;
11419 int res1 = 0 ;
11420 PyObject *swig_obj[1] ;
11421
11422 if (!args) SWIG_fail;
11423 swig_obj[0] = args;
11424 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11425 if (!SWIG_IsOK(res1)) {
11426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11427 }
11428 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11429 {
11430 PyThreadState* __tstate = wxPyBeginAllowThreads();
11431 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
11432 wxPyEndAllowThreads(__tstate);
11433 if (PyErr_Occurred()) SWIG_fail;
11434 }
11435 resultobj = SWIG_From_long(static_cast< long >(result));
11436 return resultobj;
11437 fail:
11438 return NULL;
11439 }
11440
11441
11442 SWIGINTERN PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11443 PyObject *resultobj = 0;
11444 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11445 long result;
11446 void *argp1 = 0 ;
11447 int res1 = 0 ;
11448 PyObject *swig_obj[1] ;
11449
11450 if (!args) SWIG_fail;
11451 swig_obj[0] = args;
11452 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11453 if (!SWIG_IsOK(res1)) {
11454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11455 }
11456 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11457 {
11458 PyThreadState* __tstate = wxPyBeginAllowThreads();
11459 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
11460 wxPyEndAllowThreads(__tstate);
11461 if (PyErr_Occurred()) SWIG_fail;
11462 }
11463 resultobj = SWIG_From_long(static_cast< long >(result));
11464 return resultobj;
11465 fail:
11466 return NULL;
11467 }
11468
11469
11470 SWIGINTERN PyObject *_wrap_TextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11471 PyObject *resultobj = 0;
11472 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11473 long result;
11474 void *argp1 = 0 ;
11475 int res1 = 0 ;
11476 PyObject *swig_obj[1] ;
11477
11478 if (!args) SWIG_fail;
11479 swig_obj[0] = args;
11480 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11481 if (!SWIG_IsOK(res1)) {
11482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11483 }
11484 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11485 {
11486 PyThreadState* __tstate = wxPyBeginAllowThreads();
11487 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
11488 wxPyEndAllowThreads(__tstate);
11489 if (PyErr_Occurred()) SWIG_fail;
11490 }
11491 resultobj = SWIG_From_long(static_cast< long >(result));
11492 return resultobj;
11493 fail:
11494 return NULL;
11495 }
11496
11497
11498 SWIGINTERN PyObject *_wrap_TextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11499 PyObject *resultobj = 0;
11500 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11501 long result;
11502 void *argp1 = 0 ;
11503 int res1 = 0 ;
11504 PyObject *swig_obj[1] ;
11505
11506 if (!args) SWIG_fail;
11507 swig_obj[0] = args;
11508 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11509 if (!SWIG_IsOK(res1)) {
11510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFlags" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11511 }
11512 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11513 {
11514 PyThreadState* __tstate = wxPyBeginAllowThreads();
11515 result = (long)((wxTextAttr const *)arg1)->GetFlags();
11516 wxPyEndAllowThreads(__tstate);
11517 if (PyErr_Occurred()) SWIG_fail;
11518 }
11519 resultobj = SWIG_From_long(static_cast< long >(result));
11520 return resultobj;
11521 fail:
11522 return NULL;
11523 }
11524
11525
11526 SWIGINTERN PyObject *_wrap_TextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11527 PyObject *resultobj = 0;
11528 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11529 bool result;
11530 void *argp1 = 0 ;
11531 int res1 = 0 ;
11532 PyObject *swig_obj[1] ;
11533
11534 if (!args) SWIG_fail;
11535 swig_obj[0] = args;
11536 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11537 if (!SWIG_IsOK(res1)) {
11538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_IsDefault" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11539 }
11540 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11541 {
11542 PyThreadState* __tstate = wxPyBeginAllowThreads();
11543 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
11544 wxPyEndAllowThreads(__tstate);
11545 if (PyErr_Occurred()) SWIG_fail;
11546 }
11547 {
11548 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11549 }
11550 return resultobj;
11551 fail:
11552 return NULL;
11553 }
11554
11555
11556 SWIGINTERN PyObject *_wrap_TextAttr_Combine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11557 PyObject *resultobj = 0;
11558 wxTextAttr *arg1 = 0 ;
11559 wxTextAttr *arg2 = 0 ;
11560 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
11561 wxTextAttr result;
11562 void *argp1 = 0 ;
11563 int res1 = 0 ;
11564 void *argp2 = 0 ;
11565 int res2 = 0 ;
11566 void *argp3 = 0 ;
11567 int res3 = 0 ;
11568 PyObject * obj0 = 0 ;
11569 PyObject * obj1 = 0 ;
11570 PyObject * obj2 = 0 ;
11571 char * kwnames[] = {
11572 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
11573 };
11574
11575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11576 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
11577 if (!SWIG_IsOK(res1)) {
11578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11579 }
11580 if (!argp1) {
11581 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11582 }
11583 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11584 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
11585 if (!SWIG_IsOK(res2)) {
11586 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11587 }
11588 if (!argp2) {
11589 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11590 }
11591 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
11592 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11593 if (!SWIG_IsOK(res3)) {
11594 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextAttr_Combine" "', expected argument " "3"" of type '" "wxTextCtrl const *""'");
11595 }
11596 arg3 = reinterpret_cast< wxTextCtrl * >(argp3);
11597 {
11598 PyThreadState* __tstate = wxPyBeginAllowThreads();
11599 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
11600 wxPyEndAllowThreads(__tstate);
11601 if (PyErr_Occurred()) SWIG_fail;
11602 }
11603 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
11604 return resultobj;
11605 fail:
11606 return NULL;
11607 }
11608
11609
11610 SWIGINTERN PyObject *TextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11611 PyObject *obj;
11612 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11613 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextAttr, SWIG_NewClientData(obj));
11614 return SWIG_Py_Void();
11615 }
11616
11617 SWIGINTERN PyObject *TextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11618 return SWIG_Python_InitShadowInstance(args);
11619 }
11620
11621 SWIGINTERN PyObject *_wrap_new_TextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11622 PyObject *resultobj = 0;
11623 wxWindow *arg1 = (wxWindow *) 0 ;
11624 int arg2 = (int) -1 ;
11625 wxString const &arg3_defvalue = wxPyEmptyString ;
11626 wxString *arg3 = (wxString *) &arg3_defvalue ;
11627 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11628 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11629 wxSize const &arg5_defvalue = wxDefaultSize ;
11630 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11631 long arg6 = (long) 0 ;
11632 wxValidator const &arg7_defvalue = wxDefaultValidator ;
11633 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
11634 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
11635 wxString *arg8 = (wxString *) &arg8_defvalue ;
11636 wxTextCtrl *result = 0 ;
11637 void *argp1 = 0 ;
11638 int res1 = 0 ;
11639 int val2 ;
11640 int ecode2 = 0 ;
11641 bool temp3 = false ;
11642 wxPoint temp4 ;
11643 wxSize temp5 ;
11644 long val6 ;
11645 int ecode6 = 0 ;
11646 void *argp7 = 0 ;
11647 int res7 = 0 ;
11648 bool temp8 = false ;
11649 PyObject * obj0 = 0 ;
11650 PyObject * obj1 = 0 ;
11651 PyObject * obj2 = 0 ;
11652 PyObject * obj3 = 0 ;
11653 PyObject * obj4 = 0 ;
11654 PyObject * obj5 = 0 ;
11655 PyObject * obj6 = 0 ;
11656 PyObject * obj7 = 0 ;
11657 char * kwnames[] = {
11658 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11659 };
11660
11661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
11662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
11663 if (!SWIG_IsOK(res1)) {
11664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
11665 }
11666 arg1 = reinterpret_cast< wxWindow * >(argp1);
11667 if (obj1) {
11668 ecode2 = SWIG_AsVal_int(obj1, &val2);
11669 if (!SWIG_IsOK(ecode2)) {
11670 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TextCtrl" "', expected argument " "2"" of type '" "int""'");
11671 }
11672 arg2 = static_cast< int >(val2);
11673 }
11674 if (obj2) {
11675 {
11676 arg3 = wxString_in_helper(obj2);
11677 if (arg3 == NULL) SWIG_fail;
11678 temp3 = true;
11679 }
11680 }
11681 if (obj3) {
11682 {
11683 arg4 = &temp4;
11684 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11685 }
11686 }
11687 if (obj4) {
11688 {
11689 arg5 = &temp5;
11690 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11691 }
11692 }
11693 if (obj5) {
11694 ecode6 = SWIG_AsVal_long(obj5, &val6);
11695 if (!SWIG_IsOK(ecode6)) {
11696 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_TextCtrl" "', expected argument " "6"" of type '" "long""'");
11697 }
11698 arg6 = static_cast< long >(val6);
11699 }
11700 if (obj6) {
11701 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
11702 if (!SWIG_IsOK(res7)) {
11703 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
11704 }
11705 if (!argp7) {
11706 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
11707 }
11708 arg7 = reinterpret_cast< wxValidator * >(argp7);
11709 }
11710 if (obj7) {
11711 {
11712 arg8 = wxString_in_helper(obj7);
11713 if (arg8 == NULL) SWIG_fail;
11714 temp8 = true;
11715 }
11716 }
11717 {
11718 if (!wxPyCheckForApp()) SWIG_fail;
11719 PyThreadState* __tstate = wxPyBeginAllowThreads();
11720 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
11721 wxPyEndAllowThreads(__tstate);
11722 if (PyErr_Occurred()) SWIG_fail;
11723 }
11724 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_NEW | 0 );
11725 {
11726 if (temp3)
11727 delete arg3;
11728 }
11729 {
11730 if (temp8)
11731 delete arg8;
11732 }
11733 return resultobj;
11734 fail:
11735 {
11736 if (temp3)
11737 delete arg3;
11738 }
11739 {
11740 if (temp8)
11741 delete arg8;
11742 }
11743 return NULL;
11744 }
11745
11746
11747 SWIGINTERN PyObject *_wrap_new_PreTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11748 PyObject *resultobj = 0;
11749 wxTextCtrl *result = 0 ;
11750
11751 if (!SWIG_Python_UnpackTuple(args,"new_PreTextCtrl",0,0,0)) SWIG_fail;
11752 {
11753 if (!wxPyCheckForApp()) SWIG_fail;
11754 PyThreadState* __tstate = wxPyBeginAllowThreads();
11755 result = (wxTextCtrl *)new wxTextCtrl();
11756 wxPyEndAllowThreads(__tstate);
11757 if (PyErr_Occurred()) SWIG_fail;
11758 }
11759 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_OWN | 0 );
11760 return resultobj;
11761 fail:
11762 return NULL;
11763 }
11764
11765
11766 SWIGINTERN PyObject *_wrap_TextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11767 PyObject *resultobj = 0;
11768 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11769 wxWindow *arg2 = (wxWindow *) 0 ;
11770 int arg3 = (int) -1 ;
11771 wxString const &arg4_defvalue = wxPyEmptyString ;
11772 wxString *arg4 = (wxString *) &arg4_defvalue ;
11773 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11774 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11775 wxSize const &arg6_defvalue = wxDefaultSize ;
11776 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11777 long arg7 = (long) 0 ;
11778 wxValidator const &arg8_defvalue = wxDefaultValidator ;
11779 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
11780 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
11781 wxString *arg9 = (wxString *) &arg9_defvalue ;
11782 bool result;
11783 void *argp1 = 0 ;
11784 int res1 = 0 ;
11785 void *argp2 = 0 ;
11786 int res2 = 0 ;
11787 int val3 ;
11788 int ecode3 = 0 ;
11789 bool temp4 = false ;
11790 wxPoint temp5 ;
11791 wxSize temp6 ;
11792 long val7 ;
11793 int ecode7 = 0 ;
11794 void *argp8 = 0 ;
11795 int res8 = 0 ;
11796 bool temp9 = false ;
11797 PyObject * obj0 = 0 ;
11798 PyObject * obj1 = 0 ;
11799 PyObject * obj2 = 0 ;
11800 PyObject * obj3 = 0 ;
11801 PyObject * obj4 = 0 ;
11802 PyObject * obj5 = 0 ;
11803 PyObject * obj6 = 0 ;
11804 PyObject * obj7 = 0 ;
11805 PyObject * obj8 = 0 ;
11806 char * kwnames[] = {
11807 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11808 };
11809
11810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
11811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11812 if (!SWIG_IsOK(res1)) {
11813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Create" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11814 }
11815 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11816 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11817 if (!SWIG_IsOK(res2)) {
11818 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
11819 }
11820 arg2 = reinterpret_cast< wxWindow * >(argp2);
11821 if (obj2) {
11822 ecode3 = SWIG_AsVal_int(obj2, &val3);
11823 if (!SWIG_IsOK(ecode3)) {
11824 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Create" "', expected argument " "3"" of type '" "int""'");
11825 }
11826 arg3 = static_cast< int >(val3);
11827 }
11828 if (obj3) {
11829 {
11830 arg4 = wxString_in_helper(obj3);
11831 if (arg4 == NULL) SWIG_fail;
11832 temp4 = true;
11833 }
11834 }
11835 if (obj4) {
11836 {
11837 arg5 = &temp5;
11838 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11839 }
11840 }
11841 if (obj5) {
11842 {
11843 arg6 = &temp6;
11844 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11845 }
11846 }
11847 if (obj6) {
11848 ecode7 = SWIG_AsVal_long(obj6, &val7);
11849 if (!SWIG_IsOK(ecode7)) {
11850 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "TextCtrl_Create" "', expected argument " "7"" of type '" "long""'");
11851 }
11852 arg7 = static_cast< long >(val7);
11853 }
11854 if (obj7) {
11855 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
11856 if (!SWIG_IsOK(res8)) {
11857 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11858 }
11859 if (!argp8) {
11860 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11861 }
11862 arg8 = reinterpret_cast< wxValidator * >(argp8);
11863 }
11864 if (obj8) {
11865 {
11866 arg9 = wxString_in_helper(obj8);
11867 if (arg9 == NULL) SWIG_fail;
11868 temp9 = true;
11869 }
11870 }
11871 {
11872 PyThreadState* __tstate = wxPyBeginAllowThreads();
11873 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
11874 wxPyEndAllowThreads(__tstate);
11875 if (PyErr_Occurred()) SWIG_fail;
11876 }
11877 {
11878 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11879 }
11880 {
11881 if (temp4)
11882 delete arg4;
11883 }
11884 {
11885 if (temp9)
11886 delete arg9;
11887 }
11888 return resultobj;
11889 fail:
11890 {
11891 if (temp4)
11892 delete arg4;
11893 }
11894 {
11895 if (temp9)
11896 delete arg9;
11897 }
11898 return NULL;
11899 }
11900
11901
11902 SWIGINTERN PyObject *_wrap_TextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11903 PyObject *resultobj = 0;
11904 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11905 wxString result;
11906 void *argp1 = 0 ;
11907 int res1 = 0 ;
11908 PyObject *swig_obj[1] ;
11909
11910 if (!args) SWIG_fail;
11911 swig_obj[0] = args;
11912 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11913 if (!SWIG_IsOK(res1)) {
11914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetValue" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11915 }
11916 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11917 {
11918 PyThreadState* __tstate = wxPyBeginAllowThreads();
11919 result = ((wxTextCtrl const *)arg1)->GetValue();
11920 wxPyEndAllowThreads(__tstate);
11921 if (PyErr_Occurred()) SWIG_fail;
11922 }
11923 {
11924 #if wxUSE_UNICODE
11925 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11926 #else
11927 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11928 #endif
11929 }
11930 return resultobj;
11931 fail:
11932 return NULL;
11933 }
11934
11935
11936 SWIGINTERN PyObject *_wrap_TextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11937 PyObject *resultobj = 0;
11938 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11939 wxString *arg2 = 0 ;
11940 void *argp1 = 0 ;
11941 int res1 = 0 ;
11942 bool temp2 = false ;
11943 PyObject * obj0 = 0 ;
11944 PyObject * obj1 = 0 ;
11945 char * kwnames[] = {
11946 (char *) "self",(char *) "value", NULL
11947 };
11948
11949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
11950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11951 if (!SWIG_IsOK(res1)) {
11952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11953 }
11954 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11955 {
11956 arg2 = wxString_in_helper(obj1);
11957 if (arg2 == NULL) SWIG_fail;
11958 temp2 = true;
11959 }
11960 {
11961 PyThreadState* __tstate = wxPyBeginAllowThreads();
11962 (arg1)->SetValue((wxString const &)*arg2);
11963 wxPyEndAllowThreads(__tstate);
11964 if (PyErr_Occurred()) SWIG_fail;
11965 }
11966 resultobj = SWIG_Py_Void();
11967 {
11968 if (temp2)
11969 delete arg2;
11970 }
11971 return resultobj;
11972 fail:
11973 {
11974 if (temp2)
11975 delete arg2;
11976 }
11977 return NULL;
11978 }
11979
11980
11981 SWIGINTERN PyObject *_wrap_TextCtrl_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11982 PyObject *resultobj = 0;
11983 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11984 bool result;
11985 void *argp1 = 0 ;
11986 int res1 = 0 ;
11987 PyObject *swig_obj[1] ;
11988
11989 if (!args) SWIG_fail;
11990 swig_obj[0] = args;
11991 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11992 if (!SWIG_IsOK(res1)) {
11993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEmpty" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11994 }
11995 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11996 {
11997 PyThreadState* __tstate = wxPyBeginAllowThreads();
11998 result = (bool)((wxTextCtrl const *)arg1)->IsEmpty();
11999 wxPyEndAllowThreads(__tstate);
12000 if (PyErr_Occurred()) SWIG_fail;
12001 }
12002 {
12003 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12004 }
12005 return resultobj;
12006 fail:
12007 return NULL;
12008 }
12009
12010
12011 SWIGINTERN PyObject *_wrap_TextCtrl_ChangeValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12012 PyObject *resultobj = 0;
12013 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12014 wxString *arg2 = 0 ;
12015 void *argp1 = 0 ;
12016 int res1 = 0 ;
12017 bool temp2 = false ;
12018 PyObject * obj0 = 0 ;
12019 PyObject * obj1 = 0 ;
12020 char * kwnames[] = {
12021 (char *) "self",(char *) "value", NULL
12022 };
12023
12024 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ChangeValue",kwnames,&obj0,&obj1)) SWIG_fail;
12025 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12026 if (!SWIG_IsOK(res1)) {
12027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ChangeValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12028 }
12029 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12030 {
12031 arg2 = wxString_in_helper(obj1);
12032 if (arg2 == NULL) SWIG_fail;
12033 temp2 = true;
12034 }
12035 {
12036 PyThreadState* __tstate = wxPyBeginAllowThreads();
12037 (arg1)->ChangeValue((wxString const &)*arg2);
12038 wxPyEndAllowThreads(__tstate);
12039 if (PyErr_Occurred()) SWIG_fail;
12040 }
12041 resultobj = SWIG_Py_Void();
12042 {
12043 if (temp2)
12044 delete arg2;
12045 }
12046 return resultobj;
12047 fail:
12048 {
12049 if (temp2)
12050 delete arg2;
12051 }
12052 return NULL;
12053 }
12054
12055
12056 SWIGINTERN PyObject *_wrap_TextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12057 PyObject *resultobj = 0;
12058 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12059 long arg2 ;
12060 long arg3 ;
12061 wxString result;
12062 void *argp1 = 0 ;
12063 int res1 = 0 ;
12064 long val2 ;
12065 int ecode2 = 0 ;
12066 long val3 ;
12067 int ecode3 = 0 ;
12068 PyObject * obj0 = 0 ;
12069 PyObject * obj1 = 0 ;
12070 PyObject * obj2 = 0 ;
12071 char * kwnames[] = {
12072 (char *) "self",(char *) "from",(char *) "to", NULL
12073 };
12074
12075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12077 if (!SWIG_IsOK(res1)) {
12078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetRange" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12079 }
12080 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12081 ecode2 = SWIG_AsVal_long(obj1, &val2);
12082 if (!SWIG_IsOK(ecode2)) {
12083 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'");
12084 }
12085 arg2 = static_cast< long >(val2);
12086 ecode3 = SWIG_AsVal_long(obj2, &val3);
12087 if (!SWIG_IsOK(ecode3)) {
12088 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'");
12089 }
12090 arg3 = static_cast< long >(val3);
12091 {
12092 PyThreadState* __tstate = wxPyBeginAllowThreads();
12093 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
12094 wxPyEndAllowThreads(__tstate);
12095 if (PyErr_Occurred()) SWIG_fail;
12096 }
12097 {
12098 #if wxUSE_UNICODE
12099 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12100 #else
12101 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12102 #endif
12103 }
12104 return resultobj;
12105 fail:
12106 return NULL;
12107 }
12108
12109
12110 SWIGINTERN PyObject *_wrap_TextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12111 PyObject *resultobj = 0;
12112 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12113 long arg2 ;
12114 int result;
12115 void *argp1 = 0 ;
12116 int res1 = 0 ;
12117 long val2 ;
12118 int ecode2 = 0 ;
12119 PyObject * obj0 = 0 ;
12120 PyObject * obj1 = 0 ;
12121 char * kwnames[] = {
12122 (char *) "self",(char *) "lineNo", NULL
12123 };
12124
12125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail;
12126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12127 if (!SWIG_IsOK(res1)) {
12128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12129 }
12130 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12131 ecode2 = SWIG_AsVal_long(obj1, &val2);
12132 if (!SWIG_IsOK(ecode2)) {
12133 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'");
12134 }
12135 arg2 = static_cast< long >(val2);
12136 {
12137 PyThreadState* __tstate = wxPyBeginAllowThreads();
12138 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
12139 wxPyEndAllowThreads(__tstate);
12140 if (PyErr_Occurred()) SWIG_fail;
12141 }
12142 resultobj = SWIG_From_int(static_cast< int >(result));
12143 return resultobj;
12144 fail:
12145 return NULL;
12146 }
12147
12148
12149 SWIGINTERN PyObject *_wrap_TextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12150 PyObject *resultobj = 0;
12151 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12152 long arg2 ;
12153 wxString result;
12154 void *argp1 = 0 ;
12155 int res1 = 0 ;
12156 long val2 ;
12157 int ecode2 = 0 ;
12158 PyObject * obj0 = 0 ;
12159 PyObject * obj1 = 0 ;
12160 char * kwnames[] = {
12161 (char *) "self",(char *) "lineNo", NULL
12162 };
12163
12164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail;
12165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12166 if (!SWIG_IsOK(res1)) {
12167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12168 }
12169 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12170 ecode2 = SWIG_AsVal_long(obj1, &val2);
12171 if (!SWIG_IsOK(ecode2)) {
12172 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'");
12173 }
12174 arg2 = static_cast< long >(val2);
12175 {
12176 PyThreadState* __tstate = wxPyBeginAllowThreads();
12177 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
12178 wxPyEndAllowThreads(__tstate);
12179 if (PyErr_Occurred()) SWIG_fail;
12180 }
12181 {
12182 #if wxUSE_UNICODE
12183 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12184 #else
12185 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12186 #endif
12187 }
12188 return resultobj;
12189 fail:
12190 return NULL;
12191 }
12192
12193
12194 SWIGINTERN PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12195 PyObject *resultobj = 0;
12196 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12197 int result;
12198 void *argp1 = 0 ;
12199 int res1 = 0 ;
12200 PyObject *swig_obj[1] ;
12201
12202 if (!args) SWIG_fail;
12203 swig_obj[0] = args;
12204 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12205 if (!SWIG_IsOK(res1)) {
12206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12207 }
12208 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12209 {
12210 PyThreadState* __tstate = wxPyBeginAllowThreads();
12211 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
12212 wxPyEndAllowThreads(__tstate);
12213 if (PyErr_Occurred()) SWIG_fail;
12214 }
12215 resultobj = SWIG_From_int(static_cast< int >(result));
12216 return resultobj;
12217 fail:
12218 return NULL;
12219 }
12220
12221
12222 SWIGINTERN PyObject *_wrap_TextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12223 PyObject *resultobj = 0;
12224 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12225 bool result;
12226 void *argp1 = 0 ;
12227 int res1 = 0 ;
12228 PyObject *swig_obj[1] ;
12229
12230 if (!args) SWIG_fail;
12231 swig_obj[0] = args;
12232 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12233 if (!SWIG_IsOK(res1)) {
12234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsModified" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12235 }
12236 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12237 {
12238 PyThreadState* __tstate = wxPyBeginAllowThreads();
12239 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
12240 wxPyEndAllowThreads(__tstate);
12241 if (PyErr_Occurred()) SWIG_fail;
12242 }
12243 {
12244 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12245 }
12246 return resultobj;
12247 fail:
12248 return NULL;
12249 }
12250
12251
12252 SWIGINTERN PyObject *_wrap_TextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12253 PyObject *resultobj = 0;
12254 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12255 bool result;
12256 void *argp1 = 0 ;
12257 int res1 = 0 ;
12258 PyObject *swig_obj[1] ;
12259
12260 if (!args) SWIG_fail;
12261 swig_obj[0] = args;
12262 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12263 if (!SWIG_IsOK(res1)) {
12264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12265 }
12266 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12267 {
12268 PyThreadState* __tstate = wxPyBeginAllowThreads();
12269 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
12270 wxPyEndAllowThreads(__tstate);
12271 if (PyErr_Occurred()) SWIG_fail;
12272 }
12273 {
12274 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12275 }
12276 return resultobj;
12277 fail:
12278 return NULL;
12279 }
12280
12281
12282 SWIGINTERN PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12283 PyObject *resultobj = 0;
12284 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12285 bool result;
12286 void *argp1 = 0 ;
12287 int res1 = 0 ;
12288 PyObject *swig_obj[1] ;
12289
12290 if (!args) SWIG_fail;
12291 swig_obj[0] = args;
12292 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12293 if (!SWIG_IsOK(res1)) {
12294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12295 }
12296 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12297 {
12298 PyThreadState* __tstate = wxPyBeginAllowThreads();
12299 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
12300 wxPyEndAllowThreads(__tstate);
12301 if (PyErr_Occurred()) SWIG_fail;
12302 }
12303 {
12304 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12305 }
12306 return resultobj;
12307 fail:
12308 return NULL;
12309 }
12310
12311
12312 SWIGINTERN PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12313 PyObject *resultobj = 0;
12314 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12315 bool result;
12316 void *argp1 = 0 ;
12317 int res1 = 0 ;
12318 PyObject *swig_obj[1] ;
12319
12320 if (!args) SWIG_fail;
12321 swig_obj[0] = args;
12322 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12323 if (!SWIG_IsOK(res1)) {
12324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12325 }
12326 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12327 {
12328 PyThreadState* __tstate = wxPyBeginAllowThreads();
12329 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
12330 wxPyEndAllowThreads(__tstate);
12331 if (PyErr_Occurred()) SWIG_fail;
12332 }
12333 {
12334 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12335 }
12336 return resultobj;
12337 fail:
12338 return NULL;
12339 }
12340
12341
12342 SWIGINTERN PyObject *_wrap_TextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12343 PyObject *resultobj = 0;
12344 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12345 long *arg2 = (long *) 0 ;
12346 long *arg3 = (long *) 0 ;
12347 void *argp1 = 0 ;
12348 int res1 = 0 ;
12349 long temp2 ;
12350 int res2 = SWIG_TMPOBJ ;
12351 long temp3 ;
12352 int res3 = SWIG_TMPOBJ ;
12353 PyObject *swig_obj[1] ;
12354
12355 arg2 = &temp2;
12356 arg3 = &temp3;
12357 if (!args) SWIG_fail;
12358 swig_obj[0] = args;
12359 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12360 if (!SWIG_IsOK(res1)) {
12361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12362 }
12363 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12364 {
12365 PyThreadState* __tstate = wxPyBeginAllowThreads();
12366 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
12367 wxPyEndAllowThreads(__tstate);
12368 if (PyErr_Occurred()) SWIG_fail;
12369 }
12370 resultobj = SWIG_Py_Void();
12371 if (SWIG_IsTmpObj(res2)) {
12372 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
12373 } else {
12374 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12375 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
12376 }
12377 if (SWIG_IsTmpObj(res3)) {
12378 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
12379 } else {
12380 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12381 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
12382 }
12383 return resultobj;
12384 fail:
12385 return NULL;
12386 }
12387
12388
12389 SWIGINTERN PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12390 PyObject *resultobj = 0;
12391 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12392 wxString result;
12393 void *argp1 = 0 ;
12394 int res1 = 0 ;
12395 PyObject *swig_obj[1] ;
12396
12397 if (!args) SWIG_fail;
12398 swig_obj[0] = args;
12399 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12400 if (!SWIG_IsOK(res1)) {
12401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12402 }
12403 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12404 {
12405 PyThreadState* __tstate = wxPyBeginAllowThreads();
12406 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
12407 wxPyEndAllowThreads(__tstate);
12408 if (PyErr_Occurred()) SWIG_fail;
12409 }
12410 {
12411 #if wxUSE_UNICODE
12412 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12413 #else
12414 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12415 #endif
12416 }
12417 return resultobj;
12418 fail:
12419 return NULL;
12420 }
12421
12422
12423 SWIGINTERN PyObject *_wrap_TextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12424 PyObject *resultobj = 0;
12425 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12426 void *argp1 = 0 ;
12427 int res1 = 0 ;
12428 PyObject *swig_obj[1] ;
12429
12430 if (!args) SWIG_fail;
12431 swig_obj[0] = args;
12432 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12433 if (!SWIG_IsOK(res1)) {
12434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Clear" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12435 }
12436 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12437 {
12438 PyThreadState* __tstate = wxPyBeginAllowThreads();
12439 (arg1)->Clear();
12440 wxPyEndAllowThreads(__tstate);
12441 if (PyErr_Occurred()) SWIG_fail;
12442 }
12443 resultobj = SWIG_Py_Void();
12444 return resultobj;
12445 fail:
12446 return NULL;
12447 }
12448
12449
12450 SWIGINTERN PyObject *_wrap_TextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12451 PyObject *resultobj = 0;
12452 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12453 long arg2 ;
12454 long arg3 ;
12455 wxString *arg4 = 0 ;
12456 void *argp1 = 0 ;
12457 int res1 = 0 ;
12458 long val2 ;
12459 int ecode2 = 0 ;
12460 long val3 ;
12461 int ecode3 = 0 ;
12462 bool temp4 = false ;
12463 PyObject * obj0 = 0 ;
12464 PyObject * obj1 = 0 ;
12465 PyObject * obj2 = 0 ;
12466 PyObject * obj3 = 0 ;
12467 char * kwnames[] = {
12468 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
12469 };
12470
12471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12473 if (!SWIG_IsOK(res1)) {
12474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Replace" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12475 }
12476 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12477 ecode2 = SWIG_AsVal_long(obj1, &val2);
12478 if (!SWIG_IsOK(ecode2)) {
12479 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Replace" "', expected argument " "2"" of type '" "long""'");
12480 }
12481 arg2 = static_cast< long >(val2);
12482 ecode3 = SWIG_AsVal_long(obj2, &val3);
12483 if (!SWIG_IsOK(ecode3)) {
12484 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Replace" "', expected argument " "3"" of type '" "long""'");
12485 }
12486 arg3 = static_cast< long >(val3);
12487 {
12488 arg4 = wxString_in_helper(obj3);
12489 if (arg4 == NULL) SWIG_fail;
12490 temp4 = true;
12491 }
12492 {
12493 PyThreadState* __tstate = wxPyBeginAllowThreads();
12494 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
12495 wxPyEndAllowThreads(__tstate);
12496 if (PyErr_Occurred()) SWIG_fail;
12497 }
12498 resultobj = SWIG_Py_Void();
12499 {
12500 if (temp4)
12501 delete arg4;
12502 }
12503 return resultobj;
12504 fail:
12505 {
12506 if (temp4)
12507 delete arg4;
12508 }
12509 return NULL;
12510 }
12511
12512
12513 SWIGINTERN PyObject *_wrap_TextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12514 PyObject *resultobj = 0;
12515 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12516 long arg2 ;
12517 long arg3 ;
12518 void *argp1 = 0 ;
12519 int res1 = 0 ;
12520 long val2 ;
12521 int ecode2 = 0 ;
12522 long val3 ;
12523 int ecode3 = 0 ;
12524 PyObject * obj0 = 0 ;
12525 PyObject * obj1 = 0 ;
12526 PyObject * obj2 = 0 ;
12527 char * kwnames[] = {
12528 (char *) "self",(char *) "from",(char *) "to", NULL
12529 };
12530
12531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12533 if (!SWIG_IsOK(res1)) {
12534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Remove" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12535 }
12536 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12537 ecode2 = SWIG_AsVal_long(obj1, &val2);
12538 if (!SWIG_IsOK(ecode2)) {
12539 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Remove" "', expected argument " "2"" of type '" "long""'");
12540 }
12541 arg2 = static_cast< long >(val2);
12542 ecode3 = SWIG_AsVal_long(obj2, &val3);
12543 if (!SWIG_IsOK(ecode3)) {
12544 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Remove" "', expected argument " "3"" of type '" "long""'");
12545 }
12546 arg3 = static_cast< long >(val3);
12547 {
12548 PyThreadState* __tstate = wxPyBeginAllowThreads();
12549 (arg1)->Remove(arg2,arg3);
12550 wxPyEndAllowThreads(__tstate);
12551 if (PyErr_Occurred()) SWIG_fail;
12552 }
12553 resultobj = SWIG_Py_Void();
12554 return resultobj;
12555 fail:
12556 return NULL;
12557 }
12558
12559
12560 SWIGINTERN PyObject *_wrap_TextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12561 PyObject *resultobj = 0;
12562 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12563 wxString *arg2 = 0 ;
12564 int arg3 = (int) wxTEXT_TYPE_ANY ;
12565 bool result;
12566 void *argp1 = 0 ;
12567 int res1 = 0 ;
12568 bool temp2 = false ;
12569 int val3 ;
12570 int ecode3 = 0 ;
12571 PyObject * obj0 = 0 ;
12572 PyObject * obj1 = 0 ;
12573 PyObject * obj2 = 0 ;
12574 char * kwnames[] = {
12575 (char *) "self",(char *) "file",(char *) "fileType", NULL
12576 };
12577
12578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextCtrl_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12580 if (!SWIG_IsOK(res1)) {
12581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12582 }
12583 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12584 {
12585 arg2 = wxString_in_helper(obj1);
12586 if (arg2 == NULL) SWIG_fail;
12587 temp2 = true;
12588 }
12589 if (obj2) {
12590 ecode3 = SWIG_AsVal_int(obj2, &val3);
12591 if (!SWIG_IsOK(ecode3)) {
12592 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_LoadFile" "', expected argument " "3"" of type '" "int""'");
12593 }
12594 arg3 = static_cast< int >(val3);
12595 }
12596 {
12597 PyThreadState* __tstate = wxPyBeginAllowThreads();
12598 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
12599 wxPyEndAllowThreads(__tstate);
12600 if (PyErr_Occurred()) SWIG_fail;
12601 }
12602 {
12603 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12604 }
12605 {
12606 if (temp2)
12607 delete arg2;
12608 }
12609 return resultobj;
12610 fail:
12611 {
12612 if (temp2)
12613 delete arg2;
12614 }
12615 return NULL;
12616 }
12617
12618
12619 SWIGINTERN PyObject *_wrap_TextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12620 PyObject *resultobj = 0;
12621 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12622 wxString const &arg2_defvalue = wxPyEmptyString ;
12623 wxString *arg2 = (wxString *) &arg2_defvalue ;
12624 int arg3 = (int) wxTEXT_TYPE_ANY ;
12625 bool result;
12626 void *argp1 = 0 ;
12627 int res1 = 0 ;
12628 bool temp2 = false ;
12629 int val3 ;
12630 int ecode3 = 0 ;
12631 PyObject * obj0 = 0 ;
12632 PyObject * obj1 = 0 ;
12633 PyObject * obj2 = 0 ;
12634 char * kwnames[] = {
12635 (char *) "self",(char *) "file",(char *) "fileType", NULL
12636 };
12637
12638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:TextCtrl_SaveFile",kwnames,&obj0,&obj1,&obj2)) 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_SaveFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12642 }
12643 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12644 if (obj1) {
12645 {
12646 arg2 = wxString_in_helper(obj1);
12647 if (arg2 == NULL) SWIG_fail;
12648 temp2 = true;
12649 }
12650 }
12651 if (obj2) {
12652 ecode3 = SWIG_AsVal_int(obj2, &val3);
12653 if (!SWIG_IsOK(ecode3)) {
12654 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SaveFile" "', expected argument " "3"" of type '" "int""'");
12655 }
12656 arg3 = static_cast< int >(val3);
12657 }
12658 {
12659 PyThreadState* __tstate = wxPyBeginAllowThreads();
12660 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3);
12661 wxPyEndAllowThreads(__tstate);
12662 if (PyErr_Occurred()) SWIG_fail;
12663 }
12664 {
12665 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12666 }
12667 {
12668 if (temp2)
12669 delete arg2;
12670 }
12671 return resultobj;
12672 fail:
12673 {
12674 if (temp2)
12675 delete arg2;
12676 }
12677 return NULL;
12678 }
12679
12680
12681 SWIGINTERN PyObject *_wrap_TextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12682 PyObject *resultobj = 0;
12683 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12684 void *argp1 = 0 ;
12685 int res1 = 0 ;
12686 PyObject *swig_obj[1] ;
12687
12688 if (!args) SWIG_fail;
12689 swig_obj[0] = args;
12690 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12691 if (!SWIG_IsOK(res1)) {
12692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12693 }
12694 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12695 {
12696 PyThreadState* __tstate = wxPyBeginAllowThreads();
12697 (arg1)->MarkDirty();
12698 wxPyEndAllowThreads(__tstate);
12699 if (PyErr_Occurred()) SWIG_fail;
12700 }
12701 resultobj = SWIG_Py_Void();
12702 return resultobj;
12703 fail:
12704 return NULL;
12705 }
12706
12707
12708 SWIGINTERN PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12709 PyObject *resultobj = 0;
12710 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12711 void *argp1 = 0 ;
12712 int res1 = 0 ;
12713 PyObject *swig_obj[1] ;
12714
12715 if (!args) SWIG_fail;
12716 swig_obj[0] = args;
12717 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12718 if (!SWIG_IsOK(res1)) {
12719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12720 }
12721 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12722 {
12723 PyThreadState* __tstate = wxPyBeginAllowThreads();
12724 (arg1)->DiscardEdits();
12725 wxPyEndAllowThreads(__tstate);
12726 if (PyErr_Occurred()) SWIG_fail;
12727 }
12728 resultobj = SWIG_Py_Void();
12729 return resultobj;
12730 fail:
12731 return NULL;
12732 }
12733
12734
12735 SWIGINTERN PyObject *_wrap_TextCtrl_SetModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12736 PyObject *resultobj = 0;
12737 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12738 bool arg2 ;
12739 void *argp1 = 0 ;
12740 int res1 = 0 ;
12741 bool val2 ;
12742 int ecode2 = 0 ;
12743 PyObject * obj0 = 0 ;
12744 PyObject * obj1 = 0 ;
12745 char * kwnames[] = {
12746 (char *) "self",(char *) "modified", NULL
12747 };
12748
12749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetModified",kwnames,&obj0,&obj1)) SWIG_fail;
12750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12751 if (!SWIG_IsOK(res1)) {
12752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetModified" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12753 }
12754 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12755 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12756 if (!SWIG_IsOK(ecode2)) {
12757 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetModified" "', expected argument " "2"" of type '" "bool""'");
12758 }
12759 arg2 = static_cast< bool >(val2);
12760 {
12761 PyThreadState* __tstate = wxPyBeginAllowThreads();
12762 (arg1)->SetModified(arg2);
12763 wxPyEndAllowThreads(__tstate);
12764 if (PyErr_Occurred()) SWIG_fail;
12765 }
12766 resultobj = SWIG_Py_Void();
12767 return resultobj;
12768 fail:
12769 return NULL;
12770 }
12771
12772
12773 SWIGINTERN PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12774 PyObject *resultobj = 0;
12775 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12776 unsigned long arg2 ;
12777 void *argp1 = 0 ;
12778 int res1 = 0 ;
12779 unsigned long val2 ;
12780 int ecode2 = 0 ;
12781 PyObject * obj0 = 0 ;
12782 PyObject * obj1 = 0 ;
12783 char * kwnames[] = {
12784 (char *) "self",(char *) "len", NULL
12785 };
12786
12787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail;
12788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12789 if (!SWIG_IsOK(res1)) {
12790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12791 }
12792 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12793 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
12794 if (!SWIG_IsOK(ecode2)) {
12795 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'");
12796 }
12797 arg2 = static_cast< unsigned long >(val2);
12798 {
12799 PyThreadState* __tstate = wxPyBeginAllowThreads();
12800 (arg1)->SetMaxLength(arg2);
12801 wxPyEndAllowThreads(__tstate);
12802 if (PyErr_Occurred()) SWIG_fail;
12803 }
12804 resultobj = SWIG_Py_Void();
12805 return resultobj;
12806 fail:
12807 return NULL;
12808 }
12809
12810
12811 SWIGINTERN PyObject *_wrap_TextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12812 PyObject *resultobj = 0;
12813 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12814 wxString *arg2 = 0 ;
12815 void *argp1 = 0 ;
12816 int res1 = 0 ;
12817 bool temp2 = false ;
12818 PyObject * obj0 = 0 ;
12819 PyObject * obj1 = 0 ;
12820 char * kwnames[] = {
12821 (char *) "self",(char *) "text", NULL
12822 };
12823
12824 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail;
12825 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12826 if (!SWIG_IsOK(res1)) {
12827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_WriteText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12828 }
12829 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12830 {
12831 arg2 = wxString_in_helper(obj1);
12832 if (arg2 == NULL) SWIG_fail;
12833 temp2 = true;
12834 }
12835 {
12836 PyThreadState* __tstate = wxPyBeginAllowThreads();
12837 (arg1)->WriteText((wxString const &)*arg2);
12838 wxPyEndAllowThreads(__tstate);
12839 if (PyErr_Occurred()) SWIG_fail;
12840 }
12841 resultobj = SWIG_Py_Void();
12842 {
12843 if (temp2)
12844 delete arg2;
12845 }
12846 return resultobj;
12847 fail:
12848 {
12849 if (temp2)
12850 delete arg2;
12851 }
12852 return NULL;
12853 }
12854
12855
12856 SWIGINTERN PyObject *_wrap_TextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12857 PyObject *resultobj = 0;
12858 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12859 wxString *arg2 = 0 ;
12860 void *argp1 = 0 ;
12861 int res1 = 0 ;
12862 bool temp2 = false ;
12863 PyObject * obj0 = 0 ;
12864 PyObject * obj1 = 0 ;
12865 char * kwnames[] = {
12866 (char *) "self",(char *) "text", NULL
12867 };
12868
12869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail;
12870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12871 if (!SWIG_IsOK(res1)) {
12872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_AppendText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12873 }
12874 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12875 {
12876 arg2 = wxString_in_helper(obj1);
12877 if (arg2 == NULL) SWIG_fail;
12878 temp2 = true;
12879 }
12880 {
12881 PyThreadState* __tstate = wxPyBeginAllowThreads();
12882 (arg1)->AppendText((wxString const &)*arg2);
12883 wxPyEndAllowThreads(__tstate);
12884 if (PyErr_Occurred()) SWIG_fail;
12885 }
12886 resultobj = SWIG_Py_Void();
12887 {
12888 if (temp2)
12889 delete arg2;
12890 }
12891 return resultobj;
12892 fail:
12893 {
12894 if (temp2)
12895 delete arg2;
12896 }
12897 return NULL;
12898 }
12899
12900
12901 SWIGINTERN PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12902 PyObject *resultobj = 0;
12903 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12904 wxKeyEvent *arg2 = 0 ;
12905 bool result;
12906 void *argp1 = 0 ;
12907 int res1 = 0 ;
12908 void *argp2 = 0 ;
12909 int res2 = 0 ;
12910 PyObject * obj0 = 0 ;
12911 PyObject * obj1 = 0 ;
12912 char * kwnames[] = {
12913 (char *) "self",(char *) "event", NULL
12914 };
12915
12916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) SWIG_fail;
12917 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12918 if (!SWIG_IsOK(res1)) {
12919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12920 }
12921 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12922 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
12923 if (!SWIG_IsOK(res2)) {
12924 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12925 }
12926 if (!argp2) {
12927 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12928 }
12929 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
12930 {
12931 PyThreadState* __tstate = wxPyBeginAllowThreads();
12932 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
12933 wxPyEndAllowThreads(__tstate);
12934 if (PyErr_Occurred()) SWIG_fail;
12935 }
12936 {
12937 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12938 }
12939 return resultobj;
12940 fail:
12941 return NULL;
12942 }
12943
12944
12945 SWIGINTERN PyObject *_wrap_TextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12946 PyObject *resultobj = 0;
12947 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12948 long arg2 ;
12949 long arg3 ;
12950 wxTextAttr *arg4 = 0 ;
12951 bool result;
12952 void *argp1 = 0 ;
12953 int res1 = 0 ;
12954 long val2 ;
12955 int ecode2 = 0 ;
12956 long val3 ;
12957 int ecode3 = 0 ;
12958 void *argp4 = 0 ;
12959 int res4 = 0 ;
12960 PyObject * obj0 = 0 ;
12961 PyObject * obj1 = 0 ;
12962 PyObject * obj2 = 0 ;
12963 PyObject * obj3 = 0 ;
12964 char * kwnames[] = {
12965 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
12966 };
12967
12968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) 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_SetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
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_SetStyle" "', 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_SetStyle" "', expected argument " "3"" of type '" "long""'");
12982 }
12983 arg3 = static_cast< long >(val3);
12984 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxTextAttr, 0 | 0);
12985 if (!SWIG_IsOK(res4)) {
12986 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12987 }
12988 if (!argp4) {
12989 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12990 }
12991 arg4 = reinterpret_cast< wxTextAttr * >(argp4);
12992 {
12993 PyThreadState* __tstate = wxPyBeginAllowThreads();
12994 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
12995 wxPyEndAllowThreads(__tstate);
12996 if (PyErr_Occurred()) SWIG_fail;
12997 }
12998 {
12999 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13000 }
13001 return resultobj;
13002 fail:
13003 return NULL;
13004 }
13005
13006
13007 SWIGINTERN PyObject *_wrap_TextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13008 PyObject *resultobj = 0;
13009 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13010 long arg2 ;
13011 wxTextAttr *arg3 = 0 ;
13012 bool result;
13013 void *argp1 = 0 ;
13014 int res1 = 0 ;
13015 long val2 ;
13016 int ecode2 = 0 ;
13017 void *argp3 = 0 ;
13018 int res3 = 0 ;
13019 PyObject * obj0 = 0 ;
13020 PyObject * obj1 = 0 ;
13021 PyObject * obj2 = 0 ;
13022 char * kwnames[] = {
13023 (char *) "self",(char *) "position",(char *) "style", NULL
13024 };
13025
13026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13028 if (!SWIG_IsOK(res1)) {
13029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13030 }
13031 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13032 ecode2 = SWIG_AsVal_long(obj1, &val2);
13033 if (!SWIG_IsOK(ecode2)) {
13034 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'");
13035 }
13036 arg2 = static_cast< long >(val2);
13037 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTextAttr, 0 );
13038 if (!SWIG_IsOK(res3)) {
13039 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
13040 }
13041 if (!argp3) {
13042 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
13043 }
13044 arg3 = reinterpret_cast< wxTextAttr * >(argp3);
13045 {
13046 PyThreadState* __tstate = wxPyBeginAllowThreads();
13047 result = (bool)(arg1)->GetStyle(arg2,*arg3);
13048 wxPyEndAllowThreads(__tstate);
13049 if (PyErr_Occurred()) SWIG_fail;
13050 }
13051 {
13052 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13053 }
13054 return resultobj;
13055 fail:
13056 return NULL;
13057 }
13058
13059
13060 SWIGINTERN PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13061 PyObject *resultobj = 0;
13062 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13063 wxTextAttr *arg2 = 0 ;
13064 bool result;
13065 void *argp1 = 0 ;
13066 int res1 = 0 ;
13067 void *argp2 = 0 ;
13068 int res2 = 0 ;
13069 PyObject * obj0 = 0 ;
13070 PyObject * obj1 = 0 ;
13071 char * kwnames[] = {
13072 (char *) "self",(char *) "style", NULL
13073 };
13074
13075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail;
13076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13077 if (!SWIG_IsOK(res1)) {
13078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13079 }
13080 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13081 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
13082 if (!SWIG_IsOK(res2)) {
13083 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
13084 }
13085 if (!argp2) {
13086 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
13087 }
13088 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
13089 {
13090 PyThreadState* __tstate = wxPyBeginAllowThreads();
13091 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
13092 wxPyEndAllowThreads(__tstate);
13093 if (PyErr_Occurred()) SWIG_fail;
13094 }
13095 {
13096 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13097 }
13098 return resultobj;
13099 fail:
13100 return NULL;
13101 }
13102
13103
13104 SWIGINTERN PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13105 PyObject *resultobj = 0;
13106 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13107 wxTextAttr *result = 0 ;
13108 void *argp1 = 0 ;
13109 int res1 = 0 ;
13110 PyObject *swig_obj[1] ;
13111
13112 if (!args) SWIG_fail;
13113 swig_obj[0] = args;
13114 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13115 if (!SWIG_IsOK(res1)) {
13116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13117 }
13118 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13119 {
13120 PyThreadState* __tstate = wxPyBeginAllowThreads();
13121 {
13122 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
13123 result = (wxTextAttr *) &_result_ref;
13124 }
13125 wxPyEndAllowThreads(__tstate);
13126 if (PyErr_Occurred()) SWIG_fail;
13127 }
13128 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, 0 | 0 );
13129 return resultobj;
13130 fail:
13131 return NULL;
13132 }
13133
13134
13135 SWIGINTERN PyObject *_wrap_TextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13136 PyObject *resultobj = 0;
13137 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13138 long arg2 ;
13139 long arg3 ;
13140 long result;
13141 void *argp1 = 0 ;
13142 int res1 = 0 ;
13143 long val2 ;
13144 int ecode2 = 0 ;
13145 long val3 ;
13146 int ecode3 = 0 ;
13147 PyObject * obj0 = 0 ;
13148 PyObject * obj1 = 0 ;
13149 PyObject * obj2 = 0 ;
13150 char * kwnames[] = {
13151 (char *) "self",(char *) "x",(char *) "y", NULL
13152 };
13153
13154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13155 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13156 if (!SWIG_IsOK(res1)) {
13157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13158 }
13159 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13160 ecode2 = SWIG_AsVal_long(obj1, &val2);
13161 if (!SWIG_IsOK(ecode2)) {
13162 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'");
13163 }
13164 arg2 = static_cast< long >(val2);
13165 ecode3 = SWIG_AsVal_long(obj2, &val3);
13166 if (!SWIG_IsOK(ecode3)) {
13167 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'");
13168 }
13169 arg3 = static_cast< long >(val3);
13170 {
13171 PyThreadState* __tstate = wxPyBeginAllowThreads();
13172 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
13173 wxPyEndAllowThreads(__tstate);
13174 if (PyErr_Occurred()) SWIG_fail;
13175 }
13176 resultobj = SWIG_From_long(static_cast< long >(result));
13177 return resultobj;
13178 fail:
13179 return NULL;
13180 }
13181
13182
13183 SWIGINTERN PyObject *_wrap_TextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13184 PyObject *resultobj = 0;
13185 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13186 long arg2 ;
13187 long *arg3 = (long *) 0 ;
13188 long *arg4 = (long *) 0 ;
13189 void *argp1 = 0 ;
13190 int res1 = 0 ;
13191 long val2 ;
13192 int ecode2 = 0 ;
13193 long temp3 ;
13194 int res3 = SWIG_TMPOBJ ;
13195 long temp4 ;
13196 int res4 = SWIG_TMPOBJ ;
13197 PyObject * obj0 = 0 ;
13198 PyObject * obj1 = 0 ;
13199 char * kwnames[] = {
13200 (char *) "self",(char *) "pos", NULL
13201 };
13202
13203 arg3 = &temp3;
13204 arg4 = &temp4;
13205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail;
13206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13207 if (!SWIG_IsOK(res1)) {
13208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13209 }
13210 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13211 ecode2 = SWIG_AsVal_long(obj1, &val2);
13212 if (!SWIG_IsOK(ecode2)) {
13213 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'");
13214 }
13215 arg2 = static_cast< long >(val2);
13216 {
13217 PyThreadState* __tstate = wxPyBeginAllowThreads();
13218 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
13219 wxPyEndAllowThreads(__tstate);
13220 if (PyErr_Occurred()) SWIG_fail;
13221 }
13222 resultobj = SWIG_Py_Void();
13223 if (SWIG_IsTmpObj(res3)) {
13224 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13225 } else {
13226 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13227 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13228 }
13229 if (SWIG_IsTmpObj(res4)) {
13230 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13231 } else {
13232 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13233 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13234 }
13235 return resultobj;
13236 fail:
13237 return NULL;
13238 }
13239
13240
13241 SWIGINTERN PyObject *_wrap_TextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13242 PyObject *resultobj = 0;
13243 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13244 long arg2 ;
13245 void *argp1 = 0 ;
13246 int res1 = 0 ;
13247 long val2 ;
13248 int ecode2 = 0 ;
13249 PyObject * obj0 = 0 ;
13250 PyObject * obj1 = 0 ;
13251 char * kwnames[] = {
13252 (char *) "self",(char *) "pos", NULL
13253 };
13254
13255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail;
13256 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13257 if (!SWIG_IsOK(res1)) {
13258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13259 }
13260 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13261 ecode2 = SWIG_AsVal_long(obj1, &val2);
13262 if (!SWIG_IsOK(ecode2)) {
13263 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'");
13264 }
13265 arg2 = static_cast< long >(val2);
13266 {
13267 PyThreadState* __tstate = wxPyBeginAllowThreads();
13268 (arg1)->ShowPosition(arg2);
13269 wxPyEndAllowThreads(__tstate);
13270 if (PyErr_Occurred()) SWIG_fail;
13271 }
13272 resultobj = SWIG_Py_Void();
13273 return resultobj;
13274 fail:
13275 return NULL;
13276 }
13277
13278
13279 SWIGINTERN PyObject *_wrap_TextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13280 PyObject *resultobj = 0;
13281 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13282 wxPoint *arg2 = 0 ;
13283 long *arg3 = (long *) 0 ;
13284 long *arg4 = (long *) 0 ;
13285 wxTextCtrlHitTestResult result;
13286 void *argp1 = 0 ;
13287 int res1 = 0 ;
13288 wxPoint temp2 ;
13289 long temp3 ;
13290 int res3 = SWIG_TMPOBJ ;
13291 long temp4 ;
13292 int res4 = SWIG_TMPOBJ ;
13293 PyObject * obj0 = 0 ;
13294 PyObject * obj1 = 0 ;
13295 char * kwnames[] = {
13296 (char *) "self",(char *) "pt", NULL
13297 };
13298
13299 arg3 = &temp3;
13300 arg4 = &temp4;
13301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
13302 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13303 if (!SWIG_IsOK(res1)) {
13304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTest" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13305 }
13306 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13307 {
13308 arg2 = &temp2;
13309 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13310 }
13311 {
13312 PyThreadState* __tstate = wxPyBeginAllowThreads();
13313 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
13314 wxPyEndAllowThreads(__tstate);
13315 if (PyErr_Occurred()) SWIG_fail;
13316 }
13317 resultobj = SWIG_From_int(static_cast< int >(result));
13318 if (SWIG_IsTmpObj(res3)) {
13319 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13320 } else {
13321 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13322 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13323 }
13324 if (SWIG_IsTmpObj(res4)) {
13325 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13326 } else {
13327 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13328 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13329 }
13330 return resultobj;
13331 fail:
13332 return NULL;
13333 }
13334
13335
13336 SWIGINTERN PyObject *_wrap_TextCtrl_HitTestPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13337 PyObject *resultobj = 0;
13338 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13339 wxPoint *arg2 = 0 ;
13340 long *arg3 = (long *) 0 ;
13341 wxTextCtrlHitTestResult result;
13342 void *argp1 = 0 ;
13343 int res1 = 0 ;
13344 wxPoint temp2 ;
13345 long temp3 ;
13346 int res3 = SWIG_TMPOBJ ;
13347 PyObject * obj0 = 0 ;
13348 PyObject * obj1 = 0 ;
13349 char * kwnames[] = {
13350 (char *) "self",(char *) "pt", NULL
13351 };
13352
13353 arg3 = &temp3;
13354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) SWIG_fail;
13355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13356 if (!SWIG_IsOK(res1)) {
13357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTestPos" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13358 }
13359 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13360 {
13361 arg2 = &temp2;
13362 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13363 }
13364 {
13365 PyThreadState* __tstate = wxPyBeginAllowThreads();
13366 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
13367 wxPyEndAllowThreads(__tstate);
13368 if (PyErr_Occurred()) SWIG_fail;
13369 }
13370 resultobj = SWIG_From_int(static_cast< int >(result));
13371 if (SWIG_IsTmpObj(res3)) {
13372 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13373 } else {
13374 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13375 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13376 }
13377 return resultobj;
13378 fail:
13379 return NULL;
13380 }
13381
13382
13383 SWIGINTERN PyObject *_wrap_TextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13384 PyObject *resultobj = 0;
13385 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13386 void *argp1 = 0 ;
13387 int res1 = 0 ;
13388 PyObject *swig_obj[1] ;
13389
13390 if (!args) SWIG_fail;
13391 swig_obj[0] = args;
13392 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13393 if (!SWIG_IsOK(res1)) {
13394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Copy" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13395 }
13396 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13397 {
13398 PyThreadState* __tstate = wxPyBeginAllowThreads();
13399 (arg1)->Copy();
13400 wxPyEndAllowThreads(__tstate);
13401 if (PyErr_Occurred()) SWIG_fail;
13402 }
13403 resultobj = SWIG_Py_Void();
13404 return resultobj;
13405 fail:
13406 return NULL;
13407 }
13408
13409
13410 SWIGINTERN PyObject *_wrap_TextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13411 PyObject *resultobj = 0;
13412 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13413 void *argp1 = 0 ;
13414 int res1 = 0 ;
13415 PyObject *swig_obj[1] ;
13416
13417 if (!args) SWIG_fail;
13418 swig_obj[0] = args;
13419 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13420 if (!SWIG_IsOK(res1)) {
13421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Cut" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13422 }
13423 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13424 {
13425 PyThreadState* __tstate = wxPyBeginAllowThreads();
13426 (arg1)->Cut();
13427 wxPyEndAllowThreads(__tstate);
13428 if (PyErr_Occurred()) SWIG_fail;
13429 }
13430 resultobj = SWIG_Py_Void();
13431 return resultobj;
13432 fail:
13433 return NULL;
13434 }
13435
13436
13437 SWIGINTERN PyObject *_wrap_TextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13438 PyObject *resultobj = 0;
13439 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13440 void *argp1 = 0 ;
13441 int res1 = 0 ;
13442 PyObject *swig_obj[1] ;
13443
13444 if (!args) SWIG_fail;
13445 swig_obj[0] = args;
13446 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13447 if (!SWIG_IsOK(res1)) {
13448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Paste" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13449 }
13450 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13451 {
13452 PyThreadState* __tstate = wxPyBeginAllowThreads();
13453 (arg1)->Paste();
13454 wxPyEndAllowThreads(__tstate);
13455 if (PyErr_Occurred()) SWIG_fail;
13456 }
13457 resultobj = SWIG_Py_Void();
13458 return resultobj;
13459 fail:
13460 return NULL;
13461 }
13462
13463
13464 SWIGINTERN PyObject *_wrap_TextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13465 PyObject *resultobj = 0;
13466 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13467 bool result;
13468 void *argp1 = 0 ;
13469 int res1 = 0 ;
13470 PyObject *swig_obj[1] ;
13471
13472 if (!args) SWIG_fail;
13473 swig_obj[0] = args;
13474 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13475 if (!SWIG_IsOK(res1)) {
13476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13477 }
13478 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13479 {
13480 PyThreadState* __tstate = wxPyBeginAllowThreads();
13481 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
13482 wxPyEndAllowThreads(__tstate);
13483 if (PyErr_Occurred()) SWIG_fail;
13484 }
13485 {
13486 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13487 }
13488 return resultobj;
13489 fail:
13490 return NULL;
13491 }
13492
13493
13494 SWIGINTERN PyObject *_wrap_TextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13495 PyObject *resultobj = 0;
13496 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13497 bool result;
13498 void *argp1 = 0 ;
13499 int res1 = 0 ;
13500 PyObject *swig_obj[1] ;
13501
13502 if (!args) SWIG_fail;
13503 swig_obj[0] = args;
13504 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13505 if (!SWIG_IsOK(res1)) {
13506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCut" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13507 }
13508 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13509 {
13510 PyThreadState* __tstate = wxPyBeginAllowThreads();
13511 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
13512 wxPyEndAllowThreads(__tstate);
13513 if (PyErr_Occurred()) SWIG_fail;
13514 }
13515 {
13516 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13517 }
13518 return resultobj;
13519 fail:
13520 return NULL;
13521 }
13522
13523
13524 SWIGINTERN PyObject *_wrap_TextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13525 PyObject *resultobj = 0;
13526 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13527 bool result;
13528 void *argp1 = 0 ;
13529 int res1 = 0 ;
13530 PyObject *swig_obj[1] ;
13531
13532 if (!args) SWIG_fail;
13533 swig_obj[0] = args;
13534 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13535 if (!SWIG_IsOK(res1)) {
13536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13537 }
13538 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13539 {
13540 PyThreadState* __tstate = wxPyBeginAllowThreads();
13541 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
13542 wxPyEndAllowThreads(__tstate);
13543 if (PyErr_Occurred()) SWIG_fail;
13544 }
13545 {
13546 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13547 }
13548 return resultobj;
13549 fail:
13550 return NULL;
13551 }
13552
13553
13554 SWIGINTERN PyObject *_wrap_TextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13555 PyObject *resultobj = 0;
13556 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13557 void *argp1 = 0 ;
13558 int res1 = 0 ;
13559 PyObject *swig_obj[1] ;
13560
13561 if (!args) SWIG_fail;
13562 swig_obj[0] = args;
13563 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13564 if (!SWIG_IsOK(res1)) {
13565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Undo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13566 }
13567 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13568 {
13569 PyThreadState* __tstate = wxPyBeginAllowThreads();
13570 (arg1)->Undo();
13571 wxPyEndAllowThreads(__tstate);
13572 if (PyErr_Occurred()) SWIG_fail;
13573 }
13574 resultobj = SWIG_Py_Void();
13575 return resultobj;
13576 fail:
13577 return NULL;
13578 }
13579
13580
13581 SWIGINTERN PyObject *_wrap_TextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13582 PyObject *resultobj = 0;
13583 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13584 void *argp1 = 0 ;
13585 int res1 = 0 ;
13586 PyObject *swig_obj[1] ;
13587
13588 if (!args) SWIG_fail;
13589 swig_obj[0] = args;
13590 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13591 if (!SWIG_IsOK(res1)) {
13592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Redo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13593 }
13594 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13595 {
13596 PyThreadState* __tstate = wxPyBeginAllowThreads();
13597 (arg1)->Redo();
13598 wxPyEndAllowThreads(__tstate);
13599 if (PyErr_Occurred()) SWIG_fail;
13600 }
13601 resultobj = SWIG_Py_Void();
13602 return resultobj;
13603 fail:
13604 return NULL;
13605 }
13606
13607
13608 SWIGINTERN PyObject *_wrap_TextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13609 PyObject *resultobj = 0;
13610 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13611 bool result;
13612 void *argp1 = 0 ;
13613 int res1 = 0 ;
13614 PyObject *swig_obj[1] ;
13615
13616 if (!args) SWIG_fail;
13617 swig_obj[0] = args;
13618 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13619 if (!SWIG_IsOK(res1)) {
13620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13621 }
13622 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13623 {
13624 PyThreadState* __tstate = wxPyBeginAllowThreads();
13625 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
13626 wxPyEndAllowThreads(__tstate);
13627 if (PyErr_Occurred()) SWIG_fail;
13628 }
13629 {
13630 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13631 }
13632 return resultobj;
13633 fail:
13634 return NULL;
13635 }
13636
13637
13638 SWIGINTERN PyObject *_wrap_TextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13639 PyObject *resultobj = 0;
13640 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13641 bool result;
13642 void *argp1 = 0 ;
13643 int res1 = 0 ;
13644 PyObject *swig_obj[1] ;
13645
13646 if (!args) SWIG_fail;
13647 swig_obj[0] = args;
13648 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13649 if (!SWIG_IsOK(res1)) {
13650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13651 }
13652 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13653 {
13654 PyThreadState* __tstate = wxPyBeginAllowThreads();
13655 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
13656 wxPyEndAllowThreads(__tstate);
13657 if (PyErr_Occurred()) SWIG_fail;
13658 }
13659 {
13660 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13661 }
13662 return resultobj;
13663 fail:
13664 return NULL;
13665 }
13666
13667
13668 SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13669 PyObject *resultobj = 0;
13670 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13671 long arg2 ;
13672 void *argp1 = 0 ;
13673 int res1 = 0 ;
13674 long val2 ;
13675 int ecode2 = 0 ;
13676 PyObject * obj0 = 0 ;
13677 PyObject * obj1 = 0 ;
13678 char * kwnames[] = {
13679 (char *) "self",(char *) "pos", NULL
13680 };
13681
13682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
13683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13684 if (!SWIG_IsOK(res1)) {
13685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13686 }
13687 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13688 ecode2 = SWIG_AsVal_long(obj1, &val2);
13689 if (!SWIG_IsOK(ecode2)) {
13690 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
13691 }
13692 arg2 = static_cast< long >(val2);
13693 {
13694 PyThreadState* __tstate = wxPyBeginAllowThreads();
13695 (arg1)->SetInsertionPoint(arg2);
13696 wxPyEndAllowThreads(__tstate);
13697 if (PyErr_Occurred()) SWIG_fail;
13698 }
13699 resultobj = SWIG_Py_Void();
13700 return resultobj;
13701 fail:
13702 return NULL;
13703 }
13704
13705
13706 SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13707 PyObject *resultobj = 0;
13708 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13709 void *argp1 = 0 ;
13710 int res1 = 0 ;
13711 PyObject *swig_obj[1] ;
13712
13713 if (!args) SWIG_fail;
13714 swig_obj[0] = args;
13715 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13716 if (!SWIG_IsOK(res1)) {
13717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13718 }
13719 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13720 {
13721 PyThreadState* __tstate = wxPyBeginAllowThreads();
13722 (arg1)->SetInsertionPointEnd();
13723 wxPyEndAllowThreads(__tstate);
13724 if (PyErr_Occurred()) SWIG_fail;
13725 }
13726 resultobj = SWIG_Py_Void();
13727 return resultobj;
13728 fail:
13729 return NULL;
13730 }
13731
13732
13733 SWIGINTERN PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13734 PyObject *resultobj = 0;
13735 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13736 long result;
13737 void *argp1 = 0 ;
13738 int res1 = 0 ;
13739 PyObject *swig_obj[1] ;
13740
13741 if (!args) SWIG_fail;
13742 swig_obj[0] = args;
13743 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13744 if (!SWIG_IsOK(res1)) {
13745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13746 }
13747 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13748 {
13749 PyThreadState* __tstate = wxPyBeginAllowThreads();
13750 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
13751 wxPyEndAllowThreads(__tstate);
13752 if (PyErr_Occurred()) SWIG_fail;
13753 }
13754 resultobj = SWIG_From_long(static_cast< long >(result));
13755 return resultobj;
13756 fail:
13757 return NULL;
13758 }
13759
13760
13761 SWIGINTERN PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13762 PyObject *resultobj = 0;
13763 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13764 long result;
13765 void *argp1 = 0 ;
13766 int res1 = 0 ;
13767 PyObject *swig_obj[1] ;
13768
13769 if (!args) SWIG_fail;
13770 swig_obj[0] = args;
13771 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13772 if (!SWIG_IsOK(res1)) {
13773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13774 }
13775 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13776 {
13777 PyThreadState* __tstate = wxPyBeginAllowThreads();
13778 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
13779 wxPyEndAllowThreads(__tstate);
13780 if (PyErr_Occurred()) SWIG_fail;
13781 }
13782 resultobj = SWIG_From_long(static_cast< long >(result));
13783 return resultobj;
13784 fail:
13785 return NULL;
13786 }
13787
13788
13789 SWIGINTERN PyObject *_wrap_TextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13790 PyObject *resultobj = 0;
13791 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13792 long arg2 ;
13793 long arg3 ;
13794 void *argp1 = 0 ;
13795 int res1 = 0 ;
13796 long val2 ;
13797 int ecode2 = 0 ;
13798 long val3 ;
13799 int ecode3 = 0 ;
13800 PyObject * obj0 = 0 ;
13801 PyObject * obj1 = 0 ;
13802 PyObject * obj2 = 0 ;
13803 char * kwnames[] = {
13804 (char *) "self",(char *) "from",(char *) "to", NULL
13805 };
13806
13807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13808 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13809 if (!SWIG_IsOK(res1)) {
13810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13811 }
13812 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13813 ecode2 = SWIG_AsVal_long(obj1, &val2);
13814 if (!SWIG_IsOK(ecode2)) {
13815 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
13816 }
13817 arg2 = static_cast< long >(val2);
13818 ecode3 = SWIG_AsVal_long(obj2, &val3);
13819 if (!SWIG_IsOK(ecode3)) {
13820 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
13821 }
13822 arg3 = static_cast< long >(val3);
13823 {
13824 PyThreadState* __tstate = wxPyBeginAllowThreads();
13825 (arg1)->SetSelection(arg2,arg3);
13826 wxPyEndAllowThreads(__tstate);
13827 if (PyErr_Occurred()) SWIG_fail;
13828 }
13829 resultobj = SWIG_Py_Void();
13830 return resultobj;
13831 fail:
13832 return NULL;
13833 }
13834
13835
13836 SWIGINTERN PyObject *_wrap_TextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13837 PyObject *resultobj = 0;
13838 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13839 void *argp1 = 0 ;
13840 int res1 = 0 ;
13841 PyObject *swig_obj[1] ;
13842
13843 if (!args) SWIG_fail;
13844 swig_obj[0] = args;
13845 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13846 if (!SWIG_IsOK(res1)) {
13847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13848 }
13849 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13850 {
13851 PyThreadState* __tstate = wxPyBeginAllowThreads();
13852 (arg1)->SelectAll();
13853 wxPyEndAllowThreads(__tstate);
13854 if (PyErr_Occurred()) SWIG_fail;
13855 }
13856 resultobj = SWIG_Py_Void();
13857 return resultobj;
13858 fail:
13859 return NULL;
13860 }
13861
13862
13863 SWIGINTERN PyObject *_wrap_TextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13864 PyObject *resultobj = 0;
13865 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13866 bool arg2 ;
13867 void *argp1 = 0 ;
13868 int res1 = 0 ;
13869 bool val2 ;
13870 int ecode2 = 0 ;
13871 PyObject * obj0 = 0 ;
13872 PyObject * obj1 = 0 ;
13873 char * kwnames[] = {
13874 (char *) "self",(char *) "editable", NULL
13875 };
13876
13877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
13878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13879 if (!SWIG_IsOK(res1)) {
13880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13881 }
13882 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13883 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13884 if (!SWIG_IsOK(ecode2)) {
13885 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'");
13886 }
13887 arg2 = static_cast< bool >(val2);
13888 {
13889 PyThreadState* __tstate = wxPyBeginAllowThreads();
13890 (arg1)->SetEditable(arg2);
13891 wxPyEndAllowThreads(__tstate);
13892 if (PyErr_Occurred()) SWIG_fail;
13893 }
13894 resultobj = SWIG_Py_Void();
13895 return resultobj;
13896 fail:
13897 return NULL;
13898 }
13899
13900
13901 SWIGINTERN PyObject *_wrap_TextCtrl_MacCheckSpelling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13902 PyObject *resultobj = 0;
13903 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13904 bool arg2 ;
13905 void *argp1 = 0 ;
13906 int res1 = 0 ;
13907 bool val2 ;
13908 int ecode2 = 0 ;
13909 PyObject * obj0 = 0 ;
13910 PyObject * obj1 = 0 ;
13911 char * kwnames[] = {
13912 (char *) "self",(char *) "check", NULL
13913 };
13914
13915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_MacCheckSpelling",kwnames,&obj0,&obj1)) SWIG_fail;
13916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13917 if (!SWIG_IsOK(res1)) {
13918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MacCheckSpelling" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13919 }
13920 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13921 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13922 if (!SWIG_IsOK(ecode2)) {
13923 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_MacCheckSpelling" "', expected argument " "2"" of type '" "bool""'");
13924 }
13925 arg2 = static_cast< bool >(val2);
13926 {
13927 PyThreadState* __tstate = wxPyBeginAllowThreads();
13928 wxTextCtrl_MacCheckSpelling(arg1,arg2);
13929 wxPyEndAllowThreads(__tstate);
13930 if (PyErr_Occurred()) SWIG_fail;
13931 }
13932 resultobj = SWIG_Py_Void();
13933 return resultobj;
13934 fail:
13935 return NULL;
13936 }
13937
13938
13939 SWIGINTERN PyObject *_wrap_TextCtrl_SendTextUpdatedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13940 PyObject *resultobj = 0;
13941 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13942 void *argp1 = 0 ;
13943 int res1 = 0 ;
13944 PyObject *swig_obj[1] ;
13945
13946 if (!args) SWIG_fail;
13947 swig_obj[0] = args;
13948 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13949 if (!SWIG_IsOK(res1)) {
13950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SendTextUpdatedEvent" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13951 }
13952 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13953 {
13954 PyThreadState* __tstate = wxPyBeginAllowThreads();
13955 (arg1)->SendTextUpdatedEvent();
13956 wxPyEndAllowThreads(__tstate);
13957 if (PyErr_Occurred()) SWIG_fail;
13958 }
13959 resultobj = SWIG_Py_Void();
13960 return resultobj;
13961 fail:
13962 return NULL;
13963 }
13964
13965
13966 SWIGINTERN PyObject *_wrap_TextCtrl_ShowNativeCaret(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13967 PyObject *resultobj = 0;
13968 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13969 bool arg2 = (bool) true ;
13970 bool result;
13971 void *argp1 = 0 ;
13972 int res1 = 0 ;
13973 bool val2 ;
13974 int ecode2 = 0 ;
13975 PyObject * obj0 = 0 ;
13976 PyObject * obj1 = 0 ;
13977 char * kwnames[] = {
13978 (char *) "self",(char *) "show", NULL
13979 };
13980
13981 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_ShowNativeCaret",kwnames,&obj0,&obj1)) SWIG_fail;
13982 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13983 if (!SWIG_IsOK(res1)) {
13984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowNativeCaret" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13985 }
13986 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13987 if (obj1) {
13988 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13989 if (!SWIG_IsOK(ecode2)) {
13990 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowNativeCaret" "', expected argument " "2"" of type '" "bool""'");
13991 }
13992 arg2 = static_cast< bool >(val2);
13993 }
13994 {
13995 PyThreadState* __tstate = wxPyBeginAllowThreads();
13996 result = (bool)(arg1)->ShowNativeCaret(arg2);
13997 wxPyEndAllowThreads(__tstate);
13998 if (PyErr_Occurred()) SWIG_fail;
13999 }
14000 {
14001 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14002 }
14003 return resultobj;
14004 fail:
14005 return NULL;
14006 }
14007
14008
14009 SWIGINTERN PyObject *_wrap_TextCtrl_HideNativeCaret(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14010 PyObject *resultobj = 0;
14011 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
14012 bool result;
14013 void *argp1 = 0 ;
14014 int res1 = 0 ;
14015 PyObject *swig_obj[1] ;
14016
14017 if (!args) SWIG_fail;
14018 swig_obj[0] = args;
14019 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
14020 if (!SWIG_IsOK(res1)) {
14021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HideNativeCaret" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
14022 }
14023 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
14024 {
14025 PyThreadState* __tstate = wxPyBeginAllowThreads();
14026 result = (bool)(arg1)->HideNativeCaret();
14027 wxPyEndAllowThreads(__tstate);
14028 if (PyErr_Occurred()) SWIG_fail;
14029 }
14030 {
14031 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14032 }
14033 return resultobj;
14034 fail:
14035 return NULL;
14036 }
14037
14038
14039 SWIGINTERN PyObject *_wrap_TextCtrl_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14040 PyObject *resultobj = 0;
14041 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
14042 wxString *arg2 = 0 ;
14043 void *argp1 = 0 ;
14044 int res1 = 0 ;
14045 bool temp2 = false ;
14046 PyObject * obj0 = 0 ;
14047 PyObject * obj1 = 0 ;
14048 char * kwnames[] = {
14049 (char *) "self",(char *) "text", NULL
14050 };
14051
14052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) SWIG_fail;
14053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
14054 if (!SWIG_IsOK(res1)) {
14055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_write" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
14056 }
14057 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
14058 {
14059 arg2 = wxString_in_helper(obj1);
14060 if (arg2 == NULL) SWIG_fail;
14061 temp2 = true;
14062 }
14063 {
14064 PyThreadState* __tstate = wxPyBeginAllowThreads();
14065 wxTextCtrl_write(arg1,(wxString const &)*arg2);
14066 wxPyEndAllowThreads(__tstate);
14067 if (PyErr_Occurred()) SWIG_fail;
14068 }
14069 resultobj = SWIG_Py_Void();
14070 {
14071 if (temp2)
14072 delete arg2;
14073 }
14074 return resultobj;
14075 fail:
14076 {
14077 if (temp2)
14078 delete arg2;
14079 }
14080 return NULL;
14081 }
14082
14083
14084 SWIGINTERN PyObject *_wrap_TextCtrl_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14085 PyObject *resultobj = 0;
14086 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
14087 long arg2 ;
14088 long arg3 ;
14089 wxString result;
14090 void *argp1 = 0 ;
14091 int res1 = 0 ;
14092 long val2 ;
14093 int ecode2 = 0 ;
14094 long val3 ;
14095 int ecode3 = 0 ;
14096 PyObject * obj0 = 0 ;
14097 PyObject * obj1 = 0 ;
14098 PyObject * obj2 = 0 ;
14099 char * kwnames[] = {
14100 (char *) "self",(char *) "from",(char *) "to", NULL
14101 };
14102
14103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
14105 if (!SWIG_IsOK(res1)) {
14106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetString" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
14107 }
14108 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
14109 ecode2 = SWIG_AsVal_long(obj1, &val2);
14110 if (!SWIG_IsOK(ecode2)) {
14111 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetString" "', expected argument " "2"" of type '" "long""'");
14112 }
14113 arg2 = static_cast< long >(val2);
14114 ecode3 = SWIG_AsVal_long(obj2, &val3);
14115 if (!SWIG_IsOK(ecode3)) {
14116 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetString" "', expected argument " "3"" of type '" "long""'");
14117 }
14118 arg3 = static_cast< long >(val3);
14119 {
14120 PyThreadState* __tstate = wxPyBeginAllowThreads();
14121 result = wxTextCtrl_GetString(arg1,arg2,arg3);
14122 wxPyEndAllowThreads(__tstate);
14123 if (PyErr_Occurred()) SWIG_fail;
14124 }
14125 {
14126 #if wxUSE_UNICODE
14127 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14128 #else
14129 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14130 #endif
14131 }
14132 return resultobj;
14133 fail:
14134 return NULL;
14135 }
14136
14137
14138 SWIGINTERN PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14139 PyObject *resultobj = 0;
14140 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14141 SwigValueWrapper<wxVisualAttributes > result;
14142 int val1 ;
14143 int ecode1 = 0 ;
14144 PyObject * obj0 = 0 ;
14145 char * kwnames[] = {
14146 (char *) "variant", NULL
14147 };
14148
14149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14150 if (obj0) {
14151 ecode1 = SWIG_AsVal_int(obj0, &val1);
14152 if (!SWIG_IsOK(ecode1)) {
14153 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TextCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14154 }
14155 arg1 = static_cast< wxWindowVariant >(val1);
14156 }
14157 {
14158 if (!wxPyCheckForApp()) SWIG_fail;
14159 PyThreadState* __tstate = wxPyBeginAllowThreads();
14160 result = wxTextCtrl::GetClassDefaultAttributes(arg1);
14161 wxPyEndAllowThreads(__tstate);
14162 if (PyErr_Occurred()) SWIG_fail;
14163 }
14164 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14165 return resultobj;
14166 fail:
14167 return NULL;
14168 }
14169
14170
14171 SWIGINTERN PyObject *TextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14172 PyObject *obj;
14173 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14174 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextCtrl, SWIG_NewClientData(obj));
14175 return SWIG_Py_Void();
14176 }
14177
14178 SWIGINTERN PyObject *TextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14179 return SWIG_Python_InitShadowInstance(args);
14180 }
14181
14182 SWIGINTERN PyObject *_wrap_new_TextUrlEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14183 PyObject *resultobj = 0;
14184 int arg1 ;
14185 wxMouseEvent *arg2 = 0 ;
14186 long arg3 ;
14187 long arg4 ;
14188 wxTextUrlEvent *result = 0 ;
14189 int val1 ;
14190 int ecode1 = 0 ;
14191 void *argp2 = 0 ;
14192 int res2 = 0 ;
14193 long val3 ;
14194 int ecode3 = 0 ;
14195 long val4 ;
14196 int ecode4 = 0 ;
14197 PyObject * obj0 = 0 ;
14198 PyObject * obj1 = 0 ;
14199 PyObject * obj2 = 0 ;
14200 PyObject * obj3 = 0 ;
14201 char * kwnames[] = {
14202 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
14203 };
14204
14205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14206 ecode1 = SWIG_AsVal_int(obj0, &val1);
14207 if (!SWIG_IsOK(ecode1)) {
14208 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TextUrlEvent" "', expected argument " "1"" of type '" "int""'");
14209 }
14210 arg1 = static_cast< int >(val1);
14211 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxMouseEvent, 0 | 0);
14212 if (!SWIG_IsOK(res2)) {
14213 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
14214 }
14215 if (!argp2) {
14216 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
14217 }
14218 arg2 = reinterpret_cast< wxMouseEvent * >(argp2);
14219 ecode3 = SWIG_AsVal_long(obj2, &val3);
14220 if (!SWIG_IsOK(ecode3)) {
14221 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TextUrlEvent" "', expected argument " "3"" of type '" "long""'");
14222 }
14223 arg3 = static_cast< long >(val3);
14224 ecode4 = SWIG_AsVal_long(obj3, &val4);
14225 if (!SWIG_IsOK(ecode4)) {
14226 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextUrlEvent" "', expected argument " "4"" of type '" "long""'");
14227 }
14228 arg4 = static_cast< long >(val4);
14229 {
14230 PyThreadState* __tstate = wxPyBeginAllowThreads();
14231 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
14232 wxPyEndAllowThreads(__tstate);
14233 if (PyErr_Occurred()) SWIG_fail;
14234 }
14235 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_NEW | 0 );
14236 return resultobj;
14237 fail:
14238 return NULL;
14239 }
14240
14241
14242 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14243 PyObject *resultobj = 0;
14244 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14245 wxMouseEvent *result = 0 ;
14246 void *argp1 = 0 ;
14247 int res1 = 0 ;
14248 PyObject *swig_obj[1] ;
14249
14250 if (!args) SWIG_fail;
14251 swig_obj[0] = args;
14252 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14253 if (!SWIG_IsOK(res1)) {
14254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetMouseEvent" "', expected argument " "1"" of type '" "wxTextUrlEvent *""'");
14255 }
14256 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14257 {
14258 PyThreadState* __tstate = wxPyBeginAllowThreads();
14259 {
14260 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
14261 result = (wxMouseEvent *) &_result_ref;
14262 }
14263 wxPyEndAllowThreads(__tstate);
14264 if (PyErr_Occurred()) SWIG_fail;
14265 }
14266 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseEvent, 0 | 0 );
14267 return resultobj;
14268 fail:
14269 return NULL;
14270 }
14271
14272
14273 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14274 PyObject *resultobj = 0;
14275 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14276 long result;
14277 void *argp1 = 0 ;
14278 int res1 = 0 ;
14279 PyObject *swig_obj[1] ;
14280
14281 if (!args) SWIG_fail;
14282 swig_obj[0] = args;
14283 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14284 if (!SWIG_IsOK(res1)) {
14285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLStart" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14286 }
14287 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14288 {
14289 PyThreadState* __tstate = wxPyBeginAllowThreads();
14290 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
14291 wxPyEndAllowThreads(__tstate);
14292 if (PyErr_Occurred()) SWIG_fail;
14293 }
14294 resultobj = SWIG_From_long(static_cast< long >(result));
14295 return resultobj;
14296 fail:
14297 return NULL;
14298 }
14299
14300
14301 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14302 PyObject *resultobj = 0;
14303 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14304 long result;
14305 void *argp1 = 0 ;
14306 int res1 = 0 ;
14307 PyObject *swig_obj[1] ;
14308
14309 if (!args) SWIG_fail;
14310 swig_obj[0] = args;
14311 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14312 if (!SWIG_IsOK(res1)) {
14313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLEnd" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14314 }
14315 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14316 {
14317 PyThreadState* __tstate = wxPyBeginAllowThreads();
14318 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
14319 wxPyEndAllowThreads(__tstate);
14320 if (PyErr_Occurred()) SWIG_fail;
14321 }
14322 resultobj = SWIG_From_long(static_cast< long >(result));
14323 return resultobj;
14324 fail:
14325 return NULL;
14326 }
14327
14328
14329 SWIGINTERN PyObject *TextUrlEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14330 PyObject *obj;
14331 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14332 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextUrlEvent, SWIG_NewClientData(obj));
14333 return SWIG_Py_Void();
14334 }
14335
14336 SWIGINTERN PyObject *TextUrlEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14337 return SWIG_Python_InitShadowInstance(args);
14338 }
14339
14340 SWIGINTERN int ScrollBarNameStr_set(PyObject *) {
14341 SWIG_Error(SWIG_AttributeError,"Variable ScrollBarNameStr is read-only.");
14342 return 1;
14343 }
14344
14345
14346 SWIGINTERN PyObject *ScrollBarNameStr_get(void) {
14347 PyObject *pyobj = 0;
14348
14349 {
14350 #if wxUSE_UNICODE
14351 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14352 #else
14353 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14354 #endif
14355 }
14356 return pyobj;
14357 }
14358
14359
14360 SWIGINTERN PyObject *_wrap_new_ScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14361 PyObject *resultobj = 0;
14362 wxWindow *arg1 = (wxWindow *) 0 ;
14363 int arg2 = (int) -1 ;
14364 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14365 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14366 wxSize const &arg4_defvalue = wxDefaultSize ;
14367 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14368 long arg5 = (long) wxSB_HORIZONTAL ;
14369 wxValidator const &arg6_defvalue = wxDefaultValidator ;
14370 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
14371 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
14372 wxString *arg7 = (wxString *) &arg7_defvalue ;
14373 wxScrollBar *result = 0 ;
14374 void *argp1 = 0 ;
14375 int res1 = 0 ;
14376 int val2 ;
14377 int ecode2 = 0 ;
14378 wxPoint temp3 ;
14379 wxSize temp4 ;
14380 long val5 ;
14381 int ecode5 = 0 ;
14382 void *argp6 = 0 ;
14383 int res6 = 0 ;
14384 bool temp7 = false ;
14385 PyObject * obj0 = 0 ;
14386 PyObject * obj1 = 0 ;
14387 PyObject * obj2 = 0 ;
14388 PyObject * obj3 = 0 ;
14389 PyObject * obj4 = 0 ;
14390 PyObject * obj5 = 0 ;
14391 PyObject * obj6 = 0 ;
14392 char * kwnames[] = {
14393 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14394 };
14395
14396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14397 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14398 if (!SWIG_IsOK(res1)) {
14399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrollBar" "', expected argument " "1"" of type '" "wxWindow *""'");
14400 }
14401 arg1 = reinterpret_cast< wxWindow * >(argp1);
14402 if (obj1) {
14403 ecode2 = SWIG_AsVal_int(obj1, &val2);
14404 if (!SWIG_IsOK(ecode2)) {
14405 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollBar" "', expected argument " "2"" of type '" "int""'");
14406 }
14407 arg2 = static_cast< int >(val2);
14408 }
14409 if (obj2) {
14410 {
14411 arg3 = &temp3;
14412 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14413 }
14414 }
14415 if (obj3) {
14416 {
14417 arg4 = &temp4;
14418 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14419 }
14420 }
14421 if (obj4) {
14422 ecode5 = SWIG_AsVal_long(obj4, &val5);
14423 if (!SWIG_IsOK(ecode5)) {
14424 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrollBar" "', expected argument " "5"" of type '" "long""'");
14425 }
14426 arg5 = static_cast< long >(val5);
14427 }
14428 if (obj5) {
14429 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
14430 if (!SWIG_IsOK(res6)) {
14431 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14432 }
14433 if (!argp6) {
14434 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14435 }
14436 arg6 = reinterpret_cast< wxValidator * >(argp6);
14437 }
14438 if (obj6) {
14439 {
14440 arg7 = wxString_in_helper(obj6);
14441 if (arg7 == NULL) SWIG_fail;
14442 temp7 = true;
14443 }
14444 }
14445 {
14446 if (!wxPyCheckForApp()) SWIG_fail;
14447 PyThreadState* __tstate = wxPyBeginAllowThreads();
14448 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
14449 wxPyEndAllowThreads(__tstate);
14450 if (PyErr_Occurred()) SWIG_fail;
14451 }
14452 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_NEW | 0 );
14453 {
14454 if (temp7)
14455 delete arg7;
14456 }
14457 return resultobj;
14458 fail:
14459 {
14460 if (temp7)
14461 delete arg7;
14462 }
14463 return NULL;
14464 }
14465
14466
14467 SWIGINTERN PyObject *_wrap_new_PreScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14468 PyObject *resultobj = 0;
14469 wxScrollBar *result = 0 ;
14470
14471 if (!SWIG_Python_UnpackTuple(args,"new_PreScrollBar",0,0,0)) SWIG_fail;
14472 {
14473 if (!wxPyCheckForApp()) SWIG_fail;
14474 PyThreadState* __tstate = wxPyBeginAllowThreads();
14475 result = (wxScrollBar *)new wxScrollBar();
14476 wxPyEndAllowThreads(__tstate);
14477 if (PyErr_Occurred()) SWIG_fail;
14478 }
14479 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_OWN | 0 );
14480 return resultobj;
14481 fail:
14482 return NULL;
14483 }
14484
14485
14486 SWIGINTERN PyObject *_wrap_ScrollBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14487 PyObject *resultobj = 0;
14488 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14489 wxWindow *arg2 = (wxWindow *) 0 ;
14490 int arg3 = (int) -1 ;
14491 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14492 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14493 wxSize const &arg5_defvalue = wxDefaultSize ;
14494 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14495 long arg6 = (long) wxSB_HORIZONTAL ;
14496 wxValidator const &arg7_defvalue = wxDefaultValidator ;
14497 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
14498 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
14499 wxString *arg8 = (wxString *) &arg8_defvalue ;
14500 bool result;
14501 void *argp1 = 0 ;
14502 int res1 = 0 ;
14503 void *argp2 = 0 ;
14504 int res2 = 0 ;
14505 int val3 ;
14506 int ecode3 = 0 ;
14507 wxPoint temp4 ;
14508 wxSize temp5 ;
14509 long val6 ;
14510 int ecode6 = 0 ;
14511 void *argp7 = 0 ;
14512 int res7 = 0 ;
14513 bool temp8 = false ;
14514 PyObject * obj0 = 0 ;
14515 PyObject * obj1 = 0 ;
14516 PyObject * obj2 = 0 ;
14517 PyObject * obj3 = 0 ;
14518 PyObject * obj4 = 0 ;
14519 PyObject * obj5 = 0 ;
14520 PyObject * obj6 = 0 ;
14521 PyObject * obj7 = 0 ;
14522 char * kwnames[] = {
14523 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14524 };
14525
14526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
14527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14528 if (!SWIG_IsOK(res1)) {
14529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_Create" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14530 }
14531 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14532 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14533 if (!SWIG_IsOK(res2)) {
14534 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrollBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14535 }
14536 arg2 = reinterpret_cast< wxWindow * >(argp2);
14537 if (obj2) {
14538 ecode3 = SWIG_AsVal_int(obj2, &val3);
14539 if (!SWIG_IsOK(ecode3)) {
14540 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrollBar_Create" "', expected argument " "3"" of type '" "int""'");
14541 }
14542 arg3 = static_cast< int >(val3);
14543 }
14544 if (obj3) {
14545 {
14546 arg4 = &temp4;
14547 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14548 }
14549 }
14550 if (obj4) {
14551 {
14552 arg5 = &temp5;
14553 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14554 }
14555 }
14556 if (obj5) {
14557 ecode6 = SWIG_AsVal_long(obj5, &val6);
14558 if (!SWIG_IsOK(ecode6)) {
14559 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrollBar_Create" "', expected argument " "6"" of type '" "long""'");
14560 }
14561 arg6 = static_cast< long >(val6);
14562 }
14563 if (obj6) {
14564 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
14565 if (!SWIG_IsOK(res7)) {
14566 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14567 }
14568 if (!argp7) {
14569 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14570 }
14571 arg7 = reinterpret_cast< wxValidator * >(argp7);
14572 }
14573 if (obj7) {
14574 {
14575 arg8 = wxString_in_helper(obj7);
14576 if (arg8 == NULL) SWIG_fail;
14577 temp8 = true;
14578 }
14579 }
14580 {
14581 PyThreadState* __tstate = wxPyBeginAllowThreads();
14582 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
14583 wxPyEndAllowThreads(__tstate);
14584 if (PyErr_Occurred()) SWIG_fail;
14585 }
14586 {
14587 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14588 }
14589 {
14590 if (temp8)
14591 delete arg8;
14592 }
14593 return resultobj;
14594 fail:
14595 {
14596 if (temp8)
14597 delete arg8;
14598 }
14599 return NULL;
14600 }
14601
14602
14603 SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14604 PyObject *resultobj = 0;
14605 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14606 int result;
14607 void *argp1 = 0 ;
14608 int res1 = 0 ;
14609 PyObject *swig_obj[1] ;
14610
14611 if (!args) SWIG_fail;
14612 swig_obj[0] = args;
14613 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14614 if (!SWIG_IsOK(res1)) {
14615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14616 }
14617 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14618 {
14619 PyThreadState* __tstate = wxPyBeginAllowThreads();
14620 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
14621 wxPyEndAllowThreads(__tstate);
14622 if (PyErr_Occurred()) SWIG_fail;
14623 }
14624 resultobj = SWIG_From_int(static_cast< int >(result));
14625 return resultobj;
14626 fail:
14627 return NULL;
14628 }
14629
14630
14631 SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14632 PyObject *resultobj = 0;
14633 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14634 int result;
14635 void *argp1 = 0 ;
14636 int res1 = 0 ;
14637 PyObject *swig_obj[1] ;
14638
14639 if (!args) SWIG_fail;
14640 swig_obj[0] = args;
14641 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14642 if (!SWIG_IsOK(res1)) {
14643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14644 }
14645 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14646 {
14647 PyThreadState* __tstate = wxPyBeginAllowThreads();
14648 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
14649 wxPyEndAllowThreads(__tstate);
14650 if (PyErr_Occurred()) SWIG_fail;
14651 }
14652 resultobj = SWIG_From_int(static_cast< int >(result));
14653 return resultobj;
14654 fail:
14655 return NULL;
14656 }
14657
14658
14659 SWIGINTERN PyObject *_wrap_ScrollBar_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14660 PyObject *resultobj = 0;
14661 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14662 int result;
14663 void *argp1 = 0 ;
14664 int res1 = 0 ;
14665 PyObject *swig_obj[1] ;
14666
14667 if (!args) SWIG_fail;
14668 swig_obj[0] = args;
14669 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14670 if (!SWIG_IsOK(res1)) {
14671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetPageSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14672 }
14673 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14674 {
14675 PyThreadState* __tstate = wxPyBeginAllowThreads();
14676 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
14677 wxPyEndAllowThreads(__tstate);
14678 if (PyErr_Occurred()) SWIG_fail;
14679 }
14680 resultobj = SWIG_From_int(static_cast< int >(result));
14681 return resultobj;
14682 fail:
14683 return NULL;
14684 }
14685
14686
14687 SWIGINTERN PyObject *_wrap_ScrollBar_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14688 PyObject *resultobj = 0;
14689 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14690 int result;
14691 void *argp1 = 0 ;
14692 int res1 = 0 ;
14693 PyObject *swig_obj[1] ;
14694
14695 if (!args) SWIG_fail;
14696 swig_obj[0] = args;
14697 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14698 if (!SWIG_IsOK(res1)) {
14699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetRange" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14700 }
14701 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14702 {
14703 PyThreadState* __tstate = wxPyBeginAllowThreads();
14704 result = (int)((wxScrollBar const *)arg1)->GetRange();
14705 wxPyEndAllowThreads(__tstate);
14706 if (PyErr_Occurred()) SWIG_fail;
14707 }
14708 resultobj = SWIG_From_int(static_cast< int >(result));
14709 return resultobj;
14710 fail:
14711 return NULL;
14712 }
14713
14714
14715 SWIGINTERN PyObject *_wrap_ScrollBar_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14716 PyObject *resultobj = 0;
14717 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14718 bool result;
14719 void *argp1 = 0 ;
14720 int res1 = 0 ;
14721 PyObject *swig_obj[1] ;
14722
14723 if (!args) SWIG_fail;
14724 swig_obj[0] = args;
14725 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14726 if (!SWIG_IsOK(res1)) {
14727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_IsVertical" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14728 }
14729 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14730 {
14731 PyThreadState* __tstate = wxPyBeginAllowThreads();
14732 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
14733 wxPyEndAllowThreads(__tstate);
14734 if (PyErr_Occurred()) SWIG_fail;
14735 }
14736 {
14737 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14738 }
14739 return resultobj;
14740 fail:
14741 return NULL;
14742 }
14743
14744
14745 SWIGINTERN PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14746 PyObject *resultobj = 0;
14747 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14748 int arg2 ;
14749 void *argp1 = 0 ;
14750 int res1 = 0 ;
14751 int val2 ;
14752 int ecode2 = 0 ;
14753 PyObject * obj0 = 0 ;
14754 PyObject * obj1 = 0 ;
14755 char * kwnames[] = {
14756 (char *) "self",(char *) "viewStart", NULL
14757 };
14758
14759 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) SWIG_fail;
14760 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14761 if (!SWIG_IsOK(res1)) {
14762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14763 }
14764 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14765 ecode2 = SWIG_AsVal_int(obj1, &val2);
14766 if (!SWIG_IsOK(ecode2)) {
14767 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "2"" of type '" "int""'");
14768 }
14769 arg2 = static_cast< int >(val2);
14770 {
14771 PyThreadState* __tstate = wxPyBeginAllowThreads();
14772 (arg1)->SetThumbPosition(arg2);
14773 wxPyEndAllowThreads(__tstate);
14774 if (PyErr_Occurred()) SWIG_fail;
14775 }
14776 resultobj = SWIG_Py_Void();
14777 return resultobj;
14778 fail:
14779 return NULL;
14780 }
14781
14782
14783 SWIGINTERN PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14784 PyObject *resultobj = 0;
14785 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14786 SwigValueWrapper<wxVisualAttributes > result;
14787 int val1 ;
14788 int ecode1 = 0 ;
14789 PyObject * obj0 = 0 ;
14790 char * kwnames[] = {
14791 (char *) "variant", NULL
14792 };
14793
14794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14795 if (obj0) {
14796 ecode1 = SWIG_AsVal_int(obj0, &val1);
14797 if (!SWIG_IsOK(ecode1)) {
14798 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrollBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14799 }
14800 arg1 = static_cast< wxWindowVariant >(val1);
14801 }
14802 {
14803 if (!wxPyCheckForApp()) SWIG_fail;
14804 PyThreadState* __tstate = wxPyBeginAllowThreads();
14805 result = wxScrollBar::GetClassDefaultAttributes(arg1);
14806 wxPyEndAllowThreads(__tstate);
14807 if (PyErr_Occurred()) SWIG_fail;
14808 }
14809 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14810 return resultobj;
14811 fail:
14812 return NULL;
14813 }
14814
14815
14816 SWIGINTERN PyObject *ScrollBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14817 PyObject *obj;
14818 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14819 SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollBar, SWIG_NewClientData(obj));
14820 return SWIG_Py_Void();
14821 }
14822
14823 SWIGINTERN PyObject *ScrollBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14824 return SWIG_Python_InitShadowInstance(args);
14825 }
14826
14827 SWIGINTERN int SPIN_BUTTON_NAME_set(PyObject *) {
14828 SWIG_Error(SWIG_AttributeError,"Variable SPIN_BUTTON_NAME is read-only.");
14829 return 1;
14830 }
14831
14832
14833 SWIGINTERN PyObject *SPIN_BUTTON_NAME_get(void) {
14834 PyObject *pyobj = 0;
14835
14836 {
14837 #if wxUSE_UNICODE
14838 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14839 #else
14840 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14841 #endif
14842 }
14843 return pyobj;
14844 }
14845
14846
14847 SWIGINTERN int SpinCtrlNameStr_set(PyObject *) {
14848 SWIG_Error(SWIG_AttributeError,"Variable SpinCtrlNameStr is read-only.");
14849 return 1;
14850 }
14851
14852
14853 SWIGINTERN PyObject *SpinCtrlNameStr_get(void) {
14854 PyObject *pyobj = 0;
14855
14856 {
14857 #if wxUSE_UNICODE
14858 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14859 #else
14860 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14861 #endif
14862 }
14863 return pyobj;
14864 }
14865
14866
14867 SWIGINTERN PyObject *_wrap_new_SpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14868 PyObject *resultobj = 0;
14869 wxWindow *arg1 = (wxWindow *) 0 ;
14870 int arg2 = (int) -1 ;
14871 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14872 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14873 wxSize const &arg4_defvalue = wxDefaultSize ;
14874 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14875 long arg5 = (long) wxSP_HORIZONTAL ;
14876 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
14877 wxString *arg6 = (wxString *) &arg6_defvalue ;
14878 wxSpinButton *result = 0 ;
14879 void *argp1 = 0 ;
14880 int res1 = 0 ;
14881 int val2 ;
14882 int ecode2 = 0 ;
14883 wxPoint temp3 ;
14884 wxSize temp4 ;
14885 long val5 ;
14886 int ecode5 = 0 ;
14887 bool temp6 = false ;
14888 PyObject * obj0 = 0 ;
14889 PyObject * obj1 = 0 ;
14890 PyObject * obj2 = 0 ;
14891 PyObject * obj3 = 0 ;
14892 PyObject * obj4 = 0 ;
14893 PyObject * obj5 = 0 ;
14894 char * kwnames[] = {
14895 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14896 };
14897
14898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
14899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14900 if (!SWIG_IsOK(res1)) {
14901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinButton" "', expected argument " "1"" of type '" "wxWindow *""'");
14902 }
14903 arg1 = reinterpret_cast< wxWindow * >(argp1);
14904 if (obj1) {
14905 ecode2 = SWIG_AsVal_int(obj1, &val2);
14906 if (!SWIG_IsOK(ecode2)) {
14907 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinButton" "', expected argument " "2"" of type '" "int""'");
14908 }
14909 arg2 = static_cast< int >(val2);
14910 }
14911 if (obj2) {
14912 {
14913 arg3 = &temp3;
14914 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14915 }
14916 }
14917 if (obj3) {
14918 {
14919 arg4 = &temp4;
14920 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14921 }
14922 }
14923 if (obj4) {
14924 ecode5 = SWIG_AsVal_long(obj4, &val5);
14925 if (!SWIG_IsOK(ecode5)) {
14926 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpinButton" "', expected argument " "5"" of type '" "long""'");
14927 }
14928 arg5 = static_cast< long >(val5);
14929 }
14930 if (obj5) {
14931 {
14932 arg6 = wxString_in_helper(obj5);
14933 if (arg6 == NULL) SWIG_fail;
14934 temp6 = true;
14935 }
14936 }
14937 {
14938 if (!wxPyCheckForApp()) SWIG_fail;
14939 PyThreadState* __tstate = wxPyBeginAllowThreads();
14940 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14941 wxPyEndAllowThreads(__tstate);
14942 if (PyErr_Occurred()) SWIG_fail;
14943 }
14944 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_NEW | 0 );
14945 {
14946 if (temp6)
14947 delete arg6;
14948 }
14949 return resultobj;
14950 fail:
14951 {
14952 if (temp6)
14953 delete arg6;
14954 }
14955 return NULL;
14956 }
14957
14958
14959 SWIGINTERN PyObject *_wrap_new_PreSpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14960 PyObject *resultobj = 0;
14961 wxSpinButton *result = 0 ;
14962
14963 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinButton",0,0,0)) SWIG_fail;
14964 {
14965 if (!wxPyCheckForApp()) SWIG_fail;
14966 PyThreadState* __tstate = wxPyBeginAllowThreads();
14967 result = (wxSpinButton *)new wxSpinButton();
14968 wxPyEndAllowThreads(__tstate);
14969 if (PyErr_Occurred()) SWIG_fail;
14970 }
14971 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_OWN | 0 );
14972 return resultobj;
14973 fail:
14974 return NULL;
14975 }
14976
14977
14978 SWIGINTERN PyObject *_wrap_SpinButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14979 PyObject *resultobj = 0;
14980 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14981 wxWindow *arg2 = (wxWindow *) 0 ;
14982 int arg3 = (int) -1 ;
14983 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14984 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14985 wxSize const &arg5_defvalue = wxDefaultSize ;
14986 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14987 long arg6 = (long) wxSP_HORIZONTAL ;
14988 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
14989 wxString *arg7 = (wxString *) &arg7_defvalue ;
14990 bool result;
14991 void *argp1 = 0 ;
14992 int res1 = 0 ;
14993 void *argp2 = 0 ;
14994 int res2 = 0 ;
14995 int val3 ;
14996 int ecode3 = 0 ;
14997 wxPoint temp4 ;
14998 wxSize temp5 ;
14999 long val6 ;
15000 int ecode6 = 0 ;
15001 bool temp7 = false ;
15002 PyObject * obj0 = 0 ;
15003 PyObject * obj1 = 0 ;
15004 PyObject * obj2 = 0 ;
15005 PyObject * obj3 = 0 ;
15006 PyObject * obj4 = 0 ;
15007 PyObject * obj5 = 0 ;
15008 PyObject * obj6 = 0 ;
15009 char * kwnames[] = {
15010 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
15011 };
15012
15013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
15014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15015 if (!SWIG_IsOK(res1)) {
15016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_Create" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15017 }
15018 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15019 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
15020 if (!SWIG_IsOK(res2)) {
15021 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
15022 }
15023 arg2 = reinterpret_cast< wxWindow * >(argp2);
15024 if (obj2) {
15025 ecode3 = SWIG_AsVal_int(obj2, &val3);
15026 if (!SWIG_IsOK(ecode3)) {
15027 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_Create" "', expected argument " "3"" of type '" "int""'");
15028 }
15029 arg3 = static_cast< int >(val3);
15030 }
15031 if (obj3) {
15032 {
15033 arg4 = &temp4;
15034 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15035 }
15036 }
15037 if (obj4) {
15038 {
15039 arg5 = &temp5;
15040 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15041 }
15042 }
15043 if (obj5) {
15044 ecode6 = SWIG_AsVal_long(obj5, &val6);
15045 if (!SWIG_IsOK(ecode6)) {
15046 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SpinButton_Create" "', expected argument " "6"" of type '" "long""'");
15047 }
15048 arg6 = static_cast< long >(val6);
15049 }
15050 if (obj6) {
15051 {
15052 arg7 = wxString_in_helper(obj6);
15053 if (arg7 == NULL) SWIG_fail;
15054 temp7 = true;
15055 }
15056 }
15057 {
15058 PyThreadState* __tstate = wxPyBeginAllowThreads();
15059 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
15060 wxPyEndAllowThreads(__tstate);
15061 if (PyErr_Occurred()) SWIG_fail;
15062 }
15063 {
15064 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15065 }
15066 {
15067 if (temp7)
15068 delete arg7;
15069 }
15070 return resultobj;
15071 fail:
15072 {
15073 if (temp7)
15074 delete arg7;
15075 }
15076 return NULL;
15077 }
15078
15079
15080 SWIGINTERN PyObject *_wrap_SpinButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15081 PyObject *resultobj = 0;
15082 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15083 int result;
15084 void *argp1 = 0 ;
15085 int res1 = 0 ;
15086 PyObject *swig_obj[1] ;
15087
15088 if (!args) SWIG_fail;
15089 swig_obj[0] = args;
15090 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15091 if (!SWIG_IsOK(res1)) {
15092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetValue" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15093 }
15094 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15095 {
15096 PyThreadState* __tstate = wxPyBeginAllowThreads();
15097 result = (int)((wxSpinButton const *)arg1)->GetValue();
15098 wxPyEndAllowThreads(__tstate);
15099 if (PyErr_Occurred()) SWIG_fail;
15100 }
15101 resultobj = SWIG_From_int(static_cast< int >(result));
15102 return resultobj;
15103 fail:
15104 return NULL;
15105 }
15106
15107
15108 SWIGINTERN PyObject *_wrap_SpinButton_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15109 PyObject *resultobj = 0;
15110 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15111 int result;
15112 void *argp1 = 0 ;
15113 int res1 = 0 ;
15114 PyObject *swig_obj[1] ;
15115
15116 if (!args) SWIG_fail;
15117 swig_obj[0] = args;
15118 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15119 if (!SWIG_IsOK(res1)) {
15120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMin" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15121 }
15122 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15123 {
15124 PyThreadState* __tstate = wxPyBeginAllowThreads();
15125 result = (int)((wxSpinButton const *)arg1)->GetMin();
15126 wxPyEndAllowThreads(__tstate);
15127 if (PyErr_Occurred()) SWIG_fail;
15128 }
15129 resultobj = SWIG_From_int(static_cast< int >(result));
15130 return resultobj;
15131 fail:
15132 return NULL;
15133 }
15134
15135
15136 SWIGINTERN PyObject *_wrap_SpinButton_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15137 PyObject *resultobj = 0;
15138 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15139 int result;
15140 void *argp1 = 0 ;
15141 int res1 = 0 ;
15142 PyObject *swig_obj[1] ;
15143
15144 if (!args) SWIG_fail;
15145 swig_obj[0] = args;
15146 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15147 if (!SWIG_IsOK(res1)) {
15148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMax" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15149 }
15150 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15151 {
15152 PyThreadState* __tstate = wxPyBeginAllowThreads();
15153 result = (int)((wxSpinButton const *)arg1)->GetMax();
15154 wxPyEndAllowThreads(__tstate);
15155 if (PyErr_Occurred()) SWIG_fail;
15156 }
15157 resultobj = SWIG_From_int(static_cast< int >(result));
15158 return resultobj;
15159 fail:
15160 return NULL;
15161 }
15162
15163
15164 SWIGINTERN PyObject *_wrap_SpinButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15165 PyObject *resultobj = 0;
15166 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15167 int arg2 ;
15168 void *argp1 = 0 ;
15169 int res1 = 0 ;
15170 int val2 ;
15171 int ecode2 = 0 ;
15172 PyObject * obj0 = 0 ;
15173 PyObject * obj1 = 0 ;
15174 char * kwnames[] = {
15175 (char *) "self",(char *) "val", NULL
15176 };
15177
15178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15180 if (!SWIG_IsOK(res1)) {
15181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetValue" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15182 }
15183 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15184 ecode2 = SWIG_AsVal_int(obj1, &val2);
15185 if (!SWIG_IsOK(ecode2)) {
15186 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetValue" "', expected argument " "2"" of type '" "int""'");
15187 }
15188 arg2 = static_cast< int >(val2);
15189 {
15190 PyThreadState* __tstate = wxPyBeginAllowThreads();
15191 (arg1)->SetValue(arg2);
15192 wxPyEndAllowThreads(__tstate);
15193 if (PyErr_Occurred()) SWIG_fail;
15194 }
15195 resultobj = SWIG_Py_Void();
15196 return resultobj;
15197 fail:
15198 return NULL;
15199 }
15200
15201
15202 SWIGINTERN PyObject *_wrap_SpinButton_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15203 PyObject *resultobj = 0;
15204 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15205 int arg2 ;
15206 void *argp1 = 0 ;
15207 int res1 = 0 ;
15208 int val2 ;
15209 int ecode2 = 0 ;
15210 PyObject * obj0 = 0 ;
15211 PyObject * obj1 = 0 ;
15212 char * kwnames[] = {
15213 (char *) "self",(char *) "minVal", NULL
15214 };
15215
15216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
15217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15218 if (!SWIG_IsOK(res1)) {
15219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMin" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15220 }
15221 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15222 ecode2 = SWIG_AsVal_int(obj1, &val2);
15223 if (!SWIG_IsOK(ecode2)) {
15224 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMin" "', expected argument " "2"" of type '" "int""'");
15225 }
15226 arg2 = static_cast< int >(val2);
15227 {
15228 PyThreadState* __tstate = wxPyBeginAllowThreads();
15229 (arg1)->SetMin(arg2);
15230 wxPyEndAllowThreads(__tstate);
15231 if (PyErr_Occurred()) SWIG_fail;
15232 }
15233 resultobj = SWIG_Py_Void();
15234 return resultobj;
15235 fail:
15236 return NULL;
15237 }
15238
15239
15240 SWIGINTERN PyObject *_wrap_SpinButton_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15241 PyObject *resultobj = 0;
15242 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15243 int arg2 ;
15244 void *argp1 = 0 ;
15245 int res1 = 0 ;
15246 int val2 ;
15247 int ecode2 = 0 ;
15248 PyObject * obj0 = 0 ;
15249 PyObject * obj1 = 0 ;
15250 char * kwnames[] = {
15251 (char *) "self",(char *) "maxVal", NULL
15252 };
15253
15254 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
15255 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15256 if (!SWIG_IsOK(res1)) {
15257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMax" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15258 }
15259 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15260 ecode2 = SWIG_AsVal_int(obj1, &val2);
15261 if (!SWIG_IsOK(ecode2)) {
15262 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMax" "', expected argument " "2"" of type '" "int""'");
15263 }
15264 arg2 = static_cast< int >(val2);
15265 {
15266 PyThreadState* __tstate = wxPyBeginAllowThreads();
15267 (arg1)->SetMax(arg2);
15268 wxPyEndAllowThreads(__tstate);
15269 if (PyErr_Occurred()) SWIG_fail;
15270 }
15271 resultobj = SWIG_Py_Void();
15272 return resultobj;
15273 fail:
15274 return NULL;
15275 }
15276
15277
15278 SWIGINTERN PyObject *_wrap_SpinButton_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15279 PyObject *resultobj = 0;
15280 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15281 int arg2 ;
15282 int arg3 ;
15283 void *argp1 = 0 ;
15284 int res1 = 0 ;
15285 int val2 ;
15286 int ecode2 = 0 ;
15287 int val3 ;
15288 int ecode3 = 0 ;
15289 PyObject * obj0 = 0 ;
15290 PyObject * obj1 = 0 ;
15291 PyObject * obj2 = 0 ;
15292 char * kwnames[] = {
15293 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15294 };
15295
15296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15298 if (!SWIG_IsOK(res1)) {
15299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetRange" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15300 }
15301 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15302 ecode2 = SWIG_AsVal_int(obj1, &val2);
15303 if (!SWIG_IsOK(ecode2)) {
15304 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetRange" "', expected argument " "2"" of type '" "int""'");
15305 }
15306 arg2 = static_cast< int >(val2);
15307 ecode3 = SWIG_AsVal_int(obj2, &val3);
15308 if (!SWIG_IsOK(ecode3)) {
15309 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_SetRange" "', expected argument " "3"" of type '" "int""'");
15310 }
15311 arg3 = static_cast< int >(val3);
15312 {
15313 PyThreadState* __tstate = wxPyBeginAllowThreads();
15314 (arg1)->SetRange(arg2,arg3);
15315 wxPyEndAllowThreads(__tstate);
15316 if (PyErr_Occurred()) SWIG_fail;
15317 }
15318 resultobj = SWIG_Py_Void();
15319 return resultobj;
15320 fail:
15321 return NULL;
15322 }
15323
15324
15325 SWIGINTERN PyObject *_wrap_SpinButton_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15326 PyObject *resultobj = 0;
15327 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15328 bool result;
15329 void *argp1 = 0 ;
15330 int res1 = 0 ;
15331 PyObject *swig_obj[1] ;
15332
15333 if (!args) SWIG_fail;
15334 swig_obj[0] = args;
15335 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15336 if (!SWIG_IsOK(res1)) {
15337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_IsVertical" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15338 }
15339 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15340 {
15341 PyThreadState* __tstate = wxPyBeginAllowThreads();
15342 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
15343 wxPyEndAllowThreads(__tstate);
15344 if (PyErr_Occurred()) SWIG_fail;
15345 }
15346 {
15347 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15348 }
15349 return resultobj;
15350 fail:
15351 return NULL;
15352 }
15353
15354
15355 SWIGINTERN PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15356 PyObject *resultobj = 0;
15357 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15358 SwigValueWrapper<wxVisualAttributes > result;
15359 int val1 ;
15360 int ecode1 = 0 ;
15361 PyObject * obj0 = 0 ;
15362 char * kwnames[] = {
15363 (char *) "variant", NULL
15364 };
15365
15366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15367 if (obj0) {
15368 ecode1 = SWIG_AsVal_int(obj0, &val1);
15369 if (!SWIG_IsOK(ecode1)) {
15370 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15371 }
15372 arg1 = static_cast< wxWindowVariant >(val1);
15373 }
15374 {
15375 if (!wxPyCheckForApp()) SWIG_fail;
15376 PyThreadState* __tstate = wxPyBeginAllowThreads();
15377 result = wxSpinButton::GetClassDefaultAttributes(arg1);
15378 wxPyEndAllowThreads(__tstate);
15379 if (PyErr_Occurred()) SWIG_fail;
15380 }
15381 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15382 return resultobj;
15383 fail:
15384 return NULL;
15385 }
15386
15387
15388 SWIGINTERN PyObject *SpinButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15389 PyObject *obj;
15390 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15391 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinButton, SWIG_NewClientData(obj));
15392 return SWIG_Py_Void();
15393 }
15394
15395 SWIGINTERN PyObject *SpinButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15396 return SWIG_Python_InitShadowInstance(args);
15397 }
15398
15399 SWIGINTERN PyObject *_wrap_new_SpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15400 PyObject *resultobj = 0;
15401 wxWindow *arg1 = (wxWindow *) 0 ;
15402 int arg2 = (int) -1 ;
15403 wxString const &arg3_defvalue = wxPyEmptyString ;
15404 wxString *arg3 = (wxString *) &arg3_defvalue ;
15405 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15406 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15407 wxSize const &arg5_defvalue = wxDefaultSize ;
15408 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15409 long arg6 = (long) wxSP_ARROW_KEYS ;
15410 int arg7 = (int) 0 ;
15411 int arg8 = (int) 100 ;
15412 int arg9 = (int) 0 ;
15413 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
15414 wxString *arg10 = (wxString *) &arg10_defvalue ;
15415 wxSpinCtrl *result = 0 ;
15416 void *argp1 = 0 ;
15417 int res1 = 0 ;
15418 int val2 ;
15419 int ecode2 = 0 ;
15420 bool temp3 = false ;
15421 wxPoint temp4 ;
15422 wxSize temp5 ;
15423 long val6 ;
15424 int ecode6 = 0 ;
15425 int val7 ;
15426 int ecode7 = 0 ;
15427 int val8 ;
15428 int ecode8 = 0 ;
15429 int val9 ;
15430 int ecode9 = 0 ;
15431 bool temp10 = false ;
15432 PyObject * obj0 = 0 ;
15433 PyObject * obj1 = 0 ;
15434 PyObject * obj2 = 0 ;
15435 PyObject * obj3 = 0 ;
15436 PyObject * obj4 = 0 ;
15437 PyObject * obj5 = 0 ;
15438 PyObject * obj6 = 0 ;
15439 PyObject * obj7 = 0 ;
15440 PyObject * obj8 = 0 ;
15441 PyObject * obj9 = 0 ;
15442 char * kwnames[] = {
15443 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15444 };
15445
15446 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15447 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15448 if (!SWIG_IsOK(res1)) {
15449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
15450 }
15451 arg1 = reinterpret_cast< wxWindow * >(argp1);
15452 if (obj1) {
15453 ecode2 = SWIG_AsVal_int(obj1, &val2);
15454 if (!SWIG_IsOK(ecode2)) {
15455 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinCtrl" "', expected argument " "2"" of type '" "int""'");
15456 }
15457 arg2 = static_cast< int >(val2);
15458 }
15459 if (obj2) {
15460 {
15461 arg3 = wxString_in_helper(obj2);
15462 if (arg3 == NULL) SWIG_fail;
15463 temp3 = true;
15464 }
15465 }
15466 if (obj3) {
15467 {
15468 arg4 = &temp4;
15469 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15470 }
15471 }
15472 if (obj4) {
15473 {
15474 arg5 = &temp5;
15475 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15476 }
15477 }
15478 if (obj5) {
15479 ecode6 = SWIG_AsVal_long(obj5, &val6);
15480 if (!SWIG_IsOK(ecode6)) {
15481 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpinCtrl" "', expected argument " "6"" of type '" "long""'");
15482 }
15483 arg6 = static_cast< long >(val6);
15484 }
15485 if (obj6) {
15486 ecode7 = SWIG_AsVal_int(obj6, &val7);
15487 if (!SWIG_IsOK(ecode7)) {
15488 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpinCtrl" "', expected argument " "7"" of type '" "int""'");
15489 }
15490 arg7 = static_cast< int >(val7);
15491 }
15492 if (obj7) {
15493 ecode8 = SWIG_AsVal_int(obj7, &val8);
15494 if (!SWIG_IsOK(ecode8)) {
15495 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SpinCtrl" "', expected argument " "8"" of type '" "int""'");
15496 }
15497 arg8 = static_cast< int >(val8);
15498 }
15499 if (obj8) {
15500 ecode9 = SWIG_AsVal_int(obj8, &val9);
15501 if (!SWIG_IsOK(ecode9)) {
15502 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpinCtrl" "', expected argument " "9"" of type '" "int""'");
15503 }
15504 arg9 = static_cast< int >(val9);
15505 }
15506 if (obj9) {
15507 {
15508 arg10 = wxString_in_helper(obj9);
15509 if (arg10 == NULL) SWIG_fail;
15510 temp10 = true;
15511 }
15512 }
15513 {
15514 if (!wxPyCheckForApp()) SWIG_fail;
15515 PyThreadState* __tstate = wxPyBeginAllowThreads();
15516 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
15517 wxPyEndAllowThreads(__tstate);
15518 if (PyErr_Occurred()) SWIG_fail;
15519 }
15520 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_NEW | 0 );
15521 {
15522 if (temp3)
15523 delete arg3;
15524 }
15525 {
15526 if (temp10)
15527 delete arg10;
15528 }
15529 return resultobj;
15530 fail:
15531 {
15532 if (temp3)
15533 delete arg3;
15534 }
15535 {
15536 if (temp10)
15537 delete arg10;
15538 }
15539 return NULL;
15540 }
15541
15542
15543 SWIGINTERN PyObject *_wrap_new_PreSpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15544 PyObject *resultobj = 0;
15545 wxSpinCtrl *result = 0 ;
15546
15547 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinCtrl",0,0,0)) SWIG_fail;
15548 {
15549 if (!wxPyCheckForApp()) SWIG_fail;
15550 PyThreadState* __tstate = wxPyBeginAllowThreads();
15551 result = (wxSpinCtrl *)new wxSpinCtrl();
15552 wxPyEndAllowThreads(__tstate);
15553 if (PyErr_Occurred()) SWIG_fail;
15554 }
15555 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_OWN | 0 );
15556 return resultobj;
15557 fail:
15558 return NULL;
15559 }
15560
15561
15562 SWIGINTERN PyObject *_wrap_SpinCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15563 PyObject *resultobj = 0;
15564 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15565 wxWindow *arg2 = (wxWindow *) 0 ;
15566 int arg3 = (int) -1 ;
15567 wxString const &arg4_defvalue = wxPyEmptyString ;
15568 wxString *arg4 = (wxString *) &arg4_defvalue ;
15569 wxPoint const &arg5_defvalue = wxDefaultPosition ;
15570 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
15571 wxSize const &arg6_defvalue = wxDefaultSize ;
15572 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
15573 long arg7 = (long) wxSP_ARROW_KEYS ;
15574 int arg8 = (int) 0 ;
15575 int arg9 = (int) 100 ;
15576 int arg10 = (int) 0 ;
15577 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
15578 wxString *arg11 = (wxString *) &arg11_defvalue ;
15579 bool result;
15580 void *argp1 = 0 ;
15581 int res1 = 0 ;
15582 void *argp2 = 0 ;
15583 int res2 = 0 ;
15584 int val3 ;
15585 int ecode3 = 0 ;
15586 bool temp4 = false ;
15587 wxPoint temp5 ;
15588 wxSize temp6 ;
15589 long val7 ;
15590 int ecode7 = 0 ;
15591 int val8 ;
15592 int ecode8 = 0 ;
15593 int val9 ;
15594 int ecode9 = 0 ;
15595 int val10 ;
15596 int ecode10 = 0 ;
15597 bool temp11 = false ;
15598 PyObject * obj0 = 0 ;
15599 PyObject * obj1 = 0 ;
15600 PyObject * obj2 = 0 ;
15601 PyObject * obj3 = 0 ;
15602 PyObject * obj4 = 0 ;
15603 PyObject * obj5 = 0 ;
15604 PyObject * obj6 = 0 ;
15605 PyObject * obj7 = 0 ;
15606 PyObject * obj8 = 0 ;
15607 PyObject * obj9 = 0 ;
15608 PyObject * obj10 = 0 ;
15609 char * kwnames[] = {
15610 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15611 };
15612
15613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
15614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15615 if (!SWIG_IsOK(res1)) {
15616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_Create" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15617 }
15618 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15619 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
15620 if (!SWIG_IsOK(res2)) {
15621 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
15622 }
15623 arg2 = reinterpret_cast< wxWindow * >(argp2);
15624 if (obj2) {
15625 ecode3 = SWIG_AsVal_int(obj2, &val3);
15626 if (!SWIG_IsOK(ecode3)) {
15627 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_Create" "', expected argument " "3"" of type '" "int""'");
15628 }
15629 arg3 = static_cast< int >(val3);
15630 }
15631 if (obj3) {
15632 {
15633 arg4 = wxString_in_helper(obj3);
15634 if (arg4 == NULL) SWIG_fail;
15635 temp4 = true;
15636 }
15637 }
15638 if (obj4) {
15639 {
15640 arg5 = &temp5;
15641 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
15642 }
15643 }
15644 if (obj5) {
15645 {
15646 arg6 = &temp6;
15647 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
15648 }
15649 }
15650 if (obj6) {
15651 ecode7 = SWIG_AsVal_long(obj6, &val7);
15652 if (!SWIG_IsOK(ecode7)) {
15653 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SpinCtrl_Create" "', expected argument " "7"" of type '" "long""'");
15654 }
15655 arg7 = static_cast< long >(val7);
15656 }
15657 if (obj7) {
15658 ecode8 = SWIG_AsVal_int(obj7, &val8);
15659 if (!SWIG_IsOK(ecode8)) {
15660 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "SpinCtrl_Create" "', expected argument " "8"" of type '" "int""'");
15661 }
15662 arg8 = static_cast< int >(val8);
15663 }
15664 if (obj8) {
15665 ecode9 = SWIG_AsVal_int(obj8, &val9);
15666 if (!SWIG_IsOK(ecode9)) {
15667 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "SpinCtrl_Create" "', expected argument " "9"" of type '" "int""'");
15668 }
15669 arg9 = static_cast< int >(val9);
15670 }
15671 if (obj9) {
15672 ecode10 = SWIG_AsVal_int(obj9, &val10);
15673 if (!SWIG_IsOK(ecode10)) {
15674 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "SpinCtrl_Create" "', expected argument " "10"" of type '" "int""'");
15675 }
15676 arg10 = static_cast< int >(val10);
15677 }
15678 if (obj10) {
15679 {
15680 arg11 = wxString_in_helper(obj10);
15681 if (arg11 == NULL) SWIG_fail;
15682 temp11 = true;
15683 }
15684 }
15685 {
15686 PyThreadState* __tstate = wxPyBeginAllowThreads();
15687 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
15688 wxPyEndAllowThreads(__tstate);
15689 if (PyErr_Occurred()) SWIG_fail;
15690 }
15691 {
15692 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15693 }
15694 {
15695 if (temp4)
15696 delete arg4;
15697 }
15698 {
15699 if (temp11)
15700 delete arg11;
15701 }
15702 return resultobj;
15703 fail:
15704 {
15705 if (temp4)
15706 delete arg4;
15707 }
15708 {
15709 if (temp11)
15710 delete arg11;
15711 }
15712 return NULL;
15713 }
15714
15715
15716 SWIGINTERN PyObject *_wrap_SpinCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15717 PyObject *resultobj = 0;
15718 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15719 int result;
15720 void *argp1 = 0 ;
15721 int res1 = 0 ;
15722 PyObject *swig_obj[1] ;
15723
15724 if (!args) SWIG_fail;
15725 swig_obj[0] = args;
15726 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15727 if (!SWIG_IsOK(res1)) {
15728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetValue" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15729 }
15730 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15731 {
15732 PyThreadState* __tstate = wxPyBeginAllowThreads();
15733 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
15734 wxPyEndAllowThreads(__tstate);
15735 if (PyErr_Occurred()) SWIG_fail;
15736 }
15737 resultobj = SWIG_From_int(static_cast< int >(result));
15738 return resultobj;
15739 fail:
15740 return NULL;
15741 }
15742
15743
15744 SWIGINTERN PyObject *_wrap_SpinCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15745 PyObject *resultobj = 0;
15746 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15747 int arg2 ;
15748 void *argp1 = 0 ;
15749 int res1 = 0 ;
15750 int val2 ;
15751 int ecode2 = 0 ;
15752 PyObject * obj0 = 0 ;
15753 PyObject * obj1 = 0 ;
15754 char * kwnames[] = {
15755 (char *) "self",(char *) "value", NULL
15756 };
15757
15758 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15759 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15760 if (!SWIG_IsOK(res1)) {
15761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValue" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15762 }
15763 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15764 ecode2 = SWIG_AsVal_int(obj1, &val2);
15765 if (!SWIG_IsOK(ecode2)) {
15766 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetValue" "', expected argument " "2"" of type '" "int""'");
15767 }
15768 arg2 = static_cast< int >(val2);
15769 {
15770 PyThreadState* __tstate = wxPyBeginAllowThreads();
15771 (arg1)->SetValue(arg2);
15772 wxPyEndAllowThreads(__tstate);
15773 if (PyErr_Occurred()) SWIG_fail;
15774 }
15775 resultobj = SWIG_Py_Void();
15776 return resultobj;
15777 fail:
15778 return NULL;
15779 }
15780
15781
15782 SWIGINTERN PyObject *_wrap_SpinCtrl_SetValueString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15783 PyObject *resultobj = 0;
15784 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15785 wxString *arg2 = 0 ;
15786 void *argp1 = 0 ;
15787 int res1 = 0 ;
15788 bool temp2 = false ;
15789 PyObject * obj0 = 0 ;
15790 PyObject * obj1 = 0 ;
15791 char * kwnames[] = {
15792 (char *) "self",(char *) "text", NULL
15793 };
15794
15795 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) SWIG_fail;
15796 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15797 if (!SWIG_IsOK(res1)) {
15798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValueString" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15799 }
15800 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15801 {
15802 arg2 = wxString_in_helper(obj1);
15803 if (arg2 == NULL) SWIG_fail;
15804 temp2 = true;
15805 }
15806 {
15807 PyThreadState* __tstate = wxPyBeginAllowThreads();
15808 (arg1)->SetValue((wxString const &)*arg2);
15809 wxPyEndAllowThreads(__tstate);
15810 if (PyErr_Occurred()) SWIG_fail;
15811 }
15812 resultobj = SWIG_Py_Void();
15813 {
15814 if (temp2)
15815 delete arg2;
15816 }
15817 return resultobj;
15818 fail:
15819 {
15820 if (temp2)
15821 delete arg2;
15822 }
15823 return NULL;
15824 }
15825
15826
15827 SWIGINTERN PyObject *_wrap_SpinCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15828 PyObject *resultobj = 0;
15829 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15830 int arg2 ;
15831 int arg3 ;
15832 void *argp1 = 0 ;
15833 int res1 = 0 ;
15834 int val2 ;
15835 int ecode2 = 0 ;
15836 int val3 ;
15837 int ecode3 = 0 ;
15838 PyObject * obj0 = 0 ;
15839 PyObject * obj1 = 0 ;
15840 PyObject * obj2 = 0 ;
15841 char * kwnames[] = {
15842 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15843 };
15844
15845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15847 if (!SWIG_IsOK(res1)) {
15848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetRange" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15849 }
15850 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15851 ecode2 = SWIG_AsVal_int(obj1, &val2);
15852 if (!SWIG_IsOK(ecode2)) {
15853 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetRange" "', expected argument " "2"" of type '" "int""'");
15854 }
15855 arg2 = static_cast< int >(val2);
15856 ecode3 = SWIG_AsVal_int(obj2, &val3);
15857 if (!SWIG_IsOK(ecode3)) {
15858 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetRange" "', expected argument " "3"" of type '" "int""'");
15859 }
15860 arg3 = static_cast< int >(val3);
15861 {
15862 PyThreadState* __tstate = wxPyBeginAllowThreads();
15863 (arg1)->SetRange(arg2,arg3);
15864 wxPyEndAllowThreads(__tstate);
15865 if (PyErr_Occurred()) SWIG_fail;
15866 }
15867 resultobj = SWIG_Py_Void();
15868 return resultobj;
15869 fail:
15870 return NULL;
15871 }
15872
15873
15874 SWIGINTERN PyObject *_wrap_SpinCtrl_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15875 PyObject *resultobj = 0;
15876 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15877 int result;
15878 void *argp1 = 0 ;
15879 int res1 = 0 ;
15880 PyObject *swig_obj[1] ;
15881
15882 if (!args) SWIG_fail;
15883 swig_obj[0] = args;
15884 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15885 if (!SWIG_IsOK(res1)) {
15886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMin" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15887 }
15888 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15889 {
15890 PyThreadState* __tstate = wxPyBeginAllowThreads();
15891 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
15892 wxPyEndAllowThreads(__tstate);
15893 if (PyErr_Occurred()) SWIG_fail;
15894 }
15895 resultobj = SWIG_From_int(static_cast< int >(result));
15896 return resultobj;
15897 fail:
15898 return NULL;
15899 }
15900
15901
15902 SWIGINTERN PyObject *_wrap_SpinCtrl_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15903 PyObject *resultobj = 0;
15904 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15905 int result;
15906 void *argp1 = 0 ;
15907 int res1 = 0 ;
15908 PyObject *swig_obj[1] ;
15909
15910 if (!args) SWIG_fail;
15911 swig_obj[0] = args;
15912 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15913 if (!SWIG_IsOK(res1)) {
15914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMax" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15915 }
15916 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15917 {
15918 PyThreadState* __tstate = wxPyBeginAllowThreads();
15919 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
15920 wxPyEndAllowThreads(__tstate);
15921 if (PyErr_Occurred()) SWIG_fail;
15922 }
15923 resultobj = SWIG_From_int(static_cast< int >(result));
15924 return resultobj;
15925 fail:
15926 return NULL;
15927 }
15928
15929
15930 SWIGINTERN PyObject *_wrap_SpinCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15931 PyObject *resultobj = 0;
15932 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15933 long arg2 ;
15934 long arg3 ;
15935 void *argp1 = 0 ;
15936 int res1 = 0 ;
15937 long val2 ;
15938 int ecode2 = 0 ;
15939 long val3 ;
15940 int ecode3 = 0 ;
15941 PyObject * obj0 = 0 ;
15942 PyObject * obj1 = 0 ;
15943 PyObject * obj2 = 0 ;
15944 char * kwnames[] = {
15945 (char *) "self",(char *) "from",(char *) "to", NULL
15946 };
15947
15948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15950 if (!SWIG_IsOK(res1)) {
15951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetSelection" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15952 }
15953 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15954 ecode2 = SWIG_AsVal_long(obj1, &val2);
15955 if (!SWIG_IsOK(ecode2)) {
15956 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
15957 }
15958 arg2 = static_cast< long >(val2);
15959 ecode3 = SWIG_AsVal_long(obj2, &val3);
15960 if (!SWIG_IsOK(ecode3)) {
15961 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
15962 }
15963 arg3 = static_cast< long >(val3);
15964 {
15965 PyThreadState* __tstate = wxPyBeginAllowThreads();
15966 (arg1)->SetSelection(arg2,arg3);
15967 wxPyEndAllowThreads(__tstate);
15968 if (PyErr_Occurred()) SWIG_fail;
15969 }
15970 resultobj = SWIG_Py_Void();
15971 return resultobj;
15972 fail:
15973 return NULL;
15974 }
15975
15976
15977 SWIGINTERN PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15978 PyObject *resultobj = 0;
15979 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15980 SwigValueWrapper<wxVisualAttributes > result;
15981 int val1 ;
15982 int ecode1 = 0 ;
15983 PyObject * obj0 = 0 ;
15984 char * kwnames[] = {
15985 (char *) "variant", NULL
15986 };
15987
15988 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15989 if (obj0) {
15990 ecode1 = SWIG_AsVal_int(obj0, &val1);
15991 if (!SWIG_IsOK(ecode1)) {
15992 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15993 }
15994 arg1 = static_cast< wxWindowVariant >(val1);
15995 }
15996 {
15997 if (!wxPyCheckForApp()) SWIG_fail;
15998 PyThreadState* __tstate = wxPyBeginAllowThreads();
15999 result = wxSpinCtrl::GetClassDefaultAttributes(arg1);
16000 wxPyEndAllowThreads(__tstate);
16001 if (PyErr_Occurred()) SWIG_fail;
16002 }
16003 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
16004 return resultobj;
16005 fail:
16006 return NULL;
16007 }
16008
16009
16010 SWIGINTERN PyObject *SpinCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16011 PyObject *obj;
16012 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16013 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinCtrl, SWIG_NewClientData(obj));
16014 return SWIG_Py_Void();
16015 }
16016
16017 SWIGINTERN PyObject *SpinCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16018 return SWIG_Python_InitShadowInstance(args);
16019 }
16020
16021 SWIGINTERN PyObject *_wrap_new_SpinEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16022 PyObject *resultobj = 0;
16023 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
16024 int arg2 = (int) 0 ;
16025 wxSpinEvent *result = 0 ;
16026 int val1 ;
16027 int ecode1 = 0 ;
16028 int val2 ;
16029 int ecode2 = 0 ;
16030 PyObject * obj0 = 0 ;
16031 PyObject * obj1 = 0 ;
16032 char * kwnames[] = {
16033 (char *) "commandType",(char *) "winid", NULL
16034 };
16035
16036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) SWIG_fail;
16037 if (obj0) {
16038 ecode1 = SWIG_AsVal_int(obj0, &val1);
16039 if (!SWIG_IsOK(ecode1)) {
16040 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SpinEvent" "', expected argument " "1"" of type '" "wxEventType""'");
16041 }
16042 arg1 = static_cast< wxEventType >(val1);
16043 }
16044 if (obj1) {
16045 ecode2 = SWIG_AsVal_int(obj1, &val2);
16046 if (!SWIG_IsOK(ecode2)) {
16047 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinEvent" "', expected argument " "2"" of type '" "int""'");
16048 }
16049 arg2 = static_cast< int >(val2);
16050 }
16051 {
16052 PyThreadState* __tstate = wxPyBeginAllowThreads();
16053 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
16054 wxPyEndAllowThreads(__tstate);
16055 if (PyErr_Occurred()) SWIG_fail;
16056 }
16057 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_NEW | 0 );
16058 return resultobj;
16059 fail:
16060 return NULL;
16061 }
16062
16063
16064 SWIGINTERN PyObject *_wrap_SpinEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16065 PyObject *resultobj = 0;
16066 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
16067 int result;
16068 void *argp1 = 0 ;
16069 int res1 = 0 ;
16070 PyObject *swig_obj[1] ;
16071
16072 if (!args) SWIG_fail;
16073 swig_obj[0] = args;
16074 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
16075 if (!SWIG_IsOK(res1)) {
16076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_GetPosition" "', expected argument " "1"" of type '" "wxSpinEvent const *""'");
16077 }
16078 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
16079 {
16080 PyThreadState* __tstate = wxPyBeginAllowThreads();
16081 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
16082 wxPyEndAllowThreads(__tstate);
16083 if (PyErr_Occurred()) SWIG_fail;
16084 }
16085 resultobj = SWIG_From_int(static_cast< int >(result));
16086 return resultobj;
16087 fail:
16088 return NULL;
16089 }
16090
16091
16092 SWIGINTERN PyObject *_wrap_SpinEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16093 PyObject *resultobj = 0;
16094 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
16095 int arg2 ;
16096 void *argp1 = 0 ;
16097 int res1 = 0 ;
16098 int val2 ;
16099 int ecode2 = 0 ;
16100 PyObject * obj0 = 0 ;
16101 PyObject * obj1 = 0 ;
16102 char * kwnames[] = {
16103 (char *) "self",(char *) "pos", NULL
16104 };
16105
16106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
16107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
16108 if (!SWIG_IsOK(res1)) {
16109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_SetPosition" "', expected argument " "1"" of type '" "wxSpinEvent *""'");
16110 }
16111 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
16112 ecode2 = SWIG_AsVal_int(obj1, &val2);
16113 if (!SWIG_IsOK(ecode2)) {
16114 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinEvent_SetPosition" "', expected argument " "2"" of type '" "int""'");
16115 }
16116 arg2 = static_cast< int >(val2);
16117 {
16118 PyThreadState* __tstate = wxPyBeginAllowThreads();
16119 (arg1)->SetPosition(arg2);
16120 wxPyEndAllowThreads(__tstate);
16121 if (PyErr_Occurred()) SWIG_fail;
16122 }
16123 resultobj = SWIG_Py_Void();
16124 return resultobj;
16125 fail:
16126 return NULL;
16127 }
16128
16129
16130 SWIGINTERN PyObject *SpinEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16131 PyObject *obj;
16132 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16133 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinEvent, SWIG_NewClientData(obj));
16134 return SWIG_Py_Void();
16135 }
16136
16137 SWIGINTERN PyObject *SpinEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16138 return SWIG_Python_InitShadowInstance(args);
16139 }
16140
16141 SWIGINTERN int RadioBoxNameStr_set(PyObject *) {
16142 SWIG_Error(SWIG_AttributeError,"Variable RadioBoxNameStr is read-only.");
16143 return 1;
16144 }
16145
16146
16147 SWIGINTERN PyObject *RadioBoxNameStr_get(void) {
16148 PyObject *pyobj = 0;
16149
16150 {
16151 #if wxUSE_UNICODE
16152 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
16153 #else
16154 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
16155 #endif
16156 }
16157 return pyobj;
16158 }
16159
16160
16161 SWIGINTERN int RadioButtonNameStr_set(PyObject *) {
16162 SWIG_Error(SWIG_AttributeError,"Variable RadioButtonNameStr is read-only.");
16163 return 1;
16164 }
16165
16166
16167 SWIGINTERN PyObject *RadioButtonNameStr_get(void) {
16168 PyObject *pyobj = 0;
16169
16170 {
16171 #if wxUSE_UNICODE
16172 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
16173 #else
16174 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
16175 #endif
16176 }
16177 return pyobj;
16178 }
16179
16180
16181 SWIGINTERN PyObject *_wrap_new_RadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16182 PyObject *resultobj = 0;
16183 wxWindow *arg1 = (wxWindow *) 0 ;
16184 int arg2 = (int) -1 ;
16185 wxString const &arg3_defvalue = wxPyEmptyString ;
16186 wxString *arg3 = (wxString *) &arg3_defvalue ;
16187 wxPoint const &arg4_defvalue = wxDefaultPosition ;
16188 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
16189 wxSize const &arg5_defvalue = wxDefaultSize ;
16190 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
16191 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
16192 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
16193 int arg7 = (int) 0 ;
16194 long arg8 = (long) wxRA_HORIZONTAL ;
16195 wxValidator const &arg9_defvalue = wxDefaultValidator ;
16196 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
16197 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
16198 wxString *arg10 = (wxString *) &arg10_defvalue ;
16199 wxRadioBox *result = 0 ;
16200 void *argp1 = 0 ;
16201 int res1 = 0 ;
16202 int val2 ;
16203 int ecode2 = 0 ;
16204 bool temp3 = false ;
16205 wxPoint temp4 ;
16206 wxSize temp5 ;
16207 bool temp6 = false ;
16208 int val7 ;
16209 int ecode7 = 0 ;
16210 long val8 ;
16211 int ecode8 = 0 ;
16212 void *argp9 = 0 ;
16213 int res9 = 0 ;
16214 bool temp10 = false ;
16215 PyObject * obj0 = 0 ;
16216 PyObject * obj1 = 0 ;
16217 PyObject * obj2 = 0 ;
16218 PyObject * obj3 = 0 ;
16219 PyObject * obj4 = 0 ;
16220 PyObject * obj5 = 0 ;
16221 PyObject * obj6 = 0 ;
16222 PyObject * obj7 = 0 ;
16223 PyObject * obj8 = 0 ;
16224 PyObject * obj9 = 0 ;
16225 char * kwnames[] = {
16226 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16227 };
16228
16229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
16230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
16231 if (!SWIG_IsOK(res1)) {
16232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioBox" "', expected argument " "1"" of type '" "wxWindow *""'");
16233 }
16234 arg1 = reinterpret_cast< wxWindow * >(argp1);
16235 if (obj1) {
16236 ecode2 = SWIG_AsVal_int(obj1, &val2);
16237 if (!SWIG_IsOK(ecode2)) {
16238 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioBox" "', expected argument " "2"" of type '" "int""'");
16239 }
16240 arg2 = static_cast< int >(val2);
16241 }
16242 if (obj2) {
16243 {
16244 arg3 = wxString_in_helper(obj2);
16245 if (arg3 == NULL) SWIG_fail;
16246 temp3 = true;
16247 }
16248 }
16249 if (obj3) {
16250 {
16251 arg4 = &temp4;
16252 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
16253 }
16254 }
16255 if (obj4) {
16256 {
16257 arg5 = &temp5;
16258 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
16259 }
16260 }
16261 if (obj5) {
16262 {
16263 if (! PySequence_Check(obj5)) {
16264 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16265 SWIG_fail;
16266 }
16267 arg6 = new wxArrayString;
16268 temp6 = true;
16269 int i, len=PySequence_Length(obj5);
16270 for (i=0; i<len; i++) {
16271 PyObject* item = PySequence_GetItem(obj5, i);
16272 wxString* s = wxString_in_helper(item);
16273 if (PyErr_Occurred()) SWIG_fail;
16274 arg6->Add(*s);
16275 delete s;
16276 Py_DECREF(item);
16277 }
16278 }
16279 }
16280 if (obj6) {
16281 ecode7 = SWIG_AsVal_int(obj6, &val7);
16282 if (!SWIG_IsOK(ecode7)) {
16283 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_RadioBox" "', expected argument " "7"" of type '" "int""'");
16284 }
16285 arg7 = static_cast< int >(val7);
16286 }
16287 if (obj7) {
16288 ecode8 = SWIG_AsVal_long(obj7, &val8);
16289 if (!SWIG_IsOK(ecode8)) {
16290 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_RadioBox" "', expected argument " "8"" of type '" "long""'");
16291 }
16292 arg8 = static_cast< long >(val8);
16293 }
16294 if (obj8) {
16295 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
16296 if (!SWIG_IsOK(res9)) {
16297 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
16298 }
16299 if (!argp9) {
16300 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
16301 }
16302 arg9 = reinterpret_cast< wxValidator * >(argp9);
16303 }
16304 if (obj9) {
16305 {
16306 arg10 = wxString_in_helper(obj9);
16307 if (arg10 == NULL) SWIG_fail;
16308 temp10 = true;
16309 }
16310 }
16311 {
16312 if (!wxPyCheckForApp()) SWIG_fail;
16313 PyThreadState* __tstate = wxPyBeginAllowThreads();
16314 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);
16315 wxPyEndAllowThreads(__tstate);
16316 if (PyErr_Occurred()) SWIG_fail;
16317 }
16318 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_NEW | 0 );
16319 {
16320 if (temp3)
16321 delete arg3;
16322 }
16323 {
16324 if (temp6) delete arg6;
16325 }
16326 {
16327 if (temp10)
16328 delete arg10;
16329 }
16330 return resultobj;
16331 fail:
16332 {
16333 if (temp3)
16334 delete arg3;
16335 }
16336 {
16337 if (temp6) delete arg6;
16338 }
16339 {
16340 if (temp10)
16341 delete arg10;
16342 }
16343 return NULL;
16344 }
16345
16346
16347 SWIGINTERN PyObject *_wrap_new_PreRadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16348 PyObject *resultobj = 0;
16349 wxRadioBox *result = 0 ;
16350
16351 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioBox",0,0,0)) SWIG_fail;
16352 {
16353 if (!wxPyCheckForApp()) SWIG_fail;
16354 PyThreadState* __tstate = wxPyBeginAllowThreads();
16355 result = (wxRadioBox *)new wxRadioBox();
16356 wxPyEndAllowThreads(__tstate);
16357 if (PyErr_Occurred()) SWIG_fail;
16358 }
16359 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_OWN | 0 );
16360 return resultobj;
16361 fail:
16362 return NULL;
16363 }
16364
16365
16366 SWIGINTERN PyObject *_wrap_RadioBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16367 PyObject *resultobj = 0;
16368 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16369 wxWindow *arg2 = (wxWindow *) 0 ;
16370 int arg3 = (int) -1 ;
16371 wxString const &arg4_defvalue = wxPyEmptyString ;
16372 wxString *arg4 = (wxString *) &arg4_defvalue ;
16373 wxPoint const &arg5_defvalue = wxDefaultPosition ;
16374 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
16375 wxSize const &arg6_defvalue = wxDefaultSize ;
16376 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
16377 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
16378 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
16379 int arg8 = (int) 0 ;
16380 long arg9 = (long) wxRA_HORIZONTAL ;
16381 wxValidator const &arg10_defvalue = wxDefaultValidator ;
16382 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
16383 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
16384 wxString *arg11 = (wxString *) &arg11_defvalue ;
16385 bool result;
16386 void *argp1 = 0 ;
16387 int res1 = 0 ;
16388 void *argp2 = 0 ;
16389 int res2 = 0 ;
16390 int val3 ;
16391 int ecode3 = 0 ;
16392 bool temp4 = false ;
16393 wxPoint temp5 ;
16394 wxSize temp6 ;
16395 bool temp7 = false ;
16396 int val8 ;
16397 int ecode8 = 0 ;
16398 long val9 ;
16399 int ecode9 = 0 ;
16400 void *argp10 = 0 ;
16401 int res10 = 0 ;
16402 bool temp11 = false ;
16403 PyObject * obj0 = 0 ;
16404 PyObject * obj1 = 0 ;
16405 PyObject * obj2 = 0 ;
16406 PyObject * obj3 = 0 ;
16407 PyObject * obj4 = 0 ;
16408 PyObject * obj5 = 0 ;
16409 PyObject * obj6 = 0 ;
16410 PyObject * obj7 = 0 ;
16411 PyObject * obj8 = 0 ;
16412 PyObject * obj9 = 0 ;
16413 PyObject * obj10 = 0 ;
16414 char * kwnames[] = {
16415 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16416 };
16417
16418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
16419 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16420 if (!SWIG_IsOK(res1)) {
16421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_Create" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16422 }
16423 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16424 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
16425 if (!SWIG_IsOK(res2)) {
16426 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
16427 }
16428 arg2 = reinterpret_cast< wxWindow * >(argp2);
16429 if (obj2) {
16430 ecode3 = SWIG_AsVal_int(obj2, &val3);
16431 if (!SWIG_IsOK(ecode3)) {
16432 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_Create" "', expected argument " "3"" of type '" "int""'");
16433 }
16434 arg3 = static_cast< int >(val3);
16435 }
16436 if (obj3) {
16437 {
16438 arg4 = wxString_in_helper(obj3);
16439 if (arg4 == NULL) SWIG_fail;
16440 temp4 = true;
16441 }
16442 }
16443 if (obj4) {
16444 {
16445 arg5 = &temp5;
16446 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
16447 }
16448 }
16449 if (obj5) {
16450 {
16451 arg6 = &temp6;
16452 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
16453 }
16454 }
16455 if (obj6) {
16456 {
16457 if (! PySequence_Check(obj6)) {
16458 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16459 SWIG_fail;
16460 }
16461 arg7 = new wxArrayString;
16462 temp7 = true;
16463 int i, len=PySequence_Length(obj6);
16464 for (i=0; i<len; i++) {
16465 PyObject* item = PySequence_GetItem(obj6, i);
16466 wxString* s = wxString_in_helper(item);
16467 if (PyErr_Occurred()) SWIG_fail;
16468 arg7->Add(*s);
16469 delete s;
16470 Py_DECREF(item);
16471 }
16472 }
16473 }
16474 if (obj7) {
16475 ecode8 = SWIG_AsVal_int(obj7, &val8);
16476 if (!SWIG_IsOK(ecode8)) {
16477 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "RadioBox_Create" "', expected argument " "8"" of type '" "int""'");
16478 }
16479 arg8 = static_cast< int >(val8);
16480 }
16481 if (obj8) {
16482 ecode9 = SWIG_AsVal_long(obj8, &val9);
16483 if (!SWIG_IsOK(ecode9)) {
16484 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "RadioBox_Create" "', expected argument " "9"" of type '" "long""'");
16485 }
16486 arg9 = static_cast< long >(val9);
16487 }
16488 if (obj9) {
16489 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
16490 if (!SWIG_IsOK(res10)) {
16491 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
16492 }
16493 if (!argp10) {
16494 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
16495 }
16496 arg10 = reinterpret_cast< wxValidator * >(argp10);
16497 }
16498 if (obj10) {
16499 {
16500 arg11 = wxString_in_helper(obj10);
16501 if (arg11 == NULL) SWIG_fail;
16502 temp11 = true;
16503 }
16504 }
16505 {
16506 PyThreadState* __tstate = wxPyBeginAllowThreads();
16507 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);
16508 wxPyEndAllowThreads(__tstate);
16509 if (PyErr_Occurred()) SWIG_fail;
16510 }
16511 {
16512 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16513 }
16514 {
16515 if (temp4)
16516 delete arg4;
16517 }
16518 {
16519 if (temp7) delete arg7;
16520 }
16521 {
16522 if (temp11)
16523 delete arg11;
16524 }
16525 return resultobj;
16526 fail:
16527 {
16528 if (temp4)
16529 delete arg4;
16530 }
16531 {
16532 if (temp7) delete arg7;
16533 }
16534 {
16535 if (temp11)
16536 delete arg11;
16537 }
16538 return NULL;
16539 }
16540
16541
16542 SWIGINTERN PyObject *_wrap_RadioBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16543 PyObject *resultobj = 0;
16544 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16545 int arg2 ;
16546 void *argp1 = 0 ;
16547 int res1 = 0 ;
16548 int val2 ;
16549 int ecode2 = 0 ;
16550 PyObject * obj0 = 0 ;
16551 PyObject * obj1 = 0 ;
16552 char * kwnames[] = {
16553 (char *) "self",(char *) "n", NULL
16554 };
16555
16556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16558 if (!SWIG_IsOK(res1)) {
16559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16560 }
16561 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16562 ecode2 = SWIG_AsVal_int(obj1, &val2);
16563 if (!SWIG_IsOK(ecode2)) {
16564 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
16565 }
16566 arg2 = static_cast< int >(val2);
16567 {
16568 PyThreadState* __tstate = wxPyBeginAllowThreads();
16569 (arg1)->SetSelection(arg2);
16570 wxPyEndAllowThreads(__tstate);
16571 if (PyErr_Occurred()) SWIG_fail;
16572 }
16573 resultobj = SWIG_Py_Void();
16574 return resultobj;
16575 fail:
16576 return NULL;
16577 }
16578
16579
16580 SWIGINTERN PyObject *_wrap_RadioBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16581 PyObject *resultobj = 0;
16582 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16583 int result;
16584 void *argp1 = 0 ;
16585 int res1 = 0 ;
16586 PyObject *swig_obj[1] ;
16587
16588 if (!args) SWIG_fail;
16589 swig_obj[0] = args;
16590 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16591 if (!SWIG_IsOK(res1)) {
16592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16593 }
16594 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16595 {
16596 PyThreadState* __tstate = wxPyBeginAllowThreads();
16597 result = (int)((wxRadioBox const *)arg1)->GetSelection();
16598 wxPyEndAllowThreads(__tstate);
16599 if (PyErr_Occurred()) SWIG_fail;
16600 }
16601 resultobj = SWIG_From_int(static_cast< int >(result));
16602 return resultobj;
16603 fail:
16604 return NULL;
16605 }
16606
16607
16608 SWIGINTERN PyObject *_wrap_RadioBox_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16609 PyObject *resultobj = 0;
16610 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16611 wxString result;
16612 void *argp1 = 0 ;
16613 int res1 = 0 ;
16614 PyObject *swig_obj[1] ;
16615
16616 if (!args) SWIG_fail;
16617 swig_obj[0] = args;
16618 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16619 if (!SWIG_IsOK(res1)) {
16620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16621 }
16622 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16623 {
16624 PyThreadState* __tstate = wxPyBeginAllowThreads();
16625 result = ((wxRadioBox const *)arg1)->GetStringSelection();
16626 wxPyEndAllowThreads(__tstate);
16627 if (PyErr_Occurred()) SWIG_fail;
16628 }
16629 {
16630 #if wxUSE_UNICODE
16631 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16632 #else
16633 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16634 #endif
16635 }
16636 return resultobj;
16637 fail:
16638 return NULL;
16639 }
16640
16641
16642 SWIGINTERN PyObject *_wrap_RadioBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16643 PyObject *resultobj = 0;
16644 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16645 wxString *arg2 = 0 ;
16646 bool result;
16647 void *argp1 = 0 ;
16648 int res1 = 0 ;
16649 bool temp2 = false ;
16650 PyObject * obj0 = 0 ;
16651 PyObject * obj1 = 0 ;
16652 char * kwnames[] = {
16653 (char *) "self",(char *) "s", NULL
16654 };
16655
16656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16658 if (!SWIG_IsOK(res1)) {
16659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16660 }
16661 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16662 {
16663 arg2 = wxString_in_helper(obj1);
16664 if (arg2 == NULL) SWIG_fail;
16665 temp2 = true;
16666 }
16667 {
16668 PyThreadState* __tstate = wxPyBeginAllowThreads();
16669 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
16670 wxPyEndAllowThreads(__tstate);
16671 if (PyErr_Occurred()) SWIG_fail;
16672 }
16673 {
16674 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16675 }
16676 {
16677 if (temp2)
16678 delete arg2;
16679 }
16680 return resultobj;
16681 fail:
16682 {
16683 if (temp2)
16684 delete arg2;
16685 }
16686 return NULL;
16687 }
16688
16689
16690 SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16691 PyObject *resultobj = 0;
16692 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16693 size_t result;
16694 void *argp1 = 0 ;
16695 int res1 = 0 ;
16696 PyObject *swig_obj[1] ;
16697
16698 if (!args) SWIG_fail;
16699 swig_obj[0] = args;
16700 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16701 if (!SWIG_IsOK(res1)) {
16702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16703 }
16704 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16705 {
16706 PyThreadState* __tstate = wxPyBeginAllowThreads();
16707 result = (size_t)((wxRadioBox const *)arg1)->GetCount();
16708 wxPyEndAllowThreads(__tstate);
16709 if (PyErr_Occurred()) SWIG_fail;
16710 }
16711 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
16712 return resultobj;
16713 fail:
16714 return NULL;
16715 }
16716
16717
16718 SWIGINTERN PyObject *_wrap_RadioBox_FindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16719 PyObject *resultobj = 0;
16720 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16721 wxString *arg2 = 0 ;
16722 int result;
16723 void *argp1 = 0 ;
16724 int res1 = 0 ;
16725 bool temp2 = false ;
16726 PyObject * obj0 = 0 ;
16727 PyObject * obj1 = 0 ;
16728 char * kwnames[] = {
16729 (char *) "self",(char *) "s", NULL
16730 };
16731
16732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) SWIG_fail;
16733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16734 if (!SWIG_IsOK(res1)) {
16735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_FindString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16736 }
16737 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16738 {
16739 arg2 = wxString_in_helper(obj1);
16740 if (arg2 == NULL) SWIG_fail;
16741 temp2 = true;
16742 }
16743 {
16744 PyThreadState* __tstate = wxPyBeginAllowThreads();
16745 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
16746 wxPyEndAllowThreads(__tstate);
16747 if (PyErr_Occurred()) SWIG_fail;
16748 }
16749 resultobj = SWIG_From_int(static_cast< int >(result));
16750 {
16751 if (temp2)
16752 delete arg2;
16753 }
16754 return resultobj;
16755 fail:
16756 {
16757 if (temp2)
16758 delete arg2;
16759 }
16760 return NULL;
16761 }
16762
16763
16764 SWIGINTERN PyObject *_wrap_RadioBox_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16765 PyObject *resultobj = 0;
16766 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16767 int arg2 ;
16768 wxString result;
16769 void *argp1 = 0 ;
16770 int res1 = 0 ;
16771 int val2 ;
16772 int ecode2 = 0 ;
16773 PyObject * obj0 = 0 ;
16774 PyObject * obj1 = 0 ;
16775 char * kwnames[] = {
16776 (char *) "self",(char *) "n", NULL
16777 };
16778
16779 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) SWIG_fail;
16780 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16781 if (!SWIG_IsOK(res1)) {
16782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16783 }
16784 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16785 ecode2 = SWIG_AsVal_int(obj1, &val2);
16786 if (!SWIG_IsOK(ecode2)) {
16787 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetString" "', expected argument " "2"" of type '" "int""'");
16788 }
16789 arg2 = static_cast< int >(val2);
16790 {
16791 PyThreadState* __tstate = wxPyBeginAllowThreads();
16792 result = ((wxRadioBox const *)arg1)->GetString(arg2);
16793 wxPyEndAllowThreads(__tstate);
16794 if (PyErr_Occurred()) SWIG_fail;
16795 }
16796 {
16797 #if wxUSE_UNICODE
16798 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16799 #else
16800 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16801 #endif
16802 }
16803 return resultobj;
16804 fail:
16805 return NULL;
16806 }
16807
16808
16809 SWIGINTERN PyObject *_wrap_RadioBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16810 PyObject *resultobj = 0;
16811 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16812 int arg2 ;
16813 wxString *arg3 = 0 ;
16814 void *argp1 = 0 ;
16815 int res1 = 0 ;
16816 int val2 ;
16817 int ecode2 = 0 ;
16818 bool temp3 = false ;
16819 PyObject * obj0 = 0 ;
16820 PyObject * obj1 = 0 ;
16821 PyObject * obj2 = 0 ;
16822 char * kwnames[] = {
16823 (char *) "self",(char *) "n",(char *) "label", NULL
16824 };
16825
16826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16828 if (!SWIG_IsOK(res1)) {
16829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetString" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16830 }
16831 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16832 ecode2 = SWIG_AsVal_int(obj1, &val2);
16833 if (!SWIG_IsOK(ecode2)) {
16834 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetString" "', expected argument " "2"" of type '" "int""'");
16835 }
16836 arg2 = static_cast< int >(val2);
16837 {
16838 arg3 = wxString_in_helper(obj2);
16839 if (arg3 == NULL) SWIG_fail;
16840 temp3 = true;
16841 }
16842 {
16843 PyThreadState* __tstate = wxPyBeginAllowThreads();
16844 (arg1)->SetString(arg2,(wxString const &)*arg3);
16845 wxPyEndAllowThreads(__tstate);
16846 if (PyErr_Occurred()) SWIG_fail;
16847 }
16848 resultobj = SWIG_Py_Void();
16849 {
16850 if (temp3)
16851 delete arg3;
16852 }
16853 return resultobj;
16854 fail:
16855 {
16856 if (temp3)
16857 delete arg3;
16858 }
16859 return NULL;
16860 }
16861
16862
16863 SWIGINTERN PyObject *_wrap_RadioBox_EnableItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16864 PyObject *resultobj = 0;
16865 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16866 unsigned int arg2 ;
16867 bool arg3 = (bool) true ;
16868 void *argp1 = 0 ;
16869 int res1 = 0 ;
16870 unsigned int val2 ;
16871 int ecode2 = 0 ;
16872 bool val3 ;
16873 int ecode3 = 0 ;
16874 PyObject * obj0 = 0 ;
16875 PyObject * obj1 = 0 ;
16876 PyObject * obj2 = 0 ;
16877 char * kwnames[] = {
16878 (char *) "self",(char *) "n",(char *) "enable", NULL
16879 };
16880
16881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16882 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16883 if (!SWIG_IsOK(res1)) {
16884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_EnableItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16885 }
16886 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16887 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16888 if (!SWIG_IsOK(ecode2)) {
16889 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_EnableItem" "', expected argument " "2"" of type '" "unsigned int""'");
16890 }
16891 arg2 = static_cast< unsigned int >(val2);
16892 if (obj2) {
16893 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16894 if (!SWIG_IsOK(ecode3)) {
16895 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_EnableItem" "', expected argument " "3"" of type '" "bool""'");
16896 }
16897 arg3 = static_cast< bool >(val3);
16898 }
16899 {
16900 PyThreadState* __tstate = wxPyBeginAllowThreads();
16901 (arg1)->Enable(arg2,arg3);
16902 wxPyEndAllowThreads(__tstate);
16903 if (PyErr_Occurred()) SWIG_fail;
16904 }
16905 resultobj = SWIG_Py_Void();
16906 return resultobj;
16907 fail:
16908 return NULL;
16909 }
16910
16911
16912 SWIGINTERN PyObject *_wrap_RadioBox_ShowItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16913 PyObject *resultobj = 0;
16914 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16915 unsigned int arg2 ;
16916 bool arg3 = (bool) true ;
16917 void *argp1 = 0 ;
16918 int res1 = 0 ;
16919 unsigned int val2 ;
16920 int ecode2 = 0 ;
16921 bool val3 ;
16922 int ecode3 = 0 ;
16923 PyObject * obj0 = 0 ;
16924 PyObject * obj1 = 0 ;
16925 PyObject * obj2 = 0 ;
16926 char * kwnames[] = {
16927 (char *) "self",(char *) "n",(char *) "show", NULL
16928 };
16929
16930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16932 if (!SWIG_IsOK(res1)) {
16933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_ShowItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16934 }
16935 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16936 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16937 if (!SWIG_IsOK(ecode2)) {
16938 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_ShowItem" "', expected argument " "2"" of type '" "unsigned int""'");
16939 }
16940 arg2 = static_cast< unsigned int >(val2);
16941 if (obj2) {
16942 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16943 if (!SWIG_IsOK(ecode3)) {
16944 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_ShowItem" "', expected argument " "3"" of type '" "bool""'");
16945 }
16946 arg3 = static_cast< bool >(val3);
16947 }
16948 {
16949 PyThreadState* __tstate = wxPyBeginAllowThreads();
16950 (arg1)->Show(arg2,arg3);
16951 wxPyEndAllowThreads(__tstate);
16952 if (PyErr_Occurred()) SWIG_fail;
16953 }
16954 resultobj = SWIG_Py_Void();
16955 return resultobj;
16956 fail:
16957 return NULL;
16958 }
16959
16960
16961 SWIGINTERN PyObject *_wrap_RadioBox_IsItemEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16962 PyObject *resultobj = 0;
16963 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16964 unsigned int arg2 ;
16965 bool result;
16966 void *argp1 = 0 ;
16967 int res1 = 0 ;
16968 unsigned int val2 ;
16969 int ecode2 = 0 ;
16970 PyObject * obj0 = 0 ;
16971 PyObject * obj1 = 0 ;
16972 char * kwnames[] = {
16973 (char *) "self",(char *) "n", NULL
16974 };
16975
16976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
16977 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16978 if (!SWIG_IsOK(res1)) {
16979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16980 }
16981 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16982 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16983 if (!SWIG_IsOK(ecode2)) {
16984 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "2"" of type '" "unsigned int""'");
16985 }
16986 arg2 = static_cast< unsigned int >(val2);
16987 {
16988 PyThreadState* __tstate = wxPyBeginAllowThreads();
16989 result = (bool)((wxRadioBox const *)arg1)->IsItemEnabled(arg2);
16990 wxPyEndAllowThreads(__tstate);
16991 if (PyErr_Occurred()) SWIG_fail;
16992 }
16993 {
16994 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16995 }
16996 return resultobj;
16997 fail:
16998 return NULL;
16999 }
17000
17001
17002 SWIGINTERN PyObject *_wrap_RadioBox_IsItemShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17003 PyObject *resultobj = 0;
17004 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17005 unsigned int arg2 ;
17006 bool result;
17007 void *argp1 = 0 ;
17008 int res1 = 0 ;
17009 unsigned int val2 ;
17010 int ecode2 = 0 ;
17011 PyObject * obj0 = 0 ;
17012 PyObject * obj1 = 0 ;
17013 char * kwnames[] = {
17014 (char *) "self",(char *) "n", NULL
17015 };
17016
17017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemShown",kwnames,&obj0,&obj1)) SWIG_fail;
17018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17019 if (!SWIG_IsOK(res1)) {
17020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemShown" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17021 }
17022 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17023 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17024 if (!SWIG_IsOK(ecode2)) {
17025 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemShown" "', expected argument " "2"" of type '" "unsigned int""'");
17026 }
17027 arg2 = static_cast< unsigned int >(val2);
17028 {
17029 PyThreadState* __tstate = wxPyBeginAllowThreads();
17030 result = (bool)((wxRadioBox const *)arg1)->IsItemShown(arg2);
17031 wxPyEndAllowThreads(__tstate);
17032 if (PyErr_Occurred()) SWIG_fail;
17033 }
17034 {
17035 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17036 }
17037 return resultobj;
17038 fail:
17039 return NULL;
17040 }
17041
17042
17043 SWIGINTERN PyObject *_wrap_RadioBox_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17044 PyObject *resultobj = 0;
17045 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17046 unsigned int result;
17047 void *argp1 = 0 ;
17048 int res1 = 0 ;
17049 PyObject *swig_obj[1] ;
17050
17051 if (!args) SWIG_fail;
17052 swig_obj[0] = args;
17053 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17054 if (!SWIG_IsOK(res1)) {
17055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetColumnCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17056 }
17057 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17058 {
17059 PyThreadState* __tstate = wxPyBeginAllowThreads();
17060 result = (unsigned int)((wxRadioBox const *)arg1)->GetColumnCount();
17061 wxPyEndAllowThreads(__tstate);
17062 if (PyErr_Occurred()) SWIG_fail;
17063 }
17064 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
17065 return resultobj;
17066 fail:
17067 return NULL;
17068 }
17069
17070
17071 SWIGINTERN PyObject *_wrap_RadioBox_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17072 PyObject *resultobj = 0;
17073 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17074 unsigned int result;
17075 void *argp1 = 0 ;
17076 int res1 = 0 ;
17077 PyObject *swig_obj[1] ;
17078
17079 if (!args) SWIG_fail;
17080 swig_obj[0] = args;
17081 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17082 if (!SWIG_IsOK(res1)) {
17083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetRowCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17084 }
17085 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17086 {
17087 PyThreadState* __tstate = wxPyBeginAllowThreads();
17088 result = (unsigned int)((wxRadioBox const *)arg1)->GetRowCount();
17089 wxPyEndAllowThreads(__tstate);
17090 if (PyErr_Occurred()) SWIG_fail;
17091 }
17092 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
17093 return resultobj;
17094 fail:
17095 return NULL;
17096 }
17097
17098
17099 SWIGINTERN PyObject *_wrap_RadioBox_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17100 PyObject *resultobj = 0;
17101 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17102 int arg2 ;
17103 wxDirection arg3 ;
17104 long arg4 ;
17105 int result;
17106 void *argp1 = 0 ;
17107 int res1 = 0 ;
17108 int val2 ;
17109 int ecode2 = 0 ;
17110 int val3 ;
17111 int ecode3 = 0 ;
17112 long val4 ;
17113 int ecode4 = 0 ;
17114 PyObject * obj0 = 0 ;
17115 PyObject * obj1 = 0 ;
17116 PyObject * obj2 = 0 ;
17117 PyObject * obj3 = 0 ;
17118 char * kwnames[] = {
17119 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
17120 };
17121
17122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17124 if (!SWIG_IsOK(res1)) {
17125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetNextItem" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17126 }
17127 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17128 ecode2 = SWIG_AsVal_int(obj1, &val2);
17129 if (!SWIG_IsOK(ecode2)) {
17130 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetNextItem" "', expected argument " "2"" of type '" "int""'");
17131 }
17132 arg2 = static_cast< int >(val2);
17133 ecode3 = SWIG_AsVal_int(obj2, &val3);
17134 if (!SWIG_IsOK(ecode3)) {
17135 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_GetNextItem" "', expected argument " "3"" of type '" "wxDirection""'");
17136 }
17137 arg3 = static_cast< wxDirection >(val3);
17138 ecode4 = SWIG_AsVal_long(obj3, &val4);
17139 if (!SWIG_IsOK(ecode4)) {
17140 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RadioBox_GetNextItem" "', expected argument " "4"" of type '" "long""'");
17141 }
17142 arg4 = static_cast< long >(val4);
17143 {
17144 PyThreadState* __tstate = wxPyBeginAllowThreads();
17145 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,arg3,arg4);
17146 wxPyEndAllowThreads(__tstate);
17147 if (PyErr_Occurred()) SWIG_fail;
17148 }
17149 resultobj = SWIG_From_int(static_cast< int >(result));
17150 return resultobj;
17151 fail:
17152 return NULL;
17153 }
17154
17155
17156 SWIGINTERN PyObject *_wrap_RadioBox_SetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17157 PyObject *resultobj = 0;
17158 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17159 unsigned int arg2 ;
17160 wxString *arg3 = 0 ;
17161 void *argp1 = 0 ;
17162 int res1 = 0 ;
17163 unsigned int val2 ;
17164 int ecode2 = 0 ;
17165 bool temp3 = false ;
17166 PyObject * obj0 = 0 ;
17167 PyObject * obj1 = 0 ;
17168 PyObject * obj2 = 0 ;
17169 char * kwnames[] = {
17170 (char *) "self",(char *) "item",(char *) "text", NULL
17171 };
17172
17173 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemToolTip",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17174 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17175 if (!SWIG_IsOK(res1)) {
17176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox *""'");
17177 }
17178 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17179 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17180 if (!SWIG_IsOK(ecode2)) {
17181 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
17182 }
17183 arg2 = static_cast< unsigned int >(val2);
17184 {
17185 arg3 = wxString_in_helper(obj2);
17186 if (arg3 == NULL) SWIG_fail;
17187 temp3 = true;
17188 }
17189 {
17190 PyThreadState* __tstate = wxPyBeginAllowThreads();
17191 (arg1)->SetItemToolTip(arg2,(wxString const &)*arg3);
17192 wxPyEndAllowThreads(__tstate);
17193 if (PyErr_Occurred()) SWIG_fail;
17194 }
17195 resultobj = SWIG_Py_Void();
17196 {
17197 if (temp3)
17198 delete arg3;
17199 }
17200 return resultobj;
17201 fail:
17202 {
17203 if (temp3)
17204 delete arg3;
17205 }
17206 return NULL;
17207 }
17208
17209
17210 SWIGINTERN PyObject *_wrap_RadioBox_GetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17211 PyObject *resultobj = 0;
17212 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17213 unsigned int arg2 ;
17214 wxToolTip *result = 0 ;
17215 void *argp1 = 0 ;
17216 int res1 = 0 ;
17217 unsigned int val2 ;
17218 int ecode2 = 0 ;
17219 PyObject * obj0 = 0 ;
17220 PyObject * obj1 = 0 ;
17221 char * kwnames[] = {
17222 (char *) "self",(char *) "item", NULL
17223 };
17224
17225 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
17226 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17227 if (!SWIG_IsOK(res1)) {
17228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17229 }
17230 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17231 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17232 if (!SWIG_IsOK(ecode2)) {
17233 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
17234 }
17235 arg2 = static_cast< unsigned int >(val2);
17236 {
17237 PyThreadState* __tstate = wxPyBeginAllowThreads();
17238 result = (wxToolTip *)((wxRadioBox const *)arg1)->GetItemToolTip(arg2);
17239 wxPyEndAllowThreads(__tstate);
17240 if (PyErr_Occurred()) SWIG_fail;
17241 }
17242 {
17243 resultobj = wxPyMake_wxObject(result, (bool)0);
17244 }
17245 return resultobj;
17246 fail:
17247 return NULL;
17248 }
17249
17250
17251 SWIGINTERN PyObject *_wrap_RadioBox_SetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17252 PyObject *resultobj = 0;
17253 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17254 unsigned int arg2 ;
17255 wxString *arg3 = 0 ;
17256 void *argp1 = 0 ;
17257 int res1 = 0 ;
17258 unsigned int val2 ;
17259 int ecode2 = 0 ;
17260 bool temp3 = false ;
17261 PyObject * obj0 = 0 ;
17262 PyObject * obj1 = 0 ;
17263 PyObject * obj2 = 0 ;
17264 char * kwnames[] = {
17265 (char *) "self",(char *) "n",(char *) "helpText", NULL
17266 };
17267
17268 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemHelpText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17270 if (!SWIG_IsOK(res1)) {
17271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox *""'");
17272 }
17273 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17274 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17275 if (!SWIG_IsOK(ecode2)) {
17276 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17277 }
17278 arg2 = static_cast< unsigned int >(val2);
17279 {
17280 arg3 = wxString_in_helper(obj2);
17281 if (arg3 == NULL) SWIG_fail;
17282 temp3 = true;
17283 }
17284 {
17285 PyThreadState* __tstate = wxPyBeginAllowThreads();
17286 (arg1)->SetItemHelpText(arg2,(wxString const &)*arg3);
17287 wxPyEndAllowThreads(__tstate);
17288 if (PyErr_Occurred()) SWIG_fail;
17289 }
17290 resultobj = SWIG_Py_Void();
17291 {
17292 if (temp3)
17293 delete arg3;
17294 }
17295 return resultobj;
17296 fail:
17297 {
17298 if (temp3)
17299 delete arg3;
17300 }
17301 return NULL;
17302 }
17303
17304
17305 SWIGINTERN PyObject *_wrap_RadioBox_GetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17306 PyObject *resultobj = 0;
17307 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17308 unsigned int arg2 ;
17309 wxString result;
17310 void *argp1 = 0 ;
17311 int res1 = 0 ;
17312 unsigned int val2 ;
17313 int ecode2 = 0 ;
17314 PyObject * obj0 = 0 ;
17315 PyObject * obj1 = 0 ;
17316 char * kwnames[] = {
17317 (char *) "self",(char *) "n", NULL
17318 };
17319
17320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemHelpText",kwnames,&obj0,&obj1)) SWIG_fail;
17321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17322 if (!SWIG_IsOK(res1)) {
17323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17324 }
17325 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17326 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17327 if (!SWIG_IsOK(ecode2)) {
17328 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17329 }
17330 arg2 = static_cast< unsigned int >(val2);
17331 {
17332 PyThreadState* __tstate = wxPyBeginAllowThreads();
17333 result = ((wxRadioBox const *)arg1)->GetItemHelpText(arg2);
17334 wxPyEndAllowThreads(__tstate);
17335 if (PyErr_Occurred()) SWIG_fail;
17336 }
17337 {
17338 #if wxUSE_UNICODE
17339 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17340 #else
17341 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17342 #endif
17343 }
17344 return resultobj;
17345 fail:
17346 return NULL;
17347 }
17348
17349
17350 SWIGINTERN PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17351 PyObject *resultobj = 0;
17352 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17353 SwigValueWrapper<wxVisualAttributes > result;
17354 int val1 ;
17355 int ecode1 = 0 ;
17356 PyObject * obj0 = 0 ;
17357 char * kwnames[] = {
17358 (char *) "variant", NULL
17359 };
17360
17361 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17362 if (obj0) {
17363 ecode1 = SWIG_AsVal_int(obj0, &val1);
17364 if (!SWIG_IsOK(ecode1)) {
17365 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17366 }
17367 arg1 = static_cast< wxWindowVariant >(val1);
17368 }
17369 {
17370 if (!wxPyCheckForApp()) SWIG_fail;
17371 PyThreadState* __tstate = wxPyBeginAllowThreads();
17372 result = wxRadioBox::GetClassDefaultAttributes(arg1);
17373 wxPyEndAllowThreads(__tstate);
17374 if (PyErr_Occurred()) SWIG_fail;
17375 }
17376 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17377 return resultobj;
17378 fail:
17379 return NULL;
17380 }
17381
17382
17383 SWIGINTERN PyObject *RadioBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17384 PyObject *obj;
17385 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17386 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioBox, SWIG_NewClientData(obj));
17387 return SWIG_Py_Void();
17388 }
17389
17390 SWIGINTERN PyObject *RadioBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17391 return SWIG_Python_InitShadowInstance(args);
17392 }
17393
17394 SWIGINTERN PyObject *_wrap_new_RadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17395 PyObject *resultobj = 0;
17396 wxWindow *arg1 = (wxWindow *) 0 ;
17397 int arg2 = (int) -1 ;
17398 wxString const &arg3_defvalue = wxPyEmptyString ;
17399 wxString *arg3 = (wxString *) &arg3_defvalue ;
17400 wxPoint const &arg4_defvalue = wxDefaultPosition ;
17401 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
17402 wxSize const &arg5_defvalue = wxDefaultSize ;
17403 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
17404 long arg6 = (long) 0 ;
17405 wxValidator const &arg7_defvalue = wxDefaultValidator ;
17406 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
17407 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
17408 wxString *arg8 = (wxString *) &arg8_defvalue ;
17409 wxRadioButton *result = 0 ;
17410 void *argp1 = 0 ;
17411 int res1 = 0 ;
17412 int val2 ;
17413 int ecode2 = 0 ;
17414 bool temp3 = false ;
17415 wxPoint temp4 ;
17416 wxSize temp5 ;
17417 long val6 ;
17418 int ecode6 = 0 ;
17419 void *argp7 = 0 ;
17420 int res7 = 0 ;
17421 bool temp8 = false ;
17422 PyObject * obj0 = 0 ;
17423 PyObject * obj1 = 0 ;
17424 PyObject * obj2 = 0 ;
17425 PyObject * obj3 = 0 ;
17426 PyObject * obj4 = 0 ;
17427 PyObject * obj5 = 0 ;
17428 PyObject * obj6 = 0 ;
17429 PyObject * obj7 = 0 ;
17430 char * kwnames[] = {
17431 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17432 };
17433
17434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
17435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17436 if (!SWIG_IsOK(res1)) {
17437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioButton" "', expected argument " "1"" of type '" "wxWindow *""'");
17438 }
17439 arg1 = reinterpret_cast< wxWindow * >(argp1);
17440 if (obj1) {
17441 ecode2 = SWIG_AsVal_int(obj1, &val2);
17442 if (!SWIG_IsOK(ecode2)) {
17443 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioButton" "', expected argument " "2"" of type '" "int""'");
17444 }
17445 arg2 = static_cast< int >(val2);
17446 }
17447 if (obj2) {
17448 {
17449 arg3 = wxString_in_helper(obj2);
17450 if (arg3 == NULL) SWIG_fail;
17451 temp3 = true;
17452 }
17453 }
17454 if (obj3) {
17455 {
17456 arg4 = &temp4;
17457 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
17458 }
17459 }
17460 if (obj4) {
17461 {
17462 arg5 = &temp5;
17463 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
17464 }
17465 }
17466 if (obj5) {
17467 ecode6 = SWIG_AsVal_long(obj5, &val6);
17468 if (!SWIG_IsOK(ecode6)) {
17469 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RadioButton" "', expected argument " "6"" of type '" "long""'");
17470 }
17471 arg6 = static_cast< long >(val6);
17472 }
17473 if (obj6) {
17474 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
17475 if (!SWIG_IsOK(res7)) {
17476 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17477 }
17478 if (!argp7) {
17479 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17480 }
17481 arg7 = reinterpret_cast< wxValidator * >(argp7);
17482 }
17483 if (obj7) {
17484 {
17485 arg8 = wxString_in_helper(obj7);
17486 if (arg8 == NULL) SWIG_fail;
17487 temp8 = true;
17488 }
17489 }
17490 {
17491 if (!wxPyCheckForApp()) SWIG_fail;
17492 PyThreadState* __tstate = wxPyBeginAllowThreads();
17493 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
17494 wxPyEndAllowThreads(__tstate);
17495 if (PyErr_Occurred()) SWIG_fail;
17496 }
17497 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_NEW | 0 );
17498 {
17499 if (temp3)
17500 delete arg3;
17501 }
17502 {
17503 if (temp8)
17504 delete arg8;
17505 }
17506 return resultobj;
17507 fail:
17508 {
17509 if (temp3)
17510 delete arg3;
17511 }
17512 {
17513 if (temp8)
17514 delete arg8;
17515 }
17516 return NULL;
17517 }
17518
17519
17520 SWIGINTERN PyObject *_wrap_new_PreRadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17521 PyObject *resultobj = 0;
17522 wxRadioButton *result = 0 ;
17523
17524 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioButton",0,0,0)) SWIG_fail;
17525 {
17526 if (!wxPyCheckForApp()) SWIG_fail;
17527 PyThreadState* __tstate = wxPyBeginAllowThreads();
17528 result = (wxRadioButton *)new wxRadioButton();
17529 wxPyEndAllowThreads(__tstate);
17530 if (PyErr_Occurred()) SWIG_fail;
17531 }
17532 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_OWN | 0 );
17533 return resultobj;
17534 fail:
17535 return NULL;
17536 }
17537
17538
17539 SWIGINTERN PyObject *_wrap_RadioButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17540 PyObject *resultobj = 0;
17541 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17542 wxWindow *arg2 = (wxWindow *) 0 ;
17543 int arg3 = (int) -1 ;
17544 wxString const &arg4_defvalue = wxPyEmptyString ;
17545 wxString *arg4 = (wxString *) &arg4_defvalue ;
17546 wxPoint const &arg5_defvalue = wxDefaultPosition ;
17547 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
17548 wxSize const &arg6_defvalue = wxDefaultSize ;
17549 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
17550 long arg7 = (long) 0 ;
17551 wxValidator const &arg8_defvalue = wxDefaultValidator ;
17552 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
17553 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
17554 wxString *arg9 = (wxString *) &arg9_defvalue ;
17555 bool result;
17556 void *argp1 = 0 ;
17557 int res1 = 0 ;
17558 void *argp2 = 0 ;
17559 int res2 = 0 ;
17560 int val3 ;
17561 int ecode3 = 0 ;
17562 bool temp4 = false ;
17563 wxPoint temp5 ;
17564 wxSize temp6 ;
17565 long val7 ;
17566 int ecode7 = 0 ;
17567 void *argp8 = 0 ;
17568 int res8 = 0 ;
17569 bool temp9 = false ;
17570 PyObject * obj0 = 0 ;
17571 PyObject * obj1 = 0 ;
17572 PyObject * obj2 = 0 ;
17573 PyObject * obj3 = 0 ;
17574 PyObject * obj4 = 0 ;
17575 PyObject * obj5 = 0 ;
17576 PyObject * obj6 = 0 ;
17577 PyObject * obj7 = 0 ;
17578 PyObject * obj8 = 0 ;
17579 char * kwnames[] = {
17580 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17581 };
17582
17583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
17584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17585 if (!SWIG_IsOK(res1)) {
17586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_Create" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17587 }
17588 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17589 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17590 if (!SWIG_IsOK(res2)) {
17591 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17592 }
17593 arg2 = reinterpret_cast< wxWindow * >(argp2);
17594 if (obj2) {
17595 ecode3 = SWIG_AsVal_int(obj2, &val3);
17596 if (!SWIG_IsOK(ecode3)) {
17597 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioButton_Create" "', expected argument " "3"" of type '" "int""'");
17598 }
17599 arg3 = static_cast< int >(val3);
17600 }
17601 if (obj3) {
17602 {
17603 arg4 = wxString_in_helper(obj3);
17604 if (arg4 == NULL) SWIG_fail;
17605 temp4 = true;
17606 }
17607 }
17608 if (obj4) {
17609 {
17610 arg5 = &temp5;
17611 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17612 }
17613 }
17614 if (obj5) {
17615 {
17616 arg6 = &temp6;
17617 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
17618 }
17619 }
17620 if (obj6) {
17621 ecode7 = SWIG_AsVal_long(obj6, &val7);
17622 if (!SWIG_IsOK(ecode7)) {
17623 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RadioButton_Create" "', expected argument " "7"" of type '" "long""'");
17624 }
17625 arg7 = static_cast< long >(val7);
17626 }
17627 if (obj7) {
17628 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
17629 if (!SWIG_IsOK(res8)) {
17630 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17631 }
17632 if (!argp8) {
17633 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17634 }
17635 arg8 = reinterpret_cast< wxValidator * >(argp8);
17636 }
17637 if (obj8) {
17638 {
17639 arg9 = wxString_in_helper(obj8);
17640 if (arg9 == NULL) SWIG_fail;
17641 temp9 = true;
17642 }
17643 }
17644 {
17645 PyThreadState* __tstate = wxPyBeginAllowThreads();
17646 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
17647 wxPyEndAllowThreads(__tstate);
17648 if (PyErr_Occurred()) SWIG_fail;
17649 }
17650 {
17651 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17652 }
17653 {
17654 if (temp4)
17655 delete arg4;
17656 }
17657 {
17658 if (temp9)
17659 delete arg9;
17660 }
17661 return resultobj;
17662 fail:
17663 {
17664 if (temp4)
17665 delete arg4;
17666 }
17667 {
17668 if (temp9)
17669 delete arg9;
17670 }
17671 return NULL;
17672 }
17673
17674
17675 SWIGINTERN PyObject *_wrap_RadioButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17676 PyObject *resultobj = 0;
17677 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17678 bool result;
17679 void *argp1 = 0 ;
17680 int res1 = 0 ;
17681 PyObject *swig_obj[1] ;
17682
17683 if (!args) SWIG_fail;
17684 swig_obj[0] = args;
17685 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17686 if (!SWIG_IsOK(res1)) {
17687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_GetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17688 }
17689 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17690 {
17691 PyThreadState* __tstate = wxPyBeginAllowThreads();
17692 result = (bool)(arg1)->GetValue();
17693 wxPyEndAllowThreads(__tstate);
17694 if (PyErr_Occurred()) SWIG_fail;
17695 }
17696 {
17697 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17698 }
17699 return resultobj;
17700 fail:
17701 return NULL;
17702 }
17703
17704
17705 SWIGINTERN PyObject *_wrap_RadioButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17706 PyObject *resultobj = 0;
17707 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17708 bool arg2 ;
17709 void *argp1 = 0 ;
17710 int res1 = 0 ;
17711 bool val2 ;
17712 int ecode2 = 0 ;
17713 PyObject * obj0 = 0 ;
17714 PyObject * obj1 = 0 ;
17715 char * kwnames[] = {
17716 (char *) "self",(char *) "value", NULL
17717 };
17718
17719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17721 if (!SWIG_IsOK(res1)) {
17722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_SetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17723 }
17724 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17725 ecode2 = SWIG_AsVal_bool(obj1, &val2);
17726 if (!SWIG_IsOK(ecode2)) {
17727 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
17728 }
17729 arg2 = static_cast< bool >(val2);
17730 {
17731 PyThreadState* __tstate = wxPyBeginAllowThreads();
17732 (arg1)->SetValue(arg2);
17733 wxPyEndAllowThreads(__tstate);
17734 if (PyErr_Occurred()) SWIG_fail;
17735 }
17736 resultobj = SWIG_Py_Void();
17737 return resultobj;
17738 fail:
17739 return NULL;
17740 }
17741
17742
17743 SWIGINTERN PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17744 PyObject *resultobj = 0;
17745 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17746 SwigValueWrapper<wxVisualAttributes > result;
17747 int val1 ;
17748 int ecode1 = 0 ;
17749 PyObject * obj0 = 0 ;
17750 char * kwnames[] = {
17751 (char *) "variant", NULL
17752 };
17753
17754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17755 if (obj0) {
17756 ecode1 = SWIG_AsVal_int(obj0, &val1);
17757 if (!SWIG_IsOK(ecode1)) {
17758 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17759 }
17760 arg1 = static_cast< wxWindowVariant >(val1);
17761 }
17762 {
17763 if (!wxPyCheckForApp()) SWIG_fail;
17764 PyThreadState* __tstate = wxPyBeginAllowThreads();
17765 result = wxRadioButton::GetClassDefaultAttributes(arg1);
17766 wxPyEndAllowThreads(__tstate);
17767 if (PyErr_Occurred()) SWIG_fail;
17768 }
17769 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17770 return resultobj;
17771 fail:
17772 return NULL;
17773 }
17774
17775
17776 SWIGINTERN PyObject *RadioButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17777 PyObject *obj;
17778 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17779 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioButton, SWIG_NewClientData(obj));
17780 return SWIG_Py_Void();
17781 }
17782
17783 SWIGINTERN PyObject *RadioButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17784 return SWIG_Python_InitShadowInstance(args);
17785 }
17786
17787 SWIGINTERN int SliderNameStr_set(PyObject *) {
17788 SWIG_Error(SWIG_AttributeError,"Variable SliderNameStr is read-only.");
17789 return 1;
17790 }
17791
17792
17793 SWIGINTERN PyObject *SliderNameStr_get(void) {
17794 PyObject *pyobj = 0;
17795
17796 {
17797 #if wxUSE_UNICODE
17798 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17799 #else
17800 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17801 #endif
17802 }
17803 return pyobj;
17804 }
17805
17806
17807 SWIGINTERN PyObject *_wrap_new_Slider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17808 PyObject *resultobj = 0;
17809 wxWindow *arg1 = (wxWindow *) 0 ;
17810 int arg2 = (int) -1 ;
17811 int arg3 = (int) 0 ;
17812 int arg4 = (int) 0 ;
17813 int arg5 = (int) 100 ;
17814 wxPoint const &arg6_defvalue = wxDefaultPosition ;
17815 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
17816 wxSize const &arg7_defvalue = wxDefaultSize ;
17817 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
17818 long arg8 = (long) wxSL_HORIZONTAL ;
17819 wxValidator const &arg9_defvalue = wxDefaultValidator ;
17820 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
17821 wxString const &arg10_defvalue = wxPySliderNameStr ;
17822 wxString *arg10 = (wxString *) &arg10_defvalue ;
17823 wxSlider *result = 0 ;
17824 void *argp1 = 0 ;
17825 int res1 = 0 ;
17826 int val2 ;
17827 int ecode2 = 0 ;
17828 int val3 ;
17829 int ecode3 = 0 ;
17830 int val4 ;
17831 int ecode4 = 0 ;
17832 int val5 ;
17833 int ecode5 = 0 ;
17834 wxPoint temp6 ;
17835 wxSize temp7 ;
17836 long val8 ;
17837 int ecode8 = 0 ;
17838 void *argp9 = 0 ;
17839 int res9 = 0 ;
17840 bool temp10 = false ;
17841 PyObject * obj0 = 0 ;
17842 PyObject * obj1 = 0 ;
17843 PyObject * obj2 = 0 ;
17844 PyObject * obj3 = 0 ;
17845 PyObject * obj4 = 0 ;
17846 PyObject * obj5 = 0 ;
17847 PyObject * obj6 = 0 ;
17848 PyObject * obj7 = 0 ;
17849 PyObject * obj8 = 0 ;
17850 PyObject * obj9 = 0 ;
17851 char * kwnames[] = {
17852 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17853 };
17854
17855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
17856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17857 if (!SWIG_IsOK(res1)) {
17858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Slider" "', expected argument " "1"" of type '" "wxWindow *""'");
17859 }
17860 arg1 = reinterpret_cast< wxWindow * >(argp1);
17861 if (obj1) {
17862 ecode2 = SWIG_AsVal_int(obj1, &val2);
17863 if (!SWIG_IsOK(ecode2)) {
17864 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Slider" "', expected argument " "2"" of type '" "int""'");
17865 }
17866 arg2 = static_cast< int >(val2);
17867 }
17868 if (obj2) {
17869 ecode3 = SWIG_AsVal_int(obj2, &val3);
17870 if (!SWIG_IsOK(ecode3)) {
17871 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Slider" "', expected argument " "3"" of type '" "int""'");
17872 }
17873 arg3 = static_cast< int >(val3);
17874 }
17875 if (obj3) {
17876 ecode4 = SWIG_AsVal_int(obj3, &val4);
17877 if (!SWIG_IsOK(ecode4)) {
17878 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Slider" "', expected argument " "4"" of type '" "int""'");
17879 }
17880 arg4 = static_cast< int >(val4);
17881 }
17882 if (obj4) {
17883 ecode5 = SWIG_AsVal_int(obj4, &val5);
17884 if (!SWIG_IsOK(ecode5)) {
17885 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Slider" "', expected argument " "5"" of type '" "int""'");
17886 }
17887 arg5 = static_cast< int >(val5);
17888 }
17889 if (obj5) {
17890 {
17891 arg6 = &temp6;
17892 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
17893 }
17894 }
17895 if (obj6) {
17896 {
17897 arg7 = &temp7;
17898 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
17899 }
17900 }
17901 if (obj7) {
17902 ecode8 = SWIG_AsVal_long(obj7, &val8);
17903 if (!SWIG_IsOK(ecode8)) {
17904 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Slider" "', expected argument " "8"" of type '" "long""'");
17905 }
17906 arg8 = static_cast< long >(val8);
17907 }
17908 if (obj8) {
17909 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
17910 if (!SWIG_IsOK(res9)) {
17911 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
17912 }
17913 if (!argp9) {
17914 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
17915 }
17916 arg9 = reinterpret_cast< wxValidator * >(argp9);
17917 }
17918 if (obj9) {
17919 {
17920 arg10 = wxString_in_helper(obj9);
17921 if (arg10 == NULL) SWIG_fail;
17922 temp10 = true;
17923 }
17924 }
17925 {
17926 if (!wxPyCheckForApp()) SWIG_fail;
17927 PyThreadState* __tstate = wxPyBeginAllowThreads();
17928 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
17929 wxPyEndAllowThreads(__tstate);
17930 if (PyErr_Occurred()) SWIG_fail;
17931 }
17932 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_NEW | 0 );
17933 {
17934 if (temp10)
17935 delete arg10;
17936 }
17937 return resultobj;
17938 fail:
17939 {
17940 if (temp10)
17941 delete arg10;
17942 }
17943 return NULL;
17944 }
17945
17946
17947 SWIGINTERN PyObject *_wrap_new_PreSlider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17948 PyObject *resultobj = 0;
17949 wxSlider *result = 0 ;
17950
17951 if (!SWIG_Python_UnpackTuple(args,"new_PreSlider",0,0,0)) SWIG_fail;
17952 {
17953 if (!wxPyCheckForApp()) SWIG_fail;
17954 PyThreadState* __tstate = wxPyBeginAllowThreads();
17955 result = (wxSlider *)new wxSlider();
17956 wxPyEndAllowThreads(__tstate);
17957 if (PyErr_Occurred()) SWIG_fail;
17958 }
17959 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_OWN | 0 );
17960 return resultobj;
17961 fail:
17962 return NULL;
17963 }
17964
17965
17966 SWIGINTERN PyObject *_wrap_Slider_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17967 PyObject *resultobj = 0;
17968 wxSlider *arg1 = (wxSlider *) 0 ;
17969 wxWindow *arg2 = (wxWindow *) 0 ;
17970 int arg3 = (int) -1 ;
17971 int arg4 = (int) 0 ;
17972 int arg5 = (int) 0 ;
17973 int arg6 = (int) 100 ;
17974 wxPoint const &arg7_defvalue = wxDefaultPosition ;
17975 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
17976 wxSize const &arg8_defvalue = wxDefaultSize ;
17977 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
17978 long arg9 = (long) wxSL_HORIZONTAL ;
17979 wxValidator const &arg10_defvalue = wxDefaultValidator ;
17980 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
17981 wxString const &arg11_defvalue = wxPySliderNameStr ;
17982 wxString *arg11 = (wxString *) &arg11_defvalue ;
17983 bool result;
17984 void *argp1 = 0 ;
17985 int res1 = 0 ;
17986 void *argp2 = 0 ;
17987 int res2 = 0 ;
17988 int val3 ;
17989 int ecode3 = 0 ;
17990 int val4 ;
17991 int ecode4 = 0 ;
17992 int val5 ;
17993 int ecode5 = 0 ;
17994 int val6 ;
17995 int ecode6 = 0 ;
17996 wxPoint temp7 ;
17997 wxSize temp8 ;
17998 long val9 ;
17999 int ecode9 = 0 ;
18000 void *argp10 = 0 ;
18001 int res10 = 0 ;
18002 bool temp11 = false ;
18003 PyObject * obj0 = 0 ;
18004 PyObject * obj1 = 0 ;
18005 PyObject * obj2 = 0 ;
18006 PyObject * obj3 = 0 ;
18007 PyObject * obj4 = 0 ;
18008 PyObject * obj5 = 0 ;
18009 PyObject * obj6 = 0 ;
18010 PyObject * obj7 = 0 ;
18011 PyObject * obj8 = 0 ;
18012 PyObject * obj9 = 0 ;
18013 PyObject * obj10 = 0 ;
18014 char * kwnames[] = {
18015 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18016 };
18017
18018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
18019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18020 if (!SWIG_IsOK(res1)) {
18021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_Create" "', expected argument " "1"" of type '" "wxSlider *""'");
18022 }
18023 arg1 = reinterpret_cast< wxSlider * >(argp1);
18024 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
18025 if (!SWIG_IsOK(res2)) {
18026 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Slider_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
18027 }
18028 arg2 = reinterpret_cast< wxWindow * >(argp2);
18029 if (obj2) {
18030 ecode3 = SWIG_AsVal_int(obj2, &val3);
18031 if (!SWIG_IsOK(ecode3)) {
18032 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_Create" "', expected argument " "3"" of type '" "int""'");
18033 }
18034 arg3 = static_cast< int >(val3);
18035 }
18036 if (obj3) {
18037 ecode4 = SWIG_AsVal_int(obj3, &val4);
18038 if (!SWIG_IsOK(ecode4)) {
18039 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Slider_Create" "', expected argument " "4"" of type '" "int""'");
18040 }
18041 arg4 = static_cast< int >(val4);
18042 }
18043 if (obj4) {
18044 ecode5 = SWIG_AsVal_int(obj4, &val5);
18045 if (!SWIG_IsOK(ecode5)) {
18046 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Slider_Create" "', expected argument " "5"" of type '" "int""'");
18047 }
18048 arg5 = static_cast< int >(val5);
18049 }
18050 if (obj5) {
18051 ecode6 = SWIG_AsVal_int(obj5, &val6);
18052 if (!SWIG_IsOK(ecode6)) {
18053 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Slider_Create" "', expected argument " "6"" of type '" "int""'");
18054 }
18055 arg6 = static_cast< int >(val6);
18056 }
18057 if (obj6) {
18058 {
18059 arg7 = &temp7;
18060 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
18061 }
18062 }
18063 if (obj7) {
18064 {
18065 arg8 = &temp8;
18066 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
18067 }
18068 }
18069 if (obj8) {
18070 ecode9 = SWIG_AsVal_long(obj8, &val9);
18071 if (!SWIG_IsOK(ecode9)) {
18072 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "Slider_Create" "', expected argument " "9"" of type '" "long""'");
18073 }
18074 arg9 = static_cast< long >(val9);
18075 }
18076 if (obj9) {
18077 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
18078 if (!SWIG_IsOK(res10)) {
18079 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
18080 }
18081 if (!argp10) {
18082 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
18083 }
18084 arg10 = reinterpret_cast< wxValidator * >(argp10);
18085 }
18086 if (obj10) {
18087 {
18088 arg11 = wxString_in_helper(obj10);
18089 if (arg11 == NULL) SWIG_fail;
18090 temp11 = true;
18091 }
18092 }
18093 {
18094 PyThreadState* __tstate = wxPyBeginAllowThreads();
18095 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
18096 wxPyEndAllowThreads(__tstate);
18097 if (PyErr_Occurred()) SWIG_fail;
18098 }
18099 {
18100 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18101 }
18102 {
18103 if (temp11)
18104 delete arg11;
18105 }
18106 return resultobj;
18107 fail:
18108 {
18109 if (temp11)
18110 delete arg11;
18111 }
18112 return NULL;
18113 }
18114
18115
18116 SWIGINTERN PyObject *_wrap_Slider_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18117 PyObject *resultobj = 0;
18118 wxSlider *arg1 = (wxSlider *) 0 ;
18119 int result;
18120 void *argp1 = 0 ;
18121 int res1 = 0 ;
18122 PyObject *swig_obj[1] ;
18123
18124 if (!args) SWIG_fail;
18125 swig_obj[0] = args;
18126 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18127 if (!SWIG_IsOK(res1)) {
18128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetValue" "', expected argument " "1"" of type '" "wxSlider const *""'");
18129 }
18130 arg1 = reinterpret_cast< wxSlider * >(argp1);
18131 {
18132 PyThreadState* __tstate = wxPyBeginAllowThreads();
18133 result = (int)((wxSlider const *)arg1)->GetValue();
18134 wxPyEndAllowThreads(__tstate);
18135 if (PyErr_Occurred()) SWIG_fail;
18136 }
18137 resultobj = SWIG_From_int(static_cast< int >(result));
18138 return resultobj;
18139 fail:
18140 return NULL;
18141 }
18142
18143
18144 SWIGINTERN PyObject *_wrap_Slider_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18145 PyObject *resultobj = 0;
18146 wxSlider *arg1 = (wxSlider *) 0 ;
18147 int arg2 ;
18148 void *argp1 = 0 ;
18149 int res1 = 0 ;
18150 int val2 ;
18151 int ecode2 = 0 ;
18152 PyObject * obj0 = 0 ;
18153 PyObject * obj1 = 0 ;
18154 char * kwnames[] = {
18155 (char *) "self",(char *) "value", NULL
18156 };
18157
18158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
18159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18160 if (!SWIG_IsOK(res1)) {
18161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetValue" "', expected argument " "1"" of type '" "wxSlider *""'");
18162 }
18163 arg1 = reinterpret_cast< wxSlider * >(argp1);
18164 ecode2 = SWIG_AsVal_int(obj1, &val2);
18165 if (!SWIG_IsOK(ecode2)) {
18166 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetValue" "', expected argument " "2"" of type '" "int""'");
18167 }
18168 arg2 = static_cast< int >(val2);
18169 {
18170 PyThreadState* __tstate = wxPyBeginAllowThreads();
18171 (arg1)->SetValue(arg2);
18172 wxPyEndAllowThreads(__tstate);
18173 if (PyErr_Occurred()) SWIG_fail;
18174 }
18175 resultobj = SWIG_Py_Void();
18176 return resultobj;
18177 fail:
18178 return NULL;
18179 }
18180
18181
18182 SWIGINTERN PyObject *_wrap_Slider_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18183 PyObject *resultobj = 0;
18184 wxSlider *arg1 = (wxSlider *) 0 ;
18185 int arg2 ;
18186 int arg3 ;
18187 void *argp1 = 0 ;
18188 int res1 = 0 ;
18189 int val2 ;
18190 int ecode2 = 0 ;
18191 int val3 ;
18192 int ecode3 = 0 ;
18193 PyObject * obj0 = 0 ;
18194 PyObject * obj1 = 0 ;
18195 PyObject * obj2 = 0 ;
18196 char * kwnames[] = {
18197 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
18198 };
18199
18200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18202 if (!SWIG_IsOK(res1)) {
18203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetRange" "', expected argument " "1"" of type '" "wxSlider *""'");
18204 }
18205 arg1 = reinterpret_cast< wxSlider * >(argp1);
18206 ecode2 = SWIG_AsVal_int(obj1, &val2);
18207 if (!SWIG_IsOK(ecode2)) {
18208 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetRange" "', expected argument " "2"" of type '" "int""'");
18209 }
18210 arg2 = static_cast< int >(val2);
18211 ecode3 = SWIG_AsVal_int(obj2, &val3);
18212 if (!SWIG_IsOK(ecode3)) {
18213 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetRange" "', expected argument " "3"" of type '" "int""'");
18214 }
18215 arg3 = static_cast< int >(val3);
18216 {
18217 PyThreadState* __tstate = wxPyBeginAllowThreads();
18218 (arg1)->SetRange(arg2,arg3);
18219 wxPyEndAllowThreads(__tstate);
18220 if (PyErr_Occurred()) SWIG_fail;
18221 }
18222 resultobj = SWIG_Py_Void();
18223 return resultobj;
18224 fail:
18225 return NULL;
18226 }
18227
18228
18229 SWIGINTERN PyObject *_wrap_Slider_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18230 PyObject *resultobj = 0;
18231 wxSlider *arg1 = (wxSlider *) 0 ;
18232 int result;
18233 void *argp1 = 0 ;
18234 int res1 = 0 ;
18235 PyObject *swig_obj[1] ;
18236
18237 if (!args) SWIG_fail;
18238 swig_obj[0] = args;
18239 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18240 if (!SWIG_IsOK(res1)) {
18241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMin" "', expected argument " "1"" of type '" "wxSlider const *""'");
18242 }
18243 arg1 = reinterpret_cast< wxSlider * >(argp1);
18244 {
18245 PyThreadState* __tstate = wxPyBeginAllowThreads();
18246 result = (int)((wxSlider const *)arg1)->GetMin();
18247 wxPyEndAllowThreads(__tstate);
18248 if (PyErr_Occurred()) SWIG_fail;
18249 }
18250 resultobj = SWIG_From_int(static_cast< int >(result));
18251 return resultobj;
18252 fail:
18253 return NULL;
18254 }
18255
18256
18257 SWIGINTERN PyObject *_wrap_Slider_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18258 PyObject *resultobj = 0;
18259 wxSlider *arg1 = (wxSlider *) 0 ;
18260 int result;
18261 void *argp1 = 0 ;
18262 int res1 = 0 ;
18263 PyObject *swig_obj[1] ;
18264
18265 if (!args) SWIG_fail;
18266 swig_obj[0] = args;
18267 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18268 if (!SWIG_IsOK(res1)) {
18269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMax" "', expected argument " "1"" of type '" "wxSlider const *""'");
18270 }
18271 arg1 = reinterpret_cast< wxSlider * >(argp1);
18272 {
18273 PyThreadState* __tstate = wxPyBeginAllowThreads();
18274 result = (int)((wxSlider const *)arg1)->GetMax();
18275 wxPyEndAllowThreads(__tstate);
18276 if (PyErr_Occurred()) SWIG_fail;
18277 }
18278 resultobj = SWIG_From_int(static_cast< int >(result));
18279 return resultobj;
18280 fail:
18281 return NULL;
18282 }
18283
18284
18285 SWIGINTERN PyObject *_wrap_Slider_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18286 PyObject *resultobj = 0;
18287 wxSlider *arg1 = (wxSlider *) 0 ;
18288 int arg2 ;
18289 void *argp1 = 0 ;
18290 int res1 = 0 ;
18291 int val2 ;
18292 int ecode2 = 0 ;
18293 PyObject * obj0 = 0 ;
18294 PyObject * obj1 = 0 ;
18295 char * kwnames[] = {
18296 (char *) "self",(char *) "minValue", NULL
18297 };
18298
18299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
18300 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18301 if (!SWIG_IsOK(res1)) {
18302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMin" "', expected argument " "1"" of type '" "wxSlider *""'");
18303 }
18304 arg1 = reinterpret_cast< wxSlider * >(argp1);
18305 ecode2 = SWIG_AsVal_int(obj1, &val2);
18306 if (!SWIG_IsOK(ecode2)) {
18307 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMin" "', expected argument " "2"" of type '" "int""'");
18308 }
18309 arg2 = static_cast< int >(val2);
18310 {
18311 PyThreadState* __tstate = wxPyBeginAllowThreads();
18312 (arg1)->SetMin(arg2);
18313 wxPyEndAllowThreads(__tstate);
18314 if (PyErr_Occurred()) SWIG_fail;
18315 }
18316 resultobj = SWIG_Py_Void();
18317 return resultobj;
18318 fail:
18319 return NULL;
18320 }
18321
18322
18323 SWIGINTERN PyObject *_wrap_Slider_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18324 PyObject *resultobj = 0;
18325 wxSlider *arg1 = (wxSlider *) 0 ;
18326 int arg2 ;
18327 void *argp1 = 0 ;
18328 int res1 = 0 ;
18329 int val2 ;
18330 int ecode2 = 0 ;
18331 PyObject * obj0 = 0 ;
18332 PyObject * obj1 = 0 ;
18333 char * kwnames[] = {
18334 (char *) "self",(char *) "maxValue", NULL
18335 };
18336
18337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
18338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18339 if (!SWIG_IsOK(res1)) {
18340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMax" "', expected argument " "1"" of type '" "wxSlider *""'");
18341 }
18342 arg1 = reinterpret_cast< wxSlider * >(argp1);
18343 ecode2 = SWIG_AsVal_int(obj1, &val2);
18344 if (!SWIG_IsOK(ecode2)) {
18345 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMax" "', expected argument " "2"" of type '" "int""'");
18346 }
18347 arg2 = static_cast< int >(val2);
18348 {
18349 PyThreadState* __tstate = wxPyBeginAllowThreads();
18350 (arg1)->SetMax(arg2);
18351 wxPyEndAllowThreads(__tstate);
18352 if (PyErr_Occurred()) SWIG_fail;
18353 }
18354 resultobj = SWIG_Py_Void();
18355 return resultobj;
18356 fail:
18357 return NULL;
18358 }
18359
18360
18361 SWIGINTERN PyObject *_wrap_Slider_SetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18362 PyObject *resultobj = 0;
18363 wxSlider *arg1 = (wxSlider *) 0 ;
18364 int arg2 ;
18365 void *argp1 = 0 ;
18366 int res1 = 0 ;
18367 int val2 ;
18368 int ecode2 = 0 ;
18369 PyObject * obj0 = 0 ;
18370 PyObject * obj1 = 0 ;
18371 char * kwnames[] = {
18372 (char *) "self",(char *) "lineSize", NULL
18373 };
18374
18375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) SWIG_fail;
18376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18377 if (!SWIG_IsOK(res1)) {
18378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetLineSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18379 }
18380 arg1 = reinterpret_cast< wxSlider * >(argp1);
18381 ecode2 = SWIG_AsVal_int(obj1, &val2);
18382 if (!SWIG_IsOK(ecode2)) {
18383 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetLineSize" "', expected argument " "2"" of type '" "int""'");
18384 }
18385 arg2 = static_cast< int >(val2);
18386 {
18387 PyThreadState* __tstate = wxPyBeginAllowThreads();
18388 (arg1)->SetLineSize(arg2);
18389 wxPyEndAllowThreads(__tstate);
18390 if (PyErr_Occurred()) SWIG_fail;
18391 }
18392 resultobj = SWIG_Py_Void();
18393 return resultobj;
18394 fail:
18395 return NULL;
18396 }
18397
18398
18399 SWIGINTERN PyObject *_wrap_Slider_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18400 PyObject *resultobj = 0;
18401 wxSlider *arg1 = (wxSlider *) 0 ;
18402 int arg2 ;
18403 void *argp1 = 0 ;
18404 int res1 = 0 ;
18405 int val2 ;
18406 int ecode2 = 0 ;
18407 PyObject * obj0 = 0 ;
18408 PyObject * obj1 = 0 ;
18409 char * kwnames[] = {
18410 (char *) "self",(char *) "pageSize", NULL
18411 };
18412
18413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
18414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18415 if (!SWIG_IsOK(res1)) {
18416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetPageSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18417 }
18418 arg1 = reinterpret_cast< wxSlider * >(argp1);
18419 ecode2 = SWIG_AsVal_int(obj1, &val2);
18420 if (!SWIG_IsOK(ecode2)) {
18421 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetPageSize" "', expected argument " "2"" of type '" "int""'");
18422 }
18423 arg2 = static_cast< int >(val2);
18424 {
18425 PyThreadState* __tstate = wxPyBeginAllowThreads();
18426 (arg1)->SetPageSize(arg2);
18427 wxPyEndAllowThreads(__tstate);
18428 if (PyErr_Occurred()) SWIG_fail;
18429 }
18430 resultobj = SWIG_Py_Void();
18431 return resultobj;
18432 fail:
18433 return NULL;
18434 }
18435
18436
18437 SWIGINTERN PyObject *_wrap_Slider_GetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18438 PyObject *resultobj = 0;
18439 wxSlider *arg1 = (wxSlider *) 0 ;
18440 int result;
18441 void *argp1 = 0 ;
18442 int res1 = 0 ;
18443 PyObject *swig_obj[1] ;
18444
18445 if (!args) SWIG_fail;
18446 swig_obj[0] = args;
18447 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18448 if (!SWIG_IsOK(res1)) {
18449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetLineSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18450 }
18451 arg1 = reinterpret_cast< wxSlider * >(argp1);
18452 {
18453 PyThreadState* __tstate = wxPyBeginAllowThreads();
18454 result = (int)((wxSlider const *)arg1)->GetLineSize();
18455 wxPyEndAllowThreads(__tstate);
18456 if (PyErr_Occurred()) SWIG_fail;
18457 }
18458 resultobj = SWIG_From_int(static_cast< int >(result));
18459 return resultobj;
18460 fail:
18461 return NULL;
18462 }
18463
18464
18465 SWIGINTERN PyObject *_wrap_Slider_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18466 PyObject *resultobj = 0;
18467 wxSlider *arg1 = (wxSlider *) 0 ;
18468 int result;
18469 void *argp1 = 0 ;
18470 int res1 = 0 ;
18471 PyObject *swig_obj[1] ;
18472
18473 if (!args) SWIG_fail;
18474 swig_obj[0] = args;
18475 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18476 if (!SWIG_IsOK(res1)) {
18477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetPageSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18478 }
18479 arg1 = reinterpret_cast< wxSlider * >(argp1);
18480 {
18481 PyThreadState* __tstate = wxPyBeginAllowThreads();
18482 result = (int)((wxSlider const *)arg1)->GetPageSize();
18483 wxPyEndAllowThreads(__tstate);
18484 if (PyErr_Occurred()) SWIG_fail;
18485 }
18486 resultobj = SWIG_From_int(static_cast< int >(result));
18487 return resultobj;
18488 fail:
18489 return NULL;
18490 }
18491
18492
18493 SWIGINTERN PyObject *_wrap_Slider_SetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18494 PyObject *resultobj = 0;
18495 wxSlider *arg1 = (wxSlider *) 0 ;
18496 int arg2 ;
18497 void *argp1 = 0 ;
18498 int res1 = 0 ;
18499 int val2 ;
18500 int ecode2 = 0 ;
18501 PyObject * obj0 = 0 ;
18502 PyObject * obj1 = 0 ;
18503 char * kwnames[] = {
18504 (char *) "self",(char *) "lenPixels", NULL
18505 };
18506
18507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) SWIG_fail;
18508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18509 if (!SWIG_IsOK(res1)) {
18510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetThumbLength" "', expected argument " "1"" of type '" "wxSlider *""'");
18511 }
18512 arg1 = reinterpret_cast< wxSlider * >(argp1);
18513 ecode2 = SWIG_AsVal_int(obj1, &val2);
18514 if (!SWIG_IsOK(ecode2)) {
18515 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetThumbLength" "', expected argument " "2"" of type '" "int""'");
18516 }
18517 arg2 = static_cast< int >(val2);
18518 {
18519 PyThreadState* __tstate = wxPyBeginAllowThreads();
18520 (arg1)->SetThumbLength(arg2);
18521 wxPyEndAllowThreads(__tstate);
18522 if (PyErr_Occurred()) SWIG_fail;
18523 }
18524 resultobj = SWIG_Py_Void();
18525 return resultobj;
18526 fail:
18527 return NULL;
18528 }
18529
18530
18531 SWIGINTERN PyObject *_wrap_Slider_GetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18532 PyObject *resultobj = 0;
18533 wxSlider *arg1 = (wxSlider *) 0 ;
18534 int result;
18535 void *argp1 = 0 ;
18536 int res1 = 0 ;
18537 PyObject *swig_obj[1] ;
18538
18539 if (!args) SWIG_fail;
18540 swig_obj[0] = args;
18541 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18542 if (!SWIG_IsOK(res1)) {
18543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetThumbLength" "', expected argument " "1"" of type '" "wxSlider const *""'");
18544 }
18545 arg1 = reinterpret_cast< wxSlider * >(argp1);
18546 {
18547 PyThreadState* __tstate = wxPyBeginAllowThreads();
18548 result = (int)((wxSlider const *)arg1)->GetThumbLength();
18549 wxPyEndAllowThreads(__tstate);
18550 if (PyErr_Occurred()) SWIG_fail;
18551 }
18552 resultobj = SWIG_From_int(static_cast< int >(result));
18553 return resultobj;
18554 fail:
18555 return NULL;
18556 }
18557
18558
18559 SWIGINTERN PyObject *_wrap_Slider_SetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18560 PyObject *resultobj = 0;
18561 wxSlider *arg1 = (wxSlider *) 0 ;
18562 int arg2 ;
18563 int arg3 = (int) 1 ;
18564 void *argp1 = 0 ;
18565 int res1 = 0 ;
18566 int val2 ;
18567 int ecode2 = 0 ;
18568 int val3 ;
18569 int ecode3 = 0 ;
18570 PyObject * obj0 = 0 ;
18571 PyObject * obj1 = 0 ;
18572 PyObject * obj2 = 0 ;
18573 char * kwnames[] = {
18574 (char *) "self",(char *) "n",(char *) "pos", NULL
18575 };
18576
18577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18578 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18579 if (!SWIG_IsOK(res1)) {
18580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTickFreq" "', expected argument " "1"" of type '" "wxSlider *""'");
18581 }
18582 arg1 = reinterpret_cast< wxSlider * >(argp1);
18583 ecode2 = SWIG_AsVal_int(obj1, &val2);
18584 if (!SWIG_IsOK(ecode2)) {
18585 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTickFreq" "', expected argument " "2"" of type '" "int""'");
18586 }
18587 arg2 = static_cast< int >(val2);
18588 if (obj2) {
18589 ecode3 = SWIG_AsVal_int(obj2, &val3);
18590 if (!SWIG_IsOK(ecode3)) {
18591 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetTickFreq" "', expected argument " "3"" of type '" "int""'");
18592 }
18593 arg3 = static_cast< int >(val3);
18594 }
18595 {
18596 PyThreadState* __tstate = wxPyBeginAllowThreads();
18597 (arg1)->SetTickFreq(arg2,arg3);
18598 wxPyEndAllowThreads(__tstate);
18599 if (PyErr_Occurred()) SWIG_fail;
18600 }
18601 resultobj = SWIG_Py_Void();
18602 return resultobj;
18603 fail:
18604 return NULL;
18605 }
18606
18607
18608 SWIGINTERN PyObject *_wrap_Slider_GetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18609 PyObject *resultobj = 0;
18610 wxSlider *arg1 = (wxSlider *) 0 ;
18611 int result;
18612 void *argp1 = 0 ;
18613 int res1 = 0 ;
18614 PyObject *swig_obj[1] ;
18615
18616 if (!args) SWIG_fail;
18617 swig_obj[0] = args;
18618 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18619 if (!SWIG_IsOK(res1)) {
18620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetTickFreq" "', expected argument " "1"" of type '" "wxSlider const *""'");
18621 }
18622 arg1 = reinterpret_cast< wxSlider * >(argp1);
18623 {
18624 PyThreadState* __tstate = wxPyBeginAllowThreads();
18625 result = (int)((wxSlider const *)arg1)->GetTickFreq();
18626 wxPyEndAllowThreads(__tstate);
18627 if (PyErr_Occurred()) SWIG_fail;
18628 }
18629 resultobj = SWIG_From_int(static_cast< int >(result));
18630 return resultobj;
18631 fail:
18632 return NULL;
18633 }
18634
18635
18636 SWIGINTERN PyObject *_wrap_Slider_ClearTicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18637 PyObject *resultobj = 0;
18638 wxSlider *arg1 = (wxSlider *) 0 ;
18639 void *argp1 = 0 ;
18640 int res1 = 0 ;
18641 PyObject *swig_obj[1] ;
18642
18643 if (!args) SWIG_fail;
18644 swig_obj[0] = args;
18645 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18646 if (!SWIG_IsOK(res1)) {
18647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearTicks" "', expected argument " "1"" of type '" "wxSlider *""'");
18648 }
18649 arg1 = reinterpret_cast< wxSlider * >(argp1);
18650 {
18651 PyThreadState* __tstate = wxPyBeginAllowThreads();
18652 (arg1)->ClearTicks();
18653 wxPyEndAllowThreads(__tstate);
18654 if (PyErr_Occurred()) SWIG_fail;
18655 }
18656 resultobj = SWIG_Py_Void();
18657 return resultobj;
18658 fail:
18659 return NULL;
18660 }
18661
18662
18663 SWIGINTERN PyObject *_wrap_Slider_SetTick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18664 PyObject *resultobj = 0;
18665 wxSlider *arg1 = (wxSlider *) 0 ;
18666 int arg2 ;
18667 void *argp1 = 0 ;
18668 int res1 = 0 ;
18669 int val2 ;
18670 int ecode2 = 0 ;
18671 PyObject * obj0 = 0 ;
18672 PyObject * obj1 = 0 ;
18673 char * kwnames[] = {
18674 (char *) "self",(char *) "tickPos", NULL
18675 };
18676
18677 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) SWIG_fail;
18678 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18679 if (!SWIG_IsOK(res1)) {
18680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTick" "', expected argument " "1"" of type '" "wxSlider *""'");
18681 }
18682 arg1 = reinterpret_cast< wxSlider * >(argp1);
18683 ecode2 = SWIG_AsVal_int(obj1, &val2);
18684 if (!SWIG_IsOK(ecode2)) {
18685 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTick" "', expected argument " "2"" of type '" "int""'");
18686 }
18687 arg2 = static_cast< int >(val2);
18688 {
18689 PyThreadState* __tstate = wxPyBeginAllowThreads();
18690 (arg1)->SetTick(arg2);
18691 wxPyEndAllowThreads(__tstate);
18692 if (PyErr_Occurred()) SWIG_fail;
18693 }
18694 resultobj = SWIG_Py_Void();
18695 return resultobj;
18696 fail:
18697 return NULL;
18698 }
18699
18700
18701 SWIGINTERN PyObject *_wrap_Slider_ClearSel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18702 PyObject *resultobj = 0;
18703 wxSlider *arg1 = (wxSlider *) 0 ;
18704 void *argp1 = 0 ;
18705 int res1 = 0 ;
18706 PyObject *swig_obj[1] ;
18707
18708 if (!args) SWIG_fail;
18709 swig_obj[0] = args;
18710 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18711 if (!SWIG_IsOK(res1)) {
18712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearSel" "', expected argument " "1"" of type '" "wxSlider *""'");
18713 }
18714 arg1 = reinterpret_cast< wxSlider * >(argp1);
18715 {
18716 PyThreadState* __tstate = wxPyBeginAllowThreads();
18717 (arg1)->ClearSel();
18718 wxPyEndAllowThreads(__tstate);
18719 if (PyErr_Occurred()) SWIG_fail;
18720 }
18721 resultobj = SWIG_Py_Void();
18722 return resultobj;
18723 fail:
18724 return NULL;
18725 }
18726
18727
18728 SWIGINTERN PyObject *_wrap_Slider_GetSelEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18729 PyObject *resultobj = 0;
18730 wxSlider *arg1 = (wxSlider *) 0 ;
18731 int result;
18732 void *argp1 = 0 ;
18733 int res1 = 0 ;
18734 PyObject *swig_obj[1] ;
18735
18736 if (!args) SWIG_fail;
18737 swig_obj[0] = args;
18738 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18739 if (!SWIG_IsOK(res1)) {
18740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelEnd" "', expected argument " "1"" of type '" "wxSlider const *""'");
18741 }
18742 arg1 = reinterpret_cast< wxSlider * >(argp1);
18743 {
18744 PyThreadState* __tstate = wxPyBeginAllowThreads();
18745 result = (int)((wxSlider const *)arg1)->GetSelEnd();
18746 wxPyEndAllowThreads(__tstate);
18747 if (PyErr_Occurred()) SWIG_fail;
18748 }
18749 resultobj = SWIG_From_int(static_cast< int >(result));
18750 return resultobj;
18751 fail:
18752 return NULL;
18753 }
18754
18755
18756 SWIGINTERN PyObject *_wrap_Slider_GetSelStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18757 PyObject *resultobj = 0;
18758 wxSlider *arg1 = (wxSlider *) 0 ;
18759 int result;
18760 void *argp1 = 0 ;
18761 int res1 = 0 ;
18762 PyObject *swig_obj[1] ;
18763
18764 if (!args) SWIG_fail;
18765 swig_obj[0] = args;
18766 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18767 if (!SWIG_IsOK(res1)) {
18768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelStart" "', expected argument " "1"" of type '" "wxSlider const *""'");
18769 }
18770 arg1 = reinterpret_cast< wxSlider * >(argp1);
18771 {
18772 PyThreadState* __tstate = wxPyBeginAllowThreads();
18773 result = (int)((wxSlider const *)arg1)->GetSelStart();
18774 wxPyEndAllowThreads(__tstate);
18775 if (PyErr_Occurred()) SWIG_fail;
18776 }
18777 resultobj = SWIG_From_int(static_cast< int >(result));
18778 return resultobj;
18779 fail:
18780 return NULL;
18781 }
18782
18783
18784 SWIGINTERN PyObject *_wrap_Slider_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18785 PyObject *resultobj = 0;
18786 wxSlider *arg1 = (wxSlider *) 0 ;
18787 int arg2 ;
18788 int arg3 ;
18789 void *argp1 = 0 ;
18790 int res1 = 0 ;
18791 int val2 ;
18792 int ecode2 = 0 ;
18793 int val3 ;
18794 int ecode3 = 0 ;
18795 PyObject * obj0 = 0 ;
18796 PyObject * obj1 = 0 ;
18797 PyObject * obj2 = 0 ;
18798 char * kwnames[] = {
18799 (char *) "self",(char *) "min",(char *) "max", NULL
18800 };
18801
18802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18804 if (!SWIG_IsOK(res1)) {
18805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetSelection" "', expected argument " "1"" of type '" "wxSlider *""'");
18806 }
18807 arg1 = reinterpret_cast< wxSlider * >(argp1);
18808 ecode2 = SWIG_AsVal_int(obj1, &val2);
18809 if (!SWIG_IsOK(ecode2)) {
18810 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetSelection" "', expected argument " "2"" of type '" "int""'");
18811 }
18812 arg2 = static_cast< int >(val2);
18813 ecode3 = SWIG_AsVal_int(obj2, &val3);
18814 if (!SWIG_IsOK(ecode3)) {
18815 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetSelection" "', expected argument " "3"" of type '" "int""'");
18816 }
18817 arg3 = static_cast< int >(val3);
18818 {
18819 PyThreadState* __tstate = wxPyBeginAllowThreads();
18820 (arg1)->SetSelection(arg2,arg3);
18821 wxPyEndAllowThreads(__tstate);
18822 if (PyErr_Occurred()) SWIG_fail;
18823 }
18824 resultobj = SWIG_Py_Void();
18825 return resultobj;
18826 fail:
18827 return NULL;
18828 }
18829
18830
18831 SWIGINTERN PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18832 PyObject *resultobj = 0;
18833 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18834 SwigValueWrapper<wxVisualAttributes > result;
18835 int val1 ;
18836 int ecode1 = 0 ;
18837 PyObject * obj0 = 0 ;
18838 char * kwnames[] = {
18839 (char *) "variant", NULL
18840 };
18841
18842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18843 if (obj0) {
18844 ecode1 = SWIG_AsVal_int(obj0, &val1);
18845 if (!SWIG_IsOK(ecode1)) {
18846 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Slider_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18847 }
18848 arg1 = static_cast< wxWindowVariant >(val1);
18849 }
18850 {
18851 if (!wxPyCheckForApp()) SWIG_fail;
18852 PyThreadState* __tstate = wxPyBeginAllowThreads();
18853 result = wxSlider::GetClassDefaultAttributes(arg1);
18854 wxPyEndAllowThreads(__tstate);
18855 if (PyErr_Occurred()) SWIG_fail;
18856 }
18857 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18858 return resultobj;
18859 fail:
18860 return NULL;
18861 }
18862
18863
18864 SWIGINTERN PyObject *Slider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18865 PyObject *obj;
18866 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18867 SWIG_TypeNewClientData(SWIGTYPE_p_wxSlider, SWIG_NewClientData(obj));
18868 return SWIG_Py_Void();
18869 }
18870
18871 SWIGINTERN PyObject *Slider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18872 return SWIG_Python_InitShadowInstance(args);
18873 }
18874
18875 SWIGINTERN int ToggleButtonNameStr_set(PyObject *) {
18876 SWIG_Error(SWIG_AttributeError,"Variable ToggleButtonNameStr is read-only.");
18877 return 1;
18878 }
18879
18880
18881 SWIGINTERN PyObject *ToggleButtonNameStr_get(void) {
18882 PyObject *pyobj = 0;
18883
18884 {
18885 #if wxUSE_UNICODE
18886 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18887 #else
18888 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18889 #endif
18890 }
18891 return pyobj;
18892 }
18893
18894
18895 SWIGINTERN PyObject *_wrap_new_ToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18896 PyObject *resultobj = 0;
18897 wxWindow *arg1 = (wxWindow *) 0 ;
18898 int arg2 = (int) -1 ;
18899 wxString const &arg3_defvalue = wxPyEmptyString ;
18900 wxString *arg3 = (wxString *) &arg3_defvalue ;
18901 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18902 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18903 wxSize const &arg5_defvalue = wxDefaultSize ;
18904 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18905 long arg6 = (long) 0 ;
18906 wxValidator const &arg7_defvalue = wxDefaultValidator ;
18907 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
18908 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
18909 wxString *arg8 = (wxString *) &arg8_defvalue ;
18910 wxToggleButton *result = 0 ;
18911 void *argp1 = 0 ;
18912 int res1 = 0 ;
18913 int val2 ;
18914 int ecode2 = 0 ;
18915 bool temp3 = false ;
18916 wxPoint temp4 ;
18917 wxSize temp5 ;
18918 long val6 ;
18919 int ecode6 = 0 ;
18920 void *argp7 = 0 ;
18921 int res7 = 0 ;
18922 bool temp8 = false ;
18923 PyObject * obj0 = 0 ;
18924 PyObject * obj1 = 0 ;
18925 PyObject * obj2 = 0 ;
18926 PyObject * obj3 = 0 ;
18927 PyObject * obj4 = 0 ;
18928 PyObject * obj5 = 0 ;
18929 PyObject * obj6 = 0 ;
18930 PyObject * obj7 = 0 ;
18931 char * kwnames[] = {
18932 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18933 };
18934
18935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
18936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
18937 if (!SWIG_IsOK(res1)) {
18938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToggleButton" "', expected argument " "1"" of type '" "wxWindow *""'");
18939 }
18940 arg1 = reinterpret_cast< wxWindow * >(argp1);
18941 if (obj1) {
18942 ecode2 = SWIG_AsVal_int(obj1, &val2);
18943 if (!SWIG_IsOK(ecode2)) {
18944 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToggleButton" "', expected argument " "2"" of type '" "int""'");
18945 }
18946 arg2 = static_cast< int >(val2);
18947 }
18948 if (obj2) {
18949 {
18950 arg3 = wxString_in_helper(obj2);
18951 if (arg3 == NULL) SWIG_fail;
18952 temp3 = true;
18953 }
18954 }
18955 if (obj3) {
18956 {
18957 arg4 = &temp4;
18958 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18959 }
18960 }
18961 if (obj4) {
18962 {
18963 arg5 = &temp5;
18964 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
18965 }
18966 }
18967 if (obj5) {
18968 ecode6 = SWIG_AsVal_long(obj5, &val6);
18969 if (!SWIG_IsOK(ecode6)) {
18970 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ToggleButton" "', expected argument " "6"" of type '" "long""'");
18971 }
18972 arg6 = static_cast< long >(val6);
18973 }
18974 if (obj6) {
18975 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
18976 if (!SWIG_IsOK(res7)) {
18977 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
18978 }
18979 if (!argp7) {
18980 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
18981 }
18982 arg7 = reinterpret_cast< wxValidator * >(argp7);
18983 }
18984 if (obj7) {
18985 {
18986 arg8 = wxString_in_helper(obj7);
18987 if (arg8 == NULL) SWIG_fail;
18988 temp8 = true;
18989 }
18990 }
18991 {
18992 if (!wxPyCheckForApp()) SWIG_fail;
18993 PyThreadState* __tstate = wxPyBeginAllowThreads();
18994 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
18995 wxPyEndAllowThreads(__tstate);
18996 if (PyErr_Occurred()) SWIG_fail;
18997 }
18998 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_NEW | 0 );
18999 {
19000 if (temp3)
19001 delete arg3;
19002 }
19003 {
19004 if (temp8)
19005 delete arg8;
19006 }
19007 return resultobj;
19008 fail:
19009 {
19010 if (temp3)
19011 delete arg3;
19012 }
19013 {
19014 if (temp8)
19015 delete arg8;
19016 }
19017 return NULL;
19018 }
19019
19020
19021 SWIGINTERN PyObject *_wrap_new_PreToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19022 PyObject *resultobj = 0;
19023 wxToggleButton *result = 0 ;
19024
19025 if (!SWIG_Python_UnpackTuple(args,"new_PreToggleButton",0,0,0)) SWIG_fail;
19026 {
19027 if (!wxPyCheckForApp()) SWIG_fail;
19028 PyThreadState* __tstate = wxPyBeginAllowThreads();
19029 result = (wxToggleButton *)new wxToggleButton();
19030 wxPyEndAllowThreads(__tstate);
19031 if (PyErr_Occurred()) SWIG_fail;
19032 }
19033 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_OWN | 0 );
19034 return resultobj;
19035 fail:
19036 return NULL;
19037 }
19038
19039
19040 SWIGINTERN PyObject *_wrap_ToggleButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19041 PyObject *resultobj = 0;
19042 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
19043 wxWindow *arg2 = (wxWindow *) 0 ;
19044 int arg3 = (int) -1 ;
19045 wxString const &arg4_defvalue = wxPyEmptyString ;
19046 wxString *arg4 = (wxString *) &arg4_defvalue ;
19047 wxPoint const &arg5_defvalue = wxDefaultPosition ;
19048 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
19049 wxSize const &arg6_defvalue = wxDefaultSize ;
19050 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
19051 long arg7 = (long) 0 ;
19052 wxValidator const &arg8_defvalue = wxDefaultValidator ;
19053 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
19054 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
19055 wxString *arg9 = (wxString *) &arg9_defvalue ;
19056 bool result;
19057 void *argp1 = 0 ;
19058 int res1 = 0 ;
19059 void *argp2 = 0 ;
19060 int res2 = 0 ;
19061 int val3 ;
19062 int ecode3 = 0 ;
19063 bool temp4 = false ;
19064 wxPoint temp5 ;
19065 wxSize temp6 ;
19066 long val7 ;
19067 int ecode7 = 0 ;
19068 void *argp8 = 0 ;
19069 int res8 = 0 ;
19070 bool temp9 = false ;
19071 PyObject * obj0 = 0 ;
19072 PyObject * obj1 = 0 ;
19073 PyObject * obj2 = 0 ;
19074 PyObject * obj3 = 0 ;
19075 PyObject * obj4 = 0 ;
19076 PyObject * obj5 = 0 ;
19077 PyObject * obj6 = 0 ;
19078 PyObject * obj7 = 0 ;
19079 PyObject * obj8 = 0 ;
19080 char * kwnames[] = {
19081 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
19082 };
19083
19084 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
19085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
19086 if (!SWIG_IsOK(res1)) {
19087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_Create" "', expected argument " "1"" of type '" "wxToggleButton *""'");
19088 }
19089 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
19090 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
19091 if (!SWIG_IsOK(res2)) {
19092 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToggleButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
19093 }
19094 arg2 = reinterpret_cast< wxWindow * >(argp2);
19095 if (obj2) {
19096 ecode3 = SWIG_AsVal_int(obj2, &val3);
19097 if (!SWIG_IsOK(ecode3)) {
19098 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToggleButton_Create" "', expected argument " "3"" of type '" "int""'");
19099 }
19100 arg3 = static_cast< int >(val3);
19101 }
19102 if (obj3) {
19103 {
19104 arg4 = wxString_in_helper(obj3);
19105 if (arg4 == NULL) SWIG_fail;
19106 temp4 = true;
19107 }
19108 }
19109 if (obj4) {
19110 {
19111 arg5 = &temp5;
19112 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
19113 }
19114 }
19115 if (obj5) {
19116 {
19117 arg6 = &temp6;
19118 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
19119 }
19120 }
19121 if (obj6) {
19122 ecode7 = SWIG_AsVal_long(obj6, &val7);
19123 if (!SWIG_IsOK(ecode7)) {
19124 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToggleButton_Create" "', expected argument " "7"" of type '" "long""'");
19125 }
19126 arg7 = static_cast< long >(val7);
19127 }
19128 if (obj7) {
19129 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
19130 if (!SWIG_IsOK(res8)) {
19131 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
19132 }
19133 if (!argp8) {
19134 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
19135 }
19136 arg8 = reinterpret_cast< wxValidator * >(argp8);
19137 }
19138 if (obj8) {
19139 {
19140 arg9 = wxString_in_helper(obj8);
19141 if (arg9 == NULL) SWIG_fail;
19142 temp9 = true;
19143 }
19144 }
19145 {
19146 PyThreadState* __tstate = wxPyBeginAllowThreads();
19147 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
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 (temp4)
19156 delete arg4;
19157 }
19158 {
19159 if (temp9)
19160 delete arg9;
19161 }
19162 return resultobj;
19163 fail:
19164 {
19165 if (temp4)
19166 delete arg4;
19167 }
19168 {
19169 if (temp9)
19170 delete arg9;
19171 }
19172 return NULL;
19173 }
19174
19175
19176 SWIGINTERN PyObject *_wrap_ToggleButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19177 PyObject *resultobj = 0;
19178 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
19179 bool arg2 ;
19180 void *argp1 = 0 ;
19181 int res1 = 0 ;
19182 bool val2 ;
19183 int ecode2 = 0 ;
19184 PyObject * obj0 = 0 ;
19185 PyObject * obj1 = 0 ;
19186 char * kwnames[] = {
19187 (char *) "self",(char *) "value", NULL
19188 };
19189
19190 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
19191 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
19192 if (!SWIG_IsOK(res1)) {
19193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_SetValue" "', expected argument " "1"" of type '" "wxToggleButton *""'");
19194 }
19195 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
19196 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19197 if (!SWIG_IsOK(ecode2)) {
19198 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToggleButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
19199 }
19200 arg2 = static_cast< bool >(val2);
19201 {
19202 PyThreadState* __tstate = wxPyBeginAllowThreads();
19203 (arg1)->SetValue(arg2);
19204 wxPyEndAllowThreads(__tstate);
19205 if (PyErr_Occurred()) SWIG_fail;
19206 }
19207 resultobj = SWIG_Py_Void();
19208 return resultobj;
19209 fail:
19210 return NULL;
19211 }
19212
19213
19214 SWIGINTERN PyObject *_wrap_ToggleButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19215 PyObject *resultobj = 0;
19216 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
19217 bool result;
19218 void *argp1 = 0 ;
19219 int res1 = 0 ;
19220 PyObject *swig_obj[1] ;
19221
19222 if (!args) SWIG_fail;
19223 swig_obj[0] = args;
19224 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
19225 if (!SWIG_IsOK(res1)) {
19226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_GetValue" "', expected argument " "1"" of type '" "wxToggleButton const *""'");
19227 }
19228 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
19229 {
19230 PyThreadState* __tstate = wxPyBeginAllowThreads();
19231 result = (bool)((wxToggleButton const *)arg1)->GetValue();
19232 wxPyEndAllowThreads(__tstate);
19233 if (PyErr_Occurred()) SWIG_fail;
19234 }
19235 {
19236 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19237 }
19238 return resultobj;
19239 fail:
19240 return NULL;
19241 }
19242
19243
19244 SWIGINTERN PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19245 PyObject *resultobj = 0;
19246 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
19247 SwigValueWrapper<wxVisualAttributes > result;
19248 int val1 ;
19249 int ecode1 = 0 ;
19250 PyObject * obj0 = 0 ;
19251 char * kwnames[] = {
19252 (char *) "variant", NULL
19253 };
19254
19255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
19256 if (obj0) {
19257 ecode1 = SWIG_AsVal_int(obj0, &val1);
19258 if (!SWIG_IsOK(ecode1)) {
19259 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToggleButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
19260 }
19261 arg1 = static_cast< wxWindowVariant >(val1);
19262 }
19263 {
19264 if (!wxPyCheckForApp()) SWIG_fail;
19265 PyThreadState* __tstate = wxPyBeginAllowThreads();
19266 result = wxToggleButton::GetClassDefaultAttributes(arg1);
19267 wxPyEndAllowThreads(__tstate);
19268 if (PyErr_Occurred()) SWIG_fail;
19269 }
19270 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
19271 return resultobj;
19272 fail:
19273 return NULL;
19274 }
19275
19276
19277 SWIGINTERN PyObject *ToggleButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19278 PyObject *obj;
19279 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
19280 SWIG_TypeNewClientData(SWIGTYPE_p_wxToggleButton, SWIG_NewClientData(obj));
19281 return SWIG_Py_Void();
19282 }
19283
19284 SWIGINTERN PyObject *ToggleButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19285 return SWIG_Python_InitShadowInstance(args);
19286 }
19287
19288 SWIGINTERN int NotebookNameStr_set(PyObject *) {
19289 SWIG_Error(SWIG_AttributeError,"Variable NotebookNameStr is read-only.");
19290 return 1;
19291 }
19292
19293
19294 SWIGINTERN PyObject *NotebookNameStr_get(void) {
19295 PyObject *pyobj = 0;
19296
19297 {
19298 #if wxUSE_UNICODE
19299 pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
19300 #else
19301 pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
19302 #endif
19303 }
19304 return pyobj;
19305 }
19306
19307
19308 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19309 PyObject *resultobj = 0;
19310 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19311 size_t result;
19312 void *argp1 = 0 ;
19313 int res1 = 0 ;
19314 PyObject *swig_obj[1] ;
19315
19316 if (!args) SWIG_fail;
19317 swig_obj[0] = args;
19318 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19319 if (!SWIG_IsOK(res1)) {
19320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageCount" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19321 }
19322 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19323 {
19324 PyThreadState* __tstate = wxPyBeginAllowThreads();
19325 result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount();
19326 wxPyEndAllowThreads(__tstate);
19327 if (PyErr_Occurred()) SWIG_fail;
19328 }
19329 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
19330 return resultobj;
19331 fail:
19332 return NULL;
19333 }
19334
19335
19336 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19337 PyObject *resultobj = 0;
19338 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19339 size_t arg2 ;
19340 wxWindow *result = 0 ;
19341 void *argp1 = 0 ;
19342 int res1 = 0 ;
19343 size_t val2 ;
19344 int ecode2 = 0 ;
19345 PyObject * obj0 = 0 ;
19346 PyObject * obj1 = 0 ;
19347 char * kwnames[] = {
19348 (char *) "self",(char *) "n", NULL
19349 };
19350
19351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) SWIG_fail;
19352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19353 if (!SWIG_IsOK(res1)) {
19354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19355 }
19356 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19357 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19358 if (!SWIG_IsOK(ecode2)) {
19359 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPage" "', expected argument " "2"" of type '" "size_t""'");
19360 }
19361 arg2 = static_cast< size_t >(val2);
19362 {
19363 PyThreadState* __tstate = wxPyBeginAllowThreads();
19364 result = (wxWindow *)(arg1)->GetPage(arg2);
19365 wxPyEndAllowThreads(__tstate);
19366 if (PyErr_Occurred()) SWIG_fail;
19367 }
19368 {
19369 resultobj = wxPyMake_wxObject(result, 0);
19370 }
19371 return resultobj;
19372 fail:
19373 return NULL;
19374 }
19375
19376
19377 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19378 PyObject *resultobj = 0;
19379 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19380 wxWindow *result = 0 ;
19381 void *argp1 = 0 ;
19382 int res1 = 0 ;
19383 PyObject *swig_obj[1] ;
19384
19385 if (!args) SWIG_fail;
19386 swig_obj[0] = args;
19387 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19388 if (!SWIG_IsOK(res1)) {
19389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19390 }
19391 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19392 {
19393 PyThreadState* __tstate = wxPyBeginAllowThreads();
19394 result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage();
19395 wxPyEndAllowThreads(__tstate);
19396 if (PyErr_Occurred()) SWIG_fail;
19397 }
19398 {
19399 resultobj = wxPyMake_wxObject(result, 0);
19400 }
19401 return resultobj;
19402 fail:
19403 return NULL;
19404 }
19405
19406
19407 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19408 PyObject *resultobj = 0;
19409 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19410 int result;
19411 void *argp1 = 0 ;
19412 int res1 = 0 ;
19413 PyObject *swig_obj[1] ;
19414
19415 if (!args) SWIG_fail;
19416 swig_obj[0] = args;
19417 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19418 if (!SWIG_IsOK(res1)) {
19419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19420 }
19421 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19422 {
19423 PyThreadState* __tstate = wxPyBeginAllowThreads();
19424 result = (int)((wxBookCtrlBase const *)arg1)->GetSelection();
19425 wxPyEndAllowThreads(__tstate);
19426 if (PyErr_Occurred()) SWIG_fail;
19427 }
19428 resultobj = SWIG_From_int(static_cast< int >(result));
19429 return resultobj;
19430 fail:
19431 return NULL;
19432 }
19433
19434
19435 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19436 PyObject *resultobj = 0;
19437 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19438 size_t arg2 ;
19439 wxString *arg3 = 0 ;
19440 bool result;
19441 void *argp1 = 0 ;
19442 int res1 = 0 ;
19443 size_t val2 ;
19444 int ecode2 = 0 ;
19445 bool temp3 = false ;
19446 PyObject * obj0 = 0 ;
19447 PyObject * obj1 = 0 ;
19448 PyObject * obj2 = 0 ;
19449 char * kwnames[] = {
19450 (char *) "self",(char *) "n",(char *) "strText", NULL
19451 };
19452
19453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19455 if (!SWIG_IsOK(res1)) {
19456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19457 }
19458 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19459 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19460 if (!SWIG_IsOK(ecode2)) {
19461 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "2"" of type '" "size_t""'");
19462 }
19463 arg2 = static_cast< size_t >(val2);
19464 {
19465 arg3 = wxString_in_helper(obj2);
19466 if (arg3 == NULL) SWIG_fail;
19467 temp3 = true;
19468 }
19469 {
19470 PyThreadState* __tstate = wxPyBeginAllowThreads();
19471 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
19472 wxPyEndAllowThreads(__tstate);
19473 if (PyErr_Occurred()) SWIG_fail;
19474 }
19475 {
19476 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19477 }
19478 {
19479 if (temp3)
19480 delete arg3;
19481 }
19482 return resultobj;
19483 fail:
19484 {
19485 if (temp3)
19486 delete arg3;
19487 }
19488 return NULL;
19489 }
19490
19491
19492 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19493 PyObject *resultobj = 0;
19494 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19495 size_t arg2 ;
19496 wxString result;
19497 void *argp1 = 0 ;
19498 int res1 = 0 ;
19499 size_t val2 ;
19500 int ecode2 = 0 ;
19501 PyObject * obj0 = 0 ;
19502 PyObject * obj1 = 0 ;
19503 char * kwnames[] = {
19504 (char *) "self",(char *) "n", NULL
19505 };
19506
19507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) SWIG_fail;
19508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19509 if (!SWIG_IsOK(res1)) {
19510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19511 }
19512 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19513 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19514 if (!SWIG_IsOK(ecode2)) {
19515 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "2"" of type '" "size_t""'");
19516 }
19517 arg2 = static_cast< size_t >(val2);
19518 {
19519 PyThreadState* __tstate = wxPyBeginAllowThreads();
19520 result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2);
19521 wxPyEndAllowThreads(__tstate);
19522 if (PyErr_Occurred()) SWIG_fail;
19523 }
19524 {
19525 #if wxUSE_UNICODE
19526 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19527 #else
19528 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19529 #endif
19530 }
19531 return resultobj;
19532 fail:
19533 return NULL;
19534 }
19535
19536
19537 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19538 PyObject *resultobj = 0;
19539 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19540 wxImageList *arg2 = (wxImageList *) 0 ;
19541 void *argp1 = 0 ;
19542 int res1 = 0 ;
19543 void *argp2 = 0 ;
19544 int res2 = 0 ;
19545 PyObject * obj0 = 0 ;
19546 PyObject * obj1 = 0 ;
19547 char * kwnames[] = {
19548 (char *) "self",(char *) "imageList", NULL
19549 };
19550
19551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19552 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19553 if (!SWIG_IsOK(res1)) {
19554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19555 }
19556 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19557 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
19558 if (!SWIG_IsOK(res2)) {
19559 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19560 }
19561 arg2 = reinterpret_cast< wxImageList * >(argp2);
19562 {
19563 PyThreadState* __tstate = wxPyBeginAllowThreads();
19564 (arg1)->SetImageList(arg2);
19565 wxPyEndAllowThreads(__tstate);
19566 if (PyErr_Occurred()) SWIG_fail;
19567 }
19568 resultobj = SWIG_Py_Void();
19569 return resultobj;
19570 fail:
19571 return NULL;
19572 }
19573
19574
19575 SWIGINTERN PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19576 PyObject *resultobj = 0;
19577 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19578 wxImageList *arg2 = (wxImageList *) 0 ;
19579 void *argp1 = 0 ;
19580 int res1 = 0 ;
19581 int res2 = 0 ;
19582 PyObject * obj0 = 0 ;
19583 PyObject * obj1 = 0 ;
19584 char * kwnames[] = {
19585 (char *) "self",(char *) "imageList", NULL
19586 };
19587
19588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19590 if (!SWIG_IsOK(res1)) {
19591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19592 }
19593 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19594 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
19595 if (!SWIG_IsOK(res2)) {
19596 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19597 }
19598 {
19599 PyThreadState* __tstate = wxPyBeginAllowThreads();
19600 (arg1)->AssignImageList(arg2);
19601 wxPyEndAllowThreads(__tstate);
19602 if (PyErr_Occurred()) SWIG_fail;
19603 }
19604 resultobj = SWIG_Py_Void();
19605 return resultobj;
19606 fail:
19607 return NULL;
19608 }
19609
19610
19611 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19612 PyObject *resultobj = 0;
19613 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19614 wxImageList *result = 0 ;
19615 void *argp1 = 0 ;
19616 int res1 = 0 ;
19617 PyObject *swig_obj[1] ;
19618
19619 if (!args) SWIG_fail;
19620 swig_obj[0] = args;
19621 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19622 if (!SWIG_IsOK(res1)) {
19623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19624 }
19625 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19626 {
19627 PyThreadState* __tstate = wxPyBeginAllowThreads();
19628 result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList();
19629 wxPyEndAllowThreads(__tstate);
19630 if (PyErr_Occurred()) SWIG_fail;
19631 }
19632 {
19633 resultobj = wxPyMake_wxObject(result, (bool)0);
19634 }
19635 return resultobj;
19636 fail:
19637 return NULL;
19638 }
19639
19640
19641 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19642 PyObject *resultobj = 0;
19643 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19644 size_t arg2 ;
19645 int result;
19646 void *argp1 = 0 ;
19647 int res1 = 0 ;
19648 size_t val2 ;
19649 int ecode2 = 0 ;
19650 PyObject * obj0 = 0 ;
19651 PyObject * obj1 = 0 ;
19652 char * kwnames[] = {
19653 (char *) "self",(char *) "n", NULL
19654 };
19655
19656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) SWIG_fail;
19657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19658 if (!SWIG_IsOK(res1)) {
19659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19660 }
19661 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19662 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19663 if (!SWIG_IsOK(ecode2)) {
19664 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19665 }
19666 arg2 = static_cast< size_t >(val2);
19667 {
19668 PyThreadState* __tstate = wxPyBeginAllowThreads();
19669 result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2);
19670 wxPyEndAllowThreads(__tstate);
19671 if (PyErr_Occurred()) SWIG_fail;
19672 }
19673 resultobj = SWIG_From_int(static_cast< int >(result));
19674 return resultobj;
19675 fail:
19676 return NULL;
19677 }
19678
19679
19680 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19681 PyObject *resultobj = 0;
19682 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19683 size_t arg2 ;
19684 int arg3 ;
19685 bool result;
19686 void *argp1 = 0 ;
19687 int res1 = 0 ;
19688 size_t val2 ;
19689 int ecode2 = 0 ;
19690 int val3 ;
19691 int ecode3 = 0 ;
19692 PyObject * obj0 = 0 ;
19693 PyObject * obj1 = 0 ;
19694 PyObject * obj2 = 0 ;
19695 char * kwnames[] = {
19696 (char *) "self",(char *) "n",(char *) "imageId", NULL
19697 };
19698
19699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19701 if (!SWIG_IsOK(res1)) {
19702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19703 }
19704 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19705 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19706 if (!SWIG_IsOK(ecode2)) {
19707 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19708 }
19709 arg2 = static_cast< size_t >(val2);
19710 ecode3 = SWIG_AsVal_int(obj2, &val3);
19711 if (!SWIG_IsOK(ecode3)) {
19712 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "3"" of type '" "int""'");
19713 }
19714 arg3 = static_cast< int >(val3);
19715 {
19716 PyThreadState* __tstate = wxPyBeginAllowThreads();
19717 result = (bool)(arg1)->SetPageImage(arg2,arg3);
19718 wxPyEndAllowThreads(__tstate);
19719 if (PyErr_Occurred()) SWIG_fail;
19720 }
19721 {
19722 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19723 }
19724 return resultobj;
19725 fail:
19726 return NULL;
19727 }
19728
19729
19730 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19731 PyObject *resultobj = 0;
19732 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19733 wxSize *arg2 = 0 ;
19734 void *argp1 = 0 ;
19735 int res1 = 0 ;
19736 wxSize temp2 ;
19737 PyObject * obj0 = 0 ;
19738 PyObject * obj1 = 0 ;
19739 char * kwnames[] = {
19740 (char *) "self",(char *) "size", NULL
19741 };
19742
19743 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
19744 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19745 if (!SWIG_IsOK(res1)) {
19746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageSize" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19747 }
19748 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19749 {
19750 arg2 = &temp2;
19751 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19752 }
19753 {
19754 PyThreadState* __tstate = wxPyBeginAllowThreads();
19755 (arg1)->SetPageSize((wxSize const &)*arg2);
19756 wxPyEndAllowThreads(__tstate);
19757 if (PyErr_Occurred()) SWIG_fail;
19758 }
19759 resultobj = SWIG_Py_Void();
19760 return resultobj;
19761 fail:
19762 return NULL;
19763 }
19764
19765
19766 SWIGINTERN PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19767 PyObject *resultobj = 0;
19768 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19769 wxSize *arg2 = 0 ;
19770 wxSize result;
19771 void *argp1 = 0 ;
19772 int res1 = 0 ;
19773 wxSize temp2 ;
19774 PyObject * obj0 = 0 ;
19775 PyObject * obj1 = 0 ;
19776 char * kwnames[] = {
19777 (char *) "self",(char *) "sizePage", NULL
19778 };
19779
19780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) SWIG_fail;
19781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19782 if (!SWIG_IsOK(res1)) {
19783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_CalcSizeFromPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19784 }
19785 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19786 {
19787 arg2 = &temp2;
19788 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19789 }
19790 {
19791 PyThreadState* __tstate = wxPyBeginAllowThreads();
19792 result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
19793 wxPyEndAllowThreads(__tstate);
19794 if (PyErr_Occurred()) SWIG_fail;
19795 }
19796 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
19797 return resultobj;
19798 fail:
19799 return NULL;
19800 }
19801
19802
19803 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19804 PyObject *resultobj = 0;
19805 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19806 unsigned int result;
19807 void *argp1 = 0 ;
19808 int res1 = 0 ;
19809 PyObject *swig_obj[1] ;
19810
19811 if (!args) SWIG_fail;
19812 swig_obj[0] = args;
19813 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19814 if (!SWIG_IsOK(res1)) {
19815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19816 }
19817 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19818 {
19819 PyThreadState* __tstate = wxPyBeginAllowThreads();
19820 result = (unsigned int)((wxBookCtrlBase const *)arg1)->GetInternalBorder();
19821 wxPyEndAllowThreads(__tstate);
19822 if (PyErr_Occurred()) SWIG_fail;
19823 }
19824 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
19825 return resultobj;
19826 fail:
19827 return NULL;
19828 }
19829
19830
19831 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19832 PyObject *resultobj = 0;
19833 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19834 unsigned int arg2 ;
19835 void *argp1 = 0 ;
19836 int res1 = 0 ;
19837 unsigned int val2 ;
19838 int ecode2 = 0 ;
19839 PyObject * obj0 = 0 ;
19840 PyObject * obj1 = 0 ;
19841 char * kwnames[] = {
19842 (char *) "self",(char *) "internalBorder", NULL
19843 };
19844
19845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetInternalBorder",kwnames,&obj0,&obj1)) SWIG_fail;
19846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19847 if (!SWIG_IsOK(res1)) {
19848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19849 }
19850 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19851 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
19852 if (!SWIG_IsOK(ecode2)) {
19853 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "2"" of type '" "unsigned int""'");
19854 }
19855 arg2 = static_cast< unsigned int >(val2);
19856 {
19857 PyThreadState* __tstate = wxPyBeginAllowThreads();
19858 (arg1)->SetInternalBorder(arg2);
19859 wxPyEndAllowThreads(__tstate);
19860 if (PyErr_Occurred()) SWIG_fail;
19861 }
19862 resultobj = SWIG_Py_Void();
19863 return resultobj;
19864 fail:
19865 return NULL;
19866 }
19867
19868
19869 SWIGINTERN PyObject *_wrap_BookCtrlBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19870 PyObject *resultobj = 0;
19871 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19872 bool result;
19873 void *argp1 = 0 ;
19874 int res1 = 0 ;
19875 PyObject *swig_obj[1] ;
19876
19877 if (!args) SWIG_fail;
19878 swig_obj[0] = args;
19879 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19880 if (!SWIG_IsOK(res1)) {
19881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_IsVertical" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19882 }
19883 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19884 {
19885 PyThreadState* __tstate = wxPyBeginAllowThreads();
19886 result = (bool)((wxBookCtrlBase const *)arg1)->IsVertical();
19887 wxPyEndAllowThreads(__tstate);
19888 if (PyErr_Occurred()) SWIG_fail;
19889 }
19890 {
19891 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19892 }
19893 return resultobj;
19894 fail:
19895 return NULL;
19896 }
19897
19898
19899 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19900 PyObject *resultobj = 0;
19901 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19902 int arg2 ;
19903 void *argp1 = 0 ;
19904 int res1 = 0 ;
19905 int val2 ;
19906 int ecode2 = 0 ;
19907 PyObject * obj0 = 0 ;
19908 PyObject * obj1 = 0 ;
19909 char * kwnames[] = {
19910 (char *) "self",(char *) "margin", NULL
19911 };
19912
19913 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetControlMargin",kwnames,&obj0,&obj1)) SWIG_fail;
19914 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19915 if (!SWIG_IsOK(res1)) {
19916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19917 }
19918 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19919 ecode2 = SWIG_AsVal_int(obj1, &val2);
19920 if (!SWIG_IsOK(ecode2)) {
19921 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "2"" of type '" "int""'");
19922 }
19923 arg2 = static_cast< int >(val2);
19924 {
19925 PyThreadState* __tstate = wxPyBeginAllowThreads();
19926 (arg1)->SetControlMargin(arg2);
19927 wxPyEndAllowThreads(__tstate);
19928 if (PyErr_Occurred()) SWIG_fail;
19929 }
19930 resultobj = SWIG_Py_Void();
19931 return resultobj;
19932 fail:
19933 return NULL;
19934 }
19935
19936
19937 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19938 PyObject *resultobj = 0;
19939 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19940 int result;
19941 void *argp1 = 0 ;
19942 int res1 = 0 ;
19943 PyObject *swig_obj[1] ;
19944
19945 if (!args) SWIG_fail;
19946 swig_obj[0] = args;
19947 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19948 if (!SWIG_IsOK(res1)) {
19949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19950 }
19951 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19952 {
19953 PyThreadState* __tstate = wxPyBeginAllowThreads();
19954 result = (int)((wxBookCtrlBase const *)arg1)->GetControlMargin();
19955 wxPyEndAllowThreads(__tstate);
19956 if (PyErr_Occurred()) SWIG_fail;
19957 }
19958 resultobj = SWIG_From_int(static_cast< int >(result));
19959 return resultobj;
19960 fail:
19961 return NULL;
19962 }
19963
19964
19965 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19966 PyObject *resultobj = 0;
19967 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19968 bool arg2 ;
19969 void *argp1 = 0 ;
19970 int res1 = 0 ;
19971 bool val2 ;
19972 int ecode2 = 0 ;
19973 PyObject * obj0 = 0 ;
19974 PyObject * obj1 = 0 ;
19975 char * kwnames[] = {
19976 (char *) "self",(char *) "fit", NULL
19977 };
19978
19979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetFitToCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail;
19980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19981 if (!SWIG_IsOK(res1)) {
19982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19983 }
19984 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19985 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19986 if (!SWIG_IsOK(ecode2)) {
19987 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "2"" of type '" "bool""'");
19988 }
19989 arg2 = static_cast< bool >(val2);
19990 {
19991 PyThreadState* __tstate = wxPyBeginAllowThreads();
19992 (arg1)->SetFitToCurrentPage(arg2);
19993 wxPyEndAllowThreads(__tstate);
19994 if (PyErr_Occurred()) SWIG_fail;
19995 }
19996 resultobj = SWIG_Py_Void();
19997 return resultobj;
19998 fail:
19999 return NULL;
20000 }
20001
20002
20003 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20004 PyObject *resultobj = 0;
20005 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20006 bool result;
20007 void *argp1 = 0 ;
20008 int res1 = 0 ;
20009 PyObject *swig_obj[1] ;
20010
20011 if (!args) SWIG_fail;
20012 swig_obj[0] = args;
20013 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20014 if (!SWIG_IsOK(res1)) {
20015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
20016 }
20017 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20018 {
20019 PyThreadState* __tstate = wxPyBeginAllowThreads();
20020 result = (bool)((wxBookCtrlBase const *)arg1)->GetFitToCurrentPage();
20021 wxPyEndAllowThreads(__tstate);
20022 if (PyErr_Occurred()) SWIG_fail;
20023 }
20024 {
20025 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20026 }
20027 return resultobj;
20028 fail:
20029 return NULL;
20030 }
20031
20032
20033 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20034 PyObject *resultobj = 0;
20035 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20036 wxSizer *result = 0 ;
20037 void *argp1 = 0 ;
20038 int res1 = 0 ;
20039 PyObject *swig_obj[1] ;
20040
20041 if (!args) SWIG_fail;
20042 swig_obj[0] = args;
20043 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20044 if (!SWIG_IsOK(res1)) {
20045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlSizer" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
20046 }
20047 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20048 {
20049 PyThreadState* __tstate = wxPyBeginAllowThreads();
20050 result = (wxSizer *)((wxBookCtrlBase const *)arg1)->GetControlSizer();
20051 wxPyEndAllowThreads(__tstate);
20052 if (PyErr_Occurred()) SWIG_fail;
20053 }
20054 {
20055 resultobj = wxPyMake_wxObject(result, (bool)0);
20056 }
20057 return resultobj;
20058 fail:
20059 return NULL;
20060 }
20061
20062
20063 SWIGINTERN PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20064 PyObject *resultobj = 0;
20065 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20066 size_t arg2 ;
20067 bool result;
20068 void *argp1 = 0 ;
20069 int res1 = 0 ;
20070 size_t val2 ;
20071 int ecode2 = 0 ;
20072 PyObject * obj0 = 0 ;
20073 PyObject * obj1 = 0 ;
20074 char * kwnames[] = {
20075 (char *) "self",(char *) "n", NULL
20076 };
20077
20078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) SWIG_fail;
20079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20080 if (!SWIG_IsOK(res1)) {
20081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20082 }
20083 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20084 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20085 if (!SWIG_IsOK(ecode2)) {
20086 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "2"" of type '" "size_t""'");
20087 }
20088 arg2 = static_cast< size_t >(val2);
20089 {
20090 PyThreadState* __tstate = wxPyBeginAllowThreads();
20091 result = (bool)(arg1)->DeletePage(arg2);
20092 wxPyEndAllowThreads(__tstate);
20093 if (PyErr_Occurred()) SWIG_fail;
20094 }
20095 {
20096 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20097 }
20098 return resultobj;
20099 fail:
20100 return NULL;
20101 }
20102
20103
20104 SWIGINTERN PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20105 PyObject *resultobj = 0;
20106 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20107 size_t arg2 ;
20108 bool result;
20109 void *argp1 = 0 ;
20110 int res1 = 0 ;
20111 size_t val2 ;
20112 int ecode2 = 0 ;
20113 PyObject * obj0 = 0 ;
20114 PyObject * obj1 = 0 ;
20115 char * kwnames[] = {
20116 (char *) "self",(char *) "n", NULL
20117 };
20118
20119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) SWIG_fail;
20120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20121 if (!SWIG_IsOK(res1)) {
20122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20123 }
20124 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20125 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20126 if (!SWIG_IsOK(ecode2)) {
20127 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "2"" of type '" "size_t""'");
20128 }
20129 arg2 = static_cast< size_t >(val2);
20130 {
20131 PyThreadState* __tstate = wxPyBeginAllowThreads();
20132 result = (bool)(arg1)->RemovePage(arg2);
20133 wxPyEndAllowThreads(__tstate);
20134 if (PyErr_Occurred()) SWIG_fail;
20135 }
20136 {
20137 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20138 }
20139 return resultobj;
20140 fail:
20141 return NULL;
20142 }
20143
20144
20145 SWIGINTERN PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20146 PyObject *resultobj = 0;
20147 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20148 bool result;
20149 void *argp1 = 0 ;
20150 int res1 = 0 ;
20151 PyObject *swig_obj[1] ;
20152
20153 if (!args) SWIG_fail;
20154 swig_obj[0] = args;
20155 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20156 if (!SWIG_IsOK(res1)) {
20157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeleteAllPages" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20158 }
20159 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20160 {
20161 PyThreadState* __tstate = wxPyBeginAllowThreads();
20162 result = (bool)(arg1)->DeleteAllPages();
20163 wxPyEndAllowThreads(__tstate);
20164 if (PyErr_Occurred()) SWIG_fail;
20165 }
20166 {
20167 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20168 }
20169 return resultobj;
20170 fail:
20171 return NULL;
20172 }
20173
20174
20175 SWIGINTERN PyObject *_wrap_BookCtrlBase_AddPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20176 PyObject *resultobj = 0;
20177 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20178 wxWindow *arg2 = (wxWindow *) 0 ;
20179 wxString *arg3 = 0 ;
20180 bool arg4 = (bool) false ;
20181 int arg5 = (int) -1 ;
20182 bool result;
20183 void *argp1 = 0 ;
20184 int res1 = 0 ;
20185 void *argp2 = 0 ;
20186 int res2 = 0 ;
20187 bool temp3 = false ;
20188 bool val4 ;
20189 int ecode4 = 0 ;
20190 int val5 ;
20191 int ecode5 = 0 ;
20192 PyObject * obj0 = 0 ;
20193 PyObject * obj1 = 0 ;
20194 PyObject * obj2 = 0 ;
20195 PyObject * obj3 = 0 ;
20196 PyObject * obj4 = 0 ;
20197 char * kwnames[] = {
20198 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
20199 };
20200
20201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20203 if (!SWIG_IsOK(res1)) {
20204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AddPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20205 }
20206 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20207 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20208 if (!SWIG_IsOK(res2)) {
20209 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AddPage" "', expected argument " "2"" of type '" "wxWindow *""'");
20210 }
20211 arg2 = reinterpret_cast< wxWindow * >(argp2);
20212 {
20213 arg3 = wxString_in_helper(obj2);
20214 if (arg3 == NULL) SWIG_fail;
20215 temp3 = true;
20216 }
20217 if (obj3) {
20218 ecode4 = SWIG_AsVal_bool(obj3, &val4);
20219 if (!SWIG_IsOK(ecode4)) {
20220 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BookCtrlBase_AddPage" "', expected argument " "4"" of type '" "bool""'");
20221 }
20222 arg4 = static_cast< bool >(val4);
20223 }
20224 if (obj4) {
20225 ecode5 = SWIG_AsVal_int(obj4, &val5);
20226 if (!SWIG_IsOK(ecode5)) {
20227 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_AddPage" "', expected argument " "5"" of type '" "int""'");
20228 }
20229 arg5 = static_cast< int >(val5);
20230 }
20231 {
20232 PyThreadState* __tstate = wxPyBeginAllowThreads();
20233 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
20234 wxPyEndAllowThreads(__tstate);
20235 if (PyErr_Occurred()) SWIG_fail;
20236 }
20237 {
20238 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20239 }
20240 {
20241 if (temp3)
20242 delete arg3;
20243 }
20244 return resultobj;
20245 fail:
20246 {
20247 if (temp3)
20248 delete arg3;
20249 }
20250 return NULL;
20251 }
20252
20253
20254 SWIGINTERN PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20255 PyObject *resultobj = 0;
20256 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20257 size_t arg2 ;
20258 wxWindow *arg3 = (wxWindow *) 0 ;
20259 wxString *arg4 = 0 ;
20260 bool arg5 = (bool) false ;
20261 int arg6 = (int) -1 ;
20262 bool result;
20263 void *argp1 = 0 ;
20264 int res1 = 0 ;
20265 size_t val2 ;
20266 int ecode2 = 0 ;
20267 void *argp3 = 0 ;
20268 int res3 = 0 ;
20269 bool temp4 = false ;
20270 bool val5 ;
20271 int ecode5 = 0 ;
20272 int val6 ;
20273 int ecode6 = 0 ;
20274 PyObject * obj0 = 0 ;
20275 PyObject * obj1 = 0 ;
20276 PyObject * obj2 = 0 ;
20277 PyObject * obj3 = 0 ;
20278 PyObject * obj4 = 0 ;
20279 PyObject * obj5 = 0 ;
20280 char * kwnames[] = {
20281 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
20282 };
20283
20284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20286 if (!SWIG_IsOK(res1)) {
20287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20288 }
20289 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20290 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20291 if (!SWIG_IsOK(ecode2)) {
20292 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "2"" of type '" "size_t""'");
20293 }
20294 arg2 = static_cast< size_t >(val2);
20295 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
20296 if (!SWIG_IsOK(res3)) {
20297 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "3"" of type '" "wxWindow *""'");
20298 }
20299 arg3 = reinterpret_cast< wxWindow * >(argp3);
20300 {
20301 arg4 = wxString_in_helper(obj3);
20302 if (arg4 == NULL) SWIG_fail;
20303 temp4 = true;
20304 }
20305 if (obj4) {
20306 ecode5 = SWIG_AsVal_bool(obj4, &val5);
20307 if (!SWIG_IsOK(ecode5)) {
20308 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "5"" of type '" "bool""'");
20309 }
20310 arg5 = static_cast< bool >(val5);
20311 }
20312 if (obj5) {
20313 ecode6 = SWIG_AsVal_int(obj5, &val6);
20314 if (!SWIG_IsOK(ecode6)) {
20315 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "6"" of type '" "int""'");
20316 }
20317 arg6 = static_cast< int >(val6);
20318 }
20319 {
20320 PyThreadState* __tstate = wxPyBeginAllowThreads();
20321 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
20322 wxPyEndAllowThreads(__tstate);
20323 if (PyErr_Occurred()) SWIG_fail;
20324 }
20325 {
20326 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20327 }
20328 {
20329 if (temp4)
20330 delete arg4;
20331 }
20332 return resultobj;
20333 fail:
20334 {
20335 if (temp4)
20336 delete arg4;
20337 }
20338 return NULL;
20339 }
20340
20341
20342 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20343 PyObject *resultobj = 0;
20344 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20345 size_t arg2 ;
20346 int result;
20347 void *argp1 = 0 ;
20348 int res1 = 0 ;
20349 size_t val2 ;
20350 int ecode2 = 0 ;
20351 PyObject * obj0 = 0 ;
20352 PyObject * obj1 = 0 ;
20353 char * kwnames[] = {
20354 (char *) "self",(char *) "n", NULL
20355 };
20356
20357 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20358 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20359 if (!SWIG_IsOK(res1)) {
20360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20361 }
20362 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20363 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20364 if (!SWIG_IsOK(ecode2)) {
20365 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "2"" of type '" "size_t""'");
20366 }
20367 arg2 = static_cast< size_t >(val2);
20368 {
20369 PyThreadState* __tstate = wxPyBeginAllowThreads();
20370 result = (int)(arg1)->SetSelection(arg2);
20371 wxPyEndAllowThreads(__tstate);
20372 if (PyErr_Occurred()) SWIG_fail;
20373 }
20374 resultobj = SWIG_From_int(static_cast< int >(result));
20375 return resultobj;
20376 fail:
20377 return NULL;
20378 }
20379
20380
20381 SWIGINTERN PyObject *_wrap_BookCtrlBase_ChangeSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20382 PyObject *resultobj = 0;
20383 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20384 size_t arg2 ;
20385 int result;
20386 void *argp1 = 0 ;
20387 int res1 = 0 ;
20388 size_t val2 ;
20389 int ecode2 = 0 ;
20390 PyObject * obj0 = 0 ;
20391 PyObject * obj1 = 0 ;
20392 char * kwnames[] = {
20393 (char *) "self",(char *) "n", NULL
20394 };
20395
20396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_ChangeSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20397 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20398 if (!SWIG_IsOK(res1)) {
20399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_ChangeSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20400 }
20401 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20402 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20403 if (!SWIG_IsOK(ecode2)) {
20404 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_ChangeSelection" "', expected argument " "2"" of type '" "size_t""'");
20405 }
20406 arg2 = static_cast< size_t >(val2);
20407 {
20408 PyThreadState* __tstate = wxPyBeginAllowThreads();
20409 result = (int)(arg1)->ChangeSelection(arg2);
20410 wxPyEndAllowThreads(__tstate);
20411 if (PyErr_Occurred()) SWIG_fail;
20412 }
20413 resultobj = SWIG_From_int(static_cast< int >(result));
20414 return resultobj;
20415 fail:
20416 return NULL;
20417 }
20418
20419
20420 SWIGINTERN PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20421 PyObject *resultobj = 0;
20422 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20423 bool arg2 = (bool) true ;
20424 void *argp1 = 0 ;
20425 int res1 = 0 ;
20426 bool val2 ;
20427 int ecode2 = 0 ;
20428 PyObject * obj0 = 0 ;
20429 PyObject * obj1 = 0 ;
20430 char * kwnames[] = {
20431 (char *) "self",(char *) "forward", NULL
20432 };
20433
20434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20436 if (!SWIG_IsOK(res1)) {
20437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20438 }
20439 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20440 if (obj1) {
20441 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20442 if (!SWIG_IsOK(ecode2)) {
20443 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "2"" of type '" "bool""'");
20444 }
20445 arg2 = static_cast< bool >(val2);
20446 }
20447 {
20448 PyThreadState* __tstate = wxPyBeginAllowThreads();
20449 (arg1)->AdvanceSelection(arg2);
20450 wxPyEndAllowThreads(__tstate);
20451 if (PyErr_Occurred()) SWIG_fail;
20452 }
20453 resultobj = SWIG_Py_Void();
20454 return resultobj;
20455 fail:
20456 return NULL;
20457 }
20458
20459
20460 SWIGINTERN PyObject *_wrap_BookCtrlBase_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20461 PyObject *resultobj = 0;
20462 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20463 wxPoint *arg2 = 0 ;
20464 long *arg3 = (long *) 0 ;
20465 int result;
20466 void *argp1 = 0 ;
20467 int res1 = 0 ;
20468 wxPoint temp2 ;
20469 long temp3 ;
20470 int res3 = SWIG_TMPOBJ ;
20471 PyObject * obj0 = 0 ;
20472 PyObject * obj1 = 0 ;
20473 char * kwnames[] = {
20474 (char *) "self",(char *) "pt", NULL
20475 };
20476
20477 arg3 = &temp3;
20478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
20479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20480 if (!SWIG_IsOK(res1)) {
20481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_HitTest" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
20482 }
20483 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20484 {
20485 arg2 = &temp2;
20486 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20487 }
20488 {
20489 PyThreadState* __tstate = wxPyBeginAllowThreads();
20490 result = (int)((wxBookCtrlBase const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
20491 wxPyEndAllowThreads(__tstate);
20492 if (PyErr_Occurred()) SWIG_fail;
20493 }
20494 resultobj = SWIG_From_int(static_cast< int >(result));
20495 if (SWIG_IsTmpObj(res3)) {
20496 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
20497 } else {
20498 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20499 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
20500 }
20501 return resultobj;
20502 fail:
20503 return NULL;
20504 }
20505
20506
20507 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20508 PyObject *resultobj = 0;
20509 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20510 SwigValueWrapper<wxVisualAttributes > result;
20511 int val1 ;
20512 int ecode1 = 0 ;
20513 PyObject * obj0 = 0 ;
20514 char * kwnames[] = {
20515 (char *) "variant", NULL
20516 };
20517
20518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20519 if (obj0) {
20520 ecode1 = SWIG_AsVal_int(obj0, &val1);
20521 if (!SWIG_IsOK(ecode1)) {
20522 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "BookCtrlBase_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20523 }
20524 arg1 = static_cast< wxWindowVariant >(val1);
20525 }
20526 {
20527 if (!wxPyCheckForApp()) SWIG_fail;
20528 PyThreadState* __tstate = wxPyBeginAllowThreads();
20529 result = wxBookCtrlBase::GetClassDefaultAttributes(arg1);
20530 wxPyEndAllowThreads(__tstate);
20531 if (PyErr_Occurred()) SWIG_fail;
20532 }
20533 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20534 return resultobj;
20535 fail:
20536 return NULL;
20537 }
20538
20539
20540 SWIGINTERN PyObject *BookCtrlBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20541 PyObject *obj;
20542 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20543 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBase, SWIG_NewClientData(obj));
20544 return SWIG_Py_Void();
20545 }
20546
20547 SWIGINTERN PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20548 PyObject *resultobj = 0;
20549 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20550 int arg2 = (int) 0 ;
20551 int arg3 = (int) -1 ;
20552 int arg4 = (int) -1 ;
20553 wxBookCtrlBaseEvent *result = 0 ;
20554 int val1 ;
20555 int ecode1 = 0 ;
20556 int val2 ;
20557 int ecode2 = 0 ;
20558 int val3 ;
20559 int ecode3 = 0 ;
20560 int val4 ;
20561 int ecode4 = 0 ;
20562 PyObject * obj0 = 0 ;
20563 PyObject * obj1 = 0 ;
20564 PyObject * obj2 = 0 ;
20565 PyObject * obj3 = 0 ;
20566 char * kwnames[] = {
20567 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20568 };
20569
20570 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20571 if (obj0) {
20572 ecode1 = SWIG_AsVal_int(obj0, &val1);
20573 if (!SWIG_IsOK(ecode1)) {
20574 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20575 }
20576 arg1 = static_cast< wxEventType >(val1);
20577 }
20578 if (obj1) {
20579 ecode2 = SWIG_AsVal_int(obj1, &val2);
20580 if (!SWIG_IsOK(ecode2)) {
20581 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "2"" of type '" "int""'");
20582 }
20583 arg2 = static_cast< int >(val2);
20584 }
20585 if (obj2) {
20586 ecode3 = SWIG_AsVal_int(obj2, &val3);
20587 if (!SWIG_IsOK(ecode3)) {
20588 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "3"" of type '" "int""'");
20589 }
20590 arg3 = static_cast< int >(val3);
20591 }
20592 if (obj3) {
20593 ecode4 = SWIG_AsVal_int(obj3, &val4);
20594 if (!SWIG_IsOK(ecode4)) {
20595 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "4"" of type '" "int""'");
20596 }
20597 arg4 = static_cast< int >(val4);
20598 }
20599 {
20600 PyThreadState* __tstate = wxPyBeginAllowThreads();
20601 result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4);
20602 wxPyEndAllowThreads(__tstate);
20603 if (PyErr_Occurred()) SWIG_fail;
20604 }
20605 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_NEW | 0 );
20606 return resultobj;
20607 fail:
20608 return NULL;
20609 }
20610
20611
20612 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20613 PyObject *resultobj = 0;
20614 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20615 int result;
20616 void *argp1 = 0 ;
20617 int res1 = 0 ;
20618 PyObject *swig_obj[1] ;
20619
20620 if (!args) SWIG_fail;
20621 swig_obj[0] = args;
20622 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20623 if (!SWIG_IsOK(res1)) {
20624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20625 }
20626 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20627 {
20628 PyThreadState* __tstate = wxPyBeginAllowThreads();
20629 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection();
20630 wxPyEndAllowThreads(__tstate);
20631 if (PyErr_Occurred()) SWIG_fail;
20632 }
20633 resultobj = SWIG_From_int(static_cast< int >(result));
20634 return resultobj;
20635 fail:
20636 return NULL;
20637 }
20638
20639
20640 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20641 PyObject *resultobj = 0;
20642 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20643 int arg2 ;
20644 void *argp1 = 0 ;
20645 int res1 = 0 ;
20646 int val2 ;
20647 int ecode2 = 0 ;
20648 PyObject * obj0 = 0 ;
20649 PyObject * obj1 = 0 ;
20650 char * kwnames[] = {
20651 (char *) "self",(char *) "nSel", NULL
20652 };
20653
20654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20656 if (!SWIG_IsOK(res1)) {
20657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20658 }
20659 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20660 ecode2 = SWIG_AsVal_int(obj1, &val2);
20661 if (!SWIG_IsOK(ecode2)) {
20662 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "2"" of type '" "int""'");
20663 }
20664 arg2 = static_cast< int >(val2);
20665 {
20666 PyThreadState* __tstate = wxPyBeginAllowThreads();
20667 (arg1)->SetSelection(arg2);
20668 wxPyEndAllowThreads(__tstate);
20669 if (PyErr_Occurred()) SWIG_fail;
20670 }
20671 resultobj = SWIG_Py_Void();
20672 return resultobj;
20673 fail:
20674 return NULL;
20675 }
20676
20677
20678 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20679 PyObject *resultobj = 0;
20680 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20681 int result;
20682 void *argp1 = 0 ;
20683 int res1 = 0 ;
20684 PyObject *swig_obj[1] ;
20685
20686 if (!args) SWIG_fail;
20687 swig_obj[0] = args;
20688 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20689 if (!SWIG_IsOK(res1)) {
20690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20691 }
20692 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20693 {
20694 PyThreadState* __tstate = wxPyBeginAllowThreads();
20695 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection();
20696 wxPyEndAllowThreads(__tstate);
20697 if (PyErr_Occurred()) SWIG_fail;
20698 }
20699 resultobj = SWIG_From_int(static_cast< int >(result));
20700 return resultobj;
20701 fail:
20702 return NULL;
20703 }
20704
20705
20706 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20707 PyObject *resultobj = 0;
20708 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20709 int arg2 ;
20710 void *argp1 = 0 ;
20711 int res1 = 0 ;
20712 int val2 ;
20713 int ecode2 = 0 ;
20714 PyObject * obj0 = 0 ;
20715 PyObject * obj1 = 0 ;
20716 char * kwnames[] = {
20717 (char *) "self",(char *) "nOldSel", NULL
20718 };
20719
20720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20721 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20722 if (!SWIG_IsOK(res1)) {
20723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20724 }
20725 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20726 ecode2 = SWIG_AsVal_int(obj1, &val2);
20727 if (!SWIG_IsOK(ecode2)) {
20728 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "2"" of type '" "int""'");
20729 }
20730 arg2 = static_cast< int >(val2);
20731 {
20732 PyThreadState* __tstate = wxPyBeginAllowThreads();
20733 (arg1)->SetOldSelection(arg2);
20734 wxPyEndAllowThreads(__tstate);
20735 if (PyErr_Occurred()) SWIG_fail;
20736 }
20737 resultobj = SWIG_Py_Void();
20738 return resultobj;
20739 fail:
20740 return NULL;
20741 }
20742
20743
20744 SWIGINTERN PyObject *BookCtrlBaseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20745 PyObject *obj;
20746 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20747 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_NewClientData(obj));
20748 return SWIG_Py_Void();
20749 }
20750
20751 SWIGINTERN PyObject *BookCtrlBaseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20752 return SWIG_Python_InitShadowInstance(args);
20753 }
20754
20755 SWIGINTERN PyObject *_wrap_new_Notebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20756 PyObject *resultobj = 0;
20757 wxWindow *arg1 = (wxWindow *) 0 ;
20758 int arg2 = (int) -1 ;
20759 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20760 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20761 wxSize const &arg4_defvalue = wxDefaultSize ;
20762 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20763 long arg5 = (long) 0 ;
20764 wxString const &arg6_defvalue = wxPyNotebookNameStr ;
20765 wxString *arg6 = (wxString *) &arg6_defvalue ;
20766 wxNotebook *result = 0 ;
20767 void *argp1 = 0 ;
20768 int res1 = 0 ;
20769 int val2 ;
20770 int ecode2 = 0 ;
20771 wxPoint temp3 ;
20772 wxSize temp4 ;
20773 long val5 ;
20774 int ecode5 = 0 ;
20775 bool temp6 = false ;
20776 PyObject * obj0 = 0 ;
20777 PyObject * obj1 = 0 ;
20778 PyObject * obj2 = 0 ;
20779 PyObject * obj3 = 0 ;
20780 PyObject * obj4 = 0 ;
20781 PyObject * obj5 = 0 ;
20782 char * kwnames[] = {
20783 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20784 };
20785
20786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20788 if (!SWIG_IsOK(res1)) {
20789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Notebook" "', expected argument " "1"" of type '" "wxWindow *""'");
20790 }
20791 arg1 = reinterpret_cast< wxWindow * >(argp1);
20792 if (obj1) {
20793 ecode2 = SWIG_AsVal_int(obj1, &val2);
20794 if (!SWIG_IsOK(ecode2)) {
20795 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Notebook" "', expected argument " "2"" of type '" "int""'");
20796 }
20797 arg2 = static_cast< int >(val2);
20798 }
20799 if (obj2) {
20800 {
20801 arg3 = &temp3;
20802 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20803 }
20804 }
20805 if (obj3) {
20806 {
20807 arg4 = &temp4;
20808 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
20809 }
20810 }
20811 if (obj4) {
20812 ecode5 = SWIG_AsVal_long(obj4, &val5);
20813 if (!SWIG_IsOK(ecode5)) {
20814 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Notebook" "', expected argument " "5"" of type '" "long""'");
20815 }
20816 arg5 = static_cast< long >(val5);
20817 }
20818 if (obj5) {
20819 {
20820 arg6 = wxString_in_helper(obj5);
20821 if (arg6 == NULL) SWIG_fail;
20822 temp6 = true;
20823 }
20824 }
20825 {
20826 if (!wxPyCheckForApp()) SWIG_fail;
20827 PyThreadState* __tstate = wxPyBeginAllowThreads();
20828 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20829 wxPyEndAllowThreads(__tstate);
20830 if (PyErr_Occurred()) SWIG_fail;
20831 }
20832 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_NEW | 0 );
20833 {
20834 if (temp6)
20835 delete arg6;
20836 }
20837 return resultobj;
20838 fail:
20839 {
20840 if (temp6)
20841 delete arg6;
20842 }
20843 return NULL;
20844 }
20845
20846
20847 SWIGINTERN PyObject *_wrap_new_PreNotebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20848 PyObject *resultobj = 0;
20849 wxNotebook *result = 0 ;
20850
20851 if (!SWIG_Python_UnpackTuple(args,"new_PreNotebook",0,0,0)) SWIG_fail;
20852 {
20853 if (!wxPyCheckForApp()) SWIG_fail;
20854 PyThreadState* __tstate = wxPyBeginAllowThreads();
20855 result = (wxNotebook *)new wxNotebook();
20856 wxPyEndAllowThreads(__tstate);
20857 if (PyErr_Occurred()) SWIG_fail;
20858 }
20859 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_OWN | 0 );
20860 return resultobj;
20861 fail:
20862 return NULL;
20863 }
20864
20865
20866 SWIGINTERN PyObject *_wrap_Notebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20867 PyObject *resultobj = 0;
20868 wxNotebook *arg1 = (wxNotebook *) 0 ;
20869 wxWindow *arg2 = (wxWindow *) 0 ;
20870 int arg3 = (int) -1 ;
20871 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20872 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20873 wxSize const &arg5_defvalue = wxDefaultSize ;
20874 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20875 long arg6 = (long) 0 ;
20876 wxString const &arg7_defvalue = wxPyNotebookNameStr ;
20877 wxString *arg7 = (wxString *) &arg7_defvalue ;
20878 bool result;
20879 void *argp1 = 0 ;
20880 int res1 = 0 ;
20881 void *argp2 = 0 ;
20882 int res2 = 0 ;
20883 int val3 ;
20884 int ecode3 = 0 ;
20885 wxPoint temp4 ;
20886 wxSize temp5 ;
20887 long val6 ;
20888 int ecode6 = 0 ;
20889 bool temp7 = false ;
20890 PyObject * obj0 = 0 ;
20891 PyObject * obj1 = 0 ;
20892 PyObject * obj2 = 0 ;
20893 PyObject * obj3 = 0 ;
20894 PyObject * obj4 = 0 ;
20895 PyObject * obj5 = 0 ;
20896 PyObject * obj6 = 0 ;
20897 char * kwnames[] = {
20898 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20899 };
20900
20901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20902 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20903 if (!SWIG_IsOK(res1)) {
20904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_Create" "', expected argument " "1"" of type '" "wxNotebook *""'");
20905 }
20906 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20907 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20908 if (!SWIG_IsOK(res2)) {
20909 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Notebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20910 }
20911 arg2 = reinterpret_cast< wxWindow * >(argp2);
20912 if (obj2) {
20913 ecode3 = SWIG_AsVal_int(obj2, &val3);
20914 if (!SWIG_IsOK(ecode3)) {
20915 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_Create" "', expected argument " "3"" of type '" "int""'");
20916 }
20917 arg3 = static_cast< int >(val3);
20918 }
20919 if (obj3) {
20920 {
20921 arg4 = &temp4;
20922 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
20923 }
20924 }
20925 if (obj4) {
20926 {
20927 arg5 = &temp5;
20928 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
20929 }
20930 }
20931 if (obj5) {
20932 ecode6 = SWIG_AsVal_long(obj5, &val6);
20933 if (!SWIG_IsOK(ecode6)) {
20934 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Notebook_Create" "', expected argument " "6"" of type '" "long""'");
20935 }
20936 arg6 = static_cast< long >(val6);
20937 }
20938 if (obj6) {
20939 {
20940 arg7 = wxString_in_helper(obj6);
20941 if (arg7 == NULL) SWIG_fail;
20942 temp7 = true;
20943 }
20944 }
20945 {
20946 PyThreadState* __tstate = wxPyBeginAllowThreads();
20947 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20948 wxPyEndAllowThreads(__tstate);
20949 if (PyErr_Occurred()) SWIG_fail;
20950 }
20951 {
20952 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20953 }
20954 {
20955 if (temp7)
20956 delete arg7;
20957 }
20958 return resultobj;
20959 fail:
20960 {
20961 if (temp7)
20962 delete arg7;
20963 }
20964 return NULL;
20965 }
20966
20967
20968 SWIGINTERN PyObject *_wrap_Notebook_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20969 PyObject *resultobj = 0;
20970 wxNotebook *arg1 = (wxNotebook *) 0 ;
20971 int result;
20972 void *argp1 = 0 ;
20973 int res1 = 0 ;
20974 PyObject *swig_obj[1] ;
20975
20976 if (!args) SWIG_fail;
20977 swig_obj[0] = args;
20978 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20979 if (!SWIG_IsOK(res1)) {
20980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetRowCount" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20981 }
20982 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20983 {
20984 PyThreadState* __tstate = wxPyBeginAllowThreads();
20985 result = (int)((wxNotebook const *)arg1)->GetRowCount();
20986 wxPyEndAllowThreads(__tstate);
20987 if (PyErr_Occurred()) SWIG_fail;
20988 }
20989 resultobj = SWIG_From_int(static_cast< int >(result));
20990 return resultobj;
20991 fail:
20992 return NULL;
20993 }
20994
20995
20996 SWIGINTERN PyObject *_wrap_Notebook_SetPadding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20997 PyObject *resultobj = 0;
20998 wxNotebook *arg1 = (wxNotebook *) 0 ;
20999 wxSize *arg2 = 0 ;
21000 void *argp1 = 0 ;
21001 int res1 = 0 ;
21002 wxSize temp2 ;
21003 PyObject * obj0 = 0 ;
21004 PyObject * obj1 = 0 ;
21005 char * kwnames[] = {
21006 (char *) "self",(char *) "padding", NULL
21007 };
21008
21009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) SWIG_fail;
21010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
21011 if (!SWIG_IsOK(res1)) {
21012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetPadding" "', expected argument " "1"" of type '" "wxNotebook *""'");
21013 }
21014 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21015 {
21016 arg2 = &temp2;
21017 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
21018 }
21019 {
21020 PyThreadState* __tstate = wxPyBeginAllowThreads();
21021 (arg1)->SetPadding((wxSize const &)*arg2);
21022 wxPyEndAllowThreads(__tstate);
21023 if (PyErr_Occurred()) SWIG_fail;
21024 }
21025 resultobj = SWIG_Py_Void();
21026 return resultobj;
21027 fail:
21028 return NULL;
21029 }
21030
21031
21032 SWIGINTERN PyObject *_wrap_Notebook_SetTabSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21033 PyObject *resultobj = 0;
21034 wxNotebook *arg1 = (wxNotebook *) 0 ;
21035 wxSize *arg2 = 0 ;
21036 void *argp1 = 0 ;
21037 int res1 = 0 ;
21038 wxSize temp2 ;
21039 PyObject * obj0 = 0 ;
21040 PyObject * obj1 = 0 ;
21041 char * kwnames[] = {
21042 (char *) "self",(char *) "sz", NULL
21043 };
21044
21045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) SWIG_fail;
21046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
21047 if (!SWIG_IsOK(res1)) {
21048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetTabSize" "', expected argument " "1"" of type '" "wxNotebook *""'");
21049 }
21050 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21051 {
21052 arg2 = &temp2;
21053 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
21054 }
21055 {
21056 PyThreadState* __tstate = wxPyBeginAllowThreads();
21057 (arg1)->SetTabSize((wxSize const &)*arg2);
21058 wxPyEndAllowThreads(__tstate);
21059 if (PyErr_Occurred()) SWIG_fail;
21060 }
21061 resultobj = SWIG_Py_Void();
21062 return resultobj;
21063 fail:
21064 return NULL;
21065 }
21066
21067
21068 SWIGINTERN PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21069 PyObject *resultobj = 0;
21070 wxNotebook *arg1 = (wxNotebook *) 0 ;
21071 wxColour result;
21072 void *argp1 = 0 ;
21073 int res1 = 0 ;
21074 PyObject *swig_obj[1] ;
21075
21076 if (!args) SWIG_fail;
21077 swig_obj[0] = args;
21078 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
21079 if (!SWIG_IsOK(res1)) {
21080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetThemeBackgroundColour" "', expected argument " "1"" of type '" "wxNotebook const *""'");
21081 }
21082 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21083 {
21084 PyThreadState* __tstate = wxPyBeginAllowThreads();
21085 result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour();
21086 wxPyEndAllowThreads(__tstate);
21087 if (PyErr_Occurred()) SWIG_fail;
21088 }
21089 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
21090 return resultobj;
21091 fail:
21092 return NULL;
21093 }
21094
21095
21096 SWIGINTERN PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21097 PyObject *resultobj = 0;
21098 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
21099 SwigValueWrapper<wxVisualAttributes > result;
21100 int val1 ;
21101 int ecode1 = 0 ;
21102 PyObject * obj0 = 0 ;
21103 char * kwnames[] = {
21104 (char *) "variant", NULL
21105 };
21106
21107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
21108 if (obj0) {
21109 ecode1 = SWIG_AsVal_int(obj0, &val1);
21110 if (!SWIG_IsOK(ecode1)) {
21111 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Notebook_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
21112 }
21113 arg1 = static_cast< wxWindowVariant >(val1);
21114 }
21115 {
21116 if (!wxPyCheckForApp()) SWIG_fail;
21117 PyThreadState* __tstate = wxPyBeginAllowThreads();
21118 result = wxNotebook::GetClassDefaultAttributes(arg1);
21119 wxPyEndAllowThreads(__tstate);
21120 if (PyErr_Occurred()) SWIG_fail;
21121 }
21122 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
21123 return resultobj;
21124 fail:
21125 return NULL;
21126 }
21127
21128
21129 SWIGINTERN PyObject *_wrap_Notebook_SendPageChangingEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21130 PyObject *resultobj = 0;
21131 wxNotebook *arg1 = (wxNotebook *) 0 ;
21132 int arg2 ;
21133 bool result;
21134 void *argp1 = 0 ;
21135 int res1 = 0 ;
21136 int val2 ;
21137 int ecode2 = 0 ;
21138 PyObject * obj0 = 0 ;
21139 PyObject * obj1 = 0 ;
21140 char * kwnames[] = {
21141 (char *) "self",(char *) "nPage", NULL
21142 };
21143
21144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SendPageChangingEvent",kwnames,&obj0,&obj1)) SWIG_fail;
21145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
21146 if (!SWIG_IsOK(res1)) {
21147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SendPageChangingEvent" "', expected argument " "1"" of type '" "wxNotebook *""'");
21148 }
21149 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21150 ecode2 = SWIG_AsVal_int(obj1, &val2);
21151 if (!SWIG_IsOK(ecode2)) {
21152 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Notebook_SendPageChangingEvent" "', expected argument " "2"" of type '" "int""'");
21153 }
21154 arg2 = static_cast< int >(val2);
21155 {
21156 PyThreadState* __tstate = wxPyBeginAllowThreads();
21157 result = (bool)(arg1)->SendPageChangingEvent(arg2);
21158 wxPyEndAllowThreads(__tstate);
21159 if (PyErr_Occurred()) SWIG_fail;
21160 }
21161 {
21162 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21163 }
21164 return resultobj;
21165 fail:
21166 return NULL;
21167 }
21168
21169
21170 SWIGINTERN PyObject *_wrap_Notebook_SendPageChangedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21171 PyObject *resultobj = 0;
21172 wxNotebook *arg1 = (wxNotebook *) 0 ;
21173 int arg2 ;
21174 int arg3 = (int) -1 ;
21175 void *argp1 = 0 ;
21176 int res1 = 0 ;
21177 int val2 ;
21178 int ecode2 = 0 ;
21179 int val3 ;
21180 int ecode3 = 0 ;
21181 PyObject * obj0 = 0 ;
21182 PyObject * obj1 = 0 ;
21183 PyObject * obj2 = 0 ;
21184 char * kwnames[] = {
21185 (char *) "self",(char *) "nPageOld",(char *) "nPageNew", NULL
21186 };
21187
21188 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Notebook_SendPageChangedEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21189 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
21190 if (!SWIG_IsOK(res1)) {
21191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "1"" of type '" "wxNotebook *""'");
21192 }
21193 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21194 ecode2 = SWIG_AsVal_int(obj1, &val2);
21195 if (!SWIG_IsOK(ecode2)) {
21196 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "2"" of type '" "int""'");
21197 }
21198 arg2 = static_cast< int >(val2);
21199 if (obj2) {
21200 ecode3 = SWIG_AsVal_int(obj2, &val3);
21201 if (!SWIG_IsOK(ecode3)) {
21202 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "3"" of type '" "int""'");
21203 }
21204 arg3 = static_cast< int >(val3);
21205 }
21206 {
21207 PyThreadState* __tstate = wxPyBeginAllowThreads();
21208 (arg1)->SendPageChangedEvent(arg2,arg3);
21209 wxPyEndAllowThreads(__tstate);
21210 if (PyErr_Occurred()) SWIG_fail;
21211 }
21212 resultobj = SWIG_Py_Void();
21213 return resultobj;
21214 fail:
21215 return NULL;
21216 }
21217
21218
21219 SWIGINTERN PyObject *Notebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21220 PyObject *obj;
21221 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21222 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebook, SWIG_NewClientData(obj));
21223 return SWIG_Py_Void();
21224 }
21225
21226 SWIGINTERN PyObject *Notebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21227 return SWIG_Python_InitShadowInstance(args);
21228 }
21229
21230 SWIGINTERN PyObject *_wrap_new_NotebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21231 PyObject *resultobj = 0;
21232 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21233 int arg2 = (int) 0 ;
21234 int arg3 = (int) -1 ;
21235 int arg4 = (int) -1 ;
21236 wxNotebookEvent *result = 0 ;
21237 int val1 ;
21238 int ecode1 = 0 ;
21239 int val2 ;
21240 int ecode2 = 0 ;
21241 int val3 ;
21242 int ecode3 = 0 ;
21243 int val4 ;
21244 int ecode4 = 0 ;
21245 PyObject * obj0 = 0 ;
21246 PyObject * obj1 = 0 ;
21247 PyObject * obj2 = 0 ;
21248 PyObject * obj3 = 0 ;
21249 char * kwnames[] = {
21250 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21251 };
21252
21253 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21254 if (obj0) {
21255 ecode1 = SWIG_AsVal_int(obj0, &val1);
21256 if (!SWIG_IsOK(ecode1)) {
21257 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NotebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21258 }
21259 arg1 = static_cast< wxEventType >(val1);
21260 }
21261 if (obj1) {
21262 ecode2 = SWIG_AsVal_int(obj1, &val2);
21263 if (!SWIG_IsOK(ecode2)) {
21264 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NotebookEvent" "', expected argument " "2"" of type '" "int""'");
21265 }
21266 arg2 = static_cast< int >(val2);
21267 }
21268 if (obj2) {
21269 ecode3 = SWIG_AsVal_int(obj2, &val3);
21270 if (!SWIG_IsOK(ecode3)) {
21271 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NotebookEvent" "', expected argument " "3"" of type '" "int""'");
21272 }
21273 arg3 = static_cast< int >(val3);
21274 }
21275 if (obj3) {
21276 ecode4 = SWIG_AsVal_int(obj3, &val4);
21277 if (!SWIG_IsOK(ecode4)) {
21278 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NotebookEvent" "', expected argument " "4"" of type '" "int""'");
21279 }
21280 arg4 = static_cast< int >(val4);
21281 }
21282 {
21283 PyThreadState* __tstate = wxPyBeginAllowThreads();
21284 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
21285 wxPyEndAllowThreads(__tstate);
21286 if (PyErr_Occurred()) SWIG_fail;
21287 }
21288 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebookEvent, SWIG_POINTER_NEW | 0 );
21289 return resultobj;
21290 fail:
21291 return NULL;
21292 }
21293
21294
21295 SWIGINTERN PyObject *NotebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21296 PyObject *obj;
21297 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21298 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebookEvent, SWIG_NewClientData(obj));
21299 return SWIG_Py_Void();
21300 }
21301
21302 SWIGINTERN PyObject *NotebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21303 return SWIG_Python_InitShadowInstance(args);
21304 }
21305
21306 SWIGINTERN PyObject *_wrap_new_Listbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21307 PyObject *resultobj = 0;
21308 wxWindow *arg1 = (wxWindow *) 0 ;
21309 int arg2 = (int) -1 ;
21310 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21311 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21312 wxSize const &arg4_defvalue = wxDefaultSize ;
21313 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21314 long arg5 = (long) 0 ;
21315 wxString const &arg6_defvalue = wxPyEmptyString ;
21316 wxString *arg6 = (wxString *) &arg6_defvalue ;
21317 wxListbook *result = 0 ;
21318 void *argp1 = 0 ;
21319 int res1 = 0 ;
21320 int val2 ;
21321 int ecode2 = 0 ;
21322 wxPoint temp3 ;
21323 wxSize temp4 ;
21324 long val5 ;
21325 int ecode5 = 0 ;
21326 bool temp6 = false ;
21327 PyObject * obj0 = 0 ;
21328 PyObject * obj1 = 0 ;
21329 PyObject * obj2 = 0 ;
21330 PyObject * obj3 = 0 ;
21331 PyObject * obj4 = 0 ;
21332 PyObject * obj5 = 0 ;
21333 char * kwnames[] = {
21334 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21335 };
21336
21337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21339 if (!SWIG_IsOK(res1)) {
21340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Listbook" "', expected argument " "1"" of type '" "wxWindow *""'");
21341 }
21342 arg1 = reinterpret_cast< wxWindow * >(argp1);
21343 if (obj1) {
21344 ecode2 = SWIG_AsVal_int(obj1, &val2);
21345 if (!SWIG_IsOK(ecode2)) {
21346 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Listbook" "', expected argument " "2"" of type '" "int""'");
21347 }
21348 arg2 = static_cast< int >(val2);
21349 }
21350 if (obj2) {
21351 {
21352 arg3 = &temp3;
21353 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21354 }
21355 }
21356 if (obj3) {
21357 {
21358 arg4 = &temp4;
21359 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21360 }
21361 }
21362 if (obj4) {
21363 ecode5 = SWIG_AsVal_long(obj4, &val5);
21364 if (!SWIG_IsOK(ecode5)) {
21365 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Listbook" "', expected argument " "5"" of type '" "long""'");
21366 }
21367 arg5 = static_cast< long >(val5);
21368 }
21369 if (obj5) {
21370 {
21371 arg6 = wxString_in_helper(obj5);
21372 if (arg6 == NULL) SWIG_fail;
21373 temp6 = true;
21374 }
21375 }
21376 {
21377 if (!wxPyCheckForApp()) SWIG_fail;
21378 PyThreadState* __tstate = wxPyBeginAllowThreads();
21379 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21380 wxPyEndAllowThreads(__tstate);
21381 if (PyErr_Occurred()) SWIG_fail;
21382 }
21383 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_NEW | 0 );
21384 {
21385 if (temp6)
21386 delete arg6;
21387 }
21388 return resultobj;
21389 fail:
21390 {
21391 if (temp6)
21392 delete arg6;
21393 }
21394 return NULL;
21395 }
21396
21397
21398 SWIGINTERN PyObject *_wrap_new_PreListbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21399 PyObject *resultobj = 0;
21400 wxListbook *result = 0 ;
21401
21402 if (!SWIG_Python_UnpackTuple(args,"new_PreListbook",0,0,0)) SWIG_fail;
21403 {
21404 if (!wxPyCheckForApp()) SWIG_fail;
21405 PyThreadState* __tstate = wxPyBeginAllowThreads();
21406 result = (wxListbook *)new wxListbook();
21407 wxPyEndAllowThreads(__tstate);
21408 if (PyErr_Occurred()) SWIG_fail;
21409 }
21410 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_OWN | 0 );
21411 return resultobj;
21412 fail:
21413 return NULL;
21414 }
21415
21416
21417 SWIGINTERN PyObject *_wrap_Listbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21418 PyObject *resultobj = 0;
21419 wxListbook *arg1 = (wxListbook *) 0 ;
21420 wxWindow *arg2 = (wxWindow *) 0 ;
21421 int arg3 = (int) -1 ;
21422 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21423 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21424 wxSize const &arg5_defvalue = wxDefaultSize ;
21425 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21426 long arg6 = (long) 0 ;
21427 wxString const &arg7_defvalue = wxPyEmptyString ;
21428 wxString *arg7 = (wxString *) &arg7_defvalue ;
21429 bool result;
21430 void *argp1 = 0 ;
21431 int res1 = 0 ;
21432 void *argp2 = 0 ;
21433 int res2 = 0 ;
21434 int val3 ;
21435 int ecode3 = 0 ;
21436 wxPoint temp4 ;
21437 wxSize temp5 ;
21438 long val6 ;
21439 int ecode6 = 0 ;
21440 bool temp7 = false ;
21441 PyObject * obj0 = 0 ;
21442 PyObject * obj1 = 0 ;
21443 PyObject * obj2 = 0 ;
21444 PyObject * obj3 = 0 ;
21445 PyObject * obj4 = 0 ;
21446 PyObject * obj5 = 0 ;
21447 PyObject * obj6 = 0 ;
21448 char * kwnames[] = {
21449 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21450 };
21451
21452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21454 if (!SWIG_IsOK(res1)) {
21455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_Create" "', expected argument " "1"" of type '" "wxListbook *""'");
21456 }
21457 arg1 = reinterpret_cast< wxListbook * >(argp1);
21458 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21459 if (!SWIG_IsOK(res2)) {
21460 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Listbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21461 }
21462 arg2 = reinterpret_cast< wxWindow * >(argp2);
21463 if (obj2) {
21464 ecode3 = SWIG_AsVal_int(obj2, &val3);
21465 if (!SWIG_IsOK(ecode3)) {
21466 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Listbook_Create" "', expected argument " "3"" of type '" "int""'");
21467 }
21468 arg3 = static_cast< int >(val3);
21469 }
21470 if (obj3) {
21471 {
21472 arg4 = &temp4;
21473 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21474 }
21475 }
21476 if (obj4) {
21477 {
21478 arg5 = &temp5;
21479 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21480 }
21481 }
21482 if (obj5) {
21483 ecode6 = SWIG_AsVal_long(obj5, &val6);
21484 if (!SWIG_IsOK(ecode6)) {
21485 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Listbook_Create" "', expected argument " "6"" of type '" "long""'");
21486 }
21487 arg6 = static_cast< long >(val6);
21488 }
21489 if (obj6) {
21490 {
21491 arg7 = wxString_in_helper(obj6);
21492 if (arg7 == NULL) SWIG_fail;
21493 temp7 = true;
21494 }
21495 }
21496 {
21497 PyThreadState* __tstate = wxPyBeginAllowThreads();
21498 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21499 wxPyEndAllowThreads(__tstate);
21500 if (PyErr_Occurred()) SWIG_fail;
21501 }
21502 {
21503 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21504 }
21505 {
21506 if (temp7)
21507 delete arg7;
21508 }
21509 return resultobj;
21510 fail:
21511 {
21512 if (temp7)
21513 delete arg7;
21514 }
21515 return NULL;
21516 }
21517
21518
21519 SWIGINTERN PyObject *_wrap_Listbook_GetListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21520 PyObject *resultobj = 0;
21521 wxListbook *arg1 = (wxListbook *) 0 ;
21522 wxListView *result = 0 ;
21523 void *argp1 = 0 ;
21524 int res1 = 0 ;
21525 PyObject *swig_obj[1] ;
21526
21527 if (!args) SWIG_fail;
21528 swig_obj[0] = args;
21529 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21530 if (!SWIG_IsOK(res1)) {
21531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_GetListView" "', expected argument " "1"" of type '" "wxListbook *""'");
21532 }
21533 arg1 = reinterpret_cast< wxListbook * >(argp1);
21534 {
21535 PyThreadState* __tstate = wxPyBeginAllowThreads();
21536 result = (wxListView *)(arg1)->GetListView();
21537 wxPyEndAllowThreads(__tstate);
21538 if (PyErr_Occurred()) SWIG_fail;
21539 }
21540 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, 0 | 0 );
21541 return resultobj;
21542 fail:
21543 return NULL;
21544 }
21545
21546
21547 SWIGINTERN PyObject *Listbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21548 PyObject *obj;
21549 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21550 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbook, SWIG_NewClientData(obj));
21551 return SWIG_Py_Void();
21552 }
21553
21554 SWIGINTERN PyObject *Listbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21555 return SWIG_Python_InitShadowInstance(args);
21556 }
21557
21558 SWIGINTERN PyObject *_wrap_new_ListbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21559 PyObject *resultobj = 0;
21560 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21561 int arg2 = (int) 0 ;
21562 int arg3 = (int) -1 ;
21563 int arg4 = (int) -1 ;
21564 wxListbookEvent *result = 0 ;
21565 int val1 ;
21566 int ecode1 = 0 ;
21567 int val2 ;
21568 int ecode2 = 0 ;
21569 int val3 ;
21570 int ecode3 = 0 ;
21571 int val4 ;
21572 int ecode4 = 0 ;
21573 PyObject * obj0 = 0 ;
21574 PyObject * obj1 = 0 ;
21575 PyObject * obj2 = 0 ;
21576 PyObject * obj3 = 0 ;
21577 char * kwnames[] = {
21578 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21579 };
21580
21581 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21582 if (obj0) {
21583 ecode1 = SWIG_AsVal_int(obj0, &val1);
21584 if (!SWIG_IsOK(ecode1)) {
21585 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21586 }
21587 arg1 = static_cast< wxEventType >(val1);
21588 }
21589 if (obj1) {
21590 ecode2 = SWIG_AsVal_int(obj1, &val2);
21591 if (!SWIG_IsOK(ecode2)) {
21592 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListbookEvent" "', expected argument " "2"" of type '" "int""'");
21593 }
21594 arg2 = static_cast< int >(val2);
21595 }
21596 if (obj2) {
21597 ecode3 = SWIG_AsVal_int(obj2, &val3);
21598 if (!SWIG_IsOK(ecode3)) {
21599 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ListbookEvent" "', expected argument " "3"" of type '" "int""'");
21600 }
21601 arg3 = static_cast< int >(val3);
21602 }
21603 if (obj3) {
21604 ecode4 = SWIG_AsVal_int(obj3, &val4);
21605 if (!SWIG_IsOK(ecode4)) {
21606 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ListbookEvent" "', expected argument " "4"" of type '" "int""'");
21607 }
21608 arg4 = static_cast< int >(val4);
21609 }
21610 {
21611 PyThreadState* __tstate = wxPyBeginAllowThreads();
21612 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
21613 wxPyEndAllowThreads(__tstate);
21614 if (PyErr_Occurred()) SWIG_fail;
21615 }
21616 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbookEvent, SWIG_POINTER_NEW | 0 );
21617 return resultobj;
21618 fail:
21619 return NULL;
21620 }
21621
21622
21623 SWIGINTERN PyObject *ListbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21624 PyObject *obj;
21625 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21626 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbookEvent, SWIG_NewClientData(obj));
21627 return SWIG_Py_Void();
21628 }
21629
21630 SWIGINTERN PyObject *ListbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21631 return SWIG_Python_InitShadowInstance(args);
21632 }
21633
21634 SWIGINTERN PyObject *_wrap_new_Choicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21635 PyObject *resultobj = 0;
21636 wxWindow *arg1 = (wxWindow *) 0 ;
21637 int arg2 ;
21638 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21639 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21640 wxSize const &arg4_defvalue = wxDefaultSize ;
21641 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21642 long arg5 = (long) 0 ;
21643 wxString const &arg6_defvalue = wxPyEmptyString ;
21644 wxString *arg6 = (wxString *) &arg6_defvalue ;
21645 wxChoicebook *result = 0 ;
21646 void *argp1 = 0 ;
21647 int res1 = 0 ;
21648 int val2 ;
21649 int ecode2 = 0 ;
21650 wxPoint temp3 ;
21651 wxSize temp4 ;
21652 long val5 ;
21653 int ecode5 = 0 ;
21654 bool temp6 = false ;
21655 PyObject * obj0 = 0 ;
21656 PyObject * obj1 = 0 ;
21657 PyObject * obj2 = 0 ;
21658 PyObject * obj3 = 0 ;
21659 PyObject * obj4 = 0 ;
21660 PyObject * obj5 = 0 ;
21661 char * kwnames[] = {
21662 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21663 };
21664
21665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21667 if (!SWIG_IsOK(res1)) {
21668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choicebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21669 }
21670 arg1 = reinterpret_cast< wxWindow * >(argp1);
21671 ecode2 = SWIG_AsVal_int(obj1, &val2);
21672 if (!SWIG_IsOK(ecode2)) {
21673 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choicebook" "', expected argument " "2"" of type '" "int""'");
21674 }
21675 arg2 = static_cast< int >(val2);
21676 if (obj2) {
21677 {
21678 arg3 = &temp3;
21679 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21680 }
21681 }
21682 if (obj3) {
21683 {
21684 arg4 = &temp4;
21685 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21686 }
21687 }
21688 if (obj4) {
21689 ecode5 = SWIG_AsVal_long(obj4, &val5);
21690 if (!SWIG_IsOK(ecode5)) {
21691 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Choicebook" "', expected argument " "5"" of type '" "long""'");
21692 }
21693 arg5 = static_cast< long >(val5);
21694 }
21695 if (obj5) {
21696 {
21697 arg6 = wxString_in_helper(obj5);
21698 if (arg6 == NULL) SWIG_fail;
21699 temp6 = true;
21700 }
21701 }
21702 {
21703 if (!wxPyCheckForApp()) SWIG_fail;
21704 PyThreadState* __tstate = wxPyBeginAllowThreads();
21705 result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21706 wxPyEndAllowThreads(__tstate);
21707 if (PyErr_Occurred()) SWIG_fail;
21708 }
21709 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_NEW | 0 );
21710 {
21711 if (temp6)
21712 delete arg6;
21713 }
21714 return resultobj;
21715 fail:
21716 {
21717 if (temp6)
21718 delete arg6;
21719 }
21720 return NULL;
21721 }
21722
21723
21724 SWIGINTERN PyObject *_wrap_new_PreChoicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21725 PyObject *resultobj = 0;
21726 wxChoicebook *result = 0 ;
21727
21728 if (!SWIG_Python_UnpackTuple(args,"new_PreChoicebook",0,0,0)) SWIG_fail;
21729 {
21730 if (!wxPyCheckForApp()) SWIG_fail;
21731 PyThreadState* __tstate = wxPyBeginAllowThreads();
21732 result = (wxChoicebook *)new wxChoicebook();
21733 wxPyEndAllowThreads(__tstate);
21734 if (PyErr_Occurred()) SWIG_fail;
21735 }
21736 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_OWN | 0 );
21737 return resultobj;
21738 fail:
21739 return NULL;
21740 }
21741
21742
21743 SWIGINTERN PyObject *_wrap_Choicebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21744 PyObject *resultobj = 0;
21745 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21746 wxWindow *arg2 = (wxWindow *) 0 ;
21747 int arg3 ;
21748 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21749 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21750 wxSize const &arg5_defvalue = wxDefaultSize ;
21751 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21752 long arg6 = (long) 0 ;
21753 wxString const &arg7_defvalue = wxPyEmptyString ;
21754 wxString *arg7 = (wxString *) &arg7_defvalue ;
21755 bool result;
21756 void *argp1 = 0 ;
21757 int res1 = 0 ;
21758 void *argp2 = 0 ;
21759 int res2 = 0 ;
21760 int val3 ;
21761 int ecode3 = 0 ;
21762 wxPoint temp4 ;
21763 wxSize temp5 ;
21764 long val6 ;
21765 int ecode6 = 0 ;
21766 bool temp7 = false ;
21767 PyObject * obj0 = 0 ;
21768 PyObject * obj1 = 0 ;
21769 PyObject * obj2 = 0 ;
21770 PyObject * obj3 = 0 ;
21771 PyObject * obj4 = 0 ;
21772 PyObject * obj5 = 0 ;
21773 PyObject * obj6 = 0 ;
21774 char * kwnames[] = {
21775 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21776 };
21777
21778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21780 if (!SWIG_IsOK(res1)) {
21781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_Create" "', expected argument " "1"" of type '" "wxChoicebook *""'");
21782 }
21783 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21784 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21785 if (!SWIG_IsOK(res2)) {
21786 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choicebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21787 }
21788 arg2 = reinterpret_cast< wxWindow * >(argp2);
21789 ecode3 = SWIG_AsVal_int(obj2, &val3);
21790 if (!SWIG_IsOK(ecode3)) {
21791 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choicebook_Create" "', expected argument " "3"" of type '" "int""'");
21792 }
21793 arg3 = static_cast< int >(val3);
21794 if (obj3) {
21795 {
21796 arg4 = &temp4;
21797 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21798 }
21799 }
21800 if (obj4) {
21801 {
21802 arg5 = &temp5;
21803 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21804 }
21805 }
21806 if (obj5) {
21807 ecode6 = SWIG_AsVal_long(obj5, &val6);
21808 if (!SWIG_IsOK(ecode6)) {
21809 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Choicebook_Create" "', expected argument " "6"" of type '" "long""'");
21810 }
21811 arg6 = static_cast< long >(val6);
21812 }
21813 if (obj6) {
21814 {
21815 arg7 = wxString_in_helper(obj6);
21816 if (arg7 == NULL) SWIG_fail;
21817 temp7 = true;
21818 }
21819 }
21820 {
21821 PyThreadState* __tstate = wxPyBeginAllowThreads();
21822 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21823 wxPyEndAllowThreads(__tstate);
21824 if (PyErr_Occurred()) SWIG_fail;
21825 }
21826 {
21827 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21828 }
21829 {
21830 if (temp7)
21831 delete arg7;
21832 }
21833 return resultobj;
21834 fail:
21835 {
21836 if (temp7)
21837 delete arg7;
21838 }
21839 return NULL;
21840 }
21841
21842
21843 SWIGINTERN PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21844 PyObject *resultobj = 0;
21845 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21846 wxChoice *result = 0 ;
21847 void *argp1 = 0 ;
21848 int res1 = 0 ;
21849 PyObject *swig_obj[1] ;
21850
21851 if (!args) SWIG_fail;
21852 swig_obj[0] = args;
21853 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21854 if (!SWIG_IsOK(res1)) {
21855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_GetChoiceCtrl" "', expected argument " "1"" of type '" "wxChoicebook const *""'");
21856 }
21857 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21858 {
21859 PyThreadState* __tstate = wxPyBeginAllowThreads();
21860 result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl();
21861 wxPyEndAllowThreads(__tstate);
21862 if (PyErr_Occurred()) SWIG_fail;
21863 }
21864 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, 0 | 0 );
21865 return resultobj;
21866 fail:
21867 return NULL;
21868 }
21869
21870
21871 SWIGINTERN PyObject *Choicebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21872 PyObject *obj;
21873 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21874 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebook, SWIG_NewClientData(obj));
21875 return SWIG_Py_Void();
21876 }
21877
21878 SWIGINTERN PyObject *Choicebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21879 return SWIG_Python_InitShadowInstance(args);
21880 }
21881
21882 SWIGINTERN PyObject *_wrap_new_ChoicebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21883 PyObject *resultobj = 0;
21884 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21885 int arg2 = (int) 0 ;
21886 int arg3 = (int) -1 ;
21887 int arg4 = (int) -1 ;
21888 wxChoicebookEvent *result = 0 ;
21889 int val1 ;
21890 int ecode1 = 0 ;
21891 int val2 ;
21892 int ecode2 = 0 ;
21893 int val3 ;
21894 int ecode3 = 0 ;
21895 int val4 ;
21896 int ecode4 = 0 ;
21897 PyObject * obj0 = 0 ;
21898 PyObject * obj1 = 0 ;
21899 PyObject * obj2 = 0 ;
21900 PyObject * obj3 = 0 ;
21901 char * kwnames[] = {
21902 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21903 };
21904
21905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21906 if (obj0) {
21907 ecode1 = SWIG_AsVal_int(obj0, &val1);
21908 if (!SWIG_IsOK(ecode1)) {
21909 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ChoicebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21910 }
21911 arg1 = static_cast< wxEventType >(val1);
21912 }
21913 if (obj1) {
21914 ecode2 = SWIG_AsVal_int(obj1, &val2);
21915 if (!SWIG_IsOK(ecode2)) {
21916 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ChoicebookEvent" "', expected argument " "2"" of type '" "int""'");
21917 }
21918 arg2 = static_cast< int >(val2);
21919 }
21920 if (obj2) {
21921 ecode3 = SWIG_AsVal_int(obj2, &val3);
21922 if (!SWIG_IsOK(ecode3)) {
21923 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ChoicebookEvent" "', expected argument " "3"" of type '" "int""'");
21924 }
21925 arg3 = static_cast< int >(val3);
21926 }
21927 if (obj3) {
21928 ecode4 = SWIG_AsVal_int(obj3, &val4);
21929 if (!SWIG_IsOK(ecode4)) {
21930 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ChoicebookEvent" "', expected argument " "4"" of type '" "int""'");
21931 }
21932 arg4 = static_cast< int >(val4);
21933 }
21934 {
21935 PyThreadState* __tstate = wxPyBeginAllowThreads();
21936 result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4);
21937 wxPyEndAllowThreads(__tstate);
21938 if (PyErr_Occurred()) SWIG_fail;
21939 }
21940 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebookEvent, SWIG_POINTER_NEW | 0 );
21941 return resultobj;
21942 fail:
21943 return NULL;
21944 }
21945
21946
21947 SWIGINTERN PyObject *ChoicebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21948 PyObject *obj;
21949 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21950 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebookEvent, SWIG_NewClientData(obj));
21951 return SWIG_Py_Void();
21952 }
21953
21954 SWIGINTERN PyObject *ChoicebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21955 return SWIG_Python_InitShadowInstance(args);
21956 }
21957
21958 SWIGINTERN PyObject *_wrap_new_Treebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21959 PyObject *resultobj = 0;
21960 wxWindow *arg1 = (wxWindow *) 0 ;
21961 int arg2 ;
21962 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21963 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21964 wxSize const &arg4_defvalue = wxDefaultSize ;
21965 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21966 long arg5 = (long) wxBK_DEFAULT ;
21967 wxString const &arg6_defvalue = wxPyEmptyString ;
21968 wxString *arg6 = (wxString *) &arg6_defvalue ;
21969 wxTreebook *result = 0 ;
21970 void *argp1 = 0 ;
21971 int res1 = 0 ;
21972 int val2 ;
21973 int ecode2 = 0 ;
21974 wxPoint temp3 ;
21975 wxSize temp4 ;
21976 long val5 ;
21977 int ecode5 = 0 ;
21978 bool temp6 = false ;
21979 PyObject * obj0 = 0 ;
21980 PyObject * obj1 = 0 ;
21981 PyObject * obj2 = 0 ;
21982 PyObject * obj3 = 0 ;
21983 PyObject * obj4 = 0 ;
21984 PyObject * obj5 = 0 ;
21985 char * kwnames[] = {
21986 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21987 };
21988
21989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Treebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21990 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21991 if (!SWIG_IsOK(res1)) {
21992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Treebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21993 }
21994 arg1 = reinterpret_cast< wxWindow * >(argp1);
21995 ecode2 = SWIG_AsVal_int(obj1, &val2);
21996 if (!SWIG_IsOK(ecode2)) {
21997 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Treebook" "', expected argument " "2"" of type '" "int""'");
21998 }
21999 arg2 = static_cast< int >(val2);
22000 if (obj2) {
22001 {
22002 arg3 = &temp3;
22003 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
22004 }
22005 }
22006 if (obj3) {
22007 {
22008 arg4 = &temp4;
22009 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
22010 }
22011 }
22012 if (obj4) {
22013 ecode5 = SWIG_AsVal_long(obj4, &val5);
22014 if (!SWIG_IsOK(ecode5)) {
22015 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Treebook" "', expected argument " "5"" of type '" "long""'");
22016 }
22017 arg5 = static_cast< long >(val5);
22018 }
22019 if (obj5) {
22020 {
22021 arg6 = wxString_in_helper(obj5);
22022 if (arg6 == NULL) SWIG_fail;
22023 temp6 = true;
22024 }
22025 }
22026 {
22027 if (!wxPyCheckForApp()) SWIG_fail;
22028 PyThreadState* __tstate = wxPyBeginAllowThreads();
22029 result = (wxTreebook *)new wxTreebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
22030 wxPyEndAllowThreads(__tstate);
22031 if (PyErr_Occurred()) SWIG_fail;
22032 }
22033 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_NEW | 0 );
22034 {
22035 if (temp6)
22036 delete arg6;
22037 }
22038 return resultobj;
22039 fail:
22040 {
22041 if (temp6)
22042 delete arg6;
22043 }
22044 return NULL;
22045 }
22046
22047
22048 SWIGINTERN PyObject *_wrap_new_PreTreebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22049 PyObject *resultobj = 0;
22050 wxTreebook *result = 0 ;
22051
22052 if (!SWIG_Python_UnpackTuple(args,"new_PreTreebook",0,0,0)) SWIG_fail;
22053 {
22054 if (!wxPyCheckForApp()) SWIG_fail;
22055 PyThreadState* __tstate = wxPyBeginAllowThreads();
22056 result = (wxTreebook *)new wxTreebook();
22057 wxPyEndAllowThreads(__tstate);
22058 if (PyErr_Occurred()) SWIG_fail;
22059 }
22060 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_OWN | 0 );
22061 return resultobj;
22062 fail:
22063 return NULL;
22064 }
22065
22066
22067 SWIGINTERN PyObject *_wrap_Treebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22068 PyObject *resultobj = 0;
22069 wxTreebook *arg1 = (wxTreebook *) 0 ;
22070 wxWindow *arg2 = (wxWindow *) 0 ;
22071 int arg3 ;
22072 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22073 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22074 wxSize const &arg5_defvalue = wxDefaultSize ;
22075 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22076 long arg6 = (long) wxBK_DEFAULT ;
22077 wxString const &arg7_defvalue = wxPyEmptyString ;
22078 wxString *arg7 = (wxString *) &arg7_defvalue ;
22079 bool result;
22080 void *argp1 = 0 ;
22081 int res1 = 0 ;
22082 void *argp2 = 0 ;
22083 int res2 = 0 ;
22084 int val3 ;
22085 int ecode3 = 0 ;
22086 wxPoint temp4 ;
22087 wxSize temp5 ;
22088 long val6 ;
22089 int ecode6 = 0 ;
22090 bool temp7 = false ;
22091 PyObject * obj0 = 0 ;
22092 PyObject * obj1 = 0 ;
22093 PyObject * obj2 = 0 ;
22094 PyObject * obj3 = 0 ;
22095 PyObject * obj4 = 0 ;
22096 PyObject * obj5 = 0 ;
22097 PyObject * obj6 = 0 ;
22098 char * kwnames[] = {
22099 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22100 };
22101
22102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Treebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22104 if (!SWIG_IsOK(res1)) {
22105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_Create" "', expected argument " "1"" of type '" "wxTreebook *""'");
22106 }
22107 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22108 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22109 if (!SWIG_IsOK(res2)) {
22110 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
22111 }
22112 arg2 = reinterpret_cast< wxWindow * >(argp2);
22113 ecode3 = SWIG_AsVal_int(obj2, &val3);
22114 if (!SWIG_IsOK(ecode3)) {
22115 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_Create" "', expected argument " "3"" of type '" "int""'");
22116 }
22117 arg3 = static_cast< int >(val3);
22118 if (obj3) {
22119 {
22120 arg4 = &temp4;
22121 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
22122 }
22123 }
22124 if (obj4) {
22125 {
22126 arg5 = &temp5;
22127 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
22128 }
22129 }
22130 if (obj5) {
22131 ecode6 = SWIG_AsVal_long(obj5, &val6);
22132 if (!SWIG_IsOK(ecode6)) {
22133 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_Create" "', expected argument " "6"" of type '" "long""'");
22134 }
22135 arg6 = static_cast< long >(val6);
22136 }
22137 if (obj6) {
22138 {
22139 arg7 = wxString_in_helper(obj6);
22140 if (arg7 == NULL) SWIG_fail;
22141 temp7 = true;
22142 }
22143 }
22144 {
22145 PyThreadState* __tstate = wxPyBeginAllowThreads();
22146 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22147 wxPyEndAllowThreads(__tstate);
22148 if (PyErr_Occurred()) SWIG_fail;
22149 }
22150 {
22151 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22152 }
22153 {
22154 if (temp7)
22155 delete arg7;
22156 }
22157 return resultobj;
22158 fail:
22159 {
22160 if (temp7)
22161 delete arg7;
22162 }
22163 return NULL;
22164 }
22165
22166
22167 SWIGINTERN PyObject *_wrap_Treebook_InsertSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22168 PyObject *resultobj = 0;
22169 wxTreebook *arg1 = (wxTreebook *) 0 ;
22170 size_t arg2 ;
22171 wxWindow *arg3 = (wxWindow *) 0 ;
22172 wxString *arg4 = 0 ;
22173 bool arg5 = (bool) false ;
22174 int arg6 = (int) wxNOT_FOUND ;
22175 bool result;
22176 void *argp1 = 0 ;
22177 int res1 = 0 ;
22178 size_t val2 ;
22179 int ecode2 = 0 ;
22180 void *argp3 = 0 ;
22181 int res3 = 0 ;
22182 bool temp4 = false ;
22183 bool val5 ;
22184 int ecode5 = 0 ;
22185 int val6 ;
22186 int ecode6 = 0 ;
22187 PyObject * obj0 = 0 ;
22188 PyObject * obj1 = 0 ;
22189 PyObject * obj2 = 0 ;
22190 PyObject * obj3 = 0 ;
22191 PyObject * obj4 = 0 ;
22192 PyObject * obj5 = 0 ;
22193 char * kwnames[] = {
22194 (char *) "self",(char *) "pos",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
22195 };
22196
22197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Treebook_InsertSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22199 if (!SWIG_IsOK(res1)) {
22200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_InsertSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
22201 }
22202 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22203 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22204 if (!SWIG_IsOK(ecode2)) {
22205 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_InsertSubPage" "', expected argument " "2"" of type '" "size_t""'");
22206 }
22207 arg2 = static_cast< size_t >(val2);
22208 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
22209 if (!SWIG_IsOK(res3)) {
22210 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Treebook_InsertSubPage" "', expected argument " "3"" of type '" "wxWindow *""'");
22211 }
22212 arg3 = reinterpret_cast< wxWindow * >(argp3);
22213 {
22214 arg4 = wxString_in_helper(obj3);
22215 if (arg4 == NULL) SWIG_fail;
22216 temp4 = true;
22217 }
22218 if (obj4) {
22219 ecode5 = SWIG_AsVal_bool(obj4, &val5);
22220 if (!SWIG_IsOK(ecode5)) {
22221 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_InsertSubPage" "', expected argument " "5"" of type '" "bool""'");
22222 }
22223 arg5 = static_cast< bool >(val5);
22224 }
22225 if (obj5) {
22226 ecode6 = SWIG_AsVal_int(obj5, &val6);
22227 if (!SWIG_IsOK(ecode6)) {
22228 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_InsertSubPage" "', expected argument " "6"" of type '" "int""'");
22229 }
22230 arg6 = static_cast< int >(val6);
22231 }
22232 {
22233 PyThreadState* __tstate = wxPyBeginAllowThreads();
22234 result = (bool)(arg1)->InsertSubPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
22235 wxPyEndAllowThreads(__tstate);
22236 if (PyErr_Occurred()) SWIG_fail;
22237 }
22238 {
22239 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22240 }
22241 {
22242 if (temp4)
22243 delete arg4;
22244 }
22245 return resultobj;
22246 fail:
22247 {
22248 if (temp4)
22249 delete arg4;
22250 }
22251 return NULL;
22252 }
22253
22254
22255 SWIGINTERN PyObject *_wrap_Treebook_AddSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22256 PyObject *resultobj = 0;
22257 wxTreebook *arg1 = (wxTreebook *) 0 ;
22258 wxWindow *arg2 = (wxWindow *) 0 ;
22259 wxString *arg3 = 0 ;
22260 bool arg4 = (bool) false ;
22261 int arg5 = (int) wxNOT_FOUND ;
22262 bool result;
22263 void *argp1 = 0 ;
22264 int res1 = 0 ;
22265 void *argp2 = 0 ;
22266 int res2 = 0 ;
22267 bool temp3 = false ;
22268 bool val4 ;
22269 int ecode4 = 0 ;
22270 int val5 ;
22271 int ecode5 = 0 ;
22272 PyObject * obj0 = 0 ;
22273 PyObject * obj1 = 0 ;
22274 PyObject * obj2 = 0 ;
22275 PyObject * obj3 = 0 ;
22276 PyObject * obj4 = 0 ;
22277 char * kwnames[] = {
22278 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
22279 };
22280
22281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Treebook_AddSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
22282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22283 if (!SWIG_IsOK(res1)) {
22284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_AddSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
22285 }
22286 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22287 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22288 if (!SWIG_IsOK(res2)) {
22289 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_AddSubPage" "', expected argument " "2"" of type '" "wxWindow *""'");
22290 }
22291 arg2 = reinterpret_cast< wxWindow * >(argp2);
22292 {
22293 arg3 = wxString_in_helper(obj2);
22294 if (arg3 == NULL) SWIG_fail;
22295 temp3 = true;
22296 }
22297 if (obj3) {
22298 ecode4 = SWIG_AsVal_bool(obj3, &val4);
22299 if (!SWIG_IsOK(ecode4)) {
22300 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Treebook_AddSubPage" "', expected argument " "4"" of type '" "bool""'");
22301 }
22302 arg4 = static_cast< bool >(val4);
22303 }
22304 if (obj4) {
22305 ecode5 = SWIG_AsVal_int(obj4, &val5);
22306 if (!SWIG_IsOK(ecode5)) {
22307 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_AddSubPage" "', expected argument " "5"" of type '" "int""'");
22308 }
22309 arg5 = static_cast< int >(val5);
22310 }
22311 {
22312 PyThreadState* __tstate = wxPyBeginAllowThreads();
22313 result = (bool)(arg1)->AddSubPage(arg2,(wxString const &)*arg3,arg4,arg5);
22314 wxPyEndAllowThreads(__tstate);
22315 if (PyErr_Occurred()) SWIG_fail;
22316 }
22317 {
22318 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22319 }
22320 {
22321 if (temp3)
22322 delete arg3;
22323 }
22324 return resultobj;
22325 fail:
22326 {
22327 if (temp3)
22328 delete arg3;
22329 }
22330 return NULL;
22331 }
22332
22333
22334 SWIGINTERN PyObject *_wrap_Treebook_IsNodeExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22335 PyObject *resultobj = 0;
22336 wxTreebook *arg1 = (wxTreebook *) 0 ;
22337 size_t arg2 ;
22338 bool result;
22339 void *argp1 = 0 ;
22340 int res1 = 0 ;
22341 size_t val2 ;
22342 int ecode2 = 0 ;
22343 PyObject * obj0 = 0 ;
22344 PyObject * obj1 = 0 ;
22345 char * kwnames[] = {
22346 (char *) "self",(char *) "pos", NULL
22347 };
22348
22349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_IsNodeExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
22350 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22351 if (!SWIG_IsOK(res1)) {
22352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22353 }
22354 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22355 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22356 if (!SWIG_IsOK(ecode2)) {
22357 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "2"" of type '" "size_t""'");
22358 }
22359 arg2 = static_cast< size_t >(val2);
22360 {
22361 PyThreadState* __tstate = wxPyBeginAllowThreads();
22362 result = (bool)((wxTreebook const *)arg1)->IsNodeExpanded(arg2);
22363 wxPyEndAllowThreads(__tstate);
22364 if (PyErr_Occurred()) SWIG_fail;
22365 }
22366 {
22367 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22368 }
22369 return resultobj;
22370 fail:
22371 return NULL;
22372 }
22373
22374
22375 SWIGINTERN PyObject *_wrap_Treebook_ExpandNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22376 PyObject *resultobj = 0;
22377 wxTreebook *arg1 = (wxTreebook *) 0 ;
22378 size_t arg2 ;
22379 bool arg3 = (bool) true ;
22380 bool result;
22381 void *argp1 = 0 ;
22382 int res1 = 0 ;
22383 size_t val2 ;
22384 int ecode2 = 0 ;
22385 bool val3 ;
22386 int ecode3 = 0 ;
22387 PyObject * obj0 = 0 ;
22388 PyObject * obj1 = 0 ;
22389 PyObject * obj2 = 0 ;
22390 char * kwnames[] = {
22391 (char *) "self",(char *) "pos",(char *) "expand", NULL
22392 };
22393
22394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Treebook_ExpandNode",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22396 if (!SWIG_IsOK(res1)) {
22397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_ExpandNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
22398 }
22399 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22400 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22401 if (!SWIG_IsOK(ecode2)) {
22402 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_ExpandNode" "', expected argument " "2"" of type '" "size_t""'");
22403 }
22404 arg2 = static_cast< size_t >(val2);
22405 if (obj2) {
22406 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22407 if (!SWIG_IsOK(ecode3)) {
22408 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_ExpandNode" "', expected argument " "3"" of type '" "bool""'");
22409 }
22410 arg3 = static_cast< bool >(val3);
22411 }
22412 {
22413 PyThreadState* __tstate = wxPyBeginAllowThreads();
22414 result = (bool)(arg1)->ExpandNode(arg2,arg3);
22415 wxPyEndAllowThreads(__tstate);
22416 if (PyErr_Occurred()) SWIG_fail;
22417 }
22418 {
22419 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22420 }
22421 return resultobj;
22422 fail:
22423 return NULL;
22424 }
22425
22426
22427 SWIGINTERN PyObject *_wrap_Treebook_CollapseNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22428 PyObject *resultobj = 0;
22429 wxTreebook *arg1 = (wxTreebook *) 0 ;
22430 size_t arg2 ;
22431 bool result;
22432 void *argp1 = 0 ;
22433 int res1 = 0 ;
22434 size_t val2 ;
22435 int ecode2 = 0 ;
22436 PyObject * obj0 = 0 ;
22437 PyObject * obj1 = 0 ;
22438 char * kwnames[] = {
22439 (char *) "self",(char *) "pos", NULL
22440 };
22441
22442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_CollapseNode",kwnames,&obj0,&obj1)) SWIG_fail;
22443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22444 if (!SWIG_IsOK(res1)) {
22445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_CollapseNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
22446 }
22447 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22448 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22449 if (!SWIG_IsOK(ecode2)) {
22450 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_CollapseNode" "', expected argument " "2"" of type '" "size_t""'");
22451 }
22452 arg2 = static_cast< size_t >(val2);
22453 {
22454 PyThreadState* __tstate = wxPyBeginAllowThreads();
22455 result = (bool)(arg1)->CollapseNode(arg2);
22456 wxPyEndAllowThreads(__tstate);
22457 if (PyErr_Occurred()) SWIG_fail;
22458 }
22459 {
22460 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22461 }
22462 return resultobj;
22463 fail:
22464 return NULL;
22465 }
22466
22467
22468 SWIGINTERN PyObject *_wrap_Treebook_GetPageParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22469 PyObject *resultobj = 0;
22470 wxTreebook *arg1 = (wxTreebook *) 0 ;
22471 size_t arg2 ;
22472 int result;
22473 void *argp1 = 0 ;
22474 int res1 = 0 ;
22475 size_t val2 ;
22476 int ecode2 = 0 ;
22477 PyObject * obj0 = 0 ;
22478 PyObject * obj1 = 0 ;
22479 char * kwnames[] = {
22480 (char *) "self",(char *) "pos", NULL
22481 };
22482
22483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_GetPageParent",kwnames,&obj0,&obj1)) SWIG_fail;
22484 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22485 if (!SWIG_IsOK(res1)) {
22486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetPageParent" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22487 }
22488 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22489 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22490 if (!SWIG_IsOK(ecode2)) {
22491 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_GetPageParent" "', expected argument " "2"" of type '" "size_t""'");
22492 }
22493 arg2 = static_cast< size_t >(val2);
22494 {
22495 PyThreadState* __tstate = wxPyBeginAllowThreads();
22496 result = (int)((wxTreebook const *)arg1)->GetPageParent(arg2);
22497 wxPyEndAllowThreads(__tstate);
22498 if (PyErr_Occurred()) SWIG_fail;
22499 }
22500 resultobj = SWIG_From_int(static_cast< int >(result));
22501 return resultobj;
22502 fail:
22503 return NULL;
22504 }
22505
22506
22507 SWIGINTERN PyObject *_wrap_Treebook_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22508 PyObject *resultobj = 0;
22509 wxTreebook *arg1 = (wxTreebook *) 0 ;
22510 wxPyTreeCtrl *result = 0 ;
22511 void *argp1 = 0 ;
22512 int res1 = 0 ;
22513 PyObject *swig_obj[1] ;
22514
22515 if (!args) SWIG_fail;
22516 swig_obj[0] = args;
22517 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22518 if (!SWIG_IsOK(res1)) {
22519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetTreeCtrl" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22520 }
22521 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22522 {
22523 PyThreadState* __tstate = wxPyBeginAllowThreads();
22524 result = (wxPyTreeCtrl *)((wxTreebook const *)arg1)->GetTreeCtrl();
22525 wxPyEndAllowThreads(__tstate);
22526 if (PyErr_Occurred()) SWIG_fail;
22527 }
22528 {
22529 resultobj = wxPyMake_wxObject(result, (bool)0);
22530 }
22531 return resultobj;
22532 fail:
22533 return NULL;
22534 }
22535
22536
22537 SWIGINTERN PyObject *Treebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22538 PyObject *obj;
22539 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22540 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebook, SWIG_NewClientData(obj));
22541 return SWIG_Py_Void();
22542 }
22543
22544 SWIGINTERN PyObject *Treebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22545 return SWIG_Python_InitShadowInstance(args);
22546 }
22547
22548 SWIGINTERN PyObject *_wrap_new_TreebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22549 PyObject *resultobj = 0;
22550 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22551 int arg2 = (int) 0 ;
22552 int arg3 = (int) wxNOT_FOUND ;
22553 int arg4 = (int) wxNOT_FOUND ;
22554 wxTreebookEvent *result = 0 ;
22555 int val1 ;
22556 int ecode1 = 0 ;
22557 int val2 ;
22558 int ecode2 = 0 ;
22559 int val3 ;
22560 int ecode3 = 0 ;
22561 int val4 ;
22562 int ecode4 = 0 ;
22563 PyObject * obj0 = 0 ;
22564 PyObject * obj1 = 0 ;
22565 PyObject * obj2 = 0 ;
22566 PyObject * obj3 = 0 ;
22567 char * kwnames[] = {
22568 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22569 };
22570
22571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TreebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22572 if (obj0) {
22573 ecode1 = SWIG_AsVal_int(obj0, &val1);
22574 if (!SWIG_IsOK(ecode1)) {
22575 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22576 }
22577 arg1 = static_cast< wxEventType >(val1);
22578 }
22579 if (obj1) {
22580 ecode2 = SWIG_AsVal_int(obj1, &val2);
22581 if (!SWIG_IsOK(ecode2)) {
22582 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreebookEvent" "', expected argument " "2"" of type '" "int""'");
22583 }
22584 arg2 = static_cast< int >(val2);
22585 }
22586 if (obj2) {
22587 ecode3 = SWIG_AsVal_int(obj2, &val3);
22588 if (!SWIG_IsOK(ecode3)) {
22589 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TreebookEvent" "', expected argument " "3"" of type '" "int""'");
22590 }
22591 arg3 = static_cast< int >(val3);
22592 }
22593 if (obj3) {
22594 ecode4 = SWIG_AsVal_int(obj3, &val4);
22595 if (!SWIG_IsOK(ecode4)) {
22596 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TreebookEvent" "', expected argument " "4"" of type '" "int""'");
22597 }
22598 arg4 = static_cast< int >(val4);
22599 }
22600 {
22601 PyThreadState* __tstate = wxPyBeginAllowThreads();
22602 result = (wxTreebookEvent *)new wxTreebookEvent(arg1,arg2,arg3,arg4);
22603 wxPyEndAllowThreads(__tstate);
22604 if (PyErr_Occurred()) SWIG_fail;
22605 }
22606 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebookEvent, SWIG_POINTER_NEW | 0 );
22607 return resultobj;
22608 fail:
22609 return NULL;
22610 }
22611
22612
22613 SWIGINTERN PyObject *TreebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22614 PyObject *obj;
22615 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22616 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebookEvent, SWIG_NewClientData(obj));
22617 return SWIG_Py_Void();
22618 }
22619
22620 SWIGINTERN PyObject *TreebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22621 return SWIG_Python_InitShadowInstance(args);
22622 }
22623
22624 SWIGINTERN PyObject *_wrap_new_Toolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22625 PyObject *resultobj = 0;
22626 wxWindow *arg1 = (wxWindow *) 0 ;
22627 int arg2 ;
22628 wxPoint const &arg3_defvalue = wxDefaultPosition ;
22629 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
22630 wxSize const &arg4_defvalue = wxDefaultSize ;
22631 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
22632 long arg5 = (long) wxBK_DEFAULT ;
22633 wxString const &arg6_defvalue = wxPyEmptyString ;
22634 wxString *arg6 = (wxString *) &arg6_defvalue ;
22635 wxToolbook *result = 0 ;
22636 void *argp1 = 0 ;
22637 int res1 = 0 ;
22638 int val2 ;
22639 int ecode2 = 0 ;
22640 wxPoint temp3 ;
22641 wxSize temp4 ;
22642 long val5 ;
22643 int ecode5 = 0 ;
22644 bool temp6 = false ;
22645 PyObject * obj0 = 0 ;
22646 PyObject * obj1 = 0 ;
22647 PyObject * obj2 = 0 ;
22648 PyObject * obj3 = 0 ;
22649 PyObject * obj4 = 0 ;
22650 PyObject * obj5 = 0 ;
22651 char * kwnames[] = {
22652 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22653 };
22654
22655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Toolbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
22657 if (!SWIG_IsOK(res1)) {
22658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Toolbook" "', expected argument " "1"" of type '" "wxWindow *""'");
22659 }
22660 arg1 = reinterpret_cast< wxWindow * >(argp1);
22661 ecode2 = SWIG_AsVal_int(obj1, &val2);
22662 if (!SWIG_IsOK(ecode2)) {
22663 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Toolbook" "', expected argument " "2"" of type '" "int""'");
22664 }
22665 arg2 = static_cast< int >(val2);
22666 if (obj2) {
22667 {
22668 arg3 = &temp3;
22669 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
22670 }
22671 }
22672 if (obj3) {
22673 {
22674 arg4 = &temp4;
22675 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
22676 }
22677 }
22678 if (obj4) {
22679 ecode5 = SWIG_AsVal_long(obj4, &val5);
22680 if (!SWIG_IsOK(ecode5)) {
22681 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Toolbook" "', expected argument " "5"" of type '" "long""'");
22682 }
22683 arg5 = static_cast< long >(val5);
22684 }
22685 if (obj5) {
22686 {
22687 arg6 = wxString_in_helper(obj5);
22688 if (arg6 == NULL) SWIG_fail;
22689 temp6 = true;
22690 }
22691 }
22692 {
22693 PyThreadState* __tstate = wxPyBeginAllowThreads();
22694 result = (wxToolbook *)new wxToolbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
22695 wxPyEndAllowThreads(__tstate);
22696 if (PyErr_Occurred()) SWIG_fail;
22697 }
22698 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_NEW | 0 );
22699 {
22700 if (temp6)
22701 delete arg6;
22702 }
22703 return resultobj;
22704 fail:
22705 {
22706 if (temp6)
22707 delete arg6;
22708 }
22709 return NULL;
22710 }
22711
22712
22713 SWIGINTERN PyObject *_wrap_new_PreToolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22714 PyObject *resultobj = 0;
22715 wxToolbook *result = 0 ;
22716
22717 if (!SWIG_Python_UnpackTuple(args,"new_PreToolbook",0,0,0)) SWIG_fail;
22718 {
22719 PyThreadState* __tstate = wxPyBeginAllowThreads();
22720 result = (wxToolbook *)new wxToolbook();
22721 wxPyEndAllowThreads(__tstate);
22722 if (PyErr_Occurred()) SWIG_fail;
22723 }
22724 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_OWN | 0 );
22725 return resultobj;
22726 fail:
22727 return NULL;
22728 }
22729
22730
22731 SWIGINTERN PyObject *_wrap_Toolbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22732 PyObject *resultobj = 0;
22733 wxToolbook *arg1 = (wxToolbook *) 0 ;
22734 wxWindow *arg2 = (wxWindow *) 0 ;
22735 int arg3 ;
22736 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22737 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22738 wxSize const &arg5_defvalue = wxDefaultSize ;
22739 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22740 long arg6 = (long) 0 ;
22741 wxString const &arg7_defvalue = wxEmptyString ;
22742 wxString *arg7 = (wxString *) &arg7_defvalue ;
22743 bool result;
22744 void *argp1 = 0 ;
22745 int res1 = 0 ;
22746 void *argp2 = 0 ;
22747 int res2 = 0 ;
22748 int val3 ;
22749 int ecode3 = 0 ;
22750 wxPoint temp4 ;
22751 wxSize temp5 ;
22752 long val6 ;
22753 int ecode6 = 0 ;
22754 bool temp7 = false ;
22755 PyObject * obj0 = 0 ;
22756 PyObject * obj1 = 0 ;
22757 PyObject * obj2 = 0 ;
22758 PyObject * obj3 = 0 ;
22759 PyObject * obj4 = 0 ;
22760 PyObject * obj5 = 0 ;
22761 PyObject * obj6 = 0 ;
22762 char * kwnames[] = {
22763 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22764 };
22765
22766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Toolbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22768 if (!SWIG_IsOK(res1)) {
22769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Create" "', expected argument " "1"" of type '" "wxToolbook *""'");
22770 }
22771 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22772 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22773 if (!SWIG_IsOK(res2)) {
22774 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Toolbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
22775 }
22776 arg2 = reinterpret_cast< wxWindow * >(argp2);
22777 ecode3 = SWIG_AsVal_int(obj2, &val3);
22778 if (!SWIG_IsOK(ecode3)) {
22779 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Toolbook_Create" "', expected argument " "3"" of type '" "int""'");
22780 }
22781 arg3 = static_cast< int >(val3);
22782 if (obj3) {
22783 {
22784 arg4 = &temp4;
22785 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
22786 }
22787 }
22788 if (obj4) {
22789 {
22790 arg5 = &temp5;
22791 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
22792 }
22793 }
22794 if (obj5) {
22795 ecode6 = SWIG_AsVal_long(obj5, &val6);
22796 if (!SWIG_IsOK(ecode6)) {
22797 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Toolbook_Create" "', expected argument " "6"" of type '" "long""'");
22798 }
22799 arg6 = static_cast< long >(val6);
22800 }
22801 if (obj6) {
22802 {
22803 arg7 = wxString_in_helper(obj6);
22804 if (arg7 == NULL) SWIG_fail;
22805 temp7 = true;
22806 }
22807 }
22808 {
22809 PyThreadState* __tstate = wxPyBeginAllowThreads();
22810 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22811 wxPyEndAllowThreads(__tstate);
22812 if (PyErr_Occurred()) SWIG_fail;
22813 }
22814 {
22815 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22816 }
22817 {
22818 if (temp7)
22819 delete arg7;
22820 }
22821 return resultobj;
22822 fail:
22823 {
22824 if (temp7)
22825 delete arg7;
22826 }
22827 return NULL;
22828 }
22829
22830
22831 SWIGINTERN PyObject *_wrap_Toolbook_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22832 PyObject *resultobj = 0;
22833 wxToolbook *arg1 = (wxToolbook *) 0 ;
22834 wxToolBarBase *result = 0 ;
22835 void *argp1 = 0 ;
22836 int res1 = 0 ;
22837 PyObject *swig_obj[1] ;
22838
22839 if (!args) SWIG_fail;
22840 swig_obj[0] = args;
22841 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22842 if (!SWIG_IsOK(res1)) {
22843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_GetToolBar" "', expected argument " "1"" of type '" "wxToolbook const *""'");
22844 }
22845 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22846 {
22847 PyThreadState* __tstate = wxPyBeginAllowThreads();
22848 result = (wxToolBarBase *)((wxToolbook const *)arg1)->GetToolBar();
22849 wxPyEndAllowThreads(__tstate);
22850 if (PyErr_Occurred()) SWIG_fail;
22851 }
22852 {
22853 resultobj = wxPyMake_wxObject(result, (bool)0);
22854 }
22855 return resultobj;
22856 fail:
22857 return NULL;
22858 }
22859
22860
22861 SWIGINTERN PyObject *_wrap_Toolbook_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22862 PyObject *resultobj = 0;
22863 wxToolbook *arg1 = (wxToolbook *) 0 ;
22864 void *argp1 = 0 ;
22865 int res1 = 0 ;
22866 PyObject *swig_obj[1] ;
22867
22868 if (!args) SWIG_fail;
22869 swig_obj[0] = args;
22870 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22871 if (!SWIG_IsOK(res1)) {
22872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Realize" "', expected argument " "1"" of type '" "wxToolbook *""'");
22873 }
22874 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22875 {
22876 PyThreadState* __tstate = wxPyBeginAllowThreads();
22877 (arg1)->Realize();
22878 wxPyEndAllowThreads(__tstate);
22879 if (PyErr_Occurred()) SWIG_fail;
22880 }
22881 resultobj = SWIG_Py_Void();
22882 return resultobj;
22883 fail:
22884 return NULL;
22885 }
22886
22887
22888 SWIGINTERN PyObject *Toolbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22889 PyObject *obj;
22890 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22891 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbook, SWIG_NewClientData(obj));
22892 return SWIG_Py_Void();
22893 }
22894
22895 SWIGINTERN PyObject *Toolbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22896 return SWIG_Python_InitShadowInstance(args);
22897 }
22898
22899 SWIGINTERN PyObject *_wrap_new_ToolbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22900 PyObject *resultobj = 0;
22901 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22902 int arg2 = (int) 0 ;
22903 int arg3 = (int) wxNOT_FOUND ;
22904 int arg4 = (int) wxNOT_FOUND ;
22905 wxToolbookEvent *result = 0 ;
22906 int val1 ;
22907 int ecode1 = 0 ;
22908 int val2 ;
22909 int ecode2 = 0 ;
22910 int val3 ;
22911 int ecode3 = 0 ;
22912 int val4 ;
22913 int ecode4 = 0 ;
22914 PyObject * obj0 = 0 ;
22915 PyObject * obj1 = 0 ;
22916 PyObject * obj2 = 0 ;
22917 PyObject * obj3 = 0 ;
22918 char * kwnames[] = {
22919 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22920 };
22921
22922 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ToolbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22923 if (obj0) {
22924 ecode1 = SWIG_AsVal_int(obj0, &val1);
22925 if (!SWIG_IsOK(ecode1)) {
22926 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ToolbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22927 }
22928 arg1 = static_cast< wxEventType >(val1);
22929 }
22930 if (obj1) {
22931 ecode2 = SWIG_AsVal_int(obj1, &val2);
22932 if (!SWIG_IsOK(ecode2)) {
22933 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolbookEvent" "', expected argument " "2"" of type '" "int""'");
22934 }
22935 arg2 = static_cast< int >(val2);
22936 }
22937 if (obj2) {
22938 ecode3 = SWIG_AsVal_int(obj2, &val3);
22939 if (!SWIG_IsOK(ecode3)) {
22940 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ToolbookEvent" "', expected argument " "3"" of type '" "int""'");
22941 }
22942 arg3 = static_cast< int >(val3);
22943 }
22944 if (obj3) {
22945 ecode4 = SWIG_AsVal_int(obj3, &val4);
22946 if (!SWIG_IsOK(ecode4)) {
22947 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ToolbookEvent" "', expected argument " "4"" of type '" "int""'");
22948 }
22949 arg4 = static_cast< int >(val4);
22950 }
22951 {
22952 PyThreadState* __tstate = wxPyBeginAllowThreads();
22953 result = (wxToolbookEvent *)new wxToolbookEvent(arg1,arg2,arg3,arg4);
22954 wxPyEndAllowThreads(__tstate);
22955 if (PyErr_Occurred()) SWIG_fail;
22956 }
22957 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbookEvent, SWIG_POINTER_NEW | 0 );
22958 return resultobj;
22959 fail:
22960 return NULL;
22961 }
22962
22963
22964 SWIGINTERN PyObject *ToolbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22965 PyObject *obj;
22966 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22967 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbookEvent, SWIG_NewClientData(obj));
22968 return SWIG_Py_Void();
22969 }
22970
22971 SWIGINTERN PyObject *ToolbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22972 return SWIG_Python_InitShadowInstance(args);
22973 }
22974
22975 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22976 PyObject *resultobj = 0;
22977 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22978 int result;
22979 void *argp1 = 0 ;
22980 int res1 = 0 ;
22981 PyObject *swig_obj[1] ;
22982
22983 if (!args) SWIG_fail;
22984 swig_obj[0] = args;
22985 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22986 if (!SWIG_IsOK(res1)) {
22987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetId" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22988 }
22989 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22990 {
22991 PyThreadState* __tstate = wxPyBeginAllowThreads();
22992 result = (int)(arg1)->GetId();
22993 wxPyEndAllowThreads(__tstate);
22994 if (PyErr_Occurred()) SWIG_fail;
22995 }
22996 resultobj = SWIG_From_int(static_cast< int >(result));
22997 return resultobj;
22998 fail:
22999 return NULL;
23000 }
23001
23002
23003 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23004 PyObject *resultobj = 0;
23005 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23006 wxControl *result = 0 ;
23007 void *argp1 = 0 ;
23008 int res1 = 0 ;
23009 PyObject *swig_obj[1] ;
23010
23011 if (!args) SWIG_fail;
23012 swig_obj[0] = args;
23013 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23014 if (!SWIG_IsOK(res1)) {
23015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23016 }
23017 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23018 {
23019 PyThreadState* __tstate = wxPyBeginAllowThreads();
23020 result = (wxControl *)(arg1)->GetControl();
23021 wxPyEndAllowThreads(__tstate);
23022 if (PyErr_Occurred()) SWIG_fail;
23023 }
23024 {
23025 resultobj = wxPyMake_wxObject(result, 0);
23026 }
23027 return resultobj;
23028 fail:
23029 return NULL;
23030 }
23031
23032
23033 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23034 PyObject *resultobj = 0;
23035 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23036 wxToolBarBase *result = 0 ;
23037 void *argp1 = 0 ;
23038 int res1 = 0 ;
23039 PyObject *swig_obj[1] ;
23040
23041 if (!args) SWIG_fail;
23042 swig_obj[0] = args;
23043 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23044 if (!SWIG_IsOK(res1)) {
23045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetToolBar" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23046 }
23047 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23048 {
23049 PyThreadState* __tstate = wxPyBeginAllowThreads();
23050 result = (wxToolBarBase *)(arg1)->GetToolBar();
23051 wxPyEndAllowThreads(__tstate);
23052 if (PyErr_Occurred()) SWIG_fail;
23053 }
23054 {
23055 resultobj = wxPyMake_wxObject(result, (bool)0);
23056 }
23057 return resultobj;
23058 fail:
23059 return NULL;
23060 }
23061
23062
23063 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23064 PyObject *resultobj = 0;
23065 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23066 int result;
23067 void *argp1 = 0 ;
23068 int res1 = 0 ;
23069 PyObject *swig_obj[1] ;
23070
23071 if (!args) SWIG_fail;
23072 swig_obj[0] = args;
23073 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23074 if (!SWIG_IsOK(res1)) {
23075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsButton" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23076 }
23077 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23078 {
23079 PyThreadState* __tstate = wxPyBeginAllowThreads();
23080 result = (int)(arg1)->IsButton();
23081 wxPyEndAllowThreads(__tstate);
23082 if (PyErr_Occurred()) SWIG_fail;
23083 }
23084 resultobj = SWIG_From_int(static_cast< int >(result));
23085 return resultobj;
23086 fail:
23087 return NULL;
23088 }
23089
23090
23091 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23092 PyObject *resultobj = 0;
23093 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23094 int result;
23095 void *argp1 = 0 ;
23096 int res1 = 0 ;
23097 PyObject *swig_obj[1] ;
23098
23099 if (!args) SWIG_fail;
23100 swig_obj[0] = args;
23101 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23102 if (!SWIG_IsOK(res1)) {
23103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23104 }
23105 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23106 {
23107 PyThreadState* __tstate = wxPyBeginAllowThreads();
23108 result = (int)(arg1)->IsControl();
23109 wxPyEndAllowThreads(__tstate);
23110 if (PyErr_Occurred()) SWIG_fail;
23111 }
23112 resultobj = SWIG_From_int(static_cast< int >(result));
23113 return resultobj;
23114 fail:
23115 return NULL;
23116 }
23117
23118
23119 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23120 PyObject *resultobj = 0;
23121 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23122 int result;
23123 void *argp1 = 0 ;
23124 int res1 = 0 ;
23125 PyObject *swig_obj[1] ;
23126
23127 if (!args) SWIG_fail;
23128 swig_obj[0] = args;
23129 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23130 if (!SWIG_IsOK(res1)) {
23131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsSeparator" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23132 }
23133 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23134 {
23135 PyThreadState* __tstate = wxPyBeginAllowThreads();
23136 result = (int)(arg1)->IsSeparator();
23137 wxPyEndAllowThreads(__tstate);
23138 if (PyErr_Occurred()) SWIG_fail;
23139 }
23140 resultobj = SWIG_From_int(static_cast< int >(result));
23141 return resultobj;
23142 fail:
23143 return NULL;
23144 }
23145
23146
23147 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23148 PyObject *resultobj = 0;
23149 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23150 int result;
23151 void *argp1 = 0 ;
23152 int res1 = 0 ;
23153 PyObject *swig_obj[1] ;
23154
23155 if (!args) SWIG_fail;
23156 swig_obj[0] = args;
23157 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23158 if (!SWIG_IsOK(res1)) {
23159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetStyle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23160 }
23161 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23162 {
23163 PyThreadState* __tstate = wxPyBeginAllowThreads();
23164 result = (int)(arg1)->GetStyle();
23165 wxPyEndAllowThreads(__tstate);
23166 if (PyErr_Occurred()) SWIG_fail;
23167 }
23168 resultobj = SWIG_From_int(static_cast< int >(result));
23169 return resultobj;
23170 fail:
23171 return NULL;
23172 }
23173
23174
23175 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23176 PyObject *resultobj = 0;
23177 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23178 wxItemKind result;
23179 void *argp1 = 0 ;
23180 int res1 = 0 ;
23181 PyObject *swig_obj[1] ;
23182
23183 if (!args) SWIG_fail;
23184 swig_obj[0] = args;
23185 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23186 if (!SWIG_IsOK(res1)) {
23187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetKind" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23188 }
23189 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23190 {
23191 PyThreadState* __tstate = wxPyBeginAllowThreads();
23192 result = (wxItemKind)(arg1)->GetKind();
23193 wxPyEndAllowThreads(__tstate);
23194 if (PyErr_Occurred()) SWIG_fail;
23195 }
23196 resultobj = SWIG_From_int(static_cast< int >(result));
23197 return resultobj;
23198 fail:
23199 return NULL;
23200 }
23201
23202
23203 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23204 PyObject *resultobj = 0;
23205 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23206 bool result;
23207 void *argp1 = 0 ;
23208 int res1 = 0 ;
23209 PyObject *swig_obj[1] ;
23210
23211 if (!args) SWIG_fail;
23212 swig_obj[0] = args;
23213 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23214 if (!SWIG_IsOK(res1)) {
23215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsEnabled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23216 }
23217 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23218 {
23219 PyThreadState* __tstate = wxPyBeginAllowThreads();
23220 result = (bool)(arg1)->IsEnabled();
23221 wxPyEndAllowThreads(__tstate);
23222 if (PyErr_Occurred()) SWIG_fail;
23223 }
23224 {
23225 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23226 }
23227 return resultobj;
23228 fail:
23229 return NULL;
23230 }
23231
23232
23233 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23234 PyObject *resultobj = 0;
23235 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23236 bool result;
23237 void *argp1 = 0 ;
23238 int res1 = 0 ;
23239 PyObject *swig_obj[1] ;
23240
23241 if (!args) SWIG_fail;
23242 swig_obj[0] = args;
23243 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23244 if (!SWIG_IsOK(res1)) {
23245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23246 }
23247 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23248 {
23249 PyThreadState* __tstate = wxPyBeginAllowThreads();
23250 result = (bool)(arg1)->IsToggled();
23251 wxPyEndAllowThreads(__tstate);
23252 if (PyErr_Occurred()) SWIG_fail;
23253 }
23254 {
23255 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23256 }
23257 return resultobj;
23258 fail:
23259 return NULL;
23260 }
23261
23262
23263 SWIGINTERN PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23264 PyObject *resultobj = 0;
23265 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23266 bool result;
23267 void *argp1 = 0 ;
23268 int res1 = 0 ;
23269 PyObject *swig_obj[1] ;
23270
23271 if (!args) SWIG_fail;
23272 swig_obj[0] = args;
23273 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23274 if (!SWIG_IsOK(res1)) {
23275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_CanBeToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23276 }
23277 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23278 {
23279 PyThreadState* __tstate = wxPyBeginAllowThreads();
23280 result = (bool)(arg1)->CanBeToggled();
23281 wxPyEndAllowThreads(__tstate);
23282 if (PyErr_Occurred()) SWIG_fail;
23283 }
23284 {
23285 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23286 }
23287 return resultobj;
23288 fail:
23289 return NULL;
23290 }
23291
23292
23293 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23294 PyObject *resultobj = 0;
23295 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23296 wxBitmap *result = 0 ;
23297 void *argp1 = 0 ;
23298 int res1 = 0 ;
23299 PyObject *swig_obj[1] ;
23300
23301 if (!args) SWIG_fail;
23302 swig_obj[0] = args;
23303 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23304 if (!SWIG_IsOK(res1)) {
23305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23306 }
23307 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23308 {
23309 PyThreadState* __tstate = wxPyBeginAllowThreads();
23310 {
23311 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
23312 result = (wxBitmap *) &_result_ref;
23313 }
23314 wxPyEndAllowThreads(__tstate);
23315 if (PyErr_Occurred()) SWIG_fail;
23316 }
23317 {
23318 wxBitmap* resultptr = new wxBitmap(*result);
23319 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
23320 }
23321 return resultobj;
23322 fail:
23323 return NULL;
23324 }
23325
23326
23327 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23328 PyObject *resultobj = 0;
23329 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23330 wxBitmap *result = 0 ;
23331 void *argp1 = 0 ;
23332 int res1 = 0 ;
23333 PyObject *swig_obj[1] ;
23334
23335 if (!args) SWIG_fail;
23336 swig_obj[0] = args;
23337 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23338 if (!SWIG_IsOK(res1)) {
23339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23340 }
23341 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23342 {
23343 PyThreadState* __tstate = wxPyBeginAllowThreads();
23344 {
23345 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
23346 result = (wxBitmap *) &_result_ref;
23347 }
23348 wxPyEndAllowThreads(__tstate);
23349 if (PyErr_Occurred()) SWIG_fail;
23350 }
23351 {
23352 wxBitmap* resultptr = new wxBitmap(*result);
23353 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
23354 }
23355 return resultobj;
23356 fail:
23357 return NULL;
23358 }
23359
23360
23361 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23362 PyObject *resultobj = 0;
23363 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23364 wxBitmap result;
23365 void *argp1 = 0 ;
23366 int res1 = 0 ;
23367 PyObject *swig_obj[1] ;
23368
23369 if (!args) SWIG_fail;
23370 swig_obj[0] = args;
23371 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23372 if (!SWIG_IsOK(res1)) {
23373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23374 }
23375 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23376 {
23377 PyThreadState* __tstate = wxPyBeginAllowThreads();
23378 result = (arg1)->GetBitmap();
23379 wxPyEndAllowThreads(__tstate);
23380 if (PyErr_Occurred()) SWIG_fail;
23381 }
23382 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
23383 return resultobj;
23384 fail:
23385 return NULL;
23386 }
23387
23388
23389 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23390 PyObject *resultobj = 0;
23391 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23392 wxString result;
23393 void *argp1 = 0 ;
23394 int res1 = 0 ;
23395 PyObject *swig_obj[1] ;
23396
23397 if (!args) SWIG_fail;
23398 swig_obj[0] = args;
23399 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23400 if (!SWIG_IsOK(res1)) {
23401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23402 }
23403 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23404 {
23405 PyThreadState* __tstate = wxPyBeginAllowThreads();
23406 result = (arg1)->GetLabel();
23407 wxPyEndAllowThreads(__tstate);
23408 if (PyErr_Occurred()) SWIG_fail;
23409 }
23410 {
23411 #if wxUSE_UNICODE
23412 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23413 #else
23414 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23415 #endif
23416 }
23417 return resultobj;
23418 fail:
23419 return NULL;
23420 }
23421
23422
23423 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23424 PyObject *resultobj = 0;
23425 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23426 wxString result;
23427 void *argp1 = 0 ;
23428 int res1 = 0 ;
23429 PyObject *swig_obj[1] ;
23430
23431 if (!args) SWIG_fail;
23432 swig_obj[0] = args;
23433 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23434 if (!SWIG_IsOK(res1)) {
23435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23436 }
23437 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23438 {
23439 PyThreadState* __tstate = wxPyBeginAllowThreads();
23440 result = (arg1)->GetShortHelp();
23441 wxPyEndAllowThreads(__tstate);
23442 if (PyErr_Occurred()) SWIG_fail;
23443 }
23444 {
23445 #if wxUSE_UNICODE
23446 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23447 #else
23448 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23449 #endif
23450 }
23451 return resultobj;
23452 fail:
23453 return NULL;
23454 }
23455
23456
23457 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23458 PyObject *resultobj = 0;
23459 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23460 wxString result;
23461 void *argp1 = 0 ;
23462 int res1 = 0 ;
23463 PyObject *swig_obj[1] ;
23464
23465 if (!args) SWIG_fail;
23466 swig_obj[0] = args;
23467 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23468 if (!SWIG_IsOK(res1)) {
23469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23470 }
23471 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23472 {
23473 PyThreadState* __tstate = wxPyBeginAllowThreads();
23474 result = (arg1)->GetLongHelp();
23475 wxPyEndAllowThreads(__tstate);
23476 if (PyErr_Occurred()) SWIG_fail;
23477 }
23478 {
23479 #if wxUSE_UNICODE
23480 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23481 #else
23482 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23483 #endif
23484 }
23485 return resultobj;
23486 fail:
23487 return NULL;
23488 }
23489
23490
23491 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23492 PyObject *resultobj = 0;
23493 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23494 bool arg2 ;
23495 bool result;
23496 void *argp1 = 0 ;
23497 int res1 = 0 ;
23498 bool val2 ;
23499 int ecode2 = 0 ;
23500 PyObject * obj0 = 0 ;
23501 PyObject * obj1 = 0 ;
23502 char * kwnames[] = {
23503 (char *) "self",(char *) "enable", NULL
23504 };
23505
23506 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) SWIG_fail;
23507 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23508 if (!SWIG_IsOK(res1)) {
23509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Enable" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23510 }
23511 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23512 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23513 if (!SWIG_IsOK(ecode2)) {
23514 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_Enable" "', expected argument " "2"" of type '" "bool""'");
23515 }
23516 arg2 = static_cast< bool >(val2);
23517 {
23518 PyThreadState* __tstate = wxPyBeginAllowThreads();
23519 result = (bool)(arg1)->Enable(arg2);
23520 wxPyEndAllowThreads(__tstate);
23521 if (PyErr_Occurred()) SWIG_fail;
23522 }
23523 {
23524 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23525 }
23526 return resultobj;
23527 fail:
23528 return NULL;
23529 }
23530
23531
23532 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23533 PyObject *resultobj = 0;
23534 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23535 void *argp1 = 0 ;
23536 int res1 = 0 ;
23537 PyObject *swig_obj[1] ;
23538
23539 if (!args) SWIG_fail;
23540 swig_obj[0] = args;
23541 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23542 if (!SWIG_IsOK(res1)) {
23543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Toggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23544 }
23545 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23546 {
23547 PyThreadState* __tstate = wxPyBeginAllowThreads();
23548 (arg1)->Toggle();
23549 wxPyEndAllowThreads(__tstate);
23550 if (PyErr_Occurred()) SWIG_fail;
23551 }
23552 resultobj = SWIG_Py_Void();
23553 return resultobj;
23554 fail:
23555 return NULL;
23556 }
23557
23558
23559 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23560 PyObject *resultobj = 0;
23561 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23562 bool arg2 ;
23563 bool result;
23564 void *argp1 = 0 ;
23565 int res1 = 0 ;
23566 bool val2 ;
23567 int ecode2 = 0 ;
23568 PyObject * obj0 = 0 ;
23569 PyObject * obj1 = 0 ;
23570 char * kwnames[] = {
23571 (char *) "self",(char *) "toggle", NULL
23572 };
23573
23574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) SWIG_fail;
23575 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23576 if (!SWIG_IsOK(res1)) {
23577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23578 }
23579 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23580 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23581 if (!SWIG_IsOK(ecode2)) {
23582 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "2"" of type '" "bool""'");
23583 }
23584 arg2 = static_cast< bool >(val2);
23585 {
23586 PyThreadState* __tstate = wxPyBeginAllowThreads();
23587 result = (bool)(arg1)->SetToggle(arg2);
23588 wxPyEndAllowThreads(__tstate);
23589 if (PyErr_Occurred()) SWIG_fail;
23590 }
23591 {
23592 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23593 }
23594 return resultobj;
23595 fail:
23596 return NULL;
23597 }
23598
23599
23600 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23601 PyObject *resultobj = 0;
23602 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23603 wxString *arg2 = 0 ;
23604 bool result;
23605 void *argp1 = 0 ;
23606 int res1 = 0 ;
23607 bool temp2 = false ;
23608 PyObject * obj0 = 0 ;
23609 PyObject * obj1 = 0 ;
23610 char * kwnames[] = {
23611 (char *) "self",(char *) "help", NULL
23612 };
23613
23614 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23616 if (!SWIG_IsOK(res1)) {
23617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23618 }
23619 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23620 {
23621 arg2 = wxString_in_helper(obj1);
23622 if (arg2 == NULL) SWIG_fail;
23623 temp2 = true;
23624 }
23625 {
23626 PyThreadState* __tstate = wxPyBeginAllowThreads();
23627 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
23628 wxPyEndAllowThreads(__tstate);
23629 if (PyErr_Occurred()) SWIG_fail;
23630 }
23631 {
23632 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23633 }
23634 {
23635 if (temp2)
23636 delete arg2;
23637 }
23638 return resultobj;
23639 fail:
23640 {
23641 if (temp2)
23642 delete arg2;
23643 }
23644 return NULL;
23645 }
23646
23647
23648 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23649 PyObject *resultobj = 0;
23650 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23651 wxString *arg2 = 0 ;
23652 bool result;
23653 void *argp1 = 0 ;
23654 int res1 = 0 ;
23655 bool temp2 = false ;
23656 PyObject * obj0 = 0 ;
23657 PyObject * obj1 = 0 ;
23658 char * kwnames[] = {
23659 (char *) "self",(char *) "help", NULL
23660 };
23661
23662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23664 if (!SWIG_IsOK(res1)) {
23665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23666 }
23667 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23668 {
23669 arg2 = wxString_in_helper(obj1);
23670 if (arg2 == NULL) SWIG_fail;
23671 temp2 = true;
23672 }
23673 {
23674 PyThreadState* __tstate = wxPyBeginAllowThreads();
23675 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
23676 wxPyEndAllowThreads(__tstate);
23677 if (PyErr_Occurred()) SWIG_fail;
23678 }
23679 {
23680 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23681 }
23682 {
23683 if (temp2)
23684 delete arg2;
23685 }
23686 return resultobj;
23687 fail:
23688 {
23689 if (temp2)
23690 delete arg2;
23691 }
23692 return NULL;
23693 }
23694
23695
23696 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23697 PyObject *resultobj = 0;
23698 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23699 wxBitmap *arg2 = 0 ;
23700 void *argp1 = 0 ;
23701 int res1 = 0 ;
23702 void *argp2 = 0 ;
23703 int res2 = 0 ;
23704 PyObject * obj0 = 0 ;
23705 PyObject * obj1 = 0 ;
23706 char * kwnames[] = {
23707 (char *) "self",(char *) "bmp", NULL
23708 };
23709
23710 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23711 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23712 if (!SWIG_IsOK(res1)) {
23713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23714 }
23715 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23716 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23717 if (!SWIG_IsOK(res2)) {
23718 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23719 }
23720 if (!argp2) {
23721 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23722 }
23723 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23724 {
23725 PyThreadState* __tstate = wxPyBeginAllowThreads();
23726 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
23727 wxPyEndAllowThreads(__tstate);
23728 if (PyErr_Occurred()) SWIG_fail;
23729 }
23730 resultobj = SWIG_Py_Void();
23731 return resultobj;
23732 fail:
23733 return NULL;
23734 }
23735
23736
23737 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23738 PyObject *resultobj = 0;
23739 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23740 wxBitmap *arg2 = 0 ;
23741 void *argp1 = 0 ;
23742 int res1 = 0 ;
23743 void *argp2 = 0 ;
23744 int res2 = 0 ;
23745 PyObject * obj0 = 0 ;
23746 PyObject * obj1 = 0 ;
23747 char * kwnames[] = {
23748 (char *) "self",(char *) "bmp", NULL
23749 };
23750
23751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23753 if (!SWIG_IsOK(res1)) {
23754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23755 }
23756 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23757 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23758 if (!SWIG_IsOK(res2)) {
23759 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23760 }
23761 if (!argp2) {
23762 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23763 }
23764 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23765 {
23766 PyThreadState* __tstate = wxPyBeginAllowThreads();
23767 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
23768 wxPyEndAllowThreads(__tstate);
23769 if (PyErr_Occurred()) SWIG_fail;
23770 }
23771 resultobj = SWIG_Py_Void();
23772 return resultobj;
23773 fail:
23774 return NULL;
23775 }
23776
23777
23778 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23779 PyObject *resultobj = 0;
23780 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23781 wxString *arg2 = 0 ;
23782 void *argp1 = 0 ;
23783 int res1 = 0 ;
23784 bool temp2 = false ;
23785 PyObject * obj0 = 0 ;
23786 PyObject * obj1 = 0 ;
23787 char * kwnames[] = {
23788 (char *) "self",(char *) "label", NULL
23789 };
23790
23791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
23792 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23793 if (!SWIG_IsOK(res1)) {
23794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23795 }
23796 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23797 {
23798 arg2 = wxString_in_helper(obj1);
23799 if (arg2 == NULL) SWIG_fail;
23800 temp2 = true;
23801 }
23802 {
23803 PyThreadState* __tstate = wxPyBeginAllowThreads();
23804 (arg1)->SetLabel((wxString const &)*arg2);
23805 wxPyEndAllowThreads(__tstate);
23806 if (PyErr_Occurred()) SWIG_fail;
23807 }
23808 resultobj = SWIG_Py_Void();
23809 {
23810 if (temp2)
23811 delete arg2;
23812 }
23813 return resultobj;
23814 fail:
23815 {
23816 if (temp2)
23817 delete arg2;
23818 }
23819 return NULL;
23820 }
23821
23822
23823 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23824 PyObject *resultobj = 0;
23825 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23826 void *argp1 = 0 ;
23827 int res1 = 0 ;
23828 PyObject *swig_obj[1] ;
23829
23830 if (!args) SWIG_fail;
23831 swig_obj[0] = args;
23832 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23833 if (!SWIG_IsOK(res1)) {
23834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Detach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23835 }
23836 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23837 {
23838 PyThreadState* __tstate = wxPyBeginAllowThreads();
23839 (arg1)->Detach();
23840 wxPyEndAllowThreads(__tstate);
23841 if (PyErr_Occurred()) SWIG_fail;
23842 }
23843 resultobj = SWIG_Py_Void();
23844 return resultobj;
23845 fail:
23846 return NULL;
23847 }
23848
23849
23850 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23851 PyObject *resultobj = 0;
23852 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23853 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
23854 void *argp1 = 0 ;
23855 int res1 = 0 ;
23856 void *argp2 = 0 ;
23857 int res2 = 0 ;
23858 PyObject * obj0 = 0 ;
23859 PyObject * obj1 = 0 ;
23860 char * kwnames[] = {
23861 (char *) "self",(char *) "tbar", NULL
23862 };
23863
23864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) SWIG_fail;
23865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23866 if (!SWIG_IsOK(res1)) {
23867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Attach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23868 }
23869 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23870 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23871 if (!SWIG_IsOK(res2)) {
23872 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_Attach" "', expected argument " "2"" of type '" "wxToolBarBase *""'");
23873 }
23874 arg2 = reinterpret_cast< wxToolBarBase * >(argp2);
23875 {
23876 PyThreadState* __tstate = wxPyBeginAllowThreads();
23877 (arg1)->Attach(arg2);
23878 wxPyEndAllowThreads(__tstate);
23879 if (PyErr_Occurred()) SWIG_fail;
23880 }
23881 resultobj = SWIG_Py_Void();
23882 return resultobj;
23883 fail:
23884 return NULL;
23885 }
23886
23887
23888 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23889 PyObject *resultobj = 0;
23890 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23891 PyObject *result = 0 ;
23892 void *argp1 = 0 ;
23893 int res1 = 0 ;
23894 PyObject *swig_obj[1] ;
23895
23896 if (!args) SWIG_fail;
23897 swig_obj[0] = args;
23898 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23899 if (!SWIG_IsOK(res1)) {
23900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23901 }
23902 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23903 {
23904 PyThreadState* __tstate = wxPyBeginAllowThreads();
23905 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
23906 wxPyEndAllowThreads(__tstate);
23907 if (PyErr_Occurred()) SWIG_fail;
23908 }
23909 resultobj = result;
23910 return resultobj;
23911 fail:
23912 return NULL;
23913 }
23914
23915
23916 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23917 PyObject *resultobj = 0;
23918 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23919 PyObject *arg2 = (PyObject *) 0 ;
23920 void *argp1 = 0 ;
23921 int res1 = 0 ;
23922 PyObject * obj0 = 0 ;
23923 PyObject * obj1 = 0 ;
23924 char * kwnames[] = {
23925 (char *) "self",(char *) "clientData", NULL
23926 };
23927
23928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) SWIG_fail;
23929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23930 if (!SWIG_IsOK(res1)) {
23931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23932 }
23933 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23934 arg2 = obj1;
23935 {
23936 PyThreadState* __tstate = wxPyBeginAllowThreads();
23937 wxToolBarToolBase_SetClientData(arg1,arg2);
23938 wxPyEndAllowThreads(__tstate);
23939 if (PyErr_Occurred()) SWIG_fail;
23940 }
23941 resultobj = SWIG_Py_Void();
23942 return resultobj;
23943 fail:
23944 return NULL;
23945 }
23946
23947
23948 SWIGINTERN PyObject *ToolBarToolBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23949 PyObject *obj;
23950 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23951 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarToolBase, SWIG_NewClientData(obj));
23952 return SWIG_Py_Void();
23953 }
23954
23955 SWIGINTERN PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23956 PyObject *resultobj = 0;
23957 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23958 int arg2 ;
23959 wxString *arg3 = 0 ;
23960 wxBitmap *arg4 = 0 ;
23961 wxBitmap const &arg5_defvalue = wxNullBitmap ;
23962 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
23963 wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ;
23964 wxString const &arg7_defvalue = wxPyEmptyString ;
23965 wxString *arg7 = (wxString *) &arg7_defvalue ;
23966 wxString const &arg8_defvalue = wxPyEmptyString ;
23967 wxString *arg8 = (wxString *) &arg8_defvalue ;
23968 PyObject *arg9 = (PyObject *) NULL ;
23969 wxToolBarToolBase *result = 0 ;
23970 void *argp1 = 0 ;
23971 int res1 = 0 ;
23972 int val2 ;
23973 int ecode2 = 0 ;
23974 bool temp3 = false ;
23975 void *argp4 = 0 ;
23976 int res4 = 0 ;
23977 void *argp5 = 0 ;
23978 int res5 = 0 ;
23979 int val6 ;
23980 int ecode6 = 0 ;
23981 bool temp7 = false ;
23982 bool temp8 = false ;
23983 PyObject * obj0 = 0 ;
23984 PyObject * obj1 = 0 ;
23985 PyObject * obj2 = 0 ;
23986 PyObject * obj3 = 0 ;
23987 PyObject * obj4 = 0 ;
23988 PyObject * obj5 = 0 ;
23989 PyObject * obj6 = 0 ;
23990 PyObject * obj7 = 0 ;
23991 PyObject * obj8 = 0 ;
23992 char * kwnames[] = {
23993 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23994 };
23995
23996 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
23997 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23998 if (!SWIG_IsOK(res1)) {
23999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24000 }
24001 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24002 ecode2 = SWIG_AsVal_int(obj1, &val2);
24003 if (!SWIG_IsOK(ecode2)) {
24004 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "2"" of type '" "int""'");
24005 }
24006 arg2 = static_cast< int >(val2);
24007 {
24008 arg3 = wxString_in_helper(obj2);
24009 if (arg3 == NULL) SWIG_fail;
24010 temp3 = true;
24011 }
24012 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
24013 if (!SWIG_IsOK(res4)) {
24014 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
24015 }
24016 if (!argp4) {
24017 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
24018 }
24019 arg4 = reinterpret_cast< wxBitmap * >(argp4);
24020 if (obj4) {
24021 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
24022 if (!SWIG_IsOK(res5)) {
24023 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
24024 }
24025 if (!argp5) {
24026 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
24027 }
24028 arg5 = reinterpret_cast< wxBitmap * >(argp5);
24029 }
24030 if (obj5) {
24031 ecode6 = SWIG_AsVal_int(obj5, &val6);
24032 if (!SWIG_IsOK(ecode6)) {
24033 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "6"" of type '" "wxItemKind""'");
24034 }
24035 arg6 = static_cast< wxItemKind >(val6);
24036 }
24037 if (obj6) {
24038 {
24039 arg7 = wxString_in_helper(obj6);
24040 if (arg7 == NULL) SWIG_fail;
24041 temp7 = true;
24042 }
24043 }
24044 if (obj7) {
24045 {
24046 arg8 = wxString_in_helper(obj7);
24047 if (arg8 == NULL) SWIG_fail;
24048 temp8 = true;
24049 }
24050 }
24051 if (obj8) {
24052 arg9 = obj8;
24053 }
24054 {
24055 PyThreadState* __tstate = wxPyBeginAllowThreads();
24056 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
24057 wxPyEndAllowThreads(__tstate);
24058 if (PyErr_Occurred()) SWIG_fail;
24059 }
24060 {
24061 resultobj = wxPyMake_wxObject(result, (bool)0);
24062 }
24063 {
24064 if (temp3)
24065 delete arg3;
24066 }
24067 {
24068 if (temp7)
24069 delete arg7;
24070 }
24071 {
24072 if (temp8)
24073 delete arg8;
24074 }
24075 return resultobj;
24076 fail:
24077 {
24078 if (temp3)
24079 delete arg3;
24080 }
24081 {
24082 if (temp7)
24083 delete arg7;
24084 }
24085 {
24086 if (temp8)
24087 delete arg8;
24088 }
24089 return NULL;
24090 }
24091
24092
24093 SWIGINTERN PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24094 PyObject *resultobj = 0;
24095 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24096 size_t arg2 ;
24097 int arg3 ;
24098 wxString *arg4 = 0 ;
24099 wxBitmap *arg5 = 0 ;
24100 wxBitmap const &arg6_defvalue = wxNullBitmap ;
24101 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
24102 wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ;
24103 wxString const &arg8_defvalue = wxPyEmptyString ;
24104 wxString *arg8 = (wxString *) &arg8_defvalue ;
24105 wxString const &arg9_defvalue = wxPyEmptyString ;
24106 wxString *arg9 = (wxString *) &arg9_defvalue ;
24107 PyObject *arg10 = (PyObject *) NULL ;
24108 wxToolBarToolBase *result = 0 ;
24109 void *argp1 = 0 ;
24110 int res1 = 0 ;
24111 size_t val2 ;
24112 int ecode2 = 0 ;
24113 int val3 ;
24114 int ecode3 = 0 ;
24115 bool temp4 = false ;
24116 void *argp5 = 0 ;
24117 int res5 = 0 ;
24118 void *argp6 = 0 ;
24119 int res6 = 0 ;
24120 int val7 ;
24121 int ecode7 = 0 ;
24122 bool temp8 = false ;
24123 bool temp9 = false ;
24124 PyObject * obj0 = 0 ;
24125 PyObject * obj1 = 0 ;
24126 PyObject * obj2 = 0 ;
24127 PyObject * obj3 = 0 ;
24128 PyObject * obj4 = 0 ;
24129 PyObject * obj5 = 0 ;
24130 PyObject * obj6 = 0 ;
24131 PyObject * obj7 = 0 ;
24132 PyObject * obj8 = 0 ;
24133 PyObject * obj9 = 0 ;
24134 char * kwnames[] = {
24135 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
24136 };
24137
24138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
24139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24140 if (!SWIG_IsOK(res1)) {
24141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24142 }
24143 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24144 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24145 if (!SWIG_IsOK(ecode2)) {
24146 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "2"" of type '" "size_t""'");
24147 }
24148 arg2 = static_cast< size_t >(val2);
24149 ecode3 = SWIG_AsVal_int(obj2, &val3);
24150 if (!SWIG_IsOK(ecode3)) {
24151 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "3"" of type '" "int""'");
24152 }
24153 arg3 = static_cast< int >(val3);
24154 {
24155 arg4 = wxString_in_helper(obj3);
24156 if (arg4 == NULL) SWIG_fail;
24157 temp4 = true;
24158 }
24159 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
24160 if (!SWIG_IsOK(res5)) {
24161 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
24162 }
24163 if (!argp5) {
24164 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
24165 }
24166 arg5 = reinterpret_cast< wxBitmap * >(argp5);
24167 if (obj5) {
24168 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxBitmap, 0 | 0);
24169 if (!SWIG_IsOK(res6)) {
24170 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
24171 }
24172 if (!argp6) {
24173 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
24174 }
24175 arg6 = reinterpret_cast< wxBitmap * >(argp6);
24176 }
24177 if (obj6) {
24178 ecode7 = SWIG_AsVal_int(obj6, &val7);
24179 if (!SWIG_IsOK(ecode7)) {
24180 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "7"" of type '" "wxItemKind""'");
24181 }
24182 arg7 = static_cast< wxItemKind >(val7);
24183 }
24184 if (obj7) {
24185 {
24186 arg8 = wxString_in_helper(obj7);
24187 if (arg8 == NULL) SWIG_fail;
24188 temp8 = true;
24189 }
24190 }
24191 if (obj8) {
24192 {
24193 arg9 = wxString_in_helper(obj8);
24194 if (arg9 == NULL) SWIG_fail;
24195 temp9 = true;
24196 }
24197 }
24198 if (obj9) {
24199 arg10 = obj9;
24200 }
24201 {
24202 PyThreadState* __tstate = wxPyBeginAllowThreads();
24203 result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10);
24204 wxPyEndAllowThreads(__tstate);
24205 if (PyErr_Occurred()) SWIG_fail;
24206 }
24207 {
24208 resultobj = wxPyMake_wxObject(result, (bool)0);
24209 }
24210 {
24211 if (temp4)
24212 delete arg4;
24213 }
24214 {
24215 if (temp8)
24216 delete arg8;
24217 }
24218 {
24219 if (temp9)
24220 delete arg9;
24221 }
24222 return resultobj;
24223 fail:
24224 {
24225 if (temp4)
24226 delete arg4;
24227 }
24228 {
24229 if (temp8)
24230 delete arg8;
24231 }
24232 {
24233 if (temp9)
24234 delete arg9;
24235 }
24236 return NULL;
24237 }
24238
24239
24240 SWIGINTERN PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24241 PyObject *resultobj = 0;
24242 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24243 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
24244 wxToolBarToolBase *result = 0 ;
24245 void *argp1 = 0 ;
24246 int res1 = 0 ;
24247 void *argp2 = 0 ;
24248 int res2 = 0 ;
24249 PyObject * obj0 = 0 ;
24250 PyObject * obj1 = 0 ;
24251 char * kwnames[] = {
24252 (char *) "self",(char *) "tool", NULL
24253 };
24254
24255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) SWIG_fail;
24256 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24257 if (!SWIG_IsOK(res1)) {
24258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24259 }
24260 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24261 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
24262 if (!SWIG_IsOK(res2)) {
24263 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "2"" of type '" "wxToolBarToolBase *""'");
24264 }
24265 arg2 = reinterpret_cast< wxToolBarToolBase * >(argp2);
24266 {
24267 PyThreadState* __tstate = wxPyBeginAllowThreads();
24268 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
24269 wxPyEndAllowThreads(__tstate);
24270 if (PyErr_Occurred()) SWIG_fail;
24271 }
24272 {
24273 resultobj = wxPyMake_wxObject(result, (bool)0);
24274 }
24275 return resultobj;
24276 fail:
24277 return NULL;
24278 }
24279
24280
24281 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24282 PyObject *resultobj = 0;
24283 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24284 size_t arg2 ;
24285 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
24286 wxToolBarToolBase *result = 0 ;
24287 void *argp1 = 0 ;
24288 int res1 = 0 ;
24289 size_t val2 ;
24290 int ecode2 = 0 ;
24291 void *argp3 = 0 ;
24292 int res3 = 0 ;
24293 PyObject * obj0 = 0 ;
24294 PyObject * obj1 = 0 ;
24295 PyObject * obj2 = 0 ;
24296 char * kwnames[] = {
24297 (char *) "self",(char *) "pos",(char *) "tool", NULL
24298 };
24299
24300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24302 if (!SWIG_IsOK(res1)) {
24303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24304 }
24305 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24306 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24307 if (!SWIG_IsOK(ecode2)) {
24308 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "2"" of type '" "size_t""'");
24309 }
24310 arg2 = static_cast< size_t >(val2);
24311 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
24312 if (!SWIG_IsOK(res3)) {
24313 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "3"" of type '" "wxToolBarToolBase *""'");
24314 }
24315 arg3 = reinterpret_cast< wxToolBarToolBase * >(argp3);
24316 {
24317 PyThreadState* __tstate = wxPyBeginAllowThreads();
24318 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
24319 wxPyEndAllowThreads(__tstate);
24320 if (PyErr_Occurred()) SWIG_fail;
24321 }
24322 {
24323 resultobj = wxPyMake_wxObject(result, (bool)0);
24324 }
24325 return resultobj;
24326 fail:
24327 return NULL;
24328 }
24329
24330
24331 SWIGINTERN PyObject *_wrap_ToolBarBase_AddControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24332 PyObject *resultobj = 0;
24333 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24334 wxControl *arg2 = (wxControl *) 0 ;
24335 wxToolBarToolBase *result = 0 ;
24336 void *argp1 = 0 ;
24337 int res1 = 0 ;
24338 void *argp2 = 0 ;
24339 int res2 = 0 ;
24340 PyObject * obj0 = 0 ;
24341 PyObject * obj1 = 0 ;
24342 char * kwnames[] = {
24343 (char *) "self",(char *) "control", NULL
24344 };
24345
24346 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) SWIG_fail;
24347 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24348 if (!SWIG_IsOK(res1)) {
24349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24350 }
24351 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24352 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxControl, 0 | 0 );
24353 if (!SWIG_IsOK(res2)) {
24354 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddControl" "', expected argument " "2"" of type '" "wxControl *""'");
24355 }
24356 arg2 = reinterpret_cast< wxControl * >(argp2);
24357 {
24358 PyThreadState* __tstate = wxPyBeginAllowThreads();
24359 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
24360 wxPyEndAllowThreads(__tstate);
24361 if (PyErr_Occurred()) SWIG_fail;
24362 }
24363 {
24364 resultobj = wxPyMake_wxObject(result, (bool)0);
24365 }
24366 return resultobj;
24367 fail:
24368 return NULL;
24369 }
24370
24371
24372 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24373 PyObject *resultobj = 0;
24374 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24375 size_t arg2 ;
24376 wxControl *arg3 = (wxControl *) 0 ;
24377 wxToolBarToolBase *result = 0 ;
24378 void *argp1 = 0 ;
24379 int res1 = 0 ;
24380 size_t val2 ;
24381 int ecode2 = 0 ;
24382 void *argp3 = 0 ;
24383 int res3 = 0 ;
24384 PyObject * obj0 = 0 ;
24385 PyObject * obj1 = 0 ;
24386 PyObject * obj2 = 0 ;
24387 char * kwnames[] = {
24388 (char *) "self",(char *) "pos",(char *) "control", NULL
24389 };
24390
24391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24393 if (!SWIG_IsOK(res1)) {
24394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24395 }
24396 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24397 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24398 if (!SWIG_IsOK(ecode2)) {
24399 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertControl" "', expected argument " "2"" of type '" "size_t""'");
24400 }
24401 arg2 = static_cast< size_t >(val2);
24402 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxControl, 0 | 0 );
24403 if (!SWIG_IsOK(res3)) {
24404 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertControl" "', expected argument " "3"" of type '" "wxControl *""'");
24405 }
24406 arg3 = reinterpret_cast< wxControl * >(argp3);
24407 {
24408 PyThreadState* __tstate = wxPyBeginAllowThreads();
24409 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
24410 wxPyEndAllowThreads(__tstate);
24411 if (PyErr_Occurred()) SWIG_fail;
24412 }
24413 {
24414 resultobj = wxPyMake_wxObject(result, (bool)0);
24415 }
24416 return resultobj;
24417 fail:
24418 return NULL;
24419 }
24420
24421
24422 SWIGINTERN PyObject *_wrap_ToolBarBase_FindControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24423 PyObject *resultobj = 0;
24424 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24425 int arg2 ;
24426 wxControl *result = 0 ;
24427 void *argp1 = 0 ;
24428 int res1 = 0 ;
24429 int val2 ;
24430 int ecode2 = 0 ;
24431 PyObject * obj0 = 0 ;
24432 PyObject * obj1 = 0 ;
24433 char * kwnames[] = {
24434 (char *) "self",(char *) "id", NULL
24435 };
24436
24437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) SWIG_fail;
24438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24439 if (!SWIG_IsOK(res1)) {
24440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24441 }
24442 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24443 ecode2 = SWIG_AsVal_int(obj1, &val2);
24444 if (!SWIG_IsOK(ecode2)) {
24445 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindControl" "', expected argument " "2"" of type '" "int""'");
24446 }
24447 arg2 = static_cast< int >(val2);
24448 {
24449 PyThreadState* __tstate = wxPyBeginAllowThreads();
24450 result = (wxControl *)(arg1)->FindControl(arg2);
24451 wxPyEndAllowThreads(__tstate);
24452 if (PyErr_Occurred()) SWIG_fail;
24453 }
24454 {
24455 resultobj = wxPyMake_wxObject(result, 0);
24456 }
24457 return resultobj;
24458 fail:
24459 return NULL;
24460 }
24461
24462
24463 SWIGINTERN PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24464 PyObject *resultobj = 0;
24465 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24466 wxToolBarToolBase *result = 0 ;
24467 void *argp1 = 0 ;
24468 int res1 = 0 ;
24469 PyObject *swig_obj[1] ;
24470
24471 if (!args) SWIG_fail;
24472 swig_obj[0] = args;
24473 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24474 if (!SWIG_IsOK(res1)) {
24475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24476 }
24477 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24478 {
24479 PyThreadState* __tstate = wxPyBeginAllowThreads();
24480 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
24481 wxPyEndAllowThreads(__tstate);
24482 if (PyErr_Occurred()) SWIG_fail;
24483 }
24484 {
24485 resultobj = wxPyMake_wxObject(result, (bool)0);
24486 }
24487 return resultobj;
24488 fail:
24489 return NULL;
24490 }
24491
24492
24493 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24494 PyObject *resultobj = 0;
24495 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24496 size_t arg2 ;
24497 wxToolBarToolBase *result = 0 ;
24498 void *argp1 = 0 ;
24499 int res1 = 0 ;
24500 size_t val2 ;
24501 int ecode2 = 0 ;
24502 PyObject * obj0 = 0 ;
24503 PyObject * obj1 = 0 ;
24504 char * kwnames[] = {
24505 (char *) "self",(char *) "pos", NULL
24506 };
24507
24508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) SWIG_fail;
24509 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24510 if (!SWIG_IsOK(res1)) {
24511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24512 }
24513 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24514 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24515 if (!SWIG_IsOK(ecode2)) {
24516 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "2"" of type '" "size_t""'");
24517 }
24518 arg2 = static_cast< size_t >(val2);
24519 {
24520 PyThreadState* __tstate = wxPyBeginAllowThreads();
24521 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
24522 wxPyEndAllowThreads(__tstate);
24523 if (PyErr_Occurred()) SWIG_fail;
24524 }
24525 {
24526 resultobj = wxPyMake_wxObject(result, (bool)0);
24527 }
24528 return resultobj;
24529 fail:
24530 return NULL;
24531 }
24532
24533
24534 SWIGINTERN PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24535 PyObject *resultobj = 0;
24536 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24537 int arg2 ;
24538 wxToolBarToolBase *result = 0 ;
24539 void *argp1 = 0 ;
24540 int res1 = 0 ;
24541 int val2 ;
24542 int ecode2 = 0 ;
24543 PyObject * obj0 = 0 ;
24544 PyObject * obj1 = 0 ;
24545 char * kwnames[] = {
24546 (char *) "self",(char *) "id", NULL
24547 };
24548
24549 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) SWIG_fail;
24550 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24551 if (!SWIG_IsOK(res1)) {
24552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24553 }
24554 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24555 ecode2 = SWIG_AsVal_int(obj1, &val2);
24556 if (!SWIG_IsOK(ecode2)) {
24557 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "2"" of type '" "int""'");
24558 }
24559 arg2 = static_cast< int >(val2);
24560 {
24561 PyThreadState* __tstate = wxPyBeginAllowThreads();
24562 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
24563 wxPyEndAllowThreads(__tstate);
24564 if (PyErr_Occurred()) SWIG_fail;
24565 }
24566 {
24567 resultobj = wxPyMake_wxObject(result, (bool)0);
24568 }
24569 return resultobj;
24570 fail:
24571 return NULL;
24572 }
24573
24574
24575 SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24576 PyObject *resultobj = 0;
24577 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24578 size_t arg2 ;
24579 bool result;
24580 void *argp1 = 0 ;
24581 int res1 = 0 ;
24582 size_t val2 ;
24583 int ecode2 = 0 ;
24584 PyObject * obj0 = 0 ;
24585 PyObject * obj1 = 0 ;
24586 char * kwnames[] = {
24587 (char *) "self",(char *) "pos", NULL
24588 };
24589
24590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) SWIG_fail;
24591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24592 if (!SWIG_IsOK(res1)) {
24593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24594 }
24595 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24596 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24597 if (!SWIG_IsOK(ecode2)) {
24598 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "2"" of type '" "size_t""'");
24599 }
24600 arg2 = static_cast< size_t >(val2);
24601 {
24602 PyThreadState* __tstate = wxPyBeginAllowThreads();
24603 result = (bool)(arg1)->DeleteToolByPos(arg2);
24604 wxPyEndAllowThreads(__tstate);
24605 if (PyErr_Occurred()) SWIG_fail;
24606 }
24607 {
24608 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24609 }
24610 return resultobj;
24611 fail:
24612 return NULL;
24613 }
24614
24615
24616 SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24617 PyObject *resultobj = 0;
24618 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24619 int arg2 ;
24620 bool result;
24621 void *argp1 = 0 ;
24622 int res1 = 0 ;
24623 int val2 ;
24624 int ecode2 = 0 ;
24625 PyObject * obj0 = 0 ;
24626 PyObject * obj1 = 0 ;
24627 char * kwnames[] = {
24628 (char *) "self",(char *) "id", NULL
24629 };
24630
24631 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) SWIG_fail;
24632 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24633 if (!SWIG_IsOK(res1)) {
24634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24635 }
24636 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24637 ecode2 = SWIG_AsVal_int(obj1, &val2);
24638 if (!SWIG_IsOK(ecode2)) {
24639 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "2"" of type '" "int""'");
24640 }
24641 arg2 = static_cast< int >(val2);
24642 {
24643 PyThreadState* __tstate = wxPyBeginAllowThreads();
24644 result = (bool)(arg1)->DeleteTool(arg2);
24645 wxPyEndAllowThreads(__tstate);
24646 if (PyErr_Occurred()) SWIG_fail;
24647 }
24648 {
24649 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24650 }
24651 return resultobj;
24652 fail:
24653 return NULL;
24654 }
24655
24656
24657 SWIGINTERN PyObject *_wrap_ToolBarBase_ClearTools(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24658 PyObject *resultobj = 0;
24659 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24660 void *argp1 = 0 ;
24661 int res1 = 0 ;
24662 PyObject *swig_obj[1] ;
24663
24664 if (!args) SWIG_fail;
24665 swig_obj[0] = args;
24666 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24667 if (!SWIG_IsOK(res1)) {
24668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ClearTools" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24669 }
24670 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24671 {
24672 PyThreadState* __tstate = wxPyBeginAllowThreads();
24673 (arg1)->ClearTools();
24674 wxPyEndAllowThreads(__tstate);
24675 if (PyErr_Occurred()) SWIG_fail;
24676 }
24677 resultobj = SWIG_Py_Void();
24678 return resultobj;
24679 fail:
24680 return NULL;
24681 }
24682
24683
24684 SWIGINTERN PyObject *_wrap_ToolBarBase_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24685 PyObject *resultobj = 0;
24686 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24687 bool result;
24688 void *argp1 = 0 ;
24689 int res1 = 0 ;
24690 PyObject *swig_obj[1] ;
24691
24692 if (!args) SWIG_fail;
24693 swig_obj[0] = args;
24694 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24695 if (!SWIG_IsOK(res1)) {
24696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_Realize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24697 }
24698 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24699 {
24700 PyThreadState* __tstate = wxPyBeginAllowThreads();
24701 result = (bool)(arg1)->Realize();
24702 wxPyEndAllowThreads(__tstate);
24703 if (PyErr_Occurred()) SWIG_fail;
24704 }
24705 {
24706 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24707 }
24708 return resultobj;
24709 fail:
24710 return NULL;
24711 }
24712
24713
24714 SWIGINTERN PyObject *_wrap_ToolBarBase_EnableTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24715 PyObject *resultobj = 0;
24716 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24717 int arg2 ;
24718 bool arg3 ;
24719 void *argp1 = 0 ;
24720 int res1 = 0 ;
24721 int val2 ;
24722 int ecode2 = 0 ;
24723 bool val3 ;
24724 int ecode3 = 0 ;
24725 PyObject * obj0 = 0 ;
24726 PyObject * obj1 = 0 ;
24727 PyObject * obj2 = 0 ;
24728 char * kwnames[] = {
24729 (char *) "self",(char *) "id",(char *) "enable", NULL
24730 };
24731
24732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24734 if (!SWIG_IsOK(res1)) {
24735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_EnableTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24736 }
24737 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24738 ecode2 = SWIG_AsVal_int(obj1, &val2);
24739 if (!SWIG_IsOK(ecode2)) {
24740 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_EnableTool" "', expected argument " "2"" of type '" "int""'");
24741 }
24742 arg2 = static_cast< int >(val2);
24743 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24744 if (!SWIG_IsOK(ecode3)) {
24745 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_EnableTool" "', expected argument " "3"" of type '" "bool""'");
24746 }
24747 arg3 = static_cast< bool >(val3);
24748 {
24749 PyThreadState* __tstate = wxPyBeginAllowThreads();
24750 (arg1)->EnableTool(arg2,arg3);
24751 wxPyEndAllowThreads(__tstate);
24752 if (PyErr_Occurred()) SWIG_fail;
24753 }
24754 resultobj = SWIG_Py_Void();
24755 return resultobj;
24756 fail:
24757 return NULL;
24758 }
24759
24760
24761 SWIGINTERN PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24762 PyObject *resultobj = 0;
24763 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24764 int arg2 ;
24765 bool arg3 ;
24766 void *argp1 = 0 ;
24767 int res1 = 0 ;
24768 int val2 ;
24769 int ecode2 = 0 ;
24770 bool val3 ;
24771 int ecode3 = 0 ;
24772 PyObject * obj0 = 0 ;
24773 PyObject * obj1 = 0 ;
24774 PyObject * obj2 = 0 ;
24775 char * kwnames[] = {
24776 (char *) "self",(char *) "id",(char *) "toggle", NULL
24777 };
24778
24779 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24780 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24781 if (!SWIG_IsOK(res1)) {
24782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24783 }
24784 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24785 ecode2 = SWIG_AsVal_int(obj1, &val2);
24786 if (!SWIG_IsOK(ecode2)) {
24787 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "2"" of type '" "int""'");
24788 }
24789 arg2 = static_cast< int >(val2);
24790 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24791 if (!SWIG_IsOK(ecode3)) {
24792 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "3"" of type '" "bool""'");
24793 }
24794 arg3 = static_cast< bool >(val3);
24795 {
24796 PyThreadState* __tstate = wxPyBeginAllowThreads();
24797 (arg1)->ToggleTool(arg2,arg3);
24798 wxPyEndAllowThreads(__tstate);
24799 if (PyErr_Occurred()) SWIG_fail;
24800 }
24801 resultobj = SWIG_Py_Void();
24802 return resultobj;
24803 fail:
24804 return NULL;
24805 }
24806
24807
24808 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24809 PyObject *resultobj = 0;
24810 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24811 int arg2 ;
24812 bool arg3 ;
24813 void *argp1 = 0 ;
24814 int res1 = 0 ;
24815 int val2 ;
24816 int ecode2 = 0 ;
24817 bool val3 ;
24818 int ecode3 = 0 ;
24819 PyObject * obj0 = 0 ;
24820 PyObject * obj1 = 0 ;
24821 PyObject * obj2 = 0 ;
24822 char * kwnames[] = {
24823 (char *) "self",(char *) "id",(char *) "toggle", NULL
24824 };
24825
24826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24828 if (!SWIG_IsOK(res1)) {
24829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24830 }
24831 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24832 ecode2 = SWIG_AsVal_int(obj1, &val2);
24833 if (!SWIG_IsOK(ecode2)) {
24834 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToggle" "', expected argument " "2"" of type '" "int""'");
24835 }
24836 arg2 = static_cast< int >(val2);
24837 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24838 if (!SWIG_IsOK(ecode3)) {
24839 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetToggle" "', expected argument " "3"" of type '" "bool""'");
24840 }
24841 arg3 = static_cast< bool >(val3);
24842 {
24843 PyThreadState* __tstate = wxPyBeginAllowThreads();
24844 (arg1)->SetToggle(arg2,arg3);
24845 wxPyEndAllowThreads(__tstate);
24846 if (PyErr_Occurred()) SWIG_fail;
24847 }
24848 resultobj = SWIG_Py_Void();
24849 return resultobj;
24850 fail:
24851 return NULL;
24852 }
24853
24854
24855 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24856 PyObject *resultobj = 0;
24857 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24858 int arg2 ;
24859 PyObject *result = 0 ;
24860 void *argp1 = 0 ;
24861 int res1 = 0 ;
24862 int val2 ;
24863 int ecode2 = 0 ;
24864 PyObject * obj0 = 0 ;
24865 PyObject * obj1 = 0 ;
24866 char * kwnames[] = {
24867 (char *) "self",(char *) "id", NULL
24868 };
24869
24870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) SWIG_fail;
24871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24872 if (!SWIG_IsOK(res1)) {
24873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24874 }
24875 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24876 ecode2 = SWIG_AsVal_int(obj1, &val2);
24877 if (!SWIG_IsOK(ecode2)) {
24878 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "2"" of type '" "int""'");
24879 }
24880 arg2 = static_cast< int >(val2);
24881 {
24882 PyThreadState* __tstate = wxPyBeginAllowThreads();
24883 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
24884 wxPyEndAllowThreads(__tstate);
24885 if (PyErr_Occurred()) SWIG_fail;
24886 }
24887 resultobj = result;
24888 return resultobj;
24889 fail:
24890 return NULL;
24891 }
24892
24893
24894 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24895 PyObject *resultobj = 0;
24896 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24897 int arg2 ;
24898 PyObject *arg3 = (PyObject *) 0 ;
24899 void *argp1 = 0 ;
24900 int res1 = 0 ;
24901 int val2 ;
24902 int ecode2 = 0 ;
24903 PyObject * obj0 = 0 ;
24904 PyObject * obj1 = 0 ;
24905 PyObject * obj2 = 0 ;
24906 char * kwnames[] = {
24907 (char *) "self",(char *) "id",(char *) "clientData", NULL
24908 };
24909
24910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24912 if (!SWIG_IsOK(res1)) {
24913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24914 }
24915 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24916 ecode2 = SWIG_AsVal_int(obj1, &val2);
24917 if (!SWIG_IsOK(ecode2)) {
24918 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "2"" of type '" "int""'");
24919 }
24920 arg2 = static_cast< int >(val2);
24921 arg3 = obj2;
24922 {
24923 PyThreadState* __tstate = wxPyBeginAllowThreads();
24924 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
24925 wxPyEndAllowThreads(__tstate);
24926 if (PyErr_Occurred()) SWIG_fail;
24927 }
24928 resultobj = SWIG_Py_Void();
24929 return resultobj;
24930 fail:
24931 return NULL;
24932 }
24933
24934
24935 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24936 PyObject *resultobj = 0;
24937 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24938 int arg2 ;
24939 int result;
24940 void *argp1 = 0 ;
24941 int res1 = 0 ;
24942 int val2 ;
24943 int ecode2 = 0 ;
24944 PyObject * obj0 = 0 ;
24945 PyObject * obj1 = 0 ;
24946 char * kwnames[] = {
24947 (char *) "self",(char *) "id", NULL
24948 };
24949
24950 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) SWIG_fail;
24951 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24952 if (!SWIG_IsOK(res1)) {
24953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
24954 }
24955 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24956 ecode2 = SWIG_AsVal_int(obj1, &val2);
24957 if (!SWIG_IsOK(ecode2)) {
24958 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "2"" of type '" "int""'");
24959 }
24960 arg2 = static_cast< int >(val2);
24961 {
24962 PyThreadState* __tstate = wxPyBeginAllowThreads();
24963 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
24964 wxPyEndAllowThreads(__tstate);
24965 if (PyErr_Occurred()) SWIG_fail;
24966 }
24967 resultobj = SWIG_From_int(static_cast< int >(result));
24968 return resultobj;
24969 fail:
24970 return NULL;
24971 }
24972
24973
24974 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24975 PyObject *resultobj = 0;
24976 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24977 int arg2 ;
24978 bool result;
24979 void *argp1 = 0 ;
24980 int res1 = 0 ;
24981 int val2 ;
24982 int ecode2 = 0 ;
24983 PyObject * obj0 = 0 ;
24984 PyObject * obj1 = 0 ;
24985 char * kwnames[] = {
24986 (char *) "self",(char *) "id", NULL
24987 };
24988
24989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) SWIG_fail;
24990 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24991 if (!SWIG_IsOK(res1)) {
24992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolState" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24993 }
24994 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24995 ecode2 = SWIG_AsVal_int(obj1, &val2);
24996 if (!SWIG_IsOK(ecode2)) {
24997 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolState" "', expected argument " "2"" of type '" "int""'");
24998 }
24999 arg2 = static_cast< int >(val2);
25000 {
25001 PyThreadState* __tstate = wxPyBeginAllowThreads();
25002 result = (bool)(arg1)->GetToolState(arg2);
25003 wxPyEndAllowThreads(__tstate);
25004 if (PyErr_Occurred()) SWIG_fail;
25005 }
25006 {
25007 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25008 }
25009 return resultobj;
25010 fail:
25011 return NULL;
25012 }
25013
25014
25015 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25016 PyObject *resultobj = 0;
25017 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25018 int arg2 ;
25019 bool result;
25020 void *argp1 = 0 ;
25021 int res1 = 0 ;
25022 int val2 ;
25023 int ecode2 = 0 ;
25024 PyObject * obj0 = 0 ;
25025 PyObject * obj1 = 0 ;
25026 char * kwnames[] = {
25027 (char *) "self",(char *) "id", NULL
25028 };
25029
25030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
25031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25032 if (!SWIG_IsOK(res1)) {
25033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25034 }
25035 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25036 ecode2 = SWIG_AsVal_int(obj1, &val2);
25037 if (!SWIG_IsOK(ecode2)) {
25038 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "2"" of type '" "int""'");
25039 }
25040 arg2 = static_cast< int >(val2);
25041 {
25042 PyThreadState* __tstate = wxPyBeginAllowThreads();
25043 result = (bool)(arg1)->GetToolEnabled(arg2);
25044 wxPyEndAllowThreads(__tstate);
25045 if (PyErr_Occurred()) SWIG_fail;
25046 }
25047 {
25048 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25049 }
25050 return resultobj;
25051 fail:
25052 return NULL;
25053 }
25054
25055
25056 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25057 PyObject *resultobj = 0;
25058 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25059 int arg2 ;
25060 wxString *arg3 = 0 ;
25061 void *argp1 = 0 ;
25062 int res1 = 0 ;
25063 int val2 ;
25064 int ecode2 = 0 ;
25065 bool temp3 = false ;
25066 PyObject * obj0 = 0 ;
25067 PyObject * obj1 = 0 ;
25068 PyObject * obj2 = 0 ;
25069 char * kwnames[] = {
25070 (char *) "self",(char *) "id",(char *) "helpString", NULL
25071 };
25072
25073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25075 if (!SWIG_IsOK(res1)) {
25076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25077 }
25078 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25079 ecode2 = SWIG_AsVal_int(obj1, &val2);
25080 if (!SWIG_IsOK(ecode2)) {
25081 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
25082 }
25083 arg2 = static_cast< int >(val2);
25084 {
25085 arg3 = wxString_in_helper(obj2);
25086 if (arg3 == NULL) SWIG_fail;
25087 temp3 = true;
25088 }
25089 {
25090 PyThreadState* __tstate = wxPyBeginAllowThreads();
25091 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
25092 wxPyEndAllowThreads(__tstate);
25093 if (PyErr_Occurred()) SWIG_fail;
25094 }
25095 resultobj = SWIG_Py_Void();
25096 {
25097 if (temp3)
25098 delete arg3;
25099 }
25100 return resultobj;
25101 fail:
25102 {
25103 if (temp3)
25104 delete arg3;
25105 }
25106 return NULL;
25107 }
25108
25109
25110 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25111 PyObject *resultobj = 0;
25112 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25113 int arg2 ;
25114 wxString result;
25115 void *argp1 = 0 ;
25116 int res1 = 0 ;
25117 int val2 ;
25118 int ecode2 = 0 ;
25119 PyObject * obj0 = 0 ;
25120 PyObject * obj1 = 0 ;
25121 char * kwnames[] = {
25122 (char *) "self",(char *) "id", NULL
25123 };
25124
25125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
25126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25127 if (!SWIG_IsOK(res1)) {
25128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25129 }
25130 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25131 ecode2 = SWIG_AsVal_int(obj1, &val2);
25132 if (!SWIG_IsOK(ecode2)) {
25133 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
25134 }
25135 arg2 = static_cast< int >(val2);
25136 {
25137 PyThreadState* __tstate = wxPyBeginAllowThreads();
25138 result = (arg1)->GetToolShortHelp(arg2);
25139 wxPyEndAllowThreads(__tstate);
25140 if (PyErr_Occurred()) SWIG_fail;
25141 }
25142 {
25143 #if wxUSE_UNICODE
25144 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25145 #else
25146 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25147 #endif
25148 }
25149 return resultobj;
25150 fail:
25151 return NULL;
25152 }
25153
25154
25155 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25156 PyObject *resultobj = 0;
25157 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25158 int arg2 ;
25159 wxString *arg3 = 0 ;
25160 void *argp1 = 0 ;
25161 int res1 = 0 ;
25162 int val2 ;
25163 int ecode2 = 0 ;
25164 bool temp3 = false ;
25165 PyObject * obj0 = 0 ;
25166 PyObject * obj1 = 0 ;
25167 PyObject * obj2 = 0 ;
25168 char * kwnames[] = {
25169 (char *) "self",(char *) "id",(char *) "helpString", NULL
25170 };
25171
25172 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25173 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25174 if (!SWIG_IsOK(res1)) {
25175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25176 }
25177 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25178 ecode2 = SWIG_AsVal_int(obj1, &val2);
25179 if (!SWIG_IsOK(ecode2)) {
25180 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
25181 }
25182 arg2 = static_cast< int >(val2);
25183 {
25184 arg3 = wxString_in_helper(obj2);
25185 if (arg3 == NULL) SWIG_fail;
25186 temp3 = true;
25187 }
25188 {
25189 PyThreadState* __tstate = wxPyBeginAllowThreads();
25190 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
25191 wxPyEndAllowThreads(__tstate);
25192 if (PyErr_Occurred()) SWIG_fail;
25193 }
25194 resultobj = SWIG_Py_Void();
25195 {
25196 if (temp3)
25197 delete arg3;
25198 }
25199 return resultobj;
25200 fail:
25201 {
25202 if (temp3)
25203 delete arg3;
25204 }
25205 return NULL;
25206 }
25207
25208
25209 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25210 PyObject *resultobj = 0;
25211 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25212 int arg2 ;
25213 wxString result;
25214 void *argp1 = 0 ;
25215 int res1 = 0 ;
25216 int val2 ;
25217 int ecode2 = 0 ;
25218 PyObject * obj0 = 0 ;
25219 PyObject * obj1 = 0 ;
25220 char * kwnames[] = {
25221 (char *) "self",(char *) "id", NULL
25222 };
25223
25224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
25225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25226 if (!SWIG_IsOK(res1)) {
25227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25228 }
25229 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25230 ecode2 = SWIG_AsVal_int(obj1, &val2);
25231 if (!SWIG_IsOK(ecode2)) {
25232 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
25233 }
25234 arg2 = static_cast< int >(val2);
25235 {
25236 PyThreadState* __tstate = wxPyBeginAllowThreads();
25237 result = (arg1)->GetToolLongHelp(arg2);
25238 wxPyEndAllowThreads(__tstate);
25239 if (PyErr_Occurred()) SWIG_fail;
25240 }
25241 {
25242 #if wxUSE_UNICODE
25243 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25244 #else
25245 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25246 #endif
25247 }
25248 return resultobj;
25249 fail:
25250 return NULL;
25251 }
25252
25253
25254 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25255 PyObject *resultobj = 0;
25256 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25257 int arg2 ;
25258 int arg3 ;
25259 void *argp1 = 0 ;
25260 int res1 = 0 ;
25261 int val2 ;
25262 int ecode2 = 0 ;
25263 int val3 ;
25264 int ecode3 = 0 ;
25265 PyObject * obj0 = 0 ;
25266 PyObject * obj1 = 0 ;
25267 PyObject * obj2 = 0 ;
25268 char * kwnames[] = {
25269 (char *) "self",(char *) "x",(char *) "y", NULL
25270 };
25271
25272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25274 if (!SWIG_IsOK(res1)) {
25275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25276 }
25277 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25278 ecode2 = SWIG_AsVal_int(obj1, &val2);
25279 if (!SWIG_IsOK(ecode2)) {
25280 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "2"" of type '" "int""'");
25281 }
25282 arg2 = static_cast< int >(val2);
25283 ecode3 = SWIG_AsVal_int(obj2, &val3);
25284 if (!SWIG_IsOK(ecode3)) {
25285 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "3"" of type '" "int""'");
25286 }
25287 arg3 = static_cast< int >(val3);
25288 {
25289 PyThreadState* __tstate = wxPyBeginAllowThreads();
25290 (arg1)->SetMargins(arg2,arg3);
25291 wxPyEndAllowThreads(__tstate);
25292 if (PyErr_Occurred()) SWIG_fail;
25293 }
25294 resultobj = SWIG_Py_Void();
25295 return resultobj;
25296 fail:
25297 return NULL;
25298 }
25299
25300
25301 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25302 PyObject *resultobj = 0;
25303 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25304 wxSize *arg2 = 0 ;
25305 void *argp1 = 0 ;
25306 int res1 = 0 ;
25307 wxSize temp2 ;
25308 PyObject * obj0 = 0 ;
25309 PyObject * obj1 = 0 ;
25310 char * kwnames[] = {
25311 (char *) "self",(char *) "size", NULL
25312 };
25313
25314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail;
25315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25316 if (!SWIG_IsOK(res1)) {
25317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25318 }
25319 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25320 {
25321 arg2 = &temp2;
25322 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25323 }
25324 {
25325 PyThreadState* __tstate = wxPyBeginAllowThreads();
25326 (arg1)->SetMargins((wxSize const &)*arg2);
25327 wxPyEndAllowThreads(__tstate);
25328 if (PyErr_Occurred()) SWIG_fail;
25329 }
25330 resultobj = SWIG_Py_Void();
25331 return resultobj;
25332 fail:
25333 return NULL;
25334 }
25335
25336
25337 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25338 PyObject *resultobj = 0;
25339 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25340 int arg2 ;
25341 void *argp1 = 0 ;
25342 int res1 = 0 ;
25343 int val2 ;
25344 int ecode2 = 0 ;
25345 PyObject * obj0 = 0 ;
25346 PyObject * obj1 = 0 ;
25347 char * kwnames[] = {
25348 (char *) "self",(char *) "packing", NULL
25349 };
25350
25351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) SWIG_fail;
25352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25353 if (!SWIG_IsOK(res1)) {
25354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25355 }
25356 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25357 ecode2 = SWIG_AsVal_int(obj1, &val2);
25358 if (!SWIG_IsOK(ecode2)) {
25359 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "2"" of type '" "int""'");
25360 }
25361 arg2 = static_cast< int >(val2);
25362 {
25363 PyThreadState* __tstate = wxPyBeginAllowThreads();
25364 (arg1)->SetToolPacking(arg2);
25365 wxPyEndAllowThreads(__tstate);
25366 if (PyErr_Occurred()) SWIG_fail;
25367 }
25368 resultobj = SWIG_Py_Void();
25369 return resultobj;
25370 fail:
25371 return NULL;
25372 }
25373
25374
25375 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25376 PyObject *resultobj = 0;
25377 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25378 int arg2 ;
25379 void *argp1 = 0 ;
25380 int res1 = 0 ;
25381 int val2 ;
25382 int ecode2 = 0 ;
25383 PyObject * obj0 = 0 ;
25384 PyObject * obj1 = 0 ;
25385 char * kwnames[] = {
25386 (char *) "self",(char *) "separation", NULL
25387 };
25388
25389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) SWIG_fail;
25390 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25391 if (!SWIG_IsOK(res1)) {
25392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25393 }
25394 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25395 ecode2 = SWIG_AsVal_int(obj1, &val2);
25396 if (!SWIG_IsOK(ecode2)) {
25397 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "2"" of type '" "int""'");
25398 }
25399 arg2 = static_cast< int >(val2);
25400 {
25401 PyThreadState* __tstate = wxPyBeginAllowThreads();
25402 (arg1)->SetToolSeparation(arg2);
25403 wxPyEndAllowThreads(__tstate);
25404 if (PyErr_Occurred()) SWIG_fail;
25405 }
25406 resultobj = SWIG_Py_Void();
25407 return resultobj;
25408 fail:
25409 return NULL;
25410 }
25411
25412
25413 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25414 PyObject *resultobj = 0;
25415 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25416 wxSize result;
25417 void *argp1 = 0 ;
25418 int res1 = 0 ;
25419 PyObject *swig_obj[1] ;
25420
25421 if (!args) SWIG_fail;
25422 swig_obj[0] = args;
25423 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25424 if (!SWIG_IsOK(res1)) {
25425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25426 }
25427 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25428 {
25429 PyThreadState* __tstate = wxPyBeginAllowThreads();
25430 result = (arg1)->GetToolMargins();
25431 wxPyEndAllowThreads(__tstate);
25432 if (PyErr_Occurred()) SWIG_fail;
25433 }
25434 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25435 return resultobj;
25436 fail:
25437 return NULL;
25438 }
25439
25440
25441 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25442 PyObject *resultobj = 0;
25443 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25444 wxSize result;
25445 void *argp1 = 0 ;
25446 int res1 = 0 ;
25447 PyObject *swig_obj[1] ;
25448
25449 if (!args) SWIG_fail;
25450 swig_obj[0] = args;
25451 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25452 if (!SWIG_IsOK(res1)) {
25453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25454 }
25455 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25456 {
25457 PyThreadState* __tstate = wxPyBeginAllowThreads();
25458 result = (arg1)->GetMargins();
25459 wxPyEndAllowThreads(__tstate);
25460 if (PyErr_Occurred()) SWIG_fail;
25461 }
25462 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25463 return resultobj;
25464 fail:
25465 return NULL;
25466 }
25467
25468
25469 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25470 PyObject *resultobj = 0;
25471 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25472 int result;
25473 void *argp1 = 0 ;
25474 int res1 = 0 ;
25475 PyObject *swig_obj[1] ;
25476
25477 if (!args) SWIG_fail;
25478 swig_obj[0] = args;
25479 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25480 if (!SWIG_IsOK(res1)) {
25481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25482 }
25483 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25484 {
25485 PyThreadState* __tstate = wxPyBeginAllowThreads();
25486 result = (int)(arg1)->GetToolPacking();
25487 wxPyEndAllowThreads(__tstate);
25488 if (PyErr_Occurred()) SWIG_fail;
25489 }
25490 resultobj = SWIG_From_int(static_cast< int >(result));
25491 return resultobj;
25492 fail:
25493 return NULL;
25494 }
25495
25496
25497 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25498 PyObject *resultobj = 0;
25499 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25500 int result;
25501 void *argp1 = 0 ;
25502 int res1 = 0 ;
25503 PyObject *swig_obj[1] ;
25504
25505 if (!args) SWIG_fail;
25506 swig_obj[0] = args;
25507 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25508 if (!SWIG_IsOK(res1)) {
25509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25510 }
25511 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25512 {
25513 PyThreadState* __tstate = wxPyBeginAllowThreads();
25514 result = (int)(arg1)->GetToolSeparation();
25515 wxPyEndAllowThreads(__tstate);
25516 if (PyErr_Occurred()) SWIG_fail;
25517 }
25518 resultobj = SWIG_From_int(static_cast< int >(result));
25519 return resultobj;
25520 fail:
25521 return NULL;
25522 }
25523
25524
25525 SWIGINTERN PyObject *_wrap_ToolBarBase_SetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25526 PyObject *resultobj = 0;
25527 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25528 int arg2 ;
25529 void *argp1 = 0 ;
25530 int res1 = 0 ;
25531 int val2 ;
25532 int ecode2 = 0 ;
25533 PyObject * obj0 = 0 ;
25534 PyObject * obj1 = 0 ;
25535 char * kwnames[] = {
25536 (char *) "self",(char *) "nRows", NULL
25537 };
25538
25539 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) SWIG_fail;
25540 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25541 if (!SWIG_IsOK(res1)) {
25542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25543 }
25544 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25545 ecode2 = SWIG_AsVal_int(obj1, &val2);
25546 if (!SWIG_IsOK(ecode2)) {
25547 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetRows" "', expected argument " "2"" of type '" "int""'");
25548 }
25549 arg2 = static_cast< int >(val2);
25550 {
25551 PyThreadState* __tstate = wxPyBeginAllowThreads();
25552 (arg1)->SetRows(arg2);
25553 wxPyEndAllowThreads(__tstate);
25554 if (PyErr_Occurred()) SWIG_fail;
25555 }
25556 resultobj = SWIG_Py_Void();
25557 return resultobj;
25558 fail:
25559 return NULL;
25560 }
25561
25562
25563 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25564 PyObject *resultobj = 0;
25565 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25566 int arg2 ;
25567 int arg3 ;
25568 void *argp1 = 0 ;
25569 int res1 = 0 ;
25570 int val2 ;
25571 int ecode2 = 0 ;
25572 int val3 ;
25573 int ecode3 = 0 ;
25574 PyObject * obj0 = 0 ;
25575 PyObject * obj1 = 0 ;
25576 PyObject * obj2 = 0 ;
25577 char * kwnames[] = {
25578 (char *) "self",(char *) "rows",(char *) "cols", NULL
25579 };
25580
25581 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25582 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25583 if (!SWIG_IsOK(res1)) {
25584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25585 }
25586 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25587 ecode2 = SWIG_AsVal_int(obj1, &val2);
25588 if (!SWIG_IsOK(ecode2)) {
25589 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "2"" of type '" "int""'");
25590 }
25591 arg2 = static_cast< int >(val2);
25592 ecode3 = SWIG_AsVal_int(obj2, &val3);
25593 if (!SWIG_IsOK(ecode3)) {
25594 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "3"" of type '" "int""'");
25595 }
25596 arg3 = static_cast< int >(val3);
25597 {
25598 PyThreadState* __tstate = wxPyBeginAllowThreads();
25599 (arg1)->SetMaxRowsCols(arg2,arg3);
25600 wxPyEndAllowThreads(__tstate);
25601 if (PyErr_Occurred()) SWIG_fail;
25602 }
25603 resultobj = SWIG_Py_Void();
25604 return resultobj;
25605 fail:
25606 return NULL;
25607 }
25608
25609
25610 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25611 PyObject *resultobj = 0;
25612 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25613 int result;
25614 void *argp1 = 0 ;
25615 int res1 = 0 ;
25616 PyObject *swig_obj[1] ;
25617
25618 if (!args) SWIG_fail;
25619 swig_obj[0] = args;
25620 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25621 if (!SWIG_IsOK(res1)) {
25622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25623 }
25624 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25625 {
25626 PyThreadState* __tstate = wxPyBeginAllowThreads();
25627 result = (int)(arg1)->GetMaxRows();
25628 wxPyEndAllowThreads(__tstate);
25629 if (PyErr_Occurred()) SWIG_fail;
25630 }
25631 resultobj = SWIG_From_int(static_cast< int >(result));
25632 return resultobj;
25633 fail:
25634 return NULL;
25635 }
25636
25637
25638 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25639 PyObject *resultobj = 0;
25640 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25641 int result;
25642 void *argp1 = 0 ;
25643 int res1 = 0 ;
25644 PyObject *swig_obj[1] ;
25645
25646 if (!args) SWIG_fail;
25647 swig_obj[0] = args;
25648 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25649 if (!SWIG_IsOK(res1)) {
25650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25651 }
25652 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25653 {
25654 PyThreadState* __tstate = wxPyBeginAllowThreads();
25655 result = (int)(arg1)->GetMaxCols();
25656 wxPyEndAllowThreads(__tstate);
25657 if (PyErr_Occurred()) SWIG_fail;
25658 }
25659 resultobj = SWIG_From_int(static_cast< int >(result));
25660 return resultobj;
25661 fail:
25662 return NULL;
25663 }
25664
25665
25666 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25667 PyObject *resultobj = 0;
25668 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25669 wxSize *arg2 = 0 ;
25670 void *argp1 = 0 ;
25671 int res1 = 0 ;
25672 wxSize temp2 ;
25673 PyObject * obj0 = 0 ;
25674 PyObject * obj1 = 0 ;
25675 char * kwnames[] = {
25676 (char *) "self",(char *) "size", NULL
25677 };
25678
25679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) SWIG_fail;
25680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25681 if (!SWIG_IsOK(res1)) {
25682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25683 }
25684 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25685 {
25686 arg2 = &temp2;
25687 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25688 }
25689 {
25690 PyThreadState* __tstate = wxPyBeginAllowThreads();
25691 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
25692 wxPyEndAllowThreads(__tstate);
25693 if (PyErr_Occurred()) SWIG_fail;
25694 }
25695 resultobj = SWIG_Py_Void();
25696 return resultobj;
25697 fail:
25698 return NULL;
25699 }
25700
25701
25702 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25703 PyObject *resultobj = 0;
25704 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25705 wxSize result;
25706 void *argp1 = 0 ;
25707 int res1 = 0 ;
25708 PyObject *swig_obj[1] ;
25709
25710 if (!args) SWIG_fail;
25711 swig_obj[0] = args;
25712 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25713 if (!SWIG_IsOK(res1)) {
25714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25715 }
25716 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25717 {
25718 PyThreadState* __tstate = wxPyBeginAllowThreads();
25719 result = (arg1)->GetToolBitmapSize();
25720 wxPyEndAllowThreads(__tstate);
25721 if (PyErr_Occurred()) SWIG_fail;
25722 }
25723 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25724 return resultobj;
25725 fail:
25726 return NULL;
25727 }
25728
25729
25730 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25731 PyObject *resultobj = 0;
25732 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25733 wxSize result;
25734 void *argp1 = 0 ;
25735 int res1 = 0 ;
25736 PyObject *swig_obj[1] ;
25737
25738 if (!args) SWIG_fail;
25739 swig_obj[0] = args;
25740 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25741 if (!SWIG_IsOK(res1)) {
25742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25743 }
25744 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25745 {
25746 PyThreadState* __tstate = wxPyBeginAllowThreads();
25747 result = (arg1)->GetToolSize();
25748 wxPyEndAllowThreads(__tstate);
25749 if (PyErr_Occurred()) SWIG_fail;
25750 }
25751 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25752 return resultobj;
25753 fail:
25754 return NULL;
25755 }
25756
25757
25758 SWIGINTERN PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25759 PyObject *resultobj = 0;
25760 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25761 int arg2 ;
25762 int arg3 ;
25763 wxToolBarToolBase *result = 0 ;
25764 void *argp1 = 0 ;
25765 int res1 = 0 ;
25766 int val2 ;
25767 int ecode2 = 0 ;
25768 int val3 ;
25769 int ecode3 = 0 ;
25770 PyObject * obj0 = 0 ;
25771 PyObject * obj1 = 0 ;
25772 PyObject * obj2 = 0 ;
25773 char * kwnames[] = {
25774 (char *) "self",(char *) "x",(char *) "y", NULL
25775 };
25776
25777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25779 if (!SWIG_IsOK(res1)) {
25780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25781 }
25782 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25783 ecode2 = SWIG_AsVal_int(obj1, &val2);
25784 if (!SWIG_IsOK(ecode2)) {
25785 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "2"" of type '" "int""'");
25786 }
25787 arg2 = static_cast< int >(val2);
25788 ecode3 = SWIG_AsVal_int(obj2, &val3);
25789 if (!SWIG_IsOK(ecode3)) {
25790 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "3"" of type '" "int""'");
25791 }
25792 arg3 = static_cast< int >(val3);
25793 {
25794 PyThreadState* __tstate = wxPyBeginAllowThreads();
25795 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
25796 wxPyEndAllowThreads(__tstate);
25797 if (PyErr_Occurred()) SWIG_fail;
25798 }
25799 {
25800 resultobj = wxPyMake_wxObject(result, (bool)0);
25801 }
25802 return resultobj;
25803 fail:
25804 return NULL;
25805 }
25806
25807
25808 SWIGINTERN PyObject *_wrap_ToolBarBase_FindById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25809 PyObject *resultobj = 0;
25810 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25811 int arg2 ;
25812 wxToolBarToolBase *result = 0 ;
25813 void *argp1 = 0 ;
25814 int res1 = 0 ;
25815 int val2 ;
25816 int ecode2 = 0 ;
25817 PyObject * obj0 = 0 ;
25818 PyObject * obj1 = 0 ;
25819 char * kwnames[] = {
25820 (char *) "self",(char *) "toolid", NULL
25821 };
25822
25823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) SWIG_fail;
25824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25825 if (!SWIG_IsOK(res1)) {
25826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindById" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25827 }
25828 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25829 ecode2 = SWIG_AsVal_int(obj1, &val2);
25830 if (!SWIG_IsOK(ecode2)) {
25831 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindById" "', expected argument " "2"" of type '" "int""'");
25832 }
25833 arg2 = static_cast< int >(val2);
25834 {
25835 PyThreadState* __tstate = wxPyBeginAllowThreads();
25836 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
25837 wxPyEndAllowThreads(__tstate);
25838 if (PyErr_Occurred()) SWIG_fail;
25839 }
25840 {
25841 resultobj = wxPyMake_wxObject(result, (bool)0);
25842 }
25843 return resultobj;
25844 fail:
25845 return NULL;
25846 }
25847
25848
25849 SWIGINTERN PyObject *_wrap_ToolBarBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25850 PyObject *resultobj = 0;
25851 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25852 bool result;
25853 void *argp1 = 0 ;
25854 int res1 = 0 ;
25855 PyObject *swig_obj[1] ;
25856
25857 if (!args) SWIG_fail;
25858 swig_obj[0] = args;
25859 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25860 if (!SWIG_IsOK(res1)) {
25861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_IsVertical" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25862 }
25863 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25864 {
25865 PyThreadState* __tstate = wxPyBeginAllowThreads();
25866 result = (bool)(arg1)->IsVertical();
25867 wxPyEndAllowThreads(__tstate);
25868 if (PyErr_Occurred()) SWIG_fail;
25869 }
25870 {
25871 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25872 }
25873 return resultobj;
25874 fail:
25875 return NULL;
25876 }
25877
25878
25879 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25880 PyObject *resultobj = 0;
25881 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25882 size_t result;
25883 void *argp1 = 0 ;
25884 int res1 = 0 ;
25885 PyObject *swig_obj[1] ;
25886
25887 if (!args) SWIG_fail;
25888 swig_obj[0] = args;
25889 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25890 if (!SWIG_IsOK(res1)) {
25891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolsCount" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25892 }
25893 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25894 {
25895 PyThreadState* __tstate = wxPyBeginAllowThreads();
25896 result = (size_t)((wxToolBarBase const *)arg1)->GetToolsCount();
25897 wxPyEndAllowThreads(__tstate);
25898 if (PyErr_Occurred()) SWIG_fail;
25899 }
25900 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
25901 return resultobj;
25902 fail:
25903 return NULL;
25904 }
25905
25906
25907 SWIGINTERN PyObject *ToolBarBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25908 PyObject *obj;
25909 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25910 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarBase, SWIG_NewClientData(obj));
25911 return SWIG_Py_Void();
25912 }
25913
25914 SWIGINTERN PyObject *_wrap_new_ToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25915 PyObject *resultobj = 0;
25916 wxWindow *arg1 = (wxWindow *) 0 ;
25917 int arg2 = (int) -1 ;
25918 wxPoint const &arg3_defvalue = wxDefaultPosition ;
25919 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
25920 wxSize const &arg4_defvalue = wxDefaultSize ;
25921 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
25922 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25923 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
25924 wxString *arg6 = (wxString *) &arg6_defvalue ;
25925 wxToolBar *result = 0 ;
25926 void *argp1 = 0 ;
25927 int res1 = 0 ;
25928 int val2 ;
25929 int ecode2 = 0 ;
25930 wxPoint temp3 ;
25931 wxSize temp4 ;
25932 long val5 ;
25933 int ecode5 = 0 ;
25934 bool temp6 = false ;
25935 PyObject * obj0 = 0 ;
25936 PyObject * obj1 = 0 ;
25937 PyObject * obj2 = 0 ;
25938 PyObject * obj3 = 0 ;
25939 PyObject * obj4 = 0 ;
25940 PyObject * obj5 = 0 ;
25941 char * kwnames[] = {
25942 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25943 };
25944
25945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25947 if (!SWIG_IsOK(res1)) {
25948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToolBar" "', expected argument " "1"" of type '" "wxWindow *""'");
25949 }
25950 arg1 = reinterpret_cast< wxWindow * >(argp1);
25951 if (obj1) {
25952 ecode2 = SWIG_AsVal_int(obj1, &val2);
25953 if (!SWIG_IsOK(ecode2)) {
25954 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolBar" "', expected argument " "2"" of type '" "int""'");
25955 }
25956 arg2 = static_cast< int >(val2);
25957 }
25958 if (obj2) {
25959 {
25960 arg3 = &temp3;
25961 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
25962 }
25963 }
25964 if (obj3) {
25965 {
25966 arg4 = &temp4;
25967 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
25968 }
25969 }
25970 if (obj4) {
25971 ecode5 = SWIG_AsVal_long(obj4, &val5);
25972 if (!SWIG_IsOK(ecode5)) {
25973 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ToolBar" "', expected argument " "5"" of type '" "long""'");
25974 }
25975 arg5 = static_cast< long >(val5);
25976 }
25977 if (obj5) {
25978 {
25979 arg6 = wxString_in_helper(obj5);
25980 if (arg6 == NULL) SWIG_fail;
25981 temp6 = true;
25982 }
25983 }
25984 {
25985 if (!wxPyCheckForApp()) SWIG_fail;
25986 PyThreadState* __tstate = wxPyBeginAllowThreads();
25987 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
25988 wxPyEndAllowThreads(__tstate);
25989 if (PyErr_Occurred()) SWIG_fail;
25990 }
25991 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_NEW | 0 );
25992 {
25993 if (temp6)
25994 delete arg6;
25995 }
25996 return resultobj;
25997 fail:
25998 {
25999 if (temp6)
26000 delete arg6;
26001 }
26002 return NULL;
26003 }
26004
26005
26006 SWIGINTERN PyObject *_wrap_new_PreToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26007 PyObject *resultobj = 0;
26008 wxToolBar *result = 0 ;
26009
26010 if (!SWIG_Python_UnpackTuple(args,"new_PreToolBar",0,0,0)) SWIG_fail;
26011 {
26012 if (!wxPyCheckForApp()) SWIG_fail;
26013 PyThreadState* __tstate = wxPyBeginAllowThreads();
26014 result = (wxToolBar *)new wxToolBar();
26015 wxPyEndAllowThreads(__tstate);
26016 if (PyErr_Occurred()) SWIG_fail;
26017 }
26018 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_OWN | 0 );
26019 return resultobj;
26020 fail:
26021 return NULL;
26022 }
26023
26024
26025 SWIGINTERN PyObject *_wrap_ToolBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26026 PyObject *resultobj = 0;
26027 wxToolBar *arg1 = (wxToolBar *) 0 ;
26028 wxWindow *arg2 = (wxWindow *) 0 ;
26029 int arg3 = (int) -1 ;
26030 wxPoint const &arg4_defvalue = wxDefaultPosition ;
26031 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
26032 wxSize const &arg5_defvalue = wxDefaultSize ;
26033 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
26034 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
26035 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
26036 wxString *arg7 = (wxString *) &arg7_defvalue ;
26037 bool result;
26038 void *argp1 = 0 ;
26039 int res1 = 0 ;
26040 void *argp2 = 0 ;
26041 int res2 = 0 ;
26042 int val3 ;
26043 int ecode3 = 0 ;
26044 wxPoint temp4 ;
26045 wxSize temp5 ;
26046 long val6 ;
26047 int ecode6 = 0 ;
26048 bool temp7 = false ;
26049 PyObject * obj0 = 0 ;
26050 PyObject * obj1 = 0 ;
26051 PyObject * obj2 = 0 ;
26052 PyObject * obj3 = 0 ;
26053 PyObject * obj4 = 0 ;
26054 PyObject * obj5 = 0 ;
26055 PyObject * obj6 = 0 ;
26056 char * kwnames[] = {
26057 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
26058 };
26059
26060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
26061 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
26062 if (!SWIG_IsOK(res1)) {
26063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_Create" "', expected argument " "1"" of type '" "wxToolBar *""'");
26064 }
26065 arg1 = reinterpret_cast< wxToolBar * >(argp1);
26066 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
26067 if (!SWIG_IsOK(res2)) {
26068 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
26069 }
26070 arg2 = reinterpret_cast< wxWindow * >(argp2);
26071 if (obj2) {
26072 ecode3 = SWIG_AsVal_int(obj2, &val3);
26073 if (!SWIG_IsOK(ecode3)) {
26074 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_Create" "', expected argument " "3"" of type '" "int""'");
26075 }
26076 arg3 = static_cast< int >(val3);
26077 }
26078 if (obj3) {
26079 {
26080 arg4 = &temp4;
26081 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
26082 }
26083 }
26084 if (obj4) {
26085 {
26086 arg5 = &temp5;
26087 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
26088 }
26089 }
26090 if (obj5) {
26091 ecode6 = SWIG_AsVal_long(obj5, &val6);
26092 if (!SWIG_IsOK(ecode6)) {
26093 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBar_Create" "', expected argument " "6"" of type '" "long""'");
26094 }
26095 arg6 = static_cast< long >(val6);
26096 }
26097 if (obj6) {
26098 {
26099 arg7 = wxString_in_helper(obj6);
26100 if (arg7 == NULL) SWIG_fail;
26101 temp7 = true;
26102 }
26103 }
26104 {
26105 PyThreadState* __tstate = wxPyBeginAllowThreads();
26106 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
26107 wxPyEndAllowThreads(__tstate);
26108 if (PyErr_Occurred()) SWIG_fail;
26109 }
26110 {
26111 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26112 }
26113 {
26114 if (temp7)
26115 delete arg7;
26116 }
26117 return resultobj;
26118 fail:
26119 {
26120 if (temp7)
26121 delete arg7;
26122 }
26123 return NULL;
26124 }
26125
26126
26127 SWIGINTERN PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26128 PyObject *resultobj = 0;
26129 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
26130 SwigValueWrapper<wxVisualAttributes > result;
26131 int val1 ;
26132 int ecode1 = 0 ;
26133 PyObject * obj0 = 0 ;
26134 char * kwnames[] = {
26135 (char *) "variant", NULL
26136 };
26137
26138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
26139 if (obj0) {
26140 ecode1 = SWIG_AsVal_int(obj0, &val1);
26141 if (!SWIG_IsOK(ecode1)) {
26142 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToolBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
26143 }
26144 arg1 = static_cast< wxWindowVariant >(val1);
26145 }
26146 {
26147 if (!wxPyCheckForApp()) SWIG_fail;
26148 PyThreadState* __tstate = wxPyBeginAllowThreads();
26149 result = wxToolBar::GetClassDefaultAttributes(arg1);
26150 wxPyEndAllowThreads(__tstate);
26151 if (PyErr_Occurred()) SWIG_fail;
26152 }
26153 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
26154 return resultobj;
26155 fail:
26156 return NULL;
26157 }
26158
26159
26160 SWIGINTERN PyObject *ToolBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26161 PyObject *obj;
26162 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26163 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBar, SWIG_NewClientData(obj));
26164 return SWIG_Py_Void();
26165 }
26166
26167 SWIGINTERN PyObject *ToolBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26168 return SWIG_Python_InitShadowInstance(args);
26169 }
26170
26171 SWIGINTERN int ListCtrlNameStr_set(PyObject *) {
26172 SWIG_Error(SWIG_AttributeError,"Variable ListCtrlNameStr is read-only.");
26173 return 1;
26174 }
26175
26176
26177 SWIGINTERN PyObject *ListCtrlNameStr_get(void) {
26178 PyObject *pyobj = 0;
26179
26180 {
26181 #if wxUSE_UNICODE
26182 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
26183 #else
26184 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
26185 #endif
26186 }
26187 return pyobj;
26188 }
26189
26190
26191 SWIGINTERN PyObject *_wrap_new_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26192 PyObject *resultobj = 0;
26193 wxColour const &arg1_defvalue = wxNullColour ;
26194 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
26195 wxColour const &arg2_defvalue = wxNullColour ;
26196 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
26197 wxFont const &arg3_defvalue = wxNullFont ;
26198 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
26199 wxListItemAttr *result = 0 ;
26200 wxColour temp1 ;
26201 wxColour temp2 ;
26202 void *argp3 = 0 ;
26203 int res3 = 0 ;
26204 PyObject * obj0 = 0 ;
26205 PyObject * obj1 = 0 ;
26206 PyObject * obj2 = 0 ;
26207 char * kwnames[] = {
26208 (char *) "colText",(char *) "colBack",(char *) "font", NULL
26209 };
26210
26211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26212 if (obj0) {
26213 {
26214 arg1 = &temp1;
26215 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
26216 }
26217 }
26218 if (obj1) {
26219 {
26220 arg2 = &temp2;
26221 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26222 }
26223 }
26224 if (obj2) {
26225 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
26226 if (!SWIG_IsOK(res3)) {
26227 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
26228 }
26229 if (!argp3) {
26230 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
26231 }
26232 arg3 = reinterpret_cast< wxFont * >(argp3);
26233 }
26234 {
26235 PyThreadState* __tstate = wxPyBeginAllowThreads();
26236 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
26237 wxPyEndAllowThreads(__tstate);
26238 if (PyErr_Occurred()) SWIG_fail;
26239 }
26240 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_NEW | 0 );
26241 return resultobj;
26242 fail:
26243 return NULL;
26244 }
26245
26246
26247 SWIGINTERN PyObject *_wrap_delete_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26248 PyObject *resultobj = 0;
26249 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26250 void *argp1 = 0 ;
26251 int res1 = 0 ;
26252 PyObject *swig_obj[1] ;
26253
26254 if (!args) SWIG_fail;
26255 swig_obj[0] = args;
26256 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_DISOWN | 0 );
26257 if (!SWIG_IsOK(res1)) {
26258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItemAttr" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26259 }
26260 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26261 {
26262 PyThreadState* __tstate = wxPyBeginAllowThreads();
26263 delete arg1;
26264
26265 wxPyEndAllowThreads(__tstate);
26266 if (PyErr_Occurred()) SWIG_fail;
26267 }
26268 resultobj = SWIG_Py_Void();
26269 return resultobj;
26270 fail:
26271 return NULL;
26272 }
26273
26274
26275 SWIGINTERN PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26276 PyObject *resultobj = 0;
26277 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26278 wxColour *arg2 = 0 ;
26279 void *argp1 = 0 ;
26280 int res1 = 0 ;
26281 wxColour temp2 ;
26282 PyObject * obj0 = 0 ;
26283 PyObject * obj1 = 0 ;
26284 char * kwnames[] = {
26285 (char *) "self",(char *) "colText", NULL
26286 };
26287
26288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
26289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26290 if (!SWIG_IsOK(res1)) {
26291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26292 }
26293 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26294 {
26295 arg2 = &temp2;
26296 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26297 }
26298 {
26299 PyThreadState* __tstate = wxPyBeginAllowThreads();
26300 (arg1)->SetTextColour((wxColour const &)*arg2);
26301 wxPyEndAllowThreads(__tstate);
26302 if (PyErr_Occurred()) SWIG_fail;
26303 }
26304 resultobj = SWIG_Py_Void();
26305 return resultobj;
26306 fail:
26307 return NULL;
26308 }
26309
26310
26311 SWIGINTERN PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26312 PyObject *resultobj = 0;
26313 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26314 wxColour *arg2 = 0 ;
26315 void *argp1 = 0 ;
26316 int res1 = 0 ;
26317 wxColour temp2 ;
26318 PyObject * obj0 = 0 ;
26319 PyObject * obj1 = 0 ;
26320 char * kwnames[] = {
26321 (char *) "self",(char *) "colBack", NULL
26322 };
26323
26324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
26325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26326 if (!SWIG_IsOK(res1)) {
26327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26328 }
26329 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26330 {
26331 arg2 = &temp2;
26332 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26333 }
26334 {
26335 PyThreadState* __tstate = wxPyBeginAllowThreads();
26336 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
26337 wxPyEndAllowThreads(__tstate);
26338 if (PyErr_Occurred()) SWIG_fail;
26339 }
26340 resultobj = SWIG_Py_Void();
26341 return resultobj;
26342 fail:
26343 return NULL;
26344 }
26345
26346
26347 SWIGINTERN PyObject *_wrap_ListItemAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26348 PyObject *resultobj = 0;
26349 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26350 wxFont *arg2 = 0 ;
26351 void *argp1 = 0 ;
26352 int res1 = 0 ;
26353 void *argp2 = 0 ;
26354 int res2 = 0 ;
26355 PyObject * obj0 = 0 ;
26356 PyObject * obj1 = 0 ;
26357 char * kwnames[] = {
26358 (char *) "self",(char *) "font", NULL
26359 };
26360
26361 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26362 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26363 if (!SWIG_IsOK(res1)) {
26364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26365 }
26366 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26367 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26368 if (!SWIG_IsOK(res2)) {
26369 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26370 }
26371 if (!argp2) {
26372 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26373 }
26374 arg2 = reinterpret_cast< wxFont * >(argp2);
26375 {
26376 PyThreadState* __tstate = wxPyBeginAllowThreads();
26377 (arg1)->SetFont((wxFont const &)*arg2);
26378 wxPyEndAllowThreads(__tstate);
26379 if (PyErr_Occurred()) SWIG_fail;
26380 }
26381 resultobj = SWIG_Py_Void();
26382 return resultobj;
26383 fail:
26384 return NULL;
26385 }
26386
26387
26388 SWIGINTERN PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26389 PyObject *resultobj = 0;
26390 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26391 bool result;
26392 void *argp1 = 0 ;
26393 int res1 = 0 ;
26394 PyObject *swig_obj[1] ;
26395
26396 if (!args) SWIG_fail;
26397 swig_obj[0] = args;
26398 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26399 if (!SWIG_IsOK(res1)) {
26400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26401 }
26402 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26403 {
26404 PyThreadState* __tstate = wxPyBeginAllowThreads();
26405 result = (bool)(arg1)->HasTextColour();
26406 wxPyEndAllowThreads(__tstate);
26407 if (PyErr_Occurred()) SWIG_fail;
26408 }
26409 {
26410 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26411 }
26412 return resultobj;
26413 fail:
26414 return NULL;
26415 }
26416
26417
26418 SWIGINTERN PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26419 PyObject *resultobj = 0;
26420 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26421 bool result;
26422 void *argp1 = 0 ;
26423 int res1 = 0 ;
26424 PyObject *swig_obj[1] ;
26425
26426 if (!args) SWIG_fail;
26427 swig_obj[0] = args;
26428 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26429 if (!SWIG_IsOK(res1)) {
26430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26431 }
26432 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26433 {
26434 PyThreadState* __tstate = wxPyBeginAllowThreads();
26435 result = (bool)(arg1)->HasBackgroundColour();
26436 wxPyEndAllowThreads(__tstate);
26437 if (PyErr_Occurred()) SWIG_fail;
26438 }
26439 {
26440 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26441 }
26442 return resultobj;
26443 fail:
26444 return NULL;
26445 }
26446
26447
26448 SWIGINTERN PyObject *_wrap_ListItemAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26449 PyObject *resultobj = 0;
26450 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26451 bool result;
26452 void *argp1 = 0 ;
26453 int res1 = 0 ;
26454 PyObject *swig_obj[1] ;
26455
26456 if (!args) SWIG_fail;
26457 swig_obj[0] = args;
26458 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26459 if (!SWIG_IsOK(res1)) {
26460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26461 }
26462 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26463 {
26464 PyThreadState* __tstate = wxPyBeginAllowThreads();
26465 result = (bool)(arg1)->HasFont();
26466 wxPyEndAllowThreads(__tstate);
26467 if (PyErr_Occurred()) SWIG_fail;
26468 }
26469 {
26470 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26471 }
26472 return resultobj;
26473 fail:
26474 return NULL;
26475 }
26476
26477
26478 SWIGINTERN PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26479 PyObject *resultobj = 0;
26480 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26481 wxColour result;
26482 void *argp1 = 0 ;
26483 int res1 = 0 ;
26484 PyObject *swig_obj[1] ;
26485
26486 if (!args) SWIG_fail;
26487 swig_obj[0] = args;
26488 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26489 if (!SWIG_IsOK(res1)) {
26490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26491 }
26492 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26493 {
26494 PyThreadState* __tstate = wxPyBeginAllowThreads();
26495 result = (arg1)->GetTextColour();
26496 wxPyEndAllowThreads(__tstate);
26497 if (PyErr_Occurred()) SWIG_fail;
26498 }
26499 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26500 return resultobj;
26501 fail:
26502 return NULL;
26503 }
26504
26505
26506 SWIGINTERN PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26507 PyObject *resultobj = 0;
26508 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26509 wxColour result;
26510 void *argp1 = 0 ;
26511 int res1 = 0 ;
26512 PyObject *swig_obj[1] ;
26513
26514 if (!args) SWIG_fail;
26515 swig_obj[0] = args;
26516 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26517 if (!SWIG_IsOK(res1)) {
26518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26519 }
26520 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26521 {
26522 PyThreadState* __tstate = wxPyBeginAllowThreads();
26523 result = (arg1)->GetBackgroundColour();
26524 wxPyEndAllowThreads(__tstate);
26525 if (PyErr_Occurred()) SWIG_fail;
26526 }
26527 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26528 return resultobj;
26529 fail:
26530 return NULL;
26531 }
26532
26533
26534 SWIGINTERN PyObject *_wrap_ListItemAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26535 PyObject *resultobj = 0;
26536 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26537 wxFont result;
26538 void *argp1 = 0 ;
26539 int res1 = 0 ;
26540 PyObject *swig_obj[1] ;
26541
26542 if (!args) SWIG_fail;
26543 swig_obj[0] = args;
26544 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26545 if (!SWIG_IsOK(res1)) {
26546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26547 }
26548 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26549 {
26550 PyThreadState* __tstate = wxPyBeginAllowThreads();
26551 result = (arg1)->GetFont();
26552 wxPyEndAllowThreads(__tstate);
26553 if (PyErr_Occurred()) SWIG_fail;
26554 }
26555 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
26556 return resultobj;
26557 fail:
26558 return NULL;
26559 }
26560
26561
26562 SWIGINTERN PyObject *_wrap_ListItemAttr_AssignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26563 PyObject *resultobj = 0;
26564 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26565 wxListItemAttr *arg2 = 0 ;
26566 void *argp1 = 0 ;
26567 int res1 = 0 ;
26568 void *argp2 = 0 ;
26569 int res2 = 0 ;
26570 PyObject * obj0 = 0 ;
26571 PyObject * obj1 = 0 ;
26572 char * kwnames[] = {
26573 (char *) "self",(char *) "source", NULL
26574 };
26575
26576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_AssignFrom",kwnames,&obj0,&obj1)) SWIG_fail;
26577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26578 if (!SWIG_IsOK(res1)) {
26579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26580 }
26581 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26582 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItemAttr, 0 | 0);
26583 if (!SWIG_IsOK(res2)) {
26584 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26585 }
26586 if (!argp2) {
26587 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26588 }
26589 arg2 = reinterpret_cast< wxListItemAttr * >(argp2);
26590 {
26591 PyThreadState* __tstate = wxPyBeginAllowThreads();
26592 (arg1)->AssignFrom((wxListItemAttr const &)*arg2);
26593 wxPyEndAllowThreads(__tstate);
26594 if (PyErr_Occurred()) SWIG_fail;
26595 }
26596 resultobj = SWIG_Py_Void();
26597 return resultobj;
26598 fail:
26599 return NULL;
26600 }
26601
26602
26603 SWIGINTERN PyObject *_wrap_ListItemAttr_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26604 PyObject *resultobj = 0;
26605 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26606 void *argp1 = 0 ;
26607 int res1 = 0 ;
26608 PyObject *swig_obj[1] ;
26609
26610 if (!args) SWIG_fail;
26611 swig_obj[0] = args;
26612 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26613 if (!SWIG_IsOK(res1)) {
26614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_Destroy" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26615 }
26616 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26617 {
26618 PyThreadState* __tstate = wxPyBeginAllowThreads();
26619 wxListItemAttr_Destroy(arg1);
26620 wxPyEndAllowThreads(__tstate);
26621 if (PyErr_Occurred()) SWIG_fail;
26622 }
26623 resultobj = SWIG_Py_Void();
26624 return resultobj;
26625 fail:
26626 return NULL;
26627 }
26628
26629
26630 SWIGINTERN PyObject *ListItemAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26631 PyObject *obj;
26632 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26633 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItemAttr, SWIG_NewClientData(obj));
26634 return SWIG_Py_Void();
26635 }
26636
26637 SWIGINTERN PyObject *ListItemAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26638 return SWIG_Python_InitShadowInstance(args);
26639 }
26640
26641 SWIGINTERN PyObject *_wrap_new_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26642 PyObject *resultobj = 0;
26643 wxListItem *result = 0 ;
26644
26645 if (!SWIG_Python_UnpackTuple(args,"new_ListItem",0,0,0)) SWIG_fail;
26646 {
26647 PyThreadState* __tstate = wxPyBeginAllowThreads();
26648 result = (wxListItem *)new wxListItem();
26649 wxPyEndAllowThreads(__tstate);
26650 if (PyErr_Occurred()) SWIG_fail;
26651 }
26652 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, SWIG_POINTER_NEW | 0 );
26653 return resultobj;
26654 fail:
26655 return NULL;
26656 }
26657
26658
26659 SWIGINTERN PyObject *_wrap_delete_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26660 PyObject *resultobj = 0;
26661 wxListItem *arg1 = (wxListItem *) 0 ;
26662 void *argp1 = 0 ;
26663 int res1 = 0 ;
26664 PyObject *swig_obj[1] ;
26665
26666 if (!args) SWIG_fail;
26667 swig_obj[0] = args;
26668 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, SWIG_POINTER_DISOWN | 0 );
26669 if (!SWIG_IsOK(res1)) {
26670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItem" "', expected argument " "1"" of type '" "wxListItem *""'");
26671 }
26672 arg1 = reinterpret_cast< wxListItem * >(argp1);
26673 {
26674 PyThreadState* __tstate = wxPyBeginAllowThreads();
26675 delete arg1;
26676
26677 wxPyEndAllowThreads(__tstate);
26678 if (PyErr_Occurred()) SWIG_fail;
26679 }
26680 resultobj = SWIG_Py_Void();
26681 return resultobj;
26682 fail:
26683 return NULL;
26684 }
26685
26686
26687 SWIGINTERN PyObject *_wrap_ListItem_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26688 PyObject *resultobj = 0;
26689 wxListItem *arg1 = (wxListItem *) 0 ;
26690 void *argp1 = 0 ;
26691 int res1 = 0 ;
26692 PyObject *swig_obj[1] ;
26693
26694 if (!args) SWIG_fail;
26695 swig_obj[0] = args;
26696 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26697 if (!SWIG_IsOK(res1)) {
26698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_Clear" "', expected argument " "1"" of type '" "wxListItem *""'");
26699 }
26700 arg1 = reinterpret_cast< wxListItem * >(argp1);
26701 {
26702 PyThreadState* __tstate = wxPyBeginAllowThreads();
26703 (arg1)->Clear();
26704 wxPyEndAllowThreads(__tstate);
26705 if (PyErr_Occurred()) SWIG_fail;
26706 }
26707 resultobj = SWIG_Py_Void();
26708 return resultobj;
26709 fail:
26710 return NULL;
26711 }
26712
26713
26714 SWIGINTERN PyObject *_wrap_ListItem_ClearAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26715 PyObject *resultobj = 0;
26716 wxListItem *arg1 = (wxListItem *) 0 ;
26717 void *argp1 = 0 ;
26718 int res1 = 0 ;
26719 PyObject *swig_obj[1] ;
26720
26721 if (!args) SWIG_fail;
26722 swig_obj[0] = args;
26723 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26724 if (!SWIG_IsOK(res1)) {
26725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_ClearAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26726 }
26727 arg1 = reinterpret_cast< wxListItem * >(argp1);
26728 {
26729 PyThreadState* __tstate = wxPyBeginAllowThreads();
26730 (arg1)->ClearAttributes();
26731 wxPyEndAllowThreads(__tstate);
26732 if (PyErr_Occurred()) SWIG_fail;
26733 }
26734 resultobj = SWIG_Py_Void();
26735 return resultobj;
26736 fail:
26737 return NULL;
26738 }
26739
26740
26741 SWIGINTERN PyObject *_wrap_ListItem_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26742 PyObject *resultobj = 0;
26743 wxListItem *arg1 = (wxListItem *) 0 ;
26744 long arg2 ;
26745 void *argp1 = 0 ;
26746 int res1 = 0 ;
26747 long val2 ;
26748 int ecode2 = 0 ;
26749 PyObject * obj0 = 0 ;
26750 PyObject * obj1 = 0 ;
26751 char * kwnames[] = {
26752 (char *) "self",(char *) "mask", NULL
26753 };
26754
26755 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
26756 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26757 if (!SWIG_IsOK(res1)) {
26758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26759 }
26760 arg1 = reinterpret_cast< wxListItem * >(argp1);
26761 ecode2 = SWIG_AsVal_long(obj1, &val2);
26762 if (!SWIG_IsOK(ecode2)) {
26763 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetMask" "', expected argument " "2"" of type '" "long""'");
26764 }
26765 arg2 = static_cast< long >(val2);
26766 {
26767 PyThreadState* __tstate = wxPyBeginAllowThreads();
26768 (arg1)->SetMask(arg2);
26769 wxPyEndAllowThreads(__tstate);
26770 if (PyErr_Occurred()) SWIG_fail;
26771 }
26772 resultobj = SWIG_Py_Void();
26773 return resultobj;
26774 fail:
26775 return NULL;
26776 }
26777
26778
26779 SWIGINTERN PyObject *_wrap_ListItem_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26780 PyObject *resultobj = 0;
26781 wxListItem *arg1 = (wxListItem *) 0 ;
26782 long arg2 ;
26783 void *argp1 = 0 ;
26784 int res1 = 0 ;
26785 long val2 ;
26786 int ecode2 = 0 ;
26787 PyObject * obj0 = 0 ;
26788 PyObject * obj1 = 0 ;
26789 char * kwnames[] = {
26790 (char *) "self",(char *) "id", NULL
26791 };
26792
26793 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
26794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26795 if (!SWIG_IsOK(res1)) {
26796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26797 }
26798 arg1 = reinterpret_cast< wxListItem * >(argp1);
26799 ecode2 = SWIG_AsVal_long(obj1, &val2);
26800 if (!SWIG_IsOK(ecode2)) {
26801 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetId" "', expected argument " "2"" of type '" "long""'");
26802 }
26803 arg2 = static_cast< long >(val2);
26804 {
26805 PyThreadState* __tstate = wxPyBeginAllowThreads();
26806 (arg1)->SetId(arg2);
26807 wxPyEndAllowThreads(__tstate);
26808 if (PyErr_Occurred()) SWIG_fail;
26809 }
26810 resultobj = SWIG_Py_Void();
26811 return resultobj;
26812 fail:
26813 return NULL;
26814 }
26815
26816
26817 SWIGINTERN PyObject *_wrap_ListItem_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26818 PyObject *resultobj = 0;
26819 wxListItem *arg1 = (wxListItem *) 0 ;
26820 int arg2 ;
26821 void *argp1 = 0 ;
26822 int res1 = 0 ;
26823 int val2 ;
26824 int ecode2 = 0 ;
26825 PyObject * obj0 = 0 ;
26826 PyObject * obj1 = 0 ;
26827 char * kwnames[] = {
26828 (char *) "self",(char *) "col", NULL
26829 };
26830
26831 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
26832 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26833 if (!SWIG_IsOK(res1)) {
26834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26835 }
26836 arg1 = reinterpret_cast< wxListItem * >(argp1);
26837 ecode2 = SWIG_AsVal_int(obj1, &val2);
26838 if (!SWIG_IsOK(ecode2)) {
26839 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetColumn" "', expected argument " "2"" of type '" "int""'");
26840 }
26841 arg2 = static_cast< int >(val2);
26842 {
26843 PyThreadState* __tstate = wxPyBeginAllowThreads();
26844 (arg1)->SetColumn(arg2);
26845 wxPyEndAllowThreads(__tstate);
26846 if (PyErr_Occurred()) SWIG_fail;
26847 }
26848 resultobj = SWIG_Py_Void();
26849 return resultobj;
26850 fail:
26851 return NULL;
26852 }
26853
26854
26855 SWIGINTERN PyObject *_wrap_ListItem_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26856 PyObject *resultobj = 0;
26857 wxListItem *arg1 = (wxListItem *) 0 ;
26858 long arg2 ;
26859 void *argp1 = 0 ;
26860 int res1 = 0 ;
26861 long val2 ;
26862 int ecode2 = 0 ;
26863 PyObject * obj0 = 0 ;
26864 PyObject * obj1 = 0 ;
26865 char * kwnames[] = {
26866 (char *) "self",(char *) "state", NULL
26867 };
26868
26869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) SWIG_fail;
26870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26871 if (!SWIG_IsOK(res1)) {
26872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26873 }
26874 arg1 = reinterpret_cast< wxListItem * >(argp1);
26875 ecode2 = SWIG_AsVal_long(obj1, &val2);
26876 if (!SWIG_IsOK(ecode2)) {
26877 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetState" "', expected argument " "2"" of type '" "long""'");
26878 }
26879 arg2 = static_cast< long >(val2);
26880 {
26881 PyThreadState* __tstate = wxPyBeginAllowThreads();
26882 (arg1)->SetState(arg2);
26883 wxPyEndAllowThreads(__tstate);
26884 if (PyErr_Occurred()) SWIG_fail;
26885 }
26886 resultobj = SWIG_Py_Void();
26887 return resultobj;
26888 fail:
26889 return NULL;
26890 }
26891
26892
26893 SWIGINTERN PyObject *_wrap_ListItem_SetStateMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26894 PyObject *resultobj = 0;
26895 wxListItem *arg1 = (wxListItem *) 0 ;
26896 long arg2 ;
26897 void *argp1 = 0 ;
26898 int res1 = 0 ;
26899 long val2 ;
26900 int ecode2 = 0 ;
26901 PyObject * obj0 = 0 ;
26902 PyObject * obj1 = 0 ;
26903 char * kwnames[] = {
26904 (char *) "self",(char *) "stateMask", NULL
26905 };
26906
26907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) SWIG_fail;
26908 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26909 if (!SWIG_IsOK(res1)) {
26910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetStateMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26911 }
26912 arg1 = reinterpret_cast< wxListItem * >(argp1);
26913 ecode2 = SWIG_AsVal_long(obj1, &val2);
26914 if (!SWIG_IsOK(ecode2)) {
26915 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetStateMask" "', expected argument " "2"" of type '" "long""'");
26916 }
26917 arg2 = static_cast< long >(val2);
26918 {
26919 PyThreadState* __tstate = wxPyBeginAllowThreads();
26920 (arg1)->SetStateMask(arg2);
26921 wxPyEndAllowThreads(__tstate);
26922 if (PyErr_Occurred()) SWIG_fail;
26923 }
26924 resultobj = SWIG_Py_Void();
26925 return resultobj;
26926 fail:
26927 return NULL;
26928 }
26929
26930
26931 SWIGINTERN PyObject *_wrap_ListItem_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26932 PyObject *resultobj = 0;
26933 wxListItem *arg1 = (wxListItem *) 0 ;
26934 wxString *arg2 = 0 ;
26935 void *argp1 = 0 ;
26936 int res1 = 0 ;
26937 bool temp2 = false ;
26938 PyObject * obj0 = 0 ;
26939 PyObject * obj1 = 0 ;
26940 char * kwnames[] = {
26941 (char *) "self",(char *) "text", NULL
26942 };
26943
26944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) SWIG_fail;
26945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26946 if (!SWIG_IsOK(res1)) {
26947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26948 }
26949 arg1 = reinterpret_cast< wxListItem * >(argp1);
26950 {
26951 arg2 = wxString_in_helper(obj1);
26952 if (arg2 == NULL) SWIG_fail;
26953 temp2 = true;
26954 }
26955 {
26956 PyThreadState* __tstate = wxPyBeginAllowThreads();
26957 (arg1)->SetText((wxString const &)*arg2);
26958 wxPyEndAllowThreads(__tstate);
26959 if (PyErr_Occurred()) SWIG_fail;
26960 }
26961 resultobj = SWIG_Py_Void();
26962 {
26963 if (temp2)
26964 delete arg2;
26965 }
26966 return resultobj;
26967 fail:
26968 {
26969 if (temp2)
26970 delete arg2;
26971 }
26972 return NULL;
26973 }
26974
26975
26976 SWIGINTERN PyObject *_wrap_ListItem_SetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26977 PyObject *resultobj = 0;
26978 wxListItem *arg1 = (wxListItem *) 0 ;
26979 int arg2 ;
26980 void *argp1 = 0 ;
26981 int res1 = 0 ;
26982 int val2 ;
26983 int ecode2 = 0 ;
26984 PyObject * obj0 = 0 ;
26985 PyObject * obj1 = 0 ;
26986 char * kwnames[] = {
26987 (char *) "self",(char *) "image", NULL
26988 };
26989
26990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) SWIG_fail;
26991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26992 if (!SWIG_IsOK(res1)) {
26993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26994 }
26995 arg1 = reinterpret_cast< wxListItem * >(argp1);
26996 ecode2 = SWIG_AsVal_int(obj1, &val2);
26997 if (!SWIG_IsOK(ecode2)) {
26998 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetImage" "', expected argument " "2"" of type '" "int""'");
26999 }
27000 arg2 = static_cast< int >(val2);
27001 {
27002 PyThreadState* __tstate = wxPyBeginAllowThreads();
27003 (arg1)->SetImage(arg2);
27004 wxPyEndAllowThreads(__tstate);
27005 if (PyErr_Occurred()) SWIG_fail;
27006 }
27007 resultobj = SWIG_Py_Void();
27008 return resultobj;
27009 fail:
27010 return NULL;
27011 }
27012
27013
27014 SWIGINTERN PyObject *_wrap_ListItem_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27015 PyObject *resultobj = 0;
27016 wxListItem *arg1 = (wxListItem *) 0 ;
27017 long arg2 ;
27018 void *argp1 = 0 ;
27019 int res1 = 0 ;
27020 long val2 ;
27021 int ecode2 = 0 ;
27022 PyObject * obj0 = 0 ;
27023 PyObject * obj1 = 0 ;
27024 char * kwnames[] = {
27025 (char *) "self",(char *) "data", NULL
27026 };
27027
27028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
27029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27030 if (!SWIG_IsOK(res1)) {
27031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetData" "', expected argument " "1"" of type '" "wxListItem *""'");
27032 }
27033 arg1 = reinterpret_cast< wxListItem * >(argp1);
27034 ecode2 = SWIG_AsVal_long(obj1, &val2);
27035 if (!SWIG_IsOK(ecode2)) {
27036 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetData" "', expected argument " "2"" of type '" "long""'");
27037 }
27038 arg2 = static_cast< long >(val2);
27039 {
27040 PyThreadState* __tstate = wxPyBeginAllowThreads();
27041 (arg1)->SetData(arg2);
27042 wxPyEndAllowThreads(__tstate);
27043 if (PyErr_Occurred()) SWIG_fail;
27044 }
27045 resultobj = SWIG_Py_Void();
27046 return resultobj;
27047 fail:
27048 return NULL;
27049 }
27050
27051
27052 SWIGINTERN PyObject *_wrap_ListItem_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27053 PyObject *resultobj = 0;
27054 wxListItem *arg1 = (wxListItem *) 0 ;
27055 int arg2 ;
27056 void *argp1 = 0 ;
27057 int res1 = 0 ;
27058 int val2 ;
27059 int ecode2 = 0 ;
27060 PyObject * obj0 = 0 ;
27061 PyObject * obj1 = 0 ;
27062 char * kwnames[] = {
27063 (char *) "self",(char *) "width", NULL
27064 };
27065
27066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
27067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27068 if (!SWIG_IsOK(res1)) {
27069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
27070 }
27071 arg1 = reinterpret_cast< wxListItem * >(argp1);
27072 ecode2 = SWIG_AsVal_int(obj1, &val2);
27073 if (!SWIG_IsOK(ecode2)) {
27074 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetWidth" "', expected argument " "2"" of type '" "int""'");
27075 }
27076 arg2 = static_cast< int >(val2);
27077 {
27078 PyThreadState* __tstate = wxPyBeginAllowThreads();
27079 (arg1)->SetWidth(arg2);
27080 wxPyEndAllowThreads(__tstate);
27081 if (PyErr_Occurred()) SWIG_fail;
27082 }
27083 resultobj = SWIG_Py_Void();
27084 return resultobj;
27085 fail:
27086 return NULL;
27087 }
27088
27089
27090 SWIGINTERN PyObject *_wrap_ListItem_SetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27091 PyObject *resultobj = 0;
27092 wxListItem *arg1 = (wxListItem *) 0 ;
27093 wxListColumnFormat arg2 ;
27094 void *argp1 = 0 ;
27095 int res1 = 0 ;
27096 int val2 ;
27097 int ecode2 = 0 ;
27098 PyObject * obj0 = 0 ;
27099 PyObject * obj1 = 0 ;
27100 char * kwnames[] = {
27101 (char *) "self",(char *) "align", NULL
27102 };
27103
27104 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) SWIG_fail;
27105 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27106 if (!SWIG_IsOK(res1)) {
27107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
27108 }
27109 arg1 = reinterpret_cast< wxListItem * >(argp1);
27110 ecode2 = SWIG_AsVal_int(obj1, &val2);
27111 if (!SWIG_IsOK(ecode2)) {
27112 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetAlign" "', expected argument " "2"" of type '" "wxListColumnFormat""'");
27113 }
27114 arg2 = static_cast< wxListColumnFormat >(val2);
27115 {
27116 PyThreadState* __tstate = wxPyBeginAllowThreads();
27117 (arg1)->SetAlign(arg2);
27118 wxPyEndAllowThreads(__tstate);
27119 if (PyErr_Occurred()) SWIG_fail;
27120 }
27121 resultobj = SWIG_Py_Void();
27122 return resultobj;
27123 fail:
27124 return NULL;
27125 }
27126
27127
27128 SWIGINTERN PyObject *_wrap_ListItem_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27129 PyObject *resultobj = 0;
27130 wxListItem *arg1 = (wxListItem *) 0 ;
27131 wxColour *arg2 = 0 ;
27132 void *argp1 = 0 ;
27133 int res1 = 0 ;
27134 wxColour temp2 ;
27135 PyObject * obj0 = 0 ;
27136 PyObject * obj1 = 0 ;
27137 char * kwnames[] = {
27138 (char *) "self",(char *) "colText", NULL
27139 };
27140
27141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
27142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27143 if (!SWIG_IsOK(res1)) {
27144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetTextColour" "', expected argument " "1"" of type '" "wxListItem *""'");
27145 }
27146 arg1 = reinterpret_cast< wxListItem * >(argp1);
27147 {
27148 arg2 = &temp2;
27149 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
27150 }
27151 {
27152 PyThreadState* __tstate = wxPyBeginAllowThreads();
27153 (arg1)->SetTextColour((wxColour const &)*arg2);
27154 wxPyEndAllowThreads(__tstate);
27155 if (PyErr_Occurred()) SWIG_fail;
27156 }
27157 resultobj = SWIG_Py_Void();
27158 return resultobj;
27159 fail:
27160 return NULL;
27161 }
27162
27163
27164 SWIGINTERN PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27165 PyObject *resultobj = 0;
27166 wxListItem *arg1 = (wxListItem *) 0 ;
27167 wxColour *arg2 = 0 ;
27168 void *argp1 = 0 ;
27169 int res1 = 0 ;
27170 wxColour temp2 ;
27171 PyObject * obj0 = 0 ;
27172 PyObject * obj1 = 0 ;
27173 char * kwnames[] = {
27174 (char *) "self",(char *) "colBack", NULL
27175 };
27176
27177 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
27178 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27179 if (!SWIG_IsOK(res1)) {
27180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem *""'");
27181 }
27182 arg1 = reinterpret_cast< wxListItem * >(argp1);
27183 {
27184 arg2 = &temp2;
27185 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
27186 }
27187 {
27188 PyThreadState* __tstate = wxPyBeginAllowThreads();
27189 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
27190 wxPyEndAllowThreads(__tstate);
27191 if (PyErr_Occurred()) SWIG_fail;
27192 }
27193 resultobj = SWIG_Py_Void();
27194 return resultobj;
27195 fail:
27196 return NULL;
27197 }
27198
27199
27200 SWIGINTERN PyObject *_wrap_ListItem_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27201 PyObject *resultobj = 0;
27202 wxListItem *arg1 = (wxListItem *) 0 ;
27203 wxFont *arg2 = 0 ;
27204 void *argp1 = 0 ;
27205 int res1 = 0 ;
27206 void *argp2 = 0 ;
27207 int res2 = 0 ;
27208 PyObject * obj0 = 0 ;
27209 PyObject * obj1 = 0 ;
27210 char * kwnames[] = {
27211 (char *) "self",(char *) "font", NULL
27212 };
27213
27214 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
27215 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27216 if (!SWIG_IsOK(res1)) {
27217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetFont" "', expected argument " "1"" of type '" "wxListItem *""'");
27218 }
27219 arg1 = reinterpret_cast< wxListItem * >(argp1);
27220 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
27221 if (!SWIG_IsOK(res2)) {
27222 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
27223 }
27224 if (!argp2) {
27225 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
27226 }
27227 arg2 = reinterpret_cast< wxFont * >(argp2);
27228 {
27229 PyThreadState* __tstate = wxPyBeginAllowThreads();
27230 (arg1)->SetFont((wxFont const &)*arg2);
27231 wxPyEndAllowThreads(__tstate);
27232 if (PyErr_Occurred()) SWIG_fail;
27233 }
27234 resultobj = SWIG_Py_Void();
27235 return resultobj;
27236 fail:
27237 return NULL;
27238 }
27239
27240
27241 SWIGINTERN PyObject *_wrap_ListItem_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27242 PyObject *resultobj = 0;
27243 wxListItem *arg1 = (wxListItem *) 0 ;
27244 long result;
27245 void *argp1 = 0 ;
27246 int res1 = 0 ;
27247 PyObject *swig_obj[1] ;
27248
27249 if (!args) SWIG_fail;
27250 swig_obj[0] = args;
27251 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27252 if (!SWIG_IsOK(res1)) {
27253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
27254 }
27255 arg1 = reinterpret_cast< wxListItem * >(argp1);
27256 {
27257 PyThreadState* __tstate = wxPyBeginAllowThreads();
27258 result = (long)(arg1)->GetMask();
27259 wxPyEndAllowThreads(__tstate);
27260 if (PyErr_Occurred()) SWIG_fail;
27261 }
27262 resultobj = SWIG_From_long(static_cast< long >(result));
27263 return resultobj;
27264 fail:
27265 return NULL;
27266 }
27267
27268
27269 SWIGINTERN PyObject *_wrap_ListItem_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27270 PyObject *resultobj = 0;
27271 wxListItem *arg1 = (wxListItem *) 0 ;
27272 long result;
27273 void *argp1 = 0 ;
27274 int res1 = 0 ;
27275 PyObject *swig_obj[1] ;
27276
27277 if (!args) SWIG_fail;
27278 swig_obj[0] = args;
27279 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27280 if (!SWIG_IsOK(res1)) {
27281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetId" "', expected argument " "1"" of type '" "wxListItem *""'");
27282 }
27283 arg1 = reinterpret_cast< wxListItem * >(argp1);
27284 {
27285 PyThreadState* __tstate = wxPyBeginAllowThreads();
27286 result = (long)(arg1)->GetId();
27287 wxPyEndAllowThreads(__tstate);
27288 if (PyErr_Occurred()) SWIG_fail;
27289 }
27290 resultobj = SWIG_From_long(static_cast< long >(result));
27291 return resultobj;
27292 fail:
27293 return NULL;
27294 }
27295
27296
27297 SWIGINTERN PyObject *_wrap_ListItem_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27298 PyObject *resultobj = 0;
27299 wxListItem *arg1 = (wxListItem *) 0 ;
27300 int result;
27301 void *argp1 = 0 ;
27302 int res1 = 0 ;
27303 PyObject *swig_obj[1] ;
27304
27305 if (!args) SWIG_fail;
27306 swig_obj[0] = args;
27307 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27308 if (!SWIG_IsOK(res1)) {
27309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
27310 }
27311 arg1 = reinterpret_cast< wxListItem * >(argp1);
27312 {
27313 PyThreadState* __tstate = wxPyBeginAllowThreads();
27314 result = (int)(arg1)->GetColumn();
27315 wxPyEndAllowThreads(__tstate);
27316 if (PyErr_Occurred()) SWIG_fail;
27317 }
27318 resultobj = SWIG_From_int(static_cast< int >(result));
27319 return resultobj;
27320 fail:
27321 return NULL;
27322 }
27323
27324
27325 SWIGINTERN PyObject *_wrap_ListItem_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27326 PyObject *resultobj = 0;
27327 wxListItem *arg1 = (wxListItem *) 0 ;
27328 long result;
27329 void *argp1 = 0 ;
27330 int res1 = 0 ;
27331 PyObject *swig_obj[1] ;
27332
27333 if (!args) SWIG_fail;
27334 swig_obj[0] = args;
27335 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27336 if (!SWIG_IsOK(res1)) {
27337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetState" "', expected argument " "1"" of type '" "wxListItem *""'");
27338 }
27339 arg1 = reinterpret_cast< wxListItem * >(argp1);
27340 {
27341 PyThreadState* __tstate = wxPyBeginAllowThreads();
27342 result = (long)(arg1)->GetState();
27343 wxPyEndAllowThreads(__tstate);
27344 if (PyErr_Occurred()) SWIG_fail;
27345 }
27346 resultobj = SWIG_From_long(static_cast< long >(result));
27347 return resultobj;
27348 fail:
27349 return NULL;
27350 }
27351
27352
27353 SWIGINTERN PyObject *_wrap_ListItem_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27354 PyObject *resultobj = 0;
27355 wxListItem *arg1 = (wxListItem *) 0 ;
27356 wxString *result = 0 ;
27357 void *argp1 = 0 ;
27358 int res1 = 0 ;
27359 PyObject *swig_obj[1] ;
27360
27361 if (!args) SWIG_fail;
27362 swig_obj[0] = args;
27363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27364 if (!SWIG_IsOK(res1)) {
27365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetText" "', expected argument " "1"" of type '" "wxListItem *""'");
27366 }
27367 arg1 = reinterpret_cast< wxListItem * >(argp1);
27368 {
27369 PyThreadState* __tstate = wxPyBeginAllowThreads();
27370 {
27371 wxString const &_result_ref = (arg1)->GetText();
27372 result = (wxString *) &_result_ref;
27373 }
27374 wxPyEndAllowThreads(__tstate);
27375 if (PyErr_Occurred()) SWIG_fail;
27376 }
27377 {
27378 #if wxUSE_UNICODE
27379 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27380 #else
27381 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27382 #endif
27383 }
27384 return resultobj;
27385 fail:
27386 return NULL;
27387 }
27388
27389
27390 SWIGINTERN PyObject *_wrap_ListItem_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27391 PyObject *resultobj = 0;
27392 wxListItem *arg1 = (wxListItem *) 0 ;
27393 int result;
27394 void *argp1 = 0 ;
27395 int res1 = 0 ;
27396 PyObject *swig_obj[1] ;
27397
27398 if (!args) SWIG_fail;
27399 swig_obj[0] = args;
27400 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27401 if (!SWIG_IsOK(res1)) {
27402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
27403 }
27404 arg1 = reinterpret_cast< wxListItem * >(argp1);
27405 {
27406 PyThreadState* __tstate = wxPyBeginAllowThreads();
27407 result = (int)(arg1)->GetImage();
27408 wxPyEndAllowThreads(__tstate);
27409 if (PyErr_Occurred()) SWIG_fail;
27410 }
27411 resultobj = SWIG_From_int(static_cast< int >(result));
27412 return resultobj;
27413 fail:
27414 return NULL;
27415 }
27416
27417
27418 SWIGINTERN PyObject *_wrap_ListItem_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27419 PyObject *resultobj = 0;
27420 wxListItem *arg1 = (wxListItem *) 0 ;
27421 long result;
27422 void *argp1 = 0 ;
27423 int res1 = 0 ;
27424 PyObject *swig_obj[1] ;
27425
27426 if (!args) SWIG_fail;
27427 swig_obj[0] = args;
27428 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27429 if (!SWIG_IsOK(res1)) {
27430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetData" "', expected argument " "1"" of type '" "wxListItem *""'");
27431 }
27432 arg1 = reinterpret_cast< wxListItem * >(argp1);
27433 {
27434 PyThreadState* __tstate = wxPyBeginAllowThreads();
27435 result = (long)(arg1)->GetData();
27436 wxPyEndAllowThreads(__tstate);
27437 if (PyErr_Occurred()) SWIG_fail;
27438 }
27439 resultobj = SWIG_From_long(static_cast< long >(result));
27440 return resultobj;
27441 fail:
27442 return NULL;
27443 }
27444
27445
27446 SWIGINTERN PyObject *_wrap_ListItem_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27447 PyObject *resultobj = 0;
27448 wxListItem *arg1 = (wxListItem *) 0 ;
27449 int result;
27450 void *argp1 = 0 ;
27451 int res1 = 0 ;
27452 PyObject *swig_obj[1] ;
27453
27454 if (!args) SWIG_fail;
27455 swig_obj[0] = args;
27456 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27457 if (!SWIG_IsOK(res1)) {
27458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
27459 }
27460 arg1 = reinterpret_cast< wxListItem * >(argp1);
27461 {
27462 PyThreadState* __tstate = wxPyBeginAllowThreads();
27463 result = (int)(arg1)->GetWidth();
27464 wxPyEndAllowThreads(__tstate);
27465 if (PyErr_Occurred()) SWIG_fail;
27466 }
27467 resultobj = SWIG_From_int(static_cast< int >(result));
27468 return resultobj;
27469 fail:
27470 return NULL;
27471 }
27472
27473
27474 SWIGINTERN PyObject *_wrap_ListItem_GetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27475 PyObject *resultobj = 0;
27476 wxListItem *arg1 = (wxListItem *) 0 ;
27477 wxListColumnFormat result;
27478 void *argp1 = 0 ;
27479 int res1 = 0 ;
27480 PyObject *swig_obj[1] ;
27481
27482 if (!args) SWIG_fail;
27483 swig_obj[0] = args;
27484 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27485 if (!SWIG_IsOK(res1)) {
27486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
27487 }
27488 arg1 = reinterpret_cast< wxListItem * >(argp1);
27489 {
27490 PyThreadState* __tstate = wxPyBeginAllowThreads();
27491 result = (wxListColumnFormat)(arg1)->GetAlign();
27492 wxPyEndAllowThreads(__tstate);
27493 if (PyErr_Occurred()) SWIG_fail;
27494 }
27495 resultobj = SWIG_From_int(static_cast< int >(result));
27496 return resultobj;
27497 fail:
27498 return NULL;
27499 }
27500
27501
27502 SWIGINTERN PyObject *_wrap_ListItem_GetAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27503 PyObject *resultobj = 0;
27504 wxListItem *arg1 = (wxListItem *) 0 ;
27505 wxListItemAttr *result = 0 ;
27506 void *argp1 = 0 ;
27507 int res1 = 0 ;
27508 PyObject *swig_obj[1] ;
27509
27510 if (!args) SWIG_fail;
27511 swig_obj[0] = args;
27512 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27513 if (!SWIG_IsOK(res1)) {
27514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27515 }
27516 arg1 = reinterpret_cast< wxListItem * >(argp1);
27517 {
27518 PyThreadState* __tstate = wxPyBeginAllowThreads();
27519 result = (wxListItemAttr *)(arg1)->GetAttributes();
27520 wxPyEndAllowThreads(__tstate);
27521 if (PyErr_Occurred()) SWIG_fail;
27522 }
27523 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, 0 | 0 );
27524 return resultobj;
27525 fail:
27526 return NULL;
27527 }
27528
27529
27530 SWIGINTERN PyObject *_wrap_ListItem_HasAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27531 PyObject *resultobj = 0;
27532 wxListItem *arg1 = (wxListItem *) 0 ;
27533 bool result;
27534 void *argp1 = 0 ;
27535 int res1 = 0 ;
27536 PyObject *swig_obj[1] ;
27537
27538 if (!args) SWIG_fail;
27539 swig_obj[0] = args;
27540 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27541 if (!SWIG_IsOK(res1)) {
27542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_HasAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27543 }
27544 arg1 = reinterpret_cast< wxListItem * >(argp1);
27545 {
27546 PyThreadState* __tstate = wxPyBeginAllowThreads();
27547 result = (bool)(arg1)->HasAttributes();
27548 wxPyEndAllowThreads(__tstate);
27549 if (PyErr_Occurred()) SWIG_fail;
27550 }
27551 {
27552 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27553 }
27554 return resultobj;
27555 fail:
27556 return NULL;
27557 }
27558
27559
27560 SWIGINTERN PyObject *_wrap_ListItem_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27561 PyObject *resultobj = 0;
27562 wxListItem *arg1 = (wxListItem *) 0 ;
27563 wxColour result;
27564 void *argp1 = 0 ;
27565 int res1 = 0 ;
27566 PyObject *swig_obj[1] ;
27567
27568 if (!args) SWIG_fail;
27569 swig_obj[0] = args;
27570 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27571 if (!SWIG_IsOK(res1)) {
27572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetTextColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27573 }
27574 arg1 = reinterpret_cast< wxListItem * >(argp1);
27575 {
27576 PyThreadState* __tstate = wxPyBeginAllowThreads();
27577 result = ((wxListItem const *)arg1)->GetTextColour();
27578 wxPyEndAllowThreads(__tstate);
27579 if (PyErr_Occurred()) SWIG_fail;
27580 }
27581 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27582 return resultobj;
27583 fail:
27584 return NULL;
27585 }
27586
27587
27588 SWIGINTERN PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27589 PyObject *resultobj = 0;
27590 wxListItem *arg1 = (wxListItem *) 0 ;
27591 wxColour result;
27592 void *argp1 = 0 ;
27593 int res1 = 0 ;
27594 PyObject *swig_obj[1] ;
27595
27596 if (!args) SWIG_fail;
27597 swig_obj[0] = args;
27598 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27599 if (!SWIG_IsOK(res1)) {
27600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27601 }
27602 arg1 = reinterpret_cast< wxListItem * >(argp1);
27603 {
27604 PyThreadState* __tstate = wxPyBeginAllowThreads();
27605 result = ((wxListItem const *)arg1)->GetBackgroundColour();
27606 wxPyEndAllowThreads(__tstate);
27607 if (PyErr_Occurred()) SWIG_fail;
27608 }
27609 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27610 return resultobj;
27611 fail:
27612 return NULL;
27613 }
27614
27615
27616 SWIGINTERN PyObject *_wrap_ListItem_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27617 PyObject *resultobj = 0;
27618 wxListItem *arg1 = (wxListItem *) 0 ;
27619 wxFont result;
27620 void *argp1 = 0 ;
27621 int res1 = 0 ;
27622 PyObject *swig_obj[1] ;
27623
27624 if (!args) SWIG_fail;
27625 swig_obj[0] = args;
27626 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27627 if (!SWIG_IsOK(res1)) {
27628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetFont" "', expected argument " "1"" of type '" "wxListItem const *""'");
27629 }
27630 arg1 = reinterpret_cast< wxListItem * >(argp1);
27631 {
27632 PyThreadState* __tstate = wxPyBeginAllowThreads();
27633 result = ((wxListItem const *)arg1)->GetFont();
27634 wxPyEndAllowThreads(__tstate);
27635 if (PyErr_Occurred()) SWIG_fail;
27636 }
27637 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
27638 return resultobj;
27639 fail:
27640 return NULL;
27641 }
27642
27643
27644 SWIGINTERN PyObject *_wrap_ListItem_m_mask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27645 PyObject *resultobj = 0;
27646 wxListItem *arg1 = (wxListItem *) 0 ;
27647 long arg2 ;
27648 void *argp1 = 0 ;
27649 int res1 = 0 ;
27650 long val2 ;
27651 int ecode2 = 0 ;
27652 PyObject *swig_obj[2] ;
27653
27654 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_mask_set",2,2,swig_obj)) SWIG_fail;
27655 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27656 if (!SWIG_IsOK(res1)) {
27657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27658 }
27659 arg1 = reinterpret_cast< wxListItem * >(argp1);
27660 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27661 if (!SWIG_IsOK(ecode2)) {
27662 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_mask_set" "', expected argument " "2"" of type '" "long""'");
27663 }
27664 arg2 = static_cast< long >(val2);
27665 if (arg1) (arg1)->m_mask = arg2;
27666
27667 resultobj = SWIG_Py_Void();
27668 return resultobj;
27669 fail:
27670 return NULL;
27671 }
27672
27673
27674 SWIGINTERN PyObject *_wrap_ListItem_m_mask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27675 PyObject *resultobj = 0;
27676 wxListItem *arg1 = (wxListItem *) 0 ;
27677 long result;
27678 void *argp1 = 0 ;
27679 int res1 = 0 ;
27680 PyObject *swig_obj[1] ;
27681
27682 if (!args) SWIG_fail;
27683 swig_obj[0] = args;
27684 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27685 if (!SWIG_IsOK(res1)) {
27686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27687 }
27688 arg1 = reinterpret_cast< wxListItem * >(argp1);
27689 result = (long) ((arg1)->m_mask);
27690 resultobj = SWIG_From_long(static_cast< long >(result));
27691 return resultobj;
27692 fail:
27693 return NULL;
27694 }
27695
27696
27697 SWIGINTERN PyObject *_wrap_ListItem_m_itemId_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27698 PyObject *resultobj = 0;
27699 wxListItem *arg1 = (wxListItem *) 0 ;
27700 long arg2 ;
27701 void *argp1 = 0 ;
27702 int res1 = 0 ;
27703 long val2 ;
27704 int ecode2 = 0 ;
27705 PyObject *swig_obj[2] ;
27706
27707 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_itemId_set",2,2,swig_obj)) SWIG_fail;
27708 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27709 if (!SWIG_IsOK(res1)) {
27710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27711 }
27712 arg1 = reinterpret_cast< wxListItem * >(argp1);
27713 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27714 if (!SWIG_IsOK(ecode2)) {
27715 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_itemId_set" "', expected argument " "2"" of type '" "long""'");
27716 }
27717 arg2 = static_cast< long >(val2);
27718 if (arg1) (arg1)->m_itemId = arg2;
27719
27720 resultobj = SWIG_Py_Void();
27721 return resultobj;
27722 fail:
27723 return NULL;
27724 }
27725
27726
27727 SWIGINTERN PyObject *_wrap_ListItem_m_itemId_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27728 PyObject *resultobj = 0;
27729 wxListItem *arg1 = (wxListItem *) 0 ;
27730 long result;
27731 void *argp1 = 0 ;
27732 int res1 = 0 ;
27733 PyObject *swig_obj[1] ;
27734
27735 if (!args) SWIG_fail;
27736 swig_obj[0] = args;
27737 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27738 if (!SWIG_IsOK(res1)) {
27739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27740 }
27741 arg1 = reinterpret_cast< wxListItem * >(argp1);
27742 result = (long) ((arg1)->m_itemId);
27743 resultobj = SWIG_From_long(static_cast< long >(result));
27744 return resultobj;
27745 fail:
27746 return NULL;
27747 }
27748
27749
27750 SWIGINTERN PyObject *_wrap_ListItem_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27751 PyObject *resultobj = 0;
27752 wxListItem *arg1 = (wxListItem *) 0 ;
27753 int arg2 ;
27754 void *argp1 = 0 ;
27755 int res1 = 0 ;
27756 int val2 ;
27757 int ecode2 = 0 ;
27758 PyObject *swig_obj[2] ;
27759
27760 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_col_set",2,2,swig_obj)) SWIG_fail;
27761 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27762 if (!SWIG_IsOK(res1)) {
27763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27764 }
27765 arg1 = reinterpret_cast< wxListItem * >(argp1);
27766 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27767 if (!SWIG_IsOK(ecode2)) {
27768 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_col_set" "', expected argument " "2"" of type '" "int""'");
27769 }
27770 arg2 = static_cast< int >(val2);
27771 if (arg1) (arg1)->m_col = arg2;
27772
27773 resultobj = SWIG_Py_Void();
27774 return resultobj;
27775 fail:
27776 return NULL;
27777 }
27778
27779
27780 SWIGINTERN PyObject *_wrap_ListItem_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27781 PyObject *resultobj = 0;
27782 wxListItem *arg1 = (wxListItem *) 0 ;
27783 int result;
27784 void *argp1 = 0 ;
27785 int res1 = 0 ;
27786 PyObject *swig_obj[1] ;
27787
27788 if (!args) SWIG_fail;
27789 swig_obj[0] = args;
27790 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27791 if (!SWIG_IsOK(res1)) {
27792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27793 }
27794 arg1 = reinterpret_cast< wxListItem * >(argp1);
27795 result = (int) ((arg1)->m_col);
27796 resultobj = SWIG_From_int(static_cast< int >(result));
27797 return resultobj;
27798 fail:
27799 return NULL;
27800 }
27801
27802
27803 SWIGINTERN PyObject *_wrap_ListItem_m_state_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27804 PyObject *resultobj = 0;
27805 wxListItem *arg1 = (wxListItem *) 0 ;
27806 long arg2 ;
27807 void *argp1 = 0 ;
27808 int res1 = 0 ;
27809 long val2 ;
27810 int ecode2 = 0 ;
27811 PyObject *swig_obj[2] ;
27812
27813 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_state_set",2,2,swig_obj)) SWIG_fail;
27814 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27815 if (!SWIG_IsOK(res1)) {
27816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27817 }
27818 arg1 = reinterpret_cast< wxListItem * >(argp1);
27819 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27820 if (!SWIG_IsOK(ecode2)) {
27821 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_state_set" "', expected argument " "2"" of type '" "long""'");
27822 }
27823 arg2 = static_cast< long >(val2);
27824 if (arg1) (arg1)->m_state = arg2;
27825
27826 resultobj = SWIG_Py_Void();
27827 return resultobj;
27828 fail:
27829 return NULL;
27830 }
27831
27832
27833 SWIGINTERN PyObject *_wrap_ListItem_m_state_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27834 PyObject *resultobj = 0;
27835 wxListItem *arg1 = (wxListItem *) 0 ;
27836 long result;
27837 void *argp1 = 0 ;
27838 int res1 = 0 ;
27839 PyObject *swig_obj[1] ;
27840
27841 if (!args) SWIG_fail;
27842 swig_obj[0] = args;
27843 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27844 if (!SWIG_IsOK(res1)) {
27845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27846 }
27847 arg1 = reinterpret_cast< wxListItem * >(argp1);
27848 result = (long) ((arg1)->m_state);
27849 resultobj = SWIG_From_long(static_cast< long >(result));
27850 return resultobj;
27851 fail:
27852 return NULL;
27853 }
27854
27855
27856 SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27857 PyObject *resultobj = 0;
27858 wxListItem *arg1 = (wxListItem *) 0 ;
27859 long arg2 ;
27860 void *argp1 = 0 ;
27861 int res1 = 0 ;
27862 long val2 ;
27863 int ecode2 = 0 ;
27864 PyObject *swig_obj[2] ;
27865
27866 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_stateMask_set",2,2,swig_obj)) SWIG_fail;
27867 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27868 if (!SWIG_IsOK(res1)) {
27869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27870 }
27871 arg1 = reinterpret_cast< wxListItem * >(argp1);
27872 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27873 if (!SWIG_IsOK(ecode2)) {
27874 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_stateMask_set" "', expected argument " "2"" of type '" "long""'");
27875 }
27876 arg2 = static_cast< long >(val2);
27877 if (arg1) (arg1)->m_stateMask = arg2;
27878
27879 resultobj = SWIG_Py_Void();
27880 return resultobj;
27881 fail:
27882 return NULL;
27883 }
27884
27885
27886 SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27887 PyObject *resultobj = 0;
27888 wxListItem *arg1 = (wxListItem *) 0 ;
27889 long result;
27890 void *argp1 = 0 ;
27891 int res1 = 0 ;
27892 PyObject *swig_obj[1] ;
27893
27894 if (!args) SWIG_fail;
27895 swig_obj[0] = args;
27896 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27897 if (!SWIG_IsOK(res1)) {
27898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27899 }
27900 arg1 = reinterpret_cast< wxListItem * >(argp1);
27901 result = (long) ((arg1)->m_stateMask);
27902 resultobj = SWIG_From_long(static_cast< long >(result));
27903 return resultobj;
27904 fail:
27905 return NULL;
27906 }
27907
27908
27909 SWIGINTERN PyObject *_wrap_ListItem_m_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27910 PyObject *resultobj = 0;
27911 wxListItem *arg1 = (wxListItem *) 0 ;
27912 wxString *arg2 = (wxString *) 0 ;
27913 void *argp1 = 0 ;
27914 int res1 = 0 ;
27915 bool temp2 = false ;
27916 PyObject *swig_obj[2] ;
27917
27918 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_text_set",2,2,swig_obj)) SWIG_fail;
27919 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27920 if (!SWIG_IsOK(res1)) {
27921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27922 }
27923 arg1 = reinterpret_cast< wxListItem * >(argp1);
27924 {
27925 arg2 = wxString_in_helper(swig_obj[1]);
27926 if (arg2 == NULL) SWIG_fail;
27927 temp2 = true;
27928 }
27929 if (arg1) (arg1)->m_text = *arg2;
27930
27931 resultobj = SWIG_Py_Void();
27932 {
27933 if (temp2)
27934 delete arg2;
27935 }
27936 return resultobj;
27937 fail:
27938 {
27939 if (temp2)
27940 delete arg2;
27941 }
27942 return NULL;
27943 }
27944
27945
27946 SWIGINTERN PyObject *_wrap_ListItem_m_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27947 PyObject *resultobj = 0;
27948 wxListItem *arg1 = (wxListItem *) 0 ;
27949 wxString *result = 0 ;
27950 void *argp1 = 0 ;
27951 int res1 = 0 ;
27952 PyObject *swig_obj[1] ;
27953
27954 if (!args) SWIG_fail;
27955 swig_obj[0] = args;
27956 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27957 if (!SWIG_IsOK(res1)) {
27958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27959 }
27960 arg1 = reinterpret_cast< wxListItem * >(argp1);
27961 result = (wxString *)& ((arg1)->m_text);
27962 {
27963 #if wxUSE_UNICODE
27964 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27965 #else
27966 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27967 #endif
27968 }
27969 return resultobj;
27970 fail:
27971 return NULL;
27972 }
27973
27974
27975 SWIGINTERN PyObject *_wrap_ListItem_m_image_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27976 PyObject *resultobj = 0;
27977 wxListItem *arg1 = (wxListItem *) 0 ;
27978 int arg2 ;
27979 void *argp1 = 0 ;
27980 int res1 = 0 ;
27981 int val2 ;
27982 int ecode2 = 0 ;
27983 PyObject *swig_obj[2] ;
27984
27985 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_image_set",2,2,swig_obj)) SWIG_fail;
27986 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27987 if (!SWIG_IsOK(res1)) {
27988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27989 }
27990 arg1 = reinterpret_cast< wxListItem * >(argp1);
27991 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27992 if (!SWIG_IsOK(ecode2)) {
27993 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_image_set" "', expected argument " "2"" of type '" "int""'");
27994 }
27995 arg2 = static_cast< int >(val2);
27996 if (arg1) (arg1)->m_image = arg2;
27997
27998 resultobj = SWIG_Py_Void();
27999 return resultobj;
28000 fail:
28001 return NULL;
28002 }
28003
28004
28005 SWIGINTERN PyObject *_wrap_ListItem_m_image_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28006 PyObject *resultobj = 0;
28007 wxListItem *arg1 = (wxListItem *) 0 ;
28008 int result;
28009 void *argp1 = 0 ;
28010 int res1 = 0 ;
28011 PyObject *swig_obj[1] ;
28012
28013 if (!args) SWIG_fail;
28014 swig_obj[0] = args;
28015 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28016 if (!SWIG_IsOK(res1)) {
28017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_get" "', expected argument " "1"" of type '" "wxListItem *""'");
28018 }
28019 arg1 = reinterpret_cast< wxListItem * >(argp1);
28020 result = (int) ((arg1)->m_image);
28021 resultobj = SWIG_From_int(static_cast< int >(result));
28022 return resultobj;
28023 fail:
28024 return NULL;
28025 }
28026
28027
28028 SWIGINTERN PyObject *_wrap_ListItem_m_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28029 PyObject *resultobj = 0;
28030 wxListItem *arg1 = (wxListItem *) 0 ;
28031 long arg2 ;
28032 void *argp1 = 0 ;
28033 int res1 = 0 ;
28034 long val2 ;
28035 int ecode2 = 0 ;
28036 PyObject *swig_obj[2] ;
28037
28038 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_data_set",2,2,swig_obj)) SWIG_fail;
28039 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28040 if (!SWIG_IsOK(res1)) {
28041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_set" "', expected argument " "1"" of type '" "wxListItem *""'");
28042 }
28043 arg1 = reinterpret_cast< wxListItem * >(argp1);
28044 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
28045 if (!SWIG_IsOK(ecode2)) {
28046 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_data_set" "', expected argument " "2"" of type '" "long""'");
28047 }
28048 arg2 = static_cast< long >(val2);
28049 if (arg1) (arg1)->m_data = arg2;
28050
28051 resultobj = SWIG_Py_Void();
28052 return resultobj;
28053 fail:
28054 return NULL;
28055 }
28056
28057
28058 SWIGINTERN PyObject *_wrap_ListItem_m_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28059 PyObject *resultobj = 0;
28060 wxListItem *arg1 = (wxListItem *) 0 ;
28061 long result;
28062 void *argp1 = 0 ;
28063 int res1 = 0 ;
28064 PyObject *swig_obj[1] ;
28065
28066 if (!args) SWIG_fail;
28067 swig_obj[0] = args;
28068 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28069 if (!SWIG_IsOK(res1)) {
28070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_get" "', expected argument " "1"" of type '" "wxListItem *""'");
28071 }
28072 arg1 = reinterpret_cast< wxListItem * >(argp1);
28073 result = (long) ((arg1)->m_data);
28074 resultobj = SWIG_From_long(static_cast< long >(result));
28075 return resultobj;
28076 fail:
28077 return NULL;
28078 }
28079
28080
28081 SWIGINTERN PyObject *_wrap_ListItem_m_format_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28082 PyObject *resultobj = 0;
28083 wxListItem *arg1 = (wxListItem *) 0 ;
28084 int arg2 ;
28085 void *argp1 = 0 ;
28086 int res1 = 0 ;
28087 int val2 ;
28088 int ecode2 = 0 ;
28089 PyObject *swig_obj[2] ;
28090
28091 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_format_set",2,2,swig_obj)) SWIG_fail;
28092 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28093 if (!SWIG_IsOK(res1)) {
28094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_set" "', expected argument " "1"" of type '" "wxListItem *""'");
28095 }
28096 arg1 = reinterpret_cast< wxListItem * >(argp1);
28097 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28098 if (!SWIG_IsOK(ecode2)) {
28099 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_format_set" "', expected argument " "2"" of type '" "int""'");
28100 }
28101 arg2 = static_cast< int >(val2);
28102 if (arg1) (arg1)->m_format = arg2;
28103
28104 resultobj = SWIG_Py_Void();
28105 return resultobj;
28106 fail:
28107 return NULL;
28108 }
28109
28110
28111 SWIGINTERN PyObject *_wrap_ListItem_m_format_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28112 PyObject *resultobj = 0;
28113 wxListItem *arg1 = (wxListItem *) 0 ;
28114 int result;
28115 void *argp1 = 0 ;
28116 int res1 = 0 ;
28117 PyObject *swig_obj[1] ;
28118
28119 if (!args) SWIG_fail;
28120 swig_obj[0] = args;
28121 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28122 if (!SWIG_IsOK(res1)) {
28123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_get" "', expected argument " "1"" of type '" "wxListItem *""'");
28124 }
28125 arg1 = reinterpret_cast< wxListItem * >(argp1);
28126 result = (int) ((arg1)->m_format);
28127 resultobj = SWIG_From_int(static_cast< int >(result));
28128 return resultobj;
28129 fail:
28130 return NULL;
28131 }
28132
28133
28134 SWIGINTERN PyObject *_wrap_ListItem_m_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28135 PyObject *resultobj = 0;
28136 wxListItem *arg1 = (wxListItem *) 0 ;
28137 int arg2 ;
28138 void *argp1 = 0 ;
28139 int res1 = 0 ;
28140 int val2 ;
28141 int ecode2 = 0 ;
28142 PyObject *swig_obj[2] ;
28143
28144 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_width_set",2,2,swig_obj)) SWIG_fail;
28145 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28146 if (!SWIG_IsOK(res1)) {
28147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_set" "', expected argument " "1"" of type '" "wxListItem *""'");
28148 }
28149 arg1 = reinterpret_cast< wxListItem * >(argp1);
28150 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28151 if (!SWIG_IsOK(ecode2)) {
28152 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_width_set" "', expected argument " "2"" of type '" "int""'");
28153 }
28154 arg2 = static_cast< int >(val2);
28155 if (arg1) (arg1)->m_width = arg2;
28156
28157 resultobj = SWIG_Py_Void();
28158 return resultobj;
28159 fail:
28160 return NULL;
28161 }
28162
28163
28164 SWIGINTERN PyObject *_wrap_ListItem_m_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28165 PyObject *resultobj = 0;
28166 wxListItem *arg1 = (wxListItem *) 0 ;
28167 int 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_wxListItem, 0 | 0 );
28175 if (!SWIG_IsOK(res1)) {
28176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_get" "', expected argument " "1"" of type '" "wxListItem *""'");
28177 }
28178 arg1 = reinterpret_cast< wxListItem * >(argp1);
28179 result = (int) ((arg1)->m_width);
28180 resultobj = SWIG_From_int(static_cast< int >(result));
28181 return resultobj;
28182 fail:
28183 return NULL;
28184 }
28185
28186
28187 SWIGINTERN PyObject *ListItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28188 PyObject *obj;
28189 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28190 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItem, SWIG_NewClientData(obj));
28191 return SWIG_Py_Void();
28192 }
28193
28194 SWIGINTERN PyObject *ListItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28195 return SWIG_Python_InitShadowInstance(args);
28196 }
28197
28198 SWIGINTERN PyObject *_wrap_new_ListEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28199 PyObject *resultobj = 0;
28200 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
28201 int arg2 = (int) 0 ;
28202 wxListEvent *result = 0 ;
28203 int val1 ;
28204 int ecode1 = 0 ;
28205 int val2 ;
28206 int ecode2 = 0 ;
28207 PyObject * obj0 = 0 ;
28208 PyObject * obj1 = 0 ;
28209 char * kwnames[] = {
28210 (char *) "commandType",(char *) "id", NULL
28211 };
28212
28213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) SWIG_fail;
28214 if (obj0) {
28215 ecode1 = SWIG_AsVal_int(obj0, &val1);
28216 if (!SWIG_IsOK(ecode1)) {
28217 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListEvent" "', expected argument " "1"" of type '" "wxEventType""'");
28218 }
28219 arg1 = static_cast< wxEventType >(val1);
28220 }
28221 if (obj1) {
28222 ecode2 = SWIG_AsVal_int(obj1, &val2);
28223 if (!SWIG_IsOK(ecode2)) {
28224 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListEvent" "', expected argument " "2"" of type '" "int""'");
28225 }
28226 arg2 = static_cast< int >(val2);
28227 }
28228 {
28229 PyThreadState* __tstate = wxPyBeginAllowThreads();
28230 result = (wxListEvent *)new wxListEvent(arg1,arg2);
28231 wxPyEndAllowThreads(__tstate);
28232 if (PyErr_Occurred()) SWIG_fail;
28233 }
28234 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListEvent, SWIG_POINTER_NEW | 0 );
28235 return resultobj;
28236 fail:
28237 return NULL;
28238 }
28239
28240
28241 SWIGINTERN PyObject *_wrap_ListEvent_m_code_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28242 PyObject *resultobj = 0;
28243 wxListEvent *arg1 = (wxListEvent *) 0 ;
28244 int arg2 ;
28245 void *argp1 = 0 ;
28246 int res1 = 0 ;
28247 int val2 ;
28248 int ecode2 = 0 ;
28249 PyObject *swig_obj[2] ;
28250
28251 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_code_set",2,2,swig_obj)) SWIG_fail;
28252 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28253 if (!SWIG_IsOK(res1)) {
28254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28255 }
28256 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28257 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28258 if (!SWIG_IsOK(ecode2)) {
28259 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_code_set" "', expected argument " "2"" of type '" "int""'");
28260 }
28261 arg2 = static_cast< int >(val2);
28262 if (arg1) (arg1)->m_code = arg2;
28263
28264 resultobj = SWIG_Py_Void();
28265 return resultobj;
28266 fail:
28267 return NULL;
28268 }
28269
28270
28271 SWIGINTERN PyObject *_wrap_ListEvent_m_code_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28272 PyObject *resultobj = 0;
28273 wxListEvent *arg1 = (wxListEvent *) 0 ;
28274 int result;
28275 void *argp1 = 0 ;
28276 int res1 = 0 ;
28277 PyObject *swig_obj[1] ;
28278
28279 if (!args) SWIG_fail;
28280 swig_obj[0] = args;
28281 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28282 if (!SWIG_IsOK(res1)) {
28283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28284 }
28285 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28286 result = (int) ((arg1)->m_code);
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_m_oldItemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28295 PyObject *resultobj = 0;
28296 wxListEvent *arg1 = (wxListEvent *) 0 ;
28297 long arg2 ;
28298 void *argp1 = 0 ;
28299 int res1 = 0 ;
28300 long val2 ;
28301 int ecode2 = 0 ;
28302 PyObject *swig_obj[2] ;
28303
28304 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_oldItemIndex_set",2,2,swig_obj)) SWIG_fail;
28305 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28306 if (!SWIG_IsOK(res1)) {
28307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28308 }
28309 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28310 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
28311 if (!SWIG_IsOK(ecode2)) {
28312 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "2"" of type '" "long""'");
28313 }
28314 arg2 = static_cast< long >(val2);
28315 if (arg1) (arg1)->m_oldItemIndex = arg2;
28316
28317 resultobj = SWIG_Py_Void();
28318 return resultobj;
28319 fail:
28320 return NULL;
28321 }
28322
28323
28324 SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28325 PyObject *resultobj = 0;
28326 wxListEvent *arg1 = (wxListEvent *) 0 ;
28327 long result;
28328 void *argp1 = 0 ;
28329 int res1 = 0 ;
28330 PyObject *swig_obj[1] ;
28331
28332 if (!args) SWIG_fail;
28333 swig_obj[0] = args;
28334 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28335 if (!SWIG_IsOK(res1)) {
28336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28337 }
28338 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28339 result = (long) ((arg1)->m_oldItemIndex);
28340 resultobj = SWIG_From_long(static_cast< long >(result));
28341 return resultobj;
28342 fail:
28343 return NULL;
28344 }
28345
28346
28347 SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28348 PyObject *resultobj = 0;
28349 wxListEvent *arg1 = (wxListEvent *) 0 ;
28350 long arg2 ;
28351 void *argp1 = 0 ;
28352 int res1 = 0 ;
28353 long val2 ;
28354 int ecode2 = 0 ;
28355 PyObject *swig_obj[2] ;
28356
28357 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_itemIndex_set",2,2,swig_obj)) SWIG_fail;
28358 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28359 if (!SWIG_IsOK(res1)) {
28360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28361 }
28362 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28363 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
28364 if (!SWIG_IsOK(ecode2)) {
28365 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "2"" of type '" "long""'");
28366 }
28367 arg2 = static_cast< long >(val2);
28368 if (arg1) (arg1)->m_itemIndex = arg2;
28369
28370 resultobj = SWIG_Py_Void();
28371 return resultobj;
28372 fail:
28373 return NULL;
28374 }
28375
28376
28377 SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28378 PyObject *resultobj = 0;
28379 wxListEvent *arg1 = (wxListEvent *) 0 ;
28380 long result;
28381 void *argp1 = 0 ;
28382 int res1 = 0 ;
28383 PyObject *swig_obj[1] ;
28384
28385 if (!args) SWIG_fail;
28386 swig_obj[0] = args;
28387 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28388 if (!SWIG_IsOK(res1)) {
28389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28390 }
28391 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28392 result = (long) ((arg1)->m_itemIndex);
28393 resultobj = SWIG_From_long(static_cast< long >(result));
28394 return resultobj;
28395 fail:
28396 return NULL;
28397 }
28398
28399
28400 SWIGINTERN PyObject *_wrap_ListEvent_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28401 PyObject *resultobj = 0;
28402 wxListEvent *arg1 = (wxListEvent *) 0 ;
28403 int arg2 ;
28404 void *argp1 = 0 ;
28405 int res1 = 0 ;
28406 int val2 ;
28407 int ecode2 = 0 ;
28408 PyObject *swig_obj[2] ;
28409
28410 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_col_set",2,2,swig_obj)) SWIG_fail;
28411 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28412 if (!SWIG_IsOK(res1)) {
28413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28414 }
28415 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28416 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28417 if (!SWIG_IsOK(ecode2)) {
28418 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_col_set" "', expected argument " "2"" of type '" "int""'");
28419 }
28420 arg2 = static_cast< int >(val2);
28421 if (arg1) (arg1)->m_col = arg2;
28422
28423 resultobj = SWIG_Py_Void();
28424 return resultobj;
28425 fail:
28426 return NULL;
28427 }
28428
28429
28430 SWIGINTERN PyObject *_wrap_ListEvent_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28431 PyObject *resultobj = 0;
28432 wxListEvent *arg1 = (wxListEvent *) 0 ;
28433 int result;
28434 void *argp1 = 0 ;
28435 int res1 = 0 ;
28436 PyObject *swig_obj[1] ;
28437
28438 if (!args) SWIG_fail;
28439 swig_obj[0] = args;
28440 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28441 if (!SWIG_IsOK(res1)) {
28442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28443 }
28444 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28445 result = (int) ((arg1)->m_col);
28446 resultobj = SWIG_From_int(static_cast< int >(result));
28447 return resultobj;
28448 fail:
28449 return NULL;
28450 }
28451
28452
28453 SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28454 PyObject *resultobj = 0;
28455 wxListEvent *arg1 = (wxListEvent *) 0 ;
28456 wxPoint *arg2 = (wxPoint *) 0 ;
28457 void *argp1 = 0 ;
28458 int res1 = 0 ;
28459 void *argp2 = 0 ;
28460 int res2 = 0 ;
28461 PyObject *swig_obj[2] ;
28462
28463 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_pointDrag_set",2,2,swig_obj)) SWIG_fail;
28464 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28465 if (!SWIG_IsOK(res1)) {
28466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28467 }
28468 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28469 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPoint, 0 | 0 );
28470 if (!SWIG_IsOK(res2)) {
28471 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "2"" of type '" "wxPoint *""'");
28472 }
28473 arg2 = reinterpret_cast< wxPoint * >(argp2);
28474 if (arg1) (arg1)->m_pointDrag = *arg2;
28475
28476 resultobj = SWIG_Py_Void();
28477 return resultobj;
28478 fail:
28479 return NULL;
28480 }
28481
28482
28483 SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28484 PyObject *resultobj = 0;
28485 wxListEvent *arg1 = (wxListEvent *) 0 ;
28486 wxPoint *result = 0 ;
28487 void *argp1 = 0 ;
28488 int res1 = 0 ;
28489 PyObject *swig_obj[1] ;
28490
28491 if (!args) SWIG_fail;
28492 swig_obj[0] = args;
28493 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28494 if (!SWIG_IsOK(res1)) {
28495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28496 }
28497 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28498 result = (wxPoint *)& ((arg1)->m_pointDrag);
28499 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, 0 | 0 );
28500 return resultobj;
28501 fail:
28502 return NULL;
28503 }
28504
28505
28506 SWIGINTERN PyObject *_wrap_ListEvent_m_item_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28507 PyObject *resultobj = 0;
28508 wxListEvent *arg1 = (wxListEvent *) 0 ;
28509 wxListItem *result = 0 ;
28510 void *argp1 = 0 ;
28511 int res1 = 0 ;
28512 PyObject *swig_obj[1] ;
28513
28514 if (!args) SWIG_fail;
28515 swig_obj[0] = args;
28516 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28517 if (!SWIG_IsOK(res1)) {
28518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_item_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28519 }
28520 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28521 result = (wxListItem *)& ((arg1)->m_item);
28522 {
28523 resultobj = wxPyMake_wxObject(result, 0);
28524 }
28525 return resultobj;
28526 fail:
28527 return NULL;
28528 }
28529
28530
28531 SWIGINTERN PyObject *_wrap_ListEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28532 PyObject *resultobj = 0;
28533 wxListEvent *arg1 = (wxListEvent *) 0 ;
28534 int result;
28535 void *argp1 = 0 ;
28536 int res1 = 0 ;
28537 PyObject *swig_obj[1] ;
28538
28539 if (!args) SWIG_fail;
28540 swig_obj[0] = args;
28541 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28542 if (!SWIG_IsOK(res1)) {
28543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxListEvent *""'");
28544 }
28545 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28546 {
28547 PyThreadState* __tstate = wxPyBeginAllowThreads();
28548 result = (int)(arg1)->GetKeyCode();
28549 wxPyEndAllowThreads(__tstate);
28550 if (PyErr_Occurred()) SWIG_fail;
28551 }
28552 resultobj = SWIG_From_int(static_cast< int >(result));
28553 return resultobj;
28554 fail:
28555 return NULL;
28556 }
28557
28558
28559 SWIGINTERN PyObject *_wrap_ListEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28560 PyObject *resultobj = 0;
28561 wxListEvent *arg1 = (wxListEvent *) 0 ;
28562 long result;
28563 void *argp1 = 0 ;
28564 int res1 = 0 ;
28565 PyObject *swig_obj[1] ;
28566
28567 if (!args) SWIG_fail;
28568 swig_obj[0] = args;
28569 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28570 if (!SWIG_IsOK(res1)) {
28571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetIndex" "', expected argument " "1"" of type '" "wxListEvent *""'");
28572 }
28573 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28574 {
28575 PyThreadState* __tstate = wxPyBeginAllowThreads();
28576 result = (long)(arg1)->GetIndex();
28577 wxPyEndAllowThreads(__tstate);
28578 if (PyErr_Occurred()) SWIG_fail;
28579 }
28580 resultobj = SWIG_From_long(static_cast< long >(result));
28581 return resultobj;
28582 fail:
28583 return NULL;
28584 }
28585
28586
28587 SWIGINTERN PyObject *_wrap_ListEvent_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28588 PyObject *resultobj = 0;
28589 wxListEvent *arg1 = (wxListEvent *) 0 ;
28590 int result;
28591 void *argp1 = 0 ;
28592 int res1 = 0 ;
28593 PyObject *swig_obj[1] ;
28594
28595 if (!args) SWIG_fail;
28596 swig_obj[0] = args;
28597 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28598 if (!SWIG_IsOK(res1)) {
28599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetColumn" "', expected argument " "1"" of type '" "wxListEvent *""'");
28600 }
28601 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28602 {
28603 PyThreadState* __tstate = wxPyBeginAllowThreads();
28604 result = (int)(arg1)->GetColumn();
28605 wxPyEndAllowThreads(__tstate);
28606 if (PyErr_Occurred()) SWIG_fail;
28607 }
28608 resultobj = SWIG_From_int(static_cast< int >(result));
28609 return resultobj;
28610 fail:
28611 return NULL;
28612 }
28613
28614
28615 SWIGINTERN PyObject *_wrap_ListEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28616 PyObject *resultobj = 0;
28617 wxListEvent *arg1 = (wxListEvent *) 0 ;
28618 wxPoint result;
28619 void *argp1 = 0 ;
28620 int res1 = 0 ;
28621 PyObject *swig_obj[1] ;
28622
28623 if (!args) SWIG_fail;
28624 swig_obj[0] = args;
28625 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28626 if (!SWIG_IsOK(res1)) {
28627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetPoint" "', expected argument " "1"" of type '" "wxListEvent *""'");
28628 }
28629 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28630 {
28631 PyThreadState* __tstate = wxPyBeginAllowThreads();
28632 result = (arg1)->GetPoint();
28633 wxPyEndAllowThreads(__tstate);
28634 if (PyErr_Occurred()) SWIG_fail;
28635 }
28636 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
28637 return resultobj;
28638 fail:
28639 return NULL;
28640 }
28641
28642
28643 SWIGINTERN PyObject *_wrap_ListEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28644 PyObject *resultobj = 0;
28645 wxListEvent *arg1 = (wxListEvent *) 0 ;
28646 wxString *result = 0 ;
28647 void *argp1 = 0 ;
28648 int res1 = 0 ;
28649 PyObject *swig_obj[1] ;
28650
28651 if (!args) SWIG_fail;
28652 swig_obj[0] = args;
28653 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28654 if (!SWIG_IsOK(res1)) {
28655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetLabel" "', expected argument " "1"" of type '" "wxListEvent *""'");
28656 }
28657 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28658 {
28659 PyThreadState* __tstate = wxPyBeginAllowThreads();
28660 {
28661 wxString const &_result_ref = (arg1)->GetLabel();
28662 result = (wxString *) &_result_ref;
28663 }
28664 wxPyEndAllowThreads(__tstate);
28665 if (PyErr_Occurred()) SWIG_fail;
28666 }
28667 {
28668 #if wxUSE_UNICODE
28669 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28670 #else
28671 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28672 #endif
28673 }
28674 return resultobj;
28675 fail:
28676 return NULL;
28677 }
28678
28679
28680 SWIGINTERN PyObject *_wrap_ListEvent_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28681 PyObject *resultobj = 0;
28682 wxListEvent *arg1 = (wxListEvent *) 0 ;
28683 wxString *result = 0 ;
28684 void *argp1 = 0 ;
28685 int res1 = 0 ;
28686 PyObject *swig_obj[1] ;
28687
28688 if (!args) SWIG_fail;
28689 swig_obj[0] = args;
28690 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28691 if (!SWIG_IsOK(res1)) {
28692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetText" "', expected argument " "1"" of type '" "wxListEvent *""'");
28693 }
28694 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28695 {
28696 PyThreadState* __tstate = wxPyBeginAllowThreads();
28697 {
28698 wxString const &_result_ref = (arg1)->GetText();
28699 result = (wxString *) &_result_ref;
28700 }
28701 wxPyEndAllowThreads(__tstate);
28702 if (PyErr_Occurred()) SWIG_fail;
28703 }
28704 {
28705 #if wxUSE_UNICODE
28706 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28707 #else
28708 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28709 #endif
28710 }
28711 return resultobj;
28712 fail:
28713 return NULL;
28714 }
28715
28716
28717 SWIGINTERN PyObject *_wrap_ListEvent_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28718 PyObject *resultobj = 0;
28719 wxListEvent *arg1 = (wxListEvent *) 0 ;
28720 int result;
28721 void *argp1 = 0 ;
28722 int res1 = 0 ;
28723 PyObject *swig_obj[1] ;
28724
28725 if (!args) SWIG_fail;
28726 swig_obj[0] = args;
28727 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28728 if (!SWIG_IsOK(res1)) {
28729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetImage" "', expected argument " "1"" of type '" "wxListEvent *""'");
28730 }
28731 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28732 {
28733 PyThreadState* __tstate = wxPyBeginAllowThreads();
28734 result = (int)(arg1)->GetImage();
28735 wxPyEndAllowThreads(__tstate);
28736 if (PyErr_Occurred()) SWIG_fail;
28737 }
28738 resultobj = SWIG_From_int(static_cast< int >(result));
28739 return resultobj;
28740 fail:
28741 return NULL;
28742 }
28743
28744
28745 SWIGINTERN PyObject *_wrap_ListEvent_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28746 PyObject *resultobj = 0;
28747 wxListEvent *arg1 = (wxListEvent *) 0 ;
28748 long result;
28749 void *argp1 = 0 ;
28750 int res1 = 0 ;
28751 PyObject *swig_obj[1] ;
28752
28753 if (!args) SWIG_fail;
28754 swig_obj[0] = args;
28755 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28756 if (!SWIG_IsOK(res1)) {
28757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetData" "', expected argument " "1"" of type '" "wxListEvent *""'");
28758 }
28759 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28760 {
28761 PyThreadState* __tstate = wxPyBeginAllowThreads();
28762 result = (long)(arg1)->GetData();
28763 wxPyEndAllowThreads(__tstate);
28764 if (PyErr_Occurred()) SWIG_fail;
28765 }
28766 resultobj = SWIG_From_long(static_cast< long >(result));
28767 return resultobj;
28768 fail:
28769 return NULL;
28770 }
28771
28772
28773 SWIGINTERN PyObject *_wrap_ListEvent_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28774 PyObject *resultobj = 0;
28775 wxListEvent *arg1 = (wxListEvent *) 0 ;
28776 long result;
28777 void *argp1 = 0 ;
28778 int res1 = 0 ;
28779 PyObject *swig_obj[1] ;
28780
28781 if (!args) SWIG_fail;
28782 swig_obj[0] = args;
28783 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28784 if (!SWIG_IsOK(res1)) {
28785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetMask" "', expected argument " "1"" of type '" "wxListEvent *""'");
28786 }
28787 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28788 {
28789 PyThreadState* __tstate = wxPyBeginAllowThreads();
28790 result = (long)(arg1)->GetMask();
28791 wxPyEndAllowThreads(__tstate);
28792 if (PyErr_Occurred()) SWIG_fail;
28793 }
28794 resultobj = SWIG_From_long(static_cast< long >(result));
28795 return resultobj;
28796 fail:
28797 return NULL;
28798 }
28799
28800
28801 SWIGINTERN PyObject *_wrap_ListEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28802 PyObject *resultobj = 0;
28803 wxListEvent *arg1 = (wxListEvent *) 0 ;
28804 wxListItem *result = 0 ;
28805 void *argp1 = 0 ;
28806 int res1 = 0 ;
28807 PyObject *swig_obj[1] ;
28808
28809 if (!args) SWIG_fail;
28810 swig_obj[0] = args;
28811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28812 if (!SWIG_IsOK(res1)) {
28813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetItem" "', expected argument " "1"" of type '" "wxListEvent *""'");
28814 }
28815 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28816 {
28817 PyThreadState* __tstate = wxPyBeginAllowThreads();
28818 {
28819 wxListItem const &_result_ref = (arg1)->GetItem();
28820 result = (wxListItem *) &_result_ref;
28821 }
28822 wxPyEndAllowThreads(__tstate);
28823 if (PyErr_Occurred()) SWIG_fail;
28824 }
28825 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, 0 | 0 );
28826 return resultobj;
28827 fail:
28828 return NULL;
28829 }
28830
28831
28832 SWIGINTERN PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28833 PyObject *resultobj = 0;
28834 wxListEvent *arg1 = (wxListEvent *) 0 ;
28835 long result;
28836 void *argp1 = 0 ;
28837 int res1 = 0 ;
28838 PyObject *swig_obj[1] ;
28839
28840 if (!args) SWIG_fail;
28841 swig_obj[0] = args;
28842 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28843 if (!SWIG_IsOK(res1)) {
28844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheFrom" "', expected argument " "1"" of type '" "wxListEvent *""'");
28845 }
28846 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28847 {
28848 PyThreadState* __tstate = wxPyBeginAllowThreads();
28849 result = (long)(arg1)->GetCacheFrom();
28850 wxPyEndAllowThreads(__tstate);
28851 if (PyErr_Occurred()) SWIG_fail;
28852 }
28853 resultobj = SWIG_From_long(static_cast< long >(result));
28854 return resultobj;
28855 fail:
28856 return NULL;
28857 }
28858
28859
28860 SWIGINTERN PyObject *_wrap_ListEvent_GetCacheTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28861 PyObject *resultobj = 0;
28862 wxListEvent *arg1 = (wxListEvent *) 0 ;
28863 long result;
28864 void *argp1 = 0 ;
28865 int res1 = 0 ;
28866 PyObject *swig_obj[1] ;
28867
28868 if (!args) SWIG_fail;
28869 swig_obj[0] = args;
28870 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28871 if (!SWIG_IsOK(res1)) {
28872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheTo" "', expected argument " "1"" of type '" "wxListEvent *""'");
28873 }
28874 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28875 {
28876 PyThreadState* __tstate = wxPyBeginAllowThreads();
28877 result = (long)(arg1)->GetCacheTo();
28878 wxPyEndAllowThreads(__tstate);
28879 if (PyErr_Occurred()) SWIG_fail;
28880 }
28881 resultobj = SWIG_From_long(static_cast< long >(result));
28882 return resultobj;
28883 fail:
28884 return NULL;
28885 }
28886
28887
28888 SWIGINTERN PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28889 PyObject *resultobj = 0;
28890 wxListEvent *arg1 = (wxListEvent *) 0 ;
28891 bool result;
28892 void *argp1 = 0 ;
28893 int res1 = 0 ;
28894 PyObject *swig_obj[1] ;
28895
28896 if (!args) SWIG_fail;
28897 swig_obj[0] = args;
28898 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28899 if (!SWIG_IsOK(res1)) {
28900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxListEvent const *""'");
28901 }
28902 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28903 {
28904 PyThreadState* __tstate = wxPyBeginAllowThreads();
28905 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
28906 wxPyEndAllowThreads(__tstate);
28907 if (PyErr_Occurred()) SWIG_fail;
28908 }
28909 {
28910 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28911 }
28912 return resultobj;
28913 fail:
28914 return NULL;
28915 }
28916
28917
28918 SWIGINTERN PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28919 PyObject *resultobj = 0;
28920 wxListEvent *arg1 = (wxListEvent *) 0 ;
28921 bool arg2 ;
28922 void *argp1 = 0 ;
28923 int res1 = 0 ;
28924 bool val2 ;
28925 int ecode2 = 0 ;
28926 PyObject * obj0 = 0 ;
28927 PyObject * obj1 = 0 ;
28928 char * kwnames[] = {
28929 (char *) "self",(char *) "editCancelled", NULL
28930 };
28931
28932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
28933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28934 if (!SWIG_IsOK(res1)) {
28935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxListEvent *""'");
28936 }
28937 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28938 ecode2 = SWIG_AsVal_bool(obj1, &val2);
28939 if (!SWIG_IsOK(ecode2)) {
28940 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
28941 }
28942 arg2 = static_cast< bool >(val2);
28943 {
28944 PyThreadState* __tstate = wxPyBeginAllowThreads();
28945 (arg1)->SetEditCanceled(arg2);
28946 wxPyEndAllowThreads(__tstate);
28947 if (PyErr_Occurred()) SWIG_fail;
28948 }
28949 resultobj = SWIG_Py_Void();
28950 return resultobj;
28951 fail:
28952 return NULL;
28953 }
28954
28955
28956 SWIGINTERN PyObject *ListEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28957 PyObject *obj;
28958 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28959 SWIG_TypeNewClientData(SWIGTYPE_p_wxListEvent, SWIG_NewClientData(obj));
28960 return SWIG_Py_Void();
28961 }
28962
28963 SWIGINTERN PyObject *ListEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28964 return SWIG_Python_InitShadowInstance(args);
28965 }
28966
28967 SWIGINTERN PyObject *_wrap_new_ListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28968 PyObject *resultobj = 0;
28969 wxWindow *arg1 = (wxWindow *) 0 ;
28970 int arg2 = (int) -1 ;
28971 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28972 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28973 wxSize const &arg4_defvalue = wxDefaultSize ;
28974 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28975 long arg5 = (long) wxLC_ICON ;
28976 wxValidator const &arg6_defvalue = wxDefaultValidator ;
28977 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
28978 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
28979 wxString *arg7 = (wxString *) &arg7_defvalue ;
28980 wxPyListCtrl *result = 0 ;
28981 void *argp1 = 0 ;
28982 int res1 = 0 ;
28983 int val2 ;
28984 int ecode2 = 0 ;
28985 wxPoint temp3 ;
28986 wxSize temp4 ;
28987 long val5 ;
28988 int ecode5 = 0 ;
28989 void *argp6 = 0 ;
28990 int res6 = 0 ;
28991 bool temp7 = false ;
28992 PyObject * obj0 = 0 ;
28993 PyObject * obj1 = 0 ;
28994 PyObject * obj2 = 0 ;
28995 PyObject * obj3 = 0 ;
28996 PyObject * obj4 = 0 ;
28997 PyObject * obj5 = 0 ;
28998 PyObject * obj6 = 0 ;
28999 char * kwnames[] = {
29000 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
29001 };
29002
29003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
29004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
29005 if (!SWIG_IsOK(res1)) {
29006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
29007 }
29008 arg1 = reinterpret_cast< wxWindow * >(argp1);
29009 if (obj1) {
29010 ecode2 = SWIG_AsVal_int(obj1, &val2);
29011 if (!SWIG_IsOK(ecode2)) {
29012 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListCtrl" "', expected argument " "2"" of type '" "int""'");
29013 }
29014 arg2 = static_cast< int >(val2);
29015 }
29016 if (obj2) {
29017 {
29018 arg3 = &temp3;
29019 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29020 }
29021 }
29022 if (obj3) {
29023 {
29024 arg4 = &temp4;
29025 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
29026 }
29027 }
29028 if (obj4) {
29029 ecode5 = SWIG_AsVal_long(obj4, &val5);
29030 if (!SWIG_IsOK(ecode5)) {
29031 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListCtrl" "', expected argument " "5"" of type '" "long""'");
29032 }
29033 arg5 = static_cast< long >(val5);
29034 }
29035 if (obj5) {
29036 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
29037 if (!SWIG_IsOK(res6)) {
29038 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
29039 }
29040 if (!argp6) {
29041 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
29042 }
29043 arg6 = reinterpret_cast< wxValidator * >(argp6);
29044 }
29045 if (obj6) {
29046 {
29047 arg7 = wxString_in_helper(obj6);
29048 if (arg7 == NULL) SWIG_fail;
29049 temp7 = true;
29050 }
29051 }
29052 {
29053 if (!wxPyCheckForApp()) SWIG_fail;
29054 PyThreadState* __tstate = wxPyBeginAllowThreads();
29055 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
29056 wxPyEndAllowThreads(__tstate);
29057 if (PyErr_Occurred()) SWIG_fail;
29058 }
29059 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_NEW | 0 );
29060 {
29061 if (temp7)
29062 delete arg7;
29063 }
29064 return resultobj;
29065 fail:
29066 {
29067 if (temp7)
29068 delete arg7;
29069 }
29070 return NULL;
29071 }
29072
29073
29074 SWIGINTERN PyObject *_wrap_new_PreListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29075 PyObject *resultobj = 0;
29076 wxPyListCtrl *result = 0 ;
29077
29078 if (!SWIG_Python_UnpackTuple(args,"new_PreListCtrl",0,0,0)) SWIG_fail;
29079 {
29080 if (!wxPyCheckForApp()) SWIG_fail;
29081 PyThreadState* __tstate = wxPyBeginAllowThreads();
29082 result = (wxPyListCtrl *)new wxPyListCtrl();
29083 wxPyEndAllowThreads(__tstate);
29084 if (PyErr_Occurred()) SWIG_fail;
29085 }
29086 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_OWN | 0 );
29087 return resultobj;
29088 fail:
29089 return NULL;
29090 }
29091
29092
29093 SWIGINTERN PyObject *_wrap_ListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29094 PyObject *resultobj = 0;
29095 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29096 wxWindow *arg2 = (wxWindow *) 0 ;
29097 int arg3 = (int) -1 ;
29098 wxPoint const &arg4_defvalue = wxDefaultPosition ;
29099 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
29100 wxSize const &arg5_defvalue = wxDefaultSize ;
29101 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
29102 long arg6 = (long) wxLC_ICON ;
29103 wxValidator const &arg7_defvalue = wxDefaultValidator ;
29104 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
29105 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
29106 wxString *arg8 = (wxString *) &arg8_defvalue ;
29107 bool result;
29108 void *argp1 = 0 ;
29109 int res1 = 0 ;
29110 void *argp2 = 0 ;
29111 int res2 = 0 ;
29112 int val3 ;
29113 int ecode3 = 0 ;
29114 wxPoint temp4 ;
29115 wxSize temp5 ;
29116 long val6 ;
29117 int ecode6 = 0 ;
29118 void *argp7 = 0 ;
29119 int res7 = 0 ;
29120 bool temp8 = false ;
29121 PyObject * obj0 = 0 ;
29122 PyObject * obj1 = 0 ;
29123 PyObject * obj2 = 0 ;
29124 PyObject * obj3 = 0 ;
29125 PyObject * obj4 = 0 ;
29126 PyObject * obj5 = 0 ;
29127 PyObject * obj6 = 0 ;
29128 PyObject * obj7 = 0 ;
29129 char * kwnames[] = {
29130 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
29131 };
29132
29133 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
29134 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29135 if (!SWIG_IsOK(res1)) {
29136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Create" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29137 }
29138 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29139 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
29140 if (!SWIG_IsOK(res2)) {
29141 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
29142 }
29143 arg2 = reinterpret_cast< wxWindow * >(argp2);
29144 if (obj2) {
29145 ecode3 = SWIG_AsVal_int(obj2, &val3);
29146 if (!SWIG_IsOK(ecode3)) {
29147 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
29148 }
29149 arg3 = static_cast< int >(val3);
29150 }
29151 if (obj3) {
29152 {
29153 arg4 = &temp4;
29154 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
29155 }
29156 }
29157 if (obj4) {
29158 {
29159 arg5 = &temp5;
29160 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
29161 }
29162 }
29163 if (obj5) {
29164 ecode6 = SWIG_AsVal_long(obj5, &val6);
29165 if (!SWIG_IsOK(ecode6)) {
29166 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
29167 }
29168 arg6 = static_cast< long >(val6);
29169 }
29170 if (obj6) {
29171 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
29172 if (!SWIG_IsOK(res7)) {
29173 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
29174 }
29175 if (!argp7) {
29176 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
29177 }
29178 arg7 = reinterpret_cast< wxValidator * >(argp7);
29179 }
29180 if (obj7) {
29181 {
29182 arg8 = wxString_in_helper(obj7);
29183 if (arg8 == NULL) SWIG_fail;
29184 temp8 = true;
29185 }
29186 }
29187 {
29188 PyThreadState* __tstate = wxPyBeginAllowThreads();
29189 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
29190 wxPyEndAllowThreads(__tstate);
29191 if (PyErr_Occurred()) SWIG_fail;
29192 }
29193 {
29194 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29195 }
29196 {
29197 if (temp8)
29198 delete arg8;
29199 }
29200 return resultobj;
29201 fail:
29202 {
29203 if (temp8)
29204 delete arg8;
29205 }
29206 return NULL;
29207 }
29208
29209
29210 SWIGINTERN PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29211 PyObject *resultobj = 0;
29212 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29213 PyObject *arg2 = (PyObject *) 0 ;
29214 PyObject *arg3 = (PyObject *) 0 ;
29215 void *argp1 = 0 ;
29216 int res1 = 0 ;
29217 PyObject * obj0 = 0 ;
29218 PyObject * obj1 = 0 ;
29219 PyObject * obj2 = 0 ;
29220 char * kwnames[] = {
29221 (char *) "self",(char *) "self",(char *) "_class", NULL
29222 };
29223
29224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29226 if (!SWIG_IsOK(res1)) {
29227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29228 }
29229 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29230 arg2 = obj1;
29231 arg3 = obj2;
29232 {
29233 PyThreadState* __tstate = wxPyBeginAllowThreads();
29234 (arg1)->_setCallbackInfo(arg2,arg3);
29235 wxPyEndAllowThreads(__tstate);
29236 if (PyErr_Occurred()) SWIG_fail;
29237 }
29238 resultobj = SWIG_Py_Void();
29239 return resultobj;
29240 fail:
29241 return NULL;
29242 }
29243
29244
29245 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29246 PyObject *resultobj = 0;
29247 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29248 int arg2 ;
29249 wxListItem *result = 0 ;
29250 void *argp1 = 0 ;
29251 int res1 = 0 ;
29252 int val2 ;
29253 int ecode2 = 0 ;
29254 PyObject * obj0 = 0 ;
29255 PyObject * obj1 = 0 ;
29256 char * kwnames[] = {
29257 (char *) "self",(char *) "col", NULL
29258 };
29259
29260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
29261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29262 if (!SWIG_IsOK(res1)) {
29263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29264 }
29265 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29266 ecode2 = SWIG_AsVal_int(obj1, &val2);
29267 if (!SWIG_IsOK(ecode2)) {
29268 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumn" "', expected argument " "2"" of type '" "int""'");
29269 }
29270 arg2 = static_cast< int >(val2);
29271 {
29272 PyThreadState* __tstate = wxPyBeginAllowThreads();
29273 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
29274 wxPyEndAllowThreads(__tstate);
29275 if (PyErr_Occurred()) SWIG_fail;
29276 }
29277 {
29278 resultobj = wxPyMake_wxObject(result, 0);
29279 }
29280 return resultobj;
29281 fail:
29282 return NULL;
29283 }
29284
29285
29286 SWIGINTERN PyObject *_wrap_ListCtrl_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29287 PyObject *resultobj = 0;
29288 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29289 int arg2 ;
29290 wxListItem *arg3 = 0 ;
29291 bool result;
29292 void *argp1 = 0 ;
29293 int res1 = 0 ;
29294 int val2 ;
29295 int ecode2 = 0 ;
29296 void *argp3 = 0 ;
29297 int res3 = 0 ;
29298 PyObject * obj0 = 0 ;
29299 PyObject * obj1 = 0 ;
29300 PyObject * obj2 = 0 ;
29301 char * kwnames[] = {
29302 (char *) "self",(char *) "col",(char *) "item", NULL
29303 };
29304
29305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) 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_SetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29309 }
29310 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29311 ecode2 = SWIG_AsVal_int(obj1, &val2);
29312 if (!SWIG_IsOK(ecode2)) {
29313 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumn" "', expected argument " "2"" of type '" "int""'");
29314 }
29315 arg2 = static_cast< int >(val2);
29316 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
29317 if (!SWIG_IsOK(res3)) {
29318 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
29319 }
29320 if (!argp3) {
29321 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
29322 }
29323 arg3 = reinterpret_cast< wxListItem * >(argp3);
29324 {
29325 PyThreadState* __tstate = wxPyBeginAllowThreads();
29326 result = (bool)(arg1)->SetColumn(arg2,*arg3);
29327 wxPyEndAllowThreads(__tstate);
29328 if (PyErr_Occurred()) SWIG_fail;
29329 }
29330 {
29331 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29332 }
29333 return resultobj;
29334 fail:
29335 return NULL;
29336 }
29337
29338
29339 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29340 PyObject *resultobj = 0;
29341 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29342 int arg2 ;
29343 int result;
29344 void *argp1 = 0 ;
29345 int res1 = 0 ;
29346 int val2 ;
29347 int ecode2 = 0 ;
29348 PyObject * obj0 = 0 ;
29349 PyObject * obj1 = 0 ;
29350 char * kwnames[] = {
29351 (char *) "self",(char *) "col", NULL
29352 };
29353
29354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) SWIG_fail;
29355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29356 if (!SWIG_IsOK(res1)) {
29357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29358 }
29359 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29360 ecode2 = SWIG_AsVal_int(obj1, &val2);
29361 if (!SWIG_IsOK(ecode2)) {
29362 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "2"" of type '" "int""'");
29363 }
29364 arg2 = static_cast< int >(val2);
29365 {
29366 PyThreadState* __tstate = wxPyBeginAllowThreads();
29367 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
29368 wxPyEndAllowThreads(__tstate);
29369 if (PyErr_Occurred()) SWIG_fail;
29370 }
29371 resultobj = SWIG_From_int(static_cast< int >(result));
29372 return resultobj;
29373 fail:
29374 return NULL;
29375 }
29376
29377
29378 SWIGINTERN PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29379 PyObject *resultobj = 0;
29380 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29381 int arg2 ;
29382 int arg3 ;
29383 bool result;
29384 void *argp1 = 0 ;
29385 int res1 = 0 ;
29386 int val2 ;
29387 int ecode2 = 0 ;
29388 int val3 ;
29389 int ecode3 = 0 ;
29390 PyObject * obj0 = 0 ;
29391 PyObject * obj1 = 0 ;
29392 PyObject * obj2 = 0 ;
29393 char * kwnames[] = {
29394 (char *) "self",(char *) "col",(char *) "width", NULL
29395 };
29396
29397 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29398 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29399 if (!SWIG_IsOK(res1)) {
29400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29401 }
29402 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29403 ecode2 = SWIG_AsVal_int(obj1, &val2);
29404 if (!SWIG_IsOK(ecode2)) {
29405 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "2"" of type '" "int""'");
29406 }
29407 arg2 = static_cast< int >(val2);
29408 ecode3 = SWIG_AsVal_int(obj2, &val3);
29409 if (!SWIG_IsOK(ecode3)) {
29410 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "3"" of type '" "int""'");
29411 }
29412 arg3 = static_cast< int >(val3);
29413 {
29414 PyThreadState* __tstate = wxPyBeginAllowThreads();
29415 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
29416 wxPyEndAllowThreads(__tstate);
29417 if (PyErr_Occurred()) SWIG_fail;
29418 }
29419 {
29420 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29421 }
29422 return resultobj;
29423 fail:
29424 return NULL;
29425 }
29426
29427
29428 SWIGINTERN PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29429 PyObject *resultobj = 0;
29430 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29431 int result;
29432 void *argp1 = 0 ;
29433 int res1 = 0 ;
29434 PyObject *swig_obj[1] ;
29435
29436 if (!args) SWIG_fail;
29437 swig_obj[0] = args;
29438 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29439 if (!SWIG_IsOK(res1)) {
29440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetCountPerPage" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29441 }
29442 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29443 {
29444 PyThreadState* __tstate = wxPyBeginAllowThreads();
29445 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
29446 wxPyEndAllowThreads(__tstate);
29447 if (PyErr_Occurred()) SWIG_fail;
29448 }
29449 resultobj = SWIG_From_int(static_cast< int >(result));
29450 return resultobj;
29451 fail:
29452 return NULL;
29453 }
29454
29455
29456 SWIGINTERN PyObject *_wrap_ListCtrl_GetViewRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29457 PyObject *resultobj = 0;
29458 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29459 wxRect result;
29460 void *argp1 = 0 ;
29461 int res1 = 0 ;
29462 PyObject *swig_obj[1] ;
29463
29464 if (!args) SWIG_fail;
29465 swig_obj[0] = args;
29466 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29467 if (!SWIG_IsOK(res1)) {
29468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetViewRect" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29469 }
29470 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29471 {
29472 PyThreadState* __tstate = wxPyBeginAllowThreads();
29473 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
29474 wxPyEndAllowThreads(__tstate);
29475 if (PyErr_Occurred()) SWIG_fail;
29476 }
29477 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29478 return resultobj;
29479 fail:
29480 return NULL;
29481 }
29482
29483
29484 SWIGINTERN PyObject *_wrap_ListCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29485 PyObject *resultobj = 0;
29486 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29487 wxTextCtrl *result = 0 ;
29488 void *argp1 = 0 ;
29489 int res1 = 0 ;
29490 PyObject *swig_obj[1] ;
29491
29492 if (!args) SWIG_fail;
29493 swig_obj[0] = args;
29494 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29495 if (!SWIG_IsOK(res1)) {
29496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29497 }
29498 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29499 {
29500 PyThreadState* __tstate = wxPyBeginAllowThreads();
29501 result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl();
29502 wxPyEndAllowThreads(__tstate);
29503 if (PyErr_Occurred()) SWIG_fail;
29504 }
29505 {
29506 resultobj = wxPyMake_wxObject(result, 0);
29507 }
29508 return resultobj;
29509 fail:
29510 return NULL;
29511 }
29512
29513
29514 SWIGINTERN PyObject *_wrap_ListCtrl_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29515 PyObject *resultobj = 0;
29516 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29517 long arg2 ;
29518 int arg3 = (int) 0 ;
29519 wxListItem *result = 0 ;
29520 void *argp1 = 0 ;
29521 int res1 = 0 ;
29522 long val2 ;
29523 int ecode2 = 0 ;
29524 int val3 ;
29525 int ecode3 = 0 ;
29526 PyObject * obj0 = 0 ;
29527 PyObject * obj1 = 0 ;
29528 PyObject * obj2 = 0 ;
29529 char * kwnames[] = {
29530 (char *) "self",(char *) "itemId",(char *) "col", NULL
29531 };
29532
29533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29535 if (!SWIG_IsOK(res1)) {
29536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29537 }
29538 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29539 ecode2 = SWIG_AsVal_long(obj1, &val2);
29540 if (!SWIG_IsOK(ecode2)) {
29541 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItem" "', expected argument " "2"" of type '" "long""'");
29542 }
29543 arg2 = static_cast< long >(val2);
29544 if (obj2) {
29545 ecode3 = SWIG_AsVal_int(obj2, &val3);
29546 if (!SWIG_IsOK(ecode3)) {
29547 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItem" "', expected argument " "3"" of type '" "int""'");
29548 }
29549 arg3 = static_cast< int >(val3);
29550 }
29551 {
29552 PyThreadState* __tstate = wxPyBeginAllowThreads();
29553 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
29554 wxPyEndAllowThreads(__tstate);
29555 if (PyErr_Occurred()) SWIG_fail;
29556 }
29557 {
29558 resultobj = wxPyMake_wxObject(result, 0);
29559 }
29560 return resultobj;
29561 fail:
29562 return NULL;
29563 }
29564
29565
29566 SWIGINTERN PyObject *_wrap_ListCtrl_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29567 PyObject *resultobj = 0;
29568 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29569 wxListItem *arg2 = 0 ;
29570 bool result;
29571 void *argp1 = 0 ;
29572 int res1 = 0 ;
29573 void *argp2 = 0 ;
29574 int res2 = 0 ;
29575 PyObject * obj0 = 0 ;
29576 PyObject * obj1 = 0 ;
29577 char * kwnames[] = {
29578 (char *) "self",(char *) "info", NULL
29579 };
29580
29581 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
29582 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29583 if (!SWIG_IsOK(res1)) {
29584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29585 }
29586 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29587 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
29588 if (!SWIG_IsOK(res2)) {
29589 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29590 }
29591 if (!argp2) {
29592 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29593 }
29594 arg2 = reinterpret_cast< wxListItem * >(argp2);
29595 {
29596 PyThreadState* __tstate = wxPyBeginAllowThreads();
29597 result = (bool)(arg1)->SetItem(*arg2);
29598 wxPyEndAllowThreads(__tstate);
29599 if (PyErr_Occurred()) SWIG_fail;
29600 }
29601 {
29602 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29603 }
29604 return resultobj;
29605 fail:
29606 return NULL;
29607 }
29608
29609
29610 SWIGINTERN PyObject *_wrap_ListCtrl_SetStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29611 PyObject *resultobj = 0;
29612 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29613 long arg2 ;
29614 int arg3 ;
29615 wxString *arg4 = 0 ;
29616 int arg5 = (int) -1 ;
29617 long result;
29618 void *argp1 = 0 ;
29619 int res1 = 0 ;
29620 long val2 ;
29621 int ecode2 = 0 ;
29622 int val3 ;
29623 int ecode3 = 0 ;
29624 bool temp4 = false ;
29625 int val5 ;
29626 int ecode5 = 0 ;
29627 PyObject * obj0 = 0 ;
29628 PyObject * obj1 = 0 ;
29629 PyObject * obj2 = 0 ;
29630 PyObject * obj3 = 0 ;
29631 PyObject * obj4 = 0 ;
29632 char * kwnames[] = {
29633 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
29634 };
29635
29636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29638 if (!SWIG_IsOK(res1)) {
29639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29640 }
29641 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29642 ecode2 = SWIG_AsVal_long(obj1, &val2);
29643 if (!SWIG_IsOK(ecode2)) {
29644 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetStringItem" "', expected argument " "2"" of type '" "long""'");
29645 }
29646 arg2 = static_cast< long >(val2);
29647 ecode3 = SWIG_AsVal_int(obj2, &val3);
29648 if (!SWIG_IsOK(ecode3)) {
29649 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetStringItem" "', expected argument " "3"" of type '" "int""'");
29650 }
29651 arg3 = static_cast< int >(val3);
29652 {
29653 arg4 = wxString_in_helper(obj3);
29654 if (arg4 == NULL) SWIG_fail;
29655 temp4 = true;
29656 }
29657 if (obj4) {
29658 ecode5 = SWIG_AsVal_int(obj4, &val5);
29659 if (!SWIG_IsOK(ecode5)) {
29660 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_SetStringItem" "', expected argument " "5"" of type '" "int""'");
29661 }
29662 arg5 = static_cast< int >(val5);
29663 }
29664 {
29665 PyThreadState* __tstate = wxPyBeginAllowThreads();
29666 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
29667 wxPyEndAllowThreads(__tstate);
29668 if (PyErr_Occurred()) SWIG_fail;
29669 }
29670 resultobj = SWIG_From_long(static_cast< long >(result));
29671 {
29672 if (temp4)
29673 delete arg4;
29674 }
29675 return resultobj;
29676 fail:
29677 {
29678 if (temp4)
29679 delete arg4;
29680 }
29681 return NULL;
29682 }
29683
29684
29685 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29686 PyObject *resultobj = 0;
29687 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29688 long arg2 ;
29689 long arg3 ;
29690 int result;
29691 void *argp1 = 0 ;
29692 int res1 = 0 ;
29693 long val2 ;
29694 int ecode2 = 0 ;
29695 long val3 ;
29696 int ecode3 = 0 ;
29697 PyObject * obj0 = 0 ;
29698 PyObject * obj1 = 0 ;
29699 PyObject * obj2 = 0 ;
29700 char * kwnames[] = {
29701 (char *) "self",(char *) "item",(char *) "stateMask", NULL
29702 };
29703
29704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29706 if (!SWIG_IsOK(res1)) {
29707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29708 }
29709 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29710 ecode2 = SWIG_AsVal_long(obj1, &val2);
29711 if (!SWIG_IsOK(ecode2)) {
29712 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemState" "', expected argument " "2"" of type '" "long""'");
29713 }
29714 arg2 = static_cast< long >(val2);
29715 ecode3 = SWIG_AsVal_long(obj2, &val3);
29716 if (!SWIG_IsOK(ecode3)) {
29717 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemState" "', expected argument " "3"" of type '" "long""'");
29718 }
29719 arg3 = static_cast< long >(val3);
29720 {
29721 PyThreadState* __tstate = wxPyBeginAllowThreads();
29722 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
29723 wxPyEndAllowThreads(__tstate);
29724 if (PyErr_Occurred()) SWIG_fail;
29725 }
29726 resultobj = SWIG_From_int(static_cast< int >(result));
29727 return resultobj;
29728 fail:
29729 return NULL;
29730 }
29731
29732
29733 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29734 PyObject *resultobj = 0;
29735 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29736 long arg2 ;
29737 long arg3 ;
29738 long arg4 ;
29739 bool result;
29740 void *argp1 = 0 ;
29741 int res1 = 0 ;
29742 long val2 ;
29743 int ecode2 = 0 ;
29744 long val3 ;
29745 int ecode3 = 0 ;
29746 long val4 ;
29747 int ecode4 = 0 ;
29748 PyObject * obj0 = 0 ;
29749 PyObject * obj1 = 0 ;
29750 PyObject * obj2 = 0 ;
29751 PyObject * obj3 = 0 ;
29752 char * kwnames[] = {
29753 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
29754 };
29755
29756 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) 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_SetItemState" "', 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_SetItemState" "', expected argument " "2"" of type '" "long""'");
29765 }
29766 arg2 = static_cast< long >(val2);
29767 ecode3 = SWIG_AsVal_long(obj2, &val3);
29768 if (!SWIG_IsOK(ecode3)) {
29769 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemState" "', expected argument " "3"" of type '" "long""'");
29770 }
29771 arg3 = static_cast< long >(val3);
29772 ecode4 = SWIG_AsVal_long(obj3, &val4);
29773 if (!SWIG_IsOK(ecode4)) {
29774 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemState" "', expected argument " "4"" of type '" "long""'");
29775 }
29776 arg4 = static_cast< long >(val4);
29777 {
29778 PyThreadState* __tstate = wxPyBeginAllowThreads();
29779 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
29780 wxPyEndAllowThreads(__tstate);
29781 if (PyErr_Occurred()) SWIG_fail;
29782 }
29783 {
29784 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29785 }
29786 return resultobj;
29787 fail:
29788 return NULL;
29789 }
29790
29791
29792 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29793 PyObject *resultobj = 0;
29794 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29795 long arg2 ;
29796 int arg3 ;
29797 int arg4 = (int) -1 ;
29798 bool result;
29799 void *argp1 = 0 ;
29800 int res1 = 0 ;
29801 long val2 ;
29802 int ecode2 = 0 ;
29803 int val3 ;
29804 int ecode3 = 0 ;
29805 int val4 ;
29806 int ecode4 = 0 ;
29807 PyObject * obj0 = 0 ;
29808 PyObject * obj1 = 0 ;
29809 PyObject * obj2 = 0 ;
29810 PyObject * obj3 = 0 ;
29811 char * kwnames[] = {
29812 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
29813 };
29814
29815 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29816 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29817 if (!SWIG_IsOK(res1)) {
29818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29819 }
29820 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29821 ecode2 = SWIG_AsVal_long(obj1, &val2);
29822 if (!SWIG_IsOK(ecode2)) {
29823 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemImage" "', expected argument " "2"" of type '" "long""'");
29824 }
29825 arg2 = static_cast< long >(val2);
29826 ecode3 = SWIG_AsVal_int(obj2, &val3);
29827 if (!SWIG_IsOK(ecode3)) {
29828 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
29829 }
29830 arg3 = static_cast< int >(val3);
29831 if (obj3) {
29832 ecode4 = SWIG_AsVal_int(obj3, &val4);
29833 if (!SWIG_IsOK(ecode4)) {
29834 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemImage" "', expected argument " "4"" of type '" "int""'");
29835 }
29836 arg4 = static_cast< int >(val4);
29837 }
29838 {
29839 PyThreadState* __tstate = wxPyBeginAllowThreads();
29840 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
29841 wxPyEndAllowThreads(__tstate);
29842 if (PyErr_Occurred()) SWIG_fail;
29843 }
29844 {
29845 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29846 }
29847 return resultobj;
29848 fail:
29849 return NULL;
29850 }
29851
29852
29853 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29854 PyObject *resultobj = 0;
29855 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29856 long arg2 ;
29857 long arg3 ;
29858 int arg4 ;
29859 bool result;
29860 void *argp1 = 0 ;
29861 int res1 = 0 ;
29862 long val2 ;
29863 int ecode2 = 0 ;
29864 long val3 ;
29865 int ecode3 = 0 ;
29866 int val4 ;
29867 int ecode4 = 0 ;
29868 PyObject * obj0 = 0 ;
29869 PyObject * obj1 = 0 ;
29870 PyObject * obj2 = 0 ;
29871 PyObject * obj3 = 0 ;
29872 char * kwnames[] = {
29873 (char *) "self",(char *) "item",(char *) "column",(char *) "image", NULL
29874 };
29875
29876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemColumnImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29878 if (!SWIG_IsOK(res1)) {
29879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29880 }
29881 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29882 ecode2 = SWIG_AsVal_long(obj1, &val2);
29883 if (!SWIG_IsOK(ecode2)) {
29884 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "2"" of type '" "long""'");
29885 }
29886 arg2 = static_cast< long >(val2);
29887 ecode3 = SWIG_AsVal_long(obj2, &val3);
29888 if (!SWIG_IsOK(ecode3)) {
29889 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "3"" of type '" "long""'");
29890 }
29891 arg3 = static_cast< long >(val3);
29892 ecode4 = SWIG_AsVal_int(obj3, &val4);
29893 if (!SWIG_IsOK(ecode4)) {
29894 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "4"" of type '" "int""'");
29895 }
29896 arg4 = static_cast< int >(val4);
29897 {
29898 PyThreadState* __tstate = wxPyBeginAllowThreads();
29899 result = (bool)(arg1)->SetItemColumnImage(arg2,arg3,arg4);
29900 wxPyEndAllowThreads(__tstate);
29901 if (PyErr_Occurred()) SWIG_fail;
29902 }
29903 {
29904 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29905 }
29906 return resultobj;
29907 fail:
29908 return NULL;
29909 }
29910
29911
29912 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29913 PyObject *resultobj = 0;
29914 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29915 long arg2 ;
29916 wxString result;
29917 void *argp1 = 0 ;
29918 int res1 = 0 ;
29919 long val2 ;
29920 int ecode2 = 0 ;
29921 PyObject * obj0 = 0 ;
29922 PyObject * obj1 = 0 ;
29923 char * kwnames[] = {
29924 (char *) "self",(char *) "item", NULL
29925 };
29926
29927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
29928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29929 if (!SWIG_IsOK(res1)) {
29930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29931 }
29932 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29933 ecode2 = SWIG_AsVal_long(obj1, &val2);
29934 if (!SWIG_IsOK(ecode2)) {
29935 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemText" "', expected argument " "2"" of type '" "long""'");
29936 }
29937 arg2 = static_cast< long >(val2);
29938 {
29939 PyThreadState* __tstate = wxPyBeginAllowThreads();
29940 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
29941 wxPyEndAllowThreads(__tstate);
29942 if (PyErr_Occurred()) SWIG_fail;
29943 }
29944 {
29945 #if wxUSE_UNICODE
29946 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29947 #else
29948 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29949 #endif
29950 }
29951 return resultobj;
29952 fail:
29953 return NULL;
29954 }
29955
29956
29957 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29958 PyObject *resultobj = 0;
29959 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29960 long arg2 ;
29961 wxString *arg3 = 0 ;
29962 void *argp1 = 0 ;
29963 int res1 = 0 ;
29964 long val2 ;
29965 int ecode2 = 0 ;
29966 bool temp3 = false ;
29967 PyObject * obj0 = 0 ;
29968 PyObject * obj1 = 0 ;
29969 PyObject * obj2 = 0 ;
29970 char * kwnames[] = {
29971 (char *) "self",(char *) "item",(char *) "str", NULL
29972 };
29973
29974 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29975 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29976 if (!SWIG_IsOK(res1)) {
29977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29978 }
29979 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29980 ecode2 = SWIG_AsVal_long(obj1, &val2);
29981 if (!SWIG_IsOK(ecode2)) {
29982 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemText" "', expected argument " "2"" of type '" "long""'");
29983 }
29984 arg2 = static_cast< long >(val2);
29985 {
29986 arg3 = wxString_in_helper(obj2);
29987 if (arg3 == NULL) SWIG_fail;
29988 temp3 = true;
29989 }
29990 {
29991 PyThreadState* __tstate = wxPyBeginAllowThreads();
29992 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
29993 wxPyEndAllowThreads(__tstate);
29994 if (PyErr_Occurred()) SWIG_fail;
29995 }
29996 resultobj = SWIG_Py_Void();
29997 {
29998 if (temp3)
29999 delete arg3;
30000 }
30001 return resultobj;
30002 fail:
30003 {
30004 if (temp3)
30005 delete arg3;
30006 }
30007 return NULL;
30008 }
30009
30010
30011 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30012 PyObject *resultobj = 0;
30013 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30014 long arg2 ;
30015 long result;
30016 void *argp1 = 0 ;
30017 int res1 = 0 ;
30018 long val2 ;
30019 int ecode2 = 0 ;
30020 PyObject * obj0 = 0 ;
30021 PyObject * obj1 = 0 ;
30022 char * kwnames[] = {
30023 (char *) "self",(char *) "item", NULL
30024 };
30025
30026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
30027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30028 if (!SWIG_IsOK(res1)) {
30029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30030 }
30031 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30032 ecode2 = SWIG_AsVal_long(obj1, &val2);
30033 if (!SWIG_IsOK(ecode2)) {
30034 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemData" "', expected argument " "2"" of type '" "long""'");
30035 }
30036 arg2 = static_cast< long >(val2);
30037 {
30038 PyThreadState* __tstate = wxPyBeginAllowThreads();
30039 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
30040 wxPyEndAllowThreads(__tstate);
30041 if (PyErr_Occurred()) SWIG_fail;
30042 }
30043 resultobj = SWIG_From_long(static_cast< long >(result));
30044 return resultobj;
30045 fail:
30046 return NULL;
30047 }
30048
30049
30050 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30051 PyObject *resultobj = 0;
30052 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30053 long arg2 ;
30054 long arg3 ;
30055 bool result;
30056 void *argp1 = 0 ;
30057 int res1 = 0 ;
30058 long val2 ;
30059 int ecode2 = 0 ;
30060 long val3 ;
30061 int ecode3 = 0 ;
30062 PyObject * obj0 = 0 ;
30063 PyObject * obj1 = 0 ;
30064 PyObject * obj2 = 0 ;
30065 char * kwnames[] = {
30066 (char *) "self",(char *) "item",(char *) "data", NULL
30067 };
30068
30069 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30070 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30071 if (!SWIG_IsOK(res1)) {
30072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30073 }
30074 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30075 ecode2 = SWIG_AsVal_long(obj1, &val2);
30076 if (!SWIG_IsOK(ecode2)) {
30077 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemData" "', expected argument " "2"" of type '" "long""'");
30078 }
30079 arg2 = static_cast< long >(val2);
30080 ecode3 = SWIG_AsVal_long(obj2, &val3);
30081 if (!SWIG_IsOK(ecode3)) {
30082 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemData" "', expected argument " "3"" of type '" "long""'");
30083 }
30084 arg3 = static_cast< long >(val3);
30085 {
30086 PyThreadState* __tstate = wxPyBeginAllowThreads();
30087 result = (bool)(arg1)->SetItemData(arg2,arg3);
30088 wxPyEndAllowThreads(__tstate);
30089 if (PyErr_Occurred()) SWIG_fail;
30090 }
30091 {
30092 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30093 }
30094 return resultobj;
30095 fail:
30096 return NULL;
30097 }
30098
30099
30100 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30101 PyObject *resultobj = 0;
30102 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30103 long arg2 ;
30104 wxPoint result;
30105 void *argp1 = 0 ;
30106 int res1 = 0 ;
30107 long val2 ;
30108 int ecode2 = 0 ;
30109 PyObject * obj0 = 0 ;
30110 PyObject * obj1 = 0 ;
30111 char * kwnames[] = {
30112 (char *) "self",(char *) "item", NULL
30113 };
30114
30115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) SWIG_fail;
30116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30117 if (!SWIG_IsOK(res1)) {
30118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30119 }
30120 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30121 ecode2 = SWIG_AsVal_long(obj1, &val2);
30122 if (!SWIG_IsOK(ecode2)) {
30123 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "2"" of type '" "long""'");
30124 }
30125 arg2 = static_cast< long >(val2);
30126 {
30127 PyThreadState* __tstate = wxPyBeginAllowThreads();
30128 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
30129 wxPyEndAllowThreads(__tstate);
30130 if (PyErr_Occurred()) SWIG_fail;
30131 }
30132 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
30133 return resultobj;
30134 fail:
30135 return NULL;
30136 }
30137
30138
30139 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30140 PyObject *resultobj = 0;
30141 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30142 long arg2 ;
30143 int arg3 = (int) wxLIST_RECT_BOUNDS ;
30144 wxRect result;
30145 void *argp1 = 0 ;
30146 int res1 = 0 ;
30147 long val2 ;
30148 int ecode2 = 0 ;
30149 int val3 ;
30150 int ecode3 = 0 ;
30151 PyObject * obj0 = 0 ;
30152 PyObject * obj1 = 0 ;
30153 PyObject * obj2 = 0 ;
30154 char * kwnames[] = {
30155 (char *) "self",(char *) "item",(char *) "code", NULL
30156 };
30157
30158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30160 if (!SWIG_IsOK(res1)) {
30161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemRect" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30162 }
30163 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30164 ecode2 = SWIG_AsVal_long(obj1, &val2);
30165 if (!SWIG_IsOK(ecode2)) {
30166 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemRect" "', expected argument " "2"" of type '" "long""'");
30167 }
30168 arg2 = static_cast< long >(val2);
30169 if (obj2) {
30170 ecode3 = SWIG_AsVal_int(obj2, &val3);
30171 if (!SWIG_IsOK(ecode3)) {
30172 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemRect" "', expected argument " "3"" of type '" "int""'");
30173 }
30174 arg3 = static_cast< int >(val3);
30175 }
30176 {
30177 PyThreadState* __tstate = wxPyBeginAllowThreads();
30178 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
30179 wxPyEndAllowThreads(__tstate);
30180 if (PyErr_Occurred()) SWIG_fail;
30181 }
30182 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
30183 return resultobj;
30184 fail:
30185 return NULL;
30186 }
30187
30188
30189 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30190 PyObject *resultobj = 0;
30191 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30192 long arg2 ;
30193 wxPoint *arg3 = 0 ;
30194 bool result;
30195 void *argp1 = 0 ;
30196 int res1 = 0 ;
30197 long val2 ;
30198 int ecode2 = 0 ;
30199 wxPoint temp3 ;
30200 PyObject * obj0 = 0 ;
30201 PyObject * obj1 = 0 ;
30202 PyObject * obj2 = 0 ;
30203 char * kwnames[] = {
30204 (char *) "self",(char *) "item",(char *) "pos", NULL
30205 };
30206
30207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30208 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30209 if (!SWIG_IsOK(res1)) {
30210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30211 }
30212 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30213 ecode2 = SWIG_AsVal_long(obj1, &val2);
30214 if (!SWIG_IsOK(ecode2)) {
30215 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "2"" of type '" "long""'");
30216 }
30217 arg2 = static_cast< long >(val2);
30218 {
30219 arg3 = &temp3;
30220 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30221 }
30222 {
30223 PyThreadState* __tstate = wxPyBeginAllowThreads();
30224 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
30225 wxPyEndAllowThreads(__tstate);
30226 if (PyErr_Occurred()) SWIG_fail;
30227 }
30228 {
30229 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30230 }
30231 return resultobj;
30232 fail:
30233 return NULL;
30234 }
30235
30236
30237 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30238 PyObject *resultobj = 0;
30239 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30240 int result;
30241 void *argp1 = 0 ;
30242 int res1 = 0 ;
30243 PyObject *swig_obj[1] ;
30244
30245 if (!args) SWIG_fail;
30246 swig_obj[0] = args;
30247 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30248 if (!SWIG_IsOK(res1)) {
30249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30250 }
30251 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30252 {
30253 PyThreadState* __tstate = wxPyBeginAllowThreads();
30254 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
30255 wxPyEndAllowThreads(__tstate);
30256 if (PyErr_Occurred()) SWIG_fail;
30257 }
30258 resultobj = SWIG_From_int(static_cast< int >(result));
30259 return resultobj;
30260 fail:
30261 return NULL;
30262 }
30263
30264
30265 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30266 PyObject *resultobj = 0;
30267 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30268 int result;
30269 void *argp1 = 0 ;
30270 int res1 = 0 ;
30271 PyObject *swig_obj[1] ;
30272
30273 if (!args) SWIG_fail;
30274 swig_obj[0] = args;
30275 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30276 if (!SWIG_IsOK(res1)) {
30277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30278 }
30279 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30280 {
30281 PyThreadState* __tstate = wxPyBeginAllowThreads();
30282 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
30283 wxPyEndAllowThreads(__tstate);
30284 if (PyErr_Occurred()) SWIG_fail;
30285 }
30286 resultobj = SWIG_From_int(static_cast< int >(result));
30287 return resultobj;
30288 fail:
30289 return NULL;
30290 }
30291
30292
30293 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30294 PyObject *resultobj = 0;
30295 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30296 wxSize result;
30297 void *argp1 = 0 ;
30298 int res1 = 0 ;
30299 PyObject *swig_obj[1] ;
30300
30301 if (!args) SWIG_fail;
30302 swig_obj[0] = args;
30303 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30304 if (!SWIG_IsOK(res1)) {
30305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30306 }
30307 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30308 {
30309 PyThreadState* __tstate = wxPyBeginAllowThreads();
30310 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
30311 wxPyEndAllowThreads(__tstate);
30312 if (PyErr_Occurred()) SWIG_fail;
30313 }
30314 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
30315 return resultobj;
30316 fail:
30317 return NULL;
30318 }
30319
30320
30321 SWIGINTERN PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30322 PyObject *resultobj = 0;
30323 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30324 int result;
30325 void *argp1 = 0 ;
30326 int res1 = 0 ;
30327 PyObject *swig_obj[1] ;
30328
30329 if (!args) SWIG_fail;
30330 swig_obj[0] = args;
30331 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30332 if (!SWIG_IsOK(res1)) {
30333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetSelectedItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30334 }
30335 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30336 {
30337 PyThreadState* __tstate = wxPyBeginAllowThreads();
30338 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
30339 wxPyEndAllowThreads(__tstate);
30340 if (PyErr_Occurred()) SWIG_fail;
30341 }
30342 resultobj = SWIG_From_int(static_cast< int >(result));
30343 return resultobj;
30344 fail:
30345 return NULL;
30346 }
30347
30348
30349 SWIGINTERN PyObject *_wrap_ListCtrl_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30350 PyObject *resultobj = 0;
30351 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30352 wxColour result;
30353 void *argp1 = 0 ;
30354 int res1 = 0 ;
30355 PyObject *swig_obj[1] ;
30356
30357 if (!args) SWIG_fail;
30358 swig_obj[0] = args;
30359 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30360 if (!SWIG_IsOK(res1)) {
30361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30362 }
30363 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30364 {
30365 PyThreadState* __tstate = wxPyBeginAllowThreads();
30366 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
30367 wxPyEndAllowThreads(__tstate);
30368 if (PyErr_Occurred()) SWIG_fail;
30369 }
30370 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
30371 return resultobj;
30372 fail:
30373 return NULL;
30374 }
30375
30376
30377 SWIGINTERN PyObject *_wrap_ListCtrl_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30378 PyObject *resultobj = 0;
30379 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30380 wxColour *arg2 = 0 ;
30381 void *argp1 = 0 ;
30382 int res1 = 0 ;
30383 wxColour temp2 ;
30384 PyObject * obj0 = 0 ;
30385 PyObject * obj1 = 0 ;
30386 char * kwnames[] = {
30387 (char *) "self",(char *) "col", NULL
30388 };
30389
30390 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
30391 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30392 if (!SWIG_IsOK(res1)) {
30393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30394 }
30395 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30396 {
30397 arg2 = &temp2;
30398 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30399 }
30400 {
30401 PyThreadState* __tstate = wxPyBeginAllowThreads();
30402 (arg1)->SetTextColour((wxColour const &)*arg2);
30403 wxPyEndAllowThreads(__tstate);
30404 if (PyErr_Occurred()) SWIG_fail;
30405 }
30406 resultobj = SWIG_Py_Void();
30407 return resultobj;
30408 fail:
30409 return NULL;
30410 }
30411
30412
30413 SWIGINTERN PyObject *_wrap_ListCtrl_GetTopItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30414 PyObject *resultobj = 0;
30415 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30416 long result;
30417 void *argp1 = 0 ;
30418 int res1 = 0 ;
30419 PyObject *swig_obj[1] ;
30420
30421 if (!args) SWIG_fail;
30422 swig_obj[0] = args;
30423 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30424 if (!SWIG_IsOK(res1)) {
30425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTopItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30426 }
30427 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30428 {
30429 PyThreadState* __tstate = wxPyBeginAllowThreads();
30430 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
30431 wxPyEndAllowThreads(__tstate);
30432 if (PyErr_Occurred()) SWIG_fail;
30433 }
30434 resultobj = SWIG_From_long(static_cast< long >(result));
30435 return resultobj;
30436 fail:
30437 return NULL;
30438 }
30439
30440
30441 SWIGINTERN PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30442 PyObject *resultobj = 0;
30443 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30444 long arg2 ;
30445 bool arg3 = (bool) true ;
30446 void *argp1 = 0 ;
30447 int res1 = 0 ;
30448 long val2 ;
30449 int ecode2 = 0 ;
30450 bool val3 ;
30451 int ecode3 = 0 ;
30452 PyObject * obj0 = 0 ;
30453 PyObject * obj1 = 0 ;
30454 PyObject * obj2 = 0 ;
30455 char * kwnames[] = {
30456 (char *) "self",(char *) "style",(char *) "add", NULL
30457 };
30458
30459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30461 if (!SWIG_IsOK(res1)) {
30462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30463 }
30464 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30465 ecode2 = SWIG_AsVal_long(obj1, &val2);
30466 if (!SWIG_IsOK(ecode2)) {
30467 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "2"" of type '" "long""'");
30468 }
30469 arg2 = static_cast< long >(val2);
30470 if (obj2) {
30471 ecode3 = SWIG_AsVal_bool(obj2, &val3);
30472 if (!SWIG_IsOK(ecode3)) {
30473 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "3"" of type '" "bool""'");
30474 }
30475 arg3 = static_cast< bool >(val3);
30476 }
30477 {
30478 PyThreadState* __tstate = wxPyBeginAllowThreads();
30479 (arg1)->SetSingleStyle(arg2,arg3);
30480 wxPyEndAllowThreads(__tstate);
30481 if (PyErr_Occurred()) SWIG_fail;
30482 }
30483 resultobj = SWIG_Py_Void();
30484 return resultobj;
30485 fail:
30486 return NULL;
30487 }
30488
30489
30490 SWIGINTERN PyObject *_wrap_ListCtrl_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30491 PyObject *resultobj = 0;
30492 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30493 long arg2 ;
30494 int arg3 = (int) wxLIST_NEXT_ALL ;
30495 int arg4 = (int) wxLIST_STATE_DONTCARE ;
30496 long result;
30497 void *argp1 = 0 ;
30498 int res1 = 0 ;
30499 long val2 ;
30500 int ecode2 = 0 ;
30501 int val3 ;
30502 int ecode3 = 0 ;
30503 int val4 ;
30504 int ecode4 = 0 ;
30505 PyObject * obj0 = 0 ;
30506 PyObject * obj1 = 0 ;
30507 PyObject * obj2 = 0 ;
30508 PyObject * obj3 = 0 ;
30509 char * kwnames[] = {
30510 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
30511 };
30512
30513 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30514 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30515 if (!SWIG_IsOK(res1)) {
30516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetNextItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30517 }
30518 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30519 ecode2 = SWIG_AsVal_long(obj1, &val2);
30520 if (!SWIG_IsOK(ecode2)) {
30521 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetNextItem" "', expected argument " "2"" of type '" "long""'");
30522 }
30523 arg2 = static_cast< long >(val2);
30524 if (obj2) {
30525 ecode3 = SWIG_AsVal_int(obj2, &val3);
30526 if (!SWIG_IsOK(ecode3)) {
30527 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetNextItem" "', expected argument " "3"" of type '" "int""'");
30528 }
30529 arg3 = static_cast< int >(val3);
30530 }
30531 if (obj3) {
30532 ecode4 = SWIG_AsVal_int(obj3, &val4);
30533 if (!SWIG_IsOK(ecode4)) {
30534 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_GetNextItem" "', expected argument " "4"" of type '" "int""'");
30535 }
30536 arg4 = static_cast< int >(val4);
30537 }
30538 {
30539 PyThreadState* __tstate = wxPyBeginAllowThreads();
30540 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
30541 wxPyEndAllowThreads(__tstate);
30542 if (PyErr_Occurred()) SWIG_fail;
30543 }
30544 resultobj = SWIG_From_long(static_cast< long >(result));
30545 return resultobj;
30546 fail:
30547 return NULL;
30548 }
30549
30550
30551 SWIGINTERN PyObject *_wrap_ListCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30552 PyObject *resultobj = 0;
30553 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30554 int arg2 ;
30555 wxImageList *result = 0 ;
30556 void *argp1 = 0 ;
30557 int res1 = 0 ;
30558 int val2 ;
30559 int ecode2 = 0 ;
30560 PyObject * obj0 = 0 ;
30561 PyObject * obj1 = 0 ;
30562 char * kwnames[] = {
30563 (char *) "self",(char *) "which", NULL
30564 };
30565
30566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
30567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30568 if (!SWIG_IsOK(res1)) {
30569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30570 }
30571 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30572 ecode2 = SWIG_AsVal_int(obj1, &val2);
30573 if (!SWIG_IsOK(ecode2)) {
30574 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetImageList" "', expected argument " "2"" of type '" "int""'");
30575 }
30576 arg2 = static_cast< int >(val2);
30577 {
30578 PyThreadState* __tstate = wxPyBeginAllowThreads();
30579 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
30580 wxPyEndAllowThreads(__tstate);
30581 if (PyErr_Occurred()) SWIG_fail;
30582 }
30583 {
30584 resultobj = wxPyMake_wxObject(result, (bool)0);
30585 }
30586 return resultobj;
30587 fail:
30588 return NULL;
30589 }
30590
30591
30592 SWIGINTERN PyObject *_wrap_ListCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30593 PyObject *resultobj = 0;
30594 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30595 wxImageList *arg2 = (wxImageList *) 0 ;
30596 int arg3 ;
30597 void *argp1 = 0 ;
30598 int res1 = 0 ;
30599 void *argp2 = 0 ;
30600 int res2 = 0 ;
30601 int val3 ;
30602 int ecode3 = 0 ;
30603 PyObject * obj0 = 0 ;
30604 PyObject * obj1 = 0 ;
30605 PyObject * obj2 = 0 ;
30606 char * kwnames[] = {
30607 (char *) "self",(char *) "imageList",(char *) "which", NULL
30608 };
30609
30610 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30611 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30612 if (!SWIG_IsOK(res1)) {
30613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30614 }
30615 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30616 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
30617 if (!SWIG_IsOK(res2)) {
30618 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30619 }
30620 arg2 = reinterpret_cast< wxImageList * >(argp2);
30621 ecode3 = SWIG_AsVal_int(obj2, &val3);
30622 if (!SWIG_IsOK(ecode3)) {
30623 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetImageList" "', expected argument " "3"" of type '" "int""'");
30624 }
30625 arg3 = static_cast< int >(val3);
30626 {
30627 PyThreadState* __tstate = wxPyBeginAllowThreads();
30628 (arg1)->SetImageList(arg2,arg3);
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_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30640 PyObject *resultobj = 0;
30641 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30642 wxImageList *arg2 = (wxImageList *) 0 ;
30643 int arg3 ;
30644 void *argp1 = 0 ;
30645 int res1 = 0 ;
30646 int res2 = 0 ;
30647 int val3 ;
30648 int ecode3 = 0 ;
30649 PyObject * obj0 = 0 ;
30650 PyObject * obj1 = 0 ;
30651 PyObject * obj2 = 0 ;
30652 char * kwnames[] = {
30653 (char *) "self",(char *) "imageList",(char *) "which", NULL
30654 };
30655
30656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30658 if (!SWIG_IsOK(res1)) {
30659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30660 }
30661 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30662 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
30663 if (!SWIG_IsOK(res2)) {
30664 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30665 }
30666 ecode3 = SWIG_AsVal_int(obj2, &val3);
30667 if (!SWIG_IsOK(ecode3)) {
30668 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_AssignImageList" "', expected argument " "3"" of type '" "int""'");
30669 }
30670 arg3 = static_cast< int >(val3);
30671 {
30672 PyThreadState* __tstate = wxPyBeginAllowThreads();
30673 (arg1)->AssignImageList(arg2,arg3);
30674 wxPyEndAllowThreads(__tstate);
30675 if (PyErr_Occurred()) SWIG_fail;
30676 }
30677 resultobj = SWIG_Py_Void();
30678 return resultobj;
30679 fail:
30680 return NULL;
30681 }
30682
30683
30684 SWIGINTERN PyObject *_wrap_ListCtrl_InReportView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30685 PyObject *resultobj = 0;
30686 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30687 bool result;
30688 void *argp1 = 0 ;
30689 int res1 = 0 ;
30690 PyObject *swig_obj[1] ;
30691
30692 if (!args) SWIG_fail;
30693 swig_obj[0] = args;
30694 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30695 if (!SWIG_IsOK(res1)) {
30696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InReportView" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30697 }
30698 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30699 {
30700 PyThreadState* __tstate = wxPyBeginAllowThreads();
30701 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
30702 wxPyEndAllowThreads(__tstate);
30703 if (PyErr_Occurred()) SWIG_fail;
30704 }
30705 {
30706 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30707 }
30708 return resultobj;
30709 fail:
30710 return NULL;
30711 }
30712
30713
30714 SWIGINTERN PyObject *_wrap_ListCtrl_IsVirtual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30715 PyObject *resultobj = 0;
30716 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30717 bool result;
30718 void *argp1 = 0 ;
30719 int res1 = 0 ;
30720 PyObject *swig_obj[1] ;
30721
30722 if (!args) SWIG_fail;
30723 swig_obj[0] = args;
30724 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30725 if (!SWIG_IsOK(res1)) {
30726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_IsVirtual" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30727 }
30728 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30729 {
30730 PyThreadState* __tstate = wxPyBeginAllowThreads();
30731 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
30732 wxPyEndAllowThreads(__tstate);
30733 if (PyErr_Occurred()) SWIG_fail;
30734 }
30735 {
30736 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30737 }
30738 return resultobj;
30739 fail:
30740 return NULL;
30741 }
30742
30743
30744 SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30745 PyObject *resultobj = 0;
30746 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30747 long arg2 ;
30748 void *argp1 = 0 ;
30749 int res1 = 0 ;
30750 long val2 ;
30751 int ecode2 = 0 ;
30752 PyObject * obj0 = 0 ;
30753 PyObject * obj1 = 0 ;
30754 char * kwnames[] = {
30755 (char *) "self",(char *) "item", NULL
30756 };
30757
30758 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) SWIG_fail;
30759 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30760 if (!SWIG_IsOK(res1)) {
30761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30762 }
30763 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30764 ecode2 = SWIG_AsVal_long(obj1, &val2);
30765 if (!SWIG_IsOK(ecode2)) {
30766 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItem" "', expected argument " "2"" of type '" "long""'");
30767 }
30768 arg2 = static_cast< long >(val2);
30769 {
30770 PyThreadState* __tstate = wxPyBeginAllowThreads();
30771 (arg1)->RefreshItem(arg2);
30772 wxPyEndAllowThreads(__tstate);
30773 if (PyErr_Occurred()) SWIG_fail;
30774 }
30775 resultobj = SWIG_Py_Void();
30776 return resultobj;
30777 fail:
30778 return NULL;
30779 }
30780
30781
30782 SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30783 PyObject *resultobj = 0;
30784 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30785 long arg2 ;
30786 long arg3 ;
30787 void *argp1 = 0 ;
30788 int res1 = 0 ;
30789 long val2 ;
30790 int ecode2 = 0 ;
30791 long val3 ;
30792 int ecode3 = 0 ;
30793 PyObject * obj0 = 0 ;
30794 PyObject * obj1 = 0 ;
30795 PyObject * obj2 = 0 ;
30796 char * kwnames[] = {
30797 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
30798 };
30799
30800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30802 if (!SWIG_IsOK(res1)) {
30803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30804 }
30805 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30806 ecode2 = SWIG_AsVal_long(obj1, &val2);
30807 if (!SWIG_IsOK(ecode2)) {
30808 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItems" "', expected argument " "2"" of type '" "long""'");
30809 }
30810 arg2 = static_cast< long >(val2);
30811 ecode3 = SWIG_AsVal_long(obj2, &val3);
30812 if (!SWIG_IsOK(ecode3)) {
30813 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_RefreshItems" "', expected argument " "3"" of type '" "long""'");
30814 }
30815 arg3 = static_cast< long >(val3);
30816 {
30817 PyThreadState* __tstate = wxPyBeginAllowThreads();
30818 (arg1)->RefreshItems(arg2,arg3);
30819 wxPyEndAllowThreads(__tstate);
30820 if (PyErr_Occurred()) SWIG_fail;
30821 }
30822 resultobj = SWIG_Py_Void();
30823 return resultobj;
30824 fail:
30825 return NULL;
30826 }
30827
30828
30829 SWIGINTERN PyObject *_wrap_ListCtrl_Arrange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30830 PyObject *resultobj = 0;
30831 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30832 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
30833 bool result;
30834 void *argp1 = 0 ;
30835 int res1 = 0 ;
30836 int val2 ;
30837 int ecode2 = 0 ;
30838 PyObject * obj0 = 0 ;
30839 PyObject * obj1 = 0 ;
30840 char * kwnames[] = {
30841 (char *) "self",(char *) "flag", NULL
30842 };
30843
30844 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) SWIG_fail;
30845 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30846 if (!SWIG_IsOK(res1)) {
30847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Arrange" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30848 }
30849 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30850 if (obj1) {
30851 ecode2 = SWIG_AsVal_int(obj1, &val2);
30852 if (!SWIG_IsOK(ecode2)) {
30853 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_Arrange" "', expected argument " "2"" of type '" "int""'");
30854 }
30855 arg2 = static_cast< int >(val2);
30856 }
30857 {
30858 PyThreadState* __tstate = wxPyBeginAllowThreads();
30859 result = (bool)(arg1)->Arrange(arg2);
30860 wxPyEndAllowThreads(__tstate);
30861 if (PyErr_Occurred()) SWIG_fail;
30862 }
30863 {
30864 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30865 }
30866 return resultobj;
30867 fail:
30868 return NULL;
30869 }
30870
30871
30872 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30873 PyObject *resultobj = 0;
30874 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30875 long arg2 ;
30876 bool result;
30877 void *argp1 = 0 ;
30878 int res1 = 0 ;
30879 long val2 ;
30880 int ecode2 = 0 ;
30881 PyObject * obj0 = 0 ;
30882 PyObject * obj1 = 0 ;
30883 char * kwnames[] = {
30884 (char *) "self",(char *) "item", NULL
30885 };
30886
30887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) SWIG_fail;
30888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30889 if (!SWIG_IsOK(res1)) {
30890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30891 }
30892 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30893 ecode2 = SWIG_AsVal_long(obj1, &val2);
30894 if (!SWIG_IsOK(ecode2)) {
30895 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteItem" "', expected argument " "2"" of type '" "long""'");
30896 }
30897 arg2 = static_cast< long >(val2);
30898 {
30899 PyThreadState* __tstate = wxPyBeginAllowThreads();
30900 result = (bool)(arg1)->DeleteItem(arg2);
30901 wxPyEndAllowThreads(__tstate);
30902 if (PyErr_Occurred()) SWIG_fail;
30903 }
30904 {
30905 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30906 }
30907 return resultobj;
30908 fail:
30909 return NULL;
30910 }
30911
30912
30913 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30914 PyObject *resultobj = 0;
30915 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30916 bool result;
30917 void *argp1 = 0 ;
30918 int res1 = 0 ;
30919 PyObject *swig_obj[1] ;
30920
30921 if (!args) SWIG_fail;
30922 swig_obj[0] = args;
30923 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30924 if (!SWIG_IsOK(res1)) {
30925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30926 }
30927 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30928 {
30929 PyThreadState* __tstate = wxPyBeginAllowThreads();
30930 result = (bool)(arg1)->DeleteAllItems();
30931 wxPyEndAllowThreads(__tstate);
30932 if (PyErr_Occurred()) SWIG_fail;
30933 }
30934 {
30935 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30936 }
30937 return resultobj;
30938 fail:
30939 return NULL;
30940 }
30941
30942
30943 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30944 PyObject *resultobj = 0;
30945 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30946 int arg2 ;
30947 bool result;
30948 void *argp1 = 0 ;
30949 int res1 = 0 ;
30950 int val2 ;
30951 int ecode2 = 0 ;
30952 PyObject * obj0 = 0 ;
30953 PyObject * obj1 = 0 ;
30954 char * kwnames[] = {
30955 (char *) "self",(char *) "col", NULL
30956 };
30957
30958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) SWIG_fail;
30959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30960 if (!SWIG_IsOK(res1)) {
30961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30962 }
30963 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30964 ecode2 = SWIG_AsVal_int(obj1, &val2);
30965 if (!SWIG_IsOK(ecode2)) {
30966 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "2"" of type '" "int""'");
30967 }
30968 arg2 = static_cast< int >(val2);
30969 {
30970 PyThreadState* __tstate = wxPyBeginAllowThreads();
30971 result = (bool)(arg1)->DeleteColumn(arg2);
30972 wxPyEndAllowThreads(__tstate);
30973 if (PyErr_Occurred()) SWIG_fail;
30974 }
30975 {
30976 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30977 }
30978 return resultobj;
30979 fail:
30980 return NULL;
30981 }
30982
30983
30984 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30985 PyObject *resultobj = 0;
30986 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30987 bool result;
30988 void *argp1 = 0 ;
30989 int res1 = 0 ;
30990 PyObject *swig_obj[1] ;
30991
30992 if (!args) SWIG_fail;
30993 swig_obj[0] = args;
30994 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30995 if (!SWIG_IsOK(res1)) {
30996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllColumns" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30997 }
30998 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30999 {
31000 PyThreadState* __tstate = wxPyBeginAllowThreads();
31001 result = (bool)(arg1)->DeleteAllColumns();
31002 wxPyEndAllowThreads(__tstate);
31003 if (PyErr_Occurred()) SWIG_fail;
31004 }
31005 {
31006 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31007 }
31008 return resultobj;
31009 fail:
31010 return NULL;
31011 }
31012
31013
31014 SWIGINTERN PyObject *_wrap_ListCtrl_ClearAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31015 PyObject *resultobj = 0;
31016 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31017 void *argp1 = 0 ;
31018 int res1 = 0 ;
31019 PyObject *swig_obj[1] ;
31020
31021 if (!args) SWIG_fail;
31022 swig_obj[0] = args;
31023 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31024 if (!SWIG_IsOK(res1)) {
31025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ClearAll" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31026 }
31027 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31028 {
31029 PyThreadState* __tstate = wxPyBeginAllowThreads();
31030 (arg1)->ClearAll();
31031 wxPyEndAllowThreads(__tstate);
31032 if (PyErr_Occurred()) SWIG_fail;
31033 }
31034 resultobj = SWIG_Py_Void();
31035 return resultobj;
31036 fail:
31037 return NULL;
31038 }
31039
31040
31041 SWIGINTERN PyObject *_wrap_ListCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31042 PyObject *resultobj = 0;
31043 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31044 long arg2 ;
31045 wxTextCtrl *result = 0 ;
31046 void *argp1 = 0 ;
31047 int res1 = 0 ;
31048 long val2 ;
31049 int ecode2 = 0 ;
31050 PyObject * obj0 = 0 ;
31051 PyObject * obj1 = 0 ;
31052 char * kwnames[] = {
31053 (char *) "self",(char *) "item", NULL
31054 };
31055
31056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
31057 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31058 if (!SWIG_IsOK(res1)) {
31059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31060 }
31061 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31062 ecode2 = SWIG_AsVal_long(obj1, &val2);
31063 if (!SWIG_IsOK(ecode2)) {
31064 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EditLabel" "', expected argument " "2"" of type '" "long""'");
31065 }
31066 arg2 = static_cast< long >(val2);
31067 {
31068 PyThreadState* __tstate = wxPyBeginAllowThreads();
31069 result = (wxTextCtrl *)(arg1)->EditLabel(arg2);
31070 wxPyEndAllowThreads(__tstate);
31071 if (PyErr_Occurred()) SWIG_fail;
31072 }
31073 {
31074 resultobj = wxPyMake_wxObject(result, 0);
31075 }
31076 return resultobj;
31077 fail:
31078 return NULL;
31079 }
31080
31081
31082 SWIGINTERN PyObject *_wrap_ListCtrl_EndEditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31083 PyObject *resultobj = 0;
31084 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31085 bool arg2 ;
31086 bool result;
31087 void *argp1 = 0 ;
31088 int res1 = 0 ;
31089 bool val2 ;
31090 int ecode2 = 0 ;
31091 PyObject * obj0 = 0 ;
31092 PyObject * obj1 = 0 ;
31093 char * kwnames[] = {
31094 (char *) "self",(char *) "cancel", NULL
31095 };
31096
31097 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EndEditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
31098 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31099 if (!SWIG_IsOK(res1)) {
31100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EndEditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31101 }
31102 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31103 ecode2 = SWIG_AsVal_bool(obj1, &val2);
31104 if (!SWIG_IsOK(ecode2)) {
31105 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EndEditLabel" "', expected argument " "2"" of type '" "bool""'");
31106 }
31107 arg2 = static_cast< bool >(val2);
31108 {
31109 PyThreadState* __tstate = wxPyBeginAllowThreads();
31110 result = (bool)(arg1)->EndEditLabel(arg2);
31111 wxPyEndAllowThreads(__tstate);
31112 if (PyErr_Occurred()) SWIG_fail;
31113 }
31114 {
31115 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31116 }
31117 return resultobj;
31118 fail:
31119 return NULL;
31120 }
31121
31122
31123 SWIGINTERN PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31124 PyObject *resultobj = 0;
31125 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31126 long arg2 ;
31127 bool result;
31128 void *argp1 = 0 ;
31129 int res1 = 0 ;
31130 long val2 ;
31131 int ecode2 = 0 ;
31132 PyObject * obj0 = 0 ;
31133 PyObject * obj1 = 0 ;
31134 char * kwnames[] = {
31135 (char *) "self",(char *) "item", NULL
31136 };
31137
31138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
31139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31140 if (!SWIG_IsOK(res1)) {
31141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31142 }
31143 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31144 ecode2 = SWIG_AsVal_long(obj1, &val2);
31145 if (!SWIG_IsOK(ecode2)) {
31146 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "2"" of type '" "long""'");
31147 }
31148 arg2 = static_cast< long >(val2);
31149 {
31150 PyThreadState* __tstate = wxPyBeginAllowThreads();
31151 result = (bool)(arg1)->EnsureVisible(arg2);
31152 wxPyEndAllowThreads(__tstate);
31153 if (PyErr_Occurred()) SWIG_fail;
31154 }
31155 {
31156 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31157 }
31158 return resultobj;
31159 fail:
31160 return NULL;
31161 }
31162
31163
31164 SWIGINTERN PyObject *_wrap_ListCtrl_FindItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31165 PyObject *resultobj = 0;
31166 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31167 long arg2 ;
31168 wxString *arg3 = 0 ;
31169 bool arg4 = (bool) false ;
31170 long result;
31171 void *argp1 = 0 ;
31172 int res1 = 0 ;
31173 long val2 ;
31174 int ecode2 = 0 ;
31175 bool temp3 = false ;
31176 bool val4 ;
31177 int ecode4 = 0 ;
31178 PyObject * obj0 = 0 ;
31179 PyObject * obj1 = 0 ;
31180 PyObject * obj2 = 0 ;
31181 PyObject * obj3 = 0 ;
31182 char * kwnames[] = {
31183 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
31184 };
31185
31186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31187 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31188 if (!SWIG_IsOK(res1)) {
31189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31190 }
31191 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31192 ecode2 = SWIG_AsVal_long(obj1, &val2);
31193 if (!SWIG_IsOK(ecode2)) {
31194 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItem" "', expected argument " "2"" of type '" "long""'");
31195 }
31196 arg2 = static_cast< long >(val2);
31197 {
31198 arg3 = wxString_in_helper(obj2);
31199 if (arg3 == NULL) SWIG_fail;
31200 temp3 = true;
31201 }
31202 if (obj3) {
31203 ecode4 = SWIG_AsVal_bool(obj3, &val4);
31204 if (!SWIG_IsOK(ecode4)) {
31205 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItem" "', expected argument " "4"" of type '" "bool""'");
31206 }
31207 arg4 = static_cast< bool >(val4);
31208 }
31209 {
31210 PyThreadState* __tstate = wxPyBeginAllowThreads();
31211 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
31212 wxPyEndAllowThreads(__tstate);
31213 if (PyErr_Occurred()) SWIG_fail;
31214 }
31215 resultobj = SWIG_From_long(static_cast< long >(result));
31216 {
31217 if (temp3)
31218 delete arg3;
31219 }
31220 return resultobj;
31221 fail:
31222 {
31223 if (temp3)
31224 delete arg3;
31225 }
31226 return NULL;
31227 }
31228
31229
31230 SWIGINTERN PyObject *_wrap_ListCtrl_FindItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31231 PyObject *resultobj = 0;
31232 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31233 long arg2 ;
31234 long arg3 ;
31235 long result;
31236 void *argp1 = 0 ;
31237 int res1 = 0 ;
31238 long val2 ;
31239 int ecode2 = 0 ;
31240 long val3 ;
31241 int ecode3 = 0 ;
31242 PyObject * obj0 = 0 ;
31243 PyObject * obj1 = 0 ;
31244 PyObject * obj2 = 0 ;
31245 char * kwnames[] = {
31246 (char *) "self",(char *) "start",(char *) "data", NULL
31247 };
31248
31249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31251 if (!SWIG_IsOK(res1)) {
31252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31253 }
31254 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31255 ecode2 = SWIG_AsVal_long(obj1, &val2);
31256 if (!SWIG_IsOK(ecode2)) {
31257 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemData" "', expected argument " "2"" of type '" "long""'");
31258 }
31259 arg2 = static_cast< long >(val2);
31260 ecode3 = SWIG_AsVal_long(obj2, &val3);
31261 if (!SWIG_IsOK(ecode3)) {
31262 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_FindItemData" "', expected argument " "3"" of type '" "long""'");
31263 }
31264 arg3 = static_cast< long >(val3);
31265 {
31266 PyThreadState* __tstate = wxPyBeginAllowThreads();
31267 result = (long)(arg1)->FindItem(arg2,arg3);
31268 wxPyEndAllowThreads(__tstate);
31269 if (PyErr_Occurred()) SWIG_fail;
31270 }
31271 resultobj = SWIG_From_long(static_cast< long >(result));
31272 return resultobj;
31273 fail:
31274 return NULL;
31275 }
31276
31277
31278 SWIGINTERN PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31279 PyObject *resultobj = 0;
31280 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31281 long arg2 ;
31282 wxPoint *arg3 = 0 ;
31283 int arg4 ;
31284 long result;
31285 void *argp1 = 0 ;
31286 int res1 = 0 ;
31287 long val2 ;
31288 int ecode2 = 0 ;
31289 wxPoint temp3 ;
31290 int val4 ;
31291 int ecode4 = 0 ;
31292 PyObject * obj0 = 0 ;
31293 PyObject * obj1 = 0 ;
31294 PyObject * obj2 = 0 ;
31295 PyObject * obj3 = 0 ;
31296 char * kwnames[] = {
31297 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
31298 };
31299
31300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31302 if (!SWIG_IsOK(res1)) {
31303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31304 }
31305 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31306 ecode2 = SWIG_AsVal_long(obj1, &val2);
31307 if (!SWIG_IsOK(ecode2)) {
31308 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "2"" of type '" "long""'");
31309 }
31310 arg2 = static_cast< long >(val2);
31311 {
31312 arg3 = &temp3;
31313 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31314 }
31315 ecode4 = SWIG_AsVal_int(obj3, &val4);
31316 if (!SWIG_IsOK(ecode4)) {
31317 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "4"" of type '" "int""'");
31318 }
31319 arg4 = static_cast< int >(val4);
31320 {
31321 PyThreadState* __tstate = wxPyBeginAllowThreads();
31322 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
31323 wxPyEndAllowThreads(__tstate);
31324 if (PyErr_Occurred()) SWIG_fail;
31325 }
31326 resultobj = SWIG_From_long(static_cast< long >(result));
31327 return resultobj;
31328 fail:
31329 return NULL;
31330 }
31331
31332
31333 SWIGINTERN PyObject *_wrap_ListCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31334 PyObject *resultobj = 0;
31335 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31336 wxPoint *arg2 = 0 ;
31337 int *arg3 = 0 ;
31338 long result;
31339 void *argp1 = 0 ;
31340 int res1 = 0 ;
31341 wxPoint temp2 ;
31342 int temp3 ;
31343 int res3 = SWIG_TMPOBJ ;
31344 PyObject * obj0 = 0 ;
31345 PyObject * obj1 = 0 ;
31346 char * kwnames[] = {
31347 (char *) "self",(char *) "point", NULL
31348 };
31349
31350 arg3 = &temp3;
31351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
31352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31353 if (!SWIG_IsOK(res1)) {
31354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31355 }
31356 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31357 {
31358 arg2 = &temp2;
31359 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31360 }
31361 {
31362 PyThreadState* __tstate = wxPyBeginAllowThreads();
31363 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
31364 wxPyEndAllowThreads(__tstate);
31365 if (PyErr_Occurred()) SWIG_fail;
31366 }
31367 resultobj = SWIG_From_long(static_cast< long >(result));
31368 if (SWIG_IsTmpObj(res3)) {
31369 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31370 } else {
31371 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31372 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31373 }
31374 return resultobj;
31375 fail:
31376 return NULL;
31377 }
31378
31379
31380 SWIGINTERN PyObject *_wrap_ListCtrl_HitTestSubItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31381 PyObject *resultobj = 0;
31382 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31383 wxPoint *arg2 = 0 ;
31384 int *arg3 = 0 ;
31385 long *arg4 = (long *) 0 ;
31386 long result;
31387 void *argp1 = 0 ;
31388 int res1 = 0 ;
31389 wxPoint temp2 ;
31390 int temp3 ;
31391 int res3 = SWIG_TMPOBJ ;
31392 long temp4 ;
31393 int res4 = SWIG_TMPOBJ ;
31394 PyObject * obj0 = 0 ;
31395 PyObject * obj1 = 0 ;
31396 char * kwnames[] = {
31397 (char *) "self",(char *) "point", NULL
31398 };
31399
31400 arg3 = &temp3;
31401 arg4 = &temp4;
31402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTestSubItem",kwnames,&obj0,&obj1)) SWIG_fail;
31403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31404 if (!SWIG_IsOK(res1)) {
31405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTestSubItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31406 }
31407 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31408 {
31409 arg2 = &temp2;
31410 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31411 }
31412 {
31413 PyThreadState* __tstate = wxPyBeginAllowThreads();
31414 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3,arg4);
31415 wxPyEndAllowThreads(__tstate);
31416 if (PyErr_Occurred()) SWIG_fail;
31417 }
31418 resultobj = SWIG_From_long(static_cast< long >(result));
31419 if (SWIG_IsTmpObj(res3)) {
31420 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31421 } else {
31422 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31423 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31424 }
31425 if (SWIG_IsTmpObj(res4)) {
31426 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
31427 } else {
31428 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31429 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
31430 }
31431 return resultobj;
31432 fail:
31433 return NULL;
31434 }
31435
31436
31437 SWIGINTERN PyObject *_wrap_ListCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31438 PyObject *resultobj = 0;
31439 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31440 wxListItem *arg2 = 0 ;
31441 long result;
31442 void *argp1 = 0 ;
31443 int res1 = 0 ;
31444 void *argp2 = 0 ;
31445 int res2 = 0 ;
31446 PyObject * obj0 = 0 ;
31447 PyObject * obj1 = 0 ;
31448 char * kwnames[] = {
31449 (char *) "self",(char *) "info", NULL
31450 };
31451
31452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) SWIG_fail;
31453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31454 if (!SWIG_IsOK(res1)) {
31455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31456 }
31457 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31458 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
31459 if (!SWIG_IsOK(res2)) {
31460 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31461 }
31462 if (!argp2) {
31463 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31464 }
31465 arg2 = reinterpret_cast< wxListItem * >(argp2);
31466 {
31467 PyThreadState* __tstate = wxPyBeginAllowThreads();
31468 result = (long)(arg1)->InsertItem(*arg2);
31469 wxPyEndAllowThreads(__tstate);
31470 if (PyErr_Occurred()) SWIG_fail;
31471 }
31472 resultobj = SWIG_From_long(static_cast< long >(result));
31473 return resultobj;
31474 fail:
31475 return NULL;
31476 }
31477
31478
31479 SWIGINTERN PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31480 PyObject *resultobj = 0;
31481 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31482 long arg2 ;
31483 wxString *arg3 = 0 ;
31484 int arg4 = (int) -1 ;
31485 long result;
31486 void *argp1 = 0 ;
31487 int res1 = 0 ;
31488 long val2 ;
31489 int ecode2 = 0 ;
31490 bool temp3 = false ;
31491 int val4 ;
31492 int ecode4 = 0 ;
31493 PyObject * obj0 = 0 ;
31494 PyObject * obj1 = 0 ;
31495 PyObject * obj2 = 0 ;
31496 PyObject * obj3 = 0 ;
31497 char * kwnames[] = {
31498 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31499 };
31500
31501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31503 if (!SWIG_IsOK(res1)) {
31504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31505 }
31506 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31507 ecode2 = SWIG_AsVal_long(obj1, &val2);
31508 if (!SWIG_IsOK(ecode2)) {
31509 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "2"" of type '" "long""'");
31510 }
31511 arg2 = static_cast< long >(val2);
31512 {
31513 arg3 = wxString_in_helper(obj2);
31514 if (arg3 == NULL) SWIG_fail;
31515 temp3 = true;
31516 }
31517 if (obj3) {
31518 ecode4 = SWIG_AsVal_int(obj3, &val4);
31519 if (!SWIG_IsOK(ecode4)) {
31520 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "4"" of type '" "int""'");
31521 }
31522 arg4 = static_cast< int >(val4);
31523 }
31524 {
31525 PyThreadState* __tstate = wxPyBeginAllowThreads();
31526 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31527 wxPyEndAllowThreads(__tstate);
31528 if (PyErr_Occurred()) SWIG_fail;
31529 }
31530 resultobj = SWIG_From_long(static_cast< long >(result));
31531 {
31532 if (temp3)
31533 delete arg3;
31534 }
31535 return resultobj;
31536 fail:
31537 {
31538 if (temp3)
31539 delete arg3;
31540 }
31541 return NULL;
31542 }
31543
31544
31545 SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31546 PyObject *resultobj = 0;
31547 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31548 long arg2 ;
31549 int arg3 ;
31550 long result;
31551 void *argp1 = 0 ;
31552 int res1 = 0 ;
31553 long val2 ;
31554 int ecode2 = 0 ;
31555 int val3 ;
31556 int ecode3 = 0 ;
31557 PyObject * obj0 = 0 ;
31558 PyObject * obj1 = 0 ;
31559 PyObject * obj2 = 0 ;
31560 char * kwnames[] = {
31561 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
31562 };
31563
31564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31565 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31566 if (!SWIG_IsOK(res1)) {
31567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31568 }
31569 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31570 ecode2 = SWIG_AsVal_long(obj1, &val2);
31571 if (!SWIG_IsOK(ecode2)) {
31572 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "2"" of type '" "long""'");
31573 }
31574 arg2 = static_cast< long >(val2);
31575 ecode3 = SWIG_AsVal_int(obj2, &val3);
31576 if (!SWIG_IsOK(ecode3)) {
31577 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "3"" of type '" "int""'");
31578 }
31579 arg3 = static_cast< int >(val3);
31580 {
31581 PyThreadState* __tstate = wxPyBeginAllowThreads();
31582 result = (long)(arg1)->InsertItem(arg2,arg3);
31583 wxPyEndAllowThreads(__tstate);
31584 if (PyErr_Occurred()) SWIG_fail;
31585 }
31586 resultobj = SWIG_From_long(static_cast< long >(result));
31587 return resultobj;
31588 fail:
31589 return NULL;
31590 }
31591
31592
31593 SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31594 PyObject *resultobj = 0;
31595 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31596 long arg2 ;
31597 wxString *arg3 = 0 ;
31598 int arg4 ;
31599 long result;
31600 void *argp1 = 0 ;
31601 int res1 = 0 ;
31602 long val2 ;
31603 int ecode2 = 0 ;
31604 bool temp3 = false ;
31605 int val4 ;
31606 int ecode4 = 0 ;
31607 PyObject * obj0 = 0 ;
31608 PyObject * obj1 = 0 ;
31609 PyObject * obj2 = 0 ;
31610 PyObject * obj3 = 0 ;
31611 char * kwnames[] = {
31612 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31613 };
31614
31615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31617 if (!SWIG_IsOK(res1)) {
31618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31619 }
31620 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31621 ecode2 = SWIG_AsVal_long(obj1, &val2);
31622 if (!SWIG_IsOK(ecode2)) {
31623 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "2"" of type '" "long""'");
31624 }
31625 arg2 = static_cast< long >(val2);
31626 {
31627 arg3 = wxString_in_helper(obj2);
31628 if (arg3 == NULL) SWIG_fail;
31629 temp3 = true;
31630 }
31631 ecode4 = SWIG_AsVal_int(obj3, &val4);
31632 if (!SWIG_IsOK(ecode4)) {
31633 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "4"" of type '" "int""'");
31634 }
31635 arg4 = static_cast< int >(val4);
31636 {
31637 PyThreadState* __tstate = wxPyBeginAllowThreads();
31638 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31639 wxPyEndAllowThreads(__tstate);
31640 if (PyErr_Occurred()) SWIG_fail;
31641 }
31642 resultobj = SWIG_From_long(static_cast< long >(result));
31643 {
31644 if (temp3)
31645 delete arg3;
31646 }
31647 return resultobj;
31648 fail:
31649 {
31650 if (temp3)
31651 delete arg3;
31652 }
31653 return NULL;
31654 }
31655
31656
31657 SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31658 PyObject *resultobj = 0;
31659 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31660 long arg2 ;
31661 wxListItem *arg3 = 0 ;
31662 long result;
31663 void *argp1 = 0 ;
31664 int res1 = 0 ;
31665 long val2 ;
31666 int ecode2 = 0 ;
31667 void *argp3 = 0 ;
31668 int res3 = 0 ;
31669 PyObject * obj0 = 0 ;
31670 PyObject * obj1 = 0 ;
31671 PyObject * obj2 = 0 ;
31672 char * kwnames[] = {
31673 (char *) "self",(char *) "col",(char *) "info", NULL
31674 };
31675
31676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31678 if (!SWIG_IsOK(res1)) {
31679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31680 }
31681 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31682 ecode2 = SWIG_AsVal_long(obj1, &val2);
31683 if (!SWIG_IsOK(ecode2)) {
31684 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "2"" of type '" "long""'");
31685 }
31686 arg2 = static_cast< long >(val2);
31687 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
31688 if (!SWIG_IsOK(res3)) {
31689 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31690 }
31691 if (!argp3) {
31692 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31693 }
31694 arg3 = reinterpret_cast< wxListItem * >(argp3);
31695 {
31696 PyThreadState* __tstate = wxPyBeginAllowThreads();
31697 result = (long)(arg1)->InsertColumn(arg2,*arg3);
31698 wxPyEndAllowThreads(__tstate);
31699 if (PyErr_Occurred()) SWIG_fail;
31700 }
31701 resultobj = SWIG_From_long(static_cast< long >(result));
31702 return resultobj;
31703 fail:
31704 return NULL;
31705 }
31706
31707
31708 SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31709 PyObject *resultobj = 0;
31710 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31711 long arg2 ;
31712 wxString *arg3 = 0 ;
31713 int arg4 = (int) wxLIST_FORMAT_LEFT ;
31714 int arg5 = (int) -1 ;
31715 long result;
31716 void *argp1 = 0 ;
31717 int res1 = 0 ;
31718 long val2 ;
31719 int ecode2 = 0 ;
31720 bool temp3 = false ;
31721 int val4 ;
31722 int ecode4 = 0 ;
31723 int val5 ;
31724 int ecode5 = 0 ;
31725 PyObject * obj0 = 0 ;
31726 PyObject * obj1 = 0 ;
31727 PyObject * obj2 = 0 ;
31728 PyObject * obj3 = 0 ;
31729 PyObject * obj4 = 0 ;
31730 char * kwnames[] = {
31731 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
31732 };
31733
31734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31736 if (!SWIG_IsOK(res1)) {
31737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31738 }
31739 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31740 ecode2 = SWIG_AsVal_long(obj1, &val2);
31741 if (!SWIG_IsOK(ecode2)) {
31742 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumn" "', expected argument " "2"" of type '" "long""'");
31743 }
31744 arg2 = static_cast< long >(val2);
31745 {
31746 arg3 = wxString_in_helper(obj2);
31747 if (arg3 == NULL) SWIG_fail;
31748 temp3 = true;
31749 }
31750 if (obj3) {
31751 ecode4 = SWIG_AsVal_int(obj3, &val4);
31752 if (!SWIG_IsOK(ecode4)) {
31753 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertColumn" "', expected argument " "4"" of type '" "int""'");
31754 }
31755 arg4 = static_cast< int >(val4);
31756 }
31757 if (obj4) {
31758 ecode5 = SWIG_AsVal_int(obj4, &val5);
31759 if (!SWIG_IsOK(ecode5)) {
31760 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_InsertColumn" "', expected argument " "5"" of type '" "int""'");
31761 }
31762 arg5 = static_cast< int >(val5);
31763 }
31764 {
31765 PyThreadState* __tstate = wxPyBeginAllowThreads();
31766 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
31767 wxPyEndAllowThreads(__tstate);
31768 if (PyErr_Occurred()) SWIG_fail;
31769 }
31770 resultobj = SWIG_From_long(static_cast< long >(result));
31771 {
31772 if (temp3)
31773 delete arg3;
31774 }
31775 return resultobj;
31776 fail:
31777 {
31778 if (temp3)
31779 delete arg3;
31780 }
31781 return NULL;
31782 }
31783
31784
31785 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31786 PyObject *resultobj = 0;
31787 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31788 long arg2 ;
31789 void *argp1 = 0 ;
31790 int res1 = 0 ;
31791 long val2 ;
31792 int ecode2 = 0 ;
31793 PyObject * obj0 = 0 ;
31794 PyObject * obj1 = 0 ;
31795 char * kwnames[] = {
31796 (char *) "self",(char *) "count", NULL
31797 };
31798
31799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail;
31800 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31801 if (!SWIG_IsOK(res1)) {
31802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31803 }
31804 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31805 ecode2 = SWIG_AsVal_long(obj1, &val2);
31806 if (!SWIG_IsOK(ecode2)) {
31807 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemCount" "', expected argument " "2"" of type '" "long""'");
31808 }
31809 arg2 = static_cast< long >(val2);
31810 {
31811 PyThreadState* __tstate = wxPyBeginAllowThreads();
31812 (arg1)->SetItemCount(arg2);
31813 wxPyEndAllowThreads(__tstate);
31814 if (PyErr_Occurred()) SWIG_fail;
31815 }
31816 resultobj = SWIG_Py_Void();
31817 return resultobj;
31818 fail:
31819 return NULL;
31820 }
31821
31822
31823 SWIGINTERN PyObject *_wrap_ListCtrl_ScrollList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31824 PyObject *resultobj = 0;
31825 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31826 int arg2 ;
31827 int arg3 ;
31828 bool result;
31829 void *argp1 = 0 ;
31830 int res1 = 0 ;
31831 int val2 ;
31832 int ecode2 = 0 ;
31833 int val3 ;
31834 int ecode3 = 0 ;
31835 PyObject * obj0 = 0 ;
31836 PyObject * obj1 = 0 ;
31837 PyObject * obj2 = 0 ;
31838 char * kwnames[] = {
31839 (char *) "self",(char *) "dx",(char *) "dy", NULL
31840 };
31841
31842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31843 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31844 if (!SWIG_IsOK(res1)) {
31845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ScrollList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31846 }
31847 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31848 ecode2 = SWIG_AsVal_int(obj1, &val2);
31849 if (!SWIG_IsOK(ecode2)) {
31850 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_ScrollList" "', expected argument " "2"" of type '" "int""'");
31851 }
31852 arg2 = static_cast< int >(val2);
31853 ecode3 = SWIG_AsVal_int(obj2, &val3);
31854 if (!SWIG_IsOK(ecode3)) {
31855 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_ScrollList" "', expected argument " "3"" of type '" "int""'");
31856 }
31857 arg3 = static_cast< int >(val3);
31858 {
31859 PyThreadState* __tstate = wxPyBeginAllowThreads();
31860 result = (bool)(arg1)->ScrollList(arg2,arg3);
31861 wxPyEndAllowThreads(__tstate);
31862 if (PyErr_Occurred()) SWIG_fail;
31863 }
31864 {
31865 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31866 }
31867 return resultobj;
31868 fail:
31869 return NULL;
31870 }
31871
31872
31873 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31874 PyObject *resultobj = 0;
31875 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31876 long arg2 ;
31877 wxColour *arg3 = 0 ;
31878 void *argp1 = 0 ;
31879 int res1 = 0 ;
31880 long val2 ;
31881 int ecode2 = 0 ;
31882 wxColour temp3 ;
31883 PyObject * obj0 = 0 ;
31884 PyObject * obj1 = 0 ;
31885 PyObject * obj2 = 0 ;
31886 char * kwnames[] = {
31887 (char *) "self",(char *) "item",(char *) "col", NULL
31888 };
31889
31890 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31891 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31892 if (!SWIG_IsOK(res1)) {
31893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31894 }
31895 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31896 ecode2 = SWIG_AsVal_long(obj1, &val2);
31897 if (!SWIG_IsOK(ecode2)) {
31898 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31899 }
31900 arg2 = static_cast< long >(val2);
31901 {
31902 arg3 = &temp3;
31903 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31904 }
31905 {
31906 PyThreadState* __tstate = wxPyBeginAllowThreads();
31907 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
31908 wxPyEndAllowThreads(__tstate);
31909 if (PyErr_Occurred()) SWIG_fail;
31910 }
31911 resultobj = SWIG_Py_Void();
31912 return resultobj;
31913 fail:
31914 return NULL;
31915 }
31916
31917
31918 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31919 PyObject *resultobj = 0;
31920 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31921 long arg2 ;
31922 wxColour result;
31923 void *argp1 = 0 ;
31924 int res1 = 0 ;
31925 long val2 ;
31926 int ecode2 = 0 ;
31927 PyObject * obj0 = 0 ;
31928 PyObject * obj1 = 0 ;
31929 char * kwnames[] = {
31930 (char *) "self",(char *) "item", NULL
31931 };
31932
31933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
31934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31935 if (!SWIG_IsOK(res1)) {
31936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31937 }
31938 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31939 ecode2 = SWIG_AsVal_long(obj1, &val2);
31940 if (!SWIG_IsOK(ecode2)) {
31941 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31942 }
31943 arg2 = static_cast< long >(val2);
31944 {
31945 PyThreadState* __tstate = wxPyBeginAllowThreads();
31946 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
31947 wxPyEndAllowThreads(__tstate);
31948 if (PyErr_Occurred()) SWIG_fail;
31949 }
31950 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31951 return resultobj;
31952 fail:
31953 return NULL;
31954 }
31955
31956
31957 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31958 PyObject *resultobj = 0;
31959 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31960 long arg2 ;
31961 wxColour *arg3 = 0 ;
31962 void *argp1 = 0 ;
31963 int res1 = 0 ;
31964 long val2 ;
31965 int ecode2 = 0 ;
31966 wxColour temp3 ;
31967 PyObject * obj0 = 0 ;
31968 PyObject * obj1 = 0 ;
31969 PyObject * obj2 = 0 ;
31970 char * kwnames[] = {
31971 (char *) "self",(char *) "item",(char *) "col", NULL
31972 };
31973
31974 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31975 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31976 if (!SWIG_IsOK(res1)) {
31977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31978 }
31979 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31980 ecode2 = SWIG_AsVal_long(obj1, &val2);
31981 if (!SWIG_IsOK(ecode2)) {
31982 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31983 }
31984 arg2 = static_cast< long >(val2);
31985 {
31986 arg3 = &temp3;
31987 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31988 }
31989 {
31990 PyThreadState* __tstate = wxPyBeginAllowThreads();
31991 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
31992 wxPyEndAllowThreads(__tstate);
31993 if (PyErr_Occurred()) SWIG_fail;
31994 }
31995 resultobj = SWIG_Py_Void();
31996 return resultobj;
31997 fail:
31998 return NULL;
31999 }
32000
32001
32002 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32003 PyObject *resultobj = 0;
32004 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32005 long arg2 ;
32006 wxColour result;
32007 void *argp1 = 0 ;
32008 int res1 = 0 ;
32009 long val2 ;
32010 int ecode2 = 0 ;
32011 PyObject * obj0 = 0 ;
32012 PyObject * obj1 = 0 ;
32013 char * kwnames[] = {
32014 (char *) "self",(char *) "item", NULL
32015 };
32016
32017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
32018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32019 if (!SWIG_IsOK(res1)) {
32020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
32021 }
32022 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32023 ecode2 = SWIG_AsVal_long(obj1, &val2);
32024 if (!SWIG_IsOK(ecode2)) {
32025 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
32026 }
32027 arg2 = static_cast< long >(val2);
32028 {
32029 PyThreadState* __tstate = wxPyBeginAllowThreads();
32030 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
32031 wxPyEndAllowThreads(__tstate);
32032 if (PyErr_Occurred()) SWIG_fail;
32033 }
32034 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32035 return resultobj;
32036 fail:
32037 return NULL;
32038 }
32039
32040
32041 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32042 PyObject *resultobj = 0;
32043 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32044 long arg2 ;
32045 wxFont *arg3 = 0 ;
32046 void *argp1 = 0 ;
32047 int res1 = 0 ;
32048 long val2 ;
32049 int ecode2 = 0 ;
32050 void *argp3 = 0 ;
32051 int res3 = 0 ;
32052 PyObject * obj0 = 0 ;
32053 PyObject * obj1 = 0 ;
32054 PyObject * obj2 = 0 ;
32055 char * kwnames[] = {
32056 (char *) "self",(char *) "item",(char *) "f", NULL
32057 };
32058
32059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32061 if (!SWIG_IsOK(res1)) {
32062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
32063 }
32064 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32065 ecode2 = SWIG_AsVal_long(obj1, &val2);
32066 if (!SWIG_IsOK(ecode2)) {
32067 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemFont" "', expected argument " "2"" of type '" "long""'");
32068 }
32069 arg2 = static_cast< long >(val2);
32070 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
32071 if (!SWIG_IsOK(res3)) {
32072 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
32073 }
32074 if (!argp3) {
32075 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
32076 }
32077 arg3 = reinterpret_cast< wxFont * >(argp3);
32078 {
32079 PyThreadState* __tstate = wxPyBeginAllowThreads();
32080 (arg1)->SetItemFont(arg2,(wxFont const &)*arg3);
32081 wxPyEndAllowThreads(__tstate);
32082 if (PyErr_Occurred()) SWIG_fail;
32083 }
32084 resultobj = SWIG_Py_Void();
32085 return resultobj;
32086 fail:
32087 return NULL;
32088 }
32089
32090
32091 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32092 PyObject *resultobj = 0;
32093 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32094 long arg2 ;
32095 wxFont result;
32096 void *argp1 = 0 ;
32097 int res1 = 0 ;
32098 long val2 ;
32099 int ecode2 = 0 ;
32100 PyObject * obj0 = 0 ;
32101 PyObject * obj1 = 0 ;
32102 char * kwnames[] = {
32103 (char *) "self",(char *) "item", NULL
32104 };
32105
32106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
32107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32108 if (!SWIG_IsOK(res1)) {
32109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
32110 }
32111 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32112 ecode2 = SWIG_AsVal_long(obj1, &val2);
32113 if (!SWIG_IsOK(ecode2)) {
32114 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemFont" "', expected argument " "2"" of type '" "long""'");
32115 }
32116 arg2 = static_cast< long >(val2);
32117 {
32118 PyThreadState* __tstate = wxPyBeginAllowThreads();
32119 result = ((wxPyListCtrl const *)arg1)->GetItemFont(arg2);
32120 wxPyEndAllowThreads(__tstate);
32121 if (PyErr_Occurred()) SWIG_fail;
32122 }
32123 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
32124 return resultobj;
32125 fail:
32126 return NULL;
32127 }
32128
32129
32130 SWIGINTERN PyObject *_wrap_ListCtrl_SortItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32131 PyObject *resultobj = 0;
32132 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32133 PyObject *arg2 = (PyObject *) 0 ;
32134 bool result;
32135 void *argp1 = 0 ;
32136 int res1 = 0 ;
32137 PyObject * obj0 = 0 ;
32138 PyObject * obj1 = 0 ;
32139 char * kwnames[] = {
32140 (char *) "self",(char *) "func", NULL
32141 };
32142
32143 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) SWIG_fail;
32144 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32145 if (!SWIG_IsOK(res1)) {
32146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SortItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
32147 }
32148 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32149 arg2 = obj1;
32150 {
32151 PyThreadState* __tstate = wxPyBeginAllowThreads();
32152 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
32153 wxPyEndAllowThreads(__tstate);
32154 if (PyErr_Occurred()) SWIG_fail;
32155 }
32156 {
32157 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32158 }
32159 return resultobj;
32160 fail:
32161 return NULL;
32162 }
32163
32164
32165 SWIGINTERN PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32166 PyObject *resultobj = 0;
32167 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32168 wxWindow *result = 0 ;
32169 void *argp1 = 0 ;
32170 int res1 = 0 ;
32171 PyObject *swig_obj[1] ;
32172
32173 if (!args) SWIG_fail;
32174 swig_obj[0] = args;
32175 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32176 if (!SWIG_IsOK(res1)) {
32177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetMainWindow" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
32178 }
32179 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32180 {
32181 PyThreadState* __tstate = wxPyBeginAllowThreads();
32182 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
32183 wxPyEndAllowThreads(__tstate);
32184 if (PyErr_Occurred()) SWIG_fail;
32185 }
32186 {
32187 resultobj = wxPyMake_wxObject(result, 0);
32188 }
32189 return resultobj;
32190 fail:
32191 return NULL;
32192 }
32193
32194
32195 SWIGINTERN PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32196 PyObject *resultobj = 0;
32197 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
32198 SwigValueWrapper<wxVisualAttributes > result;
32199 int val1 ;
32200 int ecode1 = 0 ;
32201 PyObject * obj0 = 0 ;
32202 char * kwnames[] = {
32203 (char *) "variant", NULL
32204 };
32205
32206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
32207 if (obj0) {
32208 ecode1 = SWIG_AsVal_int(obj0, &val1);
32209 if (!SWIG_IsOK(ecode1)) {
32210 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
32211 }
32212 arg1 = static_cast< wxWindowVariant >(val1);
32213 }
32214 {
32215 if (!wxPyCheckForApp()) SWIG_fail;
32216 PyThreadState* __tstate = wxPyBeginAllowThreads();
32217 result = wxPyListCtrl::GetClassDefaultAttributes(arg1);
32218 wxPyEndAllowThreads(__tstate);
32219 if (PyErr_Occurred()) SWIG_fail;
32220 }
32221 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
32222 return resultobj;
32223 fail:
32224 return NULL;
32225 }
32226
32227
32228 SWIGINTERN PyObject *ListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32229 PyObject *obj;
32230 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32231 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyListCtrl, SWIG_NewClientData(obj));
32232 return SWIG_Py_Void();
32233 }
32234
32235 SWIGINTERN PyObject *ListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32236 return SWIG_Python_InitShadowInstance(args);
32237 }
32238
32239 SWIGINTERN PyObject *_wrap_new_ListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32240 PyObject *resultobj = 0;
32241 wxWindow *arg1 = (wxWindow *) 0 ;
32242 int arg2 = (int) -1 ;
32243 wxPoint const &arg3_defvalue = wxDefaultPosition ;
32244 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
32245 wxSize const &arg4_defvalue = wxDefaultSize ;
32246 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
32247 long arg5 = (long) wxLC_REPORT ;
32248 wxValidator const &arg6_defvalue = wxDefaultValidator ;
32249 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
32250 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
32251 wxString *arg7 = (wxString *) &arg7_defvalue ;
32252 wxListView *result = 0 ;
32253 void *argp1 = 0 ;
32254 int res1 = 0 ;
32255 int val2 ;
32256 int ecode2 = 0 ;
32257 wxPoint temp3 ;
32258 wxSize temp4 ;
32259 long val5 ;
32260 int ecode5 = 0 ;
32261 void *argp6 = 0 ;
32262 int res6 = 0 ;
32263 bool temp7 = false ;
32264 PyObject * obj0 = 0 ;
32265 PyObject * obj1 = 0 ;
32266 PyObject * obj2 = 0 ;
32267 PyObject * obj3 = 0 ;
32268 PyObject * obj4 = 0 ;
32269 PyObject * obj5 = 0 ;
32270 PyObject * obj6 = 0 ;
32271 char * kwnames[] = {
32272 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
32273 };
32274
32275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
32277 if (!SWIG_IsOK(res1)) {
32278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListView" "', expected argument " "1"" of type '" "wxWindow *""'");
32279 }
32280 arg1 = reinterpret_cast< wxWindow * >(argp1);
32281 if (obj1) {
32282 ecode2 = SWIG_AsVal_int(obj1, &val2);
32283 if (!SWIG_IsOK(ecode2)) {
32284 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListView" "', expected argument " "2"" of type '" "int""'");
32285 }
32286 arg2 = static_cast< int >(val2);
32287 }
32288 if (obj2) {
32289 {
32290 arg3 = &temp3;
32291 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
32292 }
32293 }
32294 if (obj3) {
32295 {
32296 arg4 = &temp4;
32297 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
32298 }
32299 }
32300 if (obj4) {
32301 ecode5 = SWIG_AsVal_long(obj4, &val5);
32302 if (!SWIG_IsOK(ecode5)) {
32303 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListView" "', expected argument " "5"" of type '" "long""'");
32304 }
32305 arg5 = static_cast< long >(val5);
32306 }
32307 if (obj5) {
32308 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
32309 if (!SWIG_IsOK(res6)) {
32310 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
32311 }
32312 if (!argp6) {
32313 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
32314 }
32315 arg6 = reinterpret_cast< wxValidator * >(argp6);
32316 }
32317 if (obj6) {
32318 {
32319 arg7 = wxString_in_helper(obj6);
32320 if (arg7 == NULL) SWIG_fail;
32321 temp7 = true;
32322 }
32323 }
32324 {
32325 if (!wxPyCheckForApp()) SWIG_fail;
32326 PyThreadState* __tstate = wxPyBeginAllowThreads();
32327 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
32328 wxPyEndAllowThreads(__tstate);
32329 if (PyErr_Occurred()) SWIG_fail;
32330 }
32331 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_NEW | 0 );
32332 {
32333 if (temp7)
32334 delete arg7;
32335 }
32336 return resultobj;
32337 fail:
32338 {
32339 if (temp7)
32340 delete arg7;
32341 }
32342 return NULL;
32343 }
32344
32345
32346 SWIGINTERN PyObject *_wrap_new_PreListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32347 PyObject *resultobj = 0;
32348 wxListView *result = 0 ;
32349
32350 if (!SWIG_Python_UnpackTuple(args,"new_PreListView",0,0,0)) SWIG_fail;
32351 {
32352 if (!wxPyCheckForApp()) SWIG_fail;
32353 PyThreadState* __tstate = wxPyBeginAllowThreads();
32354 result = (wxListView *)new wxListView();
32355 wxPyEndAllowThreads(__tstate);
32356 if (PyErr_Occurred()) SWIG_fail;
32357 }
32358 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_OWN | 0 );
32359 return resultobj;
32360 fail:
32361 return NULL;
32362 }
32363
32364
32365 SWIGINTERN PyObject *_wrap_ListView_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32366 PyObject *resultobj = 0;
32367 wxListView *arg1 = (wxListView *) 0 ;
32368 wxWindow *arg2 = (wxWindow *) 0 ;
32369 int arg3 = (int) -1 ;
32370 wxPoint const &arg4_defvalue = wxDefaultPosition ;
32371 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
32372 wxSize const &arg5_defvalue = wxDefaultSize ;
32373 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
32374 long arg6 = (long) wxLC_REPORT ;
32375 wxValidator const &arg7_defvalue = wxDefaultValidator ;
32376 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
32377 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
32378 wxString *arg8 = (wxString *) &arg8_defvalue ;
32379 bool result;
32380 void *argp1 = 0 ;
32381 int res1 = 0 ;
32382 void *argp2 = 0 ;
32383 int res2 = 0 ;
32384 int val3 ;
32385 int ecode3 = 0 ;
32386 wxPoint temp4 ;
32387 wxSize temp5 ;
32388 long val6 ;
32389 int ecode6 = 0 ;
32390 void *argp7 = 0 ;
32391 int res7 = 0 ;
32392 bool temp8 = false ;
32393 PyObject * obj0 = 0 ;
32394 PyObject * obj1 = 0 ;
32395 PyObject * obj2 = 0 ;
32396 PyObject * obj3 = 0 ;
32397 PyObject * obj4 = 0 ;
32398 PyObject * obj5 = 0 ;
32399 PyObject * obj6 = 0 ;
32400 PyObject * obj7 = 0 ;
32401 char * kwnames[] = {
32402 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
32403 };
32404
32405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
32406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32407 if (!SWIG_IsOK(res1)) {
32408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Create" "', expected argument " "1"" of type '" "wxListView *""'");
32409 }
32410 arg1 = reinterpret_cast< wxListView * >(argp1);
32411 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
32412 if (!SWIG_IsOK(res2)) {
32413 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListView_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
32414 }
32415 arg2 = reinterpret_cast< wxWindow * >(argp2);
32416 if (obj2) {
32417 ecode3 = SWIG_AsVal_int(obj2, &val3);
32418 if (!SWIG_IsOK(ecode3)) {
32419 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Create" "', expected argument " "3"" of type '" "int""'");
32420 }
32421 arg3 = static_cast< int >(val3);
32422 }
32423 if (obj3) {
32424 {
32425 arg4 = &temp4;
32426 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
32427 }
32428 }
32429 if (obj4) {
32430 {
32431 arg5 = &temp5;
32432 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
32433 }
32434 }
32435 if (obj5) {
32436 ecode6 = SWIG_AsVal_long(obj5, &val6);
32437 if (!SWIG_IsOK(ecode6)) {
32438 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListView_Create" "', expected argument " "6"" of type '" "long""'");
32439 }
32440 arg6 = static_cast< long >(val6);
32441 }
32442 if (obj6) {
32443 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
32444 if (!SWIG_IsOK(res7)) {
32445 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
32446 }
32447 if (!argp7) {
32448 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
32449 }
32450 arg7 = reinterpret_cast< wxValidator * >(argp7);
32451 }
32452 if (obj7) {
32453 {
32454 arg8 = wxString_in_helper(obj7);
32455 if (arg8 == NULL) SWIG_fail;
32456 temp8 = true;
32457 }
32458 }
32459 {
32460 PyThreadState* __tstate = wxPyBeginAllowThreads();
32461 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
32462 wxPyEndAllowThreads(__tstate);
32463 if (PyErr_Occurred()) SWIG_fail;
32464 }
32465 {
32466 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32467 }
32468 {
32469 if (temp8)
32470 delete arg8;
32471 }
32472 return resultobj;
32473 fail:
32474 {
32475 if (temp8)
32476 delete arg8;
32477 }
32478 return NULL;
32479 }
32480
32481
32482 SWIGINTERN PyObject *_wrap_ListView_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32483 PyObject *resultobj = 0;
32484 wxListView *arg1 = (wxListView *) 0 ;
32485 long arg2 ;
32486 bool arg3 = (bool) true ;
32487 void *argp1 = 0 ;
32488 int res1 = 0 ;
32489 long val2 ;
32490 int ecode2 = 0 ;
32491 bool val3 ;
32492 int ecode3 = 0 ;
32493 PyObject * obj0 = 0 ;
32494 PyObject * obj1 = 0 ;
32495 PyObject * obj2 = 0 ;
32496 char * kwnames[] = {
32497 (char *) "self",(char *) "n",(char *) "on", NULL
32498 };
32499
32500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32502 if (!SWIG_IsOK(res1)) {
32503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Select" "', expected argument " "1"" of type '" "wxListView *""'");
32504 }
32505 arg1 = reinterpret_cast< wxListView * >(argp1);
32506 ecode2 = SWIG_AsVal_long(obj1, &val2);
32507 if (!SWIG_IsOK(ecode2)) {
32508 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Select" "', expected argument " "2"" of type '" "long""'");
32509 }
32510 arg2 = static_cast< long >(val2);
32511 if (obj2) {
32512 ecode3 = SWIG_AsVal_bool(obj2, &val3);
32513 if (!SWIG_IsOK(ecode3)) {
32514 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Select" "', expected argument " "3"" of type '" "bool""'");
32515 }
32516 arg3 = static_cast< bool >(val3);
32517 }
32518 {
32519 PyThreadState* __tstate = wxPyBeginAllowThreads();
32520 (arg1)->Select(arg2,arg3);
32521 wxPyEndAllowThreads(__tstate);
32522 if (PyErr_Occurred()) SWIG_fail;
32523 }
32524 resultobj = SWIG_Py_Void();
32525 return resultobj;
32526 fail:
32527 return NULL;
32528 }
32529
32530
32531 SWIGINTERN PyObject *_wrap_ListView_Focus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32532 PyObject *resultobj = 0;
32533 wxListView *arg1 = (wxListView *) 0 ;
32534 long arg2 ;
32535 void *argp1 = 0 ;
32536 int res1 = 0 ;
32537 long val2 ;
32538 int ecode2 = 0 ;
32539 PyObject * obj0 = 0 ;
32540 PyObject * obj1 = 0 ;
32541 char * kwnames[] = {
32542 (char *) "self",(char *) "index", NULL
32543 };
32544
32545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) SWIG_fail;
32546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32547 if (!SWIG_IsOK(res1)) {
32548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Focus" "', expected argument " "1"" of type '" "wxListView *""'");
32549 }
32550 arg1 = reinterpret_cast< wxListView * >(argp1);
32551 ecode2 = SWIG_AsVal_long(obj1, &val2);
32552 if (!SWIG_IsOK(ecode2)) {
32553 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Focus" "', expected argument " "2"" of type '" "long""'");
32554 }
32555 arg2 = static_cast< long >(val2);
32556 {
32557 PyThreadState* __tstate = wxPyBeginAllowThreads();
32558 (arg1)->Focus(arg2);
32559 wxPyEndAllowThreads(__tstate);
32560 if (PyErr_Occurred()) SWIG_fail;
32561 }
32562 resultobj = SWIG_Py_Void();
32563 return resultobj;
32564 fail:
32565 return NULL;
32566 }
32567
32568
32569 SWIGINTERN PyObject *_wrap_ListView_GetFocusedItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32570 PyObject *resultobj = 0;
32571 wxListView *arg1 = (wxListView *) 0 ;
32572 long result;
32573 void *argp1 = 0 ;
32574 int res1 = 0 ;
32575 PyObject *swig_obj[1] ;
32576
32577 if (!args) SWIG_fail;
32578 swig_obj[0] = args;
32579 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32580 if (!SWIG_IsOK(res1)) {
32581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFocusedItem" "', expected argument " "1"" of type '" "wxListView const *""'");
32582 }
32583 arg1 = reinterpret_cast< wxListView * >(argp1);
32584 {
32585 PyThreadState* __tstate = wxPyBeginAllowThreads();
32586 result = (long)((wxListView const *)arg1)->GetFocusedItem();
32587 wxPyEndAllowThreads(__tstate);
32588 if (PyErr_Occurred()) SWIG_fail;
32589 }
32590 resultobj = SWIG_From_long(static_cast< long >(result));
32591 return resultobj;
32592 fail:
32593 return NULL;
32594 }
32595
32596
32597 SWIGINTERN PyObject *_wrap_ListView_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32598 PyObject *resultobj = 0;
32599 wxListView *arg1 = (wxListView *) 0 ;
32600 long arg2 ;
32601 long result;
32602 void *argp1 = 0 ;
32603 int res1 = 0 ;
32604 long val2 ;
32605 int ecode2 = 0 ;
32606 PyObject * obj0 = 0 ;
32607 PyObject * obj1 = 0 ;
32608 char * kwnames[] = {
32609 (char *) "self",(char *) "item", NULL
32610 };
32611
32612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32614 if (!SWIG_IsOK(res1)) {
32615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetNextSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32616 }
32617 arg1 = reinterpret_cast< wxListView * >(argp1);
32618 ecode2 = SWIG_AsVal_long(obj1, &val2);
32619 if (!SWIG_IsOK(ecode2)) {
32620 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_GetNextSelected" "', expected argument " "2"" of type '" "long""'");
32621 }
32622 arg2 = static_cast< long >(val2);
32623 {
32624 PyThreadState* __tstate = wxPyBeginAllowThreads();
32625 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
32626 wxPyEndAllowThreads(__tstate);
32627 if (PyErr_Occurred()) SWIG_fail;
32628 }
32629 resultobj = SWIG_From_long(static_cast< long >(result));
32630 return resultobj;
32631 fail:
32632 return NULL;
32633 }
32634
32635
32636 SWIGINTERN PyObject *_wrap_ListView_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32637 PyObject *resultobj = 0;
32638 wxListView *arg1 = (wxListView *) 0 ;
32639 long result;
32640 void *argp1 = 0 ;
32641 int res1 = 0 ;
32642 PyObject *swig_obj[1] ;
32643
32644 if (!args) SWIG_fail;
32645 swig_obj[0] = args;
32646 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32647 if (!SWIG_IsOK(res1)) {
32648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFirstSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32649 }
32650 arg1 = reinterpret_cast< wxListView * >(argp1);
32651 {
32652 PyThreadState* __tstate = wxPyBeginAllowThreads();
32653 result = (long)((wxListView const *)arg1)->GetFirstSelected();
32654 wxPyEndAllowThreads(__tstate);
32655 if (PyErr_Occurred()) SWIG_fail;
32656 }
32657 resultobj = SWIG_From_long(static_cast< long >(result));
32658 return resultobj;
32659 fail:
32660 return NULL;
32661 }
32662
32663
32664 SWIGINTERN PyObject *_wrap_ListView_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32665 PyObject *resultobj = 0;
32666 wxListView *arg1 = (wxListView *) 0 ;
32667 long arg2 ;
32668 bool result;
32669 void *argp1 = 0 ;
32670 int res1 = 0 ;
32671 long val2 ;
32672 int ecode2 = 0 ;
32673 PyObject * obj0 = 0 ;
32674 PyObject * obj1 = 0 ;
32675 char * kwnames[] = {
32676 (char *) "self",(char *) "index", NULL
32677 };
32678
32679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32681 if (!SWIG_IsOK(res1)) {
32682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_IsSelected" "', expected argument " "1"" of type '" "wxListView *""'");
32683 }
32684 arg1 = reinterpret_cast< wxListView * >(argp1);
32685 ecode2 = SWIG_AsVal_long(obj1, &val2);
32686 if (!SWIG_IsOK(ecode2)) {
32687 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_IsSelected" "', expected argument " "2"" of type '" "long""'");
32688 }
32689 arg2 = static_cast< long >(val2);
32690 {
32691 PyThreadState* __tstate = wxPyBeginAllowThreads();
32692 result = (bool)(arg1)->IsSelected(arg2);
32693 wxPyEndAllowThreads(__tstate);
32694 if (PyErr_Occurred()) SWIG_fail;
32695 }
32696 {
32697 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32698 }
32699 return resultobj;
32700 fail:
32701 return NULL;
32702 }
32703
32704
32705 SWIGINTERN PyObject *_wrap_ListView_SetColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32706 PyObject *resultobj = 0;
32707 wxListView *arg1 = (wxListView *) 0 ;
32708 int arg2 ;
32709 int arg3 ;
32710 void *argp1 = 0 ;
32711 int res1 = 0 ;
32712 int val2 ;
32713 int ecode2 = 0 ;
32714 int val3 ;
32715 int ecode3 = 0 ;
32716 PyObject * obj0 = 0 ;
32717 PyObject * obj1 = 0 ;
32718 PyObject * obj2 = 0 ;
32719 char * kwnames[] = {
32720 (char *) "self",(char *) "col",(char *) "image", NULL
32721 };
32722
32723 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32724 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32725 if (!SWIG_IsOK(res1)) {
32726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_SetColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32727 }
32728 arg1 = reinterpret_cast< wxListView * >(argp1);
32729 ecode2 = SWIG_AsVal_int(obj1, &val2);
32730 if (!SWIG_IsOK(ecode2)) {
32731 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_SetColumnImage" "', expected argument " "2"" of type '" "int""'");
32732 }
32733 arg2 = static_cast< int >(val2);
32734 ecode3 = SWIG_AsVal_int(obj2, &val3);
32735 if (!SWIG_IsOK(ecode3)) {
32736 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_SetColumnImage" "', expected argument " "3"" of type '" "int""'");
32737 }
32738 arg3 = static_cast< int >(val3);
32739 {
32740 PyThreadState* __tstate = wxPyBeginAllowThreads();
32741 (arg1)->SetColumnImage(arg2,arg3);
32742 wxPyEndAllowThreads(__tstate);
32743 if (PyErr_Occurred()) SWIG_fail;
32744 }
32745 resultobj = SWIG_Py_Void();
32746 return resultobj;
32747 fail:
32748 return NULL;
32749 }
32750
32751
32752 SWIGINTERN PyObject *_wrap_ListView_ClearColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32753 PyObject *resultobj = 0;
32754 wxListView *arg1 = (wxListView *) 0 ;
32755 int arg2 ;
32756 void *argp1 = 0 ;
32757 int res1 = 0 ;
32758 int val2 ;
32759 int ecode2 = 0 ;
32760 PyObject * obj0 = 0 ;
32761 PyObject * obj1 = 0 ;
32762 char * kwnames[] = {
32763 (char *) "self",(char *) "col", NULL
32764 };
32765
32766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) SWIG_fail;
32767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32768 if (!SWIG_IsOK(res1)) {
32769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_ClearColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32770 }
32771 arg1 = reinterpret_cast< wxListView * >(argp1);
32772 ecode2 = SWIG_AsVal_int(obj1, &val2);
32773 if (!SWIG_IsOK(ecode2)) {
32774 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_ClearColumnImage" "', expected argument " "2"" of type '" "int""'");
32775 }
32776 arg2 = static_cast< int >(val2);
32777 {
32778 PyThreadState* __tstate = wxPyBeginAllowThreads();
32779 (arg1)->ClearColumnImage(arg2);
32780 wxPyEndAllowThreads(__tstate);
32781 if (PyErr_Occurred()) SWIG_fail;
32782 }
32783 resultobj = SWIG_Py_Void();
32784 return resultobj;
32785 fail:
32786 return NULL;
32787 }
32788
32789
32790 SWIGINTERN PyObject *ListView_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32791 PyObject *obj;
32792 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32793 SWIG_TypeNewClientData(SWIGTYPE_p_wxListView, SWIG_NewClientData(obj));
32794 return SWIG_Py_Void();
32795 }
32796
32797 SWIGINTERN PyObject *ListView_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32798 return SWIG_Python_InitShadowInstance(args);
32799 }
32800
32801 SWIGINTERN int TreeCtrlNameStr_set(PyObject *) {
32802 SWIG_Error(SWIG_AttributeError,"Variable TreeCtrlNameStr is read-only.");
32803 return 1;
32804 }
32805
32806
32807 SWIGINTERN PyObject *TreeCtrlNameStr_get(void) {
32808 PyObject *pyobj = 0;
32809
32810 {
32811 #if wxUSE_UNICODE
32812 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32813 #else
32814 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32815 #endif
32816 }
32817 return pyobj;
32818 }
32819
32820
32821 SWIGINTERN PyObject *_wrap_new_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32822 PyObject *resultobj = 0;
32823 wxTreeItemId *result = 0 ;
32824
32825 if (!SWIG_Python_UnpackTuple(args,"new_TreeItemId",0,0,0)) SWIG_fail;
32826 {
32827 PyThreadState* __tstate = wxPyBeginAllowThreads();
32828 result = (wxTreeItemId *)new wxTreeItemId();
32829 wxPyEndAllowThreads(__tstate);
32830 if (PyErr_Occurred()) SWIG_fail;
32831 }
32832 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_NEW | 0 );
32833 return resultobj;
32834 fail:
32835 return NULL;
32836 }
32837
32838
32839 SWIGINTERN PyObject *_wrap_delete_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32840 PyObject *resultobj = 0;
32841 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32842 void *argp1 = 0 ;
32843 int res1 = 0 ;
32844 PyObject *swig_obj[1] ;
32845
32846 if (!args) SWIG_fail;
32847 swig_obj[0] = args;
32848 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_DISOWN | 0 );
32849 if (!SWIG_IsOK(res1)) {
32850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemId" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32851 }
32852 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32853 {
32854 PyThreadState* __tstate = wxPyBeginAllowThreads();
32855 delete arg1;
32856
32857 wxPyEndAllowThreads(__tstate);
32858 if (PyErr_Occurred()) SWIG_fail;
32859 }
32860 resultobj = SWIG_Py_Void();
32861 return resultobj;
32862 fail:
32863 return NULL;
32864 }
32865
32866
32867 SWIGINTERN PyObject *_wrap_TreeItemId_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32868 PyObject *resultobj = 0;
32869 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32870 bool result;
32871 void *argp1 = 0 ;
32872 int res1 = 0 ;
32873 PyObject *swig_obj[1] ;
32874
32875 if (!args) SWIG_fail;
32876 swig_obj[0] = args;
32877 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32878 if (!SWIG_IsOK(res1)) {
32879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_IsOk" "', expected argument " "1"" of type '" "wxTreeItemId const *""'");
32880 }
32881 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32882 {
32883 PyThreadState* __tstate = wxPyBeginAllowThreads();
32884 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
32885 wxPyEndAllowThreads(__tstate);
32886 if (PyErr_Occurred()) SWIG_fail;
32887 }
32888 {
32889 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32890 }
32891 return resultobj;
32892 fail:
32893 return NULL;
32894 }
32895
32896
32897 SWIGINTERN PyObject *_wrap_TreeItemId___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32898 PyObject *resultobj = 0;
32899 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32900 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32901 bool result;
32902 void *argp1 = 0 ;
32903 int res1 = 0 ;
32904 void *argp2 = 0 ;
32905 int res2 = 0 ;
32906 PyObject * obj0 = 0 ;
32907 PyObject * obj1 = 0 ;
32908 char * kwnames[] = {
32909 (char *) "self",(char *) "other", NULL
32910 };
32911
32912 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
32913 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32914 if (!SWIG_IsOK(res1)) {
32915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___eq__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32916 }
32917 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32918 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32919 if (!SWIG_IsOK(res2)) {
32920 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___eq__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32921 }
32922 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32923 {
32924 PyThreadState* __tstate = wxPyBeginAllowThreads();
32925 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
32926 wxPyEndAllowThreads(__tstate);
32927 if (PyErr_Occurred()) SWIG_fail;
32928 }
32929 {
32930 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32931 }
32932 return resultobj;
32933 fail:
32934 return NULL;
32935 }
32936
32937
32938 SWIGINTERN PyObject *_wrap_TreeItemId___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32939 PyObject *resultobj = 0;
32940 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32941 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32942 bool result;
32943 void *argp1 = 0 ;
32944 int res1 = 0 ;
32945 void *argp2 = 0 ;
32946 int res2 = 0 ;
32947 PyObject * obj0 = 0 ;
32948 PyObject * obj1 = 0 ;
32949 char * kwnames[] = {
32950 (char *) "self",(char *) "other", NULL
32951 };
32952
32953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
32954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32955 if (!SWIG_IsOK(res1)) {
32956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___ne__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32957 }
32958 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32959 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32960 if (!SWIG_IsOK(res2)) {
32961 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___ne__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32962 }
32963 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32964 {
32965 PyThreadState* __tstate = wxPyBeginAllowThreads();
32966 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
32967 wxPyEndAllowThreads(__tstate);
32968 if (PyErr_Occurred()) SWIG_fail;
32969 }
32970 {
32971 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32972 }
32973 return resultobj;
32974 fail:
32975 return NULL;
32976 }
32977
32978
32979 SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32980 PyObject *resultobj = 0;
32981 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32982 void *arg2 = (void *) 0 ;
32983 void *argp1 = 0 ;
32984 int res1 = 0 ;
32985 int res2 ;
32986 PyObject *swig_obj[2] ;
32987
32988 if (!SWIG_Python_UnpackTuple(args,"TreeItemId_m_pItem_set",2,2,swig_obj)) SWIG_fail;
32989 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32990 if (!SWIG_IsOK(res1)) {
32991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32992 }
32993 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32994 res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
32995 if (!SWIG_IsOK(res2)) {
32996 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "2"" of type '" "void *""'");
32997 }
32998 if (arg1) (arg1)->m_pItem = arg2;
32999
33000 resultobj = SWIG_Py_Void();
33001 return resultobj;
33002 fail:
33003 return NULL;
33004 }
33005
33006
33007 SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33008 PyObject *resultobj = 0;
33009 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
33010 void *result = 0 ;
33011 void *argp1 = 0 ;
33012 int res1 = 0 ;
33013 PyObject *swig_obj[1] ;
33014
33015 if (!args) SWIG_fail;
33016 swig_obj[0] = args;
33017 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
33018 if (!SWIG_IsOK(res1)) {
33019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_get" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
33020 }
33021 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
33022 result = (void *) ((arg1)->m_pItem);
33023 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
33024 return resultobj;
33025 fail:
33026 return NULL;
33027 }
33028
33029
33030 SWIGINTERN PyObject *TreeItemId_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33031 PyObject *obj;
33032 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33033 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeItemId, SWIG_NewClientData(obj));
33034 return SWIG_Py_Void();
33035 }
33036
33037 SWIGINTERN PyObject *TreeItemId_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33038 return SWIG_Python_InitShadowInstance(args);
33039 }
33040
33041 SWIGINTERN PyObject *_wrap_new_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33042 PyObject *resultobj = 0;
33043 PyObject *arg1 = (PyObject *) NULL ;
33044 wxPyTreeItemData *result = 0 ;
33045 PyObject * obj0 = 0 ;
33046 char * kwnames[] = {
33047 (char *) "obj", NULL
33048 };
33049
33050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) SWIG_fail;
33051 if (obj0) {
33052 arg1 = obj0;
33053 }
33054 {
33055 PyThreadState* __tstate = wxPyBeginAllowThreads();
33056 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
33057 wxPyEndAllowThreads(__tstate);
33058 if (PyErr_Occurred()) SWIG_fail;
33059 }
33060 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_NEW | 0 );
33061 return resultobj;
33062 fail:
33063 return NULL;
33064 }
33065
33066
33067 SWIGINTERN PyObject *_wrap_delete_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33068 PyObject *resultobj = 0;
33069 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33070 void *argp1 = 0 ;
33071 int res1 = 0 ;
33072 PyObject *swig_obj[1] ;
33073
33074 if (!args) SWIG_fail;
33075 swig_obj[0] = args;
33076 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
33077 if (!SWIG_IsOK(res1)) {
33078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33079 }
33080 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33081 {
33082 PyThreadState* __tstate = wxPyBeginAllowThreads();
33083 delete arg1;
33084
33085 wxPyEndAllowThreads(__tstate);
33086 if (PyErr_Occurred()) SWIG_fail;
33087 }
33088 resultobj = SWIG_Py_Void();
33089 return resultobj;
33090 fail:
33091 return NULL;
33092 }
33093
33094
33095 SWIGINTERN PyObject *_wrap_TreeItemData_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33096 PyObject *resultobj = 0;
33097 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33098 PyObject *result = 0 ;
33099 void *argp1 = 0 ;
33100 int res1 = 0 ;
33101 PyObject *swig_obj[1] ;
33102
33103 if (!args) SWIG_fail;
33104 swig_obj[0] = args;
33105 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33106 if (!SWIG_IsOK(res1)) {
33107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33108 }
33109 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33110 {
33111 PyThreadState* __tstate = wxPyBeginAllowThreads();
33112 result = (PyObject *)(arg1)->GetData();
33113 wxPyEndAllowThreads(__tstate);
33114 if (PyErr_Occurred()) SWIG_fail;
33115 }
33116 resultobj = result;
33117 return resultobj;
33118 fail:
33119 return NULL;
33120 }
33121
33122
33123 SWIGINTERN PyObject *_wrap_TreeItemData_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33124 PyObject *resultobj = 0;
33125 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33126 PyObject *arg2 = (PyObject *) 0 ;
33127 void *argp1 = 0 ;
33128 int res1 = 0 ;
33129 PyObject * obj0 = 0 ;
33130 PyObject * obj1 = 0 ;
33131 char * kwnames[] = {
33132 (char *) "self",(char *) "obj", NULL
33133 };
33134
33135 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
33136 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33137 if (!SWIG_IsOK(res1)) {
33138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33139 }
33140 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33141 arg2 = obj1;
33142 {
33143 PyThreadState* __tstate = wxPyBeginAllowThreads();
33144 (arg1)->SetData(arg2);
33145 wxPyEndAllowThreads(__tstate);
33146 if (PyErr_Occurred()) SWIG_fail;
33147 }
33148 resultobj = SWIG_Py_Void();
33149 return resultobj;
33150 fail:
33151 return NULL;
33152 }
33153
33154
33155 SWIGINTERN PyObject *_wrap_TreeItemData_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33156 PyObject *resultobj = 0;
33157 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33158 wxTreeItemId *result = 0 ;
33159 void *argp1 = 0 ;
33160 int res1 = 0 ;
33161 PyObject *swig_obj[1] ;
33162
33163 if (!args) SWIG_fail;
33164 swig_obj[0] = args;
33165 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33166 if (!SWIG_IsOK(res1)) {
33167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33168 }
33169 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33170 {
33171 PyThreadState* __tstate = wxPyBeginAllowThreads();
33172 {
33173 wxTreeItemId const &_result_ref = (arg1)->GetId();
33174 result = (wxTreeItemId *) &_result_ref;
33175 }
33176 wxPyEndAllowThreads(__tstate);
33177 if (PyErr_Occurred()) SWIG_fail;
33178 }
33179 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, 0 | 0 );
33180 return resultobj;
33181 fail:
33182 return NULL;
33183 }
33184
33185
33186 SWIGINTERN PyObject *_wrap_TreeItemData_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33187 PyObject *resultobj = 0;
33188 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33189 wxTreeItemId *arg2 = 0 ;
33190 void *argp1 = 0 ;
33191 int res1 = 0 ;
33192 void *argp2 = 0 ;
33193 int res2 = 0 ;
33194 PyObject * obj0 = 0 ;
33195 PyObject * obj1 = 0 ;
33196 char * kwnames[] = {
33197 (char *) "self",(char *) "id", NULL
33198 };
33199
33200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
33201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33202 if (!SWIG_IsOK(res1)) {
33203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33204 }
33205 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33206 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33207 if (!SWIG_IsOK(res2)) {
33208 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33209 }
33210 if (!argp2) {
33211 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33212 }
33213 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33214 {
33215 PyThreadState* __tstate = wxPyBeginAllowThreads();
33216 (arg1)->SetId((wxTreeItemId const &)*arg2);
33217 wxPyEndAllowThreads(__tstate);
33218 if (PyErr_Occurred()) SWIG_fail;
33219 }
33220 resultobj = SWIG_Py_Void();
33221 return resultobj;
33222 fail:
33223 return NULL;
33224 }
33225
33226
33227 SWIGINTERN PyObject *_wrap_TreeItemData_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33228 PyObject *resultobj = 0;
33229 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33230 void *argp1 = 0 ;
33231 int res1 = 0 ;
33232 PyObject *swig_obj[1] ;
33233
33234 if (!args) SWIG_fail;
33235 swig_obj[0] = args;
33236 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33237 if (!SWIG_IsOK(res1)) {
33238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_Destroy" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33239 }
33240 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33241 {
33242 PyThreadState* __tstate = wxPyBeginAllowThreads();
33243 wxPyTreeItemData_Destroy(arg1);
33244 wxPyEndAllowThreads(__tstate);
33245 if (PyErr_Occurred()) SWIG_fail;
33246 }
33247 resultobj = SWIG_Py_Void();
33248 return resultobj;
33249 fail:
33250 return NULL;
33251 }
33252
33253
33254 SWIGINTERN PyObject *TreeItemData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33255 PyObject *obj;
33256 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33257 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeItemData, SWIG_NewClientData(obj));
33258 return SWIG_Py_Void();
33259 }
33260
33261 SWIGINTERN PyObject *TreeItemData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33262 return SWIG_Python_InitShadowInstance(args);
33263 }
33264
33265 SWIGINTERN int NullTreeItemId_set(PyObject *_val) {
33266 {
33267 void *argp = 0;
33268 int res = SWIG_ConvertPtr(_val, &argp, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33269 if (!SWIG_IsOK(res)) {
33270 SWIG_exception_fail(SWIG_ArgError(res), "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
33271 }
33272 if (!argp) {
33273 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
33274 } else {
33275 wxTreeItemId * temp;
33276 temp = reinterpret_cast< wxTreeItemId * >(argp);
33277 wxNullTreeItemId = *temp;
33278 if (SWIG_IsNewObj(res)) delete temp;
33279 }
33280 }
33281 return 0;
33282 fail:
33283 return 1;
33284 }
33285
33286
33287 SWIGINTERN PyObject *NullTreeItemId_get(void) {
33288 PyObject *pyobj = 0;
33289
33290 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullTreeItemId), SWIGTYPE_p_wxTreeItemId, 0 );
33291 return pyobj;
33292 }
33293
33294
33295 SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
33296 PyObject *resultobj = 0;
33297 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
33298 int arg2 = (int) 0 ;
33299 wxTreeEvent *result = 0 ;
33300 int val1 ;
33301 int ecode1 = 0 ;
33302 int val2 ;
33303 int ecode2 = 0 ;
33304
33305 if ((nobjs < 0) || (nobjs > 2)) SWIG_fail;
33306 if (swig_obj[0]) {
33307 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
33308 if (!SWIG_IsOK(ecode1)) {
33309 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
33310 }
33311 arg1 = static_cast< wxEventType >(val1);
33312 }
33313 if (swig_obj[1]) {
33314 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
33315 if (!SWIG_IsOK(ecode2)) {
33316 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "int""'");
33317 }
33318 arg2 = static_cast< int >(val2);
33319 }
33320 {
33321 PyThreadState* __tstate = wxPyBeginAllowThreads();
33322 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
33323 wxPyEndAllowThreads(__tstate);
33324 if (PyErr_Occurred()) SWIG_fail;
33325 }
33326 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
33327 return resultobj;
33328 fail:
33329 return NULL;
33330 }
33331
33332
33333 SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
33334 PyObject *resultobj = 0;
33335 wxEventType arg1 ;
33336 wxPyTreeCtrl *arg2 = (wxPyTreeCtrl *) 0 ;
33337 wxTreeItemId &arg3_defvalue = wxNullTreeItemId ;
33338 wxTreeItemId *arg3 = (wxTreeItemId *) &arg3_defvalue ;
33339 wxTreeEvent *result = 0 ;
33340 int val1 ;
33341 int ecode1 = 0 ;
33342 void *argp2 = 0 ;
33343 int res2 = 0 ;
33344 void *argp3 = 0 ;
33345 int res3 = 0 ;
33346
33347 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
33348 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
33349 if (!SWIG_IsOK(ecode1)) {
33350 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
33351 }
33352 arg1 = static_cast< wxEventType >(val1);
33353 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33354 if (!SWIG_IsOK(res2)) {
33355 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "wxPyTreeCtrl *""'");
33356 }
33357 arg2 = reinterpret_cast< wxPyTreeCtrl * >(argp2);
33358 if (swig_obj[2]) {
33359 res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_wxTreeItemId, 0 );
33360 if (!SWIG_IsOK(res3)) {
33361 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
33362 }
33363 if (!argp3) {
33364 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
33365 }
33366 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
33367 }
33368 {
33369 PyThreadState* __tstate = wxPyBeginAllowThreads();
33370 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2,*arg3);
33371 wxPyEndAllowThreads(__tstate);
33372 if (PyErr_Occurred()) SWIG_fail;
33373 }
33374 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
33375 return resultobj;
33376 fail:
33377 return NULL;
33378 }
33379
33380
33381 SWIGINTERN PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args) {
33382 int argc;
33383 PyObject *argv[4];
33384
33385 if (!(argc = SWIG_Python_UnpackTuple(args,"new_TreeEvent",0,3,argv))) SWIG_fail;
33386 --argc;
33387 if ((argc >= 0) && (argc <= 2)) {
33388 int _v = 0;
33389 if (argc > 1) {
33390 {
33391 {
33392 int res = SWIG_AsVal_int(argv[1], NULL);
33393 _v = SWIG_CheckState(res);
33394 }
33395 }
33396 if (!_v) goto check_1;
33397 }
33398 return _wrap_new_TreeEvent__SWIG_0(self, argc, argv);
33399 }
33400 check_1:
33401
33402 if ((argc >= 2) && (argc <= 3)) {
33403 return _wrap_new_TreeEvent__SWIG_1(self, argc, argv);
33404 }
33405
33406 fail:
33407 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_TreeEvent'");
33408 return NULL;
33409 }
33410
33411
33412 SWIGINTERN PyObject *_wrap_TreeEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33413 PyObject *resultobj = 0;
33414 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33415 wxTreeItemId result;
33416 void *argp1 = 0 ;
33417 int res1 = 0 ;
33418 PyObject *swig_obj[1] ;
33419
33420 if (!args) SWIG_fail;
33421 swig_obj[0] = args;
33422 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33423 if (!SWIG_IsOK(res1)) {
33424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33425 }
33426 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33427 {
33428 PyThreadState* __tstate = wxPyBeginAllowThreads();
33429 result = ((wxTreeEvent const *)arg1)->GetItem();
33430 wxPyEndAllowThreads(__tstate);
33431 if (PyErr_Occurred()) SWIG_fail;
33432 }
33433 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33434 return resultobj;
33435 fail:
33436 return NULL;
33437 }
33438
33439
33440 SWIGINTERN PyObject *_wrap_TreeEvent_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33441 PyObject *resultobj = 0;
33442 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33443 wxTreeItemId *arg2 = 0 ;
33444 void *argp1 = 0 ;
33445 int res1 = 0 ;
33446 void *argp2 = 0 ;
33447 int res2 = 0 ;
33448 PyObject * obj0 = 0 ;
33449 PyObject * obj1 = 0 ;
33450 char * kwnames[] = {
33451 (char *) "self",(char *) "item", NULL
33452 };
33453
33454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
33455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33456 if (!SWIG_IsOK(res1)) {
33457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33458 }
33459 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33460 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33461 if (!SWIG_IsOK(res2)) {
33462 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33463 }
33464 if (!argp2) {
33465 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33466 }
33467 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33468 {
33469 PyThreadState* __tstate = wxPyBeginAllowThreads();
33470 (arg1)->SetItem((wxTreeItemId const &)*arg2);
33471 wxPyEndAllowThreads(__tstate);
33472 if (PyErr_Occurred()) SWIG_fail;
33473 }
33474 resultobj = SWIG_Py_Void();
33475 return resultobj;
33476 fail:
33477 return NULL;
33478 }
33479
33480
33481 SWIGINTERN PyObject *_wrap_TreeEvent_GetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33482 PyObject *resultobj = 0;
33483 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33484 wxTreeItemId result;
33485 void *argp1 = 0 ;
33486 int res1 = 0 ;
33487 PyObject *swig_obj[1] ;
33488
33489 if (!args) SWIG_fail;
33490 swig_obj[0] = args;
33491 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33492 if (!SWIG_IsOK(res1)) {
33493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33494 }
33495 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33496 {
33497 PyThreadState* __tstate = wxPyBeginAllowThreads();
33498 result = ((wxTreeEvent const *)arg1)->GetOldItem();
33499 wxPyEndAllowThreads(__tstate);
33500 if (PyErr_Occurred()) SWIG_fail;
33501 }
33502 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33503 return resultobj;
33504 fail:
33505 return NULL;
33506 }
33507
33508
33509 SWIGINTERN PyObject *_wrap_TreeEvent_SetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33510 PyObject *resultobj = 0;
33511 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33512 wxTreeItemId *arg2 = 0 ;
33513 void *argp1 = 0 ;
33514 int res1 = 0 ;
33515 void *argp2 = 0 ;
33516 int res2 = 0 ;
33517 PyObject * obj0 = 0 ;
33518 PyObject * obj1 = 0 ;
33519 char * kwnames[] = {
33520 (char *) "self",(char *) "item", NULL
33521 };
33522
33523 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) SWIG_fail;
33524 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33525 if (!SWIG_IsOK(res1)) {
33526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33527 }
33528 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33529 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33530 if (!SWIG_IsOK(res2)) {
33531 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33532 }
33533 if (!argp2) {
33534 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33535 }
33536 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33537 {
33538 PyThreadState* __tstate = wxPyBeginAllowThreads();
33539 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
33540 wxPyEndAllowThreads(__tstate);
33541 if (PyErr_Occurred()) SWIG_fail;
33542 }
33543 resultobj = SWIG_Py_Void();
33544 return resultobj;
33545 fail:
33546 return NULL;
33547 }
33548
33549
33550 SWIGINTERN PyObject *_wrap_TreeEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33551 PyObject *resultobj = 0;
33552 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33553 wxPoint result;
33554 void *argp1 = 0 ;
33555 int res1 = 0 ;
33556 PyObject *swig_obj[1] ;
33557
33558 if (!args) SWIG_fail;
33559 swig_obj[0] = args;
33560 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33561 if (!SWIG_IsOK(res1)) {
33562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetPoint" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33563 }
33564 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33565 {
33566 PyThreadState* __tstate = wxPyBeginAllowThreads();
33567 result = ((wxTreeEvent const *)arg1)->GetPoint();
33568 wxPyEndAllowThreads(__tstate);
33569 if (PyErr_Occurred()) SWIG_fail;
33570 }
33571 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
33572 return resultobj;
33573 fail:
33574 return NULL;
33575 }
33576
33577
33578 SWIGINTERN PyObject *_wrap_TreeEvent_SetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33579 PyObject *resultobj = 0;
33580 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33581 wxPoint *arg2 = 0 ;
33582 void *argp1 = 0 ;
33583 int res1 = 0 ;
33584 wxPoint temp2 ;
33585 PyObject * obj0 = 0 ;
33586 PyObject * obj1 = 0 ;
33587 char * kwnames[] = {
33588 (char *) "self",(char *) "pt", NULL
33589 };
33590
33591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) SWIG_fail;
33592 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33593 if (!SWIG_IsOK(res1)) {
33594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetPoint" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33595 }
33596 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33597 {
33598 arg2 = &temp2;
33599 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33600 }
33601 {
33602 PyThreadState* __tstate = wxPyBeginAllowThreads();
33603 (arg1)->SetPoint((wxPoint const &)*arg2);
33604 wxPyEndAllowThreads(__tstate);
33605 if (PyErr_Occurred()) SWIG_fail;
33606 }
33607 resultobj = SWIG_Py_Void();
33608 return resultobj;
33609 fail:
33610 return NULL;
33611 }
33612
33613
33614 SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33615 PyObject *resultobj = 0;
33616 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33617 wxKeyEvent *result = 0 ;
33618 void *argp1 = 0 ;
33619 int res1 = 0 ;
33620 PyObject *swig_obj[1] ;
33621
33622 if (!args) SWIG_fail;
33623 swig_obj[0] = args;
33624 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33625 if (!SWIG_IsOK(res1)) {
33626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33627 }
33628 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33629 {
33630 PyThreadState* __tstate = wxPyBeginAllowThreads();
33631 {
33632 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
33633 result = (wxKeyEvent *) &_result_ref;
33634 }
33635 wxPyEndAllowThreads(__tstate);
33636 if (PyErr_Occurred()) SWIG_fail;
33637 }
33638 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxKeyEvent, 0 | 0 );
33639 return resultobj;
33640 fail:
33641 return NULL;
33642 }
33643
33644
33645 SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33646 PyObject *resultobj = 0;
33647 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33648 int result;
33649 void *argp1 = 0 ;
33650 int res1 = 0 ;
33651 PyObject *swig_obj[1] ;
33652
33653 if (!args) SWIG_fail;
33654 swig_obj[0] = args;
33655 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33656 if (!SWIG_IsOK(res1)) {
33657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33658 }
33659 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33660 {
33661 PyThreadState* __tstate = wxPyBeginAllowThreads();
33662 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
33663 wxPyEndAllowThreads(__tstate);
33664 if (PyErr_Occurred()) SWIG_fail;
33665 }
33666 resultobj = SWIG_From_int(static_cast< int >(result));
33667 return resultobj;
33668 fail:
33669 return NULL;
33670 }
33671
33672
33673 SWIGINTERN PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33674 PyObject *resultobj = 0;
33675 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33676 wxKeyEvent *arg2 = 0 ;
33677 void *argp1 = 0 ;
33678 int res1 = 0 ;
33679 void *argp2 = 0 ;
33680 int res2 = 0 ;
33681 PyObject * obj0 = 0 ;
33682 PyObject * obj1 = 0 ;
33683 char * kwnames[] = {
33684 (char *) "self",(char *) "evt", NULL
33685 };
33686
33687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) SWIG_fail;
33688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33689 if (!SWIG_IsOK(res1)) {
33690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33691 }
33692 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33693 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
33694 if (!SWIG_IsOK(res2)) {
33695 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33696 }
33697 if (!argp2) {
33698 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33699 }
33700 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
33701 {
33702 PyThreadState* __tstate = wxPyBeginAllowThreads();
33703 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
33704 wxPyEndAllowThreads(__tstate);
33705 if (PyErr_Occurred()) SWIG_fail;
33706 }
33707 resultobj = SWIG_Py_Void();
33708 return resultobj;
33709 fail:
33710 return NULL;
33711 }
33712
33713
33714 SWIGINTERN PyObject *_wrap_TreeEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33715 PyObject *resultobj = 0;
33716 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33717 wxString *result = 0 ;
33718 void *argp1 = 0 ;
33719 int res1 = 0 ;
33720 PyObject *swig_obj[1] ;
33721
33722 if (!args) SWIG_fail;
33723 swig_obj[0] = args;
33724 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33725 if (!SWIG_IsOK(res1)) {
33726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetLabel" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33727 }
33728 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33729 {
33730 PyThreadState* __tstate = wxPyBeginAllowThreads();
33731 {
33732 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
33733 result = (wxString *) &_result_ref;
33734 }
33735 wxPyEndAllowThreads(__tstate);
33736 if (PyErr_Occurred()) SWIG_fail;
33737 }
33738 {
33739 #if wxUSE_UNICODE
33740 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33741 #else
33742 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33743 #endif
33744 }
33745 return resultobj;
33746 fail:
33747 return NULL;
33748 }
33749
33750
33751 SWIGINTERN PyObject *_wrap_TreeEvent_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33752 PyObject *resultobj = 0;
33753 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33754 wxString *arg2 = 0 ;
33755 void *argp1 = 0 ;
33756 int res1 = 0 ;
33757 bool temp2 = false ;
33758 PyObject * obj0 = 0 ;
33759 PyObject * obj1 = 0 ;
33760 char * kwnames[] = {
33761 (char *) "self",(char *) "label", NULL
33762 };
33763
33764 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
33765 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33766 if (!SWIG_IsOK(res1)) {
33767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetLabel" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33768 }
33769 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33770 {
33771 arg2 = wxString_in_helper(obj1);
33772 if (arg2 == NULL) SWIG_fail;
33773 temp2 = true;
33774 }
33775 {
33776 PyThreadState* __tstate = wxPyBeginAllowThreads();
33777 (arg1)->SetLabel((wxString const &)*arg2);
33778 wxPyEndAllowThreads(__tstate);
33779 if (PyErr_Occurred()) SWIG_fail;
33780 }
33781 resultobj = SWIG_Py_Void();
33782 {
33783 if (temp2)
33784 delete arg2;
33785 }
33786 return resultobj;
33787 fail:
33788 {
33789 if (temp2)
33790 delete arg2;
33791 }
33792 return NULL;
33793 }
33794
33795
33796 SWIGINTERN PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33797 PyObject *resultobj = 0;
33798 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33799 bool result;
33800 void *argp1 = 0 ;
33801 int res1 = 0 ;
33802 PyObject *swig_obj[1] ;
33803
33804 if (!args) SWIG_fail;
33805 swig_obj[0] = args;
33806 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33807 if (!SWIG_IsOK(res1)) {
33808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33809 }
33810 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33811 {
33812 PyThreadState* __tstate = wxPyBeginAllowThreads();
33813 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
33814 wxPyEndAllowThreads(__tstate);
33815 if (PyErr_Occurred()) SWIG_fail;
33816 }
33817 {
33818 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33819 }
33820 return resultobj;
33821 fail:
33822 return NULL;
33823 }
33824
33825
33826 SWIGINTERN PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33827 PyObject *resultobj = 0;
33828 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33829 bool arg2 ;
33830 void *argp1 = 0 ;
33831 int res1 = 0 ;
33832 bool val2 ;
33833 int ecode2 = 0 ;
33834 PyObject * obj0 = 0 ;
33835 PyObject * obj1 = 0 ;
33836 char * kwnames[] = {
33837 (char *) "self",(char *) "editCancelled", NULL
33838 };
33839
33840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
33841 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33842 if (!SWIG_IsOK(res1)) {
33843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33844 }
33845 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33846 ecode2 = SWIG_AsVal_bool(obj1, &val2);
33847 if (!SWIG_IsOK(ecode2)) {
33848 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
33849 }
33850 arg2 = static_cast< bool >(val2);
33851 {
33852 PyThreadState* __tstate = wxPyBeginAllowThreads();
33853 (arg1)->SetEditCanceled(arg2);
33854 wxPyEndAllowThreads(__tstate);
33855 if (PyErr_Occurred()) SWIG_fail;
33856 }
33857 resultobj = SWIG_Py_Void();
33858 return resultobj;
33859 fail:
33860 return NULL;
33861 }
33862
33863
33864 SWIGINTERN PyObject *_wrap_TreeEvent_SetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33865 PyObject *resultobj = 0;
33866 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33867 wxString *arg2 = 0 ;
33868 void *argp1 = 0 ;
33869 int res1 = 0 ;
33870 bool temp2 = false ;
33871 PyObject * obj0 = 0 ;
33872 PyObject * obj1 = 0 ;
33873 char * kwnames[] = {
33874 (char *) "self",(char *) "toolTip", NULL
33875 };
33876
33877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
33878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33879 if (!SWIG_IsOK(res1)) {
33880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33881 }
33882 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33883 {
33884 arg2 = wxString_in_helper(obj1);
33885 if (arg2 == NULL) SWIG_fail;
33886 temp2 = true;
33887 }
33888 {
33889 PyThreadState* __tstate = wxPyBeginAllowThreads();
33890 (arg1)->SetToolTip((wxString const &)*arg2);
33891 wxPyEndAllowThreads(__tstate);
33892 if (PyErr_Occurred()) SWIG_fail;
33893 }
33894 resultobj = SWIG_Py_Void();
33895 {
33896 if (temp2)
33897 delete arg2;
33898 }
33899 return resultobj;
33900 fail:
33901 {
33902 if (temp2)
33903 delete arg2;
33904 }
33905 return NULL;
33906 }
33907
33908
33909 SWIGINTERN PyObject *_wrap_TreeEvent_GetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33910 PyObject *resultobj = 0;
33911 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33912 wxString result;
33913 void *argp1 = 0 ;
33914 int res1 = 0 ;
33915 PyObject *swig_obj[1] ;
33916
33917 if (!args) SWIG_fail;
33918 swig_obj[0] = args;
33919 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33920 if (!SWIG_IsOK(res1)) {
33921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33922 }
33923 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33924 {
33925 PyThreadState* __tstate = wxPyBeginAllowThreads();
33926 result = (arg1)->GetToolTip();
33927 wxPyEndAllowThreads(__tstate);
33928 if (PyErr_Occurred()) SWIG_fail;
33929 }
33930 {
33931 #if wxUSE_UNICODE
33932 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33933 #else
33934 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33935 #endif
33936 }
33937 return resultobj;
33938 fail:
33939 return NULL;
33940 }
33941
33942
33943 SWIGINTERN PyObject *TreeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33944 PyObject *obj;
33945 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33946 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeEvent, SWIG_NewClientData(obj));
33947 return SWIG_Py_Void();
33948 }
33949
33950 SWIGINTERN PyObject *TreeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33951 return SWIG_Python_InitShadowInstance(args);
33952 }
33953
33954 SWIGINTERN PyObject *_wrap_new_TreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33955 PyObject *resultobj = 0;
33956 wxWindow *arg1 = (wxWindow *) 0 ;
33957 int arg2 = (int) -1 ;
33958 wxPoint const &arg3_defvalue = wxDefaultPosition ;
33959 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
33960 wxSize const &arg4_defvalue = wxDefaultSize ;
33961 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
33962 long arg5 = (long) wxTR_DEFAULT_STYLE ;
33963 wxValidator const &arg6_defvalue = wxDefaultValidator ;
33964 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
33965 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
33966 wxString *arg7 = (wxString *) &arg7_defvalue ;
33967 wxPyTreeCtrl *result = 0 ;
33968 void *argp1 = 0 ;
33969 int res1 = 0 ;
33970 int val2 ;
33971 int ecode2 = 0 ;
33972 wxPoint temp3 ;
33973 wxSize temp4 ;
33974 long val5 ;
33975 int ecode5 = 0 ;
33976 void *argp6 = 0 ;
33977 int res6 = 0 ;
33978 bool temp7 = false ;
33979 PyObject * obj0 = 0 ;
33980 PyObject * obj1 = 0 ;
33981 PyObject * obj2 = 0 ;
33982 PyObject * obj3 = 0 ;
33983 PyObject * obj4 = 0 ;
33984 PyObject * obj5 = 0 ;
33985 PyObject * obj6 = 0 ;
33986 char * kwnames[] = {
33987 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33988 };
33989
33990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33992 if (!SWIG_IsOK(res1)) {
33993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
33994 }
33995 arg1 = reinterpret_cast< wxWindow * >(argp1);
33996 if (obj1) {
33997 ecode2 = SWIG_AsVal_int(obj1, &val2);
33998 if (!SWIG_IsOK(ecode2)) {
33999 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeCtrl" "', expected argument " "2"" of type '" "int""'");
34000 }
34001 arg2 = static_cast< int >(val2);
34002 }
34003 if (obj2) {
34004 {
34005 arg3 = &temp3;
34006 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
34007 }
34008 }
34009 if (obj3) {
34010 {
34011 arg4 = &temp4;
34012 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
34013 }
34014 }
34015 if (obj4) {
34016 ecode5 = SWIG_AsVal_long(obj4, &val5);
34017 if (!SWIG_IsOK(ecode5)) {
34018 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TreeCtrl" "', expected argument " "5"" of type '" "long""'");
34019 }
34020 arg5 = static_cast< long >(val5);
34021 }
34022 if (obj5) {
34023 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
34024 if (!SWIG_IsOK(res6)) {
34025 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
34026 }
34027 if (!argp6) {
34028 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
34029 }
34030 arg6 = reinterpret_cast< wxValidator * >(argp6);
34031 }
34032 if (obj6) {
34033 {
34034 arg7 = wxString_in_helper(obj6);
34035 if (arg7 == NULL) SWIG_fail;
34036 temp7 = true;
34037 }
34038 }
34039 {
34040 if (!wxPyCheckForApp()) SWIG_fail;
34041 PyThreadState* __tstate = wxPyBeginAllowThreads();
34042 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
34043 wxPyEndAllowThreads(__tstate);
34044 if (PyErr_Occurred()) SWIG_fail;
34045 }
34046 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_NEW | 0 );
34047 {
34048 if (temp7)
34049 delete arg7;
34050 }
34051 return resultobj;
34052 fail:
34053 {
34054 if (temp7)
34055 delete arg7;
34056 }
34057 return NULL;
34058 }
34059
34060
34061 SWIGINTERN PyObject *_wrap_new_PreTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34062 PyObject *resultobj = 0;
34063 wxPyTreeCtrl *result = 0 ;
34064
34065 if (!SWIG_Python_UnpackTuple(args,"new_PreTreeCtrl",0,0,0)) SWIG_fail;
34066 {
34067 if (!wxPyCheckForApp()) SWIG_fail;
34068 PyThreadState* __tstate = wxPyBeginAllowThreads();
34069 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
34070 wxPyEndAllowThreads(__tstate);
34071 if (PyErr_Occurred()) SWIG_fail;
34072 }
34073 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_OWN | 0 );
34074 return resultobj;
34075 fail:
34076 return NULL;
34077 }
34078
34079
34080 SWIGINTERN PyObject *_wrap_TreeCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34081 PyObject *resultobj = 0;
34082 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34083 wxWindow *arg2 = (wxWindow *) 0 ;
34084 int arg3 = (int) -1 ;
34085 wxPoint const &arg4_defvalue = wxDefaultPosition ;
34086 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
34087 wxSize const &arg5_defvalue = wxDefaultSize ;
34088 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
34089 long arg6 = (long) wxTR_DEFAULT_STYLE ;
34090 wxValidator const &arg7_defvalue = wxDefaultValidator ;
34091 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
34092 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
34093 wxString *arg8 = (wxString *) &arg8_defvalue ;
34094 bool result;
34095 void *argp1 = 0 ;
34096 int res1 = 0 ;
34097 void *argp2 = 0 ;
34098 int res2 = 0 ;
34099 int val3 ;
34100 int ecode3 = 0 ;
34101 wxPoint temp4 ;
34102 wxSize temp5 ;
34103 long val6 ;
34104 int ecode6 = 0 ;
34105 void *argp7 = 0 ;
34106 int res7 = 0 ;
34107 bool temp8 = false ;
34108 PyObject * obj0 = 0 ;
34109 PyObject * obj1 = 0 ;
34110 PyObject * obj2 = 0 ;
34111 PyObject * obj3 = 0 ;
34112 PyObject * obj4 = 0 ;
34113 PyObject * obj5 = 0 ;
34114 PyObject * obj6 = 0 ;
34115 PyObject * obj7 = 0 ;
34116 char * kwnames[] = {
34117 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
34118 };
34119
34120 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
34121 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34122 if (!SWIG_IsOK(res1)) {
34123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Create" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34124 }
34125 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34126 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34127 if (!SWIG_IsOK(res2)) {
34128 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
34129 }
34130 arg2 = reinterpret_cast< wxWindow * >(argp2);
34131 if (obj2) {
34132 ecode3 = SWIG_AsVal_int(obj2, &val3);
34133 if (!SWIG_IsOK(ecode3)) {
34134 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_Create" "', expected argument " "3"" of type '" "int""'");
34135 }
34136 arg3 = static_cast< int >(val3);
34137 }
34138 if (obj3) {
34139 {
34140 arg4 = &temp4;
34141 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
34142 }
34143 }
34144 if (obj4) {
34145 {
34146 arg5 = &temp5;
34147 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
34148 }
34149 }
34150 if (obj5) {
34151 ecode6 = SWIG_AsVal_long(obj5, &val6);
34152 if (!SWIG_IsOK(ecode6)) {
34153 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_Create" "', expected argument " "6"" of type '" "long""'");
34154 }
34155 arg6 = static_cast< long >(val6);
34156 }
34157 if (obj6) {
34158 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
34159 if (!SWIG_IsOK(res7)) {
34160 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
34161 }
34162 if (!argp7) {
34163 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
34164 }
34165 arg7 = reinterpret_cast< wxValidator * >(argp7);
34166 }
34167 if (obj7) {
34168 {
34169 arg8 = wxString_in_helper(obj7);
34170 if (arg8 == NULL) SWIG_fail;
34171 temp8 = true;
34172 }
34173 }
34174 {
34175 PyThreadState* __tstate = wxPyBeginAllowThreads();
34176 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
34177 wxPyEndAllowThreads(__tstate);
34178 if (PyErr_Occurred()) SWIG_fail;
34179 }
34180 {
34181 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34182 }
34183 {
34184 if (temp8)
34185 delete arg8;
34186 }
34187 return resultobj;
34188 fail:
34189 {
34190 if (temp8)
34191 delete arg8;
34192 }
34193 return NULL;
34194 }
34195
34196
34197 SWIGINTERN PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34198 PyObject *resultobj = 0;
34199 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34200 PyObject *arg2 = (PyObject *) 0 ;
34201 PyObject *arg3 = (PyObject *) 0 ;
34202 void *argp1 = 0 ;
34203 int res1 = 0 ;
34204 PyObject * obj0 = 0 ;
34205 PyObject * obj1 = 0 ;
34206 PyObject * obj2 = 0 ;
34207 char * kwnames[] = {
34208 (char *) "self",(char *) "self",(char *) "_class", NULL
34209 };
34210
34211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34213 if (!SWIG_IsOK(res1)) {
34214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34215 }
34216 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34217 arg2 = obj1;
34218 arg3 = obj2;
34219 {
34220 PyThreadState* __tstate = wxPyBeginAllowThreads();
34221 (arg1)->_setCallbackInfo(arg2,arg3);
34222 wxPyEndAllowThreads(__tstate);
34223 if (PyErr_Occurred()) SWIG_fail;
34224 }
34225 resultobj = SWIG_Py_Void();
34226 return resultobj;
34227 fail:
34228 return NULL;
34229 }
34230
34231
34232 SWIGINTERN PyObject *_wrap_TreeCtrl_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34233 PyObject *resultobj = 0;
34234 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34235 unsigned int result;
34236 void *argp1 = 0 ;
34237 int res1 = 0 ;
34238 PyObject *swig_obj[1] ;
34239
34240 if (!args) SWIG_fail;
34241 swig_obj[0] = args;
34242 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34243 if (!SWIG_IsOK(res1)) {
34244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34245 }
34246 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34247 {
34248 PyThreadState* __tstate = wxPyBeginAllowThreads();
34249 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetCount();
34250 wxPyEndAllowThreads(__tstate);
34251 if (PyErr_Occurred()) SWIG_fail;
34252 }
34253 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
34254 return resultobj;
34255 fail:
34256 return NULL;
34257 }
34258
34259
34260 SWIGINTERN PyObject *_wrap_TreeCtrl_GetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34261 PyObject *resultobj = 0;
34262 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34263 unsigned int result;
34264 void *argp1 = 0 ;
34265 int res1 = 0 ;
34266 PyObject *swig_obj[1] ;
34267
34268 if (!args) SWIG_fail;
34269 swig_obj[0] = args;
34270 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34271 if (!SWIG_IsOK(res1)) {
34272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34273 }
34274 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34275 {
34276 PyThreadState* __tstate = wxPyBeginAllowThreads();
34277 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
34278 wxPyEndAllowThreads(__tstate);
34279 if (PyErr_Occurred()) SWIG_fail;
34280 }
34281 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
34282 return resultobj;
34283 fail:
34284 return NULL;
34285 }
34286
34287
34288 SWIGINTERN PyObject *_wrap_TreeCtrl_SetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34289 PyObject *resultobj = 0;
34290 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34291 unsigned int arg2 ;
34292 void *argp1 = 0 ;
34293 int res1 = 0 ;
34294 unsigned int val2 ;
34295 int ecode2 = 0 ;
34296 PyObject * obj0 = 0 ;
34297 PyObject * obj1 = 0 ;
34298 char * kwnames[] = {
34299 (char *) "self",(char *) "indent", NULL
34300 };
34301
34302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) SWIG_fail;
34303 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34304 if (!SWIG_IsOK(res1)) {
34305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34306 }
34307 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34308 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
34309 if (!SWIG_IsOK(ecode2)) {
34310 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetIndent" "', expected argument " "2"" of type '" "unsigned int""'");
34311 }
34312 arg2 = static_cast< unsigned int >(val2);
34313 {
34314 PyThreadState* __tstate = wxPyBeginAllowThreads();
34315 (arg1)->SetIndent(arg2);
34316 wxPyEndAllowThreads(__tstate);
34317 if (PyErr_Occurred()) SWIG_fail;
34318 }
34319 resultobj = SWIG_Py_Void();
34320 return resultobj;
34321 fail:
34322 return NULL;
34323 }
34324
34325
34326 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34327 PyObject *resultobj = 0;
34328 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34329 unsigned int result;
34330 void *argp1 = 0 ;
34331 int res1 = 0 ;
34332 PyObject *swig_obj[1] ;
34333
34334 if (!args) SWIG_fail;
34335 swig_obj[0] = args;
34336 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34337 if (!SWIG_IsOK(res1)) {
34338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34339 }
34340 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34341 {
34342 PyThreadState* __tstate = wxPyBeginAllowThreads();
34343 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
34344 wxPyEndAllowThreads(__tstate);
34345 if (PyErr_Occurred()) SWIG_fail;
34346 }
34347 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
34348 return resultobj;
34349 fail:
34350 return NULL;
34351 }
34352
34353
34354 SWIGINTERN PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34355 PyObject *resultobj = 0;
34356 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34357 unsigned int arg2 ;
34358 void *argp1 = 0 ;
34359 int res1 = 0 ;
34360 unsigned int val2 ;
34361 int ecode2 = 0 ;
34362 PyObject * obj0 = 0 ;
34363 PyObject * obj1 = 0 ;
34364 char * kwnames[] = {
34365 (char *) "self",(char *) "spacing", NULL
34366 };
34367
34368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) SWIG_fail;
34369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34370 if (!SWIG_IsOK(res1)) {
34371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34372 }
34373 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34374 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
34375 if (!SWIG_IsOK(ecode2)) {
34376 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "2"" of type '" "unsigned int""'");
34377 }
34378 arg2 = static_cast< unsigned int >(val2);
34379 {
34380 PyThreadState* __tstate = wxPyBeginAllowThreads();
34381 (arg1)->SetSpacing(arg2);
34382 wxPyEndAllowThreads(__tstate);
34383 if (PyErr_Occurred()) SWIG_fail;
34384 }
34385 resultobj = SWIG_Py_Void();
34386 return resultobj;
34387 fail:
34388 return NULL;
34389 }
34390
34391
34392 SWIGINTERN PyObject *_wrap_TreeCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34393 PyObject *resultobj = 0;
34394 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34395 wxImageList *result = 0 ;
34396 void *argp1 = 0 ;
34397 int res1 = 0 ;
34398 PyObject *swig_obj[1] ;
34399
34400 if (!args) SWIG_fail;
34401 swig_obj[0] = args;
34402 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34403 if (!SWIG_IsOK(res1)) {
34404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34405 }
34406 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34407 {
34408 PyThreadState* __tstate = wxPyBeginAllowThreads();
34409 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
34410 wxPyEndAllowThreads(__tstate);
34411 if (PyErr_Occurred()) SWIG_fail;
34412 }
34413 {
34414 resultobj = wxPyMake_wxObject(result, (bool)0);
34415 }
34416 return resultobj;
34417 fail:
34418 return NULL;
34419 }
34420
34421
34422 SWIGINTERN PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34423 PyObject *resultobj = 0;
34424 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34425 wxImageList *result = 0 ;
34426 void *argp1 = 0 ;
34427 int res1 = 0 ;
34428 PyObject *swig_obj[1] ;
34429
34430 if (!args) SWIG_fail;
34431 swig_obj[0] = args;
34432 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34433 if (!SWIG_IsOK(res1)) {
34434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34435 }
34436 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34437 {
34438 PyThreadState* __tstate = wxPyBeginAllowThreads();
34439 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
34440 wxPyEndAllowThreads(__tstate);
34441 if (PyErr_Occurred()) SWIG_fail;
34442 }
34443 {
34444 resultobj = wxPyMake_wxObject(result, (bool)0);
34445 }
34446 return resultobj;
34447 fail:
34448 return NULL;
34449 }
34450
34451
34452 SWIGINTERN PyObject *_wrap_TreeCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34453 PyObject *resultobj = 0;
34454 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34455 wxImageList *arg2 = (wxImageList *) 0 ;
34456 void *argp1 = 0 ;
34457 int res1 = 0 ;
34458 void *argp2 = 0 ;
34459 int res2 = 0 ;
34460 PyObject * obj0 = 0 ;
34461 PyObject * obj1 = 0 ;
34462 char * kwnames[] = {
34463 (char *) "self",(char *) "imageList", NULL
34464 };
34465
34466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34468 if (!SWIG_IsOK(res1)) {
34469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34470 }
34471 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34472 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34473 if (!SWIG_IsOK(res2)) {
34474 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34475 }
34476 arg2 = reinterpret_cast< wxImageList * >(argp2);
34477 {
34478 PyThreadState* __tstate = wxPyBeginAllowThreads();
34479 (arg1)->SetImageList(arg2);
34480 wxPyEndAllowThreads(__tstate);
34481 if (PyErr_Occurred()) SWIG_fail;
34482 }
34483 resultobj = SWIG_Py_Void();
34484 return resultobj;
34485 fail:
34486 return NULL;
34487 }
34488
34489
34490 SWIGINTERN PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34491 PyObject *resultobj = 0;
34492 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34493 wxImageList *arg2 = (wxImageList *) 0 ;
34494 void *argp1 = 0 ;
34495 int res1 = 0 ;
34496 void *argp2 = 0 ;
34497 int res2 = 0 ;
34498 PyObject * obj0 = 0 ;
34499 PyObject * obj1 = 0 ;
34500 char * kwnames[] = {
34501 (char *) "self",(char *) "imageList", NULL
34502 };
34503
34504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34506 if (!SWIG_IsOK(res1)) {
34507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34508 }
34509 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34510 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34511 if (!SWIG_IsOK(res2)) {
34512 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34513 }
34514 arg2 = reinterpret_cast< wxImageList * >(argp2);
34515 {
34516 PyThreadState* __tstate = wxPyBeginAllowThreads();
34517 (arg1)->SetStateImageList(arg2);
34518 wxPyEndAllowThreads(__tstate);
34519 if (PyErr_Occurred()) SWIG_fail;
34520 }
34521 resultobj = SWIG_Py_Void();
34522 return resultobj;
34523 fail:
34524 return NULL;
34525 }
34526
34527
34528 SWIGINTERN PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34529 PyObject *resultobj = 0;
34530 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34531 wxImageList *arg2 = (wxImageList *) 0 ;
34532 void *argp1 = 0 ;
34533 int res1 = 0 ;
34534 int res2 = 0 ;
34535 PyObject * obj0 = 0 ;
34536 PyObject * obj1 = 0 ;
34537 char * kwnames[] = {
34538 (char *) "self",(char *) "imageList", NULL
34539 };
34540
34541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34542 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34543 if (!SWIG_IsOK(res1)) {
34544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34545 }
34546 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34547 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34548 if (!SWIG_IsOK(res2)) {
34549 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34550 }
34551 {
34552 PyThreadState* __tstate = wxPyBeginAllowThreads();
34553 (arg1)->AssignImageList(arg2);
34554 wxPyEndAllowThreads(__tstate);
34555 if (PyErr_Occurred()) SWIG_fail;
34556 }
34557 resultobj = SWIG_Py_Void();
34558 return resultobj;
34559 fail:
34560 return NULL;
34561 }
34562
34563
34564 SWIGINTERN PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34565 PyObject *resultobj = 0;
34566 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34567 wxImageList *arg2 = (wxImageList *) 0 ;
34568 void *argp1 = 0 ;
34569 int res1 = 0 ;
34570 int res2 = 0 ;
34571 PyObject * obj0 = 0 ;
34572 PyObject * obj1 = 0 ;
34573 char * kwnames[] = {
34574 (char *) "self",(char *) "imageList", NULL
34575 };
34576
34577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34578 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34579 if (!SWIG_IsOK(res1)) {
34580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34581 }
34582 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34583 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34584 if (!SWIG_IsOK(res2)) {
34585 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34586 }
34587 {
34588 PyThreadState* __tstate = wxPyBeginAllowThreads();
34589 (arg1)->AssignStateImageList(arg2);
34590 wxPyEndAllowThreads(__tstate);
34591 if (PyErr_Occurred()) SWIG_fail;
34592 }
34593 resultobj = SWIG_Py_Void();
34594 return resultobj;
34595 fail:
34596 return NULL;
34597 }
34598
34599
34600 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34601 PyObject *resultobj = 0;
34602 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34603 wxTreeItemId *arg2 = 0 ;
34604 wxString result;
34605 void *argp1 = 0 ;
34606 int res1 = 0 ;
34607 void *argp2 = 0 ;
34608 int res2 = 0 ;
34609 PyObject * obj0 = 0 ;
34610 PyObject * obj1 = 0 ;
34611 char * kwnames[] = {
34612 (char *) "self",(char *) "item", NULL
34613 };
34614
34615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
34616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34617 if (!SWIG_IsOK(res1)) {
34618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34619 }
34620 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34621 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34622 if (!SWIG_IsOK(res2)) {
34623 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34624 }
34625 if (!argp2) {
34626 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34627 }
34628 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34629 {
34630 PyThreadState* __tstate = wxPyBeginAllowThreads();
34631 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
34632 wxPyEndAllowThreads(__tstate);
34633 if (PyErr_Occurred()) SWIG_fail;
34634 }
34635 {
34636 #if wxUSE_UNICODE
34637 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
34638 #else
34639 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
34640 #endif
34641 }
34642 return resultobj;
34643 fail:
34644 return NULL;
34645 }
34646
34647
34648 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34649 PyObject *resultobj = 0;
34650 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34651 wxTreeItemId *arg2 = 0 ;
34652 wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34653 int result;
34654 void *argp1 = 0 ;
34655 int res1 = 0 ;
34656 void *argp2 = 0 ;
34657 int res2 = 0 ;
34658 int val3 ;
34659 int ecode3 = 0 ;
34660 PyObject * obj0 = 0 ;
34661 PyObject * obj1 = 0 ;
34662 PyObject * obj2 = 0 ;
34663 char * kwnames[] = {
34664 (char *) "self",(char *) "item",(char *) "which", NULL
34665 };
34666
34667 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34668 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34669 if (!SWIG_IsOK(res1)) {
34670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34671 }
34672 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34673 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34674 if (!SWIG_IsOK(res2)) {
34675 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34676 }
34677 if (!argp2) {
34678 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34679 }
34680 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34681 if (obj2) {
34682 ecode3 = SWIG_AsVal_int(obj2, &val3);
34683 if (!SWIG_IsOK(ecode3)) {
34684 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "3"" of type '" "wxTreeItemIcon""'");
34685 }
34686 arg3 = static_cast< wxTreeItemIcon >(val3);
34687 }
34688 {
34689 PyThreadState* __tstate = wxPyBeginAllowThreads();
34690 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,arg3);
34691 wxPyEndAllowThreads(__tstate);
34692 if (PyErr_Occurred()) SWIG_fail;
34693 }
34694 resultobj = SWIG_From_int(static_cast< int >(result));
34695 return resultobj;
34696 fail:
34697 return NULL;
34698 }
34699
34700
34701 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34702 PyObject *resultobj = 0;
34703 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34704 wxTreeItemId *arg2 = 0 ;
34705 wxPyTreeItemData *result = 0 ;
34706 void *argp1 = 0 ;
34707 int res1 = 0 ;
34708 void *argp2 = 0 ;
34709 int res2 = 0 ;
34710 PyObject * obj0 = 0 ;
34711 PyObject * obj1 = 0 ;
34712 char * kwnames[] = {
34713 (char *) "self",(char *) "item", NULL
34714 };
34715
34716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
34717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34718 if (!SWIG_IsOK(res1)) {
34719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34720 }
34721 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34722 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34723 if (!SWIG_IsOK(res2)) {
34724 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34725 }
34726 if (!argp2) {
34727 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34728 }
34729 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34730 {
34731 PyThreadState* __tstate = wxPyBeginAllowThreads();
34732 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
34733 wxPyEndAllowThreads(__tstate);
34734 if (PyErr_Occurred()) SWIG_fail;
34735 }
34736 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
34737 return resultobj;
34738 fail:
34739 return NULL;
34740 }
34741
34742
34743 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34744 PyObject *resultobj = 0;
34745 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34746 wxTreeItemId *arg2 = 0 ;
34747 PyObject *result = 0 ;
34748 void *argp1 = 0 ;
34749 int res1 = 0 ;
34750 void *argp2 = 0 ;
34751 int res2 = 0 ;
34752 PyObject * obj0 = 0 ;
34753 PyObject * obj1 = 0 ;
34754 char * kwnames[] = {
34755 (char *) "self",(char *) "item", NULL
34756 };
34757
34758 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) SWIG_fail;
34759 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34760 if (!SWIG_IsOK(res1)) {
34761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34762 }
34763 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34764 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34765 if (!SWIG_IsOK(res2)) {
34766 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34767 }
34768 if (!argp2) {
34769 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34770 }
34771 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34772 {
34773 PyThreadState* __tstate = wxPyBeginAllowThreads();
34774 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
34775 wxPyEndAllowThreads(__tstate);
34776 if (PyErr_Occurred()) SWIG_fail;
34777 }
34778 resultobj = result;
34779 return resultobj;
34780 fail:
34781 return NULL;
34782 }
34783
34784
34785 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34786 PyObject *resultobj = 0;
34787 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34788 wxTreeItemId *arg2 = 0 ;
34789 wxColour result;
34790 void *argp1 = 0 ;
34791 int res1 = 0 ;
34792 void *argp2 = 0 ;
34793 int res2 = 0 ;
34794 PyObject * obj0 = 0 ;
34795 PyObject * obj1 = 0 ;
34796 char * kwnames[] = {
34797 (char *) "self",(char *) "item", NULL
34798 };
34799
34800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
34801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34802 if (!SWIG_IsOK(res1)) {
34803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34804 }
34805 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34806 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34807 if (!SWIG_IsOK(res2)) {
34808 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34809 }
34810 if (!argp2) {
34811 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34812 }
34813 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34814 {
34815 PyThreadState* __tstate = wxPyBeginAllowThreads();
34816 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
34817 wxPyEndAllowThreads(__tstate);
34818 if (PyErr_Occurred()) SWIG_fail;
34819 }
34820 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34821 return resultobj;
34822 fail:
34823 return NULL;
34824 }
34825
34826
34827 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34828 PyObject *resultobj = 0;
34829 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34830 wxTreeItemId *arg2 = 0 ;
34831 wxColour result;
34832 void *argp1 = 0 ;
34833 int res1 = 0 ;
34834 void *argp2 = 0 ;
34835 int res2 = 0 ;
34836 PyObject * obj0 = 0 ;
34837 PyObject * obj1 = 0 ;
34838 char * kwnames[] = {
34839 (char *) "self",(char *) "item", NULL
34840 };
34841
34842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
34843 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34844 if (!SWIG_IsOK(res1)) {
34845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34846 }
34847 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34848 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34849 if (!SWIG_IsOK(res2)) {
34850 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34851 }
34852 if (!argp2) {
34853 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34854 }
34855 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34856 {
34857 PyThreadState* __tstate = wxPyBeginAllowThreads();
34858 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
34859 wxPyEndAllowThreads(__tstate);
34860 if (PyErr_Occurred()) SWIG_fail;
34861 }
34862 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34863 return resultobj;
34864 fail:
34865 return NULL;
34866 }
34867
34868
34869 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34870 PyObject *resultobj = 0;
34871 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34872 wxTreeItemId *arg2 = 0 ;
34873 wxFont result;
34874 void *argp1 = 0 ;
34875 int res1 = 0 ;
34876 void *argp2 = 0 ;
34877 int res2 = 0 ;
34878 PyObject * obj0 = 0 ;
34879 PyObject * obj1 = 0 ;
34880 char * kwnames[] = {
34881 (char *) "self",(char *) "item", NULL
34882 };
34883
34884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
34885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34886 if (!SWIG_IsOK(res1)) {
34887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34888 }
34889 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34890 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34891 if (!SWIG_IsOK(res2)) {
34892 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34893 }
34894 if (!argp2) {
34895 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34896 }
34897 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34898 {
34899 PyThreadState* __tstate = wxPyBeginAllowThreads();
34900 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
34901 wxPyEndAllowThreads(__tstate);
34902 if (PyErr_Occurred()) SWIG_fail;
34903 }
34904 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
34905 return resultobj;
34906 fail:
34907 return NULL;
34908 }
34909
34910
34911 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34912 PyObject *resultobj = 0;
34913 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34914 wxTreeItemId *arg2 = 0 ;
34915 wxString *arg3 = 0 ;
34916 void *argp1 = 0 ;
34917 int res1 = 0 ;
34918 void *argp2 = 0 ;
34919 int res2 = 0 ;
34920 bool temp3 = false ;
34921 PyObject * obj0 = 0 ;
34922 PyObject * obj1 = 0 ;
34923 PyObject * obj2 = 0 ;
34924 char * kwnames[] = {
34925 (char *) "self",(char *) "item",(char *) "text", NULL
34926 };
34927
34928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34930 if (!SWIG_IsOK(res1)) {
34931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34932 }
34933 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34934 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34935 if (!SWIG_IsOK(res2)) {
34936 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34937 }
34938 if (!argp2) {
34939 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34940 }
34941 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34942 {
34943 arg3 = wxString_in_helper(obj2);
34944 if (arg3 == NULL) SWIG_fail;
34945 temp3 = true;
34946 }
34947 {
34948 PyThreadState* __tstate = wxPyBeginAllowThreads();
34949 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
34950 wxPyEndAllowThreads(__tstate);
34951 if (PyErr_Occurred()) SWIG_fail;
34952 }
34953 resultobj = SWIG_Py_Void();
34954 {
34955 if (temp3)
34956 delete arg3;
34957 }
34958 return resultobj;
34959 fail:
34960 {
34961 if (temp3)
34962 delete arg3;
34963 }
34964 return NULL;
34965 }
34966
34967
34968 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34969 PyObject *resultobj = 0;
34970 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34971 wxTreeItemId *arg2 = 0 ;
34972 int arg3 ;
34973 wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34974 void *argp1 = 0 ;
34975 int res1 = 0 ;
34976 void *argp2 = 0 ;
34977 int res2 = 0 ;
34978 int val3 ;
34979 int ecode3 = 0 ;
34980 int val4 ;
34981 int ecode4 = 0 ;
34982 PyObject * obj0 = 0 ;
34983 PyObject * obj1 = 0 ;
34984 PyObject * obj2 = 0 ;
34985 PyObject * obj3 = 0 ;
34986 char * kwnames[] = {
34987 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
34988 };
34989
34990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34992 if (!SWIG_IsOK(res1)) {
34993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34994 }
34995 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34996 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34997 if (!SWIG_IsOK(res2)) {
34998 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34999 }
35000 if (!argp2) {
35001 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35002 }
35003 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35004 ecode3 = SWIG_AsVal_int(obj2, &val3);
35005 if (!SWIG_IsOK(ecode3)) {
35006 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
35007 }
35008 arg3 = static_cast< int >(val3);
35009 if (obj3) {
35010 ecode4 = SWIG_AsVal_int(obj3, &val4);
35011 if (!SWIG_IsOK(ecode4)) {
35012 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "4"" of type '" "wxTreeItemIcon""'");
35013 }
35014 arg4 = static_cast< wxTreeItemIcon >(val4);
35015 }
35016 {
35017 PyThreadState* __tstate = wxPyBeginAllowThreads();
35018 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,arg4);
35019 wxPyEndAllowThreads(__tstate);
35020 if (PyErr_Occurred()) SWIG_fail;
35021 }
35022 resultobj = SWIG_Py_Void();
35023 return resultobj;
35024 fail:
35025 return NULL;
35026 }
35027
35028
35029 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35030 PyObject *resultobj = 0;
35031 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35032 wxTreeItemId *arg2 = 0 ;
35033 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
35034 void *argp1 = 0 ;
35035 int res1 = 0 ;
35036 void *argp2 = 0 ;
35037 int res2 = 0 ;
35038 int res3 = 0 ;
35039 PyObject * obj0 = 0 ;
35040 PyObject * obj1 = 0 ;
35041 PyObject * obj2 = 0 ;
35042 char * kwnames[] = {
35043 (char *) "self",(char *) "item",(char *) "data", NULL
35044 };
35045
35046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35048 if (!SWIG_IsOK(res1)) {
35049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35050 }
35051 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35052 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35053 if (!SWIG_IsOK(res2)) {
35054 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35055 }
35056 if (!argp2) {
35057 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35058 }
35059 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35060 res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35061 if (!SWIG_IsOK(res3)) {
35062 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemData" "', expected argument " "3"" of type '" "wxPyTreeItemData *""'");
35063 }
35064 {
35065 PyThreadState* __tstate = wxPyBeginAllowThreads();
35066 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
35067 wxPyEndAllowThreads(__tstate);
35068 if (PyErr_Occurred()) SWIG_fail;
35069 }
35070 resultobj = SWIG_Py_Void();
35071 return resultobj;
35072 fail:
35073 return NULL;
35074 }
35075
35076
35077 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35078 PyObject *resultobj = 0;
35079 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35080 wxTreeItemId *arg2 = 0 ;
35081 PyObject *arg3 = (PyObject *) 0 ;
35082 void *argp1 = 0 ;
35083 int res1 = 0 ;
35084 void *argp2 = 0 ;
35085 int res2 = 0 ;
35086 PyObject * obj0 = 0 ;
35087 PyObject * obj1 = 0 ;
35088 PyObject * obj2 = 0 ;
35089 char * kwnames[] = {
35090 (char *) "self",(char *) "item",(char *) "obj", NULL
35091 };
35092
35093 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35094 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35095 if (!SWIG_IsOK(res1)) {
35096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35097 }
35098 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35099 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35100 if (!SWIG_IsOK(res2)) {
35101 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35102 }
35103 if (!argp2) {
35104 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35105 }
35106 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35107 arg3 = obj2;
35108 {
35109 PyThreadState* __tstate = wxPyBeginAllowThreads();
35110 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
35111 wxPyEndAllowThreads(__tstate);
35112 if (PyErr_Occurred()) SWIG_fail;
35113 }
35114 resultobj = SWIG_Py_Void();
35115 return resultobj;
35116 fail:
35117 return NULL;
35118 }
35119
35120
35121 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35122 PyObject *resultobj = 0;
35123 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35124 wxTreeItemId *arg2 = 0 ;
35125 bool arg3 = (bool) true ;
35126 void *argp1 = 0 ;
35127 int res1 = 0 ;
35128 void *argp2 = 0 ;
35129 int res2 = 0 ;
35130 bool val3 ;
35131 int ecode3 = 0 ;
35132 PyObject * obj0 = 0 ;
35133 PyObject * obj1 = 0 ;
35134 PyObject * obj2 = 0 ;
35135 char * kwnames[] = {
35136 (char *) "self",(char *) "item",(char *) "has", NULL
35137 };
35138
35139 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35140 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35141 if (!SWIG_IsOK(res1)) {
35142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35143 }
35144 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35145 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35146 if (!SWIG_IsOK(res2)) {
35147 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35148 }
35149 if (!argp2) {
35150 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35151 }
35152 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35153 if (obj2) {
35154 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35155 if (!SWIG_IsOK(ecode3)) {
35156 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "3"" of type '" "bool""'");
35157 }
35158 arg3 = static_cast< bool >(val3);
35159 }
35160 {
35161 PyThreadState* __tstate = wxPyBeginAllowThreads();
35162 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
35163 wxPyEndAllowThreads(__tstate);
35164 if (PyErr_Occurred()) SWIG_fail;
35165 }
35166 resultobj = SWIG_Py_Void();
35167 return resultobj;
35168 fail:
35169 return NULL;
35170 }
35171
35172
35173 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35174 PyObject *resultobj = 0;
35175 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35176 wxTreeItemId *arg2 = 0 ;
35177 bool arg3 = (bool) true ;
35178 void *argp1 = 0 ;
35179 int res1 = 0 ;
35180 void *argp2 = 0 ;
35181 int res2 = 0 ;
35182 bool val3 ;
35183 int ecode3 = 0 ;
35184 PyObject * obj0 = 0 ;
35185 PyObject * obj1 = 0 ;
35186 PyObject * obj2 = 0 ;
35187 char * kwnames[] = {
35188 (char *) "self",(char *) "item",(char *) "bold", NULL
35189 };
35190
35191 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35192 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35193 if (!SWIG_IsOK(res1)) {
35194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35195 }
35196 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35197 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35198 if (!SWIG_IsOK(res2)) {
35199 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35200 }
35201 if (!argp2) {
35202 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35203 }
35204 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35205 if (obj2) {
35206 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35207 if (!SWIG_IsOK(ecode3)) {
35208 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "3"" of type '" "bool""'");
35209 }
35210 arg3 = static_cast< bool >(val3);
35211 }
35212 {
35213 PyThreadState* __tstate = wxPyBeginAllowThreads();
35214 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
35215 wxPyEndAllowThreads(__tstate);
35216 if (PyErr_Occurred()) SWIG_fail;
35217 }
35218 resultobj = SWIG_Py_Void();
35219 return resultobj;
35220 fail:
35221 return NULL;
35222 }
35223
35224
35225 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35226 PyObject *resultobj = 0;
35227 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35228 wxTreeItemId *arg2 = 0 ;
35229 bool arg3 = (bool) true ;
35230 void *argp1 = 0 ;
35231 int res1 = 0 ;
35232 void *argp2 = 0 ;
35233 int res2 = 0 ;
35234 bool val3 ;
35235 int ecode3 = 0 ;
35236 PyObject * obj0 = 0 ;
35237 PyObject * obj1 = 0 ;
35238 PyObject * obj2 = 0 ;
35239 char * kwnames[] = {
35240 (char *) "self",(char *) "item",(char *) "highlight", NULL
35241 };
35242
35243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35245 if (!SWIG_IsOK(res1)) {
35246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35247 }
35248 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35249 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35250 if (!SWIG_IsOK(res2)) {
35251 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35252 }
35253 if (!argp2) {
35254 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35255 }
35256 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35257 if (obj2) {
35258 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35259 if (!SWIG_IsOK(ecode3)) {
35260 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "3"" of type '" "bool""'");
35261 }
35262 arg3 = static_cast< bool >(val3);
35263 }
35264 {
35265 PyThreadState* __tstate = wxPyBeginAllowThreads();
35266 (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3);
35267 wxPyEndAllowThreads(__tstate);
35268 if (PyErr_Occurred()) SWIG_fail;
35269 }
35270 resultobj = SWIG_Py_Void();
35271 return resultobj;
35272 fail:
35273 return NULL;
35274 }
35275
35276
35277 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35278 PyObject *resultobj = 0;
35279 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35280 wxTreeItemId *arg2 = 0 ;
35281 wxColour *arg3 = 0 ;
35282 void *argp1 = 0 ;
35283 int res1 = 0 ;
35284 void *argp2 = 0 ;
35285 int res2 = 0 ;
35286 wxColour temp3 ;
35287 PyObject * obj0 = 0 ;
35288 PyObject * obj1 = 0 ;
35289 PyObject * obj2 = 0 ;
35290 char * kwnames[] = {
35291 (char *) "self",(char *) "item",(char *) "col", NULL
35292 };
35293
35294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35295 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35296 if (!SWIG_IsOK(res1)) {
35297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35298 }
35299 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35300 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35301 if (!SWIG_IsOK(res2)) {
35302 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35303 }
35304 if (!argp2) {
35305 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35306 }
35307 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35308 {
35309 arg3 = &temp3;
35310 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35311 }
35312 {
35313 PyThreadState* __tstate = wxPyBeginAllowThreads();
35314 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
35315 wxPyEndAllowThreads(__tstate);
35316 if (PyErr_Occurred()) SWIG_fail;
35317 }
35318 resultobj = SWIG_Py_Void();
35319 return resultobj;
35320 fail:
35321 return NULL;
35322 }
35323
35324
35325 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35326 PyObject *resultobj = 0;
35327 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35328 wxTreeItemId *arg2 = 0 ;
35329 wxColour *arg3 = 0 ;
35330 void *argp1 = 0 ;
35331 int res1 = 0 ;
35332 void *argp2 = 0 ;
35333 int res2 = 0 ;
35334 wxColour temp3 ;
35335 PyObject * obj0 = 0 ;
35336 PyObject * obj1 = 0 ;
35337 PyObject * obj2 = 0 ;
35338 char * kwnames[] = {
35339 (char *) "self",(char *) "item",(char *) "col", NULL
35340 };
35341
35342 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35343 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35344 if (!SWIG_IsOK(res1)) {
35345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35346 }
35347 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35348 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35349 if (!SWIG_IsOK(res2)) {
35350 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35351 }
35352 if (!argp2) {
35353 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35354 }
35355 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35356 {
35357 arg3 = &temp3;
35358 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35359 }
35360 {
35361 PyThreadState* __tstate = wxPyBeginAllowThreads();
35362 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
35363 wxPyEndAllowThreads(__tstate);
35364 if (PyErr_Occurred()) SWIG_fail;
35365 }
35366 resultobj = SWIG_Py_Void();
35367 return resultobj;
35368 fail:
35369 return NULL;
35370 }
35371
35372
35373 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35374 PyObject *resultobj = 0;
35375 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35376 wxTreeItemId *arg2 = 0 ;
35377 wxFont *arg3 = 0 ;
35378 void *argp1 = 0 ;
35379 int res1 = 0 ;
35380 void *argp2 = 0 ;
35381 int res2 = 0 ;
35382 void *argp3 = 0 ;
35383 int res3 = 0 ;
35384 PyObject * obj0 = 0 ;
35385 PyObject * obj1 = 0 ;
35386 PyObject * obj2 = 0 ;
35387 char * kwnames[] = {
35388 (char *) "self",(char *) "item",(char *) "font", NULL
35389 };
35390
35391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35393 if (!SWIG_IsOK(res1)) {
35394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35395 }
35396 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35397 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35398 if (!SWIG_IsOK(res2)) {
35399 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35400 }
35401 if (!argp2) {
35402 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35403 }
35404 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35405 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
35406 if (!SWIG_IsOK(res3)) {
35407 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
35408 }
35409 if (!argp3) {
35410 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
35411 }
35412 arg3 = reinterpret_cast< wxFont * >(argp3);
35413 {
35414 PyThreadState* __tstate = wxPyBeginAllowThreads();
35415 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
35416 wxPyEndAllowThreads(__tstate);
35417 if (PyErr_Occurred()) SWIG_fail;
35418 }
35419 resultobj = SWIG_Py_Void();
35420 return resultobj;
35421 fail:
35422 return NULL;
35423 }
35424
35425
35426 SWIGINTERN PyObject *_wrap_TreeCtrl_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35427 PyObject *resultobj = 0;
35428 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35429 wxTreeItemId *arg2 = 0 ;
35430 bool result;
35431 void *argp1 = 0 ;
35432 int res1 = 0 ;
35433 void *argp2 = 0 ;
35434 int res2 = 0 ;
35435 PyObject * obj0 = 0 ;
35436 PyObject * obj1 = 0 ;
35437 char * kwnames[] = {
35438 (char *) "self",(char *) "item", NULL
35439 };
35440
35441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35443 if (!SWIG_IsOK(res1)) {
35444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35445 }
35446 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35447 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35448 if (!SWIG_IsOK(res2)) {
35449 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35450 }
35451 if (!argp2) {
35452 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35453 }
35454 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35455 {
35456 PyThreadState* __tstate = wxPyBeginAllowThreads();
35457 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
35458 wxPyEndAllowThreads(__tstate);
35459 if (PyErr_Occurred()) SWIG_fail;
35460 }
35461 {
35462 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35463 }
35464 return resultobj;
35465 fail:
35466 return NULL;
35467 }
35468
35469
35470 SWIGINTERN PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35471 PyObject *resultobj = 0;
35472 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35473 wxTreeItemId *arg2 = 0 ;
35474 bool 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_ItemHasChildren",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_ItemHasChildren" "', 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_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35494 }
35495 if (!argp2) {
35496 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35497 }
35498 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35499 {
35500 PyThreadState* __tstate = wxPyBeginAllowThreads();
35501 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
35502 wxPyEndAllowThreads(__tstate);
35503 if (PyErr_Occurred()) SWIG_fail;
35504 }
35505 {
35506 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35507 }
35508 return resultobj;
35509 fail:
35510 return NULL;
35511 }
35512
35513
35514 SWIGINTERN PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35515 PyObject *resultobj = 0;
35516 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35517 wxTreeItemId *arg2 = 0 ;
35518 bool result;
35519 void *argp1 = 0 ;
35520 int res1 = 0 ;
35521 void *argp2 = 0 ;
35522 int res2 = 0 ;
35523 PyObject * obj0 = 0 ;
35524 PyObject * obj1 = 0 ;
35525 char * kwnames[] = {
35526 (char *) "self",(char *) "item", NULL
35527 };
35528
35529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
35530 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35531 if (!SWIG_IsOK(res1)) {
35532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35533 }
35534 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35535 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35536 if (!SWIG_IsOK(res2)) {
35537 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35538 }
35539 if (!argp2) {
35540 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35541 }
35542 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35543 {
35544 PyThreadState* __tstate = wxPyBeginAllowThreads();
35545 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
35546 wxPyEndAllowThreads(__tstate);
35547 if (PyErr_Occurred()) SWIG_fail;
35548 }
35549 {
35550 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35551 }
35552 return resultobj;
35553 fail:
35554 return NULL;
35555 }
35556
35557
35558 SWIGINTERN PyObject *_wrap_TreeCtrl_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35559 PyObject *resultobj = 0;
35560 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35561 wxTreeItemId *arg2 = 0 ;
35562 bool result;
35563 void *argp1 = 0 ;
35564 int res1 = 0 ;
35565 void *argp2 = 0 ;
35566 int res2 = 0 ;
35567 PyObject * obj0 = 0 ;
35568 PyObject * obj1 = 0 ;
35569 char * kwnames[] = {
35570 (char *) "self",(char *) "item", NULL
35571 };
35572
35573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
35574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35575 if (!SWIG_IsOK(res1)) {
35576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsSelected" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35577 }
35578 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35579 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35580 if (!SWIG_IsOK(res2)) {
35581 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35582 }
35583 if (!argp2) {
35584 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35585 }
35586 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35587 {
35588 PyThreadState* __tstate = wxPyBeginAllowThreads();
35589 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
35590 wxPyEndAllowThreads(__tstate);
35591 if (PyErr_Occurred()) SWIG_fail;
35592 }
35593 {
35594 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35595 }
35596 return resultobj;
35597 fail:
35598 return NULL;
35599 }
35600
35601
35602 SWIGINTERN PyObject *_wrap_TreeCtrl_IsBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35603 PyObject *resultobj = 0;
35604 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35605 wxTreeItemId *arg2 = 0 ;
35606 bool result;
35607 void *argp1 = 0 ;
35608 int res1 = 0 ;
35609 void *argp2 = 0 ;
35610 int res2 = 0 ;
35611 PyObject * obj0 = 0 ;
35612 PyObject * obj1 = 0 ;
35613 char * kwnames[] = {
35614 (char *) "self",(char *) "item", NULL
35615 };
35616
35617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) SWIG_fail;
35618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35619 if (!SWIG_IsOK(res1)) {
35620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35621 }
35622 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35623 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35624 if (!SWIG_IsOK(res2)) {
35625 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35626 }
35627 if (!argp2) {
35628 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35629 }
35630 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35631 {
35632 PyThreadState* __tstate = wxPyBeginAllowThreads();
35633 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
35634 wxPyEndAllowThreads(__tstate);
35635 if (PyErr_Occurred()) SWIG_fail;
35636 }
35637 {
35638 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35639 }
35640 return resultobj;
35641 fail:
35642 return NULL;
35643 }
35644
35645
35646 SWIGINTERN PyObject *_wrap_TreeCtrl_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35647 PyObject *resultobj = 0;
35648 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35649 bool result;
35650 void *argp1 = 0 ;
35651 int res1 = 0 ;
35652 PyObject *swig_obj[1] ;
35653
35654 if (!args) SWIG_fail;
35655 swig_obj[0] = args;
35656 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35657 if (!SWIG_IsOK(res1)) {
35658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsEmpty" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35659 }
35660 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35661 {
35662 PyThreadState* __tstate = wxPyBeginAllowThreads();
35663 result = (bool)((wxPyTreeCtrl const *)arg1)->IsEmpty();
35664 wxPyEndAllowThreads(__tstate);
35665 if (PyErr_Occurred()) SWIG_fail;
35666 }
35667 {
35668 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35669 }
35670 return resultobj;
35671 fail:
35672 return NULL;
35673 }
35674
35675
35676 SWIGINTERN PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35677 PyObject *resultobj = 0;
35678 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35679 wxTreeItemId *arg2 = 0 ;
35680 bool arg3 = (bool) true ;
35681 size_t result;
35682 void *argp1 = 0 ;
35683 int res1 = 0 ;
35684 void *argp2 = 0 ;
35685 int res2 = 0 ;
35686 bool val3 ;
35687 int ecode3 = 0 ;
35688 PyObject * obj0 = 0 ;
35689 PyObject * obj1 = 0 ;
35690 PyObject * obj2 = 0 ;
35691 char * kwnames[] = {
35692 (char *) "self",(char *) "item",(char *) "recursively", NULL
35693 };
35694
35695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35697 if (!SWIG_IsOK(res1)) {
35698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35699 }
35700 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35701 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35702 if (!SWIG_IsOK(res2)) {
35703 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35704 }
35705 if (!argp2) {
35706 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35707 }
35708 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35709 if (obj2) {
35710 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35711 if (!SWIG_IsOK(ecode3)) {
35712 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "3"" of type '" "bool""'");
35713 }
35714 arg3 = static_cast< bool >(val3);
35715 }
35716 {
35717 PyThreadState* __tstate = wxPyBeginAllowThreads();
35718 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
35719 wxPyEndAllowThreads(__tstate);
35720 if (PyErr_Occurred()) SWIG_fail;
35721 }
35722 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
35723 return resultobj;
35724 fail:
35725 return NULL;
35726 }
35727
35728
35729 SWIGINTERN PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35730 PyObject *resultobj = 0;
35731 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35732 wxTreeItemId result;
35733 void *argp1 = 0 ;
35734 int res1 = 0 ;
35735 PyObject *swig_obj[1] ;
35736
35737 if (!args) SWIG_fail;
35738 swig_obj[0] = args;
35739 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35740 if (!SWIG_IsOK(res1)) {
35741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetRootItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35742 }
35743 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35744 {
35745 PyThreadState* __tstate = wxPyBeginAllowThreads();
35746 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
35747 wxPyEndAllowThreads(__tstate);
35748 if (PyErr_Occurred()) SWIG_fail;
35749 }
35750 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35751 return resultobj;
35752 fail:
35753 return NULL;
35754 }
35755
35756
35757 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35758 PyObject *resultobj = 0;
35759 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35760 wxTreeItemId result;
35761 void *argp1 = 0 ;
35762 int res1 = 0 ;
35763 PyObject *swig_obj[1] ;
35764
35765 if (!args) SWIG_fail;
35766 swig_obj[0] = args;
35767 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35768 if (!SWIG_IsOK(res1)) {
35769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35770 }
35771 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35772 {
35773 PyThreadState* __tstate = wxPyBeginAllowThreads();
35774 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
35775 wxPyEndAllowThreads(__tstate);
35776 if (PyErr_Occurred()) SWIG_fail;
35777 }
35778 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35779 return resultobj;
35780 fail:
35781 return NULL;
35782 }
35783
35784
35785 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35786 PyObject *resultobj = 0;
35787 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35788 PyObject *result = 0 ;
35789 void *argp1 = 0 ;
35790 int res1 = 0 ;
35791 PyObject *swig_obj[1] ;
35792
35793 if (!args) SWIG_fail;
35794 swig_obj[0] = args;
35795 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35796 if (!SWIG_IsOK(res1)) {
35797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelections" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35798 }
35799 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35800 {
35801 PyThreadState* __tstate = wxPyBeginAllowThreads();
35802 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
35803 wxPyEndAllowThreads(__tstate);
35804 if (PyErr_Occurred()) SWIG_fail;
35805 }
35806 resultobj = result;
35807 return resultobj;
35808 fail:
35809 return NULL;
35810 }
35811
35812
35813 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35814 PyObject *resultobj = 0;
35815 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35816 wxTreeItemId *arg2 = 0 ;
35817 wxTreeItemId result;
35818 void *argp1 = 0 ;
35819 int res1 = 0 ;
35820 void *argp2 = 0 ;
35821 int res2 = 0 ;
35822 PyObject * obj0 = 0 ;
35823 PyObject * obj1 = 0 ;
35824 char * kwnames[] = {
35825 (char *) "self",(char *) "item", NULL
35826 };
35827
35828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) SWIG_fail;
35829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35830 if (!SWIG_IsOK(res1)) {
35831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35832 }
35833 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35834 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35835 if (!SWIG_IsOK(res2)) {
35836 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35837 }
35838 if (!argp2) {
35839 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35840 }
35841 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35842 {
35843 PyThreadState* __tstate = wxPyBeginAllowThreads();
35844 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
35845 wxPyEndAllowThreads(__tstate);
35846 if (PyErr_Occurred()) SWIG_fail;
35847 }
35848 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35849 return resultobj;
35850 fail:
35851 return NULL;
35852 }
35853
35854
35855 SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35856 PyObject *resultobj = 0;
35857 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35858 wxTreeItemId *arg2 = 0 ;
35859 PyObject *result = 0 ;
35860 void *argp1 = 0 ;
35861 int res1 = 0 ;
35862 void *argp2 = 0 ;
35863 int res2 = 0 ;
35864 PyObject * obj0 = 0 ;
35865 PyObject * obj1 = 0 ;
35866 char * kwnames[] = {
35867 (char *) "self",(char *) "item", NULL
35868 };
35869
35870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) SWIG_fail;
35871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35872 if (!SWIG_IsOK(res1)) {
35873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35874 }
35875 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35876 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35877 if (!SWIG_IsOK(res2)) {
35878 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35879 }
35880 if (!argp2) {
35881 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35882 }
35883 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35884 {
35885 PyThreadState* __tstate = wxPyBeginAllowThreads();
35886 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
35887 wxPyEndAllowThreads(__tstate);
35888 if (PyErr_Occurred()) SWIG_fail;
35889 }
35890 resultobj = result;
35891 return resultobj;
35892 fail:
35893 return NULL;
35894 }
35895
35896
35897 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35898 PyObject *resultobj = 0;
35899 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35900 wxTreeItemId *arg2 = 0 ;
35901 void *arg3 = (void *) 0 ;
35902 PyObject *result = 0 ;
35903 void *argp1 = 0 ;
35904 int res1 = 0 ;
35905 void *argp2 = 0 ;
35906 int res2 = 0 ;
35907 int res3 ;
35908 PyObject * obj0 = 0 ;
35909 PyObject * obj1 = 0 ;
35910 PyObject * obj2 = 0 ;
35911 char * kwnames[] = {
35912 (char *) "self",(char *) "item",(char *) "cookie", NULL
35913 };
35914
35915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35917 if (!SWIG_IsOK(res1)) {
35918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35919 }
35920 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35921 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35922 if (!SWIG_IsOK(res2)) {
35923 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35924 }
35925 if (!argp2) {
35926 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35927 }
35928 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35929 res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0);
35930 if (!SWIG_IsOK(res3)) {
35931 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "3"" of type '" "void *""'");
35932 }
35933 {
35934 PyThreadState* __tstate = wxPyBeginAllowThreads();
35935 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
35936 wxPyEndAllowThreads(__tstate);
35937 if (PyErr_Occurred()) SWIG_fail;
35938 }
35939 resultobj = result;
35940 return resultobj;
35941 fail:
35942 return NULL;
35943 }
35944
35945
35946 SWIGINTERN PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35947 PyObject *resultobj = 0;
35948 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35949 wxTreeItemId *arg2 = 0 ;
35950 wxTreeItemId result;
35951 void *argp1 = 0 ;
35952 int res1 = 0 ;
35953 void *argp2 = 0 ;
35954 int res2 = 0 ;
35955 PyObject * obj0 = 0 ;
35956 PyObject * obj1 = 0 ;
35957 char * kwnames[] = {
35958 (char *) "self",(char *) "item", NULL
35959 };
35960
35961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) SWIG_fail;
35962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35963 if (!SWIG_IsOK(res1)) {
35964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35965 }
35966 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35967 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35968 if (!SWIG_IsOK(res2)) {
35969 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35970 }
35971 if (!argp2) {
35972 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35973 }
35974 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35975 {
35976 PyThreadState* __tstate = wxPyBeginAllowThreads();
35977 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
35978 wxPyEndAllowThreads(__tstate);
35979 if (PyErr_Occurred()) SWIG_fail;
35980 }
35981 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35982 return resultobj;
35983 fail:
35984 return NULL;
35985 }
35986
35987
35988 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35989 PyObject *resultobj = 0;
35990 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35991 wxTreeItemId *arg2 = 0 ;
35992 wxTreeItemId result;
35993 void *argp1 = 0 ;
35994 int res1 = 0 ;
35995 void *argp2 = 0 ;
35996 int res2 = 0 ;
35997 PyObject * obj0 = 0 ;
35998 PyObject * obj1 = 0 ;
35999 char * kwnames[] = {
36000 (char *) "self",(char *) "item", NULL
36001 };
36002
36003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) SWIG_fail;
36004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36005 if (!SWIG_IsOK(res1)) {
36006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36007 }
36008 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36009 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36010 if (!SWIG_IsOK(res2)) {
36011 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36012 }
36013 if (!argp2) {
36014 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36015 }
36016 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36017 {
36018 PyThreadState* __tstate = wxPyBeginAllowThreads();
36019 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
36020 wxPyEndAllowThreads(__tstate);
36021 if (PyErr_Occurred()) SWIG_fail;
36022 }
36023 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36024 return resultobj;
36025 fail:
36026 return NULL;
36027 }
36028
36029
36030 SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36031 PyObject *resultobj = 0;
36032 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36033 wxTreeItemId *arg2 = 0 ;
36034 wxTreeItemId result;
36035 void *argp1 = 0 ;
36036 int res1 = 0 ;
36037 void *argp2 = 0 ;
36038 int res2 = 0 ;
36039 PyObject * obj0 = 0 ;
36040 PyObject * obj1 = 0 ;
36041 char * kwnames[] = {
36042 (char *) "self",(char *) "item", NULL
36043 };
36044
36045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) SWIG_fail;
36046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36047 if (!SWIG_IsOK(res1)) {
36048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36049 }
36050 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36051 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36052 if (!SWIG_IsOK(res2)) {
36053 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36054 }
36055 if (!argp2) {
36056 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36057 }
36058 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36059 {
36060 PyThreadState* __tstate = wxPyBeginAllowThreads();
36061 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
36062 wxPyEndAllowThreads(__tstate);
36063 if (PyErr_Occurred()) SWIG_fail;
36064 }
36065 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36066 return resultobj;
36067 fail:
36068 return NULL;
36069 }
36070
36071
36072 SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36073 PyObject *resultobj = 0;
36074 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36075 wxTreeItemId result;
36076 void *argp1 = 0 ;
36077 int res1 = 0 ;
36078 PyObject *swig_obj[1] ;
36079
36080 if (!args) SWIG_fail;
36081 swig_obj[0] = args;
36082 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36083 if (!SWIG_IsOK(res1)) {
36084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstVisibleItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36085 }
36086 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36087 {
36088 PyThreadState* __tstate = wxPyBeginAllowThreads();
36089 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
36090 wxPyEndAllowThreads(__tstate);
36091 if (PyErr_Occurred()) SWIG_fail;
36092 }
36093 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36094 return resultobj;
36095 fail:
36096 return NULL;
36097 }
36098
36099
36100 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36101 PyObject *resultobj = 0;
36102 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36103 wxTreeItemId *arg2 = 0 ;
36104 wxTreeItemId result;
36105 void *argp1 = 0 ;
36106 int res1 = 0 ;
36107 void *argp2 = 0 ;
36108 int res2 = 0 ;
36109 PyObject * obj0 = 0 ;
36110 PyObject * obj1 = 0 ;
36111 char * kwnames[] = {
36112 (char *) "self",(char *) "item", NULL
36113 };
36114
36115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) SWIG_fail;
36116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36117 if (!SWIG_IsOK(res1)) {
36118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36119 }
36120 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36121 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36122 if (!SWIG_IsOK(res2)) {
36123 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36124 }
36125 if (!argp2) {
36126 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36127 }
36128 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36129 {
36130 PyThreadState* __tstate = wxPyBeginAllowThreads();
36131 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
36132 wxPyEndAllowThreads(__tstate);
36133 if (PyErr_Occurred()) SWIG_fail;
36134 }
36135 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36136 return resultobj;
36137 fail:
36138 return NULL;
36139 }
36140
36141
36142 SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36143 PyObject *resultobj = 0;
36144 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36145 wxTreeItemId *arg2 = 0 ;
36146 wxTreeItemId result;
36147 void *argp1 = 0 ;
36148 int res1 = 0 ;
36149 void *argp2 = 0 ;
36150 int res2 = 0 ;
36151 PyObject * obj0 = 0 ;
36152 PyObject * obj1 = 0 ;
36153 char * kwnames[] = {
36154 (char *) "self",(char *) "item", NULL
36155 };
36156
36157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) SWIG_fail;
36158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36159 if (!SWIG_IsOK(res1)) {
36160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36161 }
36162 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36163 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36164 if (!SWIG_IsOK(res2)) {
36165 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36166 }
36167 if (!argp2) {
36168 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36169 }
36170 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36171 {
36172 PyThreadState* __tstate = wxPyBeginAllowThreads();
36173 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
36174 wxPyEndAllowThreads(__tstate);
36175 if (PyErr_Occurred()) SWIG_fail;
36176 }
36177 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36178 return resultobj;
36179 fail:
36180 return NULL;
36181 }
36182
36183
36184 SWIGINTERN PyObject *_wrap_TreeCtrl_AddRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36185 PyObject *resultobj = 0;
36186 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36187 wxString *arg2 = 0 ;
36188 int arg3 = (int) -1 ;
36189 int arg4 = (int) -1 ;
36190 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
36191 wxTreeItemId result;
36192 void *argp1 = 0 ;
36193 int res1 = 0 ;
36194 bool temp2 = false ;
36195 int val3 ;
36196 int ecode3 = 0 ;
36197 int val4 ;
36198 int ecode4 = 0 ;
36199 int res5 = 0 ;
36200 PyObject * obj0 = 0 ;
36201 PyObject * obj1 = 0 ;
36202 PyObject * obj2 = 0 ;
36203 PyObject * obj3 = 0 ;
36204 PyObject * obj4 = 0 ;
36205 char * kwnames[] = {
36206 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36207 };
36208
36209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36211 if (!SWIG_IsOK(res1)) {
36212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AddRoot" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36213 }
36214 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36215 {
36216 arg2 = wxString_in_helper(obj1);
36217 if (arg2 == NULL) SWIG_fail;
36218 temp2 = true;
36219 }
36220 if (obj2) {
36221 ecode3 = SWIG_AsVal_int(obj2, &val3);
36222 if (!SWIG_IsOK(ecode3)) {
36223 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_AddRoot" "', expected argument " "3"" of type '" "int""'");
36224 }
36225 arg3 = static_cast< int >(val3);
36226 }
36227 if (obj3) {
36228 ecode4 = SWIG_AsVal_int(obj3, &val4);
36229 if (!SWIG_IsOK(ecode4)) {
36230 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AddRoot" "', expected argument " "4"" of type '" "int""'");
36231 }
36232 arg4 = static_cast< int >(val4);
36233 }
36234 if (obj4) {
36235 res5 = SWIG_ConvertPtr(obj4, SWIG_as_voidptrptr(&arg5), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36236 if (!SWIG_IsOK(res5)) {
36237 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "TreeCtrl_AddRoot" "', expected argument " "5"" of type '" "wxPyTreeItemData *""'");
36238 }
36239 }
36240 {
36241 PyThreadState* __tstate = wxPyBeginAllowThreads();
36242 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
36243 wxPyEndAllowThreads(__tstate);
36244 if (PyErr_Occurred()) SWIG_fail;
36245 }
36246 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36247 {
36248 if (temp2)
36249 delete arg2;
36250 }
36251 return resultobj;
36252 fail:
36253 {
36254 if (temp2)
36255 delete arg2;
36256 }
36257 return NULL;
36258 }
36259
36260
36261 SWIGINTERN PyObject *_wrap_TreeCtrl_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36262 PyObject *resultobj = 0;
36263 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36264 wxTreeItemId *arg2 = 0 ;
36265 wxString *arg3 = 0 ;
36266 int arg4 = (int) -1 ;
36267 int arg5 = (int) -1 ;
36268 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
36269 wxTreeItemId result;
36270 void *argp1 = 0 ;
36271 int res1 = 0 ;
36272 void *argp2 = 0 ;
36273 int res2 = 0 ;
36274 bool temp3 = false ;
36275 int val4 ;
36276 int ecode4 = 0 ;
36277 int val5 ;
36278 int ecode5 = 0 ;
36279 int res6 = 0 ;
36280 PyObject * obj0 = 0 ;
36281 PyObject * obj1 = 0 ;
36282 PyObject * obj2 = 0 ;
36283 PyObject * obj3 = 0 ;
36284 PyObject * obj4 = 0 ;
36285 PyObject * obj5 = 0 ;
36286 char * kwnames[] = {
36287 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36288 };
36289
36290 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36291 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36292 if (!SWIG_IsOK(res1)) {
36293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_PrependItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36294 }
36295 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36296 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36297 if (!SWIG_IsOK(res2)) {
36298 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36299 }
36300 if (!argp2) {
36301 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36302 }
36303 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36304 {
36305 arg3 = wxString_in_helper(obj2);
36306 if (arg3 == NULL) SWIG_fail;
36307 temp3 = true;
36308 }
36309 if (obj3) {
36310 ecode4 = SWIG_AsVal_int(obj3, &val4);
36311 if (!SWIG_IsOK(ecode4)) {
36312 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_PrependItem" "', expected argument " "4"" of type '" "int""'");
36313 }
36314 arg4 = static_cast< int >(val4);
36315 }
36316 if (obj4) {
36317 ecode5 = SWIG_AsVal_int(obj4, &val5);
36318 if (!SWIG_IsOK(ecode5)) {
36319 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_PrependItem" "', expected argument " "5"" of type '" "int""'");
36320 }
36321 arg5 = static_cast< int >(val5);
36322 }
36323 if (obj5) {
36324 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36325 if (!SWIG_IsOK(res6)) {
36326 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_PrependItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
36327 }
36328 }
36329 {
36330 PyThreadState* __tstate = wxPyBeginAllowThreads();
36331 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
36332 wxPyEndAllowThreads(__tstate);
36333 if (PyErr_Occurred()) SWIG_fail;
36334 }
36335 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36336 {
36337 if (temp3)
36338 delete arg3;
36339 }
36340 return resultobj;
36341 fail:
36342 {
36343 if (temp3)
36344 delete arg3;
36345 }
36346 return NULL;
36347 }
36348
36349
36350 SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36351 PyObject *resultobj = 0;
36352 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36353 wxTreeItemId *arg2 = 0 ;
36354 wxTreeItemId *arg3 = 0 ;
36355 wxString *arg4 = 0 ;
36356 int arg5 = (int) -1 ;
36357 int arg6 = (int) -1 ;
36358 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
36359 wxTreeItemId result;
36360 void *argp1 = 0 ;
36361 int res1 = 0 ;
36362 void *argp2 = 0 ;
36363 int res2 = 0 ;
36364 void *argp3 = 0 ;
36365 int res3 = 0 ;
36366 bool temp4 = false ;
36367 int val5 ;
36368 int ecode5 = 0 ;
36369 int val6 ;
36370 int ecode6 = 0 ;
36371 int res7 = 0 ;
36372 PyObject * obj0 = 0 ;
36373 PyObject * obj1 = 0 ;
36374 PyObject * obj2 = 0 ;
36375 PyObject * obj3 = 0 ;
36376 PyObject * obj4 = 0 ;
36377 PyObject * obj5 = 0 ;
36378 PyObject * obj6 = 0 ;
36379 char * kwnames[] = {
36380 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36381 };
36382
36383 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36384 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36385 if (!SWIG_IsOK(res1)) {
36386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36387 }
36388 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36389 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36390 if (!SWIG_IsOK(res2)) {
36391 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36392 }
36393 if (!argp2) {
36394 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36395 }
36396 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36397 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36398 if (!SWIG_IsOK(res3)) {
36399 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
36400 }
36401 if (!argp3) {
36402 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
36403 }
36404 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
36405 {
36406 arg4 = wxString_in_helper(obj3);
36407 if (arg4 == NULL) SWIG_fail;
36408 temp4 = true;
36409 }
36410 if (obj4) {
36411 ecode5 = SWIG_AsVal_int(obj4, &val5);
36412 if (!SWIG_IsOK(ecode5)) {
36413 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItem" "', expected argument " "5"" of type '" "int""'");
36414 }
36415 arg5 = static_cast< int >(val5);
36416 }
36417 if (obj5) {
36418 ecode6 = SWIG_AsVal_int(obj5, &val6);
36419 if (!SWIG_IsOK(ecode6)) {
36420 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItem" "', expected argument " "6"" of type '" "int""'");
36421 }
36422 arg6 = static_cast< int >(val6);
36423 }
36424 if (obj6) {
36425 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36426 if (!SWIG_IsOK(res7)) {
36427 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItem" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
36428 }
36429 }
36430 {
36431 PyThreadState* __tstate = wxPyBeginAllowThreads();
36432 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36433 wxPyEndAllowThreads(__tstate);
36434 if (PyErr_Occurred()) SWIG_fail;
36435 }
36436 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36437 {
36438 if (temp4)
36439 delete arg4;
36440 }
36441 return resultobj;
36442 fail:
36443 {
36444 if (temp4)
36445 delete arg4;
36446 }
36447 return NULL;
36448 }
36449
36450
36451 SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36452 PyObject *resultobj = 0;
36453 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36454 wxTreeItemId *arg2 = 0 ;
36455 size_t arg3 ;
36456 wxString *arg4 = 0 ;
36457 int arg5 = (int) -1 ;
36458 int arg6 = (int) -1 ;
36459 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
36460 wxTreeItemId result;
36461 void *argp1 = 0 ;
36462 int res1 = 0 ;
36463 void *argp2 = 0 ;
36464 int res2 = 0 ;
36465 size_t val3 ;
36466 int ecode3 = 0 ;
36467 bool temp4 = false ;
36468 int val5 ;
36469 int ecode5 = 0 ;
36470 int val6 ;
36471 int ecode6 = 0 ;
36472 int res7 = 0 ;
36473 PyObject * obj0 = 0 ;
36474 PyObject * obj1 = 0 ;
36475 PyObject * obj2 = 0 ;
36476 PyObject * obj3 = 0 ;
36477 PyObject * obj4 = 0 ;
36478 PyObject * obj5 = 0 ;
36479 PyObject * obj6 = 0 ;
36480 char * kwnames[] = {
36481 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36482 };
36483
36484 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36485 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36486 if (!SWIG_IsOK(res1)) {
36487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36488 }
36489 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36490 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36491 if (!SWIG_IsOK(res2)) {
36492 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36493 }
36494 if (!argp2) {
36495 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36496 }
36497 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36498 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
36499 if (!SWIG_IsOK(ecode3)) {
36500 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "3"" of type '" "size_t""'");
36501 }
36502 arg3 = static_cast< size_t >(val3);
36503 {
36504 arg4 = wxString_in_helper(obj3);
36505 if (arg4 == NULL) SWIG_fail;
36506 temp4 = true;
36507 }
36508 if (obj4) {
36509 ecode5 = SWIG_AsVal_int(obj4, &val5);
36510 if (!SWIG_IsOK(ecode5)) {
36511 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "5"" of type '" "int""'");
36512 }
36513 arg5 = static_cast< int >(val5);
36514 }
36515 if (obj5) {
36516 ecode6 = SWIG_AsVal_int(obj5, &val6);
36517 if (!SWIG_IsOK(ecode6)) {
36518 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "6"" of type '" "int""'");
36519 }
36520 arg6 = static_cast< int >(val6);
36521 }
36522 if (obj6) {
36523 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36524 if (!SWIG_IsOK(res7)) {
36525 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
36526 }
36527 }
36528 {
36529 PyThreadState* __tstate = wxPyBeginAllowThreads();
36530 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36531 wxPyEndAllowThreads(__tstate);
36532 if (PyErr_Occurred()) SWIG_fail;
36533 }
36534 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36535 {
36536 if (temp4)
36537 delete arg4;
36538 }
36539 return resultobj;
36540 fail:
36541 {
36542 if (temp4)
36543 delete arg4;
36544 }
36545 return NULL;
36546 }
36547
36548
36549 SWIGINTERN PyObject *_wrap_TreeCtrl_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36550 PyObject *resultobj = 0;
36551 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36552 wxTreeItemId *arg2 = 0 ;
36553 wxString *arg3 = 0 ;
36554 int arg4 = (int) -1 ;
36555 int arg5 = (int) -1 ;
36556 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
36557 wxTreeItemId result;
36558 void *argp1 = 0 ;
36559 int res1 = 0 ;
36560 void *argp2 = 0 ;
36561 int res2 = 0 ;
36562 bool temp3 = false ;
36563 int val4 ;
36564 int ecode4 = 0 ;
36565 int val5 ;
36566 int ecode5 = 0 ;
36567 int res6 = 0 ;
36568 PyObject * obj0 = 0 ;
36569 PyObject * obj1 = 0 ;
36570 PyObject * obj2 = 0 ;
36571 PyObject * obj3 = 0 ;
36572 PyObject * obj4 = 0 ;
36573 PyObject * obj5 = 0 ;
36574 char * kwnames[] = {
36575 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36576 };
36577
36578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36580 if (!SWIG_IsOK(res1)) {
36581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AppendItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36582 }
36583 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36584 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36585 if (!SWIG_IsOK(res2)) {
36586 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36587 }
36588 if (!argp2) {
36589 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36590 }
36591 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36592 {
36593 arg3 = wxString_in_helper(obj2);
36594 if (arg3 == NULL) SWIG_fail;
36595 temp3 = true;
36596 }
36597 if (obj3) {
36598 ecode4 = SWIG_AsVal_int(obj3, &val4);
36599 if (!SWIG_IsOK(ecode4)) {
36600 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AppendItem" "', expected argument " "4"" of type '" "int""'");
36601 }
36602 arg4 = static_cast< int >(val4);
36603 }
36604 if (obj4) {
36605 ecode5 = SWIG_AsVal_int(obj4, &val5);
36606 if (!SWIG_IsOK(ecode5)) {
36607 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_AppendItem" "', expected argument " "5"" of type '" "int""'");
36608 }
36609 arg5 = static_cast< int >(val5);
36610 }
36611 if (obj5) {
36612 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36613 if (!SWIG_IsOK(res6)) {
36614 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_AppendItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
36615 }
36616 }
36617 {
36618 PyThreadState* __tstate = wxPyBeginAllowThreads();
36619 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
36620 wxPyEndAllowThreads(__tstate);
36621 if (PyErr_Occurred()) SWIG_fail;
36622 }
36623 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36624 {
36625 if (temp3)
36626 delete arg3;
36627 }
36628 return resultobj;
36629 fail:
36630 {
36631 if (temp3)
36632 delete arg3;
36633 }
36634 return NULL;
36635 }
36636
36637
36638 SWIGINTERN PyObject *_wrap_TreeCtrl_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36639 PyObject *resultobj = 0;
36640 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36641 wxTreeItemId *arg2 = 0 ;
36642 void *argp1 = 0 ;
36643 int res1 = 0 ;
36644 void *argp2 = 0 ;
36645 int res2 = 0 ;
36646 PyObject * obj0 = 0 ;
36647 PyObject * obj1 = 0 ;
36648 char * kwnames[] = {
36649 (char *) "self",(char *) "item", NULL
36650 };
36651
36652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) SWIG_fail;
36653 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36654 if (!SWIG_IsOK(res1)) {
36655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Delete" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36656 }
36657 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36658 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36659 if (!SWIG_IsOK(res2)) {
36660 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36661 }
36662 if (!argp2) {
36663 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36664 }
36665 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36666 {
36667 PyThreadState* __tstate = wxPyBeginAllowThreads();
36668 (arg1)->Delete((wxTreeItemId const &)*arg2);
36669 wxPyEndAllowThreads(__tstate);
36670 if (PyErr_Occurred()) SWIG_fail;
36671 }
36672 resultobj = SWIG_Py_Void();
36673 return resultobj;
36674 fail:
36675 return NULL;
36676 }
36677
36678
36679 SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36680 PyObject *resultobj = 0;
36681 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36682 wxTreeItemId *arg2 = 0 ;
36683 void *argp1 = 0 ;
36684 int res1 = 0 ;
36685 void *argp2 = 0 ;
36686 int res2 = 0 ;
36687 PyObject * obj0 = 0 ;
36688 PyObject * obj1 = 0 ;
36689 char * kwnames[] = {
36690 (char *) "self",(char *) "item", NULL
36691 };
36692
36693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36695 if (!SWIG_IsOK(res1)) {
36696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36697 }
36698 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36699 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36700 if (!SWIG_IsOK(res2)) {
36701 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36702 }
36703 if (!argp2) {
36704 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36705 }
36706 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36707 {
36708 PyThreadState* __tstate = wxPyBeginAllowThreads();
36709 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
36710 wxPyEndAllowThreads(__tstate);
36711 if (PyErr_Occurred()) SWIG_fail;
36712 }
36713 resultobj = SWIG_Py_Void();
36714 return resultobj;
36715 fail:
36716 return NULL;
36717 }
36718
36719
36720 SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36721 PyObject *resultobj = 0;
36722 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36723 void *argp1 = 0 ;
36724 int res1 = 0 ;
36725 PyObject *swig_obj[1] ;
36726
36727 if (!args) SWIG_fail;
36728 swig_obj[0] = args;
36729 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36730 if (!SWIG_IsOK(res1)) {
36731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36732 }
36733 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36734 {
36735 PyThreadState* __tstate = wxPyBeginAllowThreads();
36736 (arg1)->DeleteAllItems();
36737 wxPyEndAllowThreads(__tstate);
36738 if (PyErr_Occurred()) SWIG_fail;
36739 }
36740 resultobj = SWIG_Py_Void();
36741 return resultobj;
36742 fail:
36743 return NULL;
36744 }
36745
36746
36747 SWIGINTERN PyObject *_wrap_TreeCtrl_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36748 PyObject *resultobj = 0;
36749 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36750 wxTreeItemId *arg2 = 0 ;
36751 void *argp1 = 0 ;
36752 int res1 = 0 ;
36753 void *argp2 = 0 ;
36754 int res2 = 0 ;
36755 PyObject * obj0 = 0 ;
36756 PyObject * obj1 = 0 ;
36757 char * kwnames[] = {
36758 (char *) "self",(char *) "item", NULL
36759 };
36760
36761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) SWIG_fail;
36762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36763 if (!SWIG_IsOK(res1)) {
36764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Expand" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36765 }
36766 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36767 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36768 if (!SWIG_IsOK(res2)) {
36769 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36770 }
36771 if (!argp2) {
36772 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36773 }
36774 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36775 {
36776 PyThreadState* __tstate = wxPyBeginAllowThreads();
36777 (arg1)->Expand((wxTreeItemId const &)*arg2);
36778 wxPyEndAllowThreads(__tstate);
36779 if (PyErr_Occurred()) SWIG_fail;
36780 }
36781 resultobj = SWIG_Py_Void();
36782 return resultobj;
36783 fail:
36784 return NULL;
36785 }
36786
36787
36788 SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAllChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36789 PyObject *resultobj = 0;
36790 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36791 wxTreeItemId *arg2 = 0 ;
36792 void *argp1 = 0 ;
36793 int res1 = 0 ;
36794 void *argp2 = 0 ;
36795 int res2 = 0 ;
36796 PyObject * obj0 = 0 ;
36797 PyObject * obj1 = 0 ;
36798 char * kwnames[] = {
36799 (char *) "self",(char *) "item", NULL
36800 };
36801
36802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ExpandAllChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36804 if (!SWIG_IsOK(res1)) {
36805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36806 }
36807 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36808 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36809 if (!SWIG_IsOK(res2)) {
36810 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36811 }
36812 if (!argp2) {
36813 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36814 }
36815 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36816 {
36817 PyThreadState* __tstate = wxPyBeginAllowThreads();
36818 (arg1)->ExpandAllChildren((wxTreeItemId const &)*arg2);
36819 wxPyEndAllowThreads(__tstate);
36820 if (PyErr_Occurred()) SWIG_fail;
36821 }
36822 resultobj = SWIG_Py_Void();
36823 return resultobj;
36824 fail:
36825 return NULL;
36826 }
36827
36828
36829 SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36830 PyObject *resultobj = 0;
36831 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36832 void *argp1 = 0 ;
36833 int res1 = 0 ;
36834 PyObject *swig_obj[1] ;
36835
36836 if (!args) SWIG_fail;
36837 swig_obj[0] = args;
36838 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36839 if (!SWIG_IsOK(res1)) {
36840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36841 }
36842 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36843 {
36844 PyThreadState* __tstate = wxPyBeginAllowThreads();
36845 (arg1)->ExpandAll();
36846 wxPyEndAllowThreads(__tstate);
36847 if (PyErr_Occurred()) SWIG_fail;
36848 }
36849 resultobj = SWIG_Py_Void();
36850 return resultobj;
36851 fail:
36852 return NULL;
36853 }
36854
36855
36856 SWIGINTERN PyObject *_wrap_TreeCtrl_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36857 PyObject *resultobj = 0;
36858 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36859 wxTreeItemId *arg2 = 0 ;
36860 void *argp1 = 0 ;
36861 int res1 = 0 ;
36862 void *argp2 = 0 ;
36863 int res2 = 0 ;
36864 PyObject * obj0 = 0 ;
36865 PyObject * obj1 = 0 ;
36866 char * kwnames[] = {
36867 (char *) "self",(char *) "item", NULL
36868 };
36869
36870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
36871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36872 if (!SWIG_IsOK(res1)) {
36873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Collapse" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36874 }
36875 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36876 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36877 if (!SWIG_IsOK(res2)) {
36878 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36879 }
36880 if (!argp2) {
36881 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36882 }
36883 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36884 {
36885 PyThreadState* __tstate = wxPyBeginAllowThreads();
36886 (arg1)->Collapse((wxTreeItemId const &)*arg2);
36887 wxPyEndAllowThreads(__tstate);
36888 if (PyErr_Occurred()) SWIG_fail;
36889 }
36890 resultobj = SWIG_Py_Void();
36891 return resultobj;
36892 fail:
36893 return NULL;
36894 }
36895
36896
36897 SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAllChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36898 PyObject *resultobj = 0;
36899 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36900 wxTreeItemId *arg2 = 0 ;
36901 void *argp1 = 0 ;
36902 int res1 = 0 ;
36903 void *argp2 = 0 ;
36904 int res2 = 0 ;
36905 PyObject * obj0 = 0 ;
36906 PyObject * obj1 = 0 ;
36907 char * kwnames[] = {
36908 (char *) "self",(char *) "item", NULL
36909 };
36910
36911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAllChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36913 if (!SWIG_IsOK(res1)) {
36914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAllChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36915 }
36916 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36917 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36918 if (!SWIG_IsOK(res2)) {
36919 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36920 }
36921 if (!argp2) {
36922 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36923 }
36924 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36925 {
36926 PyThreadState* __tstate = wxPyBeginAllowThreads();
36927 (arg1)->CollapseAllChildren((wxTreeItemId const &)*arg2);
36928 wxPyEndAllowThreads(__tstate);
36929 if (PyErr_Occurred()) SWIG_fail;
36930 }
36931 resultobj = SWIG_Py_Void();
36932 return resultobj;
36933 fail:
36934 return NULL;
36935 }
36936
36937
36938 SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36939 PyObject *resultobj = 0;
36940 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36941 void *argp1 = 0 ;
36942 int res1 = 0 ;
36943 PyObject *swig_obj[1] ;
36944
36945 if (!args) SWIG_fail;
36946 swig_obj[0] = args;
36947 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36948 if (!SWIG_IsOK(res1)) {
36949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36950 }
36951 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36952 {
36953 PyThreadState* __tstate = wxPyBeginAllowThreads();
36954 (arg1)->CollapseAll();
36955 wxPyEndAllowThreads(__tstate);
36956 if (PyErr_Occurred()) SWIG_fail;
36957 }
36958 resultobj = SWIG_Py_Void();
36959 return resultobj;
36960 fail:
36961 return NULL;
36962 }
36963
36964
36965 SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36966 PyObject *resultobj = 0;
36967 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36968 wxTreeItemId *arg2 = 0 ;
36969 void *argp1 = 0 ;
36970 int res1 = 0 ;
36971 void *argp2 = 0 ;
36972 int res2 = 0 ;
36973 PyObject * obj0 = 0 ;
36974 PyObject * obj1 = 0 ;
36975 char * kwnames[] = {
36976 (char *) "self",(char *) "item", NULL
36977 };
36978
36979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) SWIG_fail;
36980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36981 if (!SWIG_IsOK(res1)) {
36982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36983 }
36984 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36985 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36986 if (!SWIG_IsOK(res2)) {
36987 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36988 }
36989 if (!argp2) {
36990 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36991 }
36992 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36993 {
36994 PyThreadState* __tstate = wxPyBeginAllowThreads();
36995 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
36996 wxPyEndAllowThreads(__tstate);
36997 if (PyErr_Occurred()) SWIG_fail;
36998 }
36999 resultobj = SWIG_Py_Void();
37000 return resultobj;
37001 fail:
37002 return NULL;
37003 }
37004
37005
37006 SWIGINTERN PyObject *_wrap_TreeCtrl_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37007 PyObject *resultobj = 0;
37008 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37009 wxTreeItemId *arg2 = 0 ;
37010 void *argp1 = 0 ;
37011 int res1 = 0 ;
37012 void *argp2 = 0 ;
37013 int res2 = 0 ;
37014 PyObject * obj0 = 0 ;
37015 PyObject * obj1 = 0 ;
37016 char * kwnames[] = {
37017 (char *) "self",(char *) "item", NULL
37018 };
37019
37020 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) SWIG_fail;
37021 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37022 if (!SWIG_IsOK(res1)) {
37023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Toggle" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37024 }
37025 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37026 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37027 if (!SWIG_IsOK(res2)) {
37028 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37029 }
37030 if (!argp2) {
37031 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37032 }
37033 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37034 {
37035 PyThreadState* __tstate = wxPyBeginAllowThreads();
37036 (arg1)->Toggle((wxTreeItemId const &)*arg2);
37037 wxPyEndAllowThreads(__tstate);
37038 if (PyErr_Occurred()) SWIG_fail;
37039 }
37040 resultobj = SWIG_Py_Void();
37041 return resultobj;
37042 fail:
37043 return NULL;
37044 }
37045
37046
37047 SWIGINTERN PyObject *_wrap_TreeCtrl_Unselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37048 PyObject *resultobj = 0;
37049 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37050 void *argp1 = 0 ;
37051 int res1 = 0 ;
37052 PyObject *swig_obj[1] ;
37053
37054 if (!args) SWIG_fail;
37055 swig_obj[0] = args;
37056 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37057 if (!SWIG_IsOK(res1)) {
37058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Unselect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37059 }
37060 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37061 {
37062 PyThreadState* __tstate = wxPyBeginAllowThreads();
37063 (arg1)->Unselect();
37064 wxPyEndAllowThreads(__tstate);
37065 if (PyErr_Occurred()) SWIG_fail;
37066 }
37067 resultobj = SWIG_Py_Void();
37068 return resultobj;
37069 fail:
37070 return NULL;
37071 }
37072
37073
37074 SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37075 PyObject *resultobj = 0;
37076 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37077 wxTreeItemId *arg2 = 0 ;
37078 void *argp1 = 0 ;
37079 int res1 = 0 ;
37080 void *argp2 = 0 ;
37081 int res2 = 0 ;
37082 PyObject * obj0 = 0 ;
37083 PyObject * obj1 = 0 ;
37084 char * kwnames[] = {
37085 (char *) "self",(char *) "item", NULL
37086 };
37087
37088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) SWIG_fail;
37089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37090 if (!SWIG_IsOK(res1)) {
37091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37092 }
37093 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37094 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37095 if (!SWIG_IsOK(res2)) {
37096 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37097 }
37098 if (!argp2) {
37099 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37100 }
37101 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37102 {
37103 PyThreadState* __tstate = wxPyBeginAllowThreads();
37104 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
37105 wxPyEndAllowThreads(__tstate);
37106 if (PyErr_Occurred()) SWIG_fail;
37107 }
37108 resultobj = SWIG_Py_Void();
37109 return resultobj;
37110 fail:
37111 return NULL;
37112 }
37113
37114
37115 SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37116 PyObject *resultobj = 0;
37117 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37118 void *argp1 = 0 ;
37119 int res1 = 0 ;
37120 PyObject *swig_obj[1] ;
37121
37122 if (!args) SWIG_fail;
37123 swig_obj[0] = args;
37124 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37125 if (!SWIG_IsOK(res1)) {
37126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37127 }
37128 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37129 {
37130 PyThreadState* __tstate = wxPyBeginAllowThreads();
37131 (arg1)->UnselectAll();
37132 wxPyEndAllowThreads(__tstate);
37133 if (PyErr_Occurred()) SWIG_fail;
37134 }
37135 resultobj = SWIG_Py_Void();
37136 return resultobj;
37137 fail:
37138 return NULL;
37139 }
37140
37141
37142 SWIGINTERN PyObject *_wrap_TreeCtrl_SelectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37143 PyObject *resultobj = 0;
37144 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37145 wxTreeItemId *arg2 = 0 ;
37146 bool arg3 = (bool) true ;
37147 void *argp1 = 0 ;
37148 int res1 = 0 ;
37149 void *argp2 = 0 ;
37150 int res2 = 0 ;
37151 bool val3 ;
37152 int ecode3 = 0 ;
37153 PyObject * obj0 = 0 ;
37154 PyObject * obj1 = 0 ;
37155 PyObject * obj2 = 0 ;
37156 char * kwnames[] = {
37157 (char *) "self",(char *) "item",(char *) "select", NULL
37158 };
37159
37160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37162 if (!SWIG_IsOK(res1)) {
37163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SelectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37164 }
37165 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37166 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37167 if (!SWIG_IsOK(res2)) {
37168 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37169 }
37170 if (!argp2) {
37171 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37172 }
37173 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37174 if (obj2) {
37175 ecode3 = SWIG_AsVal_bool(obj2, &val3);
37176 if (!SWIG_IsOK(ecode3)) {
37177 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SelectItem" "', expected argument " "3"" of type '" "bool""'");
37178 }
37179 arg3 = static_cast< bool >(val3);
37180 }
37181 {
37182 PyThreadState* __tstate = wxPyBeginAllowThreads();
37183 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
37184 wxPyEndAllowThreads(__tstate);
37185 if (PyErr_Occurred()) SWIG_fail;
37186 }
37187 resultobj = SWIG_Py_Void();
37188 return resultobj;
37189 fail:
37190 return NULL;
37191 }
37192
37193
37194 SWIGINTERN PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37195 PyObject *resultobj = 0;
37196 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37197 wxTreeItemId *arg2 = 0 ;
37198 void *argp1 = 0 ;
37199 int res1 = 0 ;
37200 void *argp2 = 0 ;
37201 int res2 = 0 ;
37202 PyObject * obj0 = 0 ;
37203 PyObject * obj1 = 0 ;
37204 char * kwnames[] = {
37205 (char *) "self",(char *) "item", NULL
37206 };
37207
37208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) SWIG_fail;
37209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37210 if (!SWIG_IsOK(res1)) {
37211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37212 }
37213 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37214 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37215 if (!SWIG_IsOK(res2)) {
37216 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37217 }
37218 if (!argp2) {
37219 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37220 }
37221 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37222 {
37223 PyThreadState* __tstate = wxPyBeginAllowThreads();
37224 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
37225 wxPyEndAllowThreads(__tstate);
37226 if (PyErr_Occurred()) SWIG_fail;
37227 }
37228 resultobj = SWIG_Py_Void();
37229 return resultobj;
37230 fail:
37231 return NULL;
37232 }
37233
37234
37235 SWIGINTERN PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37236 PyObject *resultobj = 0;
37237 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37238 wxTreeItemId *arg2 = 0 ;
37239 void *argp1 = 0 ;
37240 int res1 = 0 ;
37241 void *argp2 = 0 ;
37242 int res2 = 0 ;
37243 PyObject * obj0 = 0 ;
37244 PyObject * obj1 = 0 ;
37245 char * kwnames[] = {
37246 (char *) "self",(char *) "item", NULL
37247 };
37248
37249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
37250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37251 if (!SWIG_IsOK(res1)) {
37252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37253 }
37254 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37255 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37256 if (!SWIG_IsOK(res2)) {
37257 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37258 }
37259 if (!argp2) {
37260 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37261 }
37262 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37263 {
37264 PyThreadState* __tstate = wxPyBeginAllowThreads();
37265 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
37266 wxPyEndAllowThreads(__tstate);
37267 if (PyErr_Occurred()) SWIG_fail;
37268 }
37269 resultobj = SWIG_Py_Void();
37270 return resultobj;
37271 fail:
37272 return NULL;
37273 }
37274
37275
37276 SWIGINTERN PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37277 PyObject *resultobj = 0;
37278 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37279 wxTreeItemId *arg2 = 0 ;
37280 void *argp1 = 0 ;
37281 int res1 = 0 ;
37282 void *argp2 = 0 ;
37283 int res2 = 0 ;
37284 PyObject * obj0 = 0 ;
37285 PyObject * obj1 = 0 ;
37286 char * kwnames[] = {
37287 (char *) "self",(char *) "item", NULL
37288 };
37289
37290 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) SWIG_fail;
37291 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37292 if (!SWIG_IsOK(res1)) {
37293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37294 }
37295 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37296 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37297 if (!SWIG_IsOK(res2)) {
37298 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37299 }
37300 if (!argp2) {
37301 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37302 }
37303 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37304 {
37305 PyThreadState* __tstate = wxPyBeginAllowThreads();
37306 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
37307 wxPyEndAllowThreads(__tstate);
37308 if (PyErr_Occurred()) SWIG_fail;
37309 }
37310 resultobj = SWIG_Py_Void();
37311 return resultobj;
37312 fail:
37313 return NULL;
37314 }
37315
37316
37317 SWIGINTERN PyObject *_wrap_TreeCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37318 PyObject *resultobj = 0;
37319 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37320 wxTreeItemId *arg2 = 0 ;
37321 void *argp1 = 0 ;
37322 int res1 = 0 ;
37323 void *argp2 = 0 ;
37324 int res2 = 0 ;
37325 PyObject * obj0 = 0 ;
37326 PyObject * obj1 = 0 ;
37327 char * kwnames[] = {
37328 (char *) "self",(char *) "item", NULL
37329 };
37330
37331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
37332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37333 if (!SWIG_IsOK(res1)) {
37334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37335 }
37336 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37337 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37338 if (!SWIG_IsOK(res2)) {
37339 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37340 }
37341 if (!argp2) {
37342 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37343 }
37344 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37345 {
37346 PyThreadState* __tstate = wxPyBeginAllowThreads();
37347 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
37348 wxPyEndAllowThreads(__tstate);
37349 if (PyErr_Occurred()) SWIG_fail;
37350 }
37351 resultobj = SWIG_Py_Void();
37352 return resultobj;
37353 fail:
37354 return NULL;
37355 }
37356
37357
37358 SWIGINTERN PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37359 PyObject *resultobj = 0;
37360 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37361 wxTextCtrl *result = 0 ;
37362 void *argp1 = 0 ;
37363 int res1 = 0 ;
37364 PyObject *swig_obj[1] ;
37365
37366 if (!args) SWIG_fail;
37367 swig_obj[0] = args;
37368 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37369 if (!SWIG_IsOK(res1)) {
37370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
37371 }
37372 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37373 {
37374 PyThreadState* __tstate = wxPyBeginAllowThreads();
37375 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
37376 wxPyEndAllowThreads(__tstate);
37377 if (PyErr_Occurred()) SWIG_fail;
37378 }
37379 {
37380 resultobj = wxPyMake_wxObject(result, 0);
37381 }
37382 return resultobj;
37383 fail:
37384 return NULL;
37385 }
37386
37387
37388 SWIGINTERN PyObject *_wrap_TreeCtrl_EndEditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37389 PyObject *resultobj = 0;
37390 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37391 wxTreeItemId *arg2 = 0 ;
37392 bool arg3 = (bool) false ;
37393 void *argp1 = 0 ;
37394 int res1 = 0 ;
37395 void *argp2 = 0 ;
37396 int res2 = 0 ;
37397 bool val3 ;
37398 int ecode3 = 0 ;
37399 PyObject * obj0 = 0 ;
37400 PyObject * obj1 = 0 ;
37401 PyObject * obj2 = 0 ;
37402 char * kwnames[] = {
37403 (char *) "self",(char *) "item",(char *) "discardChanges", NULL
37404 };
37405
37406 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_EndEditLabel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37407 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37408 if (!SWIG_IsOK(res1)) {
37409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37410 }
37411 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37412 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37413 if (!SWIG_IsOK(res2)) {
37414 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37415 }
37416 if (!argp2) {
37417 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37418 }
37419 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37420 if (obj2) {
37421 ecode3 = SWIG_AsVal_bool(obj2, &val3);
37422 if (!SWIG_IsOK(ecode3)) {
37423 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "3"" of type '" "bool""'");
37424 }
37425 arg3 = static_cast< bool >(val3);
37426 }
37427 {
37428 PyThreadState* __tstate = wxPyBeginAllowThreads();
37429 (arg1)->EndEditLabel((wxTreeItemId const &)*arg2,arg3);
37430 wxPyEndAllowThreads(__tstate);
37431 if (PyErr_Occurred()) SWIG_fail;
37432 }
37433 resultobj = SWIG_Py_Void();
37434 return resultobj;
37435 fail:
37436 return NULL;
37437 }
37438
37439
37440 SWIGINTERN PyObject *_wrap_TreeCtrl_SortChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37441 PyObject *resultobj = 0;
37442 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37443 wxTreeItemId *arg2 = 0 ;
37444 void *argp1 = 0 ;
37445 int res1 = 0 ;
37446 void *argp2 = 0 ;
37447 int res2 = 0 ;
37448 PyObject * obj0 = 0 ;
37449 PyObject * obj1 = 0 ;
37450 char * kwnames[] = {
37451 (char *) "self",(char *) "item", NULL
37452 };
37453
37454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) SWIG_fail;
37455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37456 if (!SWIG_IsOK(res1)) {
37457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SortChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37458 }
37459 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37460 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37461 if (!SWIG_IsOK(res2)) {
37462 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37463 }
37464 if (!argp2) {
37465 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37466 }
37467 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37468 {
37469 PyThreadState* __tstate = wxPyBeginAllowThreads();
37470 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
37471 wxPyEndAllowThreads(__tstate);
37472 if (PyErr_Occurred()) SWIG_fail;
37473 }
37474 resultobj = SWIG_Py_Void();
37475 return resultobj;
37476 fail:
37477 return NULL;
37478 }
37479
37480
37481 SWIGINTERN PyObject *_wrap_TreeCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37482 PyObject *resultobj = 0;
37483 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37484 wxPoint *arg2 = 0 ;
37485 int *arg3 = 0 ;
37486 wxTreeItemId result;
37487 void *argp1 = 0 ;
37488 int res1 = 0 ;
37489 wxPoint temp2 ;
37490 int temp3 ;
37491 int res3 = SWIG_TMPOBJ ;
37492 PyObject * obj0 = 0 ;
37493 PyObject * obj1 = 0 ;
37494 char * kwnames[] = {
37495 (char *) "self",(char *) "point", NULL
37496 };
37497
37498 arg3 = &temp3;
37499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
37500 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37501 if (!SWIG_IsOK(res1)) {
37502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37503 }
37504 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37505 {
37506 arg2 = &temp2;
37507 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37508 }
37509 {
37510 PyThreadState* __tstate = wxPyBeginAllowThreads();
37511 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
37512 wxPyEndAllowThreads(__tstate);
37513 if (PyErr_Occurred()) SWIG_fail;
37514 }
37515 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37516 if (SWIG_IsTmpObj(res3)) {
37517 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
37518 } else {
37519 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
37520 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
37521 }
37522 return resultobj;
37523 fail:
37524 return NULL;
37525 }
37526
37527
37528 SWIGINTERN PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37529 PyObject *resultobj = 0;
37530 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37531 wxTreeItemId *arg2 = 0 ;
37532 bool arg3 = (bool) false ;
37533 PyObject *result = 0 ;
37534 void *argp1 = 0 ;
37535 int res1 = 0 ;
37536 void *argp2 = 0 ;
37537 int res2 = 0 ;
37538 bool val3 ;
37539 int ecode3 = 0 ;
37540 PyObject * obj0 = 0 ;
37541 PyObject * obj1 = 0 ;
37542 PyObject * obj2 = 0 ;
37543 char * kwnames[] = {
37544 (char *) "self",(char *) "item",(char *) "textOnly", NULL
37545 };
37546
37547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37549 if (!SWIG_IsOK(res1)) {
37550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37551 }
37552 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37553 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37554 if (!SWIG_IsOK(res2)) {
37555 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37556 }
37557 if (!argp2) {
37558 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37559 }
37560 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37561 if (obj2) {
37562 ecode3 = SWIG_AsVal_bool(obj2, &val3);
37563 if (!SWIG_IsOK(ecode3)) {
37564 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "3"" of type '" "bool""'");
37565 }
37566 arg3 = static_cast< bool >(val3);
37567 }
37568 {
37569 PyThreadState* __tstate = wxPyBeginAllowThreads();
37570 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
37571 wxPyEndAllowThreads(__tstate);
37572 if (PyErr_Occurred()) SWIG_fail;
37573 }
37574 resultobj = result;
37575 return resultobj;
37576 fail:
37577 return NULL;
37578 }
37579
37580
37581 SWIGINTERN PyObject *_wrap_TreeCtrl_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37582 PyObject *resultobj = 0;
37583 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37584 wxTreeItemId *arg2 = 0 ;
37585 int arg3 ;
37586 void *argp1 = 0 ;
37587 int res1 = 0 ;
37588 void *argp2 = 0 ;
37589 int res2 = 0 ;
37590 int val3 ;
37591 int ecode3 = 0 ;
37592 PyObject * obj0 = 0 ;
37593 PyObject * obj1 = 0 ;
37594 PyObject * obj2 = 0 ;
37595 char * kwnames[] = {
37596 (char *) "self",(char *) "node",(char *) "state", NULL
37597 };
37598
37599 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37601 if (!SWIG_IsOK(res1)) {
37602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetState" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37603 }
37604 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37605 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37606 if (!SWIG_IsOK(res2)) {
37607 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37608 }
37609 if (!argp2) {
37610 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37611 }
37612 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37613 ecode3 = SWIG_AsVal_int(obj2, &val3);
37614 if (!SWIG_IsOK(ecode3)) {
37615 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetState" "', expected argument " "3"" of type '" "int""'");
37616 }
37617 arg3 = static_cast< int >(val3);
37618 {
37619 PyThreadState* __tstate = wxPyBeginAllowThreads();
37620 (arg1)->SetState((wxTreeItemId const &)*arg2,arg3);
37621 wxPyEndAllowThreads(__tstate);
37622 if (PyErr_Occurred()) SWIG_fail;
37623 }
37624 resultobj = SWIG_Py_Void();
37625 return resultobj;
37626 fail:
37627 return NULL;
37628 }
37629
37630
37631 SWIGINTERN PyObject *_wrap_TreeCtrl_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37632 PyObject *resultobj = 0;
37633 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37634 wxTreeItemId *arg2 = 0 ;
37635 int result;
37636 void *argp1 = 0 ;
37637 int res1 = 0 ;
37638 void *argp2 = 0 ;
37639 int res2 = 0 ;
37640 PyObject * obj0 = 0 ;
37641 PyObject * obj1 = 0 ;
37642 char * kwnames[] = {
37643 (char *) "self",(char *) "node", NULL
37644 };
37645
37646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetState",kwnames,&obj0,&obj1)) SWIG_fail;
37647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37648 if (!SWIG_IsOK(res1)) {
37649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetState" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37650 }
37651 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37652 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37653 if (!SWIG_IsOK(res2)) {
37654 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37655 }
37656 if (!argp2) {
37657 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37658 }
37659 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37660 {
37661 PyThreadState* __tstate = wxPyBeginAllowThreads();
37662 result = (int)(arg1)->GetState((wxTreeItemId const &)*arg2);
37663 wxPyEndAllowThreads(__tstate);
37664 if (PyErr_Occurred()) SWIG_fail;
37665 }
37666 resultobj = SWIG_From_int(static_cast< int >(result));
37667 return resultobj;
37668 fail:
37669 return NULL;
37670 }
37671
37672
37673 SWIGINTERN PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37674 PyObject *resultobj = 0;
37675 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
37676 SwigValueWrapper<wxVisualAttributes > result;
37677 int val1 ;
37678 int ecode1 = 0 ;
37679 PyObject * obj0 = 0 ;
37680 char * kwnames[] = {
37681 (char *) "variant", NULL
37682 };
37683
37684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
37685 if (obj0) {
37686 ecode1 = SWIG_AsVal_int(obj0, &val1);
37687 if (!SWIG_IsOK(ecode1)) {
37688 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TreeCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
37689 }
37690 arg1 = static_cast< wxWindowVariant >(val1);
37691 }
37692 {
37693 if (!wxPyCheckForApp()) SWIG_fail;
37694 PyThreadState* __tstate = wxPyBeginAllowThreads();
37695 result = wxPyTreeCtrl::GetClassDefaultAttributes(arg1);
37696 wxPyEndAllowThreads(__tstate);
37697 if (PyErr_Occurred()) SWIG_fail;
37698 }
37699 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
37700 return resultobj;
37701 fail:
37702 return NULL;
37703 }
37704
37705
37706 SWIGINTERN PyObject *_wrap_TreeCtrl_SetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37707 PyObject *resultobj = 0;
37708 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37709 bool arg2 ;
37710 void *argp1 = 0 ;
37711 int res1 = 0 ;
37712 bool val2 ;
37713 int ecode2 = 0 ;
37714 PyObject * obj0 = 0 ;
37715 PyObject * obj1 = 0 ;
37716 char * kwnames[] = {
37717 (char *) "self",(char *) "q", NULL
37718 };
37719
37720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetQuickBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
37721 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37722 if (!SWIG_IsOK(res1)) {
37723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37724 }
37725 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37726 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37727 if (!SWIG_IsOK(ecode2)) {
37728 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "2"" of type '" "bool""'");
37729 }
37730 arg2 = static_cast< bool >(val2);
37731 {
37732 PyThreadState* __tstate = wxPyBeginAllowThreads();
37733 (arg1)->SetQuickBestSize(arg2);
37734 wxPyEndAllowThreads(__tstate);
37735 if (PyErr_Occurred()) SWIG_fail;
37736 }
37737 resultobj = SWIG_Py_Void();
37738 return resultobj;
37739 fail:
37740 return NULL;
37741 }
37742
37743
37744 SWIGINTERN PyObject *_wrap_TreeCtrl_GetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37745 PyObject *resultobj = 0;
37746 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37747 bool result;
37748 void *argp1 = 0 ;
37749 int res1 = 0 ;
37750 PyObject *swig_obj[1] ;
37751
37752 if (!args) SWIG_fail;
37753 swig_obj[0] = args;
37754 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37755 if (!SWIG_IsOK(res1)) {
37756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
37757 }
37758 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37759 {
37760 PyThreadState* __tstate = wxPyBeginAllowThreads();
37761 result = (bool)((wxPyTreeCtrl const *)arg1)->GetQuickBestSize();
37762 wxPyEndAllowThreads(__tstate);
37763 if (PyErr_Occurred()) SWIG_fail;
37764 }
37765 {
37766 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37767 }
37768 return resultobj;
37769 fail:
37770 return NULL;
37771 }
37772
37773
37774 SWIGINTERN PyObject *TreeCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37775 PyObject *obj;
37776 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37777 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeCtrl, SWIG_NewClientData(obj));
37778 return SWIG_Py_Void();
37779 }
37780
37781 SWIGINTERN PyObject *TreeCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37782 return SWIG_Python_InitShadowInstance(args);
37783 }
37784
37785 SWIGINTERN int DirDialogDefaultFolderStr_set(PyObject *) {
37786 SWIG_Error(SWIG_AttributeError,"Variable DirDialogDefaultFolderStr is read-only.");
37787 return 1;
37788 }
37789
37790
37791 SWIGINTERN PyObject *DirDialogDefaultFolderStr_get(void) {
37792 PyObject *pyobj = 0;
37793
37794 {
37795 #if wxUSE_UNICODE
37796 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37797 #else
37798 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37799 #endif
37800 }
37801 return pyobj;
37802 }
37803
37804
37805 SWIGINTERN PyObject *_wrap_new_GenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37806 PyObject *resultobj = 0;
37807 wxWindow *arg1 = (wxWindow *) 0 ;
37808 int arg2 = (int) (int)-1 ;
37809 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
37810 wxString *arg3 = (wxString *) &arg3_defvalue ;
37811 wxPoint const &arg4_defvalue = wxDefaultPosition ;
37812 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
37813 wxSize const &arg5_defvalue = wxDefaultSize ;
37814 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
37815 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37816 wxString const &arg7_defvalue = wxPyEmptyString ;
37817 wxString *arg7 = (wxString *) &arg7_defvalue ;
37818 int arg8 = (int) 0 ;
37819 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
37820 wxString *arg9 = (wxString *) &arg9_defvalue ;
37821 wxGenericDirCtrl *result = 0 ;
37822 void *argp1 = 0 ;
37823 int res1 = 0 ;
37824 int val2 ;
37825 int ecode2 = 0 ;
37826 bool temp3 = false ;
37827 wxPoint temp4 ;
37828 wxSize temp5 ;
37829 long val6 ;
37830 int ecode6 = 0 ;
37831 bool temp7 = false ;
37832 int val8 ;
37833 int ecode8 = 0 ;
37834 bool temp9 = false ;
37835 PyObject * obj0 = 0 ;
37836 PyObject * obj1 = 0 ;
37837 PyObject * obj2 = 0 ;
37838 PyObject * obj3 = 0 ;
37839 PyObject * obj4 = 0 ;
37840 PyObject * obj5 = 0 ;
37841 PyObject * obj6 = 0 ;
37842 PyObject * obj7 = 0 ;
37843 PyObject * obj8 = 0 ;
37844 char * kwnames[] = {
37845 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37846 };
37847
37848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
37849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37850 if (!SWIG_IsOK(res1)) {
37851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GenericDirCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
37852 }
37853 arg1 = reinterpret_cast< wxWindow * >(argp1);
37854 if (obj1) {
37855 ecode2 = SWIG_AsVal_int(obj1, &val2);
37856 if (!SWIG_IsOK(ecode2)) {
37857 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GenericDirCtrl" "', expected argument " "2"" of type '" "int""'");
37858 }
37859 arg2 = static_cast< int >(val2);
37860 }
37861 if (obj2) {
37862 {
37863 arg3 = wxString_in_helper(obj2);
37864 if (arg3 == NULL) SWIG_fail;
37865 temp3 = true;
37866 }
37867 }
37868 if (obj3) {
37869 {
37870 arg4 = &temp4;
37871 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
37872 }
37873 }
37874 if (obj4) {
37875 {
37876 arg5 = &temp5;
37877 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
37878 }
37879 }
37880 if (obj5) {
37881 ecode6 = SWIG_AsVal_long(obj5, &val6);
37882 if (!SWIG_IsOK(ecode6)) {
37883 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GenericDirCtrl" "', expected argument " "6"" of type '" "long""'");
37884 }
37885 arg6 = static_cast< long >(val6);
37886 }
37887 if (obj6) {
37888 {
37889 arg7 = wxString_in_helper(obj6);
37890 if (arg7 == NULL) SWIG_fail;
37891 temp7 = true;
37892 }
37893 }
37894 if (obj7) {
37895 ecode8 = SWIG_AsVal_int(obj7, &val8);
37896 if (!SWIG_IsOK(ecode8)) {
37897 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_GenericDirCtrl" "', expected argument " "8"" of type '" "int""'");
37898 }
37899 arg8 = static_cast< int >(val8);
37900 }
37901 if (obj8) {
37902 {
37903 arg9 = wxString_in_helper(obj8);
37904 if (arg9 == NULL) SWIG_fail;
37905 temp9 = true;
37906 }
37907 }
37908 {
37909 if (!wxPyCheckForApp()) SWIG_fail;
37910 PyThreadState* __tstate = wxPyBeginAllowThreads();
37911 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
37912 wxPyEndAllowThreads(__tstate);
37913 if (PyErr_Occurred()) SWIG_fail;
37914 }
37915 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_NEW | 0 );
37916 {
37917 if (temp3)
37918 delete arg3;
37919 }
37920 {
37921 if (temp7)
37922 delete arg7;
37923 }
37924 {
37925 if (temp9)
37926 delete arg9;
37927 }
37928 return resultobj;
37929 fail:
37930 {
37931 if (temp3)
37932 delete arg3;
37933 }
37934 {
37935 if (temp7)
37936 delete arg7;
37937 }
37938 {
37939 if (temp9)
37940 delete arg9;
37941 }
37942 return NULL;
37943 }
37944
37945
37946 SWIGINTERN PyObject *_wrap_new_PreGenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37947 PyObject *resultobj = 0;
37948 wxGenericDirCtrl *result = 0 ;
37949
37950 if (!SWIG_Python_UnpackTuple(args,"new_PreGenericDirCtrl",0,0,0)) SWIG_fail;
37951 {
37952 if (!wxPyCheckForApp()) SWIG_fail;
37953 PyThreadState* __tstate = wxPyBeginAllowThreads();
37954 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
37955 wxPyEndAllowThreads(__tstate);
37956 if (PyErr_Occurred()) SWIG_fail;
37957 }
37958 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_OWN | 0 );
37959 return resultobj;
37960 fail:
37961 return NULL;
37962 }
37963
37964
37965 SWIGINTERN PyObject *_wrap_GenericDirCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37966 PyObject *resultobj = 0;
37967 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37968 wxWindow *arg2 = (wxWindow *) 0 ;
37969 int arg3 = (int) (int)-1 ;
37970 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
37971 wxString *arg4 = (wxString *) &arg4_defvalue ;
37972 wxPoint const &arg5_defvalue = wxDefaultPosition ;
37973 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
37974 wxSize const &arg6_defvalue = wxDefaultSize ;
37975 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
37976 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37977 wxString const &arg8_defvalue = wxPyEmptyString ;
37978 wxString *arg8 = (wxString *) &arg8_defvalue ;
37979 int arg9 = (int) 0 ;
37980 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
37981 wxString *arg10 = (wxString *) &arg10_defvalue ;
37982 bool result;
37983 void *argp1 = 0 ;
37984 int res1 = 0 ;
37985 void *argp2 = 0 ;
37986 int res2 = 0 ;
37987 int val3 ;
37988 int ecode3 = 0 ;
37989 bool temp4 = false ;
37990 wxPoint temp5 ;
37991 wxSize temp6 ;
37992 long val7 ;
37993 int ecode7 = 0 ;
37994 bool temp8 = false ;
37995 int val9 ;
37996 int ecode9 = 0 ;
37997 bool temp10 = false ;
37998 PyObject * obj0 = 0 ;
37999 PyObject * obj1 = 0 ;
38000 PyObject * obj2 = 0 ;
38001 PyObject * obj3 = 0 ;
38002 PyObject * obj4 = 0 ;
38003 PyObject * obj5 = 0 ;
38004 PyObject * obj6 = 0 ;
38005 PyObject * obj7 = 0 ;
38006 PyObject * obj8 = 0 ;
38007 PyObject * obj9 = 0 ;
38008 char * kwnames[] = {
38009 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
38010 };
38011
38012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
38013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38014 if (!SWIG_IsOK(res1)) {
38015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_Create" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38016 }
38017 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38018 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
38019 if (!SWIG_IsOK(res2)) {
38020 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
38021 }
38022 arg2 = reinterpret_cast< wxWindow * >(argp2);
38023 if (obj2) {
38024 ecode3 = SWIG_AsVal_int(obj2, &val3);
38025 if (!SWIG_IsOK(ecode3)) {
38026 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GenericDirCtrl_Create" "', expected argument " "3"" of type '" "int""'");
38027 }
38028 arg3 = static_cast< int >(val3);
38029 }
38030 if (obj3) {
38031 {
38032 arg4 = wxString_in_helper(obj3);
38033 if (arg4 == NULL) SWIG_fail;
38034 temp4 = true;
38035 }
38036 }
38037 if (obj4) {
38038 {
38039 arg5 = &temp5;
38040 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
38041 }
38042 }
38043 if (obj5) {
38044 {
38045 arg6 = &temp6;
38046 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
38047 }
38048 }
38049 if (obj6) {
38050 ecode7 = SWIG_AsVal_long(obj6, &val7);
38051 if (!SWIG_IsOK(ecode7)) {
38052 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GenericDirCtrl_Create" "', expected argument " "7"" of type '" "long""'");
38053 }
38054 arg7 = static_cast< long >(val7);
38055 }
38056 if (obj7) {
38057 {
38058 arg8 = wxString_in_helper(obj7);
38059 if (arg8 == NULL) SWIG_fail;
38060 temp8 = true;
38061 }
38062 }
38063 if (obj8) {
38064 ecode9 = SWIG_AsVal_int(obj8, &val9);
38065 if (!SWIG_IsOK(ecode9)) {
38066 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "GenericDirCtrl_Create" "', expected argument " "9"" of type '" "int""'");
38067 }
38068 arg9 = static_cast< int >(val9);
38069 }
38070 if (obj9) {
38071 {
38072 arg10 = wxString_in_helper(obj9);
38073 if (arg10 == NULL) SWIG_fail;
38074 temp10 = true;
38075 }
38076 }
38077 {
38078 PyThreadState* __tstate = wxPyBeginAllowThreads();
38079 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
38080 wxPyEndAllowThreads(__tstate);
38081 if (PyErr_Occurred()) SWIG_fail;
38082 }
38083 {
38084 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38085 }
38086 {
38087 if (temp4)
38088 delete arg4;
38089 }
38090 {
38091 if (temp8)
38092 delete arg8;
38093 }
38094 {
38095 if (temp10)
38096 delete arg10;
38097 }
38098 return resultobj;
38099 fail:
38100 {
38101 if (temp4)
38102 delete arg4;
38103 }
38104 {
38105 if (temp8)
38106 delete arg8;
38107 }
38108 {
38109 if (temp10)
38110 delete arg10;
38111 }
38112 return NULL;
38113 }
38114
38115
38116 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38117 PyObject *resultobj = 0;
38118 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38119 wxString *arg2 = 0 ;
38120 bool result;
38121 void *argp1 = 0 ;
38122 int res1 = 0 ;
38123 bool temp2 = false ;
38124 PyObject * obj0 = 0 ;
38125 PyObject * obj1 = 0 ;
38126 char * kwnames[] = {
38127 (char *) "self",(char *) "path", NULL
38128 };
38129
38130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) SWIG_fail;
38131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38132 if (!SWIG_IsOK(res1)) {
38133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ExpandPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38134 }
38135 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38136 {
38137 arg2 = wxString_in_helper(obj1);
38138 if (arg2 == NULL) SWIG_fail;
38139 temp2 = true;
38140 }
38141 {
38142 PyThreadState* __tstate = wxPyBeginAllowThreads();
38143 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
38144 wxPyEndAllowThreads(__tstate);
38145 if (PyErr_Occurred()) SWIG_fail;
38146 }
38147 {
38148 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38149 }
38150 {
38151 if (temp2)
38152 delete arg2;
38153 }
38154 return resultobj;
38155 fail:
38156 {
38157 if (temp2)
38158 delete arg2;
38159 }
38160 return NULL;
38161 }
38162
38163
38164 SWIGINTERN PyObject *_wrap_GenericDirCtrl_CollapsePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38165 PyObject *resultobj = 0;
38166 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38167 wxString *arg2 = 0 ;
38168 bool result;
38169 void *argp1 = 0 ;
38170 int res1 = 0 ;
38171 bool temp2 = false ;
38172 PyObject * obj0 = 0 ;
38173 PyObject * obj1 = 0 ;
38174 char * kwnames[] = {
38175 (char *) "self",(char *) "path", NULL
38176 };
38177
38178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_CollapsePath",kwnames,&obj0,&obj1)) SWIG_fail;
38179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38180 if (!SWIG_IsOK(res1)) {
38181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_CollapsePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38182 }
38183 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38184 {
38185 arg2 = wxString_in_helper(obj1);
38186 if (arg2 == NULL) SWIG_fail;
38187 temp2 = true;
38188 }
38189 {
38190 PyThreadState* __tstate = wxPyBeginAllowThreads();
38191 result = (bool)(arg1)->CollapsePath((wxString const &)*arg2);
38192 wxPyEndAllowThreads(__tstate);
38193 if (PyErr_Occurred()) SWIG_fail;
38194 }
38195 {
38196 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38197 }
38198 {
38199 if (temp2)
38200 delete arg2;
38201 }
38202 return resultobj;
38203 fail:
38204 {
38205 if (temp2)
38206 delete arg2;
38207 }
38208 return NULL;
38209 }
38210
38211
38212 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38213 PyObject *resultobj = 0;
38214 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38215 wxString result;
38216 void *argp1 = 0 ;
38217 int res1 = 0 ;
38218 PyObject *swig_obj[1] ;
38219
38220 if (!args) SWIG_fail;
38221 swig_obj[0] = args;
38222 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38223 if (!SWIG_IsOK(res1)) {
38224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38225 }
38226 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38227 {
38228 PyThreadState* __tstate = wxPyBeginAllowThreads();
38229 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
38230 wxPyEndAllowThreads(__tstate);
38231 if (PyErr_Occurred()) SWIG_fail;
38232 }
38233 {
38234 #if wxUSE_UNICODE
38235 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38236 #else
38237 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38238 #endif
38239 }
38240 return resultobj;
38241 fail:
38242 return NULL;
38243 }
38244
38245
38246 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38247 PyObject *resultobj = 0;
38248 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38249 wxString *arg2 = 0 ;
38250 void *argp1 = 0 ;
38251 int res1 = 0 ;
38252 bool temp2 = false ;
38253 PyObject * obj0 = 0 ;
38254 PyObject * obj1 = 0 ;
38255 char * kwnames[] = {
38256 (char *) "self",(char *) "path", NULL
38257 };
38258
38259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) SWIG_fail;
38260 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38261 if (!SWIG_IsOK(res1)) {
38262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38263 }
38264 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38265 {
38266 arg2 = wxString_in_helper(obj1);
38267 if (arg2 == NULL) SWIG_fail;
38268 temp2 = true;
38269 }
38270 {
38271 PyThreadState* __tstate = wxPyBeginAllowThreads();
38272 (arg1)->SetDefaultPath((wxString const &)*arg2);
38273 wxPyEndAllowThreads(__tstate);
38274 if (PyErr_Occurred()) SWIG_fail;
38275 }
38276 resultobj = SWIG_Py_Void();
38277 {
38278 if (temp2)
38279 delete arg2;
38280 }
38281 return resultobj;
38282 fail:
38283 {
38284 if (temp2)
38285 delete arg2;
38286 }
38287 return NULL;
38288 }
38289
38290
38291 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38292 PyObject *resultobj = 0;
38293 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38294 wxString result;
38295 void *argp1 = 0 ;
38296 int res1 = 0 ;
38297 PyObject *swig_obj[1] ;
38298
38299 if (!args) SWIG_fail;
38300 swig_obj[0] = args;
38301 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38302 if (!SWIG_IsOK(res1)) {
38303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38304 }
38305 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38306 {
38307 PyThreadState* __tstate = wxPyBeginAllowThreads();
38308 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
38309 wxPyEndAllowThreads(__tstate);
38310 if (PyErr_Occurred()) SWIG_fail;
38311 }
38312 {
38313 #if wxUSE_UNICODE
38314 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38315 #else
38316 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38317 #endif
38318 }
38319 return resultobj;
38320 fail:
38321 return NULL;
38322 }
38323
38324
38325 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38326 PyObject *resultobj = 0;
38327 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38328 wxString result;
38329 void *argp1 = 0 ;
38330 int res1 = 0 ;
38331 PyObject *swig_obj[1] ;
38332
38333 if (!args) SWIG_fail;
38334 swig_obj[0] = args;
38335 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38336 if (!SWIG_IsOK(res1)) {
38337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38338 }
38339 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38340 {
38341 PyThreadState* __tstate = wxPyBeginAllowThreads();
38342 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
38343 wxPyEndAllowThreads(__tstate);
38344 if (PyErr_Occurred()) SWIG_fail;
38345 }
38346 {
38347 #if wxUSE_UNICODE
38348 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38349 #else
38350 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38351 #endif
38352 }
38353 return resultobj;
38354 fail:
38355 return NULL;
38356 }
38357
38358
38359 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38360 PyObject *resultobj = 0;
38361 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38362 wxString *arg2 = 0 ;
38363 void *argp1 = 0 ;
38364 int res1 = 0 ;
38365 bool temp2 = false ;
38366 PyObject * obj0 = 0 ;
38367 PyObject * obj1 = 0 ;
38368 char * kwnames[] = {
38369 (char *) "self",(char *) "path", NULL
38370 };
38371
38372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
38373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38374 if (!SWIG_IsOK(res1)) {
38375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38376 }
38377 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38378 {
38379 arg2 = wxString_in_helper(obj1);
38380 if (arg2 == NULL) SWIG_fail;
38381 temp2 = true;
38382 }
38383 {
38384 PyThreadState* __tstate = wxPyBeginAllowThreads();
38385 (arg1)->SetPath((wxString const &)*arg2);
38386 wxPyEndAllowThreads(__tstate);
38387 if (PyErr_Occurred()) SWIG_fail;
38388 }
38389 resultobj = SWIG_Py_Void();
38390 {
38391 if (temp2)
38392 delete arg2;
38393 }
38394 return resultobj;
38395 fail:
38396 {
38397 if (temp2)
38398 delete arg2;
38399 }
38400 return NULL;
38401 }
38402
38403
38404 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38405 PyObject *resultobj = 0;
38406 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38407 bool arg2 ;
38408 void *argp1 = 0 ;
38409 int res1 = 0 ;
38410 bool val2 ;
38411 int ecode2 = 0 ;
38412 PyObject * obj0 = 0 ;
38413 PyObject * obj1 = 0 ;
38414 char * kwnames[] = {
38415 (char *) "self",(char *) "show", NULL
38416 };
38417
38418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) SWIG_fail;
38419 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38420 if (!SWIG_IsOK(res1)) {
38421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38422 }
38423 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38424 ecode2 = SWIG_AsVal_bool(obj1, &val2);
38425 if (!SWIG_IsOK(ecode2)) {
38426 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "2"" of type '" "bool""'");
38427 }
38428 arg2 = static_cast< bool >(val2);
38429 {
38430 PyThreadState* __tstate = wxPyBeginAllowThreads();
38431 (arg1)->ShowHidden(arg2);
38432 wxPyEndAllowThreads(__tstate);
38433 if (PyErr_Occurred()) SWIG_fail;
38434 }
38435 resultobj = SWIG_Py_Void();
38436 return resultobj;
38437 fail:
38438 return NULL;
38439 }
38440
38441
38442 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38443 PyObject *resultobj = 0;
38444 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38445 bool result;
38446 void *argp1 = 0 ;
38447 int res1 = 0 ;
38448 PyObject *swig_obj[1] ;
38449
38450 if (!args) SWIG_fail;
38451 swig_obj[0] = args;
38452 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38453 if (!SWIG_IsOK(res1)) {
38454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38455 }
38456 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38457 {
38458 PyThreadState* __tstate = wxPyBeginAllowThreads();
38459 result = (bool)(arg1)->GetShowHidden();
38460 wxPyEndAllowThreads(__tstate);
38461 if (PyErr_Occurred()) SWIG_fail;
38462 }
38463 {
38464 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38465 }
38466 return resultobj;
38467 fail:
38468 return NULL;
38469 }
38470
38471
38472 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38473 PyObject *resultobj = 0;
38474 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38475 wxString result;
38476 void *argp1 = 0 ;
38477 int res1 = 0 ;
38478 PyObject *swig_obj[1] ;
38479
38480 if (!args) SWIG_fail;
38481 swig_obj[0] = args;
38482 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38483 if (!SWIG_IsOK(res1)) {
38484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38485 }
38486 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38487 {
38488 PyThreadState* __tstate = wxPyBeginAllowThreads();
38489 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
38490 wxPyEndAllowThreads(__tstate);
38491 if (PyErr_Occurred()) SWIG_fail;
38492 }
38493 {
38494 #if wxUSE_UNICODE
38495 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38496 #else
38497 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38498 #endif
38499 }
38500 return resultobj;
38501 fail:
38502 return NULL;
38503 }
38504
38505
38506 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38507 PyObject *resultobj = 0;
38508 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38509 wxString *arg2 = 0 ;
38510 void *argp1 = 0 ;
38511 int res1 = 0 ;
38512 bool temp2 = false ;
38513 PyObject * obj0 = 0 ;
38514 PyObject * obj1 = 0 ;
38515 char * kwnames[] = {
38516 (char *) "self",(char *) "filter", NULL
38517 };
38518
38519 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) SWIG_fail;
38520 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38521 if (!SWIG_IsOK(res1)) {
38522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38523 }
38524 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38525 {
38526 arg2 = wxString_in_helper(obj1);
38527 if (arg2 == NULL) SWIG_fail;
38528 temp2 = true;
38529 }
38530 {
38531 PyThreadState* __tstate = wxPyBeginAllowThreads();
38532 (arg1)->SetFilter((wxString const &)*arg2);
38533 wxPyEndAllowThreads(__tstate);
38534 if (PyErr_Occurred()) SWIG_fail;
38535 }
38536 resultobj = SWIG_Py_Void();
38537 {
38538 if (temp2)
38539 delete arg2;
38540 }
38541 return resultobj;
38542 fail:
38543 {
38544 if (temp2)
38545 delete arg2;
38546 }
38547 return NULL;
38548 }
38549
38550
38551 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38552 PyObject *resultobj = 0;
38553 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38554 int result;
38555 void *argp1 = 0 ;
38556 int res1 = 0 ;
38557 PyObject *swig_obj[1] ;
38558
38559 if (!args) SWIG_fail;
38560 swig_obj[0] = args;
38561 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38562 if (!SWIG_IsOK(res1)) {
38563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38564 }
38565 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38566 {
38567 PyThreadState* __tstate = wxPyBeginAllowThreads();
38568 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
38569 wxPyEndAllowThreads(__tstate);
38570 if (PyErr_Occurred()) SWIG_fail;
38571 }
38572 resultobj = SWIG_From_int(static_cast< int >(result));
38573 return resultobj;
38574 fail:
38575 return NULL;
38576 }
38577
38578
38579 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38580 PyObject *resultobj = 0;
38581 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38582 int arg2 ;
38583 void *argp1 = 0 ;
38584 int res1 = 0 ;
38585 int val2 ;
38586 int ecode2 = 0 ;
38587 PyObject * obj0 = 0 ;
38588 PyObject * obj1 = 0 ;
38589 char * kwnames[] = {
38590 (char *) "self",(char *) "n", NULL
38591 };
38592
38593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail;
38594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38595 if (!SWIG_IsOK(res1)) {
38596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38597 }
38598 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38599 ecode2 = SWIG_AsVal_int(obj1, &val2);
38600 if (!SWIG_IsOK(ecode2)) {
38601 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "2"" of type '" "int""'");
38602 }
38603 arg2 = static_cast< int >(val2);
38604 {
38605 PyThreadState* __tstate = wxPyBeginAllowThreads();
38606 (arg1)->SetFilterIndex(arg2);
38607 wxPyEndAllowThreads(__tstate);
38608 if (PyErr_Occurred()) SWIG_fail;
38609 }
38610 resultobj = SWIG_Py_Void();
38611 return resultobj;
38612 fail:
38613 return NULL;
38614 }
38615
38616
38617 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38618 PyObject *resultobj = 0;
38619 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38620 wxTreeItemId result;
38621 void *argp1 = 0 ;
38622 int res1 = 0 ;
38623 PyObject *swig_obj[1] ;
38624
38625 if (!args) SWIG_fail;
38626 swig_obj[0] = args;
38627 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38628 if (!SWIG_IsOK(res1)) {
38629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetRootId" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38630 }
38631 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38632 {
38633 PyThreadState* __tstate = wxPyBeginAllowThreads();
38634 result = (arg1)->GetRootId();
38635 wxPyEndAllowThreads(__tstate);
38636 if (PyErr_Occurred()) SWIG_fail;
38637 }
38638 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38639 return resultobj;
38640 fail:
38641 return NULL;
38642 }
38643
38644
38645 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38646 PyObject *resultobj = 0;
38647 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38648 wxPyTreeCtrl *result = 0 ;
38649 void *argp1 = 0 ;
38650 int res1 = 0 ;
38651 PyObject *swig_obj[1] ;
38652
38653 if (!args) SWIG_fail;
38654 swig_obj[0] = args;
38655 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38656 if (!SWIG_IsOK(res1)) {
38657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetTreeCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38658 }
38659 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38660 {
38661 PyThreadState* __tstate = wxPyBeginAllowThreads();
38662 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
38663 wxPyEndAllowThreads(__tstate);
38664 if (PyErr_Occurred()) SWIG_fail;
38665 }
38666 {
38667 resultobj = wxPyMake_wxObject(result, 0);
38668 }
38669 return resultobj;
38670 fail:
38671 return NULL;
38672 }
38673
38674
38675 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38676 PyObject *resultobj = 0;
38677 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38678 wxDirFilterListCtrl *result = 0 ;
38679 void *argp1 = 0 ;
38680 int res1 = 0 ;
38681 PyObject *swig_obj[1] ;
38682
38683 if (!args) SWIG_fail;
38684 swig_obj[0] = args;
38685 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38686 if (!SWIG_IsOK(res1)) {
38687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38688 }
38689 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38690 {
38691 PyThreadState* __tstate = wxPyBeginAllowThreads();
38692 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
38693 wxPyEndAllowThreads(__tstate);
38694 if (PyErr_Occurred()) SWIG_fail;
38695 }
38696 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38697 return resultobj;
38698 fail:
38699 return NULL;
38700 }
38701
38702
38703 SWIGINTERN PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38704 PyObject *resultobj = 0;
38705 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38706 wxTreeItemId arg2 ;
38707 wxString *arg3 = 0 ;
38708 bool *arg4 = 0 ;
38709 wxTreeItemId result;
38710 void *argp1 = 0 ;
38711 int res1 = 0 ;
38712 void *argp2 ;
38713 int res2 = 0 ;
38714 bool temp3 = false ;
38715 bool temp4 ;
38716 int res4 = SWIG_TMPOBJ ;
38717 PyObject * obj0 = 0 ;
38718 PyObject * obj1 = 0 ;
38719 PyObject * obj2 = 0 ;
38720 char * kwnames[] = {
38721 (char *) "self",(char *) "parentId",(char *) "path", NULL
38722 };
38723
38724 arg4 = &temp4;
38725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38726 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38727 if (!SWIG_IsOK(res1)) {
38728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38729 }
38730 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38731 {
38732 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
38733 if (!SWIG_IsOK(res2)) {
38734 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38735 }
38736 if (!argp2) {
38737 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38738 } else {
38739 wxTreeItemId * temp = reinterpret_cast< wxTreeItemId * >(argp2);
38740 arg2 = *temp;
38741 if (SWIG_IsNewObj(res2)) delete temp;
38742 }
38743 }
38744 {
38745 arg3 = wxString_in_helper(obj2);
38746 if (arg3 == NULL) SWIG_fail;
38747 temp3 = true;
38748 }
38749 {
38750 PyThreadState* __tstate = wxPyBeginAllowThreads();
38751 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
38752 wxPyEndAllowThreads(__tstate);
38753 if (PyErr_Occurred()) SWIG_fail;
38754 }
38755 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38756 if (SWIG_IsTmpObj(res4)) {
38757 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4)));
38758 } else {
38759 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38760 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags));
38761 }
38762 {
38763 if (temp3)
38764 delete arg3;
38765 }
38766 return resultobj;
38767 fail:
38768 {
38769 if (temp3)
38770 delete arg3;
38771 }
38772 return NULL;
38773 }
38774
38775
38776 SWIGINTERN PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38777 PyObject *resultobj = 0;
38778 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38779 void *argp1 = 0 ;
38780 int res1 = 0 ;
38781 PyObject *swig_obj[1] ;
38782
38783 if (!args) SWIG_fail;
38784 swig_obj[0] = args;
38785 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38786 if (!SWIG_IsOK(res1)) {
38787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_DoResize" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38788 }
38789 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38790 {
38791 PyThreadState* __tstate = wxPyBeginAllowThreads();
38792 (arg1)->DoResize();
38793 wxPyEndAllowThreads(__tstate);
38794 if (PyErr_Occurred()) SWIG_fail;
38795 }
38796 resultobj = SWIG_Py_Void();
38797 return resultobj;
38798 fail:
38799 return NULL;
38800 }
38801
38802
38803 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38804 PyObject *resultobj = 0;
38805 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38806 void *argp1 = 0 ;
38807 int res1 = 0 ;
38808 PyObject *swig_obj[1] ;
38809
38810 if (!args) SWIG_fail;
38811 swig_obj[0] = args;
38812 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38813 if (!SWIG_IsOK(res1)) {
38814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ReCreateTree" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38815 }
38816 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38817 {
38818 PyThreadState* __tstate = wxPyBeginAllowThreads();
38819 (arg1)->ReCreateTree();
38820 wxPyEndAllowThreads(__tstate);
38821 if (PyErr_Occurred()) SWIG_fail;
38822 }
38823 resultobj = SWIG_Py_Void();
38824 return resultobj;
38825 fail:
38826 return NULL;
38827 }
38828
38829
38830 SWIGINTERN PyObject *GenericDirCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38831 PyObject *obj;
38832 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38833 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDirCtrl, SWIG_NewClientData(obj));
38834 return SWIG_Py_Void();
38835 }
38836
38837 SWIGINTERN PyObject *GenericDirCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38838 return SWIG_Python_InitShadowInstance(args);
38839 }
38840
38841 SWIGINTERN PyObject *_wrap_new_DirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38842 PyObject *resultobj = 0;
38843 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38844 int arg2 = (int) (int)-1 ;
38845 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38846 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38847 wxSize const &arg4_defvalue = wxDefaultSize ;
38848 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38849 long arg5 = (long) 0 ;
38850 wxDirFilterListCtrl *result = 0 ;
38851 void *argp1 = 0 ;
38852 int res1 = 0 ;
38853 int val2 ;
38854 int ecode2 = 0 ;
38855 wxPoint temp3 ;
38856 wxSize temp4 ;
38857 long val5 ;
38858 int ecode5 = 0 ;
38859 PyObject * obj0 = 0 ;
38860 PyObject * obj1 = 0 ;
38861 PyObject * obj2 = 0 ;
38862 PyObject * obj3 = 0 ;
38863 PyObject * obj4 = 0 ;
38864 char * kwnames[] = {
38865 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38866 };
38867
38868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38870 if (!SWIG_IsOK(res1)) {
38871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38872 }
38873 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38874 if (obj1) {
38875 ecode2 = SWIG_AsVal_int(obj1, &val2);
38876 if (!SWIG_IsOK(ecode2)) {
38877 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirFilterListCtrl" "', expected argument " "2"" of type '" "int""'");
38878 }
38879 arg2 = static_cast< int >(val2);
38880 }
38881 if (obj2) {
38882 {
38883 arg3 = &temp3;
38884 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38885 }
38886 }
38887 if (obj3) {
38888 {
38889 arg4 = &temp4;
38890 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
38891 }
38892 }
38893 if (obj4) {
38894 ecode5 = SWIG_AsVal_long(obj4, &val5);
38895 if (!SWIG_IsOK(ecode5)) {
38896 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DirFilterListCtrl" "', expected argument " "5"" of type '" "long""'");
38897 }
38898 arg5 = static_cast< long >(val5);
38899 }
38900 {
38901 if (!wxPyCheckForApp()) SWIG_fail;
38902 PyThreadState* __tstate = wxPyBeginAllowThreads();
38903 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
38904 wxPyEndAllowThreads(__tstate);
38905 if (PyErr_Occurred()) SWIG_fail;
38906 }
38907 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_NEW | 0 );
38908 return resultobj;
38909 fail:
38910 return NULL;
38911 }
38912
38913
38914 SWIGINTERN PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38915 PyObject *resultobj = 0;
38916 wxDirFilterListCtrl *result = 0 ;
38917
38918 if (!SWIG_Python_UnpackTuple(args,"new_PreDirFilterListCtrl",0,0,0)) SWIG_fail;
38919 {
38920 if (!wxPyCheckForApp()) SWIG_fail;
38921 PyThreadState* __tstate = wxPyBeginAllowThreads();
38922 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
38923 wxPyEndAllowThreads(__tstate);
38924 if (PyErr_Occurred()) SWIG_fail;
38925 }
38926 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_OWN | 0 );
38927 return resultobj;
38928 fail:
38929 return NULL;
38930 }
38931
38932
38933 SWIGINTERN PyObject *_wrap_DirFilterListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38934 PyObject *resultobj = 0;
38935 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38936 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
38937 int arg3 = (int) (int)-1 ;
38938 wxPoint const &arg4_defvalue = wxDefaultPosition ;
38939 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
38940 wxSize const &arg5_defvalue = wxDefaultSize ;
38941 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
38942 long arg6 = (long) 0 ;
38943 bool result;
38944 void *argp1 = 0 ;
38945 int res1 = 0 ;
38946 void *argp2 = 0 ;
38947 int res2 = 0 ;
38948 int val3 ;
38949 int ecode3 = 0 ;
38950 wxPoint temp4 ;
38951 wxSize temp5 ;
38952 long val6 ;
38953 int ecode6 = 0 ;
38954 PyObject * obj0 = 0 ;
38955 PyObject * obj1 = 0 ;
38956 PyObject * obj2 = 0 ;
38957 PyObject * obj3 = 0 ;
38958 PyObject * obj4 = 0 ;
38959 PyObject * obj5 = 0 ;
38960 char * kwnames[] = {
38961 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38962 };
38963
38964 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38965 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38966 if (!SWIG_IsOK(res1)) {
38967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_Create" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38968 }
38969 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38970 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38971 if (!SWIG_IsOK(res2)) {
38972 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirFilterListCtrl_Create" "', expected argument " "2"" of type '" "wxGenericDirCtrl *""'");
38973 }
38974 arg2 = reinterpret_cast< wxGenericDirCtrl * >(argp2);
38975 if (obj2) {
38976 ecode3 = SWIG_AsVal_int(obj2, &val3);
38977 if (!SWIG_IsOK(ecode3)) {
38978 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
38979 }
38980 arg3 = static_cast< int >(val3);
38981 }
38982 if (obj3) {
38983 {
38984 arg4 = &temp4;
38985 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
38986 }
38987 }
38988 if (obj4) {
38989 {
38990 arg5 = &temp5;
38991 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
38992 }
38993 }
38994 if (obj5) {
38995 ecode6 = SWIG_AsVal_long(obj5, &val6);
38996 if (!SWIG_IsOK(ecode6)) {
38997 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DirFilterListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
38998 }
38999 arg6 = static_cast< long >(val6);
39000 }
39001 {
39002 PyThreadState* __tstate = wxPyBeginAllowThreads();
39003 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
39004 wxPyEndAllowThreads(__tstate);
39005 if (PyErr_Occurred()) SWIG_fail;
39006 }
39007 {
39008 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39009 }
39010 return resultobj;
39011 fail:
39012 return NULL;
39013 }
39014
39015
39016 SWIGINTERN PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39017 PyObject *resultobj = 0;
39018 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
39019 wxString *arg2 = 0 ;
39020 int arg3 ;
39021 void *argp1 = 0 ;
39022 int res1 = 0 ;
39023 bool temp2 = false ;
39024 int val3 ;
39025 int ecode3 = 0 ;
39026 PyObject * obj0 = 0 ;
39027 PyObject * obj1 = 0 ;
39028 PyObject * obj2 = 0 ;
39029 char * kwnames[] = {
39030 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
39031 };
39032
39033 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39034 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
39035 if (!SWIG_IsOK(res1)) {
39036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
39037 }
39038 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
39039 {
39040 arg2 = wxString_in_helper(obj1);
39041 if (arg2 == NULL) SWIG_fail;
39042 temp2 = true;
39043 }
39044 ecode3 = SWIG_AsVal_int(obj2, &val3);
39045 if (!SWIG_IsOK(ecode3)) {
39046 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "3"" of type '" "int""'");
39047 }
39048 arg3 = static_cast< int >(val3);
39049 {
39050 PyThreadState* __tstate = wxPyBeginAllowThreads();
39051 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
39052 wxPyEndAllowThreads(__tstate);
39053 if (PyErr_Occurred()) SWIG_fail;
39054 }
39055 resultobj = SWIG_Py_Void();
39056 {
39057 if (temp2)
39058 delete arg2;
39059 }
39060 return resultobj;
39061 fail:
39062 {
39063 if (temp2)
39064 delete arg2;
39065 }
39066 return NULL;
39067 }
39068
39069
39070 SWIGINTERN PyObject *DirFilterListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39071 PyObject *obj;
39072 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39073 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirFilterListCtrl, SWIG_NewClientData(obj));
39074 return SWIG_Py_Void();
39075 }
39076
39077 SWIGINTERN PyObject *DirFilterListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39078 return SWIG_Python_InitShadowInstance(args);
39079 }
39080
39081 SWIGINTERN PyObject *_wrap_new_PyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39082 PyObject *resultobj = 0;
39083 wxWindow *arg1 = (wxWindow *) 0 ;
39084 int arg2 = (int) (int)-1 ;
39085 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39086 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39087 wxSize const &arg4_defvalue = wxDefaultSize ;
39088 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
39089 long arg5 = (long) 0 ;
39090 wxValidator const &arg6_defvalue = wxDefaultValidator ;
39091 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
39092 wxString const &arg7_defvalue = wxPyControlNameStr ;
39093 wxString *arg7 = (wxString *) &arg7_defvalue ;
39094 wxPyControl *result = 0 ;
39095 void *argp1 = 0 ;
39096 int res1 = 0 ;
39097 int val2 ;
39098 int ecode2 = 0 ;
39099 wxPoint temp3 ;
39100 wxSize temp4 ;
39101 long val5 ;
39102 int ecode5 = 0 ;
39103 void *argp6 = 0 ;
39104 int res6 = 0 ;
39105 bool temp7 = false ;
39106 PyObject * obj0 = 0 ;
39107 PyObject * obj1 = 0 ;
39108 PyObject * obj2 = 0 ;
39109 PyObject * obj3 = 0 ;
39110 PyObject * obj4 = 0 ;
39111 PyObject * obj5 = 0 ;
39112 PyObject * obj6 = 0 ;
39113 char * kwnames[] = {
39114 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
39115 };
39116
39117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
39118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39119 if (!SWIG_IsOK(res1)) {
39120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyControl" "', expected argument " "1"" of type '" "wxWindow *""'");
39121 }
39122 arg1 = reinterpret_cast< wxWindow * >(argp1);
39123 if (obj1) {
39124 ecode2 = SWIG_AsVal_int(obj1, &val2);
39125 if (!SWIG_IsOK(ecode2)) {
39126 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyControl" "', expected argument " "2"" of type '" "int""'");
39127 }
39128 arg2 = static_cast< int >(val2);
39129 }
39130 if (obj2) {
39131 {
39132 arg3 = &temp3;
39133 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
39134 }
39135 }
39136 if (obj3) {
39137 {
39138 arg4 = &temp4;
39139 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
39140 }
39141 }
39142 if (obj4) {
39143 ecode5 = SWIG_AsVal_long(obj4, &val5);
39144 if (!SWIG_IsOK(ecode5)) {
39145 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyControl" "', expected argument " "5"" of type '" "long""'");
39146 }
39147 arg5 = static_cast< long >(val5);
39148 }
39149 if (obj5) {
39150 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
39151 if (!SWIG_IsOK(res6)) {
39152 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
39153 }
39154 if (!argp6) {
39155 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
39156 }
39157 arg6 = reinterpret_cast< wxValidator * >(argp6);
39158 }
39159 if (obj6) {
39160 {
39161 arg7 = wxString_in_helper(obj6);
39162 if (arg7 == NULL) SWIG_fail;
39163 temp7 = true;
39164 }
39165 }
39166 {
39167 if (!wxPyCheckForApp()) SWIG_fail;
39168 PyThreadState* __tstate = wxPyBeginAllowThreads();
39169 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
39170 wxPyEndAllowThreads(__tstate);
39171 if (PyErr_Occurred()) SWIG_fail;
39172 }
39173 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_NEW | 0 );
39174 {
39175 if (temp7)
39176 delete arg7;
39177 }
39178 return resultobj;
39179 fail:
39180 {
39181 if (temp7)
39182 delete arg7;
39183 }
39184 return NULL;
39185 }
39186
39187
39188 SWIGINTERN PyObject *_wrap_new_PrePyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39189 PyObject *resultobj = 0;
39190 wxPyControl *result = 0 ;
39191
39192 if (!SWIG_Python_UnpackTuple(args,"new_PrePyControl",0,0,0)) SWIG_fail;
39193 {
39194 if (!wxPyCheckForApp()) SWIG_fail;
39195 PyThreadState* __tstate = wxPyBeginAllowThreads();
39196 result = (wxPyControl *)new wxPyControl();
39197 wxPyEndAllowThreads(__tstate);
39198 if (PyErr_Occurred()) SWIG_fail;
39199 }
39200 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_OWN | 0 );
39201 return resultobj;
39202 fail:
39203 return NULL;
39204 }
39205
39206
39207 SWIGINTERN PyObject *_wrap_PyControl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39208 PyObject *resultobj = 0;
39209 wxPyControl *arg1 = (wxPyControl *) 0 ;
39210 PyObject *arg2 = (PyObject *) 0 ;
39211 PyObject *arg3 = (PyObject *) 0 ;
39212 void *argp1 = 0 ;
39213 int res1 = 0 ;
39214 PyObject * obj0 = 0 ;
39215 PyObject * obj1 = 0 ;
39216 PyObject * obj2 = 0 ;
39217 char * kwnames[] = {
39218 (char *) "self",(char *) "self",(char *) "_class", NULL
39219 };
39220
39221 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39222 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39223 if (!SWIG_IsOK(res1)) {
39224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyControl *""'");
39225 }
39226 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39227 arg2 = obj1;
39228 arg3 = obj2;
39229 {
39230 PyThreadState* __tstate = wxPyBeginAllowThreads();
39231 (arg1)->_setCallbackInfo(arg2,arg3);
39232 wxPyEndAllowThreads(__tstate);
39233 if (PyErr_Occurred()) SWIG_fail;
39234 }
39235 resultobj = SWIG_Py_Void();
39236 return resultobj;
39237 fail:
39238 return NULL;
39239 }
39240
39241
39242 SWIGINTERN PyObject *_wrap_PyControl_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39243 PyObject *resultobj = 0;
39244 wxPyControl *arg1 = (wxPyControl *) 0 ;
39245 wxDC *arg2 = (wxDC *) 0 ;
39246 bool result;
39247 void *argp1 = 0 ;
39248 int res1 = 0 ;
39249 void *argp2 = 0 ;
39250 int res2 = 0 ;
39251 PyObject * obj0 = 0 ;
39252 PyObject * obj1 = 0 ;
39253 char * kwnames[] = {
39254 (char *) "self",(char *) "dc", NULL
39255 };
39256
39257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail;
39258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39259 if (!SWIG_IsOK(res1)) {
39260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyControl *""'");
39261 }
39262 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39263 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
39264 if (!SWIG_IsOK(res2)) {
39265 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyControl_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'");
39266 }
39267 arg2 = reinterpret_cast< wxDC * >(argp2);
39268 {
39269 PyThreadState* __tstate = wxPyBeginAllowThreads();
39270 result = (bool)(arg1)->DoEraseBackground(arg2);
39271 wxPyEndAllowThreads(__tstate);
39272 if (PyErr_Occurred()) SWIG_fail;
39273 }
39274 {
39275 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39276 }
39277 return resultobj;
39278 fail:
39279 return NULL;
39280 }
39281
39282
39283 SWIGINTERN PyObject *_wrap_PyControl_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39284 PyObject *resultobj = 0;
39285 wxPyControl *arg1 = (wxPyControl *) 0 ;
39286 int arg2 ;
39287 int arg3 ;
39288 int arg4 ;
39289 int arg5 ;
39290 void *argp1 = 0 ;
39291 int res1 = 0 ;
39292 int val2 ;
39293 int ecode2 = 0 ;
39294 int val3 ;
39295 int ecode3 = 0 ;
39296 int val4 ;
39297 int ecode4 = 0 ;
39298 int val5 ;
39299 int ecode5 = 0 ;
39300 PyObject * obj0 = 0 ;
39301 PyObject * obj1 = 0 ;
39302 PyObject * obj2 = 0 ;
39303 PyObject * obj3 = 0 ;
39304 PyObject * obj4 = 0 ;
39305 char * kwnames[] = {
39306 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
39307 };
39308
39309 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39310 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39311 if (!SWIG_IsOK(res1)) {
39312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyControl *""'");
39313 }
39314 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39315 ecode2 = SWIG_AsVal_int(obj1, &val2);
39316 if (!SWIG_IsOK(ecode2)) {
39317 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoMoveWindow" "', expected argument " "2"" of type '" "int""'");
39318 }
39319 arg2 = static_cast< int >(val2);
39320 ecode3 = SWIG_AsVal_int(obj2, &val3);
39321 if (!SWIG_IsOK(ecode3)) {
39322 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoMoveWindow" "', expected argument " "3"" of type '" "int""'");
39323 }
39324 arg3 = static_cast< int >(val3);
39325 ecode4 = SWIG_AsVal_int(obj3, &val4);
39326 if (!SWIG_IsOK(ecode4)) {
39327 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoMoveWindow" "', expected argument " "4"" of type '" "int""'");
39328 }
39329 arg4 = static_cast< int >(val4);
39330 ecode5 = SWIG_AsVal_int(obj4, &val5);
39331 if (!SWIG_IsOK(ecode5)) {
39332 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoMoveWindow" "', expected argument " "5"" of type '" "int""'");
39333 }
39334 arg5 = static_cast< int >(val5);
39335 {
39336 PyThreadState* __tstate = wxPyBeginAllowThreads();
39337 (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5);
39338 wxPyEndAllowThreads(__tstate);
39339 if (PyErr_Occurred()) SWIG_fail;
39340 }
39341 resultobj = SWIG_Py_Void();
39342 return resultobj;
39343 fail:
39344 return NULL;
39345 }
39346
39347
39348 SWIGINTERN PyObject *_wrap_PyControl_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39349 PyObject *resultobj = 0;
39350 wxPyControl *arg1 = (wxPyControl *) 0 ;
39351 int arg2 ;
39352 int arg3 ;
39353 int arg4 ;
39354 int arg5 ;
39355 int arg6 = (int) wxSIZE_AUTO ;
39356 void *argp1 = 0 ;
39357 int res1 = 0 ;
39358 int val2 ;
39359 int ecode2 = 0 ;
39360 int val3 ;
39361 int ecode3 = 0 ;
39362 int val4 ;
39363 int ecode4 = 0 ;
39364 int val5 ;
39365 int ecode5 = 0 ;
39366 int val6 ;
39367 int ecode6 = 0 ;
39368 PyObject * obj0 = 0 ;
39369 PyObject * obj1 = 0 ;
39370 PyObject * obj2 = 0 ;
39371 PyObject * obj3 = 0 ;
39372 PyObject * obj4 = 0 ;
39373 PyObject * obj5 = 0 ;
39374 char * kwnames[] = {
39375 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
39376 };
39377
39378 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
39379 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39380 if (!SWIG_IsOK(res1)) {
39381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39382 }
39383 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39384 ecode2 = SWIG_AsVal_int(obj1, &val2);
39385 if (!SWIG_IsOK(ecode2)) {
39386 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetSize" "', expected argument " "2"" of type '" "int""'");
39387 }
39388 arg2 = static_cast< int >(val2);
39389 ecode3 = SWIG_AsVal_int(obj2, &val3);
39390 if (!SWIG_IsOK(ecode3)) {
39391 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetSize" "', expected argument " "3"" of type '" "int""'");
39392 }
39393 arg3 = static_cast< int >(val3);
39394 ecode4 = SWIG_AsVal_int(obj3, &val4);
39395 if (!SWIG_IsOK(ecode4)) {
39396 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoSetSize" "', expected argument " "4"" of type '" "int""'");
39397 }
39398 arg4 = static_cast< int >(val4);
39399 ecode5 = SWIG_AsVal_int(obj4, &val5);
39400 if (!SWIG_IsOK(ecode5)) {
39401 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoSetSize" "', expected argument " "5"" of type '" "int""'");
39402 }
39403 arg5 = static_cast< int >(val5);
39404 if (obj5) {
39405 ecode6 = SWIG_AsVal_int(obj5, &val6);
39406 if (!SWIG_IsOK(ecode6)) {
39407 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyControl_DoSetSize" "', expected argument " "6"" of type '" "int""'");
39408 }
39409 arg6 = static_cast< int >(val6);
39410 }
39411 {
39412 PyThreadState* __tstate = wxPyBeginAllowThreads();
39413 (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6);
39414 wxPyEndAllowThreads(__tstate);
39415 if (PyErr_Occurred()) SWIG_fail;
39416 }
39417 resultobj = SWIG_Py_Void();
39418 return resultobj;
39419 fail:
39420 return NULL;
39421 }
39422
39423
39424 SWIGINTERN PyObject *_wrap_PyControl_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39425 PyObject *resultobj = 0;
39426 wxPyControl *arg1 = (wxPyControl *) 0 ;
39427 int arg2 ;
39428 int arg3 ;
39429 void *argp1 = 0 ;
39430 int res1 = 0 ;
39431 int val2 ;
39432 int ecode2 = 0 ;
39433 int val3 ;
39434 int ecode3 = 0 ;
39435 PyObject * obj0 = 0 ;
39436 PyObject * obj1 = 0 ;
39437 PyObject * obj2 = 0 ;
39438 char * kwnames[] = {
39439 (char *) "self",(char *) "width",(char *) "height", NULL
39440 };
39441
39442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39444 if (!SWIG_IsOK(res1)) {
39445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39446 }
39447 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39448 ecode2 = SWIG_AsVal_int(obj1, &val2);
39449 if (!SWIG_IsOK(ecode2)) {
39450 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetClientSize" "', expected argument " "2"" of type '" "int""'");
39451 }
39452 arg2 = static_cast< int >(val2);
39453 ecode3 = SWIG_AsVal_int(obj2, &val3);
39454 if (!SWIG_IsOK(ecode3)) {
39455 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetClientSize" "', expected argument " "3"" of type '" "int""'");
39456 }
39457 arg3 = static_cast< int >(val3);
39458 {
39459 PyThreadState* __tstate = wxPyBeginAllowThreads();
39460 (arg1)->DoSetClientSize(arg2,arg3);
39461 wxPyEndAllowThreads(__tstate);
39462 if (PyErr_Occurred()) SWIG_fail;
39463 }
39464 resultobj = SWIG_Py_Void();
39465 return resultobj;
39466 fail:
39467 return NULL;
39468 }
39469
39470
39471 SWIGINTERN PyObject *_wrap_PyControl_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39472 PyObject *resultobj = 0;
39473 wxPyControl *arg1 = (wxPyControl *) 0 ;
39474 int arg2 ;
39475 int arg3 ;
39476 void *argp1 = 0 ;
39477 int res1 = 0 ;
39478 int val2 ;
39479 int ecode2 = 0 ;
39480 int val3 ;
39481 int ecode3 = 0 ;
39482 PyObject * obj0 = 0 ;
39483 PyObject * obj1 = 0 ;
39484 PyObject * obj2 = 0 ;
39485 char * kwnames[] = {
39486 (char *) "self",(char *) "x",(char *) "y", NULL
39487 };
39488
39489 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39490 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39491 if (!SWIG_IsOK(res1)) {
39492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39493 }
39494 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39495 ecode2 = SWIG_AsVal_int(obj1, &val2);
39496 if (!SWIG_IsOK(ecode2)) {
39497 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'");
39498 }
39499 arg2 = static_cast< int >(val2);
39500 ecode3 = SWIG_AsVal_int(obj2, &val3);
39501 if (!SWIG_IsOK(ecode3)) {
39502 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'");
39503 }
39504 arg3 = static_cast< int >(val3);
39505 {
39506 PyThreadState* __tstate = wxPyBeginAllowThreads();
39507 (arg1)->DoSetVirtualSize(arg2,arg3);
39508 wxPyEndAllowThreads(__tstate);
39509 if (PyErr_Occurred()) SWIG_fail;
39510 }
39511 resultobj = SWIG_Py_Void();
39512 return resultobj;
39513 fail:
39514 return NULL;
39515 }
39516
39517
39518 SWIGINTERN PyObject *_wrap_PyControl_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39519 PyObject *resultobj = 0;
39520 wxPyControl *arg1 = (wxPyControl *) 0 ;
39521 int *arg2 = (int *) 0 ;
39522 int *arg3 = (int *) 0 ;
39523 void *argp1 = 0 ;
39524 int res1 = 0 ;
39525 int temp2 ;
39526 int res2 = SWIG_TMPOBJ ;
39527 int temp3 ;
39528 int res3 = SWIG_TMPOBJ ;
39529 PyObject *swig_obj[1] ;
39530
39531 arg2 = &temp2;
39532 arg3 = &temp3;
39533 if (!args) SWIG_fail;
39534 swig_obj[0] = args;
39535 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39536 if (!SWIG_IsOK(res1)) {
39537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39538 }
39539 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39540 {
39541 PyThreadState* __tstate = wxPyBeginAllowThreads();
39542 ((wxPyControl const *)arg1)->DoGetSize(arg2,arg3);
39543 wxPyEndAllowThreads(__tstate);
39544 if (PyErr_Occurred()) SWIG_fail;
39545 }
39546 resultobj = SWIG_Py_Void();
39547 if (SWIG_IsTmpObj(res2)) {
39548 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39549 } else {
39550 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39551 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39552 }
39553 if (SWIG_IsTmpObj(res3)) {
39554 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39555 } else {
39556 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39557 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39558 }
39559 return resultobj;
39560 fail:
39561 return NULL;
39562 }
39563
39564
39565 SWIGINTERN PyObject *_wrap_PyControl_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39566 PyObject *resultobj = 0;
39567 wxPyControl *arg1 = (wxPyControl *) 0 ;
39568 int *arg2 = (int *) 0 ;
39569 int *arg3 = (int *) 0 ;
39570 void *argp1 = 0 ;
39571 int res1 = 0 ;
39572 int temp2 ;
39573 int res2 = SWIG_TMPOBJ ;
39574 int temp3 ;
39575 int res3 = SWIG_TMPOBJ ;
39576 PyObject *swig_obj[1] ;
39577
39578 arg2 = &temp2;
39579 arg3 = &temp3;
39580 if (!args) SWIG_fail;
39581 swig_obj[0] = args;
39582 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39583 if (!SWIG_IsOK(res1)) {
39584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39585 }
39586 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39587 {
39588 PyThreadState* __tstate = wxPyBeginAllowThreads();
39589 ((wxPyControl const *)arg1)->DoGetClientSize(arg2,arg3);
39590 wxPyEndAllowThreads(__tstate);
39591 if (PyErr_Occurred()) SWIG_fail;
39592 }
39593 resultobj = SWIG_Py_Void();
39594 if (SWIG_IsTmpObj(res2)) {
39595 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39596 } else {
39597 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39598 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39599 }
39600 if (SWIG_IsTmpObj(res3)) {
39601 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39602 } else {
39603 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39604 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39605 }
39606 return resultobj;
39607 fail:
39608 return NULL;
39609 }
39610
39611
39612 SWIGINTERN PyObject *_wrap_PyControl_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39613 PyObject *resultobj = 0;
39614 wxPyControl *arg1 = (wxPyControl *) 0 ;
39615 int *arg2 = (int *) 0 ;
39616 int *arg3 = (int *) 0 ;
39617 void *argp1 = 0 ;
39618 int res1 = 0 ;
39619 int temp2 ;
39620 int res2 = SWIG_TMPOBJ ;
39621 int temp3 ;
39622 int res3 = SWIG_TMPOBJ ;
39623 PyObject *swig_obj[1] ;
39624
39625 arg2 = &temp2;
39626 arg3 = &temp3;
39627 if (!args) SWIG_fail;
39628 swig_obj[0] = args;
39629 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39630 if (!SWIG_IsOK(res1)) {
39631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetPosition" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39632 }
39633 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39634 {
39635 PyThreadState* __tstate = wxPyBeginAllowThreads();
39636 ((wxPyControl const *)arg1)->DoGetPosition(arg2,arg3);
39637 wxPyEndAllowThreads(__tstate);
39638 if (PyErr_Occurred()) SWIG_fail;
39639 }
39640 resultobj = SWIG_Py_Void();
39641 if (SWIG_IsTmpObj(res2)) {
39642 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39643 } else {
39644 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39645 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39646 }
39647 if (SWIG_IsTmpObj(res3)) {
39648 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39649 } else {
39650 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39651 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39652 }
39653 return resultobj;
39654 fail:
39655 return NULL;
39656 }
39657
39658
39659 SWIGINTERN PyObject *_wrap_PyControl_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39660 PyObject *resultobj = 0;
39661 wxPyControl *arg1 = (wxPyControl *) 0 ;
39662 wxSize result;
39663 void *argp1 = 0 ;
39664 int res1 = 0 ;
39665 PyObject *swig_obj[1] ;
39666
39667 if (!args) SWIG_fail;
39668 swig_obj[0] = args;
39669 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39670 if (!SWIG_IsOK(res1)) {
39671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39672 }
39673 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39674 {
39675 PyThreadState* __tstate = wxPyBeginAllowThreads();
39676 result = ((wxPyControl const *)arg1)->DoGetVirtualSize();
39677 wxPyEndAllowThreads(__tstate);
39678 if (PyErr_Occurred()) SWIG_fail;
39679 }
39680 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39681 return resultobj;
39682 fail:
39683 return NULL;
39684 }
39685
39686
39687 SWIGINTERN PyObject *_wrap_PyControl_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39688 PyObject *resultobj = 0;
39689 wxPyControl *arg1 = (wxPyControl *) 0 ;
39690 wxSize result;
39691 void *argp1 = 0 ;
39692 int res1 = 0 ;
39693 PyObject *swig_obj[1] ;
39694
39695 if (!args) SWIG_fail;
39696 swig_obj[0] = args;
39697 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39698 if (!SWIG_IsOK(res1)) {
39699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39700 }
39701 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39702 {
39703 PyThreadState* __tstate = wxPyBeginAllowThreads();
39704 result = ((wxPyControl const *)arg1)->DoGetBestSize();
39705 wxPyEndAllowThreads(__tstate);
39706 if (PyErr_Occurred()) SWIG_fail;
39707 }
39708 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39709 return resultobj;
39710 fail:
39711 return NULL;
39712 }
39713
39714
39715 SWIGINTERN PyObject *_wrap_PyControl_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39716 PyObject *resultobj = 0;
39717 wxPyControl *arg1 = (wxPyControl *) 0 ;
39718 SwigValueWrapper<wxVisualAttributes > result;
39719 void *argp1 = 0 ;
39720 int res1 = 0 ;
39721 PyObject *swig_obj[1] ;
39722
39723 if (!args) SWIG_fail;
39724 swig_obj[0] = args;
39725 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39726 if (!SWIG_IsOK(res1)) {
39727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyControl *""'");
39728 }
39729 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39730 {
39731 PyThreadState* __tstate = wxPyBeginAllowThreads();
39732 result = (arg1)->GetDefaultAttributes();
39733 wxPyEndAllowThreads(__tstate);
39734 if (PyErr_Occurred()) SWIG_fail;
39735 }
39736 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
39737 return resultobj;
39738 fail:
39739 return NULL;
39740 }
39741
39742
39743 SWIGINTERN PyObject *_wrap_PyControl_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39744 PyObject *resultobj = 0;
39745 wxPyControl *arg1 = (wxPyControl *) 0 ;
39746 void *argp1 = 0 ;
39747 int res1 = 0 ;
39748 PyObject *swig_obj[1] ;
39749
39750 if (!args) SWIG_fail;
39751 swig_obj[0] = args;
39752 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39753 if (!SWIG_IsOK(res1)) {
39754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyControl *""'");
39755 }
39756 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39757 {
39758 PyThreadState* __tstate = wxPyBeginAllowThreads();
39759 (arg1)->OnInternalIdle();
39760 wxPyEndAllowThreads(__tstate);
39761 if (PyErr_Occurred()) SWIG_fail;
39762 }
39763 resultobj = SWIG_Py_Void();
39764 return resultobj;
39765 fail:
39766 return NULL;
39767 }
39768
39769
39770 SWIGINTERN PyObject *PyControl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39771 PyObject *obj;
39772 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39773 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyControl, SWIG_NewClientData(obj));
39774 return SWIG_Py_Void();
39775 }
39776
39777 SWIGINTERN PyObject *PyControl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39778 return SWIG_Python_InitShadowInstance(args);
39779 }
39780
39781 SWIGINTERN PyObject *_wrap_new_HelpEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39782 PyObject *resultobj = 0;
39783 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
39784 int arg2 = (int) 0 ;
39785 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39786 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39787 wxHelpEvent::Origin arg4 = (wxHelpEvent::Origin) wxHelpEvent::Origin_Unknown ;
39788 wxHelpEvent *result = 0 ;
39789 int val1 ;
39790 int ecode1 = 0 ;
39791 int val2 ;
39792 int ecode2 = 0 ;
39793 wxPoint temp3 ;
39794 int val4 ;
39795 int ecode4 = 0 ;
39796 PyObject * obj0 = 0 ;
39797 PyObject * obj1 = 0 ;
39798 PyObject * obj2 = 0 ;
39799 PyObject * obj3 = 0 ;
39800 char * kwnames[] = {
39801 (char *) "type",(char *) "winid",(char *) "pt",(char *) "origin", NULL
39802 };
39803
39804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
39805 if (obj0) {
39806 ecode1 = SWIG_AsVal_int(obj0, &val1);
39807 if (!SWIG_IsOK(ecode1)) {
39808 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HelpEvent" "', expected argument " "1"" of type '" "wxEventType""'");
39809 }
39810 arg1 = static_cast< wxEventType >(val1);
39811 }
39812 if (obj1) {
39813 ecode2 = SWIG_AsVal_int(obj1, &val2);
39814 if (!SWIG_IsOK(ecode2)) {
39815 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HelpEvent" "', expected argument " "2"" of type '" "int""'");
39816 }
39817 arg2 = static_cast< int >(val2);
39818 }
39819 if (obj2) {
39820 {
39821 arg3 = &temp3;
39822 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
39823 }
39824 }
39825 if (obj3) {
39826 ecode4 = SWIG_AsVal_int(obj3, &val4);
39827 if (!SWIG_IsOK(ecode4)) {
39828 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_HelpEvent" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
39829 }
39830 arg4 = static_cast< wxHelpEvent::Origin >(val4);
39831 }
39832 {
39833 PyThreadState* __tstate = wxPyBeginAllowThreads();
39834 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3,arg4);
39835 wxPyEndAllowThreads(__tstate);
39836 if (PyErr_Occurred()) SWIG_fail;
39837 }
39838 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_NEW | 0 );
39839 return resultobj;
39840 fail:
39841 return NULL;
39842 }
39843
39844
39845 SWIGINTERN PyObject *_wrap_HelpEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39846 PyObject *resultobj = 0;
39847 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39848 wxPoint result;
39849 void *argp1 = 0 ;
39850 int res1 = 0 ;
39851 PyObject *swig_obj[1] ;
39852
39853 if (!args) SWIG_fail;
39854 swig_obj[0] = args;
39855 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39856 if (!SWIG_IsOK(res1)) {
39857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetPosition" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39858 }
39859 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39860 {
39861 PyThreadState* __tstate = wxPyBeginAllowThreads();
39862 result = ((wxHelpEvent const *)arg1)->GetPosition();
39863 wxPyEndAllowThreads(__tstate);
39864 if (PyErr_Occurred()) SWIG_fail;
39865 }
39866 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
39867 return resultobj;
39868 fail:
39869 return NULL;
39870 }
39871
39872
39873 SWIGINTERN PyObject *_wrap_HelpEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39874 PyObject *resultobj = 0;
39875 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39876 wxPoint *arg2 = 0 ;
39877 void *argp1 = 0 ;
39878 int res1 = 0 ;
39879 wxPoint temp2 ;
39880 PyObject * obj0 = 0 ;
39881 PyObject * obj1 = 0 ;
39882 char * kwnames[] = {
39883 (char *) "self",(char *) "pos", NULL
39884 };
39885
39886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
39887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39888 if (!SWIG_IsOK(res1)) {
39889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetPosition" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39890 }
39891 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39892 {
39893 arg2 = &temp2;
39894 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39895 }
39896 {
39897 PyThreadState* __tstate = wxPyBeginAllowThreads();
39898 (arg1)->SetPosition((wxPoint const &)*arg2);
39899 wxPyEndAllowThreads(__tstate);
39900 if (PyErr_Occurred()) SWIG_fail;
39901 }
39902 resultobj = SWIG_Py_Void();
39903 return resultobj;
39904 fail:
39905 return NULL;
39906 }
39907
39908
39909 SWIGINTERN PyObject *_wrap_HelpEvent_GetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39910 PyObject *resultobj = 0;
39911 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39912 wxString *result = 0 ;
39913 void *argp1 = 0 ;
39914 int res1 = 0 ;
39915 PyObject *swig_obj[1] ;
39916
39917 if (!args) SWIG_fail;
39918 swig_obj[0] = args;
39919 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39920 if (!SWIG_IsOK(res1)) {
39921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetLink" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39922 }
39923 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39924 {
39925 PyThreadState* __tstate = wxPyBeginAllowThreads();
39926 {
39927 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
39928 result = (wxString *) &_result_ref;
39929 }
39930 wxPyEndAllowThreads(__tstate);
39931 if (PyErr_Occurred()) SWIG_fail;
39932 }
39933 {
39934 #if wxUSE_UNICODE
39935 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39936 #else
39937 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39938 #endif
39939 }
39940 return resultobj;
39941 fail:
39942 return NULL;
39943 }
39944
39945
39946 SWIGINTERN PyObject *_wrap_HelpEvent_SetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39947 PyObject *resultobj = 0;
39948 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39949 wxString *arg2 = 0 ;
39950 void *argp1 = 0 ;
39951 int res1 = 0 ;
39952 bool temp2 = false ;
39953 PyObject * obj0 = 0 ;
39954 PyObject * obj1 = 0 ;
39955 char * kwnames[] = {
39956 (char *) "self",(char *) "link", NULL
39957 };
39958
39959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) SWIG_fail;
39960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39961 if (!SWIG_IsOK(res1)) {
39962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetLink" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39963 }
39964 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39965 {
39966 arg2 = wxString_in_helper(obj1);
39967 if (arg2 == NULL) SWIG_fail;
39968 temp2 = true;
39969 }
39970 {
39971 PyThreadState* __tstate = wxPyBeginAllowThreads();
39972 (arg1)->SetLink((wxString const &)*arg2);
39973 wxPyEndAllowThreads(__tstate);
39974 if (PyErr_Occurred()) SWIG_fail;
39975 }
39976 resultobj = SWIG_Py_Void();
39977 {
39978 if (temp2)
39979 delete arg2;
39980 }
39981 return resultobj;
39982 fail:
39983 {
39984 if (temp2)
39985 delete arg2;
39986 }
39987 return NULL;
39988 }
39989
39990
39991 SWIGINTERN PyObject *_wrap_HelpEvent_GetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39992 PyObject *resultobj = 0;
39993 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39994 wxString *result = 0 ;
39995 void *argp1 = 0 ;
39996 int res1 = 0 ;
39997 PyObject *swig_obj[1] ;
39998
39999 if (!args) SWIG_fail;
40000 swig_obj[0] = args;
40001 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
40002 if (!SWIG_IsOK(res1)) {
40003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetTarget" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
40004 }
40005 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
40006 {
40007 PyThreadState* __tstate = wxPyBeginAllowThreads();
40008 {
40009 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
40010 result = (wxString *) &_result_ref;
40011 }
40012 wxPyEndAllowThreads(__tstate);
40013 if (PyErr_Occurred()) SWIG_fail;
40014 }
40015 {
40016 #if wxUSE_UNICODE
40017 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
40018 #else
40019 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
40020 #endif
40021 }
40022 return resultobj;
40023 fail:
40024 return NULL;
40025 }
40026
40027
40028 SWIGINTERN PyObject *_wrap_HelpEvent_SetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40029 PyObject *resultobj = 0;
40030 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
40031 wxString *arg2 = 0 ;
40032 void *argp1 = 0 ;
40033 int res1 = 0 ;
40034 bool temp2 = false ;
40035 PyObject * obj0 = 0 ;
40036 PyObject * obj1 = 0 ;
40037 char * kwnames[] = {
40038 (char *) "self",(char *) "target", NULL
40039 };
40040
40041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) SWIG_fail;
40042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
40043 if (!SWIG_IsOK(res1)) {
40044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetTarget" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
40045 }
40046 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
40047 {
40048 arg2 = wxString_in_helper(obj1);
40049 if (arg2 == NULL) SWIG_fail;
40050 temp2 = true;
40051 }
40052 {
40053 PyThreadState* __tstate = wxPyBeginAllowThreads();
40054 (arg1)->SetTarget((wxString const &)*arg2);
40055 wxPyEndAllowThreads(__tstate);
40056 if (PyErr_Occurred()) SWIG_fail;
40057 }
40058 resultobj = SWIG_Py_Void();
40059 {
40060 if (temp2)
40061 delete arg2;
40062 }
40063 return resultobj;
40064 fail:
40065 {
40066 if (temp2)
40067 delete arg2;
40068 }
40069 return NULL;
40070 }
40071
40072
40073 SWIGINTERN PyObject *_wrap_HelpEvent_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40074 PyObject *resultobj = 0;
40075 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
40076 wxHelpEvent::Origin result;
40077 void *argp1 = 0 ;
40078 int res1 = 0 ;
40079 PyObject *swig_obj[1] ;
40080
40081 if (!args) SWIG_fail;
40082 swig_obj[0] = args;
40083 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
40084 if (!SWIG_IsOK(res1)) {
40085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
40086 }
40087 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
40088 {
40089 PyThreadState* __tstate = wxPyBeginAllowThreads();
40090 result = (wxHelpEvent::Origin)((wxHelpEvent const *)arg1)->GetOrigin();
40091 wxPyEndAllowThreads(__tstate);
40092 if (PyErr_Occurred()) SWIG_fail;
40093 }
40094 resultobj = SWIG_From_int(static_cast< int >(result));
40095 return resultobj;
40096 fail:
40097 return NULL;
40098 }
40099
40100
40101 SWIGINTERN PyObject *_wrap_HelpEvent_SetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40102 PyObject *resultobj = 0;
40103 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
40104 wxHelpEvent::Origin arg2 ;
40105 void *argp1 = 0 ;
40106 int res1 = 0 ;
40107 int val2 ;
40108 int ecode2 = 0 ;
40109 PyObject * obj0 = 0 ;
40110 PyObject * obj1 = 0 ;
40111 char * kwnames[] = {
40112 (char *) "self",(char *) "origin", NULL
40113 };
40114
40115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetOrigin",kwnames,&obj0,&obj1)) SWIG_fail;
40116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
40117 if (!SWIG_IsOK(res1)) {
40118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
40119 }
40120 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
40121 ecode2 = SWIG_AsVal_int(obj1, &val2);
40122 if (!SWIG_IsOK(ecode2)) {
40123 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpEvent_SetOrigin" "', expected argument " "2"" of type '" "wxHelpEvent::Origin""'");
40124 }
40125 arg2 = static_cast< wxHelpEvent::Origin >(val2);
40126 {
40127 PyThreadState* __tstate = wxPyBeginAllowThreads();
40128 (arg1)->SetOrigin(arg2);
40129 wxPyEndAllowThreads(__tstate);
40130 if (PyErr_Occurred()) SWIG_fail;
40131 }
40132 resultobj = SWIG_Py_Void();
40133 return resultobj;
40134 fail:
40135 return NULL;
40136 }
40137
40138
40139 SWIGINTERN PyObject *HelpEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40140 PyObject *obj;
40141 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40142 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpEvent, SWIG_NewClientData(obj));
40143 return SWIG_Py_Void();
40144 }
40145
40146 SWIGINTERN PyObject *HelpEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40147 return SWIG_Python_InitShadowInstance(args);
40148 }
40149
40150 SWIGINTERN PyObject *_wrap_new_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40151 PyObject *resultobj = 0;
40152 wxWindow *arg1 = (wxWindow *) NULL ;
40153 bool arg2 = (bool) true ;
40154 wxContextHelp *result = 0 ;
40155 void *argp1 = 0 ;
40156 int res1 = 0 ;
40157 bool val2 ;
40158 int ecode2 = 0 ;
40159 PyObject * obj0 = 0 ;
40160 PyObject * obj1 = 0 ;
40161 char * kwnames[] = {
40162 (char *) "window",(char *) "doNow", NULL
40163 };
40164
40165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40166 if (obj0) {
40167 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40168 if (!SWIG_IsOK(res1)) {
40169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelp" "', expected argument " "1"" of type '" "wxWindow *""'");
40170 }
40171 arg1 = reinterpret_cast< wxWindow * >(argp1);
40172 }
40173 if (obj1) {
40174 ecode2 = SWIG_AsVal_bool(obj1, &val2);
40175 if (!SWIG_IsOK(ecode2)) {
40176 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelp" "', expected argument " "2"" of type '" "bool""'");
40177 }
40178 arg2 = static_cast< bool >(val2);
40179 }
40180 {
40181 if (!wxPyCheckForApp()) SWIG_fail;
40182 PyThreadState* __tstate = wxPyBeginAllowThreads();
40183 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
40184 wxPyEndAllowThreads(__tstate);
40185 if (PyErr_Occurred()) SWIG_fail;
40186 }
40187 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelp, SWIG_POINTER_NEW | 0 );
40188 return resultobj;
40189 fail:
40190 return NULL;
40191 }
40192
40193
40194 SWIGINTERN PyObject *_wrap_delete_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40195 PyObject *resultobj = 0;
40196 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
40197 void *argp1 = 0 ;
40198 int res1 = 0 ;
40199 PyObject *swig_obj[1] ;
40200
40201 if (!args) SWIG_fail;
40202 swig_obj[0] = args;
40203 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, SWIG_POINTER_DISOWN | 0 );
40204 if (!SWIG_IsOK(res1)) {
40205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
40206 }
40207 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
40208 {
40209 PyThreadState* __tstate = wxPyBeginAllowThreads();
40210 delete arg1;
40211
40212 wxPyEndAllowThreads(__tstate);
40213 if (PyErr_Occurred()) SWIG_fail;
40214 }
40215 resultobj = SWIG_Py_Void();
40216 return resultobj;
40217 fail:
40218 return NULL;
40219 }
40220
40221
40222 SWIGINTERN PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40223 PyObject *resultobj = 0;
40224 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
40225 wxWindow *arg2 = (wxWindow *) NULL ;
40226 bool result;
40227 void *argp1 = 0 ;
40228 int res1 = 0 ;
40229 void *argp2 = 0 ;
40230 int res2 = 0 ;
40231 PyObject * obj0 = 0 ;
40232 PyObject * obj1 = 0 ;
40233 char * kwnames[] = {
40234 (char *) "self",(char *) "window", NULL
40235 };
40236
40237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40238 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
40239 if (!SWIG_IsOK(res1)) {
40240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
40241 }
40242 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
40243 if (obj1) {
40244 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40245 if (!SWIG_IsOK(res2)) {
40246 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40247 }
40248 arg2 = reinterpret_cast< wxWindow * >(argp2);
40249 }
40250 {
40251 PyThreadState* __tstate = wxPyBeginAllowThreads();
40252 result = (bool)(arg1)->BeginContextHelp(arg2);
40253 wxPyEndAllowThreads(__tstate);
40254 if (PyErr_Occurred()) SWIG_fail;
40255 }
40256 {
40257 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40258 }
40259 return resultobj;
40260 fail:
40261 return NULL;
40262 }
40263
40264
40265 SWIGINTERN PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40266 PyObject *resultobj = 0;
40267 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
40268 bool result;
40269 void *argp1 = 0 ;
40270 int res1 = 0 ;
40271 PyObject *swig_obj[1] ;
40272
40273 if (!args) SWIG_fail;
40274 swig_obj[0] = args;
40275 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
40276 if (!SWIG_IsOK(res1)) {
40277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_EndContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
40278 }
40279 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
40280 {
40281 PyThreadState* __tstate = wxPyBeginAllowThreads();
40282 result = (bool)(arg1)->EndContextHelp();
40283 wxPyEndAllowThreads(__tstate);
40284 if (PyErr_Occurred()) SWIG_fail;
40285 }
40286 {
40287 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40288 }
40289 return resultobj;
40290 fail:
40291 return NULL;
40292 }
40293
40294
40295 SWIGINTERN PyObject *ContextHelp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40296 PyObject *obj;
40297 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40298 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelp, SWIG_NewClientData(obj));
40299 return SWIG_Py_Void();
40300 }
40301
40302 SWIGINTERN PyObject *ContextHelp_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40303 return SWIG_Python_InitShadowInstance(args);
40304 }
40305
40306 SWIGINTERN PyObject *_wrap_new_ContextHelpButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40307 PyObject *resultobj = 0;
40308 wxWindow *arg1 = (wxWindow *) 0 ;
40309 int arg2 = (int) wxID_CONTEXT_HELP ;
40310 wxPoint const &arg3_defvalue = wxDefaultPosition ;
40311 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
40312 wxSize const &arg4_defvalue = wxDefaultSize ;
40313 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
40314 long arg5 = (long) wxBU_AUTODRAW ;
40315 wxContextHelpButton *result = 0 ;
40316 void *argp1 = 0 ;
40317 int res1 = 0 ;
40318 int val2 ;
40319 int ecode2 = 0 ;
40320 wxPoint temp3 ;
40321 wxSize temp4 ;
40322 long val5 ;
40323 int ecode5 = 0 ;
40324 PyObject * obj0 = 0 ;
40325 PyObject * obj1 = 0 ;
40326 PyObject * obj2 = 0 ;
40327 PyObject * obj3 = 0 ;
40328 PyObject * obj4 = 0 ;
40329 char * kwnames[] = {
40330 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
40331 };
40332
40333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40335 if (!SWIG_IsOK(res1)) {
40336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelpButton" "', expected argument " "1"" of type '" "wxWindow *""'");
40337 }
40338 arg1 = reinterpret_cast< wxWindow * >(argp1);
40339 if (obj1) {
40340 ecode2 = SWIG_AsVal_int(obj1, &val2);
40341 if (!SWIG_IsOK(ecode2)) {
40342 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelpButton" "', expected argument " "2"" of type '" "int""'");
40343 }
40344 arg2 = static_cast< int >(val2);
40345 }
40346 if (obj2) {
40347 {
40348 arg3 = &temp3;
40349 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40350 }
40351 }
40352 if (obj3) {
40353 {
40354 arg4 = &temp4;
40355 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
40356 }
40357 }
40358 if (obj4) {
40359 ecode5 = SWIG_AsVal_long(obj4, &val5);
40360 if (!SWIG_IsOK(ecode5)) {
40361 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ContextHelpButton" "', expected argument " "5"" of type '" "long""'");
40362 }
40363 arg5 = static_cast< long >(val5);
40364 }
40365 {
40366 if (!wxPyCheckForApp()) SWIG_fail;
40367 PyThreadState* __tstate = wxPyBeginAllowThreads();
40368 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
40369 wxPyEndAllowThreads(__tstate);
40370 if (PyErr_Occurred()) SWIG_fail;
40371 }
40372 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelpButton, SWIG_POINTER_NEW | 0 );
40373 return resultobj;
40374 fail:
40375 return NULL;
40376 }
40377
40378
40379 SWIGINTERN PyObject *ContextHelpButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40380 PyObject *obj;
40381 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40382 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelpButton, SWIG_NewClientData(obj));
40383 return SWIG_Py_Void();
40384 }
40385
40386 SWIGINTERN PyObject *ContextHelpButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40387 return SWIG_Python_InitShadowInstance(args);
40388 }
40389
40390 SWIGINTERN PyObject *_wrap_delete_HelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40391 PyObject *resultobj = 0;
40392 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40393 void *argp1 = 0 ;
40394 int res1 = 0 ;
40395 PyObject *swig_obj[1] ;
40396
40397 if (!args) SWIG_fail;
40398 swig_obj[0] = args;
40399 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
40400 if (!SWIG_IsOK(res1)) {
40401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HelpProvider" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40402 }
40403 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40404 {
40405 PyThreadState* __tstate = wxPyBeginAllowThreads();
40406 delete arg1;
40407
40408 wxPyEndAllowThreads(__tstate);
40409 if (PyErr_Occurred()) SWIG_fail;
40410 }
40411 resultobj = SWIG_Py_Void();
40412 return resultobj;
40413 fail:
40414 return NULL;
40415 }
40416
40417
40418 SWIGINTERN PyObject *_wrap_HelpProvider_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40419 PyObject *resultobj = 0;
40420 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40421 wxHelpProvider *result = 0 ;
40422 int res1 = 0 ;
40423 PyObject * obj0 = 0 ;
40424 char * kwnames[] = {
40425 (char *) "helpProvider", NULL
40426 };
40427
40428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) SWIG_fail;
40429 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
40430 if (!SWIG_IsOK(res1)) {
40431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Set" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40432 }
40433 {
40434 PyThreadState* __tstate = wxPyBeginAllowThreads();
40435 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
40436 wxPyEndAllowThreads(__tstate);
40437 if (PyErr_Occurred()) SWIG_fail;
40438 }
40439 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_OWN | 0 );
40440 return resultobj;
40441 fail:
40442 return NULL;
40443 }
40444
40445
40446 SWIGINTERN PyObject *_wrap_HelpProvider_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40447 PyObject *resultobj = 0;
40448 wxHelpProvider *result = 0 ;
40449
40450 if (!SWIG_Python_UnpackTuple(args,"HelpProvider_Get",0,0,0)) SWIG_fail;
40451 {
40452 PyThreadState* __tstate = wxPyBeginAllowThreads();
40453 result = (wxHelpProvider *)wxHelpProvider::Get();
40454 wxPyEndAllowThreads(__tstate);
40455 if (PyErr_Occurred()) SWIG_fail;
40456 }
40457 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40458 return resultobj;
40459 fail:
40460 return NULL;
40461 }
40462
40463
40464 SWIGINTERN PyObject *_wrap_HelpProvider_GetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40465 PyObject *resultobj = 0;
40466 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40467 wxWindow *arg2 = (wxWindow *) 0 ;
40468 wxString result;
40469 void *argp1 = 0 ;
40470 int res1 = 0 ;
40471 void *argp2 = 0 ;
40472 int res2 = 0 ;
40473 PyObject * obj0 = 0 ;
40474 PyObject * obj1 = 0 ;
40475 char * kwnames[] = {
40476 (char *) "self",(char *) "window", NULL
40477 };
40478
40479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40481 if (!SWIG_IsOK(res1)) {
40482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_GetHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40483 }
40484 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40485 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40486 if (!SWIG_IsOK(res2)) {
40487 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_GetHelp" "', expected argument " "2"" of type '" "wxWindow const *""'");
40488 }
40489 arg2 = reinterpret_cast< wxWindow * >(argp2);
40490 {
40491 PyThreadState* __tstate = wxPyBeginAllowThreads();
40492 result = (arg1)->GetHelp((wxWindow const *)arg2);
40493 wxPyEndAllowThreads(__tstate);
40494 if (PyErr_Occurred()) SWIG_fail;
40495 }
40496 {
40497 #if wxUSE_UNICODE
40498 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
40499 #else
40500 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
40501 #endif
40502 }
40503 return resultobj;
40504 fail:
40505 return NULL;
40506 }
40507
40508
40509 SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40510 PyObject *resultobj = 0;
40511 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40512 wxWindow *arg2 = (wxWindow *) 0 ;
40513 bool result;
40514 void *argp1 = 0 ;
40515 int res1 = 0 ;
40516 void *argp2 = 0 ;
40517 int res2 = 0 ;
40518 PyObject * obj0 = 0 ;
40519 PyObject * obj1 = 0 ;
40520 char * kwnames[] = {
40521 (char *) "self",(char *) "window", NULL
40522 };
40523
40524 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40525 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40526 if (!SWIG_IsOK(res1)) {
40527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40528 }
40529 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40530 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40531 if (!SWIG_IsOK(res2)) {
40532 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40533 }
40534 arg2 = reinterpret_cast< wxWindow * >(argp2);
40535 {
40536 PyThreadState* __tstate = wxPyBeginAllowThreads();
40537 result = (bool)(arg1)->ShowHelp(arg2);
40538 wxPyEndAllowThreads(__tstate);
40539 if (PyErr_Occurred()) SWIG_fail;
40540 }
40541 {
40542 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40543 }
40544 return resultobj;
40545 fail:
40546 return NULL;
40547 }
40548
40549
40550 SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelpAtPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40551 PyObject *resultobj = 0;
40552 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40553 wxWindowBase *arg2 = (wxWindowBase *) 0 ;
40554 wxPoint *arg3 = 0 ;
40555 wxHelpEvent::Origin arg4 ;
40556 bool result;
40557 void *argp1 = 0 ;
40558 int res1 = 0 ;
40559 void *argp2 = 0 ;
40560 int res2 = 0 ;
40561 wxPoint temp3 ;
40562 int val4 ;
40563 int ecode4 = 0 ;
40564 PyObject * obj0 = 0 ;
40565 PyObject * obj1 = 0 ;
40566 PyObject * obj2 = 0 ;
40567 PyObject * obj3 = 0 ;
40568 char * kwnames[] = {
40569 (char *) "self",(char *) "window",(char *) "pt",(char *) "origin", NULL
40570 };
40571
40572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:HelpProvider_ShowHelpAtPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40574 if (!SWIG_IsOK(res1)) {
40575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40576 }
40577 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40578 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindowBase, 0 | 0 );
40579 if (!SWIG_IsOK(res2)) {
40580 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "2"" of type '" "wxWindowBase *""'");
40581 }
40582 arg2 = reinterpret_cast< wxWindowBase * >(argp2);
40583 {
40584 arg3 = &temp3;
40585 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40586 }
40587 ecode4 = SWIG_AsVal_int(obj3, &val4);
40588 if (!SWIG_IsOK(ecode4)) {
40589 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
40590 }
40591 arg4 = static_cast< wxHelpEvent::Origin >(val4);
40592 {
40593 PyThreadState* __tstate = wxPyBeginAllowThreads();
40594 result = (bool)(arg1)->ShowHelpAtPoint(arg2,(wxPoint const &)*arg3,arg4);
40595 wxPyEndAllowThreads(__tstate);
40596 if (PyErr_Occurred()) SWIG_fail;
40597 }
40598 {
40599 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40600 }
40601 return resultobj;
40602 fail:
40603 return NULL;
40604 }
40605
40606
40607 SWIGINTERN PyObject *_wrap_HelpProvider_AddHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40608 PyObject *resultobj = 0;
40609 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40610 wxWindow *arg2 = (wxWindow *) 0 ;
40611 wxString *arg3 = 0 ;
40612 void *argp1 = 0 ;
40613 int res1 = 0 ;
40614 void *argp2 = 0 ;
40615 int res2 = 0 ;
40616 bool temp3 = false ;
40617 PyObject * obj0 = 0 ;
40618 PyObject * obj1 = 0 ;
40619 PyObject * obj2 = 0 ;
40620 char * kwnames[] = {
40621 (char *) "self",(char *) "window",(char *) "text", NULL
40622 };
40623
40624 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40625 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40626 if (!SWIG_IsOK(res1)) {
40627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40628 }
40629 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40630 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40631 if (!SWIG_IsOK(res2)) {
40632 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_AddHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40633 }
40634 arg2 = reinterpret_cast< wxWindow * >(argp2);
40635 {
40636 arg3 = wxString_in_helper(obj2);
40637 if (arg3 == NULL) SWIG_fail;
40638 temp3 = true;
40639 }
40640 {
40641 PyThreadState* __tstate = wxPyBeginAllowThreads();
40642 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40643 wxPyEndAllowThreads(__tstate);
40644 if (PyErr_Occurred()) SWIG_fail;
40645 }
40646 resultobj = SWIG_Py_Void();
40647 {
40648 if (temp3)
40649 delete arg3;
40650 }
40651 return resultobj;
40652 fail:
40653 {
40654 if (temp3)
40655 delete arg3;
40656 }
40657 return NULL;
40658 }
40659
40660
40661 SWIGINTERN PyObject *_wrap_HelpProvider_AddHelpById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40662 PyObject *resultobj = 0;
40663 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40664 int arg2 ;
40665 wxString *arg3 = 0 ;
40666 void *argp1 = 0 ;
40667 int res1 = 0 ;
40668 int val2 ;
40669 int ecode2 = 0 ;
40670 bool temp3 = false ;
40671 PyObject * obj0 = 0 ;
40672 PyObject * obj1 = 0 ;
40673 PyObject * obj2 = 0 ;
40674 char * kwnames[] = {
40675 (char *) "self",(char *) "id",(char *) "text", NULL
40676 };
40677
40678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40680 if (!SWIG_IsOK(res1)) {
40681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelpById" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40682 }
40683 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40684 ecode2 = SWIG_AsVal_int(obj1, &val2);
40685 if (!SWIG_IsOK(ecode2)) {
40686 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpProvider_AddHelpById" "', expected argument " "2"" of type '" "int""'");
40687 }
40688 arg2 = static_cast< int >(val2);
40689 {
40690 arg3 = wxString_in_helper(obj2);
40691 if (arg3 == NULL) SWIG_fail;
40692 temp3 = true;
40693 }
40694 {
40695 PyThreadState* __tstate = wxPyBeginAllowThreads();
40696 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40697 wxPyEndAllowThreads(__tstate);
40698 if (PyErr_Occurred()) SWIG_fail;
40699 }
40700 resultobj = SWIG_Py_Void();
40701 {
40702 if (temp3)
40703 delete arg3;
40704 }
40705 return resultobj;
40706 fail:
40707 {
40708 if (temp3)
40709 delete arg3;
40710 }
40711 return NULL;
40712 }
40713
40714
40715 SWIGINTERN PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40716 PyObject *resultobj = 0;
40717 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40718 wxWindow *arg2 = (wxWindow *) 0 ;
40719 void *argp1 = 0 ;
40720 int res1 = 0 ;
40721 void *argp2 = 0 ;
40722 int res2 = 0 ;
40723 PyObject * obj0 = 0 ;
40724 PyObject * obj1 = 0 ;
40725 char * kwnames[] = {
40726 (char *) "self",(char *) "window", NULL
40727 };
40728
40729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40731 if (!SWIG_IsOK(res1)) {
40732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40733 }
40734 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40735 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40736 if (!SWIG_IsOK(res2)) {
40737 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40738 }
40739 arg2 = reinterpret_cast< wxWindow * >(argp2);
40740 {
40741 PyThreadState* __tstate = wxPyBeginAllowThreads();
40742 (arg1)->RemoveHelp(arg2);
40743 wxPyEndAllowThreads(__tstate);
40744 if (PyErr_Occurred()) SWIG_fail;
40745 }
40746 resultobj = SWIG_Py_Void();
40747 return resultobj;
40748 fail:
40749 return NULL;
40750 }
40751
40752
40753 SWIGINTERN PyObject *_wrap_HelpProvider_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40754 PyObject *resultobj = 0;
40755 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40756 void *argp1 = 0 ;
40757 int res1 = 0 ;
40758 PyObject *swig_obj[1] ;
40759
40760 if (!args) SWIG_fail;
40761 swig_obj[0] = args;
40762 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40763 if (!SWIG_IsOK(res1)) {
40764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Destroy" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40765 }
40766 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40767 {
40768 PyThreadState* __tstate = wxPyBeginAllowThreads();
40769 wxHelpProvider_Destroy(arg1);
40770 wxPyEndAllowThreads(__tstate);
40771 if (PyErr_Occurred()) SWIG_fail;
40772 }
40773 resultobj = SWIG_Py_Void();
40774 return resultobj;
40775 fail:
40776 return NULL;
40777 }
40778
40779
40780 SWIGINTERN PyObject *HelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40781 PyObject *obj;
40782 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40783 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpProvider, SWIG_NewClientData(obj));
40784 return SWIG_Py_Void();
40785 }
40786
40787 SWIGINTERN PyObject *_wrap_new_SimpleHelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40788 PyObject *resultobj = 0;
40789 wxSimpleHelpProvider *result = 0 ;
40790
40791 if (!SWIG_Python_UnpackTuple(args,"new_SimpleHelpProvider",0,0,0)) SWIG_fail;
40792 {
40793 PyThreadState* __tstate = wxPyBeginAllowThreads();
40794 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
40795 wxPyEndAllowThreads(__tstate);
40796 if (PyErr_Occurred()) SWIG_fail;
40797 }
40798 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSimpleHelpProvider, SWIG_POINTER_NEW | 0 );
40799 return resultobj;
40800 fail:
40801 return NULL;
40802 }
40803
40804
40805 SWIGINTERN PyObject *SimpleHelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40806 PyObject *obj;
40807 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40808 SWIG_TypeNewClientData(SWIGTYPE_p_wxSimpleHelpProvider, SWIG_NewClientData(obj));
40809 return SWIG_Py_Void();
40810 }
40811
40812 SWIGINTERN PyObject *SimpleHelpProvider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40813 return SWIG_Python_InitShadowInstance(args);
40814 }
40815
40816 SWIGINTERN PyObject *_wrap_new_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40817 PyObject *resultobj = 0;
40818 wxBitmap *arg1 = 0 ;
40819 wxCursor const &arg2_defvalue = wxNullCursor ;
40820 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40821 wxGenericDragImage *result = 0 ;
40822 void *argp1 = 0 ;
40823 int res1 = 0 ;
40824 void *argp2 = 0 ;
40825 int res2 = 0 ;
40826 PyObject * obj0 = 0 ;
40827 PyObject * obj1 = 0 ;
40828 char * kwnames[] = {
40829 (char *) "image",(char *) "cursor", NULL
40830 };
40831
40832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) SWIG_fail;
40833 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
40834 if (!SWIG_IsOK(res1)) {
40835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40836 }
40837 if (!argp1) {
40838 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40839 }
40840 arg1 = reinterpret_cast< wxBitmap * >(argp1);
40841 if (obj1) {
40842 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40843 if (!SWIG_IsOK(res2)) {
40844 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
40845 }
40846 if (!argp2) {
40847 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
40848 }
40849 arg2 = reinterpret_cast< wxCursor * >(argp2);
40850 }
40851 {
40852 if (!wxPyCheckForApp()) SWIG_fail;
40853 PyThreadState* __tstate = wxPyBeginAllowThreads();
40854 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
40855 wxPyEndAllowThreads(__tstate);
40856 if (PyErr_Occurred()) SWIG_fail;
40857 }
40858 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_NEW | 0 );
40859 return resultobj;
40860 fail:
40861 return NULL;
40862 }
40863
40864
40865 SWIGINTERN PyObject *_wrap_new_DragIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40866 PyObject *resultobj = 0;
40867 wxIcon *arg1 = 0 ;
40868 wxCursor const &arg2_defvalue = wxNullCursor ;
40869 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40870 wxGenericDragImage *result = 0 ;
40871 void *argp1 = 0 ;
40872 int res1 = 0 ;
40873 void *argp2 = 0 ;
40874 int res2 = 0 ;
40875 PyObject * obj0 = 0 ;
40876 PyObject * obj1 = 0 ;
40877 char * kwnames[] = {
40878 (char *) "image",(char *) "cursor", NULL
40879 };
40880
40881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) SWIG_fail;
40882 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
40883 if (!SWIG_IsOK(res1)) {
40884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40885 }
40886 if (!argp1) {
40887 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40888 }
40889 arg1 = reinterpret_cast< wxIcon * >(argp1);
40890 if (obj1) {
40891 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40892 if (!SWIG_IsOK(res2)) {
40893 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
40894 }
40895 if (!argp2) {
40896 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
40897 }
40898 arg2 = reinterpret_cast< wxCursor * >(argp2);
40899 }
40900 {
40901 if (!wxPyCheckForApp()) SWIG_fail;
40902 PyThreadState* __tstate = wxPyBeginAllowThreads();
40903 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
40904 wxPyEndAllowThreads(__tstate);
40905 if (PyErr_Occurred()) SWIG_fail;
40906 }
40907 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40908 return resultobj;
40909 fail:
40910 return NULL;
40911 }
40912
40913
40914 SWIGINTERN PyObject *_wrap_new_DragString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40915 PyObject *resultobj = 0;
40916 wxString *arg1 = 0 ;
40917 wxCursor const &arg2_defvalue = wxNullCursor ;
40918 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40919 wxGenericDragImage *result = 0 ;
40920 bool temp1 = false ;
40921 void *argp2 = 0 ;
40922 int res2 = 0 ;
40923 PyObject * obj0 = 0 ;
40924 PyObject * obj1 = 0 ;
40925 char * kwnames[] = {
40926 (char *) "str",(char *) "cursor", NULL
40927 };
40928
40929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) SWIG_fail;
40930 {
40931 arg1 = wxString_in_helper(obj0);
40932 if (arg1 == NULL) SWIG_fail;
40933 temp1 = true;
40934 }
40935 if (obj1) {
40936 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40937 if (!SWIG_IsOK(res2)) {
40938 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
40939 }
40940 if (!argp2) {
40941 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
40942 }
40943 arg2 = reinterpret_cast< wxCursor * >(argp2);
40944 }
40945 {
40946 if (!wxPyCheckForApp()) SWIG_fail;
40947 PyThreadState* __tstate = wxPyBeginAllowThreads();
40948 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
40949 wxPyEndAllowThreads(__tstate);
40950 if (PyErr_Occurred()) SWIG_fail;
40951 }
40952 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40953 {
40954 if (temp1)
40955 delete arg1;
40956 }
40957 return resultobj;
40958 fail:
40959 {
40960 if (temp1)
40961 delete arg1;
40962 }
40963 return NULL;
40964 }
40965
40966
40967 SWIGINTERN PyObject *_wrap_new_DragTreeItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40968 PyObject *resultobj = 0;
40969 wxPyTreeCtrl *arg1 = 0 ;
40970 wxTreeItemId *arg2 = 0 ;
40971 wxGenericDragImage *result = 0 ;
40972 void *argp1 = 0 ;
40973 int res1 = 0 ;
40974 void *argp2 = 0 ;
40975 int res2 = 0 ;
40976 PyObject * obj0 = 0 ;
40977 PyObject * obj1 = 0 ;
40978 char * kwnames[] = {
40979 (char *) "treeCtrl",(char *) "id", NULL
40980 };
40981
40982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) SWIG_fail;
40983 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyTreeCtrl, 0 | 0);
40984 if (!SWIG_IsOK(res1)) {
40985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40986 }
40987 if (!argp1) {
40988 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40989 }
40990 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
40991 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 );
40992 if (!SWIG_IsOK(res2)) {
40993 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40994 }
40995 if (!argp2) {
40996 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40997 }
40998 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
40999 {
41000 if (!wxPyCheckForApp()) SWIG_fail;
41001 PyThreadState* __tstate = wxPyBeginAllowThreads();
41002 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
41003 wxPyEndAllowThreads(__tstate);
41004 if (PyErr_Occurred()) SWIG_fail;
41005 }
41006 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
41007 return resultobj;
41008 fail:
41009 return NULL;
41010 }
41011
41012
41013 SWIGINTERN PyObject *_wrap_new_DragListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41014 PyObject *resultobj = 0;
41015 wxPyListCtrl *arg1 = 0 ;
41016 long arg2 ;
41017 wxGenericDragImage *result = 0 ;
41018 void *argp1 = 0 ;
41019 int res1 = 0 ;
41020 long val2 ;
41021 int ecode2 = 0 ;
41022 PyObject * obj0 = 0 ;
41023 PyObject * obj1 = 0 ;
41024 char * kwnames[] = {
41025 (char *) "listCtrl",(char *) "id", NULL
41026 };
41027
41028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) SWIG_fail;
41029 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyListCtrl, 0 | 0);
41030 if (!SWIG_IsOK(res1)) {
41031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
41032 }
41033 if (!argp1) {
41034 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
41035 }
41036 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
41037 ecode2 = SWIG_AsVal_long(obj1, &val2);
41038 if (!SWIG_IsOK(ecode2)) {
41039 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DragListItem" "', expected argument " "2"" of type '" "long""'");
41040 }
41041 arg2 = static_cast< long >(val2);
41042 {
41043 if (!wxPyCheckForApp()) SWIG_fail;
41044 PyThreadState* __tstate = wxPyBeginAllowThreads();
41045 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
41046 wxPyEndAllowThreads(__tstate);
41047 if (PyErr_Occurred()) SWIG_fail;
41048 }
41049 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
41050 return resultobj;
41051 fail:
41052 return NULL;
41053 }
41054
41055
41056 SWIGINTERN PyObject *_wrap_delete_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41057 PyObject *resultobj = 0;
41058 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41059 void *argp1 = 0 ;
41060 int res1 = 0 ;
41061 PyObject *swig_obj[1] ;
41062
41063 if (!args) SWIG_fail;
41064 swig_obj[0] = args;
41065 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_DISOWN | 0 );
41066 if (!SWIG_IsOK(res1)) {
41067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DragImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41068 }
41069 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41070 {
41071 PyThreadState* __tstate = wxPyBeginAllowThreads();
41072 delete arg1;
41073
41074 wxPyEndAllowThreads(__tstate);
41075 if (PyErr_Occurred()) SWIG_fail;
41076 }
41077 resultobj = SWIG_Py_Void();
41078 return resultobj;
41079 fail:
41080 return NULL;
41081 }
41082
41083
41084 SWIGINTERN PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41085 PyObject *resultobj = 0;
41086 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41087 wxBitmap *arg2 = (wxBitmap *) 0 ;
41088 void *argp1 = 0 ;
41089 int res1 = 0 ;
41090 void *argp2 = 0 ;
41091 int res2 = 0 ;
41092 PyObject * obj0 = 0 ;
41093 PyObject * obj1 = 0 ;
41094 char * kwnames[] = {
41095 (char *) "self",(char *) "bitmap", NULL
41096 };
41097
41098 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
41099 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41100 if (!SWIG_IsOK(res1)) {
41101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41102 }
41103 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41104 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
41105 if (!SWIG_IsOK(res2)) {
41106 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "2"" of type '" "wxBitmap *""'");
41107 }
41108 arg2 = reinterpret_cast< wxBitmap * >(argp2);
41109 {
41110 PyThreadState* __tstate = wxPyBeginAllowThreads();
41111 (arg1)->SetBackingBitmap(arg2);
41112 wxPyEndAllowThreads(__tstate);
41113 if (PyErr_Occurred()) SWIG_fail;
41114 }
41115 resultobj = SWIG_Py_Void();
41116 return resultobj;
41117 fail:
41118 return NULL;
41119 }
41120
41121
41122 SWIGINTERN PyObject *_wrap_DragImage_BeginDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41123 PyObject *resultobj = 0;
41124 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41125 wxPoint *arg2 = 0 ;
41126 wxWindow *arg3 = (wxWindow *) 0 ;
41127 bool arg4 = (bool) false ;
41128 wxRect *arg5 = (wxRect *) NULL ;
41129 bool result;
41130 void *argp1 = 0 ;
41131 int res1 = 0 ;
41132 wxPoint temp2 ;
41133 void *argp3 = 0 ;
41134 int res3 = 0 ;
41135 bool val4 ;
41136 int ecode4 = 0 ;
41137 void *argp5 = 0 ;
41138 int res5 = 0 ;
41139 PyObject * obj0 = 0 ;
41140 PyObject * obj1 = 0 ;
41141 PyObject * obj2 = 0 ;
41142 PyObject * obj3 = 0 ;
41143 PyObject * obj4 = 0 ;
41144 char * kwnames[] = {
41145 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
41146 };
41147
41148 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41149 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41150 if (!SWIG_IsOK(res1)) {
41151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41152 }
41153 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41154 {
41155 arg2 = &temp2;
41156 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41157 }
41158 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
41159 if (!SWIG_IsOK(res3)) {
41160 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDrag" "', expected argument " "3"" of type '" "wxWindow *""'");
41161 }
41162 arg3 = reinterpret_cast< wxWindow * >(argp3);
41163 if (obj3) {
41164 ecode4 = SWIG_AsVal_bool(obj3, &val4);
41165 if (!SWIG_IsOK(ecode4)) {
41166 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_BeginDrag" "', expected argument " "4"" of type '" "bool""'");
41167 }
41168 arg4 = static_cast< bool >(val4);
41169 }
41170 if (obj4) {
41171 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxRect, 0 | 0 );
41172 if (!SWIG_IsOK(res5)) {
41173 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DragImage_BeginDrag" "', expected argument " "5"" of type '" "wxRect *""'");
41174 }
41175 arg5 = reinterpret_cast< wxRect * >(argp5);
41176 }
41177 {
41178 PyThreadState* __tstate = wxPyBeginAllowThreads();
41179 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
41180 wxPyEndAllowThreads(__tstate);
41181 if (PyErr_Occurred()) SWIG_fail;
41182 }
41183 {
41184 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41185 }
41186 return resultobj;
41187 fail:
41188 return NULL;
41189 }
41190
41191
41192 SWIGINTERN PyObject *_wrap_DragImage_BeginDragBounded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41193 PyObject *resultobj = 0;
41194 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41195 wxPoint *arg2 = 0 ;
41196 wxWindow *arg3 = (wxWindow *) 0 ;
41197 wxWindow *arg4 = (wxWindow *) 0 ;
41198 bool result;
41199 void *argp1 = 0 ;
41200 int res1 = 0 ;
41201 wxPoint temp2 ;
41202 void *argp3 = 0 ;
41203 int res3 = 0 ;
41204 void *argp4 = 0 ;
41205 int res4 = 0 ;
41206 PyObject * obj0 = 0 ;
41207 PyObject * obj1 = 0 ;
41208 PyObject * obj2 = 0 ;
41209 PyObject * obj3 = 0 ;
41210 char * kwnames[] = {
41211 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
41212 };
41213
41214 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
41215 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41216 if (!SWIG_IsOK(res1)) {
41217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDragBounded" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41218 }
41219 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41220 {
41221 arg2 = &temp2;
41222 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41223 }
41224 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
41225 if (!SWIG_IsOK(res3)) {
41226 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDragBounded" "', expected argument " "3"" of type '" "wxWindow *""'");
41227 }
41228 arg3 = reinterpret_cast< wxWindow * >(argp3);
41229 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
41230 if (!SWIG_IsOK(res4)) {
41231 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DragImage_BeginDragBounded" "', expected argument " "4"" of type '" "wxWindow *""'");
41232 }
41233 arg4 = reinterpret_cast< wxWindow * >(argp4);
41234 {
41235 PyThreadState* __tstate = wxPyBeginAllowThreads();
41236 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
41237 wxPyEndAllowThreads(__tstate);
41238 if (PyErr_Occurred()) SWIG_fail;
41239 }
41240 {
41241 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41242 }
41243 return resultobj;
41244 fail:
41245 return NULL;
41246 }
41247
41248
41249 SWIGINTERN PyObject *_wrap_DragImage_EndDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41250 PyObject *resultobj = 0;
41251 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41252 bool result;
41253 void *argp1 = 0 ;
41254 int res1 = 0 ;
41255 PyObject *swig_obj[1] ;
41256
41257 if (!args) SWIG_fail;
41258 swig_obj[0] = args;
41259 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41260 if (!SWIG_IsOK(res1)) {
41261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_EndDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41262 }
41263 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41264 {
41265 PyThreadState* __tstate = wxPyBeginAllowThreads();
41266 result = (bool)(arg1)->EndDrag();
41267 wxPyEndAllowThreads(__tstate);
41268 if (PyErr_Occurred()) SWIG_fail;
41269 }
41270 {
41271 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41272 }
41273 return resultobj;
41274 fail:
41275 return NULL;
41276 }
41277
41278
41279 SWIGINTERN PyObject *_wrap_DragImage_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41280 PyObject *resultobj = 0;
41281 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41282 wxPoint *arg2 = 0 ;
41283 bool result;
41284 void *argp1 = 0 ;
41285 int res1 = 0 ;
41286 wxPoint temp2 ;
41287 PyObject * obj0 = 0 ;
41288 PyObject * obj1 = 0 ;
41289 char * kwnames[] = {
41290 (char *) "self",(char *) "pt", NULL
41291 };
41292
41293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) SWIG_fail;
41294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41295 if (!SWIG_IsOK(res1)) {
41296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Move" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41297 }
41298 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41299 {
41300 arg2 = &temp2;
41301 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41302 }
41303 {
41304 PyThreadState* __tstate = wxPyBeginAllowThreads();
41305 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
41306 wxPyEndAllowThreads(__tstate);
41307 if (PyErr_Occurred()) SWIG_fail;
41308 }
41309 {
41310 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41311 }
41312 return resultobj;
41313 fail:
41314 return NULL;
41315 }
41316
41317
41318 SWIGINTERN PyObject *_wrap_DragImage_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41319 PyObject *resultobj = 0;
41320 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41321 bool result;
41322 void *argp1 = 0 ;
41323 int res1 = 0 ;
41324 PyObject *swig_obj[1] ;
41325
41326 if (!args) SWIG_fail;
41327 swig_obj[0] = args;
41328 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41329 if (!SWIG_IsOK(res1)) {
41330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Show" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41331 }
41332 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41333 {
41334 PyThreadState* __tstate = wxPyBeginAllowThreads();
41335 result = (bool)(arg1)->Show();
41336 wxPyEndAllowThreads(__tstate);
41337 if (PyErr_Occurred()) SWIG_fail;
41338 }
41339 {
41340 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41341 }
41342 return resultobj;
41343 fail:
41344 return NULL;
41345 }
41346
41347
41348 SWIGINTERN PyObject *_wrap_DragImage_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41349 PyObject *resultobj = 0;
41350 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41351 bool result;
41352 void *argp1 = 0 ;
41353 int res1 = 0 ;
41354 PyObject *swig_obj[1] ;
41355
41356 if (!args) SWIG_fail;
41357 swig_obj[0] = args;
41358 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41359 if (!SWIG_IsOK(res1)) {
41360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Hide" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41361 }
41362 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41363 {
41364 PyThreadState* __tstate = wxPyBeginAllowThreads();
41365 result = (bool)(arg1)->Hide();
41366 wxPyEndAllowThreads(__tstate);
41367 if (PyErr_Occurred()) SWIG_fail;
41368 }
41369 {
41370 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41371 }
41372 return resultobj;
41373 fail:
41374 return NULL;
41375 }
41376
41377
41378 SWIGINTERN PyObject *_wrap_DragImage_GetImageRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41379 PyObject *resultobj = 0;
41380 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41381 wxPoint *arg2 = 0 ;
41382 wxRect result;
41383 void *argp1 = 0 ;
41384 int res1 = 0 ;
41385 wxPoint temp2 ;
41386 PyObject * obj0 = 0 ;
41387 PyObject * obj1 = 0 ;
41388 char * kwnames[] = {
41389 (char *) "self",(char *) "pos", NULL
41390 };
41391
41392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) SWIG_fail;
41393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41394 if (!SWIG_IsOK(res1)) {
41395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_GetImageRect" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41396 }
41397 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41398 {
41399 arg2 = &temp2;
41400 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41401 }
41402 {
41403 PyThreadState* __tstate = wxPyBeginAllowThreads();
41404 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
41405 wxPyEndAllowThreads(__tstate);
41406 if (PyErr_Occurred()) SWIG_fail;
41407 }
41408 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
41409 return resultobj;
41410 fail:
41411 return NULL;
41412 }
41413
41414
41415 SWIGINTERN PyObject *_wrap_DragImage_DoDrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41416 PyObject *resultobj = 0;
41417 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41418 wxDC *arg2 = 0 ;
41419 wxPoint *arg3 = 0 ;
41420 bool result;
41421 void *argp1 = 0 ;
41422 int res1 = 0 ;
41423 void *argp2 = 0 ;
41424 int res2 = 0 ;
41425 wxPoint temp3 ;
41426 PyObject * obj0 = 0 ;
41427 PyObject * obj1 = 0 ;
41428 PyObject * obj2 = 0 ;
41429 char * kwnames[] = {
41430 (char *) "self",(char *) "dc",(char *) "pos", NULL
41431 };
41432
41433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
41434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41435 if (!SWIG_IsOK(res1)) {
41436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_DoDrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41437 }
41438 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41439 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
41440 if (!SWIG_IsOK(res2)) {
41441 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
41442 }
41443 if (!argp2) {
41444 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
41445 }
41446 arg2 = reinterpret_cast< wxDC * >(argp2);
41447 {
41448 arg3 = &temp3;
41449 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
41450 }
41451 {
41452 PyThreadState* __tstate = wxPyBeginAllowThreads();
41453 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
41454 wxPyEndAllowThreads(__tstate);
41455 if (PyErr_Occurred()) SWIG_fail;
41456 }
41457 {
41458 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41459 }
41460 return resultobj;
41461 fail:
41462 return NULL;
41463 }
41464
41465
41466 SWIGINTERN PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41467 PyObject *resultobj = 0;
41468 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41469 wxDC *arg2 = 0 ;
41470 wxMemoryDC *arg3 = 0 ;
41471 wxRect *arg4 = 0 ;
41472 wxRect *arg5 = 0 ;
41473 bool result;
41474 void *argp1 = 0 ;
41475 int res1 = 0 ;
41476 void *argp2 = 0 ;
41477 int res2 = 0 ;
41478 void *argp3 = 0 ;
41479 int res3 = 0 ;
41480 wxRect temp4 ;
41481 wxRect temp5 ;
41482 PyObject * obj0 = 0 ;
41483 PyObject * obj1 = 0 ;
41484 PyObject * obj2 = 0 ;
41485 PyObject * obj3 = 0 ;
41486 PyObject * obj4 = 0 ;
41487 char * kwnames[] = {
41488 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
41489 };
41490
41491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41493 if (!SWIG_IsOK(res1)) {
41494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41495 }
41496 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41497 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
41498 if (!SWIG_IsOK(res2)) {
41499 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
41500 }
41501 if (!argp2) {
41502 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
41503 }
41504 arg2 = reinterpret_cast< wxDC * >(argp2);
41505 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxMemoryDC, 0 );
41506 if (!SWIG_IsOK(res3)) {
41507 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
41508 }
41509 if (!argp3) {
41510 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
41511 }
41512 arg3 = reinterpret_cast< wxMemoryDC * >(argp3);
41513 {
41514 arg4 = &temp4;
41515 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
41516 }
41517 {
41518 arg5 = &temp5;
41519 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
41520 }
41521 {
41522 PyThreadState* __tstate = wxPyBeginAllowThreads();
41523 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
41524 wxPyEndAllowThreads(__tstate);
41525 if (PyErr_Occurred()) SWIG_fail;
41526 }
41527 {
41528 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41529 }
41530 return resultobj;
41531 fail:
41532 return NULL;
41533 }
41534
41535
41536 SWIGINTERN PyObject *_wrap_DragImage_RedrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41537 PyObject *resultobj = 0;
41538 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41539 wxPoint *arg2 = 0 ;
41540 wxPoint *arg3 = 0 ;
41541 bool arg4 ;
41542 bool arg5 ;
41543 bool result;
41544 void *argp1 = 0 ;
41545 int res1 = 0 ;
41546 wxPoint temp2 ;
41547 wxPoint temp3 ;
41548 bool val4 ;
41549 int ecode4 = 0 ;
41550 bool val5 ;
41551 int ecode5 = 0 ;
41552 PyObject * obj0 = 0 ;
41553 PyObject * obj1 = 0 ;
41554 PyObject * obj2 = 0 ;
41555 PyObject * obj3 = 0 ;
41556 PyObject * obj4 = 0 ;
41557 char * kwnames[] = {
41558 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
41559 };
41560
41561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41563 if (!SWIG_IsOK(res1)) {
41564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_RedrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41565 }
41566 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41567 {
41568 arg2 = &temp2;
41569 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41570 }
41571 {
41572 arg3 = &temp3;
41573 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
41574 }
41575 ecode4 = SWIG_AsVal_bool(obj3, &val4);
41576 if (!SWIG_IsOK(ecode4)) {
41577 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_RedrawImage" "', expected argument " "4"" of type '" "bool""'");
41578 }
41579 arg4 = static_cast< bool >(val4);
41580 ecode5 = SWIG_AsVal_bool(obj4, &val5);
41581 if (!SWIG_IsOK(ecode5)) {
41582 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DragImage_RedrawImage" "', expected argument " "5"" of type '" "bool""'");
41583 }
41584 arg5 = static_cast< bool >(val5);
41585 {
41586 PyThreadState* __tstate = wxPyBeginAllowThreads();
41587 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
41588 wxPyEndAllowThreads(__tstate);
41589 if (PyErr_Occurred()) SWIG_fail;
41590 }
41591 {
41592 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41593 }
41594 return resultobj;
41595 fail:
41596 return NULL;
41597 }
41598
41599
41600 SWIGINTERN PyObject *DragImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41601 PyObject *obj;
41602 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41603 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDragImage, SWIG_NewClientData(obj));
41604 return SWIG_Py_Void();
41605 }
41606
41607 SWIGINTERN PyObject *DragImage_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41608 return SWIG_Python_InitShadowInstance(args);
41609 }
41610
41611 SWIGINTERN int DatePickerCtrlNameStr_set(PyObject *) {
41612 SWIG_Error(SWIG_AttributeError,"Variable DatePickerCtrlNameStr is read-only.");
41613 return 1;
41614 }
41615
41616
41617 SWIGINTERN PyObject *DatePickerCtrlNameStr_get(void) {
41618 PyObject *pyobj = 0;
41619
41620 {
41621 #if wxUSE_UNICODE
41622 pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
41623 #else
41624 pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
41625 #endif
41626 }
41627 return pyobj;
41628 }
41629
41630
41631 SWIGINTERN PyObject *_wrap_new_DatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41632 PyObject *resultobj = 0;
41633 wxWindow *arg1 = (wxWindow *) 0 ;
41634 int arg2 = (int) -1 ;
41635 wxDateTime const &arg3_defvalue = wxDefaultDateTime ;
41636 wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ;
41637 wxPoint const &arg4_defvalue = wxDefaultPosition ;
41638 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
41639 wxSize const &arg5_defvalue = wxDefaultSize ;
41640 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
41641 long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41642 wxValidator const &arg7_defvalue = wxDefaultValidator ;
41643 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
41644 wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ;
41645 wxString *arg8 = (wxString *) &arg8_defvalue ;
41646 wxDatePickerCtrl *result = 0 ;
41647 void *argp1 = 0 ;
41648 int res1 = 0 ;
41649 int val2 ;
41650 int ecode2 = 0 ;
41651 void *argp3 = 0 ;
41652 int res3 = 0 ;
41653 wxPoint temp4 ;
41654 wxSize temp5 ;
41655 long val6 ;
41656 int ecode6 = 0 ;
41657 void *argp7 = 0 ;
41658 int res7 = 0 ;
41659 bool temp8 = false ;
41660 PyObject * obj0 = 0 ;
41661 PyObject * obj1 = 0 ;
41662 PyObject * obj2 = 0 ;
41663 PyObject * obj3 = 0 ;
41664 PyObject * obj4 = 0 ;
41665 PyObject * obj5 = 0 ;
41666 PyObject * obj6 = 0 ;
41667 PyObject * obj7 = 0 ;
41668 char * kwnames[] = {
41669 (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41670 };
41671
41672 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41673 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41674 if (!SWIG_IsOK(res1)) {
41675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41676 }
41677 arg1 = reinterpret_cast< wxWindow * >(argp1);
41678 if (obj1) {
41679 ecode2 = SWIG_AsVal_int(obj1, &val2);
41680 if (!SWIG_IsOK(ecode2)) {
41681 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatePickerCtrl" "', expected argument " "2"" of type '" "int""'");
41682 }
41683 arg2 = static_cast< int >(val2);
41684 }
41685 if (obj2) {
41686 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41687 if (!SWIG_IsOK(res3)) {
41688 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41689 }
41690 if (!argp3) {
41691 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41692 }
41693 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41694 }
41695 if (obj3) {
41696 {
41697 arg4 = &temp4;
41698 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
41699 }
41700 }
41701 if (obj4) {
41702 {
41703 arg5 = &temp5;
41704 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
41705 }
41706 }
41707 if (obj5) {
41708 ecode6 = SWIG_AsVal_long(obj5, &val6);
41709 if (!SWIG_IsOK(ecode6)) {
41710 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DatePickerCtrl" "', expected argument " "6"" of type '" "long""'");
41711 }
41712 arg6 = static_cast< long >(val6);
41713 }
41714 if (obj6) {
41715 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
41716 if (!SWIG_IsOK(res7)) {
41717 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
41718 }
41719 if (!argp7) {
41720 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
41721 }
41722 arg7 = reinterpret_cast< wxValidator * >(argp7);
41723 }
41724 if (obj7) {
41725 {
41726 arg8 = wxString_in_helper(obj7);
41727 if (arg8 == NULL) SWIG_fail;
41728 temp8 = true;
41729 }
41730 }
41731 {
41732 if (!wxPyCheckForApp()) SWIG_fail;
41733 PyThreadState* __tstate = wxPyBeginAllowThreads();
41734 result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
41735 wxPyEndAllowThreads(__tstate);
41736 if (PyErr_Occurred()) SWIG_fail;
41737 }
41738 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_NEW | 0 );
41739 {
41740 if (temp8)
41741 delete arg8;
41742 }
41743 return resultobj;
41744 fail:
41745 {
41746 if (temp8)
41747 delete arg8;
41748 }
41749 return NULL;
41750 }
41751
41752
41753 SWIGINTERN PyObject *_wrap_new_PreDatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41754 PyObject *resultobj = 0;
41755 wxDatePickerCtrl *result = 0 ;
41756
41757 if (!SWIG_Python_UnpackTuple(args,"new_PreDatePickerCtrl",0,0,0)) SWIG_fail;
41758 {
41759 if (!wxPyCheckForApp()) SWIG_fail;
41760 PyThreadState* __tstate = wxPyBeginAllowThreads();
41761 result = (wxDatePickerCtrl *)new wxDatePickerCtrl();
41762 wxPyEndAllowThreads(__tstate);
41763 if (PyErr_Occurred()) SWIG_fail;
41764 }
41765 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_OWN | 0 );
41766 return resultobj;
41767 fail:
41768 return NULL;
41769 }
41770
41771
41772 SWIGINTERN PyObject *_wrap_DatePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41773 PyObject *resultobj = 0;
41774 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41775 wxWindow *arg2 = (wxWindow *) 0 ;
41776 int arg3 = (int) -1 ;
41777 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
41778 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
41779 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41780 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41781 wxSize const &arg6_defvalue = wxDefaultSize ;
41782 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41783 long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41784 wxValidator const &arg8_defvalue = wxDefaultValidator ;
41785 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
41786 wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ;
41787 wxString *arg9 = (wxString *) &arg9_defvalue ;
41788 bool result;
41789 void *argp1 = 0 ;
41790 int res1 = 0 ;
41791 void *argp2 = 0 ;
41792 int res2 = 0 ;
41793 int val3 ;
41794 int ecode3 = 0 ;
41795 void *argp4 = 0 ;
41796 int res4 = 0 ;
41797 wxPoint temp5 ;
41798 wxSize temp6 ;
41799 long val7 ;
41800 int ecode7 = 0 ;
41801 void *argp8 = 0 ;
41802 int res8 = 0 ;
41803 bool temp9 = false ;
41804 PyObject * obj0 = 0 ;
41805 PyObject * obj1 = 0 ;
41806 PyObject * obj2 = 0 ;
41807 PyObject * obj3 = 0 ;
41808 PyObject * obj4 = 0 ;
41809 PyObject * obj5 = 0 ;
41810 PyObject * obj6 = 0 ;
41811 PyObject * obj7 = 0 ;
41812 PyObject * obj8 = 0 ;
41813 char * kwnames[] = {
41814 (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41815 };
41816
41817 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41818 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41819 if (!SWIG_IsOK(res1)) {
41820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_Create" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41821 }
41822 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41823 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41824 if (!SWIG_IsOK(res2)) {
41825 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41826 }
41827 arg2 = reinterpret_cast< wxWindow * >(argp2);
41828 if (obj2) {
41829 ecode3 = SWIG_AsVal_int(obj2, &val3);
41830 if (!SWIG_IsOK(ecode3)) {
41831 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DatePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41832 }
41833 arg3 = static_cast< int >(val3);
41834 }
41835 if (obj3) {
41836 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDateTime, 0 | 0);
41837 if (!SWIG_IsOK(res4)) {
41838 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
41839 }
41840 if (!argp4) {
41841 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
41842 }
41843 arg4 = reinterpret_cast< wxDateTime * >(argp4);
41844 }
41845 if (obj4) {
41846 {
41847 arg5 = &temp5;
41848 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
41849 }
41850 }
41851 if (obj5) {
41852 {
41853 arg6 = &temp6;
41854 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
41855 }
41856 }
41857 if (obj6) {
41858 ecode7 = SWIG_AsVal_long(obj6, &val7);
41859 if (!SWIG_IsOK(ecode7)) {
41860 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DatePickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
41861 }
41862 arg7 = static_cast< long >(val7);
41863 }
41864 if (obj7) {
41865 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
41866 if (!SWIG_IsOK(res8)) {
41867 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
41868 }
41869 if (!argp8) {
41870 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
41871 }
41872 arg8 = reinterpret_cast< wxValidator * >(argp8);
41873 }
41874 if (obj8) {
41875 {
41876 arg9 = wxString_in_helper(obj8);
41877 if (arg9 == NULL) SWIG_fail;
41878 temp9 = true;
41879 }
41880 }
41881 {
41882 PyThreadState* __tstate = wxPyBeginAllowThreads();
41883 result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
41884 wxPyEndAllowThreads(__tstate);
41885 if (PyErr_Occurred()) SWIG_fail;
41886 }
41887 {
41888 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41889 }
41890 {
41891 if (temp9)
41892 delete arg9;
41893 }
41894 return resultobj;
41895 fail:
41896 {
41897 if (temp9)
41898 delete arg9;
41899 }
41900 return NULL;
41901 }
41902
41903
41904 SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41905 PyObject *resultobj = 0;
41906 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41907 wxDateTime *arg2 = 0 ;
41908 void *argp1 = 0 ;
41909 int res1 = 0 ;
41910 void *argp2 = 0 ;
41911 int res2 = 0 ;
41912 PyObject * obj0 = 0 ;
41913 PyObject * obj1 = 0 ;
41914 char * kwnames[] = {
41915 (char *) "self",(char *) "dt", NULL
41916 };
41917
41918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
41919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41920 if (!SWIG_IsOK(res1)) {
41921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41922 }
41923 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41924 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41925 if (!SWIG_IsOK(res2)) {
41926 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41927 }
41928 if (!argp2) {
41929 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41930 }
41931 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41932 {
41933 PyThreadState* __tstate = wxPyBeginAllowThreads();
41934 (arg1)->SetValue((wxDateTime const &)*arg2);
41935 wxPyEndAllowThreads(__tstate);
41936 if (PyErr_Occurred()) SWIG_fail;
41937 }
41938 resultobj = SWIG_Py_Void();
41939 return resultobj;
41940 fail:
41941 return NULL;
41942 }
41943
41944
41945 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41946 PyObject *resultobj = 0;
41947 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41948 wxDateTime result;
41949 void *argp1 = 0 ;
41950 int res1 = 0 ;
41951 PyObject *swig_obj[1] ;
41952
41953 if (!args) SWIG_fail;
41954 swig_obj[0] = args;
41955 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41956 if (!SWIG_IsOK(res1)) {
41957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl const *""'");
41958 }
41959 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41960 {
41961 PyThreadState* __tstate = wxPyBeginAllowThreads();
41962 result = ((wxDatePickerCtrl const *)arg1)->GetValue();
41963 wxPyEndAllowThreads(__tstate);
41964 if (PyErr_Occurred()) SWIG_fail;
41965 }
41966 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41967 return resultobj;
41968 fail:
41969 return NULL;
41970 }
41971
41972
41973 SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41974 PyObject *resultobj = 0;
41975 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41976 wxDateTime *arg2 = 0 ;
41977 wxDateTime *arg3 = 0 ;
41978 void *argp1 = 0 ;
41979 int res1 = 0 ;
41980 void *argp2 = 0 ;
41981 int res2 = 0 ;
41982 void *argp3 = 0 ;
41983 int res3 = 0 ;
41984 PyObject * obj0 = 0 ;
41985 PyObject * obj1 = 0 ;
41986 PyObject * obj2 = 0 ;
41987 char * kwnames[] = {
41988 (char *) "self",(char *) "dt1",(char *) "dt2", NULL
41989 };
41990
41991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
41992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41993 if (!SWIG_IsOK(res1)) {
41994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41995 }
41996 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41997 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41998 if (!SWIG_IsOK(res2)) {
41999 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
42000 }
42001 if (!argp2) {
42002 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
42003 }
42004 arg2 = reinterpret_cast< wxDateTime * >(argp2);
42005 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
42006 if (!SWIG_IsOK(res3)) {
42007 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
42008 }
42009 if (!argp3) {
42010 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
42011 }
42012 arg3 = reinterpret_cast< wxDateTime * >(argp3);
42013 {
42014 PyThreadState* __tstate = wxPyBeginAllowThreads();
42015 (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
42016 wxPyEndAllowThreads(__tstate);
42017 if (PyErr_Occurred()) SWIG_fail;
42018 }
42019 resultobj = SWIG_Py_Void();
42020 return resultobj;
42021 fail:
42022 return NULL;
42023 }
42024
42025
42026 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42027 PyObject *resultobj = 0;
42028 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
42029 wxDateTime result;
42030 void *argp1 = 0 ;
42031 int res1 = 0 ;
42032 PyObject *swig_obj[1] ;
42033
42034 if (!args) SWIG_fail;
42035 swig_obj[0] = args;
42036 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
42037 if (!SWIG_IsOK(res1)) {
42038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetLowerLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
42039 }
42040 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
42041 {
42042 PyThreadState* __tstate = wxPyBeginAllowThreads();
42043 result = wxDatePickerCtrl_GetLowerLimit(arg1);
42044 wxPyEndAllowThreads(__tstate);
42045 if (PyErr_Occurred()) SWIG_fail;
42046 }
42047 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
42048 return resultobj;
42049 fail:
42050 return NULL;
42051 }
42052
42053
42054 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42055 PyObject *resultobj = 0;
42056 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
42057 wxDateTime result;
42058 void *argp1 = 0 ;
42059 int res1 = 0 ;
42060 PyObject *swig_obj[1] ;
42061
42062 if (!args) SWIG_fail;
42063 swig_obj[0] = args;
42064 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
42065 if (!SWIG_IsOK(res1)) {
42066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetUpperLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
42067 }
42068 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
42069 {
42070 PyThreadState* __tstate = wxPyBeginAllowThreads();
42071 result = wxDatePickerCtrl_GetUpperLimit(arg1);
42072 wxPyEndAllowThreads(__tstate);
42073 if (PyErr_Occurred()) SWIG_fail;
42074 }
42075 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
42076 return resultobj;
42077 fail:
42078 return NULL;
42079 }
42080
42081
42082 SWIGINTERN PyObject *DatePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42083 PyObject *obj;
42084 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42085 SWIG_TypeNewClientData(SWIGTYPE_p_wxDatePickerCtrl, SWIG_NewClientData(obj));
42086 return SWIG_Py_Void();
42087 }
42088
42089 SWIGINTERN PyObject *DatePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42090 return SWIG_Python_InitShadowInstance(args);
42091 }
42092
42093 SWIGINTERN int HyperlinkCtrlNameStr_set(PyObject *) {
42094 SWIG_Error(SWIG_AttributeError,"Variable HyperlinkCtrlNameStr is read-only.");
42095 return 1;
42096 }
42097
42098
42099 SWIGINTERN PyObject *HyperlinkCtrlNameStr_get(void) {
42100 PyObject *pyobj = 0;
42101
42102 {
42103 #if wxUSE_UNICODE
42104 pyobj = PyUnicode_FromWideChar((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
42105 #else
42106 pyobj = PyString_FromStringAndSize((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
42107 #endif
42108 }
42109 return pyobj;
42110 }
42111
42112
42113 SWIGINTERN PyObject *_wrap_new_HyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42114 PyObject *resultobj = 0;
42115 wxWindow *arg1 = (wxWindow *) 0 ;
42116 int arg2 ;
42117 wxString *arg3 = 0 ;
42118 wxString *arg4 = 0 ;
42119 wxPoint const &arg5_defvalue = wxDefaultPosition ;
42120 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
42121 wxSize const &arg6_defvalue = wxDefaultSize ;
42122 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
42123 long arg7 = (long) wxHL_DEFAULT_STYLE ;
42124 wxString const &arg8_defvalue = wxPyHyperlinkCtrlNameStr ;
42125 wxString *arg8 = (wxString *) &arg8_defvalue ;
42126 wxHyperlinkCtrl *result = 0 ;
42127 void *argp1 = 0 ;
42128 int res1 = 0 ;
42129 int val2 ;
42130 int ecode2 = 0 ;
42131 bool temp3 = false ;
42132 bool temp4 = false ;
42133 wxPoint temp5 ;
42134 wxSize temp6 ;
42135 long val7 ;
42136 int ecode7 = 0 ;
42137 bool temp8 = false ;
42138 PyObject * obj0 = 0 ;
42139 PyObject * obj1 = 0 ;
42140 PyObject * obj2 = 0 ;
42141 PyObject * obj3 = 0 ;
42142 PyObject * obj4 = 0 ;
42143 PyObject * obj5 = 0 ;
42144 PyObject * obj6 = 0 ;
42145 PyObject * obj7 = 0 ;
42146 char * kwnames[] = {
42147 (char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
42148 };
42149
42150 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:new_HyperlinkCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
42151 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
42152 if (!SWIG_IsOK(res1)) {
42153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
42154 }
42155 arg1 = reinterpret_cast< wxWindow * >(argp1);
42156 ecode2 = SWIG_AsVal_int(obj1, &val2);
42157 if (!SWIG_IsOK(ecode2)) {
42158 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkCtrl" "', expected argument " "2"" of type '" "int""'");
42159 }
42160 arg2 = static_cast< int >(val2);
42161 {
42162 arg3 = wxString_in_helper(obj2);
42163 if (arg3 == NULL) SWIG_fail;
42164 temp3 = true;
42165 }
42166 {
42167 arg4 = wxString_in_helper(obj3);
42168 if (arg4 == NULL) SWIG_fail;
42169 temp4 = true;
42170 }
42171 if (obj4) {
42172 {
42173 arg5 = &temp5;
42174 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
42175 }
42176 }
42177 if (obj5) {
42178 {
42179 arg6 = &temp6;
42180 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
42181 }
42182 }
42183 if (obj6) {
42184 ecode7 = SWIG_AsVal_long(obj6, &val7);
42185 if (!SWIG_IsOK(ecode7)) {
42186 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_HyperlinkCtrl" "', expected argument " "7"" of type '" "long""'");
42187 }
42188 arg7 = static_cast< long >(val7);
42189 }
42190 if (obj7) {
42191 {
42192 arg8 = wxString_in_helper(obj7);
42193 if (arg8 == NULL) SWIG_fail;
42194 temp8 = true;
42195 }
42196 }
42197 {
42198 if (!wxPyCheckForApp()) SWIG_fail;
42199 PyThreadState* __tstate = wxPyBeginAllowThreads();
42200 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
42201 wxPyEndAllowThreads(__tstate);
42202 if (PyErr_Occurred()) SWIG_fail;
42203 }
42204 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_NEW | 0 );
42205 {
42206 if (temp3)
42207 delete arg3;
42208 }
42209 {
42210 if (temp4)
42211 delete arg4;
42212 }
42213 {
42214 if (temp8)
42215 delete arg8;
42216 }
42217 return resultobj;
42218 fail:
42219 {
42220 if (temp3)
42221 delete arg3;
42222 }
42223 {
42224 if (temp4)
42225 delete arg4;
42226 }
42227 {
42228 if (temp8)
42229 delete arg8;
42230 }
42231 return NULL;
42232 }
42233
42234
42235 SWIGINTERN PyObject *_wrap_new_PreHyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42236 PyObject *resultobj = 0;
42237 wxHyperlinkCtrl *result = 0 ;
42238
42239 if (!SWIG_Python_UnpackTuple(args,"new_PreHyperlinkCtrl",0,0,0)) SWIG_fail;
42240 {
42241 if (!wxPyCheckForApp()) SWIG_fail;
42242 PyThreadState* __tstate = wxPyBeginAllowThreads();
42243 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl();
42244 wxPyEndAllowThreads(__tstate);
42245 if (PyErr_Occurred()) SWIG_fail;
42246 }
42247 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_OWN | 0 );
42248 return resultobj;
42249 fail:
42250 return NULL;
42251 }
42252
42253
42254 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42255 PyObject *resultobj = 0;
42256 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42257 wxWindow *arg2 = (wxWindow *) 0 ;
42258 int arg3 ;
42259 wxString *arg4 = 0 ;
42260 wxString *arg5 = 0 ;
42261 wxPoint const &arg6_defvalue = wxDefaultPosition ;
42262 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
42263 wxSize const &arg7_defvalue = wxDefaultSize ;
42264 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
42265 long arg8 = (long) wxHL_DEFAULT_STYLE ;
42266 wxString const &arg9_defvalue = wxPyHyperlinkCtrlNameStr ;
42267 wxString *arg9 = (wxString *) &arg9_defvalue ;
42268 bool result;
42269 void *argp1 = 0 ;
42270 int res1 = 0 ;
42271 void *argp2 = 0 ;
42272 int res2 = 0 ;
42273 int val3 ;
42274 int ecode3 = 0 ;
42275 bool temp4 = false ;
42276 bool temp5 = false ;
42277 wxPoint temp6 ;
42278 wxSize temp7 ;
42279 long val8 ;
42280 int ecode8 = 0 ;
42281 bool temp9 = false ;
42282 PyObject * obj0 = 0 ;
42283 PyObject * obj1 = 0 ;
42284 PyObject * obj2 = 0 ;
42285 PyObject * obj3 = 0 ;
42286 PyObject * obj4 = 0 ;
42287 PyObject * obj5 = 0 ;
42288 PyObject * obj6 = 0 ;
42289 PyObject * obj7 = 0 ;
42290 PyObject * obj8 = 0 ;
42291 char * kwnames[] = {
42292 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
42293 };
42294
42295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOO:HyperlinkCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
42296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42297 if (!SWIG_IsOK(res1)) {
42298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_Create" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42299 }
42300 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42301 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
42302 if (!SWIG_IsOK(res2)) {
42303 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HyperlinkCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
42304 }
42305 arg2 = reinterpret_cast< wxWindow * >(argp2);
42306 ecode3 = SWIG_AsVal_int(obj2, &val3);
42307 if (!SWIG_IsOK(ecode3)) {
42308 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HyperlinkCtrl_Create" "', expected argument " "3"" of type '" "int""'");
42309 }
42310 arg3 = static_cast< int >(val3);
42311 {
42312 arg4 = wxString_in_helper(obj3);
42313 if (arg4 == NULL) SWIG_fail;
42314 temp4 = true;
42315 }
42316 {
42317 arg5 = wxString_in_helper(obj4);
42318 if (arg5 == NULL) SWIG_fail;
42319 temp5 = true;
42320 }
42321 if (obj5) {
42322 {
42323 arg6 = &temp6;
42324 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
42325 }
42326 }
42327 if (obj6) {
42328 {
42329 arg7 = &temp7;
42330 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
42331 }
42332 }
42333 if (obj7) {
42334 ecode8 = SWIG_AsVal_long(obj7, &val8);
42335 if (!SWIG_IsOK(ecode8)) {
42336 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "HyperlinkCtrl_Create" "', expected argument " "8"" of type '" "long""'");
42337 }
42338 arg8 = static_cast< long >(val8);
42339 }
42340 if (obj8) {
42341 {
42342 arg9 = wxString_in_helper(obj8);
42343 if (arg9 == NULL) SWIG_fail;
42344 temp9 = true;
42345 }
42346 }
42347 {
42348 PyThreadState* __tstate = wxPyBeginAllowThreads();
42349 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxString const &)*arg9);
42350 wxPyEndAllowThreads(__tstate);
42351 if (PyErr_Occurred()) SWIG_fail;
42352 }
42353 {
42354 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42355 }
42356 {
42357 if (temp4)
42358 delete arg4;
42359 }
42360 {
42361 if (temp5)
42362 delete arg5;
42363 }
42364 {
42365 if (temp9)
42366 delete arg9;
42367 }
42368 return resultobj;
42369 fail:
42370 {
42371 if (temp4)
42372 delete arg4;
42373 }
42374 {
42375 if (temp5)
42376 delete arg5;
42377 }
42378 {
42379 if (temp9)
42380 delete arg9;
42381 }
42382 return NULL;
42383 }
42384
42385
42386 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42387 PyObject *resultobj = 0;
42388 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42389 wxColour result;
42390 void *argp1 = 0 ;
42391 int res1 = 0 ;
42392 PyObject *swig_obj[1] ;
42393
42394 if (!args) SWIG_fail;
42395 swig_obj[0] = args;
42396 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42397 if (!SWIG_IsOK(res1)) {
42398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42399 }
42400 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42401 {
42402 PyThreadState* __tstate = wxPyBeginAllowThreads();
42403 result = ((wxHyperlinkCtrl const *)arg1)->GetHoverColour();
42404 wxPyEndAllowThreads(__tstate);
42405 if (PyErr_Occurred()) SWIG_fail;
42406 }
42407 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42408 return resultobj;
42409 fail:
42410 return NULL;
42411 }
42412
42413
42414 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42415 PyObject *resultobj = 0;
42416 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42417 wxColour *arg2 = 0 ;
42418 void *argp1 = 0 ;
42419 int res1 = 0 ;
42420 wxColour temp2 ;
42421 PyObject * obj0 = 0 ;
42422 PyObject * obj1 = 0 ;
42423 char * kwnames[] = {
42424 (char *) "self",(char *) "colour", NULL
42425 };
42426
42427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetHoverColour",kwnames,&obj0,&obj1)) SWIG_fail;
42428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42429 if (!SWIG_IsOK(res1)) {
42430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42431 }
42432 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42433 {
42434 arg2 = &temp2;
42435 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42436 }
42437 {
42438 PyThreadState* __tstate = wxPyBeginAllowThreads();
42439 (arg1)->SetHoverColour((wxColour const &)*arg2);
42440 wxPyEndAllowThreads(__tstate);
42441 if (PyErr_Occurred()) SWIG_fail;
42442 }
42443 resultobj = SWIG_Py_Void();
42444 return resultobj;
42445 fail:
42446 return NULL;
42447 }
42448
42449
42450 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42451 PyObject *resultobj = 0;
42452 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42453 wxColour result;
42454 void *argp1 = 0 ;
42455 int res1 = 0 ;
42456 PyObject *swig_obj[1] ;
42457
42458 if (!args) SWIG_fail;
42459 swig_obj[0] = args;
42460 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42461 if (!SWIG_IsOK(res1)) {
42462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42463 }
42464 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42465 {
42466 PyThreadState* __tstate = wxPyBeginAllowThreads();
42467 result = ((wxHyperlinkCtrl const *)arg1)->GetNormalColour();
42468 wxPyEndAllowThreads(__tstate);
42469 if (PyErr_Occurred()) SWIG_fail;
42470 }
42471 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42472 return resultobj;
42473 fail:
42474 return NULL;
42475 }
42476
42477
42478 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42479 PyObject *resultobj = 0;
42480 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42481 wxColour *arg2 = 0 ;
42482 void *argp1 = 0 ;
42483 int res1 = 0 ;
42484 wxColour temp2 ;
42485 PyObject * obj0 = 0 ;
42486 PyObject * obj1 = 0 ;
42487 char * kwnames[] = {
42488 (char *) "self",(char *) "colour", NULL
42489 };
42490
42491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetNormalColour",kwnames,&obj0,&obj1)) SWIG_fail;
42492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42493 if (!SWIG_IsOK(res1)) {
42494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42495 }
42496 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42497 {
42498 arg2 = &temp2;
42499 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42500 }
42501 {
42502 PyThreadState* __tstate = wxPyBeginAllowThreads();
42503 (arg1)->SetNormalColour((wxColour const &)*arg2);
42504 wxPyEndAllowThreads(__tstate);
42505 if (PyErr_Occurred()) SWIG_fail;
42506 }
42507 resultobj = SWIG_Py_Void();
42508 return resultobj;
42509 fail:
42510 return NULL;
42511 }
42512
42513
42514 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42515 PyObject *resultobj = 0;
42516 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42517 wxColour result;
42518 void *argp1 = 0 ;
42519 int res1 = 0 ;
42520 PyObject *swig_obj[1] ;
42521
42522 if (!args) SWIG_fail;
42523 swig_obj[0] = args;
42524 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42525 if (!SWIG_IsOK(res1)) {
42526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42527 }
42528 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42529 {
42530 PyThreadState* __tstate = wxPyBeginAllowThreads();
42531 result = ((wxHyperlinkCtrl const *)arg1)->GetVisitedColour();
42532 wxPyEndAllowThreads(__tstate);
42533 if (PyErr_Occurred()) SWIG_fail;
42534 }
42535 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42536 return resultobj;
42537 fail:
42538 return NULL;
42539 }
42540
42541
42542 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42543 PyObject *resultobj = 0;
42544 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42545 wxColour *arg2 = 0 ;
42546 void *argp1 = 0 ;
42547 int res1 = 0 ;
42548 wxColour temp2 ;
42549 PyObject * obj0 = 0 ;
42550 PyObject * obj1 = 0 ;
42551 char * kwnames[] = {
42552 (char *) "self",(char *) "colour", NULL
42553 };
42554
42555 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetVisitedColour",kwnames,&obj0,&obj1)) SWIG_fail;
42556 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42557 if (!SWIG_IsOK(res1)) {
42558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42559 }
42560 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42561 {
42562 arg2 = &temp2;
42563 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42564 }
42565 {
42566 PyThreadState* __tstate = wxPyBeginAllowThreads();
42567 (arg1)->SetVisitedColour((wxColour const &)*arg2);
42568 wxPyEndAllowThreads(__tstate);
42569 if (PyErr_Occurred()) SWIG_fail;
42570 }
42571 resultobj = SWIG_Py_Void();
42572 return resultobj;
42573 fail:
42574 return NULL;
42575 }
42576
42577
42578 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42579 PyObject *resultobj = 0;
42580 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42581 wxString result;
42582 void *argp1 = 0 ;
42583 int res1 = 0 ;
42584 PyObject *swig_obj[1] ;
42585
42586 if (!args) SWIG_fail;
42587 swig_obj[0] = args;
42588 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42589 if (!SWIG_IsOK(res1)) {
42590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42591 }
42592 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42593 {
42594 PyThreadState* __tstate = wxPyBeginAllowThreads();
42595 result = ((wxHyperlinkCtrl const *)arg1)->GetURL();
42596 wxPyEndAllowThreads(__tstate);
42597 if (PyErr_Occurred()) SWIG_fail;
42598 }
42599 {
42600 #if wxUSE_UNICODE
42601 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42602 #else
42603 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42604 #endif
42605 }
42606 return resultobj;
42607 fail:
42608 return NULL;
42609 }
42610
42611
42612 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42613 PyObject *resultobj = 0;
42614 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42615 wxString *arg2 = 0 ;
42616 void *argp1 = 0 ;
42617 int res1 = 0 ;
42618 bool temp2 = false ;
42619 PyObject * obj0 = 0 ;
42620 PyObject * obj1 = 0 ;
42621 char * kwnames[] = {
42622 (char *) "self",(char *) "url", NULL
42623 };
42624
42625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42627 if (!SWIG_IsOK(res1)) {
42628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42629 }
42630 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42631 {
42632 arg2 = wxString_in_helper(obj1);
42633 if (arg2 == NULL) SWIG_fail;
42634 temp2 = true;
42635 }
42636 {
42637 PyThreadState* __tstate = wxPyBeginAllowThreads();
42638 (arg1)->SetURL((wxString const &)*arg2);
42639 wxPyEndAllowThreads(__tstate);
42640 if (PyErr_Occurred()) SWIG_fail;
42641 }
42642 resultobj = SWIG_Py_Void();
42643 {
42644 if (temp2)
42645 delete arg2;
42646 }
42647 return resultobj;
42648 fail:
42649 {
42650 if (temp2)
42651 delete arg2;
42652 }
42653 return NULL;
42654 }
42655
42656
42657 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42658 PyObject *resultobj = 0;
42659 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42660 bool arg2 = (bool) true ;
42661 void *argp1 = 0 ;
42662 int res1 = 0 ;
42663 bool val2 ;
42664 int ecode2 = 0 ;
42665 PyObject * obj0 = 0 ;
42666 PyObject * obj1 = 0 ;
42667 char * kwnames[] = {
42668 (char *) "self",(char *) "visited", NULL
42669 };
42670
42671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:HyperlinkCtrl_SetVisited",kwnames,&obj0,&obj1)) SWIG_fail;
42672 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42673 if (!SWIG_IsOK(res1)) {
42674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42675 }
42676 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42677 if (obj1) {
42678 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42679 if (!SWIG_IsOK(ecode2)) {
42680 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "2"" of type '" "bool""'");
42681 }
42682 arg2 = static_cast< bool >(val2);
42683 }
42684 {
42685 PyThreadState* __tstate = wxPyBeginAllowThreads();
42686 (arg1)->SetVisited(arg2);
42687 wxPyEndAllowThreads(__tstate);
42688 if (PyErr_Occurred()) SWIG_fail;
42689 }
42690 resultobj = SWIG_Py_Void();
42691 return resultobj;
42692 fail:
42693 return NULL;
42694 }
42695
42696
42697 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42698 PyObject *resultobj = 0;
42699 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42700 bool result;
42701 void *argp1 = 0 ;
42702 int res1 = 0 ;
42703 PyObject *swig_obj[1] ;
42704
42705 if (!args) SWIG_fail;
42706 swig_obj[0] = args;
42707 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42708 if (!SWIG_IsOK(res1)) {
42709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42710 }
42711 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42712 {
42713 PyThreadState* __tstate = wxPyBeginAllowThreads();
42714 result = (bool)((wxHyperlinkCtrl const *)arg1)->GetVisited();
42715 wxPyEndAllowThreads(__tstate);
42716 if (PyErr_Occurred()) SWIG_fail;
42717 }
42718 {
42719 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42720 }
42721 return resultobj;
42722 fail:
42723 return NULL;
42724 }
42725
42726
42727 SWIGINTERN PyObject *HyperlinkCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42728 PyObject *obj;
42729 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42730 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkCtrl, SWIG_NewClientData(obj));
42731 return SWIG_Py_Void();
42732 }
42733
42734 SWIGINTERN PyObject *HyperlinkCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42735 return SWIG_Python_InitShadowInstance(args);
42736 }
42737
42738 SWIGINTERN PyObject *_wrap_new_HyperlinkEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42739 PyObject *resultobj = 0;
42740 wxObject *arg1 = (wxObject *) 0 ;
42741 int arg2 ;
42742 wxString *arg3 = 0 ;
42743 wxHyperlinkEvent *result = 0 ;
42744 void *argp1 = 0 ;
42745 int res1 = 0 ;
42746 int val2 ;
42747 int ecode2 = 0 ;
42748 bool temp3 = false ;
42749 PyObject * obj0 = 0 ;
42750 PyObject * obj1 = 0 ;
42751 PyObject * obj2 = 0 ;
42752 char * kwnames[] = {
42753 (char *) "generator",(char *) "id",(char *) "url", NULL
42754 };
42755
42756 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_HyperlinkEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
42757 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
42758 if (!SWIG_IsOK(res1)) {
42759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkEvent" "', expected argument " "1"" of type '" "wxObject *""'");
42760 }
42761 arg1 = reinterpret_cast< wxObject * >(argp1);
42762 ecode2 = SWIG_AsVal_int(obj1, &val2);
42763 if (!SWIG_IsOK(ecode2)) {
42764 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkEvent" "', expected argument " "2"" of type '" "int""'");
42765 }
42766 arg2 = static_cast< int >(val2);
42767 {
42768 arg3 = wxString_in_helper(obj2);
42769 if (arg3 == NULL) SWIG_fail;
42770 temp3 = true;
42771 }
42772 {
42773 PyThreadState* __tstate = wxPyBeginAllowThreads();
42774 result = (wxHyperlinkEvent *)new wxHyperlinkEvent(arg1,arg2,(wxString const &)*arg3);
42775 wxPyEndAllowThreads(__tstate);
42776 if (PyErr_Occurred()) SWIG_fail;
42777 }
42778 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkEvent, SWIG_POINTER_NEW | 0 );
42779 {
42780 if (temp3)
42781 delete arg3;
42782 }
42783 return resultobj;
42784 fail:
42785 {
42786 if (temp3)
42787 delete arg3;
42788 }
42789 return NULL;
42790 }
42791
42792
42793 SWIGINTERN PyObject *_wrap_HyperlinkEvent_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42794 PyObject *resultobj = 0;
42795 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42796 wxString result;
42797 void *argp1 = 0 ;
42798 int res1 = 0 ;
42799 PyObject *swig_obj[1] ;
42800
42801 if (!args) SWIG_fail;
42802 swig_obj[0] = args;
42803 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42804 if (!SWIG_IsOK(res1)) {
42805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent const *""'");
42806 }
42807 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42808 {
42809 PyThreadState* __tstate = wxPyBeginAllowThreads();
42810 result = ((wxHyperlinkEvent const *)arg1)->GetURL();
42811 wxPyEndAllowThreads(__tstate);
42812 if (PyErr_Occurred()) SWIG_fail;
42813 }
42814 {
42815 #if wxUSE_UNICODE
42816 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42817 #else
42818 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42819 #endif
42820 }
42821 return resultobj;
42822 fail:
42823 return NULL;
42824 }
42825
42826
42827 SWIGINTERN PyObject *_wrap_HyperlinkEvent_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42828 PyObject *resultobj = 0;
42829 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42830 wxString *arg2 = 0 ;
42831 void *argp1 = 0 ;
42832 int res1 = 0 ;
42833 bool temp2 = false ;
42834 PyObject * obj0 = 0 ;
42835 PyObject * obj1 = 0 ;
42836 char * kwnames[] = {
42837 (char *) "self",(char *) "url", NULL
42838 };
42839
42840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkEvent_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42841 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42842 if (!SWIG_IsOK(res1)) {
42843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent *""'");
42844 }
42845 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42846 {
42847 arg2 = wxString_in_helper(obj1);
42848 if (arg2 == NULL) SWIG_fail;
42849 temp2 = true;
42850 }
42851 {
42852 PyThreadState* __tstate = wxPyBeginAllowThreads();
42853 (arg1)->SetURL((wxString const &)*arg2);
42854 wxPyEndAllowThreads(__tstate);
42855 if (PyErr_Occurred()) SWIG_fail;
42856 }
42857 resultobj = SWIG_Py_Void();
42858 {
42859 if (temp2)
42860 delete arg2;
42861 }
42862 return resultobj;
42863 fail:
42864 {
42865 if (temp2)
42866 delete arg2;
42867 }
42868 return NULL;
42869 }
42870
42871
42872 SWIGINTERN PyObject *HyperlinkEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42873 PyObject *obj;
42874 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42875 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkEvent, SWIG_NewClientData(obj));
42876 return SWIG_Py_Void();
42877 }
42878
42879 SWIGINTERN PyObject *HyperlinkEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42880 return SWIG_Python_InitShadowInstance(args);
42881 }
42882
42883 SWIGINTERN PyObject *_wrap_PickerBase_CreateBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42884 PyObject *resultobj = 0;
42885 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42886 wxWindow *arg2 = (wxWindow *) 0 ;
42887 int arg3 ;
42888 wxString const &arg4_defvalue = wxEmptyString ;
42889 wxString *arg4 = (wxString *) &arg4_defvalue ;
42890 wxPoint const &arg5_defvalue = wxDefaultPosition ;
42891 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
42892 wxSize const &arg6_defvalue = wxDefaultSize ;
42893 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
42894 long arg7 = (long) 0 ;
42895 wxValidator const &arg8_defvalue = wxDefaultValidator ;
42896 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
42897 wxString const &arg9_defvalue = wxButtonNameStr ;
42898 wxString *arg9 = (wxString *) &arg9_defvalue ;
42899 bool result;
42900 void *argp1 = 0 ;
42901 int res1 = 0 ;
42902 void *argp2 = 0 ;
42903 int res2 = 0 ;
42904 int val3 ;
42905 int ecode3 = 0 ;
42906 bool temp4 = false ;
42907 wxPoint temp5 ;
42908 wxSize temp6 ;
42909 long val7 ;
42910 int ecode7 = 0 ;
42911 void *argp8 = 0 ;
42912 int res8 = 0 ;
42913 bool temp9 = false ;
42914 PyObject * obj0 = 0 ;
42915 PyObject * obj1 = 0 ;
42916 PyObject * obj2 = 0 ;
42917 PyObject * obj3 = 0 ;
42918 PyObject * obj4 = 0 ;
42919 PyObject * obj5 = 0 ;
42920 PyObject * obj6 = 0 ;
42921 PyObject * obj7 = 0 ;
42922 PyObject * obj8 = 0 ;
42923 char * kwnames[] = {
42924 (char *) "self",(char *) "parent",(char *) "id",(char *) "text",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
42925 };
42926
42927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:PickerBase_CreateBase",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
42928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42929 if (!SWIG_IsOK(res1)) {
42930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_CreateBase" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42931 }
42932 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42933 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
42934 if (!SWIG_IsOK(res2)) {
42935 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PickerBase_CreateBase" "', expected argument " "2"" of type '" "wxWindow *""'");
42936 }
42937 arg2 = reinterpret_cast< wxWindow * >(argp2);
42938 ecode3 = SWIG_AsVal_int(obj2, &val3);
42939 if (!SWIG_IsOK(ecode3)) {
42940 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PickerBase_CreateBase" "', expected argument " "3"" of type '" "int""'");
42941 }
42942 arg3 = static_cast< int >(val3);
42943 if (obj3) {
42944 {
42945 arg4 = wxString_in_helper(obj3);
42946 if (arg4 == NULL) SWIG_fail;
42947 temp4 = true;
42948 }
42949 }
42950 if (obj4) {
42951 {
42952 arg5 = &temp5;
42953 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
42954 }
42955 }
42956 if (obj5) {
42957 {
42958 arg6 = &temp6;
42959 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
42960 }
42961 }
42962 if (obj6) {
42963 ecode7 = SWIG_AsVal_long(obj6, &val7);
42964 if (!SWIG_IsOK(ecode7)) {
42965 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PickerBase_CreateBase" "', expected argument " "7"" of type '" "long""'");
42966 }
42967 arg7 = static_cast< long >(val7);
42968 }
42969 if (obj7) {
42970 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
42971 if (!SWIG_IsOK(res8)) {
42972 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42973 }
42974 if (!argp8) {
42975 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42976 }
42977 arg8 = reinterpret_cast< wxValidator * >(argp8);
42978 }
42979 if (obj8) {
42980 {
42981 arg9 = wxString_in_helper(obj8);
42982 if (arg9 == NULL) SWIG_fail;
42983 temp9 = true;
42984 }
42985 }
42986 {
42987 PyThreadState* __tstate = wxPyBeginAllowThreads();
42988 result = (bool)(arg1)->CreateBase(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
42989 wxPyEndAllowThreads(__tstate);
42990 if (PyErr_Occurred()) SWIG_fail;
42991 }
42992 {
42993 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42994 }
42995 {
42996 if (temp4)
42997 delete arg4;
42998 }
42999 {
43000 if (temp9)
43001 delete arg9;
43002 }
43003 return resultobj;
43004 fail:
43005 {
43006 if (temp4)
43007 delete arg4;
43008 }
43009 {
43010 if (temp9)
43011 delete arg9;
43012 }
43013 return NULL;
43014 }
43015
43016
43017 SWIGINTERN PyObject *_wrap_PickerBase_SetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43018 PyObject *resultobj = 0;
43019 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43020 int arg2 ;
43021 void *argp1 = 0 ;
43022 int res1 = 0 ;
43023 int val2 ;
43024 int ecode2 = 0 ;
43025 PyObject * obj0 = 0 ;
43026 PyObject * obj1 = 0 ;
43027 char * kwnames[] = {
43028 (char *) "self",(char *) "newmargin", NULL
43029 };
43030
43031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetInternalMargin",kwnames,&obj0,&obj1)) SWIG_fail;
43032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43033 if (!SWIG_IsOK(res1)) {
43034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43035 }
43036 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43037 ecode2 = SWIG_AsVal_int(obj1, &val2);
43038 if (!SWIG_IsOK(ecode2)) {
43039 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "2"" of type '" "int""'");
43040 }
43041 arg2 = static_cast< int >(val2);
43042 {
43043 PyThreadState* __tstate = wxPyBeginAllowThreads();
43044 (arg1)->SetInternalMargin(arg2);
43045 wxPyEndAllowThreads(__tstate);
43046 if (PyErr_Occurred()) SWIG_fail;
43047 }
43048 resultobj = SWIG_Py_Void();
43049 return resultobj;
43050 fail:
43051 return NULL;
43052 }
43053
43054
43055 SWIGINTERN PyObject *_wrap_PickerBase_GetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43056 PyObject *resultobj = 0;
43057 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43058 int result;
43059 void *argp1 = 0 ;
43060 int res1 = 0 ;
43061 PyObject *swig_obj[1] ;
43062
43063 if (!args) SWIG_fail;
43064 swig_obj[0] = args;
43065 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43066 if (!SWIG_IsOK(res1)) {
43067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
43068 }
43069 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43070 {
43071 PyThreadState* __tstate = wxPyBeginAllowThreads();
43072 result = (int)((wxPickerBase const *)arg1)->GetInternalMargin();
43073 wxPyEndAllowThreads(__tstate);
43074 if (PyErr_Occurred()) SWIG_fail;
43075 }
43076 resultobj = SWIG_From_int(static_cast< int >(result));
43077 return resultobj;
43078 fail:
43079 return NULL;
43080 }
43081
43082
43083 SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43084 PyObject *resultobj = 0;
43085 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43086 int arg2 ;
43087 void *argp1 = 0 ;
43088 int res1 = 0 ;
43089 int val2 ;
43090 int ecode2 = 0 ;
43091 PyObject * obj0 = 0 ;
43092 PyObject * obj1 = 0 ;
43093 char * kwnames[] = {
43094 (char *) "self",(char *) "prop", NULL
43095 };
43096
43097 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetTextCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
43098 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43099 if (!SWIG_IsOK(res1)) {
43100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43101 }
43102 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43103 ecode2 = SWIG_AsVal_int(obj1, &val2);
43104 if (!SWIG_IsOK(ecode2)) {
43105 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "2"" of type '" "int""'");
43106 }
43107 arg2 = static_cast< int >(val2);
43108 {
43109 PyThreadState* __tstate = wxPyBeginAllowThreads();
43110 (arg1)->SetTextCtrlProportion(arg2);
43111 wxPyEndAllowThreads(__tstate);
43112 if (PyErr_Occurred()) SWIG_fail;
43113 }
43114 resultobj = SWIG_Py_Void();
43115 return resultobj;
43116 fail:
43117 return NULL;
43118 }
43119
43120
43121 SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43122 PyObject *resultobj = 0;
43123 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43124 int result;
43125 void *argp1 = 0 ;
43126 int res1 = 0 ;
43127 PyObject *swig_obj[1] ;
43128
43129 if (!args) SWIG_fail;
43130 swig_obj[0] = args;
43131 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43132 if (!SWIG_IsOK(res1)) {
43133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
43134 }
43135 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43136 {
43137 PyThreadState* __tstate = wxPyBeginAllowThreads();
43138 result = (int)((wxPickerBase const *)arg1)->GetTextCtrlProportion();
43139 wxPyEndAllowThreads(__tstate);
43140 if (PyErr_Occurred()) SWIG_fail;
43141 }
43142 resultobj = SWIG_From_int(static_cast< int >(result));
43143 return resultobj;
43144 fail:
43145 return NULL;
43146 }
43147
43148
43149 SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43150 PyObject *resultobj = 0;
43151 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43152 int arg2 ;
43153 void *argp1 = 0 ;
43154 int res1 = 0 ;
43155 int val2 ;
43156 int ecode2 = 0 ;
43157 PyObject * obj0 = 0 ;
43158 PyObject * obj1 = 0 ;
43159 char * kwnames[] = {
43160 (char *) "self",(char *) "prop", NULL
43161 };
43162
43163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetPickerCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
43164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43165 if (!SWIG_IsOK(res1)) {
43166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43167 }
43168 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43169 ecode2 = SWIG_AsVal_int(obj1, &val2);
43170 if (!SWIG_IsOK(ecode2)) {
43171 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "2"" of type '" "int""'");
43172 }
43173 arg2 = static_cast< int >(val2);
43174 {
43175 PyThreadState* __tstate = wxPyBeginAllowThreads();
43176 (arg1)->SetPickerCtrlProportion(arg2);
43177 wxPyEndAllowThreads(__tstate);
43178 if (PyErr_Occurred()) SWIG_fail;
43179 }
43180 resultobj = SWIG_Py_Void();
43181 return resultobj;
43182 fail:
43183 return NULL;
43184 }
43185
43186
43187 SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43188 PyObject *resultobj = 0;
43189 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43190 int result;
43191 void *argp1 = 0 ;
43192 int res1 = 0 ;
43193 PyObject *swig_obj[1] ;
43194
43195 if (!args) SWIG_fail;
43196 swig_obj[0] = args;
43197 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43198 if (!SWIG_IsOK(res1)) {
43199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
43200 }
43201 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43202 {
43203 PyThreadState* __tstate = wxPyBeginAllowThreads();
43204 result = (int)((wxPickerBase const *)arg1)->GetPickerCtrlProportion();
43205 wxPyEndAllowThreads(__tstate);
43206 if (PyErr_Occurred()) SWIG_fail;
43207 }
43208 resultobj = SWIG_From_int(static_cast< int >(result));
43209 return resultobj;
43210 fail:
43211 return NULL;
43212 }
43213
43214
43215 SWIGINTERN PyObject *_wrap_PickerBase_IsTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43216 PyObject *resultobj = 0;
43217 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43218 bool result;
43219 void *argp1 = 0 ;
43220 int res1 = 0 ;
43221 PyObject *swig_obj[1] ;
43222
43223 if (!args) SWIG_fail;
43224 swig_obj[0] = args;
43225 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43226 if (!SWIG_IsOK(res1)) {
43227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
43228 }
43229 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43230 {
43231 PyThreadState* __tstate = wxPyBeginAllowThreads();
43232 result = (bool)((wxPickerBase const *)arg1)->IsTextCtrlGrowable();
43233 wxPyEndAllowThreads(__tstate);
43234 if (PyErr_Occurred()) SWIG_fail;
43235 }
43236 {
43237 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43238 }
43239 return resultobj;
43240 fail:
43241 return NULL;
43242 }
43243
43244
43245 SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43246 PyObject *resultobj = 0;
43247 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43248 bool arg2 = (bool) true ;
43249 void *argp1 = 0 ;
43250 int res1 = 0 ;
43251 bool val2 ;
43252 int ecode2 = 0 ;
43253 PyObject * obj0 = 0 ;
43254 PyObject * obj1 = 0 ;
43255 char * kwnames[] = {
43256 (char *) "self",(char *) "grow", NULL
43257 };
43258
43259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetTextCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
43260 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43261 if (!SWIG_IsOK(res1)) {
43262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43263 }
43264 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43265 if (obj1) {
43266 ecode2 = SWIG_AsVal_bool(obj1, &val2);
43267 if (!SWIG_IsOK(ecode2)) {
43268 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
43269 }
43270 arg2 = static_cast< bool >(val2);
43271 }
43272 {
43273 PyThreadState* __tstate = wxPyBeginAllowThreads();
43274 (arg1)->SetTextCtrlGrowable(arg2);
43275 wxPyEndAllowThreads(__tstate);
43276 if (PyErr_Occurred()) SWIG_fail;
43277 }
43278 resultobj = SWIG_Py_Void();
43279 return resultobj;
43280 fail:
43281 return NULL;
43282 }
43283
43284
43285 SWIGINTERN PyObject *_wrap_PickerBase_IsPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43286 PyObject *resultobj = 0;
43287 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43288 bool result;
43289 void *argp1 = 0 ;
43290 int res1 = 0 ;
43291 PyObject *swig_obj[1] ;
43292
43293 if (!args) SWIG_fail;
43294 swig_obj[0] = args;
43295 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43296 if (!SWIG_IsOK(res1)) {
43297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
43298 }
43299 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43300 {
43301 PyThreadState* __tstate = wxPyBeginAllowThreads();
43302 result = (bool)((wxPickerBase const *)arg1)->IsPickerCtrlGrowable();
43303 wxPyEndAllowThreads(__tstate);
43304 if (PyErr_Occurred()) SWIG_fail;
43305 }
43306 {
43307 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43308 }
43309 return resultobj;
43310 fail:
43311 return NULL;
43312 }
43313
43314
43315 SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43316 PyObject *resultobj = 0;
43317 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43318 bool arg2 = (bool) true ;
43319 void *argp1 = 0 ;
43320 int res1 = 0 ;
43321 bool val2 ;
43322 int ecode2 = 0 ;
43323 PyObject * obj0 = 0 ;
43324 PyObject * obj1 = 0 ;
43325 char * kwnames[] = {
43326 (char *) "self",(char *) "grow", NULL
43327 };
43328
43329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetPickerCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
43330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43331 if (!SWIG_IsOK(res1)) {
43332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43333 }
43334 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43335 if (obj1) {
43336 ecode2 = SWIG_AsVal_bool(obj1, &val2);
43337 if (!SWIG_IsOK(ecode2)) {
43338 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
43339 }
43340 arg2 = static_cast< bool >(val2);
43341 }
43342 {
43343 PyThreadState* __tstate = wxPyBeginAllowThreads();
43344 (arg1)->SetPickerCtrlGrowable(arg2);
43345 wxPyEndAllowThreads(__tstate);
43346 if (PyErr_Occurred()) SWIG_fail;
43347 }
43348 resultobj = SWIG_Py_Void();
43349 return resultobj;
43350 fail:
43351 return NULL;
43352 }
43353
43354
43355 SWIGINTERN PyObject *_wrap_PickerBase_HasTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43356 PyObject *resultobj = 0;
43357 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43358 bool result;
43359 void *argp1 = 0 ;
43360 int res1 = 0 ;
43361 PyObject *swig_obj[1] ;
43362
43363 if (!args) SWIG_fail;
43364 swig_obj[0] = args;
43365 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43366 if (!SWIG_IsOK(res1)) {
43367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_HasTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
43368 }
43369 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43370 {
43371 PyThreadState* __tstate = wxPyBeginAllowThreads();
43372 result = (bool)((wxPickerBase const *)arg1)->HasTextCtrl();
43373 wxPyEndAllowThreads(__tstate);
43374 if (PyErr_Occurred()) SWIG_fail;
43375 }
43376 {
43377 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43378 }
43379 return resultobj;
43380 fail:
43381 return NULL;
43382 }
43383
43384
43385 SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43386 PyObject *resultobj = 0;
43387 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43388 wxTextCtrl *result = 0 ;
43389 void *argp1 = 0 ;
43390 int res1 = 0 ;
43391 PyObject *swig_obj[1] ;
43392
43393 if (!args) SWIG_fail;
43394 swig_obj[0] = args;
43395 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43396 if (!SWIG_IsOK(res1)) {
43397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43398 }
43399 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43400 {
43401 PyThreadState* __tstate = wxPyBeginAllowThreads();
43402 result = (wxTextCtrl *)(arg1)->GetTextCtrl();
43403 wxPyEndAllowThreads(__tstate);
43404 if (PyErr_Occurred()) SWIG_fail;
43405 }
43406 {
43407 resultobj = wxPyMake_wxObject(result, 0);
43408 }
43409 return resultobj;
43410 fail:
43411 return NULL;
43412 }
43413
43414
43415 SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43416 PyObject *resultobj = 0;
43417 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43418 wxControl *result = 0 ;
43419 void *argp1 = 0 ;
43420 int res1 = 0 ;
43421 PyObject *swig_obj[1] ;
43422
43423 if (!args) SWIG_fail;
43424 swig_obj[0] = args;
43425 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43426 if (!SWIG_IsOK(res1)) {
43427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43428 }
43429 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43430 {
43431 PyThreadState* __tstate = wxPyBeginAllowThreads();
43432 result = (wxControl *)(arg1)->GetPickerCtrl();
43433 wxPyEndAllowThreads(__tstate);
43434 if (PyErr_Occurred()) SWIG_fail;
43435 }
43436 {
43437 resultobj = wxPyMake_wxObject(result, 0);
43438 }
43439 return resultobj;
43440 fail:
43441 return NULL;
43442 }
43443
43444
43445 SWIGINTERN PyObject *PickerBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43446 PyObject *obj;
43447 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43448 SWIG_TypeNewClientData(SWIGTYPE_p_wxPickerBase, SWIG_NewClientData(obj));
43449 return SWIG_Py_Void();
43450 }
43451
43452 SWIGINTERN int ColourPickerCtrlNameStr_set(PyObject *) {
43453 SWIG_Error(SWIG_AttributeError,"Variable ColourPickerCtrlNameStr is read-only.");
43454 return 1;
43455 }
43456
43457
43458 SWIGINTERN PyObject *ColourPickerCtrlNameStr_get(void) {
43459 PyObject *pyobj = 0;
43460
43461 {
43462 #if wxUSE_UNICODE
43463 pyobj = PyUnicode_FromWideChar((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
43464 #else
43465 pyobj = PyString_FromStringAndSize((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
43466 #endif
43467 }
43468 return pyobj;
43469 }
43470
43471
43472 SWIGINTERN PyObject *_wrap_new_ColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43473 PyObject *resultobj = 0;
43474 wxWindow *arg1 = (wxWindow *) 0 ;
43475 int arg2 = (int) -1 ;
43476 wxColour const &arg3_defvalue = *wxBLACK ;
43477 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
43478 wxPoint const &arg4_defvalue = wxDefaultPosition ;
43479 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
43480 wxSize const &arg5_defvalue = wxDefaultSize ;
43481 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
43482 long arg6 = (long) wxCLRP_DEFAULT_STYLE ;
43483 wxValidator const &arg7_defvalue = wxDefaultValidator ;
43484 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
43485 wxString const &arg8_defvalue = wxPyColourPickerCtrlNameStr ;
43486 wxString *arg8 = (wxString *) &arg8_defvalue ;
43487 wxColourPickerCtrl *result = 0 ;
43488 void *argp1 = 0 ;
43489 int res1 = 0 ;
43490 int val2 ;
43491 int ecode2 = 0 ;
43492 wxColour temp3 ;
43493 wxPoint temp4 ;
43494 wxSize temp5 ;
43495 long val6 ;
43496 int ecode6 = 0 ;
43497 void *argp7 = 0 ;
43498 int res7 = 0 ;
43499 bool temp8 = false ;
43500 PyObject * obj0 = 0 ;
43501 PyObject * obj1 = 0 ;
43502 PyObject * obj2 = 0 ;
43503 PyObject * obj3 = 0 ;
43504 PyObject * obj4 = 0 ;
43505 PyObject * obj5 = 0 ;
43506 PyObject * obj6 = 0 ;
43507 PyObject * obj7 = 0 ;
43508 char * kwnames[] = {
43509 (char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43510 };
43511
43512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ColourPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
43513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43514 if (!SWIG_IsOK(res1)) {
43515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43516 }
43517 arg1 = reinterpret_cast< wxWindow * >(argp1);
43518 if (obj1) {
43519 ecode2 = SWIG_AsVal_int(obj1, &val2);
43520 if (!SWIG_IsOK(ecode2)) {
43521 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerCtrl" "', expected argument " "2"" of type '" "int""'");
43522 }
43523 arg2 = static_cast< int >(val2);
43524 }
43525 if (obj2) {
43526 {
43527 arg3 = &temp3;
43528 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
43529 }
43530 }
43531 if (obj3) {
43532 {
43533 arg4 = &temp4;
43534 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
43535 }
43536 }
43537 if (obj4) {
43538 {
43539 arg5 = &temp5;
43540 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
43541 }
43542 }
43543 if (obj5) {
43544 ecode6 = SWIG_AsVal_long(obj5, &val6);
43545 if (!SWIG_IsOK(ecode6)) {
43546 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ColourPickerCtrl" "', expected argument " "6"" of type '" "long""'");
43547 }
43548 arg6 = static_cast< long >(val6);
43549 }
43550 if (obj6) {
43551 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
43552 if (!SWIG_IsOK(res7)) {
43553 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
43554 }
43555 if (!argp7) {
43556 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
43557 }
43558 arg7 = reinterpret_cast< wxValidator * >(argp7);
43559 }
43560 if (obj7) {
43561 {
43562 arg8 = wxString_in_helper(obj7);
43563 if (arg8 == NULL) SWIG_fail;
43564 temp8 = true;
43565 }
43566 }
43567 {
43568 if (!wxPyCheckForApp()) SWIG_fail;
43569 PyThreadState* __tstate = wxPyBeginAllowThreads();
43570 result = (wxColourPickerCtrl *)new wxColourPickerCtrl(arg1,arg2,(wxColour const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
43571 wxPyEndAllowThreads(__tstate);
43572 if (PyErr_Occurred()) SWIG_fail;
43573 }
43574 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_NEW | 0 );
43575 {
43576 if (temp8)
43577 delete arg8;
43578 }
43579 return resultobj;
43580 fail:
43581 {
43582 if (temp8)
43583 delete arg8;
43584 }
43585 return NULL;
43586 }
43587
43588
43589 SWIGINTERN PyObject *_wrap_new_PreColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43590 PyObject *resultobj = 0;
43591 wxColourPickerCtrl *result = 0 ;
43592
43593 if (!SWIG_Python_UnpackTuple(args,"new_PreColourPickerCtrl",0,0,0)) SWIG_fail;
43594 {
43595 if (!wxPyCheckForApp()) SWIG_fail;
43596 PyThreadState* __tstate = wxPyBeginAllowThreads();
43597 result = (wxColourPickerCtrl *)new wxColourPickerCtrl();
43598 wxPyEndAllowThreads(__tstate);
43599 if (PyErr_Occurred()) SWIG_fail;
43600 }
43601 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_OWN | 0 );
43602 return resultobj;
43603 fail:
43604 return NULL;
43605 }
43606
43607
43608 SWIGINTERN PyObject *_wrap_ColourPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43609 PyObject *resultobj = 0;
43610 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43611 wxWindow *arg2 = (wxWindow *) 0 ;
43612 int arg3 ;
43613 wxColour const &arg4_defvalue = *wxBLACK ;
43614 wxColour *arg4 = (wxColour *) &arg4_defvalue ;
43615 wxPoint const &arg5_defvalue = wxDefaultPosition ;
43616 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
43617 wxSize const &arg6_defvalue = wxDefaultSize ;
43618 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
43619 long arg7 = (long) wxCLRP_DEFAULT_STYLE ;
43620 wxValidator const &arg8_defvalue = wxDefaultValidator ;
43621 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
43622 wxString const &arg9_defvalue = wxPyColourPickerCtrlNameStr ;
43623 wxString *arg9 = (wxString *) &arg9_defvalue ;
43624 bool result;
43625 void *argp1 = 0 ;
43626 int res1 = 0 ;
43627 void *argp2 = 0 ;
43628 int res2 = 0 ;
43629 int val3 ;
43630 int ecode3 = 0 ;
43631 wxColour temp4 ;
43632 wxPoint temp5 ;
43633 wxSize temp6 ;
43634 long val7 ;
43635 int ecode7 = 0 ;
43636 void *argp8 = 0 ;
43637 int res8 = 0 ;
43638 bool temp9 = false ;
43639 PyObject * obj0 = 0 ;
43640 PyObject * obj1 = 0 ;
43641 PyObject * obj2 = 0 ;
43642 PyObject * obj3 = 0 ;
43643 PyObject * obj4 = 0 ;
43644 PyObject * obj5 = 0 ;
43645 PyObject * obj6 = 0 ;
43646 PyObject * obj7 = 0 ;
43647 PyObject * obj8 = 0 ;
43648 char * kwnames[] = {
43649 (char *) "self",(char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43650 };
43651
43652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ColourPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
43653 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43654 if (!SWIG_IsOK(res1)) {
43655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_Create" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43656 }
43657 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43658 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
43659 if (!SWIG_IsOK(res2)) {
43660 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ColourPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
43661 }
43662 arg2 = reinterpret_cast< wxWindow * >(argp2);
43663 ecode3 = SWIG_AsVal_int(obj2, &val3);
43664 if (!SWIG_IsOK(ecode3)) {
43665 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
43666 }
43667 arg3 = static_cast< int >(val3);
43668 if (obj3) {
43669 {
43670 arg4 = &temp4;
43671 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
43672 }
43673 }
43674 if (obj4) {
43675 {
43676 arg5 = &temp5;
43677 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
43678 }
43679 }
43680 if (obj5) {
43681 {
43682 arg6 = &temp6;
43683 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
43684 }
43685 }
43686 if (obj6) {
43687 ecode7 = SWIG_AsVal_long(obj6, &val7);
43688 if (!SWIG_IsOK(ecode7)) {
43689 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ColourPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
43690 }
43691 arg7 = static_cast< long >(val7);
43692 }
43693 if (obj7) {
43694 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
43695 if (!SWIG_IsOK(res8)) {
43696 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43697 }
43698 if (!argp8) {
43699 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43700 }
43701 arg8 = reinterpret_cast< wxValidator * >(argp8);
43702 }
43703 if (obj8) {
43704 {
43705 arg9 = wxString_in_helper(obj8);
43706 if (arg9 == NULL) SWIG_fail;
43707 temp9 = true;
43708 }
43709 }
43710 {
43711 PyThreadState* __tstate = wxPyBeginAllowThreads();
43712 result = (bool)(arg1)->Create(arg2,arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
43713 wxPyEndAllowThreads(__tstate);
43714 if (PyErr_Occurred()) SWIG_fail;
43715 }
43716 {
43717 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43718 }
43719 {
43720 if (temp9)
43721 delete arg9;
43722 }
43723 return resultobj;
43724 fail:
43725 {
43726 if (temp9)
43727 delete arg9;
43728 }
43729 return NULL;
43730 }
43731
43732
43733 SWIGINTERN PyObject *_wrap_ColourPickerCtrl_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43734 PyObject *resultobj = 0;
43735 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43736 wxColour result;
43737 void *argp1 = 0 ;
43738 int res1 = 0 ;
43739 PyObject *swig_obj[1] ;
43740
43741 if (!args) SWIG_fail;
43742 swig_obj[0] = args;
43743 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43744 if (!SWIG_IsOK(res1)) {
43745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_GetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl const *""'");
43746 }
43747 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43748 {
43749 PyThreadState* __tstate = wxPyBeginAllowThreads();
43750 result = ((wxColourPickerCtrl const *)arg1)->GetColour();
43751 wxPyEndAllowThreads(__tstate);
43752 if (PyErr_Occurred()) SWIG_fail;
43753 }
43754 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43755 return resultobj;
43756 fail:
43757 return NULL;
43758 }
43759
43760
43761 SWIGINTERN PyObject *_wrap_ColourPickerCtrl_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43762 PyObject *resultobj = 0;
43763 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43764 wxColour *arg2 = 0 ;
43765 void *argp1 = 0 ;
43766 int res1 = 0 ;
43767 wxColour temp2 ;
43768 PyObject * obj0 = 0 ;
43769 PyObject * obj1 = 0 ;
43770 char * kwnames[] = {
43771 (char *) "self",(char *) "col", NULL
43772 };
43773
43774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerCtrl_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43776 if (!SWIG_IsOK(res1)) {
43777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_SetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43778 }
43779 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43780 {
43781 arg2 = &temp2;
43782 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43783 }
43784 {
43785 PyThreadState* __tstate = wxPyBeginAllowThreads();
43786 (arg1)->SetColour((wxColour const &)*arg2);
43787 wxPyEndAllowThreads(__tstate);
43788 if (PyErr_Occurred()) SWIG_fail;
43789 }
43790 resultobj = SWIG_Py_Void();
43791 return resultobj;
43792 fail:
43793 return NULL;
43794 }
43795
43796
43797 SWIGINTERN PyObject *ColourPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43798 PyObject *obj;
43799 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43800 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerCtrl, SWIG_NewClientData(obj));
43801 return SWIG_Py_Void();
43802 }
43803
43804 SWIGINTERN PyObject *ColourPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43805 return SWIG_Python_InitShadowInstance(args);
43806 }
43807
43808 SWIGINTERN PyObject *_wrap_new_ColourPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43809 PyObject *resultobj = 0;
43810 wxObject *arg1 = (wxObject *) 0 ;
43811 int arg2 ;
43812 wxColour *arg3 = 0 ;
43813 wxColourPickerEvent *result = 0 ;
43814 void *argp1 = 0 ;
43815 int res1 = 0 ;
43816 int val2 ;
43817 int ecode2 = 0 ;
43818 wxColour temp3 ;
43819 PyObject * obj0 = 0 ;
43820 PyObject * obj1 = 0 ;
43821 PyObject * obj2 = 0 ;
43822 char * kwnames[] = {
43823 (char *) "generator",(char *) "id",(char *) "col", NULL
43824 };
43825
43826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ColourPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
43827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
43828 if (!SWIG_IsOK(res1)) {
43829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
43830 }
43831 arg1 = reinterpret_cast< wxObject * >(argp1);
43832 ecode2 = SWIG_AsVal_int(obj1, &val2);
43833 if (!SWIG_IsOK(ecode2)) {
43834 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerEvent" "', expected argument " "2"" of type '" "int""'");
43835 }
43836 arg2 = static_cast< int >(val2);
43837 {
43838 arg3 = &temp3;
43839 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
43840 }
43841 {
43842 PyThreadState* __tstate = wxPyBeginAllowThreads();
43843 result = (wxColourPickerEvent *)new wxColourPickerEvent(arg1,arg2,(wxColour const &)*arg3);
43844 wxPyEndAllowThreads(__tstate);
43845 if (PyErr_Occurred()) SWIG_fail;
43846 }
43847 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerEvent, SWIG_POINTER_NEW | 0 );
43848 return resultobj;
43849 fail:
43850 return NULL;
43851 }
43852
43853
43854 SWIGINTERN PyObject *_wrap_ColourPickerEvent_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43855 PyObject *resultobj = 0;
43856 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43857 wxColour result;
43858 void *argp1 = 0 ;
43859 int res1 = 0 ;
43860 PyObject *swig_obj[1] ;
43861
43862 if (!args) SWIG_fail;
43863 swig_obj[0] = args;
43864 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43865 if (!SWIG_IsOK(res1)) {
43866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_GetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent const *""'");
43867 }
43868 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43869 {
43870 PyThreadState* __tstate = wxPyBeginAllowThreads();
43871 result = ((wxColourPickerEvent const *)arg1)->GetColour();
43872 wxPyEndAllowThreads(__tstate);
43873 if (PyErr_Occurred()) SWIG_fail;
43874 }
43875 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43876 return resultobj;
43877 fail:
43878 return NULL;
43879 }
43880
43881
43882 SWIGINTERN PyObject *_wrap_ColourPickerEvent_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43883 PyObject *resultobj = 0;
43884 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43885 wxColour *arg2 = 0 ;
43886 void *argp1 = 0 ;
43887 int res1 = 0 ;
43888 wxColour temp2 ;
43889 PyObject * obj0 = 0 ;
43890 PyObject * obj1 = 0 ;
43891 char * kwnames[] = {
43892 (char *) "self",(char *) "c", NULL
43893 };
43894
43895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerEvent_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43897 if (!SWIG_IsOK(res1)) {
43898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_SetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent *""'");
43899 }
43900 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43901 {
43902 arg2 = &temp2;
43903 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43904 }
43905 {
43906 PyThreadState* __tstate = wxPyBeginAllowThreads();
43907 (arg1)->SetColour((wxColour const &)*arg2);
43908 wxPyEndAllowThreads(__tstate);
43909 if (PyErr_Occurred()) SWIG_fail;
43910 }
43911 resultobj = SWIG_Py_Void();
43912 return resultobj;
43913 fail:
43914 return NULL;
43915 }
43916
43917
43918 SWIGINTERN PyObject *ColourPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43919 PyObject *obj;
43920 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43921 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerEvent, SWIG_NewClientData(obj));
43922 return SWIG_Py_Void();
43923 }
43924
43925 SWIGINTERN PyObject *ColourPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43926 return SWIG_Python_InitShadowInstance(args);
43927 }
43928
43929 SWIGINTERN int FilePickerCtrlNameStr_set(PyObject *) {
43930 SWIG_Error(SWIG_AttributeError,"Variable FilePickerCtrlNameStr is read-only.");
43931 return 1;
43932 }
43933
43934
43935 SWIGINTERN PyObject *FilePickerCtrlNameStr_get(void) {
43936 PyObject *pyobj = 0;
43937
43938 {
43939 #if wxUSE_UNICODE
43940 pyobj = PyUnicode_FromWideChar((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43941 #else
43942 pyobj = PyString_FromStringAndSize((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43943 #endif
43944 }
43945 return pyobj;
43946 }
43947
43948
43949 SWIGINTERN int FileSelectorPromptStr_set(PyObject *) {
43950 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorPromptStr is read-only.");
43951 return 1;
43952 }
43953
43954
43955 SWIGINTERN PyObject *FileSelectorPromptStr_get(void) {
43956 PyObject *pyobj = 0;
43957
43958 {
43959 #if wxUSE_UNICODE
43960 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43961 #else
43962 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43963 #endif
43964 }
43965 return pyobj;
43966 }
43967
43968
43969 SWIGINTERN int DirPickerCtrlNameStr_set(PyObject *) {
43970 SWIG_Error(SWIG_AttributeError,"Variable DirPickerCtrlNameStr is read-only.");
43971 return 1;
43972 }
43973
43974
43975 SWIGINTERN PyObject *DirPickerCtrlNameStr_get(void) {
43976 PyObject *pyobj = 0;
43977
43978 {
43979 #if wxUSE_UNICODE
43980 pyobj = PyUnicode_FromWideChar((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43981 #else
43982 pyobj = PyString_FromStringAndSize((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43983 #endif
43984 }
43985 return pyobj;
43986 }
43987
43988
43989 SWIGINTERN int DirSelectorPromptStr_set(PyObject *) {
43990 SWIG_Error(SWIG_AttributeError,"Variable DirSelectorPromptStr is read-only.");
43991 return 1;
43992 }
43993
43994
43995 SWIGINTERN PyObject *DirSelectorPromptStr_get(void) {
43996 PyObject *pyobj = 0;
43997
43998 {
43999 #if wxUSE_UNICODE
44000 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
44001 #else
44002 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
44003 #endif
44004 }
44005 return pyobj;
44006 }
44007
44008
44009 SWIGINTERN int FileSelectorDefaultWildcardStr_set(PyObject *) {
44010 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
44011 return 1;
44012 }
44013
44014
44015 SWIGINTERN PyObject *FileSelectorDefaultWildcardStr_get(void) {
44016 PyObject *pyobj = 0;
44017
44018 {
44019 #if wxUSE_UNICODE
44020 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
44021 #else
44022 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
44023 #endif
44024 }
44025 return pyobj;
44026 }
44027
44028
44029 SWIGINTERN PyObject *_wrap_new_FilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44030 PyObject *resultobj = 0;
44031 wxWindow *arg1 = (wxWindow *) 0 ;
44032 int arg2 = (int) -1 ;
44033 wxString const &arg3_defvalue = wxPyEmptyString ;
44034 wxString *arg3 = (wxString *) &arg3_defvalue ;
44035 wxString const &arg4_defvalue = wxPyFileSelectorPromptStr ;
44036 wxString *arg4 = (wxString *) &arg4_defvalue ;
44037 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
44038 wxString *arg5 = (wxString *) &arg5_defvalue ;
44039 wxPoint const &arg6_defvalue = wxDefaultPosition ;
44040 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
44041 wxSize const &arg7_defvalue = wxDefaultSize ;
44042 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
44043 long arg8 = (long) wxFLP_DEFAULT_STYLE ;
44044 wxValidator const &arg9_defvalue = wxDefaultValidator ;
44045 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
44046 wxString const &arg10_defvalue = wxPyFilePickerCtrlNameStr ;
44047 wxString *arg10 = (wxString *) &arg10_defvalue ;
44048 wxFilePickerCtrl *result = 0 ;
44049 void *argp1 = 0 ;
44050 int res1 = 0 ;
44051 int val2 ;
44052 int ecode2 = 0 ;
44053 bool temp3 = false ;
44054 bool temp4 = false ;
44055 bool temp5 = false ;
44056 wxPoint temp6 ;
44057 wxSize temp7 ;
44058 long val8 ;
44059 int ecode8 = 0 ;
44060 void *argp9 = 0 ;
44061 int res9 = 0 ;
44062 bool temp10 = false ;
44063 PyObject * obj0 = 0 ;
44064 PyObject * obj1 = 0 ;
44065 PyObject * obj2 = 0 ;
44066 PyObject * obj3 = 0 ;
44067 PyObject * obj4 = 0 ;
44068 PyObject * obj5 = 0 ;
44069 PyObject * obj6 = 0 ;
44070 PyObject * obj7 = 0 ;
44071 PyObject * obj8 = 0 ;
44072 PyObject * obj9 = 0 ;
44073 char * kwnames[] = {
44074 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44075 };
44076
44077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_FilePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
44078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
44079 if (!SWIG_IsOK(res1)) {
44080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FilePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
44081 }
44082 arg1 = reinterpret_cast< wxWindow * >(argp1);
44083 if (obj1) {
44084 ecode2 = SWIG_AsVal_int(obj1, &val2);
44085 if (!SWIG_IsOK(ecode2)) {
44086 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FilePickerCtrl" "', expected argument " "2"" of type '" "int""'");
44087 }
44088 arg2 = static_cast< int >(val2);
44089 }
44090 if (obj2) {
44091 {
44092 arg3 = wxString_in_helper(obj2);
44093 if (arg3 == NULL) SWIG_fail;
44094 temp3 = true;
44095 }
44096 }
44097 if (obj3) {
44098 {
44099 arg4 = wxString_in_helper(obj3);
44100 if (arg4 == NULL) SWIG_fail;
44101 temp4 = true;
44102 }
44103 }
44104 if (obj4) {
44105 {
44106 arg5 = wxString_in_helper(obj4);
44107 if (arg5 == NULL) SWIG_fail;
44108 temp5 = true;
44109 }
44110 }
44111 if (obj5) {
44112 {
44113 arg6 = &temp6;
44114 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
44115 }
44116 }
44117 if (obj6) {
44118 {
44119 arg7 = &temp7;
44120 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
44121 }
44122 }
44123 if (obj7) {
44124 ecode8 = SWIG_AsVal_long(obj7, &val8);
44125 if (!SWIG_IsOK(ecode8)) {
44126 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_FilePickerCtrl" "', expected argument " "8"" of type '" "long""'");
44127 }
44128 arg8 = static_cast< long >(val8);
44129 }
44130 if (obj8) {
44131 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
44132 if (!SWIG_IsOK(res9)) {
44133 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
44134 }
44135 if (!argp9) {
44136 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
44137 }
44138 arg9 = reinterpret_cast< wxValidator * >(argp9);
44139 }
44140 if (obj9) {
44141 {
44142 arg10 = wxString_in_helper(obj9);
44143 if (arg10 == NULL) SWIG_fail;
44144 temp10 = true;
44145 }
44146 }
44147 {
44148 if (!wxPyCheckForApp()) SWIG_fail;
44149 PyThreadState* __tstate = wxPyBeginAllowThreads();
44150 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);
44151 wxPyEndAllowThreads(__tstate);
44152 if (PyErr_Occurred()) SWIG_fail;
44153 }
44154 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_NEW | 0 );
44155 {
44156 if (temp3)
44157 delete arg3;
44158 }
44159 {
44160 if (temp4)
44161 delete arg4;
44162 }
44163 {
44164 if (temp5)
44165 delete arg5;
44166 }
44167 {
44168 if (temp10)
44169 delete arg10;
44170 }
44171 return resultobj;
44172 fail:
44173 {
44174 if (temp3)
44175 delete arg3;
44176 }
44177 {
44178 if (temp4)
44179 delete arg4;
44180 }
44181 {
44182 if (temp5)
44183 delete arg5;
44184 }
44185 {
44186 if (temp10)
44187 delete arg10;
44188 }
44189 return NULL;
44190 }
44191
44192
44193 SWIGINTERN PyObject *_wrap_new_PreFilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44194 PyObject *resultobj = 0;
44195 wxFilePickerCtrl *result = 0 ;
44196
44197 if (!SWIG_Python_UnpackTuple(args,"new_PreFilePickerCtrl",0,0,0)) SWIG_fail;
44198 {
44199 if (!wxPyCheckForApp()) SWIG_fail;
44200 PyThreadState* __tstate = wxPyBeginAllowThreads();
44201 result = (wxFilePickerCtrl *)new wxFilePickerCtrl();
44202 wxPyEndAllowThreads(__tstate);
44203 if (PyErr_Occurred()) SWIG_fail;
44204 }
44205 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_OWN | 0 );
44206 return resultobj;
44207 fail:
44208 return NULL;
44209 }
44210
44211
44212 SWIGINTERN PyObject *_wrap_FilePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44213 PyObject *resultobj = 0;
44214 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44215 wxWindow *arg2 = (wxWindow *) 0 ;
44216 int arg3 = (int) -1 ;
44217 wxString const &arg4_defvalue = wxPyEmptyString ;
44218 wxString *arg4 = (wxString *) &arg4_defvalue ;
44219 wxString const &arg5_defvalue = wxPyFileSelectorPromptStr ;
44220 wxString *arg5 = (wxString *) &arg5_defvalue ;
44221 wxString const &arg6_defvalue = wxPyFileSelectorDefaultWildcardStr ;
44222 wxString *arg6 = (wxString *) &arg6_defvalue ;
44223 wxPoint const &arg7_defvalue = wxDefaultPosition ;
44224 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
44225 wxSize const &arg8_defvalue = wxDefaultSize ;
44226 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
44227 long arg9 = (long) wxFLP_DEFAULT_STYLE ;
44228 wxValidator const &arg10_defvalue = wxDefaultValidator ;
44229 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
44230 wxString const &arg11_defvalue = wxPyFilePickerCtrlNameStr ;
44231 wxString *arg11 = (wxString *) &arg11_defvalue ;
44232 bool result;
44233 void *argp1 = 0 ;
44234 int res1 = 0 ;
44235 void *argp2 = 0 ;
44236 int res2 = 0 ;
44237 int val3 ;
44238 int ecode3 = 0 ;
44239 bool temp4 = false ;
44240 bool temp5 = false ;
44241 bool temp6 = false ;
44242 wxPoint temp7 ;
44243 wxSize temp8 ;
44244 long val9 ;
44245 int ecode9 = 0 ;
44246 void *argp10 = 0 ;
44247 int res10 = 0 ;
44248 bool temp11 = false ;
44249 PyObject * obj0 = 0 ;
44250 PyObject * obj1 = 0 ;
44251 PyObject * obj2 = 0 ;
44252 PyObject * obj3 = 0 ;
44253 PyObject * obj4 = 0 ;
44254 PyObject * obj5 = 0 ;
44255 PyObject * obj6 = 0 ;
44256 PyObject * obj7 = 0 ;
44257 PyObject * obj8 = 0 ;
44258 PyObject * obj9 = 0 ;
44259 PyObject * obj10 = 0 ;
44260 char * kwnames[] = {
44261 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44262 };
44263
44264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:FilePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
44265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44266 if (!SWIG_IsOK(res1)) {
44267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_Create" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
44268 }
44269 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44270 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44271 if (!SWIG_IsOK(res2)) {
44272 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FilePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44273 }
44274 arg2 = reinterpret_cast< wxWindow * >(argp2);
44275 if (obj2) {
44276 ecode3 = SWIG_AsVal_int(obj2, &val3);
44277 if (!SWIG_IsOK(ecode3)) {
44278 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FilePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44279 }
44280 arg3 = static_cast< int >(val3);
44281 }
44282 if (obj3) {
44283 {
44284 arg4 = wxString_in_helper(obj3);
44285 if (arg4 == NULL) SWIG_fail;
44286 temp4 = true;
44287 }
44288 }
44289 if (obj4) {
44290 {
44291 arg5 = wxString_in_helper(obj4);
44292 if (arg5 == NULL) SWIG_fail;
44293 temp5 = true;
44294 }
44295 }
44296 if (obj5) {
44297 {
44298 arg6 = wxString_in_helper(obj5);
44299 if (arg6 == NULL) SWIG_fail;
44300 temp6 = true;
44301 }
44302 }
44303 if (obj6) {
44304 {
44305 arg7 = &temp7;
44306 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
44307 }
44308 }
44309 if (obj7) {
44310 {
44311 arg8 = &temp8;
44312 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
44313 }
44314 }
44315 if (obj8) {
44316 ecode9 = SWIG_AsVal_long(obj8, &val9);
44317 if (!SWIG_IsOK(ecode9)) {
44318 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "FilePickerCtrl_Create" "', expected argument " "9"" of type '" "long""'");
44319 }
44320 arg9 = static_cast< long >(val9);
44321 }
44322 if (obj9) {
44323 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
44324 if (!SWIG_IsOK(res10)) {
44325 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
44326 }
44327 if (!argp10) {
44328 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
44329 }
44330 arg10 = reinterpret_cast< wxValidator * >(argp10);
44331 }
44332 if (obj10) {
44333 {
44334 arg11 = wxString_in_helper(obj10);
44335 if (arg11 == NULL) SWIG_fail;
44336 temp11 = true;
44337 }
44338 }
44339 {
44340 PyThreadState* __tstate = wxPyBeginAllowThreads();
44341 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);
44342 wxPyEndAllowThreads(__tstate);
44343 if (PyErr_Occurred()) SWIG_fail;
44344 }
44345 {
44346 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44347 }
44348 {
44349 if (temp4)
44350 delete arg4;
44351 }
44352 {
44353 if (temp5)
44354 delete arg5;
44355 }
44356 {
44357 if (temp6)
44358 delete arg6;
44359 }
44360 {
44361 if (temp11)
44362 delete arg11;
44363 }
44364 return resultobj;
44365 fail:
44366 {
44367 if (temp4)
44368 delete arg4;
44369 }
44370 {
44371 if (temp5)
44372 delete arg5;
44373 }
44374 {
44375 if (temp6)
44376 delete arg6;
44377 }
44378 {
44379 if (temp11)
44380 delete arg11;
44381 }
44382 return NULL;
44383 }
44384
44385
44386 SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44387 PyObject *resultobj = 0;
44388 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44389 wxString result;
44390 void *argp1 = 0 ;
44391 int res1 = 0 ;
44392 PyObject *swig_obj[1] ;
44393
44394 if (!args) SWIG_fail;
44395 swig_obj[0] = args;
44396 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44397 if (!SWIG_IsOK(res1)) {
44398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44399 }
44400 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44401 {
44402 PyThreadState* __tstate = wxPyBeginAllowThreads();
44403 result = ((wxFilePickerCtrl const *)arg1)->GetPath();
44404 wxPyEndAllowThreads(__tstate);
44405 if (PyErr_Occurred()) SWIG_fail;
44406 }
44407 {
44408 #if wxUSE_UNICODE
44409 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44410 #else
44411 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44412 #endif
44413 }
44414 return resultobj;
44415 fail:
44416 return NULL;
44417 }
44418
44419
44420 SWIGINTERN PyObject *_wrap_FilePickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44421 PyObject *resultobj = 0;
44422 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44423 wxString *arg2 = 0 ;
44424 void *argp1 = 0 ;
44425 int res1 = 0 ;
44426 bool temp2 = false ;
44427 PyObject * obj0 = 0 ;
44428 PyObject * obj1 = 0 ;
44429 char * kwnames[] = {
44430 (char *) "self",(char *) "str", NULL
44431 };
44432
44433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44435 if (!SWIG_IsOK(res1)) {
44436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
44437 }
44438 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44439 {
44440 arg2 = wxString_in_helper(obj1);
44441 if (arg2 == NULL) SWIG_fail;
44442 temp2 = true;
44443 }
44444 {
44445 PyThreadState* __tstate = wxPyBeginAllowThreads();
44446 (arg1)->SetPath((wxString const &)*arg2);
44447 wxPyEndAllowThreads(__tstate);
44448 if (PyErr_Occurred()) SWIG_fail;
44449 }
44450 resultobj = SWIG_Py_Void();
44451 {
44452 if (temp2)
44453 delete arg2;
44454 }
44455 return resultobj;
44456 fail:
44457 {
44458 if (temp2)
44459 delete arg2;
44460 }
44461 return NULL;
44462 }
44463
44464
44465 SWIGINTERN PyObject *_wrap_FilePickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44466 PyObject *resultobj = 0;
44467 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44468 wxString *arg2 = 0 ;
44469 bool result;
44470 void *argp1 = 0 ;
44471 int res1 = 0 ;
44472 bool temp2 = false ;
44473 PyObject * obj0 = 0 ;
44474 PyObject * obj1 = 0 ;
44475 char * kwnames[] = {
44476 (char *) "self",(char *) "path", NULL
44477 };
44478
44479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
44480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44481 if (!SWIG_IsOK(res1)) {
44482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44483 }
44484 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44485 {
44486 arg2 = wxString_in_helper(obj1);
44487 if (arg2 == NULL) SWIG_fail;
44488 temp2 = true;
44489 }
44490 {
44491 PyThreadState* __tstate = wxPyBeginAllowThreads();
44492 result = (bool)((wxFilePickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
44493 wxPyEndAllowThreads(__tstate);
44494 if (PyErr_Occurred()) SWIG_fail;
44495 }
44496 {
44497 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44498 }
44499 {
44500 if (temp2)
44501 delete arg2;
44502 }
44503 return resultobj;
44504 fail:
44505 {
44506 if (temp2)
44507 delete arg2;
44508 }
44509 return NULL;
44510 }
44511
44512
44513 SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44514 PyObject *resultobj = 0;
44515 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44516 wxString result;
44517 void *argp1 = 0 ;
44518 int res1 = 0 ;
44519 PyObject *swig_obj[1] ;
44520
44521 if (!args) SWIG_fail;
44522 swig_obj[0] = args;
44523 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44524 if (!SWIG_IsOK(res1)) {
44525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44526 }
44527 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44528 {
44529 PyThreadState* __tstate = wxPyBeginAllowThreads();
44530 result = ((wxFilePickerCtrl const *)arg1)->GetTextCtrlValue();
44531 wxPyEndAllowThreads(__tstate);
44532 if (PyErr_Occurred()) SWIG_fail;
44533 }
44534 {
44535 #if wxUSE_UNICODE
44536 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44537 #else
44538 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44539 #endif
44540 }
44541 return resultobj;
44542 fail:
44543 return NULL;
44544 }
44545
44546
44547 SWIGINTERN PyObject *FilePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44548 PyObject *obj;
44549 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44550 SWIG_TypeNewClientData(SWIGTYPE_p_wxFilePickerCtrl, SWIG_NewClientData(obj));
44551 return SWIG_Py_Void();
44552 }
44553
44554 SWIGINTERN PyObject *FilePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44555 return SWIG_Python_InitShadowInstance(args);
44556 }
44557
44558 SWIGINTERN PyObject *_wrap_new_DirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44559 PyObject *resultobj = 0;
44560 wxWindow *arg1 = (wxWindow *) 0 ;
44561 int arg2 = (int) -1 ;
44562 wxString const &arg3_defvalue = wxPyEmptyString ;
44563 wxString *arg3 = (wxString *) &arg3_defvalue ;
44564 wxString const &arg4_defvalue = wxPyDirSelectorPromptStr ;
44565 wxString *arg4 = (wxString *) &arg4_defvalue ;
44566 wxPoint const &arg5_defvalue = wxDefaultPosition ;
44567 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
44568 wxSize const &arg6_defvalue = wxDefaultSize ;
44569 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
44570 long arg7 = (long) wxDIRP_DEFAULT_STYLE ;
44571 wxValidator const &arg8_defvalue = wxDefaultValidator ;
44572 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
44573 wxString const &arg9_defvalue = wxPyDirPickerCtrlNameStr ;
44574 wxString *arg9 = (wxString *) &arg9_defvalue ;
44575 wxDirPickerCtrl *result = 0 ;
44576 void *argp1 = 0 ;
44577 int res1 = 0 ;
44578 int val2 ;
44579 int ecode2 = 0 ;
44580 bool temp3 = false ;
44581 bool temp4 = false ;
44582 wxPoint temp5 ;
44583 wxSize temp6 ;
44584 long val7 ;
44585 int ecode7 = 0 ;
44586 void *argp8 = 0 ;
44587 int res8 = 0 ;
44588 bool temp9 = false ;
44589 PyObject * obj0 = 0 ;
44590 PyObject * obj1 = 0 ;
44591 PyObject * obj2 = 0 ;
44592 PyObject * obj3 = 0 ;
44593 PyObject * obj4 = 0 ;
44594 PyObject * obj5 = 0 ;
44595 PyObject * obj6 = 0 ;
44596 PyObject * obj7 = 0 ;
44597 PyObject * obj8 = 0 ;
44598 char * kwnames[] = {
44599 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44600 };
44601
44602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_DirPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
44603 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
44604 if (!SWIG_IsOK(res1)) {
44605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
44606 }
44607 arg1 = reinterpret_cast< wxWindow * >(argp1);
44608 if (obj1) {
44609 ecode2 = SWIG_AsVal_int(obj1, &val2);
44610 if (!SWIG_IsOK(ecode2)) {
44611 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirPickerCtrl" "', expected argument " "2"" of type '" "int""'");
44612 }
44613 arg2 = static_cast< int >(val2);
44614 }
44615 if (obj2) {
44616 {
44617 arg3 = wxString_in_helper(obj2);
44618 if (arg3 == NULL) SWIG_fail;
44619 temp3 = true;
44620 }
44621 }
44622 if (obj3) {
44623 {
44624 arg4 = wxString_in_helper(obj3);
44625 if (arg4 == NULL) SWIG_fail;
44626 temp4 = true;
44627 }
44628 }
44629 if (obj4) {
44630 {
44631 arg5 = &temp5;
44632 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
44633 }
44634 }
44635 if (obj5) {
44636 {
44637 arg6 = &temp6;
44638 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
44639 }
44640 }
44641 if (obj6) {
44642 ecode7 = SWIG_AsVal_long(obj6, &val7);
44643 if (!SWIG_IsOK(ecode7)) {
44644 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_DirPickerCtrl" "', expected argument " "7"" of type '" "long""'");
44645 }
44646 arg7 = static_cast< long >(val7);
44647 }
44648 if (obj7) {
44649 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
44650 if (!SWIG_IsOK(res8)) {
44651 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
44652 }
44653 if (!argp8) {
44654 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
44655 }
44656 arg8 = reinterpret_cast< wxValidator * >(argp8);
44657 }
44658 if (obj8) {
44659 {
44660 arg9 = wxString_in_helper(obj8);
44661 if (arg9 == NULL) SWIG_fail;
44662 temp9 = true;
44663 }
44664 }
44665 {
44666 if (!wxPyCheckForApp()) SWIG_fail;
44667 PyThreadState* __tstate = wxPyBeginAllowThreads();
44668 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);
44669 wxPyEndAllowThreads(__tstate);
44670 if (PyErr_Occurred()) SWIG_fail;
44671 }
44672 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_NEW | 0 );
44673 {
44674 if (temp3)
44675 delete arg3;
44676 }
44677 {
44678 if (temp4)
44679 delete arg4;
44680 }
44681 {
44682 if (temp9)
44683 delete arg9;
44684 }
44685 return resultobj;
44686 fail:
44687 {
44688 if (temp3)
44689 delete arg3;
44690 }
44691 {
44692 if (temp4)
44693 delete arg4;
44694 }
44695 {
44696 if (temp9)
44697 delete arg9;
44698 }
44699 return NULL;
44700 }
44701
44702
44703 SWIGINTERN PyObject *_wrap_new_PreDirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44704 PyObject *resultobj = 0;
44705 wxDirPickerCtrl *result = 0 ;
44706
44707 if (!SWIG_Python_UnpackTuple(args,"new_PreDirPickerCtrl",0,0,0)) SWIG_fail;
44708 {
44709 if (!wxPyCheckForApp()) SWIG_fail;
44710 PyThreadState* __tstate = wxPyBeginAllowThreads();
44711 result = (wxDirPickerCtrl *)new wxDirPickerCtrl();
44712 wxPyEndAllowThreads(__tstate);
44713 if (PyErr_Occurred()) SWIG_fail;
44714 }
44715 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_OWN | 0 );
44716 return resultobj;
44717 fail:
44718 return NULL;
44719 }
44720
44721
44722 SWIGINTERN PyObject *_wrap_DirPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44723 PyObject *resultobj = 0;
44724 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44725 wxWindow *arg2 = (wxWindow *) 0 ;
44726 int arg3 = (int) -1 ;
44727 wxString const &arg4_defvalue = wxPyEmptyString ;
44728 wxString *arg4 = (wxString *) &arg4_defvalue ;
44729 wxString const &arg5_defvalue = wxPyDirSelectorPromptStr ;
44730 wxString *arg5 = (wxString *) &arg5_defvalue ;
44731 wxPoint const &arg6_defvalue = wxDefaultPosition ;
44732 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
44733 wxSize const &arg7_defvalue = wxDefaultSize ;
44734 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
44735 long arg8 = (long) wxDIRP_DEFAULT_STYLE ;
44736 wxValidator const &arg9_defvalue = wxDefaultValidator ;
44737 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
44738 wxString const &arg10_defvalue = wxPyDirPickerCtrlNameStr ;
44739 wxString *arg10 = (wxString *) &arg10_defvalue ;
44740 bool result;
44741 void *argp1 = 0 ;
44742 int res1 = 0 ;
44743 void *argp2 = 0 ;
44744 int res2 = 0 ;
44745 int val3 ;
44746 int ecode3 = 0 ;
44747 bool temp4 = false ;
44748 bool temp5 = false ;
44749 wxPoint temp6 ;
44750 wxSize temp7 ;
44751 long val8 ;
44752 int ecode8 = 0 ;
44753 void *argp9 = 0 ;
44754 int res9 = 0 ;
44755 bool temp10 = false ;
44756 PyObject * obj0 = 0 ;
44757 PyObject * obj1 = 0 ;
44758 PyObject * obj2 = 0 ;
44759 PyObject * obj3 = 0 ;
44760 PyObject * obj4 = 0 ;
44761 PyObject * obj5 = 0 ;
44762 PyObject * obj6 = 0 ;
44763 PyObject * obj7 = 0 ;
44764 PyObject * obj8 = 0 ;
44765 PyObject * obj9 = 0 ;
44766 char * kwnames[] = {
44767 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44768 };
44769
44770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:DirPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
44771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44772 if (!SWIG_IsOK(res1)) {
44773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_Create" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44774 }
44775 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44776 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44777 if (!SWIG_IsOK(res2)) {
44778 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44779 }
44780 arg2 = reinterpret_cast< wxWindow * >(argp2);
44781 if (obj2) {
44782 ecode3 = SWIG_AsVal_int(obj2, &val3);
44783 if (!SWIG_IsOK(ecode3)) {
44784 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44785 }
44786 arg3 = static_cast< int >(val3);
44787 }
44788 if (obj3) {
44789 {
44790 arg4 = wxString_in_helper(obj3);
44791 if (arg4 == NULL) SWIG_fail;
44792 temp4 = true;
44793 }
44794 }
44795 if (obj4) {
44796 {
44797 arg5 = wxString_in_helper(obj4);
44798 if (arg5 == NULL) SWIG_fail;
44799 temp5 = true;
44800 }
44801 }
44802 if (obj5) {
44803 {
44804 arg6 = &temp6;
44805 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
44806 }
44807 }
44808 if (obj6) {
44809 {
44810 arg7 = &temp7;
44811 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
44812 }
44813 }
44814 if (obj7) {
44815 ecode8 = SWIG_AsVal_long(obj7, &val8);
44816 if (!SWIG_IsOK(ecode8)) {
44817 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DirPickerCtrl_Create" "', expected argument " "8"" of type '" "long""'");
44818 }
44819 arg8 = static_cast< long >(val8);
44820 }
44821 if (obj8) {
44822 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
44823 if (!SWIG_IsOK(res9)) {
44824 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44825 }
44826 if (!argp9) {
44827 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44828 }
44829 arg9 = reinterpret_cast< wxValidator * >(argp9);
44830 }
44831 if (obj9) {
44832 {
44833 arg10 = wxString_in_helper(obj9);
44834 if (arg10 == NULL) SWIG_fail;
44835 temp10 = true;
44836 }
44837 }
44838 {
44839 PyThreadState* __tstate = wxPyBeginAllowThreads();
44840 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);
44841 wxPyEndAllowThreads(__tstate);
44842 if (PyErr_Occurred()) SWIG_fail;
44843 }
44844 {
44845 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44846 }
44847 {
44848 if (temp4)
44849 delete arg4;
44850 }
44851 {
44852 if (temp5)
44853 delete arg5;
44854 }
44855 {
44856 if (temp10)
44857 delete arg10;
44858 }
44859 return resultobj;
44860 fail:
44861 {
44862 if (temp4)
44863 delete arg4;
44864 }
44865 {
44866 if (temp5)
44867 delete arg5;
44868 }
44869 {
44870 if (temp10)
44871 delete arg10;
44872 }
44873 return NULL;
44874 }
44875
44876
44877 SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44878 PyObject *resultobj = 0;
44879 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44880 wxString result;
44881 void *argp1 = 0 ;
44882 int res1 = 0 ;
44883 PyObject *swig_obj[1] ;
44884
44885 if (!args) SWIG_fail;
44886 swig_obj[0] = args;
44887 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44888 if (!SWIG_IsOK(res1)) {
44889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44890 }
44891 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44892 {
44893 PyThreadState* __tstate = wxPyBeginAllowThreads();
44894 result = ((wxDirPickerCtrl const *)arg1)->GetPath();
44895 wxPyEndAllowThreads(__tstate);
44896 if (PyErr_Occurred()) SWIG_fail;
44897 }
44898 {
44899 #if wxUSE_UNICODE
44900 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44901 #else
44902 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44903 #endif
44904 }
44905 return resultobj;
44906 fail:
44907 return NULL;
44908 }
44909
44910
44911 SWIGINTERN PyObject *_wrap_DirPickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44912 PyObject *resultobj = 0;
44913 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44914 wxString *arg2 = 0 ;
44915 void *argp1 = 0 ;
44916 int res1 = 0 ;
44917 bool temp2 = false ;
44918 PyObject * obj0 = 0 ;
44919 PyObject * obj1 = 0 ;
44920 char * kwnames[] = {
44921 (char *) "self",(char *) "str", NULL
44922 };
44923
44924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44925 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44926 if (!SWIG_IsOK(res1)) {
44927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44928 }
44929 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44930 {
44931 arg2 = wxString_in_helper(obj1);
44932 if (arg2 == NULL) SWIG_fail;
44933 temp2 = true;
44934 }
44935 {
44936 PyThreadState* __tstate = wxPyBeginAllowThreads();
44937 (arg1)->SetPath((wxString const &)*arg2);
44938 wxPyEndAllowThreads(__tstate);
44939 if (PyErr_Occurred()) SWIG_fail;
44940 }
44941 resultobj = SWIG_Py_Void();
44942 {
44943 if (temp2)
44944 delete arg2;
44945 }
44946 return resultobj;
44947 fail:
44948 {
44949 if (temp2)
44950 delete arg2;
44951 }
44952 return NULL;
44953 }
44954
44955
44956 SWIGINTERN PyObject *_wrap_DirPickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44957 PyObject *resultobj = 0;
44958 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44959 wxString *arg2 = 0 ;
44960 bool result;
44961 void *argp1 = 0 ;
44962 int res1 = 0 ;
44963 bool temp2 = false ;
44964 PyObject * obj0 = 0 ;
44965 PyObject * obj1 = 0 ;
44966 char * kwnames[] = {
44967 (char *) "self",(char *) "path", NULL
44968 };
44969
44970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
44971 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44972 if (!SWIG_IsOK(res1)) {
44973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44974 }
44975 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44976 {
44977 arg2 = wxString_in_helper(obj1);
44978 if (arg2 == NULL) SWIG_fail;
44979 temp2 = true;
44980 }
44981 {
44982 PyThreadState* __tstate = wxPyBeginAllowThreads();
44983 result = (bool)((wxDirPickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
44984 wxPyEndAllowThreads(__tstate);
44985 if (PyErr_Occurred()) SWIG_fail;
44986 }
44987 {
44988 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44989 }
44990 {
44991 if (temp2)
44992 delete arg2;
44993 }
44994 return resultobj;
44995 fail:
44996 {
44997 if (temp2)
44998 delete arg2;
44999 }
45000 return NULL;
45001 }
45002
45003
45004 SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45005 PyObject *resultobj = 0;
45006 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
45007 wxString result;
45008 void *argp1 = 0 ;
45009 int res1 = 0 ;
45010 PyObject *swig_obj[1] ;
45011
45012 if (!args) SWIG_fail;
45013 swig_obj[0] = args;
45014 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
45015 if (!SWIG_IsOK(res1)) {
45016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
45017 }
45018 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
45019 {
45020 PyThreadState* __tstate = wxPyBeginAllowThreads();
45021 result = ((wxDirPickerCtrl const *)arg1)->GetTextCtrlValue();
45022 wxPyEndAllowThreads(__tstate);
45023 if (PyErr_Occurred()) SWIG_fail;
45024 }
45025 {
45026 #if wxUSE_UNICODE
45027 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
45028 #else
45029 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
45030 #endif
45031 }
45032 return resultobj;
45033 fail:
45034 return NULL;
45035 }
45036
45037
45038 SWIGINTERN PyObject *DirPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45039 PyObject *obj;
45040 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45041 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirPickerCtrl, SWIG_NewClientData(obj));
45042 return SWIG_Py_Void();
45043 }
45044
45045 SWIGINTERN PyObject *DirPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45046 return SWIG_Python_InitShadowInstance(args);
45047 }
45048
45049 SWIGINTERN PyObject *_wrap_new_FileDirPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45050 PyObject *resultobj = 0;
45051 wxEventType arg1 ;
45052 wxObject *arg2 = (wxObject *) 0 ;
45053 int arg3 ;
45054 wxString *arg4 = 0 ;
45055 wxFileDirPickerEvent *result = 0 ;
45056 int val1 ;
45057 int ecode1 = 0 ;
45058 void *argp2 = 0 ;
45059 int res2 = 0 ;
45060 int val3 ;
45061 int ecode3 = 0 ;
45062 bool temp4 = false ;
45063 PyObject * obj0 = 0 ;
45064 PyObject * obj1 = 0 ;
45065 PyObject * obj2 = 0 ;
45066 PyObject * obj3 = 0 ;
45067 char * kwnames[] = {
45068 (char *) "type",(char *) "generator",(char *) "id",(char *) "path", NULL
45069 };
45070
45071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileDirPickerEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
45072 ecode1 = SWIG_AsVal_int(obj0, &val1);
45073 if (!SWIG_IsOK(ecode1)) {
45074 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FileDirPickerEvent" "', expected argument " "1"" of type '" "wxEventType""'");
45075 }
45076 arg1 = static_cast< wxEventType >(val1);
45077 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxObject, 0 | 0 );
45078 if (!SWIG_IsOK(res2)) {
45079 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FileDirPickerEvent" "', expected argument " "2"" of type '" "wxObject *""'");
45080 }
45081 arg2 = reinterpret_cast< wxObject * >(argp2);
45082 ecode3 = SWIG_AsVal_int(obj2, &val3);
45083 if (!SWIG_IsOK(ecode3)) {
45084 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FileDirPickerEvent" "', expected argument " "3"" of type '" "int""'");
45085 }
45086 arg3 = static_cast< int >(val3);
45087 {
45088 arg4 = wxString_in_helper(obj3);
45089 if (arg4 == NULL) SWIG_fail;
45090 temp4 = true;
45091 }
45092 {
45093 PyThreadState* __tstate = wxPyBeginAllowThreads();
45094 result = (wxFileDirPickerEvent *)new wxFileDirPickerEvent(arg1,arg2,arg3,(wxString const &)*arg4);
45095 wxPyEndAllowThreads(__tstate);
45096 if (PyErr_Occurred()) SWIG_fail;
45097 }
45098 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileDirPickerEvent, SWIG_POINTER_NEW | 0 );
45099 {
45100 if (temp4)
45101 delete arg4;
45102 }
45103 return resultobj;
45104 fail:
45105 {
45106 if (temp4)
45107 delete arg4;
45108 }
45109 return NULL;
45110 }
45111
45112
45113 SWIGINTERN PyObject *_wrap_FileDirPickerEvent_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45114 PyObject *resultobj = 0;
45115 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
45116 wxString result;
45117 void *argp1 = 0 ;
45118 int res1 = 0 ;
45119 PyObject *swig_obj[1] ;
45120
45121 if (!args) SWIG_fail;
45122 swig_obj[0] = args;
45123 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
45124 if (!SWIG_IsOK(res1)) {
45125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_GetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent const *""'");
45126 }
45127 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
45128 {
45129 PyThreadState* __tstate = wxPyBeginAllowThreads();
45130 result = ((wxFileDirPickerEvent const *)arg1)->GetPath();
45131 wxPyEndAllowThreads(__tstate);
45132 if (PyErr_Occurred()) SWIG_fail;
45133 }
45134 {
45135 #if wxUSE_UNICODE
45136 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
45137 #else
45138 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
45139 #endif
45140 }
45141 return resultobj;
45142 fail:
45143 return NULL;
45144 }
45145
45146
45147 SWIGINTERN PyObject *_wrap_FileDirPickerEvent_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45148 PyObject *resultobj = 0;
45149 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
45150 wxString *arg2 = 0 ;
45151 void *argp1 = 0 ;
45152 int res1 = 0 ;
45153 bool temp2 = false ;
45154 PyObject * obj0 = 0 ;
45155 PyObject * obj1 = 0 ;
45156 char * kwnames[] = {
45157 (char *) "self",(char *) "p", NULL
45158 };
45159
45160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDirPickerEvent_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
45161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
45162 if (!SWIG_IsOK(res1)) {
45163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_SetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent *""'");
45164 }
45165 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
45166 {
45167 arg2 = wxString_in_helper(obj1);
45168 if (arg2 == NULL) SWIG_fail;
45169 temp2 = true;
45170 }
45171 {
45172 PyThreadState* __tstate = wxPyBeginAllowThreads();
45173 (arg1)->SetPath((wxString const &)*arg2);
45174 wxPyEndAllowThreads(__tstate);
45175 if (PyErr_Occurred()) SWIG_fail;
45176 }
45177 resultobj = SWIG_Py_Void();
45178 {
45179 if (temp2)
45180 delete arg2;
45181 }
45182 return resultobj;
45183 fail:
45184 {
45185 if (temp2)
45186 delete arg2;
45187 }
45188 return NULL;
45189 }
45190
45191
45192 SWIGINTERN PyObject *FileDirPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45193 PyObject *obj;
45194 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45195 SWIG_TypeNewClientData(SWIGTYPE_p_wxFileDirPickerEvent, SWIG_NewClientData(obj));
45196 return SWIG_Py_Void();
45197 }
45198
45199 SWIGINTERN PyObject *FileDirPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45200 return SWIG_Python_InitShadowInstance(args);
45201 }
45202
45203 SWIGINTERN int FontPickerCtrlNameStr_set(PyObject *) {
45204 SWIG_Error(SWIG_AttributeError,"Variable FontPickerCtrlNameStr is read-only.");
45205 return 1;
45206 }
45207
45208
45209 SWIGINTERN PyObject *FontPickerCtrlNameStr_get(void) {
45210 PyObject *pyobj = 0;
45211
45212 {
45213 #if wxUSE_UNICODE
45214 pyobj = PyUnicode_FromWideChar((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
45215 #else
45216 pyobj = PyString_FromStringAndSize((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
45217 #endif
45218 }
45219 return pyobj;
45220 }
45221
45222
45223 SWIGINTERN PyObject *_wrap_new_FontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45224 PyObject *resultobj = 0;
45225 wxWindow *arg1 = (wxWindow *) 0 ;
45226 int arg2 = (int) -1 ;
45227 wxFont const &arg3_defvalue = wxNullFont ;
45228 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
45229 wxPoint const &arg4_defvalue = wxDefaultPosition ;
45230 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
45231 wxSize const &arg5_defvalue = wxDefaultSize ;
45232 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
45233 long arg6 = (long) wxFNTP_DEFAULT_STYLE ;
45234 wxValidator const &arg7_defvalue = wxDefaultValidator ;
45235 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
45236 wxString const &arg8_defvalue = wxPyFontPickerCtrlNameStr ;
45237 wxString *arg8 = (wxString *) &arg8_defvalue ;
45238 wxFontPickerCtrl *result = 0 ;
45239 void *argp1 = 0 ;
45240 int res1 = 0 ;
45241 int val2 ;
45242 int ecode2 = 0 ;
45243 void *argp3 = 0 ;
45244 int res3 = 0 ;
45245 wxPoint temp4 ;
45246 wxSize temp5 ;
45247 long val6 ;
45248 int ecode6 = 0 ;
45249 void *argp7 = 0 ;
45250 int res7 = 0 ;
45251 bool temp8 = false ;
45252 PyObject * obj0 = 0 ;
45253 PyObject * obj1 = 0 ;
45254 PyObject * obj2 = 0 ;
45255 PyObject * obj3 = 0 ;
45256 PyObject * obj4 = 0 ;
45257 PyObject * obj5 = 0 ;
45258 PyObject * obj6 = 0 ;
45259 PyObject * obj7 = 0 ;
45260 char * kwnames[] = {
45261 (char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
45262 };
45263
45264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_FontPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
45265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
45266 if (!SWIG_IsOK(res1)) {
45267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
45268 }
45269 arg1 = reinterpret_cast< wxWindow * >(argp1);
45270 if (obj1) {
45271 ecode2 = SWIG_AsVal_int(obj1, &val2);
45272 if (!SWIG_IsOK(ecode2)) {
45273 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerCtrl" "', expected argument " "2"" of type '" "int""'");
45274 }
45275 arg2 = static_cast< int >(val2);
45276 }
45277 if (obj2) {
45278 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
45279 if (!SWIG_IsOK(res3)) {
45280 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
45281 }
45282 if (!argp3) {
45283 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
45284 }
45285 arg3 = reinterpret_cast< wxFont * >(argp3);
45286 }
45287 if (obj3) {
45288 {
45289 arg4 = &temp4;
45290 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
45291 }
45292 }
45293 if (obj4) {
45294 {
45295 arg5 = &temp5;
45296 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
45297 }
45298 }
45299 if (obj5) {
45300 ecode6 = SWIG_AsVal_long(obj5, &val6);
45301 if (!SWIG_IsOK(ecode6)) {
45302 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FontPickerCtrl" "', expected argument " "6"" of type '" "long""'");
45303 }
45304 arg6 = static_cast< long >(val6);
45305 }
45306 if (obj6) {
45307 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
45308 if (!SWIG_IsOK(res7)) {
45309 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
45310 }
45311 if (!argp7) {
45312 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
45313 }
45314 arg7 = reinterpret_cast< wxValidator * >(argp7);
45315 }
45316 if (obj7) {
45317 {
45318 arg8 = wxString_in_helper(obj7);
45319 if (arg8 == NULL) SWIG_fail;
45320 temp8 = true;
45321 }
45322 }
45323 {
45324 if (!wxPyCheckForApp()) SWIG_fail;
45325 PyThreadState* __tstate = wxPyBeginAllowThreads();
45326 result = (wxFontPickerCtrl *)new wxFontPickerCtrl(arg1,arg2,(wxFont const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
45327 wxPyEndAllowThreads(__tstate);
45328 if (PyErr_Occurred()) SWIG_fail;
45329 }
45330 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_NEW | 0 );
45331 {
45332 if (temp8)
45333 delete arg8;
45334 }
45335 return resultobj;
45336 fail:
45337 {
45338 if (temp8)
45339 delete arg8;
45340 }
45341 return NULL;
45342 }
45343
45344
45345 SWIGINTERN PyObject *_wrap_new_PreFontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45346 PyObject *resultobj = 0;
45347 wxFontPickerCtrl *result = 0 ;
45348
45349 if (!SWIG_Python_UnpackTuple(args,"new_PreFontPickerCtrl",0,0,0)) SWIG_fail;
45350 {
45351 if (!wxPyCheckForApp()) SWIG_fail;
45352 PyThreadState* __tstate = wxPyBeginAllowThreads();
45353 result = (wxFontPickerCtrl *)new wxFontPickerCtrl();
45354 wxPyEndAllowThreads(__tstate);
45355 if (PyErr_Occurred()) SWIG_fail;
45356 }
45357 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_OWN | 0 );
45358 return resultobj;
45359 fail:
45360 return NULL;
45361 }
45362
45363
45364 SWIGINTERN PyObject *_wrap_FontPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45365 PyObject *resultobj = 0;
45366 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45367 wxWindow *arg2 = (wxWindow *) 0 ;
45368 int arg3 = (int) -1 ;
45369 wxFont const &arg4_defvalue = wxNullFont ;
45370 wxFont *arg4 = (wxFont *) &arg4_defvalue ;
45371 wxPoint const &arg5_defvalue = wxDefaultPosition ;
45372 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
45373 wxSize const &arg6_defvalue = wxDefaultSize ;
45374 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
45375 long arg7 = (long) wxFNTP_DEFAULT_STYLE ;
45376 wxValidator const &arg8_defvalue = wxDefaultValidator ;
45377 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
45378 wxString const &arg9_defvalue = wxPyFontPickerCtrlNameStr ;
45379 wxString *arg9 = (wxString *) &arg9_defvalue ;
45380 bool result;
45381 void *argp1 = 0 ;
45382 int res1 = 0 ;
45383 void *argp2 = 0 ;
45384 int res2 = 0 ;
45385 int val3 ;
45386 int ecode3 = 0 ;
45387 void *argp4 = 0 ;
45388 int res4 = 0 ;
45389 wxPoint temp5 ;
45390 wxSize temp6 ;
45391 long val7 ;
45392 int ecode7 = 0 ;
45393 void *argp8 = 0 ;
45394 int res8 = 0 ;
45395 bool temp9 = false ;
45396 PyObject * obj0 = 0 ;
45397 PyObject * obj1 = 0 ;
45398 PyObject * obj2 = 0 ;
45399 PyObject * obj3 = 0 ;
45400 PyObject * obj4 = 0 ;
45401 PyObject * obj5 = 0 ;
45402 PyObject * obj6 = 0 ;
45403 PyObject * obj7 = 0 ;
45404 PyObject * obj8 = 0 ;
45405 char * kwnames[] = {
45406 (char *) "self",(char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
45407 };
45408
45409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:FontPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
45410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45411 if (!SWIG_IsOK(res1)) {
45412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_Create" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45413 }
45414 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45415 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
45416 if (!SWIG_IsOK(res2)) {
45417 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
45418 }
45419 arg2 = reinterpret_cast< wxWindow * >(argp2);
45420 if (obj2) {
45421 ecode3 = SWIG_AsVal_int(obj2, &val3);
45422 if (!SWIG_IsOK(ecode3)) {
45423 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
45424 }
45425 arg3 = static_cast< int >(val3);
45426 }
45427 if (obj3) {
45428 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxFont, 0 | 0);
45429 if (!SWIG_IsOK(res4)) {
45430 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
45431 }
45432 if (!argp4) {
45433 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
45434 }
45435 arg4 = reinterpret_cast< wxFont * >(argp4);
45436 }
45437 if (obj4) {
45438 {
45439 arg5 = &temp5;
45440 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
45441 }
45442 }
45443 if (obj5) {
45444 {
45445 arg6 = &temp6;
45446 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
45447 }
45448 }
45449 if (obj6) {
45450 ecode7 = SWIG_AsVal_long(obj6, &val7);
45451 if (!SWIG_IsOK(ecode7)) {
45452 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "FontPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
45453 }
45454 arg7 = static_cast< long >(val7);
45455 }
45456 if (obj7) {
45457 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
45458 if (!SWIG_IsOK(res8)) {
45459 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45460 }
45461 if (!argp8) {
45462 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45463 }
45464 arg8 = reinterpret_cast< wxValidator * >(argp8);
45465 }
45466 if (obj8) {
45467 {
45468 arg9 = wxString_in_helper(obj8);
45469 if (arg9 == NULL) SWIG_fail;
45470 temp9 = true;
45471 }
45472 }
45473 {
45474 PyThreadState* __tstate = wxPyBeginAllowThreads();
45475 result = (bool)(arg1)->Create(arg2,arg3,(wxFont const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
45476 wxPyEndAllowThreads(__tstate);
45477 if (PyErr_Occurred()) SWIG_fail;
45478 }
45479 {
45480 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45481 }
45482 {
45483 if (temp9)
45484 delete arg9;
45485 }
45486 return resultobj;
45487 fail:
45488 {
45489 if (temp9)
45490 delete arg9;
45491 }
45492 return NULL;
45493 }
45494
45495
45496 SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45497 PyObject *resultobj = 0;
45498 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45499 wxFont result;
45500 void *argp1 = 0 ;
45501 int res1 = 0 ;
45502 PyObject *swig_obj[1] ;
45503
45504 if (!args) SWIG_fail;
45505 swig_obj[0] = args;
45506 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45507 if (!SWIG_IsOK(res1)) {
45508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
45509 }
45510 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45511 {
45512 PyThreadState* __tstate = wxPyBeginAllowThreads();
45513 result = ((wxFontPickerCtrl const *)arg1)->GetSelectedFont();
45514 wxPyEndAllowThreads(__tstate);
45515 if (PyErr_Occurred()) SWIG_fail;
45516 }
45517 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
45518 return resultobj;
45519 fail:
45520 return NULL;
45521 }
45522
45523
45524 SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45525 PyObject *resultobj = 0;
45526 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45527 wxFont *arg2 = 0 ;
45528 void *argp1 = 0 ;
45529 int res1 = 0 ;
45530 void *argp2 = 0 ;
45531 int res2 = 0 ;
45532 PyObject * obj0 = 0 ;
45533 PyObject * obj1 = 0 ;
45534 char * kwnames[] = {
45535 (char *) "self",(char *) "f", NULL
45536 };
45537
45538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetSelectedFont",kwnames,&obj0,&obj1)) SWIG_fail;
45539 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45540 if (!SWIG_IsOK(res1)) {
45541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45542 }
45543 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45544 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
45545 if (!SWIG_IsOK(res2)) {
45546 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45547 }
45548 if (!argp2) {
45549 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45550 }
45551 arg2 = reinterpret_cast< wxFont * >(argp2);
45552 {
45553 PyThreadState* __tstate = wxPyBeginAllowThreads();
45554 (arg1)->SetSelectedFont((wxFont const &)*arg2);
45555 wxPyEndAllowThreads(__tstate);
45556 if (PyErr_Occurred()) SWIG_fail;
45557 }
45558 resultobj = SWIG_Py_Void();
45559 return resultobj;
45560 fail:
45561 return NULL;
45562 }
45563
45564
45565 SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45566 PyObject *resultobj = 0;
45567 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45568 unsigned int arg2 ;
45569 void *argp1 = 0 ;
45570 int res1 = 0 ;
45571 unsigned int val2 ;
45572 int ecode2 = 0 ;
45573 PyObject * obj0 = 0 ;
45574 PyObject * obj1 = 0 ;
45575 char * kwnames[] = {
45576 (char *) "self",(char *) "max", NULL
45577 };
45578
45579 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetMaxPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
45580 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45581 if (!SWIG_IsOK(res1)) {
45582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45583 }
45584 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45585 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
45586 if (!SWIG_IsOK(ecode2)) {
45587 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "2"" of type '" "unsigned int""'");
45588 }
45589 arg2 = static_cast< unsigned int >(val2);
45590 {
45591 PyThreadState* __tstate = wxPyBeginAllowThreads();
45592 (arg1)->SetMaxPointSize(arg2);
45593 wxPyEndAllowThreads(__tstate);
45594 if (PyErr_Occurred()) SWIG_fail;
45595 }
45596 resultobj = SWIG_Py_Void();
45597 return resultobj;
45598 fail:
45599 return NULL;
45600 }
45601
45602
45603 SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45604 PyObject *resultobj = 0;
45605 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45606 unsigned int result;
45607 void *argp1 = 0 ;
45608 int res1 = 0 ;
45609 PyObject *swig_obj[1] ;
45610
45611 if (!args) SWIG_fail;
45612 swig_obj[0] = args;
45613 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45614 if (!SWIG_IsOK(res1)) {
45615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
45616 }
45617 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45618 {
45619 PyThreadState* __tstate = wxPyBeginAllowThreads();
45620 result = (unsigned int)((wxFontPickerCtrl const *)arg1)->GetMaxPointSize();
45621 wxPyEndAllowThreads(__tstate);
45622 if (PyErr_Occurred()) SWIG_fail;
45623 }
45624 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
45625 return resultobj;
45626 fail:
45627 return NULL;
45628 }
45629
45630
45631 SWIGINTERN PyObject *FontPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45632 PyObject *obj;
45633 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45634 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerCtrl, SWIG_NewClientData(obj));
45635 return SWIG_Py_Void();
45636 }
45637
45638 SWIGINTERN PyObject *FontPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45639 return SWIG_Python_InitShadowInstance(args);
45640 }
45641
45642 SWIGINTERN PyObject *_wrap_new_FontPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45643 PyObject *resultobj = 0;
45644 wxObject *arg1 = (wxObject *) 0 ;
45645 int arg2 ;
45646 wxFont *arg3 = 0 ;
45647 wxFontPickerEvent *result = 0 ;
45648 void *argp1 = 0 ;
45649 int res1 = 0 ;
45650 int val2 ;
45651 int ecode2 = 0 ;
45652 void *argp3 = 0 ;
45653 int res3 = 0 ;
45654 PyObject * obj0 = 0 ;
45655 PyObject * obj1 = 0 ;
45656 PyObject * obj2 = 0 ;
45657 char * kwnames[] = {
45658 (char *) "generator",(char *) "id",(char *) "f", NULL
45659 };
45660
45661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_FontPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
45662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
45663 if (!SWIG_IsOK(res1)) {
45664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
45665 }
45666 arg1 = reinterpret_cast< wxObject * >(argp1);
45667 ecode2 = SWIG_AsVal_int(obj1, &val2);
45668 if (!SWIG_IsOK(ecode2)) {
45669 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerEvent" "', expected argument " "2"" of type '" "int""'");
45670 }
45671 arg2 = static_cast< int >(val2);
45672 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
45673 if (!SWIG_IsOK(res3)) {
45674 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45675 }
45676 if (!argp3) {
45677 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45678 }
45679 arg3 = reinterpret_cast< wxFont * >(argp3);
45680 {
45681 PyThreadState* __tstate = wxPyBeginAllowThreads();
45682 result = (wxFontPickerEvent *)new wxFontPickerEvent(arg1,arg2,(wxFont const &)*arg3);
45683 wxPyEndAllowThreads(__tstate);
45684 if (PyErr_Occurred()) SWIG_fail;
45685 }
45686 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerEvent, SWIG_POINTER_NEW | 0 );
45687 return resultobj;
45688 fail:
45689 return NULL;
45690 }
45691
45692
45693 SWIGINTERN PyObject *_wrap_FontPickerEvent_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45694 PyObject *resultobj = 0;
45695 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45696 wxFont result;
45697 void *argp1 = 0 ;
45698 int res1 = 0 ;
45699 PyObject *swig_obj[1] ;
45700
45701 if (!args) SWIG_fail;
45702 swig_obj[0] = args;
45703 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45704 if (!SWIG_IsOK(res1)) {
45705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_GetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent const *""'");
45706 }
45707 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45708 {
45709 PyThreadState* __tstate = wxPyBeginAllowThreads();
45710 result = ((wxFontPickerEvent const *)arg1)->GetFont();
45711 wxPyEndAllowThreads(__tstate);
45712 if (PyErr_Occurred()) SWIG_fail;
45713 }
45714 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
45715 return resultobj;
45716 fail:
45717 return NULL;
45718 }
45719
45720
45721 SWIGINTERN PyObject *_wrap_FontPickerEvent_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45722 PyObject *resultobj = 0;
45723 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45724 wxFont *arg2 = 0 ;
45725 void *argp1 = 0 ;
45726 int res1 = 0 ;
45727 void *argp2 = 0 ;
45728 int res2 = 0 ;
45729 PyObject * obj0 = 0 ;
45730 PyObject * obj1 = 0 ;
45731 char * kwnames[] = {
45732 (char *) "self",(char *) "c", NULL
45733 };
45734
45735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerEvent_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
45736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45737 if (!SWIG_IsOK(res1)) {
45738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_SetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent *""'");
45739 }
45740 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45741 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
45742 if (!SWIG_IsOK(res2)) {
45743 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45744 }
45745 if (!argp2) {
45746 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45747 }
45748 arg2 = reinterpret_cast< wxFont * >(argp2);
45749 {
45750 PyThreadState* __tstate = wxPyBeginAllowThreads();
45751 (arg1)->SetFont((wxFont const &)*arg2);
45752 wxPyEndAllowThreads(__tstate);
45753 if (PyErr_Occurred()) SWIG_fail;
45754 }
45755 resultobj = SWIG_Py_Void();
45756 return resultobj;
45757 fail:
45758 return NULL;
45759 }
45760
45761
45762 SWIGINTERN PyObject *FontPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45763 PyObject *obj;
45764 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45765 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerEvent, SWIG_NewClientData(obj));
45766 return SWIG_Py_Void();
45767 }
45768
45769 SWIGINTERN PyObject *FontPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45770 return SWIG_Python_InitShadowInstance(args);
45771 }
45772
45773 SWIGINTERN int CollapsiblePaneNameStr_set(PyObject *) {
45774 SWIG_Error(SWIG_AttributeError,"Variable CollapsiblePaneNameStr is read-only.");
45775 return 1;
45776 }
45777
45778
45779 SWIGINTERN PyObject *CollapsiblePaneNameStr_get(void) {
45780 PyObject *pyobj = 0;
45781
45782 {
45783 #if wxUSE_UNICODE
45784 pyobj = PyUnicode_FromWideChar((&wxPyCollapsiblePaneNameStr)->c_str(), (&wxPyCollapsiblePaneNameStr)->Len());
45785 #else
45786 pyobj = PyString_FromStringAndSize((&wxPyCollapsiblePaneNameStr)->c_str(), (&wxPyCollapsiblePaneNameStr)->Len());
45787 #endif
45788 }
45789 return pyobj;
45790 }
45791
45792
45793 SWIGINTERN PyObject *_wrap_new_CollapsiblePane(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45794 PyObject *resultobj = 0;
45795 wxWindow *arg1 = (wxWindow *) 0 ;
45796 int arg2 = (int) -1 ;
45797 wxString const &arg3_defvalue = wxPyEmptyString ;
45798 wxString *arg3 = (wxString *) &arg3_defvalue ;
45799 wxPoint const &arg4_defvalue = wxDefaultPosition ;
45800 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
45801 wxSize const &arg5_defvalue = wxDefaultSize ;
45802 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
45803 long arg6 = (long) wxCP_DEFAULT_STYLE ;
45804 wxValidator const &arg7_defvalue = wxDefaultValidator ;
45805 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
45806 wxString const &arg8_defvalue = wxPyCollapsiblePaneNameStr ;
45807 wxString *arg8 = (wxString *) &arg8_defvalue ;
45808 wxCollapsiblePane *result = 0 ;
45809 void *argp1 = 0 ;
45810 int res1 = 0 ;
45811 int val2 ;
45812 int ecode2 = 0 ;
45813 bool temp3 = false ;
45814 wxPoint temp4 ;
45815 wxSize temp5 ;
45816 long val6 ;
45817 int ecode6 = 0 ;
45818 void *argp7 = 0 ;
45819 int res7 = 0 ;
45820 bool temp8 = false ;
45821 PyObject * obj0 = 0 ;
45822 PyObject * obj1 = 0 ;
45823 PyObject * obj2 = 0 ;
45824 PyObject * obj3 = 0 ;
45825 PyObject * obj4 = 0 ;
45826 PyObject * obj5 = 0 ;
45827 PyObject * obj6 = 0 ;
45828 PyObject * obj7 = 0 ;
45829 char * kwnames[] = {
45830 (char *) "parent",(char *) "winid",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "val",(char *) "name", NULL
45831 };
45832
45833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CollapsiblePane",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
45834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
45835 if (!SWIG_IsOK(res1)) {
45836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CollapsiblePane" "', expected argument " "1"" of type '" "wxWindow *""'");
45837 }
45838 arg1 = reinterpret_cast< wxWindow * >(argp1);
45839 if (obj1) {
45840 ecode2 = SWIG_AsVal_int(obj1, &val2);
45841 if (!SWIG_IsOK(ecode2)) {
45842 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CollapsiblePane" "', expected argument " "2"" of type '" "int""'");
45843 }
45844 arg2 = static_cast< int >(val2);
45845 }
45846 if (obj2) {
45847 {
45848 arg3 = wxString_in_helper(obj2);
45849 if (arg3 == NULL) SWIG_fail;
45850 temp3 = true;
45851 }
45852 }
45853 if (obj3) {
45854 {
45855 arg4 = &temp4;
45856 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
45857 }
45858 }
45859 if (obj4) {
45860 {
45861 arg5 = &temp5;
45862 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
45863 }
45864 }
45865 if (obj5) {
45866 ecode6 = SWIG_AsVal_long(obj5, &val6);
45867 if (!SWIG_IsOK(ecode6)) {
45868 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CollapsiblePane" "', expected argument " "6"" of type '" "long""'");
45869 }
45870 arg6 = static_cast< long >(val6);
45871 }
45872 if (obj6) {
45873 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
45874 if (!SWIG_IsOK(res7)) {
45875 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CollapsiblePane" "', expected argument " "7"" of type '" "wxValidator const &""'");
45876 }
45877 if (!argp7) {
45878 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CollapsiblePane" "', expected argument " "7"" of type '" "wxValidator const &""'");
45879 }
45880 arg7 = reinterpret_cast< wxValidator * >(argp7);
45881 }
45882 if (obj7) {
45883 {
45884 arg8 = wxString_in_helper(obj7);
45885 if (arg8 == NULL) SWIG_fail;
45886 temp8 = true;
45887 }
45888 }
45889 {
45890 if (!wxPyCheckForApp()) SWIG_fail;
45891 PyThreadState* __tstate = wxPyBeginAllowThreads();
45892 result = (wxCollapsiblePane *)new wxCollapsiblePane(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
45893 wxPyEndAllowThreads(__tstate);
45894 if (PyErr_Occurred()) SWIG_fail;
45895 }
45896 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePane, SWIG_POINTER_NEW | 0 );
45897 {
45898 if (temp3)
45899 delete arg3;
45900 }
45901 {
45902 if (temp8)
45903 delete arg8;
45904 }
45905 return resultobj;
45906 fail:
45907 {
45908 if (temp3)
45909 delete arg3;
45910 }
45911 {
45912 if (temp8)
45913 delete arg8;
45914 }
45915 return NULL;
45916 }
45917
45918
45919 SWIGINTERN PyObject *_wrap_new_PreCollapsiblePane(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45920 PyObject *resultobj = 0;
45921 wxCollapsiblePane *result = 0 ;
45922
45923 if (!SWIG_Python_UnpackTuple(args,"new_PreCollapsiblePane",0,0,0)) SWIG_fail;
45924 {
45925 if (!wxPyCheckForApp()) SWIG_fail;
45926 PyThreadState* __tstate = wxPyBeginAllowThreads();
45927 result = (wxCollapsiblePane *)new wxCollapsiblePane();
45928 wxPyEndAllowThreads(__tstate);
45929 if (PyErr_Occurred()) SWIG_fail;
45930 }
45931 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePane, SWIG_POINTER_OWN | 0 );
45932 return resultobj;
45933 fail:
45934 return NULL;
45935 }
45936
45937
45938 SWIGINTERN PyObject *_wrap_CollapsiblePane_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45939 PyObject *resultobj = 0;
45940 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45941 wxWindow *arg2 = (wxWindow *) 0 ;
45942 int arg3 = (int) -1 ;
45943 wxString const &arg4_defvalue = wxPyEmptyString ;
45944 wxString *arg4 = (wxString *) &arg4_defvalue ;
45945 wxPoint const &arg5_defvalue = wxDefaultPosition ;
45946 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
45947 wxSize const &arg6_defvalue = wxDefaultSize ;
45948 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
45949 long arg7 = (long) wxCP_DEFAULT_STYLE ;
45950 wxValidator const &arg8_defvalue = wxDefaultValidator ;
45951 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
45952 wxString const &arg9_defvalue = wxPyCollapsiblePaneNameStr ;
45953 wxString *arg9 = (wxString *) &arg9_defvalue ;
45954 bool result;
45955 void *argp1 = 0 ;
45956 int res1 = 0 ;
45957 void *argp2 = 0 ;
45958 int res2 = 0 ;
45959 int val3 ;
45960 int ecode3 = 0 ;
45961 bool temp4 = false ;
45962 wxPoint temp5 ;
45963 wxSize temp6 ;
45964 long val7 ;
45965 int ecode7 = 0 ;
45966 void *argp8 = 0 ;
45967 int res8 = 0 ;
45968 bool temp9 = false ;
45969 PyObject * obj0 = 0 ;
45970 PyObject * obj1 = 0 ;
45971 PyObject * obj2 = 0 ;
45972 PyObject * obj3 = 0 ;
45973 PyObject * obj4 = 0 ;
45974 PyObject * obj5 = 0 ;
45975 PyObject * obj6 = 0 ;
45976 PyObject * obj7 = 0 ;
45977 PyObject * obj8 = 0 ;
45978 char * kwnames[] = {
45979 (char *) "self",(char *) "parent",(char *) "winid",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "val",(char *) "name", NULL
45980 };
45981
45982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CollapsiblePane_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
45983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45984 if (!SWIG_IsOK(res1)) {
45985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Create" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'");
45986 }
45987 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45988 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
45989 if (!SWIG_IsOK(res2)) {
45990 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CollapsiblePane_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
45991 }
45992 arg2 = reinterpret_cast< wxWindow * >(argp2);
45993 if (obj2) {
45994 ecode3 = SWIG_AsVal_int(obj2, &val3);
45995 if (!SWIG_IsOK(ecode3)) {
45996 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CollapsiblePane_Create" "', expected argument " "3"" of type '" "int""'");
45997 }
45998 arg3 = static_cast< int >(val3);
45999 }
46000 if (obj3) {
46001 {
46002 arg4 = wxString_in_helper(obj3);
46003 if (arg4 == NULL) SWIG_fail;
46004 temp4 = true;
46005 }
46006 }
46007 if (obj4) {
46008 {
46009 arg5 = &temp5;
46010 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
46011 }
46012 }
46013 if (obj5) {
46014 {
46015 arg6 = &temp6;
46016 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
46017 }
46018 }
46019 if (obj6) {
46020 ecode7 = SWIG_AsVal_long(obj6, &val7);
46021 if (!SWIG_IsOK(ecode7)) {
46022 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CollapsiblePane_Create" "', expected argument " "7"" of type '" "long""'");
46023 }
46024 arg7 = static_cast< long >(val7);
46025 }
46026 if (obj7) {
46027 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
46028 if (!SWIG_IsOK(res8)) {
46029 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CollapsiblePane_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
46030 }
46031 if (!argp8) {
46032 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CollapsiblePane_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
46033 }
46034 arg8 = reinterpret_cast< wxValidator * >(argp8);
46035 }
46036 if (obj8) {
46037 {
46038 arg9 = wxString_in_helper(obj8);
46039 if (arg9 == NULL) SWIG_fail;
46040 temp9 = true;
46041 }
46042 }
46043 {
46044 PyThreadState* __tstate = wxPyBeginAllowThreads();
46045 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
46046 wxPyEndAllowThreads(__tstate);
46047 if (PyErr_Occurred()) SWIG_fail;
46048 }
46049 {
46050 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46051 }
46052 {
46053 if (temp4)
46054 delete arg4;
46055 }
46056 {
46057 if (temp9)
46058 delete arg9;
46059 }
46060 return resultobj;
46061 fail:
46062 {
46063 if (temp4)
46064 delete arg4;
46065 }
46066 {
46067 if (temp9)
46068 delete arg9;
46069 }
46070 return NULL;
46071 }
46072
46073
46074 SWIGINTERN PyObject *_wrap_CollapsiblePane_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46075 PyObject *resultobj = 0;
46076 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
46077 bool arg2 = (bool) true ;
46078 void *argp1 = 0 ;
46079 int res1 = 0 ;
46080 bool val2 ;
46081 int ecode2 = 0 ;
46082 PyObject * obj0 = 0 ;
46083 PyObject * obj1 = 0 ;
46084 char * kwnames[] = {
46085 (char *) "self",(char *) "collapse", NULL
46086 };
46087
46088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CollapsiblePane_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
46089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
46090 if (!SWIG_IsOK(res1)) {
46091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Collapse" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'");
46092 }
46093 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
46094 if (obj1) {
46095 ecode2 = SWIG_AsVal_bool(obj1, &val2);
46096 if (!SWIG_IsOK(ecode2)) {
46097 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CollapsiblePane_Collapse" "', expected argument " "2"" of type '" "bool""'");
46098 }
46099 arg2 = static_cast< bool >(val2);
46100 }
46101 {
46102 PyThreadState* __tstate = wxPyBeginAllowThreads();
46103 (arg1)->Collapse(arg2);
46104 wxPyEndAllowThreads(__tstate);
46105 if (PyErr_Occurred()) SWIG_fail;
46106 }
46107 resultobj = SWIG_Py_Void();
46108 return resultobj;
46109 fail:
46110 return NULL;
46111 }
46112
46113
46114 SWIGINTERN PyObject *_wrap_CollapsiblePane_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46115 PyObject *resultobj = 0;
46116 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
46117 void *argp1 = 0 ;
46118 int res1 = 0 ;
46119 PyObject *swig_obj[1] ;
46120
46121 if (!args) SWIG_fail;
46122 swig_obj[0] = args;
46123 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
46124 if (!SWIG_IsOK(res1)) {
46125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Expand" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'");
46126 }
46127 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
46128 {
46129 PyThreadState* __tstate = wxPyBeginAllowThreads();
46130 (arg1)->Expand();
46131 wxPyEndAllowThreads(__tstate);
46132 if (PyErr_Occurred()) SWIG_fail;
46133 }
46134 resultobj = SWIG_Py_Void();
46135 return resultobj;
46136 fail:
46137 return NULL;
46138 }
46139
46140
46141 SWIGINTERN PyObject *_wrap_CollapsiblePane_IsCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46142 PyObject *resultobj = 0;
46143 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
46144 bool result;
46145 void *argp1 = 0 ;
46146 int res1 = 0 ;
46147 PyObject *swig_obj[1] ;
46148
46149 if (!args) SWIG_fail;
46150 swig_obj[0] = args;
46151 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
46152 if (!SWIG_IsOK(res1)) {
46153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_IsCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'");
46154 }
46155 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
46156 {
46157 PyThreadState* __tstate = wxPyBeginAllowThreads();
46158 result = (bool)((wxCollapsiblePane const *)arg1)->IsCollapsed();
46159 wxPyEndAllowThreads(__tstate);
46160 if (PyErr_Occurred()) SWIG_fail;
46161 }
46162 {
46163 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46164 }
46165 return resultobj;
46166 fail:
46167 return NULL;
46168 }
46169
46170
46171 SWIGINTERN PyObject *_wrap_CollapsiblePane_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46172 PyObject *resultobj = 0;
46173 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
46174 bool result;
46175 void *argp1 = 0 ;
46176 int res1 = 0 ;
46177 PyObject *swig_obj[1] ;
46178
46179 if (!args) SWIG_fail;
46180 swig_obj[0] = args;
46181 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
46182 if (!SWIG_IsOK(res1)) {
46183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_IsExpanded" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'");
46184 }
46185 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
46186 {
46187 PyThreadState* __tstate = wxPyBeginAllowThreads();
46188 result = (bool)((wxCollapsiblePane const *)arg1)->IsExpanded();
46189 wxPyEndAllowThreads(__tstate);
46190 if (PyErr_Occurred()) SWIG_fail;
46191 }
46192 {
46193 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46194 }
46195 return resultobj;
46196 fail:
46197 return NULL;
46198 }
46199
46200
46201 SWIGINTERN PyObject *_wrap_CollapsiblePane_GetPane(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46202 PyObject *resultobj = 0;
46203 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
46204 wxWindow *result = 0 ;
46205 void *argp1 = 0 ;
46206 int res1 = 0 ;
46207 PyObject *swig_obj[1] ;
46208
46209 if (!args) SWIG_fail;
46210 swig_obj[0] = args;
46211 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
46212 if (!SWIG_IsOK(res1)) {
46213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_GetPane" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'");
46214 }
46215 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
46216 {
46217 PyThreadState* __tstate = wxPyBeginAllowThreads();
46218 result = (wxWindow *)((wxCollapsiblePane const *)arg1)->GetPane();
46219 wxPyEndAllowThreads(__tstate);
46220 if (PyErr_Occurred()) SWIG_fail;
46221 }
46222 {
46223 resultobj = wxPyMake_wxObject(result, 0);
46224 }
46225 return resultobj;
46226 fail:
46227 return NULL;
46228 }
46229
46230
46231 SWIGINTERN PyObject *CollapsiblePane_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46232 PyObject *obj;
46233 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
46234 SWIG_TypeNewClientData(SWIGTYPE_p_wxCollapsiblePane, SWIG_NewClientData(obj));
46235 return SWIG_Py_Void();
46236 }
46237
46238 SWIGINTERN PyObject *CollapsiblePane_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46239 return SWIG_Python_InitShadowInstance(args);
46240 }
46241
46242 SWIGINTERN PyObject *_wrap_new_CollapsiblePaneEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46243 PyObject *resultobj = 0;
46244 wxObject *arg1 = (wxObject *) 0 ;
46245 int arg2 ;
46246 bool arg3 ;
46247 wxCollapsiblePaneEvent *result = 0 ;
46248 void *argp1 = 0 ;
46249 int res1 = 0 ;
46250 int val2 ;
46251 int ecode2 = 0 ;
46252 bool val3 ;
46253 int ecode3 = 0 ;
46254 PyObject * obj0 = 0 ;
46255 PyObject * obj1 = 0 ;
46256 PyObject * obj2 = 0 ;
46257 char * kwnames[] = {
46258 (char *) "generator",(char *) "id",(char *) "collapsed", NULL
46259 };
46260
46261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_CollapsiblePaneEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
46262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
46263 if (!SWIG_IsOK(res1)) {
46264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "1"" of type '" "wxObject *""'");
46265 }
46266 arg1 = reinterpret_cast< wxObject * >(argp1);
46267 ecode2 = SWIG_AsVal_int(obj1, &val2);
46268 if (!SWIG_IsOK(ecode2)) {
46269 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "2"" of type '" "int""'");
46270 }
46271 arg2 = static_cast< int >(val2);
46272 ecode3 = SWIG_AsVal_bool(obj2, &val3);
46273 if (!SWIG_IsOK(ecode3)) {
46274 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "3"" of type '" "bool""'");
46275 }
46276 arg3 = static_cast< bool >(val3);
46277 {
46278 PyThreadState* __tstate = wxPyBeginAllowThreads();
46279 result = (wxCollapsiblePaneEvent *)new wxCollapsiblePaneEvent(arg1,arg2,arg3);
46280 wxPyEndAllowThreads(__tstate);
46281 if (PyErr_Occurred()) SWIG_fail;
46282 }
46283 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePaneEvent, SWIG_POINTER_NEW | 0 );
46284 return resultobj;
46285 fail:
46286 return NULL;
46287 }
46288
46289
46290 SWIGINTERN PyObject *_wrap_CollapsiblePaneEvent_GetCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46291 PyObject *resultobj = 0;
46292 wxCollapsiblePaneEvent *arg1 = (wxCollapsiblePaneEvent *) 0 ;
46293 bool result;
46294 void *argp1 = 0 ;
46295 int res1 = 0 ;
46296 PyObject *swig_obj[1] ;
46297
46298 if (!args) SWIG_fail;
46299 swig_obj[0] = args;
46300 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePaneEvent, 0 | 0 );
46301 if (!SWIG_IsOK(res1)) {
46302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePaneEvent_GetCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePaneEvent const *""'");
46303 }
46304 arg1 = reinterpret_cast< wxCollapsiblePaneEvent * >(argp1);
46305 {
46306 PyThreadState* __tstate = wxPyBeginAllowThreads();
46307 result = (bool)((wxCollapsiblePaneEvent const *)arg1)->GetCollapsed();
46308 wxPyEndAllowThreads(__tstate);
46309 if (PyErr_Occurred()) SWIG_fail;
46310 }
46311 {
46312 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46313 }
46314 return resultobj;
46315 fail:
46316 return NULL;
46317 }
46318
46319
46320 SWIGINTERN PyObject *_wrap_CollapsiblePaneEvent_SetCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46321 PyObject *resultobj = 0;
46322 wxCollapsiblePaneEvent *arg1 = (wxCollapsiblePaneEvent *) 0 ;
46323 bool arg2 ;
46324 void *argp1 = 0 ;
46325 int res1 = 0 ;
46326 bool val2 ;
46327 int ecode2 = 0 ;
46328 PyObject * obj0 = 0 ;
46329 PyObject * obj1 = 0 ;
46330 char * kwnames[] = {
46331 (char *) "self",(char *) "c", NULL
46332 };
46333
46334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CollapsiblePaneEvent_SetCollapsed",kwnames,&obj0,&obj1)) SWIG_fail;
46335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePaneEvent, 0 | 0 );
46336 if (!SWIG_IsOK(res1)) {
46337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePaneEvent_SetCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePaneEvent *""'");
46338 }
46339 arg1 = reinterpret_cast< wxCollapsiblePaneEvent * >(argp1);
46340 ecode2 = SWIG_AsVal_bool(obj1, &val2);
46341 if (!SWIG_IsOK(ecode2)) {
46342 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CollapsiblePaneEvent_SetCollapsed" "', expected argument " "2"" of type '" "bool""'");
46343 }
46344 arg2 = static_cast< bool >(val2);
46345 {
46346 PyThreadState* __tstate = wxPyBeginAllowThreads();
46347 (arg1)->SetCollapsed(arg2);
46348 wxPyEndAllowThreads(__tstate);
46349 if (PyErr_Occurred()) SWIG_fail;
46350 }
46351 resultobj = SWIG_Py_Void();
46352 return resultobj;
46353 fail:
46354 return NULL;
46355 }
46356
46357
46358 SWIGINTERN PyObject *CollapsiblePaneEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46359 PyObject *obj;
46360 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
46361 SWIG_TypeNewClientData(SWIGTYPE_p_wxCollapsiblePaneEvent, SWIG_NewClientData(obj));
46362 return SWIG_Py_Void();
46363 }
46364
46365 SWIGINTERN PyObject *CollapsiblePaneEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46366 return SWIG_Python_InitShadowInstance(args);
46367 }
46368
46369 SWIGINTERN int SearchCtrlNameStr_set(PyObject *) {
46370 SWIG_Error(SWIG_AttributeError,"Variable SearchCtrlNameStr is read-only.");
46371 return 1;
46372 }
46373
46374
46375 SWIGINTERN PyObject *SearchCtrlNameStr_get(void) {
46376 PyObject *pyobj = 0;
46377
46378 {
46379 #if wxUSE_UNICODE
46380 pyobj = PyUnicode_FromWideChar((&wxPySearchCtrlNameStr)->c_str(), (&wxPySearchCtrlNameStr)->Len());
46381 #else
46382 pyobj = PyString_FromStringAndSize((&wxPySearchCtrlNameStr)->c_str(), (&wxPySearchCtrlNameStr)->Len());
46383 #endif
46384 }
46385 return pyobj;
46386 }
46387
46388
46389 SWIGINTERN PyObject *_wrap_new_SearchCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46390 PyObject *resultobj = 0;
46391 wxWindow *arg1 = (wxWindow *) 0 ;
46392 int arg2 = (int) -1 ;
46393 wxString const &arg3_defvalue = wxEmptyString ;
46394 wxString *arg3 = (wxString *) &arg3_defvalue ;
46395 wxPoint const &arg4_defvalue = wxDefaultPosition ;
46396 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
46397 wxSize const &arg5_defvalue = wxDefaultSize ;
46398 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
46399 long arg6 = (long) 0 ;
46400 wxValidator const &arg7_defvalue = wxDefaultValidator ;
46401 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
46402 wxString const &arg8_defvalue = wxPySearchCtrlNameStr ;
46403 wxString *arg8 = (wxString *) &arg8_defvalue ;
46404 wxSearchCtrl *result = 0 ;
46405 void *argp1 = 0 ;
46406 int res1 = 0 ;
46407 int val2 ;
46408 int ecode2 = 0 ;
46409 bool temp3 = false ;
46410 wxPoint temp4 ;
46411 wxSize temp5 ;
46412 long val6 ;
46413 int ecode6 = 0 ;
46414 void *argp7 = 0 ;
46415 int res7 = 0 ;
46416 bool temp8 = false ;
46417 PyObject * obj0 = 0 ;
46418 PyObject * obj1 = 0 ;
46419 PyObject * obj2 = 0 ;
46420 PyObject * obj3 = 0 ;
46421 PyObject * obj4 = 0 ;
46422 PyObject * obj5 = 0 ;
46423 PyObject * obj6 = 0 ;
46424 PyObject * obj7 = 0 ;
46425 char * kwnames[] = {
46426 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
46427 };
46428
46429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_SearchCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
46430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
46431 if (!SWIG_IsOK(res1)) {
46432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SearchCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
46433 }
46434 arg1 = reinterpret_cast< wxWindow * >(argp1);
46435 if (obj1) {
46436 ecode2 = SWIG_AsVal_int(obj1, &val2);
46437 if (!SWIG_IsOK(ecode2)) {
46438 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SearchCtrl" "', expected argument " "2"" of type '" "int""'");
46439 }
46440 arg2 = static_cast< int >(val2);
46441 }
46442 if (obj2) {
46443 {
46444 arg3 = wxString_in_helper(obj2);
46445 if (arg3 == NULL) SWIG_fail;
46446 temp3 = true;
46447 }
46448 }
46449 if (obj3) {
46450 {
46451 arg4 = &temp4;
46452 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
46453 }
46454 }
46455 if (obj4) {
46456 {
46457 arg5 = &temp5;
46458 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
46459 }
46460 }
46461 if (obj5) {
46462 ecode6 = SWIG_AsVal_long(obj5, &val6);
46463 if (!SWIG_IsOK(ecode6)) {
46464 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SearchCtrl" "', expected argument " "6"" of type '" "long""'");
46465 }
46466 arg6 = static_cast< long >(val6);
46467 }
46468 if (obj6) {
46469 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
46470 if (!SWIG_IsOK(res7)) {
46471 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_SearchCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
46472 }
46473 if (!argp7) {
46474 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SearchCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
46475 }
46476 arg7 = reinterpret_cast< wxValidator * >(argp7);
46477 }
46478 if (obj7) {
46479 {
46480 arg8 = wxString_in_helper(obj7);
46481 if (arg8 == NULL) SWIG_fail;
46482 temp8 = true;
46483 }
46484 }
46485 {
46486 if (!wxPyCheckForApp()) SWIG_fail;
46487 PyThreadState* __tstate = wxPyBeginAllowThreads();
46488 result = (wxSearchCtrl *)new wxSearchCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
46489 wxPyEndAllowThreads(__tstate);
46490 if (PyErr_Occurred()) SWIG_fail;
46491 }
46492 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSearchCtrl, SWIG_POINTER_NEW | 0 );
46493 {
46494 if (temp3)
46495 delete arg3;
46496 }
46497 {
46498 if (temp8)
46499 delete arg8;
46500 }
46501 return resultobj;
46502 fail:
46503 {
46504 if (temp3)
46505 delete arg3;
46506 }
46507 {
46508 if (temp8)
46509 delete arg8;
46510 }
46511 return NULL;
46512 }
46513
46514
46515 SWIGINTERN PyObject *_wrap_new_PreSearchCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46516 PyObject *resultobj = 0;
46517 wxSearchCtrl *result = 0 ;
46518
46519 if (!SWIG_Python_UnpackTuple(args,"new_PreSearchCtrl",0,0,0)) SWIG_fail;
46520 {
46521 if (!wxPyCheckForApp()) SWIG_fail;
46522 PyThreadState* __tstate = wxPyBeginAllowThreads();
46523 result = (wxSearchCtrl *)new wxSearchCtrl();
46524 wxPyEndAllowThreads(__tstate);
46525 if (PyErr_Occurred()) SWIG_fail;
46526 }
46527 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSearchCtrl, SWIG_POINTER_OWN | 0 );
46528 return resultobj;
46529 fail:
46530 return NULL;
46531 }
46532
46533
46534 SWIGINTERN PyObject *_wrap_SearchCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46535 PyObject *resultobj = 0;
46536 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46537 wxWindow *arg2 = (wxWindow *) 0 ;
46538 int arg3 = (int) -1 ;
46539 wxString const &arg4_defvalue = wxEmptyString ;
46540 wxString *arg4 = (wxString *) &arg4_defvalue ;
46541 wxPoint const &arg5_defvalue = wxDefaultPosition ;
46542 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
46543 wxSize const &arg6_defvalue = wxDefaultSize ;
46544 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
46545 long arg7 = (long) 0 ;
46546 wxValidator const &arg8_defvalue = wxDefaultValidator ;
46547 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
46548 wxString const &arg9_defvalue = wxPySearchCtrlNameStr ;
46549 wxString *arg9 = (wxString *) &arg9_defvalue ;
46550 bool result;
46551 void *argp1 = 0 ;
46552 int res1 = 0 ;
46553 void *argp2 = 0 ;
46554 int res2 = 0 ;
46555 int val3 ;
46556 int ecode3 = 0 ;
46557 bool temp4 = false ;
46558 wxPoint temp5 ;
46559 wxSize temp6 ;
46560 long val7 ;
46561 int ecode7 = 0 ;
46562 void *argp8 = 0 ;
46563 int res8 = 0 ;
46564 bool temp9 = false ;
46565 PyObject * obj0 = 0 ;
46566 PyObject * obj1 = 0 ;
46567 PyObject * obj2 = 0 ;
46568 PyObject * obj3 = 0 ;
46569 PyObject * obj4 = 0 ;
46570 PyObject * obj5 = 0 ;
46571 PyObject * obj6 = 0 ;
46572 PyObject * obj7 = 0 ;
46573 PyObject * obj8 = 0 ;
46574 char * kwnames[] = {
46575 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
46576 };
46577
46578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:SearchCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
46579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46580 if (!SWIG_IsOK(res1)) {
46581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_Create" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46582 }
46583 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46584 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
46585 if (!SWIG_IsOK(res2)) {
46586 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
46587 }
46588 arg2 = reinterpret_cast< wxWindow * >(argp2);
46589 if (obj2) {
46590 ecode3 = SWIG_AsVal_int(obj2, &val3);
46591 if (!SWIG_IsOK(ecode3)) {
46592 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SearchCtrl_Create" "', expected argument " "3"" of type '" "int""'");
46593 }
46594 arg3 = static_cast< int >(val3);
46595 }
46596 if (obj3) {
46597 {
46598 arg4 = wxString_in_helper(obj3);
46599 if (arg4 == NULL) SWIG_fail;
46600 temp4 = true;
46601 }
46602 }
46603 if (obj4) {
46604 {
46605 arg5 = &temp5;
46606 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
46607 }
46608 }
46609 if (obj5) {
46610 {
46611 arg6 = &temp6;
46612 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
46613 }
46614 }
46615 if (obj6) {
46616 ecode7 = SWIG_AsVal_long(obj6, &val7);
46617 if (!SWIG_IsOK(ecode7)) {
46618 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SearchCtrl_Create" "', expected argument " "7"" of type '" "long""'");
46619 }
46620 arg7 = static_cast< long >(val7);
46621 }
46622 if (obj7) {
46623 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
46624 if (!SWIG_IsOK(res8)) {
46625 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "SearchCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
46626 }
46627 if (!argp8) {
46628 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SearchCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
46629 }
46630 arg8 = reinterpret_cast< wxValidator * >(argp8);
46631 }
46632 if (obj8) {
46633 {
46634 arg9 = wxString_in_helper(obj8);
46635 if (arg9 == NULL) SWIG_fail;
46636 temp9 = true;
46637 }
46638 }
46639 {
46640 PyThreadState* __tstate = wxPyBeginAllowThreads();
46641 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
46642 wxPyEndAllowThreads(__tstate);
46643 if (PyErr_Occurred()) SWIG_fail;
46644 }
46645 {
46646 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46647 }
46648 {
46649 if (temp4)
46650 delete arg4;
46651 }
46652 {
46653 if (temp9)
46654 delete arg9;
46655 }
46656 return resultobj;
46657 fail:
46658 {
46659 if (temp4)
46660 delete arg4;
46661 }
46662 {
46663 if (temp9)
46664 delete arg9;
46665 }
46666 return NULL;
46667 }
46668
46669
46670 SWIGINTERN PyObject *_wrap_SearchCtrl_SetMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46671 PyObject *resultobj = 0;
46672 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46673 wxMenu *arg2 = (wxMenu *) 0 ;
46674 void *argp1 = 0 ;
46675 int res1 = 0 ;
46676 void *argp2 = 0 ;
46677 int res2 = 0 ;
46678 PyObject * obj0 = 0 ;
46679 PyObject * obj1 = 0 ;
46680 char * kwnames[] = {
46681 (char *) "self",(char *) "menu", NULL
46682 };
46683
46684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetMenu",kwnames,&obj0,&obj1)) SWIG_fail;
46685 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46686 if (!SWIG_IsOK(res1)) {
46687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetMenu" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46688 }
46689 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46690 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenu, 0 | 0 );
46691 if (!SWIG_IsOK(res2)) {
46692 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_SetMenu" "', expected argument " "2"" of type '" "wxMenu *""'");
46693 }
46694 arg2 = reinterpret_cast< wxMenu * >(argp2);
46695 {
46696 PyThreadState* __tstate = wxPyBeginAllowThreads();
46697 (arg1)->SetMenu(arg2);
46698 wxPyEndAllowThreads(__tstate);
46699 if (PyErr_Occurred()) SWIG_fail;
46700 }
46701 resultobj = SWIG_Py_Void();
46702 return resultobj;
46703 fail:
46704 return NULL;
46705 }
46706
46707
46708 SWIGINTERN PyObject *_wrap_SearchCtrl_GetMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46709 PyObject *resultobj = 0;
46710 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46711 wxMenu *result = 0 ;
46712 void *argp1 = 0 ;
46713 int res1 = 0 ;
46714 PyObject *swig_obj[1] ;
46715
46716 if (!args) SWIG_fail;
46717 swig_obj[0] = args;
46718 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46719 if (!SWIG_IsOK(res1)) {
46720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_GetMenu" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46721 }
46722 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46723 {
46724 PyThreadState* __tstate = wxPyBeginAllowThreads();
46725 result = (wxMenu *)(arg1)->GetMenu();
46726 wxPyEndAllowThreads(__tstate);
46727 if (PyErr_Occurred()) SWIG_fail;
46728 }
46729 {
46730 resultobj = wxPyMake_wxObject(result, 0);
46731 }
46732 return resultobj;
46733 fail:
46734 return NULL;
46735 }
46736
46737
46738 SWIGINTERN PyObject *_wrap_SearchCtrl_ShowSearchButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46739 PyObject *resultobj = 0;
46740 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46741 bool arg2 ;
46742 void *argp1 = 0 ;
46743 int res1 = 0 ;
46744 bool val2 ;
46745 int ecode2 = 0 ;
46746 PyObject * obj0 = 0 ;
46747 PyObject * obj1 = 0 ;
46748 char * kwnames[] = {
46749 (char *) "self",(char *) "show", NULL
46750 };
46751
46752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_ShowSearchButton",kwnames,&obj0,&obj1)) SWIG_fail;
46753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46754 if (!SWIG_IsOK(res1)) {
46755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_ShowSearchButton" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46756 }
46757 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46758 ecode2 = SWIG_AsVal_bool(obj1, &val2);
46759 if (!SWIG_IsOK(ecode2)) {
46760 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SearchCtrl_ShowSearchButton" "', expected argument " "2"" of type '" "bool""'");
46761 }
46762 arg2 = static_cast< bool >(val2);
46763 {
46764 PyThreadState* __tstate = wxPyBeginAllowThreads();
46765 (arg1)->ShowSearchButton(arg2);
46766 wxPyEndAllowThreads(__tstate);
46767 if (PyErr_Occurred()) SWIG_fail;
46768 }
46769 resultobj = SWIG_Py_Void();
46770 return resultobj;
46771 fail:
46772 return NULL;
46773 }
46774
46775
46776 SWIGINTERN PyObject *_wrap_SearchCtrl_IsSearchButtonVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46777 PyObject *resultobj = 0;
46778 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46779 bool result;
46780 void *argp1 = 0 ;
46781 int res1 = 0 ;
46782 PyObject *swig_obj[1] ;
46783
46784 if (!args) SWIG_fail;
46785 swig_obj[0] = args;
46786 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46787 if (!SWIG_IsOK(res1)) {
46788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_IsSearchButtonVisible" "', expected argument " "1"" of type '" "wxSearchCtrl const *""'");
46789 }
46790 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46791 {
46792 PyThreadState* __tstate = wxPyBeginAllowThreads();
46793 result = (bool)((wxSearchCtrl const *)arg1)->IsSearchButtonVisible();
46794 wxPyEndAllowThreads(__tstate);
46795 if (PyErr_Occurred()) SWIG_fail;
46796 }
46797 {
46798 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46799 }
46800 return resultobj;
46801 fail:
46802 return NULL;
46803 }
46804
46805
46806 SWIGINTERN PyObject *_wrap_SearchCtrl_ShowCancelButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46807 PyObject *resultobj = 0;
46808 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46809 bool arg2 ;
46810 void *argp1 = 0 ;
46811 int res1 = 0 ;
46812 bool val2 ;
46813 int ecode2 = 0 ;
46814 PyObject * obj0 = 0 ;
46815 PyObject * obj1 = 0 ;
46816 char * kwnames[] = {
46817 (char *) "self",(char *) "show", NULL
46818 };
46819
46820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_ShowCancelButton",kwnames,&obj0,&obj1)) SWIG_fail;
46821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46822 if (!SWIG_IsOK(res1)) {
46823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_ShowCancelButton" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46824 }
46825 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46826 ecode2 = SWIG_AsVal_bool(obj1, &val2);
46827 if (!SWIG_IsOK(ecode2)) {
46828 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SearchCtrl_ShowCancelButton" "', expected argument " "2"" of type '" "bool""'");
46829 }
46830 arg2 = static_cast< bool >(val2);
46831 {
46832 PyThreadState* __tstate = wxPyBeginAllowThreads();
46833 (arg1)->ShowCancelButton(arg2);
46834 wxPyEndAllowThreads(__tstate);
46835 if (PyErr_Occurred()) SWIG_fail;
46836 }
46837 resultobj = SWIG_Py_Void();
46838 return resultobj;
46839 fail:
46840 return NULL;
46841 }
46842
46843
46844 SWIGINTERN PyObject *_wrap_SearchCtrl_IsCancelButtonVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46845 PyObject *resultobj = 0;
46846 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46847 bool result;
46848 void *argp1 = 0 ;
46849 int res1 = 0 ;
46850 PyObject *swig_obj[1] ;
46851
46852 if (!args) SWIG_fail;
46853 swig_obj[0] = args;
46854 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46855 if (!SWIG_IsOK(res1)) {
46856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_IsCancelButtonVisible" "', expected argument " "1"" of type '" "wxSearchCtrl const *""'");
46857 }
46858 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46859 {
46860 PyThreadState* __tstate = wxPyBeginAllowThreads();
46861 result = (bool)((wxSearchCtrl const *)arg1)->IsCancelButtonVisible();
46862 wxPyEndAllowThreads(__tstate);
46863 if (PyErr_Occurred()) SWIG_fail;
46864 }
46865 {
46866 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46867 }
46868 return resultobj;
46869 fail:
46870 return NULL;
46871 }
46872
46873
46874 SWIGINTERN PyObject *_wrap_SearchCtrl_SetSearchBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46875 PyObject *resultobj = 0;
46876 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46877 wxBitmap *arg2 = 0 ;
46878 void *argp1 = 0 ;
46879 int res1 = 0 ;
46880 void *argp2 = 0 ;
46881 int res2 = 0 ;
46882 PyObject * obj0 = 0 ;
46883 PyObject * obj1 = 0 ;
46884 char * kwnames[] = {
46885 (char *) "self",(char *) "bitmap", NULL
46886 };
46887
46888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetSearchBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
46889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46890 if (!SWIG_IsOK(res1)) {
46891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetSearchBitmap" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46892 }
46893 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46894 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
46895 if (!SWIG_IsOK(res2)) {
46896 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_SetSearchBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
46897 }
46898 if (!argp2) {
46899 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SearchCtrl_SetSearchBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
46900 }
46901 arg2 = reinterpret_cast< wxBitmap * >(argp2);
46902 {
46903 PyThreadState* __tstate = wxPyBeginAllowThreads();
46904 (arg1)->SetSearchBitmap((wxBitmap const &)*arg2);
46905 wxPyEndAllowThreads(__tstate);
46906 if (PyErr_Occurred()) SWIG_fail;
46907 }
46908 resultobj = SWIG_Py_Void();
46909 return resultobj;
46910 fail:
46911 return NULL;
46912 }
46913
46914
46915 SWIGINTERN PyObject *_wrap_SearchCtrl_SetSearchMenuBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46916 PyObject *resultobj = 0;
46917 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46918 wxBitmap *arg2 = 0 ;
46919 void *argp1 = 0 ;
46920 int res1 = 0 ;
46921 void *argp2 = 0 ;
46922 int res2 = 0 ;
46923 PyObject * obj0 = 0 ;
46924 PyObject * obj1 = 0 ;
46925 char * kwnames[] = {
46926 (char *) "self",(char *) "bitmap", NULL
46927 };
46928
46929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetSearchMenuBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
46930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46931 if (!SWIG_IsOK(res1)) {
46932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetSearchMenuBitmap" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46933 }
46934 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46935 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
46936 if (!SWIG_IsOK(res2)) {
46937 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_SetSearchMenuBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
46938 }
46939 if (!argp2) {
46940 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SearchCtrl_SetSearchMenuBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
46941 }
46942 arg2 = reinterpret_cast< wxBitmap * >(argp2);
46943 {
46944 PyThreadState* __tstate = wxPyBeginAllowThreads();
46945 (arg1)->SetSearchMenuBitmap((wxBitmap const &)*arg2);
46946 wxPyEndAllowThreads(__tstate);
46947 if (PyErr_Occurred()) SWIG_fail;
46948 }
46949 resultobj = SWIG_Py_Void();
46950 return resultobj;
46951 fail:
46952 return NULL;
46953 }
46954
46955
46956 SWIGINTERN PyObject *_wrap_SearchCtrl_SetCancelBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46957 PyObject *resultobj = 0;
46958 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46959 wxBitmap *arg2 = 0 ;
46960 void *argp1 = 0 ;
46961 int res1 = 0 ;
46962 void *argp2 = 0 ;
46963 int res2 = 0 ;
46964 PyObject * obj0 = 0 ;
46965 PyObject * obj1 = 0 ;
46966 char * kwnames[] = {
46967 (char *) "self",(char *) "bitmap", NULL
46968 };
46969
46970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetCancelBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
46971 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46972 if (!SWIG_IsOK(res1)) {
46973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetCancelBitmap" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46974 }
46975 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46976 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
46977 if (!SWIG_IsOK(res2)) {
46978 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_SetCancelBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
46979 }
46980 if (!argp2) {
46981 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SearchCtrl_SetCancelBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
46982 }
46983 arg2 = reinterpret_cast< wxBitmap * >(argp2);
46984 {
46985 PyThreadState* __tstate = wxPyBeginAllowThreads();
46986 (arg1)->SetCancelBitmap((wxBitmap const &)*arg2);
46987 wxPyEndAllowThreads(__tstate);
46988 if (PyErr_Occurred()) SWIG_fail;
46989 }
46990 resultobj = SWIG_Py_Void();
46991 return resultobj;
46992 fail:
46993 return NULL;
46994 }
46995
46996
46997 SWIGINTERN PyObject *SearchCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46998 PyObject *obj;
46999 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
47000 SWIG_TypeNewClientData(SWIGTYPE_p_wxSearchCtrl, SWIG_NewClientData(obj));
47001 return SWIG_Py_Void();
47002 }
47003
47004 SWIGINTERN PyObject *SearchCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47005 return SWIG_Python_InitShadowInstance(args);
47006 }
47007
47008 static PyMethodDef SwigMethods[] = {
47009 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL},
47010 { (char *)"new_PreButton", (PyCFunction)_wrap_new_PreButton, METH_NOARGS, NULL},
47011 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47012 { (char *)"Button_SetDefault", (PyCFunction)_wrap_Button_SetDefault, METH_O, NULL},
47013 { (char *)"Button_GetDefaultSize", (PyCFunction)_wrap_Button_GetDefaultSize, METH_NOARGS, NULL},
47014 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47015 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL},
47016 { (char *)"Button_swiginit", Button_swiginit, METH_VARARGS, NULL},
47017 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL},
47018 { (char *)"new_PreBitmapButton", (PyCFunction)_wrap_new_PreBitmapButton, METH_NOARGS, NULL},
47019 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47020 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction)_wrap_BitmapButton_GetBitmapLabel, METH_O, NULL},
47021 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction)_wrap_BitmapButton_GetBitmapDisabled, METH_O, NULL},
47022 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction)_wrap_BitmapButton_GetBitmapFocus, METH_O, NULL},
47023 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction)_wrap_BitmapButton_GetBitmapSelected, METH_O, NULL},
47024 { (char *)"BitmapButton_GetBitmapHover", (PyCFunction)_wrap_BitmapButton_GetBitmapHover, METH_O, NULL},
47025 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL},
47026 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL},
47027 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL},
47028 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL},
47029 { (char *)"BitmapButton_SetBitmapHover", (PyCFunction) _wrap_BitmapButton_SetBitmapHover, METH_VARARGS | METH_KEYWORDS, NULL},
47030 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
47031 { (char *)"BitmapButton_GetMarginX", (PyCFunction)_wrap_BitmapButton_GetMarginX, METH_O, NULL},
47032 { (char *)"BitmapButton_GetMarginY", (PyCFunction)_wrap_BitmapButton_GetMarginY, METH_O, NULL},
47033 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL},
47034 { (char *)"BitmapButton_swiginit", BitmapButton_swiginit, METH_VARARGS, NULL},
47035 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
47036 { (char *)"new_PreCheckBox", (PyCFunction)_wrap_new_PreCheckBox, METH_NOARGS, NULL},
47037 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47038 { (char *)"CheckBox_GetValue", (PyCFunction)_wrap_CheckBox_GetValue, METH_O, NULL},
47039 { (char *)"CheckBox_IsChecked", (PyCFunction)_wrap_CheckBox_IsChecked, METH_O, NULL},
47040 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47041 { (char *)"CheckBox_Get3StateValue", (PyCFunction)_wrap_CheckBox_Get3StateValue, METH_O, NULL},
47042 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL},
47043 { (char *)"CheckBox_Is3State", (PyCFunction)_wrap_CheckBox_Is3State, METH_O, NULL},
47044 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction)_wrap_CheckBox_Is3rdStateAllowedForUser, METH_O, NULL},
47045 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47046 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL},
47047 { (char *)"CheckBox_swiginit", CheckBox_swiginit, METH_VARARGS, NULL},
47048 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL},
47049 { (char *)"new_PreChoice", (PyCFunction)_wrap_new_PreChoice, METH_NOARGS, NULL},
47050 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47051 { (char *)"Choice_GetCurrentSelection", (PyCFunction)_wrap_Choice_GetCurrentSelection, METH_O, NULL},
47052 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47053 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL},
47054 { (char *)"Choice_swiginit", Choice_swiginit, METH_VARARGS, NULL},
47055 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL},
47056 { (char *)"new_PreComboBox", (PyCFunction)_wrap_new_PreComboBox, METH_NOARGS, NULL},
47057 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47058 { (char *)"ComboBox_GetValue", (PyCFunction)_wrap_ComboBox_GetValue, METH_O, NULL},
47059 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47060 { (char *)"ComboBox_Copy", (PyCFunction)_wrap_ComboBox_Copy, METH_O, NULL},
47061 { (char *)"ComboBox_Cut", (PyCFunction)_wrap_ComboBox_Cut, METH_O, NULL},
47062 { (char *)"ComboBox_Paste", (PyCFunction)_wrap_ComboBox_Paste, METH_O, NULL},
47063 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
47064 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction)_wrap_ComboBox_GetInsertionPoint, METH_O, NULL},
47065 { (char *)"ComboBox_GetLastPosition", (PyCFunction)_wrap_ComboBox_GetLastPosition, METH_O, NULL},
47066 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
47067 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL},
47068 { (char *)"ComboBox_GetMark", (PyCFunction)_wrap_ComboBox_GetMark, METH_O, NULL},
47069 { (char *)"ComboBox_GetCurrentSelection", (PyCFunction)_wrap_ComboBox_GetCurrentSelection, METH_O, NULL},
47070 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47071 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
47072 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction)_wrap_ComboBox_SetInsertionPointEnd, METH_O, NULL},
47073 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
47074 { (char *)"ComboBox_IsEditable", (PyCFunction)_wrap_ComboBox_IsEditable, METH_O, NULL},
47075 { (char *)"ComboBox_Undo", (PyCFunction)_wrap_ComboBox_Undo, METH_O, NULL},
47076 { (char *)"ComboBox_Redo", (PyCFunction)_wrap_ComboBox_Redo, METH_O, NULL},
47077 { (char *)"ComboBox_SelectAll", (PyCFunction)_wrap_ComboBox_SelectAll, METH_O, NULL},
47078 { (char *)"ComboBox_CanCopy", (PyCFunction)_wrap_ComboBox_CanCopy, METH_O, NULL},
47079 { (char *)"ComboBox_CanCut", (PyCFunction)_wrap_ComboBox_CanCut, METH_O, NULL},
47080 { (char *)"ComboBox_CanPaste", (PyCFunction)_wrap_ComboBox_CanPaste, METH_O, NULL},
47081 { (char *)"ComboBox_CanUndo", (PyCFunction)_wrap_ComboBox_CanUndo, METH_O, NULL},
47082 { (char *)"ComboBox_CanRedo", (PyCFunction)_wrap_ComboBox_CanRedo, METH_O, NULL},
47083 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47084 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL},
47085 { (char *)"ComboBox_swiginit", ComboBox_swiginit, METH_VARARGS, NULL},
47086 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL},
47087 { (char *)"new_PreGauge", (PyCFunction)_wrap_new_PreGauge, METH_NOARGS, NULL},
47088 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47089 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
47090 { (char *)"Gauge_GetRange", (PyCFunction)_wrap_Gauge_GetRange, METH_O, NULL},
47091 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47092 { (char *)"Gauge_GetValue", (PyCFunction)_wrap_Gauge_GetValue, METH_O, NULL},
47093 { (char *)"Gauge_Pulse", (PyCFunction)_wrap_Gauge_Pulse, METH_O, NULL},
47094 { (char *)"Gauge_IsVertical", (PyCFunction)_wrap_Gauge_IsVertical, METH_O, NULL},
47095 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL},
47096 { (char *)"Gauge_GetShadowWidth", (PyCFunction)_wrap_Gauge_GetShadowWidth, METH_O, NULL},
47097 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL},
47098 { (char *)"Gauge_GetBezelFace", (PyCFunction)_wrap_Gauge_GetBezelFace, METH_O, NULL},
47099 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47100 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL},
47101 { (char *)"Gauge_swiginit", Gauge_swiginit, METH_VARARGS, NULL},
47102 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL},
47103 { (char *)"new_PreStaticBox", (PyCFunction)_wrap_new_PreStaticBox, METH_NOARGS, NULL},
47104 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47105 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47106 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL},
47107 { (char *)"StaticBox_swiginit", StaticBox_swiginit, METH_VARARGS, NULL},
47108 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL},
47109 { (char *)"new_PreStaticLine", (PyCFunction)_wrap_new_PreStaticLine, METH_NOARGS, NULL},
47110 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47111 { (char *)"StaticLine_IsVertical", (PyCFunction)_wrap_StaticLine_IsVertical, METH_O, NULL},
47112 { (char *)"StaticLine_GetDefaultSize", (PyCFunction)_wrap_StaticLine_GetDefaultSize, METH_NOARGS, NULL},
47113 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47114 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL},
47115 { (char *)"StaticLine_swiginit", StaticLine_swiginit, METH_VARARGS, NULL},
47116 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL},
47117 { (char *)"new_PreStaticText", (PyCFunction)_wrap_new_PreStaticText, METH_NOARGS, NULL},
47118 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47119 { (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL},
47120 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47121 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL},
47122 { (char *)"StaticText_swiginit", StaticText_swiginit, METH_VARARGS, NULL},
47123 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47124 { (char *)"new_PreStaticBitmap", (PyCFunction)_wrap_new_PreStaticBitmap, METH_NOARGS, NULL},
47125 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47126 { (char *)"StaticBitmap_GetBitmap", (PyCFunction)_wrap_StaticBitmap_GetBitmap, METH_O, NULL},
47127 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47128 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
47129 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47130 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL},
47131 { (char *)"StaticBitmap_swiginit", StaticBitmap_swiginit, METH_VARARGS, NULL},
47132 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL},
47133 { (char *)"new_PreListBox", (PyCFunction)_wrap_new_PreListBox, METH_NOARGS, NULL},
47134 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47135 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
47136 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL},
47137 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL},
47138 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
47139 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47140 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL},
47141 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL},
47142 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL},
47143 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47144 { (char *)"ListBox_GetSelections", (PyCFunction)_wrap_ListBox_GetSelections, METH_O, NULL},
47145 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL},
47146 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL},
47147 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47148 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47149 { (char *)"ListBox_IsSorted", (PyCFunction)_wrap_ListBox_IsSorted, METH_O, NULL},
47150 { (char *)"ListBox_HitTest", (PyCFunction) _wrap_ListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
47151 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47152 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47153 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
47154 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47155 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL},
47156 { (char *)"ListBox_swiginit", ListBox_swiginit, METH_VARARGS, NULL},
47157 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL},
47158 { (char *)"new_PreCheckListBox", (PyCFunction)_wrap_new_PreCheckListBox, METH_NOARGS, NULL},
47159 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47160 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL},
47161 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL},
47162 { (char *)"CheckListBox_GetItemHeight", (PyCFunction)_wrap_CheckListBox_GetItemHeight, METH_O, NULL},
47163 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL},
47164 { (char *)"CheckListBox_swiginit", CheckListBox_swiginit, METH_VARARGS, NULL},
47165 { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL},
47166 { (char *)"delete_TextAttr", (PyCFunction)_wrap_delete_TextAttr, METH_O, NULL},
47167 { (char *)"TextAttr_Init", (PyCFunction)_wrap_TextAttr_Init, METH_O, NULL},
47168 { (char *)"TextAttr_Merge", (PyCFunction) _wrap_TextAttr_Merge, METH_VARARGS | METH_KEYWORDS, NULL},
47169 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47170 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47171 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
47172 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL},
47173 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL},
47174 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL},
47175 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL},
47176 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
47177 { (char *)"TextAttr_HasTextColour", (PyCFunction)_wrap_TextAttr_HasTextColour, METH_O, NULL},
47178 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction)_wrap_TextAttr_HasBackgroundColour, METH_O, NULL},
47179 { (char *)"TextAttr_HasFont", (PyCFunction)_wrap_TextAttr_HasFont, METH_O, NULL},
47180 { (char *)"TextAttr_HasAlignment", (PyCFunction)_wrap_TextAttr_HasAlignment, METH_O, NULL},
47181 { (char *)"TextAttr_HasTabs", (PyCFunction)_wrap_TextAttr_HasTabs, METH_O, NULL},
47182 { (char *)"TextAttr_HasLeftIndent", (PyCFunction)_wrap_TextAttr_HasLeftIndent, METH_O, NULL},
47183 { (char *)"TextAttr_HasRightIndent", (PyCFunction)_wrap_TextAttr_HasRightIndent, METH_O, NULL},
47184 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL},
47185 { (char *)"TextAttr_GetTextColour", (PyCFunction)_wrap_TextAttr_GetTextColour, METH_O, NULL},
47186 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction)_wrap_TextAttr_GetBackgroundColour, METH_O, NULL},
47187 { (char *)"TextAttr_GetFont", (PyCFunction)_wrap_TextAttr_GetFont, METH_O, NULL},
47188 { (char *)"TextAttr_GetAlignment", (PyCFunction)_wrap_TextAttr_GetAlignment, METH_O, NULL},
47189 { (char *)"TextAttr_GetTabs", (PyCFunction)_wrap_TextAttr_GetTabs, METH_O, NULL},
47190 { (char *)"TextAttr_GetLeftIndent", (PyCFunction)_wrap_TextAttr_GetLeftIndent, METH_O, NULL},
47191 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction)_wrap_TextAttr_GetLeftSubIndent, METH_O, NULL},
47192 { (char *)"TextAttr_GetRightIndent", (PyCFunction)_wrap_TextAttr_GetRightIndent, METH_O, NULL},
47193 { (char *)"TextAttr_GetFlags", (PyCFunction)_wrap_TextAttr_GetFlags, METH_O, NULL},
47194 { (char *)"TextAttr_IsDefault", (PyCFunction)_wrap_TextAttr_IsDefault, METH_O, NULL},
47195 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL},
47196 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL},
47197 { (char *)"TextAttr_swiginit", TextAttr_swiginit, METH_VARARGS, NULL},
47198 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47199 { (char *)"new_PreTextCtrl", (PyCFunction)_wrap_new_PreTextCtrl, METH_NOARGS, NULL},
47200 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47201 { (char *)"TextCtrl_GetValue", (PyCFunction)_wrap_TextCtrl_GetValue, METH_O, NULL},
47202 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47203 { (char *)"TextCtrl_IsEmpty", (PyCFunction)_wrap_TextCtrl_IsEmpty, METH_O, NULL},
47204 { (char *)"TextCtrl_ChangeValue", (PyCFunction) _wrap_TextCtrl_ChangeValue, METH_VARARGS | METH_KEYWORDS, NULL},
47205 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL},
47206 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL},
47207 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL},
47208 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction)_wrap_TextCtrl_GetNumberOfLines, METH_O, NULL},
47209 { (char *)"TextCtrl_IsModified", (PyCFunction)_wrap_TextCtrl_IsModified, METH_O, NULL},
47210 { (char *)"TextCtrl_IsEditable", (PyCFunction)_wrap_TextCtrl_IsEditable, METH_O, NULL},
47211 { (char *)"TextCtrl_IsSingleLine", (PyCFunction)_wrap_TextCtrl_IsSingleLine, METH_O, NULL},
47212 { (char *)"TextCtrl_IsMultiLine", (PyCFunction)_wrap_TextCtrl_IsMultiLine, METH_O, NULL},
47213 { (char *)"TextCtrl_GetSelection", (PyCFunction)_wrap_TextCtrl_GetSelection, METH_O, NULL},
47214 { (char *)"TextCtrl_GetStringSelection", (PyCFunction)_wrap_TextCtrl_GetStringSelection, METH_O, NULL},
47215 { (char *)"TextCtrl_Clear", (PyCFunction)_wrap_TextCtrl_Clear, METH_O, NULL},
47216 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
47217 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
47218 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
47219 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
47220 { (char *)"TextCtrl_MarkDirty", (PyCFunction)_wrap_TextCtrl_MarkDirty, METH_O, NULL},
47221 { (char *)"TextCtrl_DiscardEdits", (PyCFunction)_wrap_TextCtrl_DiscardEdits, METH_O, NULL},
47222 { (char *)"TextCtrl_SetModified", (PyCFunction) _wrap_TextCtrl_SetModified, METH_VARARGS | METH_KEYWORDS, NULL},
47223 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL},
47224 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL},
47225 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL},
47226 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL},
47227 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
47228 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
47229 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL},
47230 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction)_wrap_TextCtrl_GetDefaultStyle, METH_O, NULL},
47231 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47232 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL},
47233 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47234 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
47235 { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL},
47236 { (char *)"TextCtrl_Copy", (PyCFunction)_wrap_TextCtrl_Copy, METH_O, NULL},
47237 { (char *)"TextCtrl_Cut", (PyCFunction)_wrap_TextCtrl_Cut, METH_O, NULL},
47238 { (char *)"TextCtrl_Paste", (PyCFunction)_wrap_TextCtrl_Paste, METH_O, NULL},
47239 { (char *)"TextCtrl_CanCopy", (PyCFunction)_wrap_TextCtrl_CanCopy, METH_O, NULL},
47240 { (char *)"TextCtrl_CanCut", (PyCFunction)_wrap_TextCtrl_CanCut, METH_O, NULL},
47241 { (char *)"TextCtrl_CanPaste", (PyCFunction)_wrap_TextCtrl_CanPaste, METH_O, NULL},
47242 { (char *)"TextCtrl_Undo", (PyCFunction)_wrap_TextCtrl_Undo, METH_O, NULL},
47243 { (char *)"TextCtrl_Redo", (PyCFunction)_wrap_TextCtrl_Redo, METH_O, NULL},
47244 { (char *)"TextCtrl_CanUndo", (PyCFunction)_wrap_TextCtrl_CanUndo, METH_O, NULL},
47245 { (char *)"TextCtrl_CanRedo", (PyCFunction)_wrap_TextCtrl_CanRedo, METH_O, NULL},
47246 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
47247 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_TextCtrl_SetInsertionPointEnd, METH_O, NULL},
47248 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction)_wrap_TextCtrl_GetInsertionPoint, METH_O, NULL},
47249 { (char *)"TextCtrl_GetLastPosition", (PyCFunction)_wrap_TextCtrl_GetLastPosition, METH_O, NULL},
47250 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47251 { (char *)"TextCtrl_SelectAll", (PyCFunction)_wrap_TextCtrl_SelectAll, METH_O, NULL},
47252 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
47253 { (char *)"TextCtrl_MacCheckSpelling", (PyCFunction) _wrap_TextCtrl_MacCheckSpelling, METH_VARARGS | METH_KEYWORDS, NULL},
47254 { (char *)"TextCtrl_SendTextUpdatedEvent", (PyCFunction)_wrap_TextCtrl_SendTextUpdatedEvent, METH_O, NULL},
47255 { (char *)"TextCtrl_ShowNativeCaret", (PyCFunction) _wrap_TextCtrl_ShowNativeCaret, METH_VARARGS | METH_KEYWORDS, NULL},
47256 { (char *)"TextCtrl_HideNativeCaret", (PyCFunction)_wrap_TextCtrl_HideNativeCaret, METH_O, NULL},
47257 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL},
47258 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
47259 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47260 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL},
47261 { (char *)"TextCtrl_swiginit", TextCtrl_swiginit, METH_VARARGS, NULL},
47262 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47263 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction)_wrap_TextUrlEvent_GetMouseEvent, METH_O, NULL},
47264 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction)_wrap_TextUrlEvent_GetURLStart, METH_O, NULL},
47265 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction)_wrap_TextUrlEvent_GetURLEnd, METH_O, NULL},
47266 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL},
47267 { (char *)"TextUrlEvent_swiginit", TextUrlEvent_swiginit, METH_VARARGS, NULL},
47268 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL},
47269 { (char *)"new_PreScrollBar", (PyCFunction)_wrap_new_PreScrollBar, METH_NOARGS, NULL},
47270 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47271 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction)_wrap_ScrollBar_GetThumbPosition, METH_O, NULL},
47272 { (char *)"ScrollBar_GetThumbSize", (PyCFunction)_wrap_ScrollBar_GetThumbSize, METH_O, NULL},
47273 { (char *)"ScrollBar_GetPageSize", (PyCFunction)_wrap_ScrollBar_GetPageSize, METH_O, NULL},
47274 { (char *)"ScrollBar_GetRange", (PyCFunction)_wrap_ScrollBar_GetRange, METH_O, NULL},
47275 { (char *)"ScrollBar_IsVertical", (PyCFunction)_wrap_ScrollBar_IsVertical, METH_O, NULL},
47276 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47277 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47278 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL},
47279 { (char *)"ScrollBar_swiginit", ScrollBar_swiginit, METH_VARARGS, NULL},
47280 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL},
47281 { (char *)"new_PreSpinButton", (PyCFunction)_wrap_new_PreSpinButton, METH_NOARGS, NULL},
47282 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47283 { (char *)"SpinButton_GetValue", (PyCFunction)_wrap_SpinButton_GetValue, METH_O, NULL},
47284 { (char *)"SpinButton_GetMin", (PyCFunction)_wrap_SpinButton_GetMin, METH_O, NULL},
47285 { (char *)"SpinButton_GetMax", (PyCFunction)_wrap_SpinButton_GetMax, METH_O, NULL},
47286 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47287 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
47288 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
47289 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
47290 { (char *)"SpinButton_IsVertical", (PyCFunction)_wrap_SpinButton_IsVertical, METH_O, NULL},
47291 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47292 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL},
47293 { (char *)"SpinButton_swiginit", SpinButton_swiginit, METH_VARARGS, NULL},
47294 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47295 { (char *)"new_PreSpinCtrl", (PyCFunction)_wrap_new_PreSpinCtrl, METH_NOARGS, NULL},
47296 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47297 { (char *)"SpinCtrl_GetValue", (PyCFunction)_wrap_SpinCtrl_GetValue, METH_O, NULL},
47298 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47299 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL},
47300 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
47301 { (char *)"SpinCtrl_GetMin", (PyCFunction)_wrap_SpinCtrl_GetMin, METH_O, NULL},
47302 { (char *)"SpinCtrl_GetMax", (PyCFunction)_wrap_SpinCtrl_GetMax, METH_O, NULL},
47303 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47304 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47305 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL},
47306 { (char *)"SpinCtrl_swiginit", SpinCtrl_swiginit, METH_VARARGS, NULL},
47307 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47308 { (char *)"SpinEvent_GetPosition", (PyCFunction)_wrap_SpinEvent_GetPosition, METH_O, NULL},
47309 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47310 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL},
47311 { (char *)"SpinEvent_swiginit", SpinEvent_swiginit, METH_VARARGS, NULL},
47312 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL},
47313 { (char *)"new_PreRadioBox", (PyCFunction)_wrap_new_PreRadioBox, METH_NOARGS, NULL},
47314 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47315 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47316 { (char *)"RadioBox_GetSelection", (PyCFunction)_wrap_RadioBox_GetSelection, METH_O, NULL},
47317 { (char *)"RadioBox_GetStringSelection", (PyCFunction)_wrap_RadioBox_GetStringSelection, METH_O, NULL},
47318 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47319 { (char *)"RadioBox_GetCount", (PyCFunction)_wrap_RadioBox_GetCount, METH_O, NULL},
47320 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL},
47321 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
47322 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
47323 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL},
47324 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL},
47325 { (char *)"RadioBox_IsItemEnabled", (PyCFunction) _wrap_RadioBox_IsItemEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
47326 { (char *)"RadioBox_IsItemShown", (PyCFunction) _wrap_RadioBox_IsItemShown, METH_VARARGS | METH_KEYWORDS, NULL},
47327 { (char *)"RadioBox_GetColumnCount", (PyCFunction)_wrap_RadioBox_GetColumnCount, METH_O, NULL},
47328 { (char *)"RadioBox_GetRowCount", (PyCFunction)_wrap_RadioBox_GetRowCount, METH_O, NULL},
47329 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
47330 { (char *)"RadioBox_SetItemToolTip", (PyCFunction) _wrap_RadioBox_SetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
47331 { (char *)"RadioBox_GetItemToolTip", (PyCFunction) _wrap_RadioBox_GetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
47332 { (char *)"RadioBox_SetItemHelpText", (PyCFunction) _wrap_RadioBox_SetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
47333 { (char *)"RadioBox_GetItemHelpText", (PyCFunction) _wrap_RadioBox_GetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
47334 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47335 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL},
47336 { (char *)"RadioBox_swiginit", RadioBox_swiginit, METH_VARARGS, NULL},
47337 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL},
47338 { (char *)"new_PreRadioButton", (PyCFunction)_wrap_new_PreRadioButton, METH_NOARGS, NULL},
47339 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47340 { (char *)"RadioButton_GetValue", (PyCFunction)_wrap_RadioButton_GetValue, METH_O, NULL},
47341 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47342 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47343 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL},
47344 { (char *)"RadioButton_swiginit", RadioButton_swiginit, METH_VARARGS, NULL},
47345 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL},
47346 { (char *)"new_PreSlider", (PyCFunction)_wrap_new_PreSlider, METH_NOARGS, NULL},
47347 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47348 { (char *)"Slider_GetValue", (PyCFunction)_wrap_Slider_GetValue, METH_O, NULL},
47349 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47350 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
47351 { (char *)"Slider_GetMin", (PyCFunction)_wrap_Slider_GetMin, METH_O, NULL},
47352 { (char *)"Slider_GetMax", (PyCFunction)_wrap_Slider_GetMax, METH_O, NULL},
47353 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
47354 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
47355 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL},
47356 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
47357 { (char *)"Slider_GetLineSize", (PyCFunction)_wrap_Slider_GetLineSize, METH_O, NULL},
47358 { (char *)"Slider_GetPageSize", (PyCFunction)_wrap_Slider_GetPageSize, METH_O, NULL},
47359 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL},
47360 { (char *)"Slider_GetThumbLength", (PyCFunction)_wrap_Slider_GetThumbLength, METH_O, NULL},
47361 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL},
47362 { (char *)"Slider_GetTickFreq", (PyCFunction)_wrap_Slider_GetTickFreq, METH_O, NULL},
47363 { (char *)"Slider_ClearTicks", (PyCFunction)_wrap_Slider_ClearTicks, METH_O, NULL},
47364 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL},
47365 { (char *)"Slider_ClearSel", (PyCFunction)_wrap_Slider_ClearSel, METH_O, NULL},
47366 { (char *)"Slider_GetSelEnd", (PyCFunction)_wrap_Slider_GetSelEnd, METH_O, NULL},
47367 { (char *)"Slider_GetSelStart", (PyCFunction)_wrap_Slider_GetSelStart, METH_O, NULL},
47368 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47369 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47370 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL},
47371 { (char *)"Slider_swiginit", Slider_swiginit, METH_VARARGS, NULL},
47372 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL},
47373 { (char *)"new_PreToggleButton", (PyCFunction)_wrap_new_PreToggleButton, METH_NOARGS, NULL},
47374 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47375 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47376 { (char *)"ToggleButton_GetValue", (PyCFunction)_wrap_ToggleButton_GetValue, METH_O, NULL},
47377 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47378 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL},
47379 { (char *)"ToggleButton_swiginit", ToggleButton_swiginit, METH_VARARGS, NULL},
47380 { (char *)"BookCtrlBase_GetPageCount", (PyCFunction)_wrap_BookCtrlBase_GetPageCount, METH_O, NULL},
47381 { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL},
47382 { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetCurrentPage, METH_O, NULL},
47383 { (char *)"BookCtrlBase_GetSelection", (PyCFunction)_wrap_BookCtrlBase_GetSelection, METH_O, NULL},
47384 { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
47385 { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
47386 { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47387 { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47388 { (char *)"BookCtrlBase_GetImageList", (PyCFunction)_wrap_BookCtrlBase_GetImageList, METH_O, NULL},
47389 { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
47390 { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
47391 { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
47392 { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL},
47393 { (char *)"BookCtrlBase_GetInternalBorder", (PyCFunction)_wrap_BookCtrlBase_GetInternalBorder, METH_O, NULL},
47394 { (char *)"BookCtrlBase_SetInternalBorder", (PyCFunction) _wrap_BookCtrlBase_SetInternalBorder, METH_VARARGS | METH_KEYWORDS, NULL},
47395 { (char *)"BookCtrlBase_IsVertical", (PyCFunction)_wrap_BookCtrlBase_IsVertical, METH_O, NULL},
47396 { (char *)"BookCtrlBase_SetControlMargin", (PyCFunction) _wrap_BookCtrlBase_SetControlMargin, METH_VARARGS | METH_KEYWORDS, NULL},
47397 { (char *)"BookCtrlBase_GetControlMargin", (PyCFunction)_wrap_BookCtrlBase_GetControlMargin, METH_O, NULL},
47398 { (char *)"BookCtrlBase_SetFitToCurrentPage", (PyCFunction) _wrap_BookCtrlBase_SetFitToCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL},
47399 { (char *)"BookCtrlBase_GetFitToCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetFitToCurrentPage, METH_O, NULL},
47400 { (char *)"BookCtrlBase_GetControlSizer", (PyCFunction)_wrap_BookCtrlBase_GetControlSizer, METH_O, NULL},
47401 { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL},
47402 { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL},
47403 { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction)_wrap_BookCtrlBase_DeleteAllPages, METH_O, NULL},
47404 { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL},
47405 { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL},
47406 { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47407 { (char *)"BookCtrlBase_ChangeSelection", (PyCFunction) _wrap_BookCtrlBase_ChangeSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47408 { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47409 { (char *)"BookCtrlBase_HitTest", (PyCFunction) _wrap_BookCtrlBase_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
47410 { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47411 { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL},
47412 { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47413 { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetSelection, METH_O, NULL},
47414 { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47415 { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetOldSelection, METH_O, NULL},
47416 { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47417 { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL},
47418 { (char *)"BookCtrlBaseEvent_swiginit", BookCtrlBaseEvent_swiginit, METH_VARARGS, NULL},
47419 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL},
47420 { (char *)"new_PreNotebook", (PyCFunction)_wrap_new_PreNotebook, METH_NOARGS, NULL},
47421 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47422 { (char *)"Notebook_GetRowCount", (PyCFunction)_wrap_Notebook_GetRowCount, METH_O, NULL},
47423 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL},
47424 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL},
47425 { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction)_wrap_Notebook_GetThemeBackgroundColour, METH_O, NULL},
47426 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47427 { (char *)"Notebook_SendPageChangingEvent", (PyCFunction) _wrap_Notebook_SendPageChangingEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47428 { (char *)"Notebook_SendPageChangedEvent", (PyCFunction) _wrap_Notebook_SendPageChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47429 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL},
47430 { (char *)"Notebook_swiginit", Notebook_swiginit, METH_VARARGS, NULL},
47431 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47432 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL},
47433 { (char *)"NotebookEvent_swiginit", NotebookEvent_swiginit, METH_VARARGS, NULL},
47434 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL},
47435 { (char *)"new_PreListbook", (PyCFunction)_wrap_new_PreListbook, METH_NOARGS, NULL},
47436 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47437 { (char *)"Listbook_GetListView", (PyCFunction)_wrap_Listbook_GetListView, METH_O, NULL},
47438 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL},
47439 { (char *)"Listbook_swiginit", Listbook_swiginit, METH_VARARGS, NULL},
47440 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47441 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL},
47442 { (char *)"ListbookEvent_swiginit", ListbookEvent_swiginit, METH_VARARGS, NULL},
47443 { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL},
47444 { (char *)"new_PreChoicebook", (PyCFunction)_wrap_new_PreChoicebook, METH_NOARGS, NULL},
47445 { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47446 { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction)_wrap_Choicebook_GetChoiceCtrl, METH_O, NULL},
47447 { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL},
47448 { (char *)"Choicebook_swiginit", Choicebook_swiginit, METH_VARARGS, NULL},
47449 { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47450 { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL},
47451 { (char *)"ChoicebookEvent_swiginit", ChoicebookEvent_swiginit, METH_VARARGS, NULL},
47452 { (char *)"new_Treebook", (PyCFunction) _wrap_new_Treebook, METH_VARARGS | METH_KEYWORDS, NULL},
47453 { (char *)"new_PreTreebook", (PyCFunction)_wrap_new_PreTreebook, METH_NOARGS, NULL},
47454 { (char *)"Treebook_Create", (PyCFunction) _wrap_Treebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47455 { (char *)"Treebook_InsertSubPage", (PyCFunction) _wrap_Treebook_InsertSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
47456 { (char *)"Treebook_AddSubPage", (PyCFunction) _wrap_Treebook_AddSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
47457 { (char *)"Treebook_IsNodeExpanded", (PyCFunction) _wrap_Treebook_IsNodeExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
47458 { (char *)"Treebook_ExpandNode", (PyCFunction) _wrap_Treebook_ExpandNode, METH_VARARGS | METH_KEYWORDS, NULL},
47459 { (char *)"Treebook_CollapseNode", (PyCFunction) _wrap_Treebook_CollapseNode, METH_VARARGS | METH_KEYWORDS, NULL},
47460 { (char *)"Treebook_GetPageParent", (PyCFunction) _wrap_Treebook_GetPageParent, METH_VARARGS | METH_KEYWORDS, NULL},
47461 { (char *)"Treebook_GetTreeCtrl", (PyCFunction)_wrap_Treebook_GetTreeCtrl, METH_O, NULL},
47462 { (char *)"Treebook_swigregister", Treebook_swigregister, METH_VARARGS, NULL},
47463 { (char *)"Treebook_swiginit", Treebook_swiginit, METH_VARARGS, NULL},
47464 { (char *)"new_TreebookEvent", (PyCFunction) _wrap_new_TreebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47465 { (char *)"TreebookEvent_swigregister", TreebookEvent_swigregister, METH_VARARGS, NULL},
47466 { (char *)"TreebookEvent_swiginit", TreebookEvent_swiginit, METH_VARARGS, NULL},
47467 { (char *)"new_Toolbook", (PyCFunction) _wrap_new_Toolbook, METH_VARARGS | METH_KEYWORDS, NULL},
47468 { (char *)"new_PreToolbook", (PyCFunction)_wrap_new_PreToolbook, METH_NOARGS, NULL},
47469 { (char *)"Toolbook_Create", (PyCFunction) _wrap_Toolbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47470 { (char *)"Toolbook_GetToolBar", (PyCFunction)_wrap_Toolbook_GetToolBar, METH_O, NULL},
47471 { (char *)"Toolbook_Realize", (PyCFunction)_wrap_Toolbook_Realize, METH_O, NULL},
47472 { (char *)"Toolbook_swigregister", Toolbook_swigregister, METH_VARARGS, NULL},
47473 { (char *)"Toolbook_swiginit", Toolbook_swiginit, METH_VARARGS, NULL},
47474 { (char *)"new_ToolbookEvent", (PyCFunction) _wrap_new_ToolbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47475 { (char *)"ToolbookEvent_swigregister", ToolbookEvent_swigregister, METH_VARARGS, NULL},
47476 { (char *)"ToolbookEvent_swiginit", ToolbookEvent_swiginit, METH_VARARGS, NULL},
47477 { (char *)"ToolBarToolBase_GetId", (PyCFunction)_wrap_ToolBarToolBase_GetId, METH_O, NULL},
47478 { (char *)"ToolBarToolBase_GetControl", (PyCFunction)_wrap_ToolBarToolBase_GetControl, METH_O, NULL},
47479 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction)_wrap_ToolBarToolBase_GetToolBar, METH_O, NULL},
47480 { (char *)"ToolBarToolBase_IsButton", (PyCFunction)_wrap_ToolBarToolBase_IsButton, METH_O, NULL},
47481 { (char *)"ToolBarToolBase_IsControl", (PyCFunction)_wrap_ToolBarToolBase_IsControl, METH_O, NULL},
47482 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction)_wrap_ToolBarToolBase_IsSeparator, METH_O, NULL},
47483 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction)_wrap_ToolBarToolBase_GetStyle, METH_O, NULL},
47484 { (char *)"ToolBarToolBase_GetKind", (PyCFunction)_wrap_ToolBarToolBase_GetKind, METH_O, NULL},
47485 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction)_wrap_ToolBarToolBase_IsEnabled, METH_O, NULL},
47486 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction)_wrap_ToolBarToolBase_IsToggled, METH_O, NULL},
47487 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction)_wrap_ToolBarToolBase_CanBeToggled, METH_O, NULL},
47488 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetNormalBitmap, METH_O, NULL},
47489 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetDisabledBitmap, METH_O, NULL},
47490 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetBitmap, METH_O, NULL},
47491 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction)_wrap_ToolBarToolBase_GetLabel, METH_O, NULL},
47492 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction)_wrap_ToolBarToolBase_GetShortHelp, METH_O, NULL},
47493 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction)_wrap_ToolBarToolBase_GetLongHelp, METH_O, NULL},
47494 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
47495 { (char *)"ToolBarToolBase_Toggle", (PyCFunction)_wrap_ToolBarToolBase_Toggle, METH_O, NULL},
47496 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
47497 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47498 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47499 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47500 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47501 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
47502 { (char *)"ToolBarToolBase_Detach", (PyCFunction)_wrap_ToolBarToolBase_Detach, METH_O, NULL},
47503 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL},
47504 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction)_wrap_ToolBarToolBase_GetClientData, METH_O, NULL},
47505 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
47506 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL},
47507 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL},
47508 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL},
47509 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
47510 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
47511 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL},
47512 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL},
47513 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL},
47514 { (char *)"ToolBarBase_AddSeparator", (PyCFunction)_wrap_ToolBarBase_AddSeparator, METH_O, NULL},
47515 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL},
47516 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL},
47517 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL},
47518 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL},
47519 { (char *)"ToolBarBase_ClearTools", (PyCFunction)_wrap_ToolBarBase_ClearTools, METH_O, NULL},
47520 { (char *)"ToolBarBase_Realize", (PyCFunction)_wrap_ToolBarBase_Realize, METH_O, NULL},
47521 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL},
47522 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL},
47523 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
47524 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
47525 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
47526 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL},
47527 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL},
47528 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
47529 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47530 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47531 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47532 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47533 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL},
47534 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
47535 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL},
47536 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL},
47537 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction)_wrap_ToolBarBase_GetToolMargins, METH_O, NULL},
47538 { (char *)"ToolBarBase_GetMargins", (PyCFunction)_wrap_ToolBarBase_GetMargins, METH_O, NULL},
47539 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction)_wrap_ToolBarBase_GetToolPacking, METH_O, NULL},
47540 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction)_wrap_ToolBarBase_GetToolSeparation, METH_O, NULL},
47541 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL},
47542 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL},
47543 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction)_wrap_ToolBarBase_GetMaxRows, METH_O, NULL},
47544 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction)_wrap_ToolBarBase_GetMaxCols, METH_O, NULL},
47545 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL},
47546 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction)_wrap_ToolBarBase_GetToolBitmapSize, METH_O, NULL},
47547 { (char *)"ToolBarBase_GetToolSize", (PyCFunction)_wrap_ToolBarBase_GetToolSize, METH_O, NULL},
47548 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47549 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL},
47550 { (char *)"ToolBarBase_IsVertical", (PyCFunction)_wrap_ToolBarBase_IsVertical, METH_O, NULL},
47551 { (char *)"ToolBarBase_GetToolsCount", (PyCFunction)_wrap_ToolBarBase_GetToolsCount, METH_O, NULL},
47552 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL},
47553 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL},
47554 { (char *)"new_PreToolBar", (PyCFunction)_wrap_new_PreToolBar, METH_NOARGS, NULL},
47555 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47556 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47557 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL},
47558 { (char *)"ToolBar_swiginit", ToolBar_swiginit, METH_VARARGS, NULL},
47559 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL},
47560 { (char *)"delete_ListItemAttr", (PyCFunction)_wrap_delete_ListItemAttr, METH_O, NULL},
47561 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47562 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47563 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
47564 { (char *)"ListItemAttr_HasTextColour", (PyCFunction)_wrap_ListItemAttr_HasTextColour, METH_O, NULL},
47565 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction)_wrap_ListItemAttr_HasBackgroundColour, METH_O, NULL},
47566 { (char *)"ListItemAttr_HasFont", (PyCFunction)_wrap_ListItemAttr_HasFont, METH_O, NULL},
47567 { (char *)"ListItemAttr_GetTextColour", (PyCFunction)_wrap_ListItemAttr_GetTextColour, METH_O, NULL},
47568 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction)_wrap_ListItemAttr_GetBackgroundColour, METH_O, NULL},
47569 { (char *)"ListItemAttr_GetFont", (PyCFunction)_wrap_ListItemAttr_GetFont, METH_O, NULL},
47570 { (char *)"ListItemAttr_AssignFrom", (PyCFunction) _wrap_ListItemAttr_AssignFrom, METH_VARARGS | METH_KEYWORDS, NULL},
47571 { (char *)"ListItemAttr_Destroy", (PyCFunction)_wrap_ListItemAttr_Destroy, METH_O, NULL},
47572 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL},
47573 { (char *)"ListItemAttr_swiginit", ListItemAttr_swiginit, METH_VARARGS, NULL},
47574 { (char *)"new_ListItem", (PyCFunction)_wrap_new_ListItem, METH_NOARGS, NULL},
47575 { (char *)"delete_ListItem", (PyCFunction)_wrap_delete_ListItem, METH_O, NULL},
47576 { (char *)"ListItem_Clear", (PyCFunction)_wrap_ListItem_Clear, METH_O, NULL},
47577 { (char *)"ListItem_ClearAttributes", (PyCFunction)_wrap_ListItem_ClearAttributes, METH_O, NULL},
47578 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
47579 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
47580 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
47581 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
47582 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL},
47583 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
47584 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL},
47585 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
47586 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
47587 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL},
47588 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47589 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47590 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
47591 { (char *)"ListItem_GetMask", (PyCFunction)_wrap_ListItem_GetMask, METH_O, NULL},
47592 { (char *)"ListItem_GetId", (PyCFunction)_wrap_ListItem_GetId, METH_O, NULL},
47593 { (char *)"ListItem_GetColumn", (PyCFunction)_wrap_ListItem_GetColumn, METH_O, NULL},
47594 { (char *)"ListItem_GetState", (PyCFunction)_wrap_ListItem_GetState, METH_O, NULL},
47595 { (char *)"ListItem_GetText", (PyCFunction)_wrap_ListItem_GetText, METH_O, NULL},
47596 { (char *)"ListItem_GetImage", (PyCFunction)_wrap_ListItem_GetImage, METH_O, NULL},
47597 { (char *)"ListItem_GetData", (PyCFunction)_wrap_ListItem_GetData, METH_O, NULL},
47598 { (char *)"ListItem_GetWidth", (PyCFunction)_wrap_ListItem_GetWidth, METH_O, NULL},
47599 { (char *)"ListItem_GetAlign", (PyCFunction)_wrap_ListItem_GetAlign, METH_O, NULL},
47600 { (char *)"ListItem_GetAttributes", (PyCFunction)_wrap_ListItem_GetAttributes, METH_O, NULL},
47601 { (char *)"ListItem_HasAttributes", (PyCFunction)_wrap_ListItem_HasAttributes, METH_O, NULL},
47602 { (char *)"ListItem_GetTextColour", (PyCFunction)_wrap_ListItem_GetTextColour, METH_O, NULL},
47603 { (char *)"ListItem_GetBackgroundColour", (PyCFunction)_wrap_ListItem_GetBackgroundColour, METH_O, NULL},
47604 { (char *)"ListItem_GetFont", (PyCFunction)_wrap_ListItem_GetFont, METH_O, NULL},
47605 { (char *)"ListItem_m_mask_set", _wrap_ListItem_m_mask_set, METH_VARARGS, NULL},
47606 { (char *)"ListItem_m_mask_get", (PyCFunction)_wrap_ListItem_m_mask_get, METH_O, NULL},
47607 { (char *)"ListItem_m_itemId_set", _wrap_ListItem_m_itemId_set, METH_VARARGS, NULL},
47608 { (char *)"ListItem_m_itemId_get", (PyCFunction)_wrap_ListItem_m_itemId_get, METH_O, NULL},
47609 { (char *)"ListItem_m_col_set", _wrap_ListItem_m_col_set, METH_VARARGS, NULL},
47610 { (char *)"ListItem_m_col_get", (PyCFunction)_wrap_ListItem_m_col_get, METH_O, NULL},
47611 { (char *)"ListItem_m_state_set", _wrap_ListItem_m_state_set, METH_VARARGS, NULL},
47612 { (char *)"ListItem_m_state_get", (PyCFunction)_wrap_ListItem_m_state_get, METH_O, NULL},
47613 { (char *)"ListItem_m_stateMask_set", _wrap_ListItem_m_stateMask_set, METH_VARARGS, NULL},
47614 { (char *)"ListItem_m_stateMask_get", (PyCFunction)_wrap_ListItem_m_stateMask_get, METH_O, NULL},
47615 { (char *)"ListItem_m_text_set", _wrap_ListItem_m_text_set, METH_VARARGS, NULL},
47616 { (char *)"ListItem_m_text_get", (PyCFunction)_wrap_ListItem_m_text_get, METH_O, NULL},
47617 { (char *)"ListItem_m_image_set", _wrap_ListItem_m_image_set, METH_VARARGS, NULL},
47618 { (char *)"ListItem_m_image_get", (PyCFunction)_wrap_ListItem_m_image_get, METH_O, NULL},
47619 { (char *)"ListItem_m_data_set", _wrap_ListItem_m_data_set, METH_VARARGS, NULL},
47620 { (char *)"ListItem_m_data_get", (PyCFunction)_wrap_ListItem_m_data_get, METH_O, NULL},
47621 { (char *)"ListItem_m_format_set", _wrap_ListItem_m_format_set, METH_VARARGS, NULL},
47622 { (char *)"ListItem_m_format_get", (PyCFunction)_wrap_ListItem_m_format_get, METH_O, NULL},
47623 { (char *)"ListItem_m_width_set", _wrap_ListItem_m_width_set, METH_VARARGS, NULL},
47624 { (char *)"ListItem_m_width_get", (PyCFunction)_wrap_ListItem_m_width_get, METH_O, NULL},
47625 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL},
47626 { (char *)"ListItem_swiginit", ListItem_swiginit, METH_VARARGS, NULL},
47627 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47628 { (char *)"ListEvent_m_code_set", _wrap_ListEvent_m_code_set, METH_VARARGS, NULL},
47629 { (char *)"ListEvent_m_code_get", (PyCFunction)_wrap_ListEvent_m_code_get, METH_O, NULL},
47630 { (char *)"ListEvent_m_oldItemIndex_set", _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS, NULL},
47631 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction)_wrap_ListEvent_m_oldItemIndex_get, METH_O, NULL},
47632 { (char *)"ListEvent_m_itemIndex_set", _wrap_ListEvent_m_itemIndex_set, METH_VARARGS, NULL},
47633 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction)_wrap_ListEvent_m_itemIndex_get, METH_O, NULL},
47634 { (char *)"ListEvent_m_col_set", _wrap_ListEvent_m_col_set, METH_VARARGS, NULL},
47635 { (char *)"ListEvent_m_col_get", (PyCFunction)_wrap_ListEvent_m_col_get, METH_O, NULL},
47636 { (char *)"ListEvent_m_pointDrag_set", _wrap_ListEvent_m_pointDrag_set, METH_VARARGS, NULL},
47637 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction)_wrap_ListEvent_m_pointDrag_get, METH_O, NULL},
47638 { (char *)"ListEvent_m_item_get", (PyCFunction)_wrap_ListEvent_m_item_get, METH_O, NULL},
47639 { (char *)"ListEvent_GetKeyCode", (PyCFunction)_wrap_ListEvent_GetKeyCode, METH_O, NULL},
47640 { (char *)"ListEvent_GetIndex", (PyCFunction)_wrap_ListEvent_GetIndex, METH_O, NULL},
47641 { (char *)"ListEvent_GetColumn", (PyCFunction)_wrap_ListEvent_GetColumn, METH_O, NULL},
47642 { (char *)"ListEvent_GetPoint", (PyCFunction)_wrap_ListEvent_GetPoint, METH_O, NULL},
47643 { (char *)"ListEvent_GetLabel", (PyCFunction)_wrap_ListEvent_GetLabel, METH_O, NULL},
47644 { (char *)"ListEvent_GetText", (PyCFunction)_wrap_ListEvent_GetText, METH_O, NULL},
47645 { (char *)"ListEvent_GetImage", (PyCFunction)_wrap_ListEvent_GetImage, METH_O, NULL},
47646 { (char *)"ListEvent_GetData", (PyCFunction)_wrap_ListEvent_GetData, METH_O, NULL},
47647 { (char *)"ListEvent_GetMask", (PyCFunction)_wrap_ListEvent_GetMask, METH_O, NULL},
47648 { (char *)"ListEvent_GetItem", (PyCFunction)_wrap_ListEvent_GetItem, METH_O, NULL},
47649 { (char *)"ListEvent_GetCacheFrom", (PyCFunction)_wrap_ListEvent_GetCacheFrom, METH_O, NULL},
47650 { (char *)"ListEvent_GetCacheTo", (PyCFunction)_wrap_ListEvent_GetCacheTo, METH_O, NULL},
47651 { (char *)"ListEvent_IsEditCancelled", (PyCFunction)_wrap_ListEvent_IsEditCancelled, METH_O, NULL},
47652 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
47653 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL},
47654 { (char *)"ListEvent_swiginit", ListEvent_swiginit, METH_VARARGS, NULL},
47655 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47656 { (char *)"new_PreListCtrl", (PyCFunction)_wrap_new_PreListCtrl, METH_NOARGS, NULL},
47657 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47658 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
47659 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
47660 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
47661 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
47662 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
47663 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction)_wrap_ListCtrl_GetCountPerPage, METH_O, NULL},
47664 { (char *)"ListCtrl_GetViewRect", (PyCFunction)_wrap_ListCtrl_GetViewRect, METH_O, NULL},
47665 { (char *)"ListCtrl_GetEditControl", (PyCFunction)_wrap_ListCtrl_GetEditControl, METH_O, NULL},
47666 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL},
47667 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
47668 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
47669 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
47670 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
47671 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
47672 { (char *)"ListCtrl_SetItemColumnImage", (PyCFunction) _wrap_ListCtrl_SetItemColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
47673 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
47674 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
47675 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47676 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47677 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47678 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL},
47679 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47680 { (char *)"ListCtrl_GetItemCount", (PyCFunction)_wrap_ListCtrl_GetItemCount, METH_O, NULL},
47681 { (char *)"ListCtrl_GetColumnCount", (PyCFunction)_wrap_ListCtrl_GetColumnCount, METH_O, NULL},
47682 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction)_wrap_ListCtrl_GetItemSpacing, METH_O, NULL},
47683 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction)_wrap_ListCtrl_GetSelectedItemCount, METH_O, NULL},
47684 { (char *)"ListCtrl_GetTextColour", (PyCFunction)_wrap_ListCtrl_GetTextColour, METH_O, NULL},
47685 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47686 { (char *)"ListCtrl_GetTopItem", (PyCFunction)_wrap_ListCtrl_GetTopItem, METH_O, NULL},
47687 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL},
47688 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
47689 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47690 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47691 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47692 { (char *)"ListCtrl_InReportView", (PyCFunction)_wrap_ListCtrl_InReportView, METH_O, NULL},
47693 { (char *)"ListCtrl_IsVirtual", (PyCFunction)_wrap_ListCtrl_IsVirtual, METH_O, NULL},
47694 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL},
47695 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL},
47696 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL},
47697 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL},
47698 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction)_wrap_ListCtrl_DeleteAllItems, METH_O, NULL},
47699 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL},
47700 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction)_wrap_ListCtrl_DeleteAllColumns, METH_O, NULL},
47701 { (char *)"ListCtrl_ClearAll", (PyCFunction)_wrap_ListCtrl_ClearAll, METH_O, NULL},
47702 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
47703 { (char *)"ListCtrl_EndEditLabel", (PyCFunction) _wrap_ListCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
47704 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47705 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL},
47706 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47707 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL},
47708 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
47709 { (char *)"ListCtrl_HitTestSubItem", (PyCFunction) _wrap_ListCtrl_HitTestSubItem, METH_VARARGS | METH_KEYWORDS, NULL},
47710 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
47711 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
47712 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL},
47713 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
47714 { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL},
47715 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL},
47716 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL},
47717 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL},
47718 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47719 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47720 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47721 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47722 { (char *)"ListCtrl_SetItemFont", (PyCFunction) _wrap_ListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
47723 { (char *)"ListCtrl_GetItemFont", (PyCFunction) _wrap_ListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
47724 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL},
47725 { (char *)"ListCtrl_GetMainWindow", (PyCFunction)_wrap_ListCtrl_GetMainWindow, METH_O, NULL},
47726 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47727 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL},
47728 { (char *)"ListCtrl_swiginit", ListCtrl_swiginit, METH_VARARGS, NULL},
47729 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL},
47730 { (char *)"new_PreListView", (PyCFunction)_wrap_new_PreListView, METH_NOARGS, NULL},
47731 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47732 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL},
47733 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL},
47734 { (char *)"ListView_GetFocusedItem", (PyCFunction)_wrap_ListView_GetFocusedItem, METH_O, NULL},
47735 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL},
47736 { (char *)"ListView_GetFirstSelected", (PyCFunction)_wrap_ListView_GetFirstSelected, METH_O, NULL},
47737 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
47738 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
47739 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
47740 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL},
47741 { (char *)"ListView_swiginit", ListView_swiginit, METH_VARARGS, NULL},
47742 { (char *)"new_TreeItemId", (PyCFunction)_wrap_new_TreeItemId, METH_NOARGS, NULL},
47743 { (char *)"delete_TreeItemId", (PyCFunction)_wrap_delete_TreeItemId, METH_O, NULL},
47744 { (char *)"TreeItemId_IsOk", (PyCFunction)_wrap_TreeItemId_IsOk, METH_O, NULL},
47745 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
47746 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
47747 { (char *)"TreeItemId_m_pItem_set", _wrap_TreeItemId_m_pItem_set, METH_VARARGS, NULL},
47748 { (char *)"TreeItemId_m_pItem_get", (PyCFunction)_wrap_TreeItemId_m_pItem_get, METH_O, NULL},
47749 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL},
47750 { (char *)"TreeItemId_swiginit", TreeItemId_swiginit, METH_VARARGS, NULL},
47751 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47752 { (char *)"delete_TreeItemData", (PyCFunction)_wrap_delete_TreeItemData, METH_O, NULL},
47753 { (char *)"TreeItemData_GetData", (PyCFunction)_wrap_TreeItemData_GetData, METH_O, NULL},
47754 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
47755 { (char *)"TreeItemData_GetId", (PyCFunction)_wrap_TreeItemData_GetId, METH_O, NULL},
47756 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
47757 { (char *)"TreeItemData_Destroy", (PyCFunction)_wrap_TreeItemData_Destroy, METH_O, NULL},
47758 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL},
47759 { (char *)"TreeItemData_swiginit", TreeItemData_swiginit, METH_VARARGS, NULL},
47760 { (char *)"new_TreeEvent", _wrap_new_TreeEvent, METH_VARARGS, NULL},
47761 { (char *)"TreeEvent_GetItem", (PyCFunction)_wrap_TreeEvent_GetItem, METH_O, NULL},
47762 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
47763 { (char *)"TreeEvent_GetOldItem", (PyCFunction)_wrap_TreeEvent_GetOldItem, METH_O, NULL},
47764 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL},
47765 { (char *)"TreeEvent_GetPoint", (PyCFunction)_wrap_TreeEvent_GetPoint, METH_O, NULL},
47766 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL},
47767 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction)_wrap_TreeEvent_GetKeyEvent, METH_O, NULL},
47768 { (char *)"TreeEvent_GetKeyCode", (PyCFunction)_wrap_TreeEvent_GetKeyCode, METH_O, NULL},
47769 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47770 { (char *)"TreeEvent_GetLabel", (PyCFunction)_wrap_TreeEvent_GetLabel, METH_O, NULL},
47771 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
47772 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction)_wrap_TreeEvent_IsEditCancelled, METH_O, NULL},
47773 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
47774 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
47775 { (char *)"TreeEvent_GetToolTip", (PyCFunction)_wrap_TreeEvent_GetToolTip, METH_O, NULL},
47776 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL},
47777 { (char *)"TreeEvent_swiginit", TreeEvent_swiginit, METH_VARARGS, NULL},
47778 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47779 { (char *)"new_PreTreeCtrl", (PyCFunction)_wrap_new_PreTreeCtrl, METH_NOARGS, NULL},
47780 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47781 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
47782 { (char *)"TreeCtrl_GetCount", (PyCFunction)_wrap_TreeCtrl_GetCount, METH_O, NULL},
47783 { (char *)"TreeCtrl_GetIndent", (PyCFunction)_wrap_TreeCtrl_GetIndent, METH_O, NULL},
47784 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL},
47785 { (char *)"TreeCtrl_GetSpacing", (PyCFunction)_wrap_TreeCtrl_GetSpacing, METH_O, NULL},
47786 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
47787 { (char *)"TreeCtrl_GetImageList", (PyCFunction)_wrap_TreeCtrl_GetImageList, METH_O, NULL},
47788 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction)_wrap_TreeCtrl_GetStateImageList, METH_O, NULL},
47789 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47790 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47791 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47792 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47793 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
47794 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
47795 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47796 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
47797 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47798 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47799 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
47800 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
47801 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
47802 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47803 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
47804 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47805 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL},
47806 { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL},
47807 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47808 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47809 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
47810 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47811 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47812 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
47813 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
47814 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL},
47815 { (char *)"TreeCtrl_IsEmpty", (PyCFunction)_wrap_TreeCtrl_IsEmpty, METH_O, NULL},
47816 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL},
47817 { (char *)"TreeCtrl_GetRootItem", (PyCFunction)_wrap_TreeCtrl_GetRootItem, METH_O, NULL},
47818 { (char *)"TreeCtrl_GetSelection", (PyCFunction)_wrap_TreeCtrl_GetSelection, METH_O, NULL},
47819 { (char *)"TreeCtrl_GetSelections", (PyCFunction)_wrap_TreeCtrl_GetSelections, METH_O, NULL},
47820 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL},
47821 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL},
47822 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL},
47823 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL},
47824 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL},
47825 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL},
47826 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction)_wrap_TreeCtrl_GetFirstVisibleItem, METH_O, NULL},
47827 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47828 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47829 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL},
47830 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL},
47831 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
47832 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL},
47833 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL},
47834 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
47835 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47836 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction)_wrap_TreeCtrl_DeleteAllItems, METH_O, NULL},
47837 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL},
47838 { (char *)"TreeCtrl_ExpandAllChildren", (PyCFunction) _wrap_TreeCtrl_ExpandAllChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47839 { (char *)"TreeCtrl_ExpandAll", (PyCFunction)_wrap_TreeCtrl_ExpandAll, METH_O, NULL},
47840 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
47841 { (char *)"TreeCtrl_CollapseAllChildren", (PyCFunction) _wrap_TreeCtrl_CollapseAllChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47842 { (char *)"TreeCtrl_CollapseAll", (PyCFunction)_wrap_TreeCtrl_CollapseAll, METH_O, NULL},
47843 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL},
47844 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL},
47845 { (char *)"TreeCtrl_Unselect", (PyCFunction)_wrap_TreeCtrl_Unselect, METH_O, NULL},
47846 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL},
47847 { (char *)"TreeCtrl_UnselectAll", (PyCFunction)_wrap_TreeCtrl_UnselectAll, METH_O, NULL},
47848 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL},
47849 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47850 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47851 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL},
47852 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
47853 { (char *)"TreeCtrl_GetEditControl", (PyCFunction)_wrap_TreeCtrl_GetEditControl, METH_O, NULL},
47854 { (char *)"TreeCtrl_EndEditLabel", (PyCFunction) _wrap_TreeCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
47855 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47856 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
47857 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL},
47858 { (char *)"TreeCtrl_SetState", (PyCFunction) _wrap_TreeCtrl_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
47859 { (char *)"TreeCtrl_GetState", (PyCFunction) _wrap_TreeCtrl_GetState, METH_VARARGS | METH_KEYWORDS, NULL},
47860 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47861 { (char *)"TreeCtrl_SetQuickBestSize", (PyCFunction) _wrap_TreeCtrl_SetQuickBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
47862 { (char *)"TreeCtrl_GetQuickBestSize", (PyCFunction)_wrap_TreeCtrl_GetQuickBestSize, METH_O, NULL},
47863 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL},
47864 { (char *)"TreeCtrl_swiginit", TreeCtrl_swiginit, METH_VARARGS, NULL},
47865 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47866 { (char *)"new_PreGenericDirCtrl", (PyCFunction)_wrap_new_PreGenericDirCtrl, METH_NOARGS, NULL},
47867 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47868 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL},
47869 { (char *)"GenericDirCtrl_CollapsePath", (PyCFunction) _wrap_GenericDirCtrl_CollapsePath, METH_VARARGS | METH_KEYWORDS, NULL},
47870 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction)_wrap_GenericDirCtrl_GetDefaultPath, METH_O, NULL},
47871 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL},
47872 { (char *)"GenericDirCtrl_GetPath", (PyCFunction)_wrap_GenericDirCtrl_GetPath, METH_O, NULL},
47873 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction)_wrap_GenericDirCtrl_GetFilePath, METH_O, NULL},
47874 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
47875 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL},
47876 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction)_wrap_GenericDirCtrl_GetShowHidden, METH_O, NULL},
47877 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction)_wrap_GenericDirCtrl_GetFilter, METH_O, NULL},
47878 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL},
47879 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction)_wrap_GenericDirCtrl_GetFilterIndex, METH_O, NULL},
47880 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL},
47881 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction)_wrap_GenericDirCtrl_GetRootId, METH_O, NULL},
47882 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetTreeCtrl, METH_O, NULL},
47883 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetFilterListCtrl, METH_O, NULL},
47884 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL},
47885 { (char *)"GenericDirCtrl_DoResize", (PyCFunction)_wrap_GenericDirCtrl_DoResize, METH_O, NULL},
47886 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction)_wrap_GenericDirCtrl_ReCreateTree, METH_O, NULL},
47887 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL},
47888 { (char *)"GenericDirCtrl_swiginit", GenericDirCtrl_swiginit, METH_VARARGS, NULL},
47889 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47890 { (char *)"new_PreDirFilterListCtrl", (PyCFunction)_wrap_new_PreDirFilterListCtrl, METH_NOARGS, NULL},
47891 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47892 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL},
47893 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL},
47894 { (char *)"DirFilterListCtrl_swiginit", DirFilterListCtrl_swiginit, METH_VARARGS, NULL},
47895 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL},
47896 { (char *)"new_PrePyControl", (PyCFunction)_wrap_new_PrePyControl, METH_NOARGS, NULL},
47897 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
47898 { (char *)"PyControl_DoEraseBackground", (PyCFunction) _wrap_PyControl_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL},
47899 { (char *)"PyControl_DoMoveWindow", (PyCFunction) _wrap_PyControl_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL},
47900 { (char *)"PyControl_DoSetSize", (PyCFunction) _wrap_PyControl_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL},
47901 { (char *)"PyControl_DoSetClientSize", (PyCFunction) _wrap_PyControl_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL},
47902 { (char *)"PyControl_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL},
47903 { (char *)"PyControl_DoGetSize", (PyCFunction)_wrap_PyControl_DoGetSize, METH_O, NULL},
47904 { (char *)"PyControl_DoGetClientSize", (PyCFunction)_wrap_PyControl_DoGetClientSize, METH_O, NULL},
47905 { (char *)"PyControl_DoGetPosition", (PyCFunction)_wrap_PyControl_DoGetPosition, METH_O, NULL},
47906 { (char *)"PyControl_DoGetVirtualSize", (PyCFunction)_wrap_PyControl_DoGetVirtualSize, METH_O, NULL},
47907 { (char *)"PyControl_DoGetBestSize", (PyCFunction)_wrap_PyControl_DoGetBestSize, METH_O, NULL},
47908 { (char *)"PyControl_GetDefaultAttributes", (PyCFunction)_wrap_PyControl_GetDefaultAttributes, METH_O, NULL},
47909 { (char *)"PyControl_OnInternalIdle", (PyCFunction)_wrap_PyControl_OnInternalIdle, METH_O, NULL},
47910 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL},
47911 { (char *)"PyControl_swiginit", PyControl_swiginit, METH_VARARGS, NULL},
47912 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47913 { (char *)"HelpEvent_GetPosition", (PyCFunction)_wrap_HelpEvent_GetPosition, METH_O, NULL},
47914 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47915 { (char *)"HelpEvent_GetLink", (PyCFunction)_wrap_HelpEvent_GetLink, METH_O, NULL},
47916 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL},
47917 { (char *)"HelpEvent_GetTarget", (PyCFunction)_wrap_HelpEvent_GetTarget, METH_O, NULL},
47918 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL},
47919 { (char *)"HelpEvent_GetOrigin", (PyCFunction)_wrap_HelpEvent_GetOrigin, METH_O, NULL},
47920 { (char *)"HelpEvent_SetOrigin", (PyCFunction) _wrap_HelpEvent_SetOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
47921 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL},
47922 { (char *)"HelpEvent_swiginit", HelpEvent_swiginit, METH_VARARGS, NULL},
47923 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47924 { (char *)"delete_ContextHelp", (PyCFunction)_wrap_delete_ContextHelp, METH_O, NULL},
47925 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47926 { (char *)"ContextHelp_EndContextHelp", (PyCFunction)_wrap_ContextHelp_EndContextHelp, METH_O, NULL},
47927 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL},
47928 { (char *)"ContextHelp_swiginit", ContextHelp_swiginit, METH_VARARGS, NULL},
47929 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL},
47930 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL},
47931 { (char *)"ContextHelpButton_swiginit", ContextHelpButton_swiginit, METH_VARARGS, NULL},
47932 { (char *)"delete_HelpProvider", (PyCFunction)_wrap_delete_HelpProvider, METH_O, NULL},
47933 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL},
47934 { (char *)"HelpProvider_Get", (PyCFunction)_wrap_HelpProvider_Get, METH_NOARGS, NULL},
47935 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47936 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47937 { (char *)"HelpProvider_ShowHelpAtPoint", (PyCFunction) _wrap_HelpProvider_ShowHelpAtPoint, METH_VARARGS | METH_KEYWORDS, NULL},
47938 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47939 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL},
47940 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47941 { (char *)"HelpProvider_Destroy", (PyCFunction)_wrap_HelpProvider_Destroy, METH_O, NULL},
47942 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL},
47943 { (char *)"new_SimpleHelpProvider", (PyCFunction)_wrap_new_SimpleHelpProvider, METH_NOARGS, NULL},
47944 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL},
47945 { (char *)"SimpleHelpProvider_swiginit", SimpleHelpProvider_swiginit, METH_VARARGS, NULL},
47946 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL},
47947 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL},
47948 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL},
47949 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL},
47950 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL},
47951 { (char *)"delete_DragImage", (PyCFunction)_wrap_delete_DragImage, METH_O, NULL},
47952 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47953 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL},
47954 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL},
47955 { (char *)"DragImage_EndDrag", (PyCFunction)_wrap_DragImage_EndDrag, METH_O, NULL},
47956 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL},
47957 { (char *)"DragImage_Show", (PyCFunction)_wrap_DragImage_Show, METH_O, NULL},
47958 { (char *)"DragImage_Hide", (PyCFunction)_wrap_DragImage_Hide, METH_O, NULL},
47959 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL},
47960 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
47961 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL},
47962 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
47963 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL},
47964 { (char *)"DragImage_swiginit", DragImage_swiginit, METH_VARARGS, NULL},
47965 { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47966 { (char *)"new_PreDatePickerCtrl", (PyCFunction)_wrap_new_PreDatePickerCtrl, METH_NOARGS, NULL},
47967 { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47968 { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47969 { (char *)"DatePickerCtrl_GetValue", (PyCFunction)_wrap_DatePickerCtrl_GetValue, METH_O, NULL},
47970 { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
47971 { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction)_wrap_DatePickerCtrl_GetLowerLimit, METH_O, NULL},
47972 { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction)_wrap_DatePickerCtrl_GetUpperLimit, METH_O, NULL},
47973 { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL},
47974 { (char *)"DatePickerCtrl_swiginit", DatePickerCtrl_swiginit, METH_VARARGS, NULL},
47975 { (char *)"new_HyperlinkCtrl", (PyCFunction) _wrap_new_HyperlinkCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47976 { (char *)"new_PreHyperlinkCtrl", (PyCFunction)_wrap_new_PreHyperlinkCtrl, METH_NOARGS, NULL},
47977 { (char *)"HyperlinkCtrl_Create", (PyCFunction) _wrap_HyperlinkCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47978 { (char *)"HyperlinkCtrl_GetHoverColour", (PyCFunction)_wrap_HyperlinkCtrl_GetHoverColour, METH_O, NULL},
47979 { (char *)"HyperlinkCtrl_SetHoverColour", (PyCFunction) _wrap_HyperlinkCtrl_SetHoverColour, METH_VARARGS | METH_KEYWORDS, NULL},
47980 { (char *)"HyperlinkCtrl_GetNormalColour", (PyCFunction)_wrap_HyperlinkCtrl_GetNormalColour, METH_O, NULL},
47981 { (char *)"HyperlinkCtrl_SetNormalColour", (PyCFunction) _wrap_HyperlinkCtrl_SetNormalColour, METH_VARARGS | METH_KEYWORDS, NULL},
47982 { (char *)"HyperlinkCtrl_GetVisitedColour", (PyCFunction)_wrap_HyperlinkCtrl_GetVisitedColour, METH_O, NULL},
47983 { (char *)"HyperlinkCtrl_SetVisitedColour", (PyCFunction) _wrap_HyperlinkCtrl_SetVisitedColour, METH_VARARGS | METH_KEYWORDS, NULL},
47984 { (char *)"HyperlinkCtrl_GetURL", (PyCFunction)_wrap_HyperlinkCtrl_GetURL, METH_O, NULL},
47985 { (char *)"HyperlinkCtrl_SetURL", (PyCFunction) _wrap_HyperlinkCtrl_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
47986 { (char *)"HyperlinkCtrl_SetVisited", (PyCFunction) _wrap_HyperlinkCtrl_SetVisited, METH_VARARGS | METH_KEYWORDS, NULL},
47987 { (char *)"HyperlinkCtrl_GetVisited", (PyCFunction)_wrap_HyperlinkCtrl_GetVisited, METH_O, NULL},
47988 { (char *)"HyperlinkCtrl_swigregister", HyperlinkCtrl_swigregister, METH_VARARGS, NULL},
47989 { (char *)"HyperlinkCtrl_swiginit", HyperlinkCtrl_swiginit, METH_VARARGS, NULL},
47990 { (char *)"new_HyperlinkEvent", (PyCFunction) _wrap_new_HyperlinkEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47991 { (char *)"HyperlinkEvent_GetURL", (PyCFunction)_wrap_HyperlinkEvent_GetURL, METH_O, NULL},
47992 { (char *)"HyperlinkEvent_SetURL", (PyCFunction) _wrap_HyperlinkEvent_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
47993 { (char *)"HyperlinkEvent_swigregister", HyperlinkEvent_swigregister, METH_VARARGS, NULL},
47994 { (char *)"HyperlinkEvent_swiginit", HyperlinkEvent_swiginit, METH_VARARGS, NULL},
47995 { (char *)"PickerBase_CreateBase", (PyCFunction) _wrap_PickerBase_CreateBase, METH_VARARGS | METH_KEYWORDS, NULL},
47996 { (char *)"PickerBase_SetInternalMargin", (PyCFunction) _wrap_PickerBase_SetInternalMargin, METH_VARARGS | METH_KEYWORDS, NULL},
47997 { (char *)"PickerBase_GetInternalMargin", (PyCFunction)_wrap_PickerBase_GetInternalMargin, METH_O, NULL},
47998 { (char *)"PickerBase_SetTextCtrlProportion", (PyCFunction) _wrap_PickerBase_SetTextCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
47999 { (char *)"PickerBase_GetTextCtrlProportion", (PyCFunction)_wrap_PickerBase_GetTextCtrlProportion, METH_O, NULL},
48000 { (char *)"PickerBase_SetPickerCtrlProportion", (PyCFunction) _wrap_PickerBase_SetPickerCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
48001 { (char *)"PickerBase_GetPickerCtrlProportion", (PyCFunction)_wrap_PickerBase_GetPickerCtrlProportion, METH_O, NULL},
48002 { (char *)"PickerBase_IsTextCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsTextCtrlGrowable, METH_O, NULL},
48003 { (char *)"PickerBase_SetTextCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetTextCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
48004 { (char *)"PickerBase_IsPickerCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsPickerCtrlGrowable, METH_O, NULL},
48005 { (char *)"PickerBase_SetPickerCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetPickerCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
48006 { (char *)"PickerBase_HasTextCtrl", (PyCFunction)_wrap_PickerBase_HasTextCtrl, METH_O, NULL},
48007 { (char *)"PickerBase_GetTextCtrl", (PyCFunction)_wrap_PickerBase_GetTextCtrl, METH_O, NULL},
48008 { (char *)"PickerBase_GetPickerCtrl", (PyCFunction)_wrap_PickerBase_GetPickerCtrl, METH_O, NULL},
48009 { (char *)"PickerBase_swigregister", PickerBase_swigregister, METH_VARARGS, NULL},
48010 { (char *)"new_ColourPickerCtrl", (PyCFunction) _wrap_new_ColourPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
48011 { (char *)"new_PreColourPickerCtrl", (PyCFunction)_wrap_new_PreColourPickerCtrl, METH_NOARGS, NULL},
48012 { (char *)"ColourPickerCtrl_Create", (PyCFunction) _wrap_ColourPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
48013 { (char *)"ColourPickerCtrl_GetColour", (PyCFunction)_wrap_ColourPickerCtrl_GetColour, METH_O, NULL},
48014 { (char *)"ColourPickerCtrl_SetColour", (PyCFunction) _wrap_ColourPickerCtrl_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
48015 { (char *)"ColourPickerCtrl_swigregister", ColourPickerCtrl_swigregister, METH_VARARGS, NULL},
48016 { (char *)"ColourPickerCtrl_swiginit", ColourPickerCtrl_swiginit, METH_VARARGS, NULL},
48017 { (char *)"new_ColourPickerEvent", (PyCFunction) _wrap_new_ColourPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
48018 { (char *)"ColourPickerEvent_GetColour", (PyCFunction)_wrap_ColourPickerEvent_GetColour, METH_O, NULL},
48019 { (char *)"ColourPickerEvent_SetColour", (PyCFunction) _wrap_ColourPickerEvent_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
48020 { (char *)"ColourPickerEvent_swigregister", ColourPickerEvent_swigregister, METH_VARARGS, NULL},
48021 { (char *)"ColourPickerEvent_swiginit", ColourPickerEvent_swiginit, METH_VARARGS, NULL},
48022 { (char *)"new_FilePickerCtrl", (PyCFunction) _wrap_new_FilePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
48023 { (char *)"new_PreFilePickerCtrl", (PyCFunction)_wrap_new_PreFilePickerCtrl, METH_NOARGS, NULL},
48024 { (char *)"FilePickerCtrl_Create", (PyCFunction) _wrap_FilePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
48025 { (char *)"FilePickerCtrl_GetPath", (PyCFunction)_wrap_FilePickerCtrl_GetPath, METH_O, NULL},
48026 { (char *)"FilePickerCtrl_SetPath", (PyCFunction) _wrap_FilePickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
48027 { (char *)"FilePickerCtrl_CheckPath", (PyCFunction) _wrap_FilePickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
48028 { (char *)"FilePickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_FilePickerCtrl_GetTextCtrlValue, METH_O, NULL},
48029 { (char *)"FilePickerCtrl_swigregister", FilePickerCtrl_swigregister, METH_VARARGS, NULL},
48030 { (char *)"FilePickerCtrl_swiginit", FilePickerCtrl_swiginit, METH_VARARGS, NULL},
48031 { (char *)"new_DirPickerCtrl", (PyCFunction) _wrap_new_DirPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
48032 { (char *)"new_PreDirPickerCtrl", (PyCFunction)_wrap_new_PreDirPickerCtrl, METH_NOARGS, NULL},
48033 { (char *)"DirPickerCtrl_Create", (PyCFunction) _wrap_DirPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
48034 { (char *)"DirPickerCtrl_GetPath", (PyCFunction)_wrap_DirPickerCtrl_GetPath, METH_O, NULL},
48035 { (char *)"DirPickerCtrl_SetPath", (PyCFunction) _wrap_DirPickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
48036 { (char *)"DirPickerCtrl_CheckPath", (PyCFunction) _wrap_DirPickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
48037 { (char *)"DirPickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_DirPickerCtrl_GetTextCtrlValue, METH_O, NULL},
48038 { (char *)"DirPickerCtrl_swigregister", DirPickerCtrl_swigregister, METH_VARARGS, NULL},
48039 { (char *)"DirPickerCtrl_swiginit", DirPickerCtrl_swiginit, METH_VARARGS, NULL},
48040 { (char *)"new_FileDirPickerEvent", (PyCFunction) _wrap_new_FileDirPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
48041 { (char *)"FileDirPickerEvent_GetPath", (PyCFunction)_wrap_FileDirPickerEvent_GetPath, METH_O, NULL},
48042 { (char *)"FileDirPickerEvent_SetPath", (PyCFunction) _wrap_FileDirPickerEvent_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
48043 { (char *)"FileDirPickerEvent_swigregister", FileDirPickerEvent_swigregister, METH_VARARGS, NULL},
48044 { (char *)"FileDirPickerEvent_swiginit", FileDirPickerEvent_swiginit, METH_VARARGS, NULL},
48045 { (char *)"new_FontPickerCtrl", (PyCFunction) _wrap_new_FontPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
48046 { (char *)"new_PreFontPickerCtrl", (PyCFunction)_wrap_new_PreFontPickerCtrl, METH_NOARGS, NULL},
48047 { (char *)"FontPickerCtrl_Create", (PyCFunction) _wrap_FontPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
48048 { (char *)"FontPickerCtrl_GetSelectedFont", (PyCFunction)_wrap_FontPickerCtrl_GetSelectedFont, METH_O, NULL},
48049 { (char *)"FontPickerCtrl_SetSelectedFont", (PyCFunction) _wrap_FontPickerCtrl_SetSelectedFont, METH_VARARGS | METH_KEYWORDS, NULL},
48050 { (char *)"FontPickerCtrl_SetMaxPointSize", (PyCFunction) _wrap_FontPickerCtrl_SetMaxPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
48051 { (char *)"FontPickerCtrl_GetMaxPointSize", (PyCFunction)_wrap_FontPickerCtrl_GetMaxPointSize, METH_O, NULL},
48052 { (char *)"FontPickerCtrl_swigregister", FontPickerCtrl_swigregister, METH_VARARGS, NULL},
48053 { (char *)"FontPickerCtrl_swiginit", FontPickerCtrl_swiginit, METH_VARARGS, NULL},
48054 { (char *)"new_FontPickerEvent", (PyCFunction) _wrap_new_FontPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
48055 { (char *)"FontPickerEvent_GetFont", (PyCFunction)_wrap_FontPickerEvent_GetFont, METH_O, NULL},
48056 { (char *)"FontPickerEvent_SetFont", (PyCFunction) _wrap_FontPickerEvent_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
48057 { (char *)"FontPickerEvent_swigregister", FontPickerEvent_swigregister, METH_VARARGS, NULL},
48058 { (char *)"FontPickerEvent_swiginit", FontPickerEvent_swiginit, METH_VARARGS, NULL},
48059 { (char *)"new_CollapsiblePane", (PyCFunction) _wrap_new_CollapsiblePane, METH_VARARGS | METH_KEYWORDS, NULL},
48060 { (char *)"new_PreCollapsiblePane", (PyCFunction)_wrap_new_PreCollapsiblePane, METH_NOARGS, NULL},
48061 { (char *)"CollapsiblePane_Create", (PyCFunction) _wrap_CollapsiblePane_Create, METH_VARARGS | METH_KEYWORDS, NULL},
48062 { (char *)"CollapsiblePane_Collapse", (PyCFunction) _wrap_CollapsiblePane_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
48063 { (char *)"CollapsiblePane_Expand", (PyCFunction)_wrap_CollapsiblePane_Expand, METH_O, NULL},
48064 { (char *)"CollapsiblePane_IsCollapsed", (PyCFunction)_wrap_CollapsiblePane_IsCollapsed, METH_O, NULL},
48065 { (char *)"CollapsiblePane_IsExpanded", (PyCFunction)_wrap_CollapsiblePane_IsExpanded, METH_O, NULL},
48066 { (char *)"CollapsiblePane_GetPane", (PyCFunction)_wrap_CollapsiblePane_GetPane, METH_O, NULL},
48067 { (char *)"CollapsiblePane_swigregister", CollapsiblePane_swigregister, METH_VARARGS, NULL},
48068 { (char *)"CollapsiblePane_swiginit", CollapsiblePane_swiginit, METH_VARARGS, NULL},
48069 { (char *)"new_CollapsiblePaneEvent", (PyCFunction) _wrap_new_CollapsiblePaneEvent, METH_VARARGS | METH_KEYWORDS, NULL},
48070 { (char *)"CollapsiblePaneEvent_GetCollapsed", (PyCFunction)_wrap_CollapsiblePaneEvent_GetCollapsed, METH_O, NULL},
48071 { (char *)"CollapsiblePaneEvent_SetCollapsed", (PyCFunction) _wrap_CollapsiblePaneEvent_SetCollapsed, METH_VARARGS | METH_KEYWORDS, NULL},
48072 { (char *)"CollapsiblePaneEvent_swigregister", CollapsiblePaneEvent_swigregister, METH_VARARGS, NULL},
48073 { (char *)"CollapsiblePaneEvent_swiginit", CollapsiblePaneEvent_swiginit, METH_VARARGS, NULL},
48074 { (char *)"new_SearchCtrl", (PyCFunction) _wrap_new_SearchCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
48075 { (char *)"new_PreSearchCtrl", (PyCFunction)_wrap_new_PreSearchCtrl, METH_NOARGS, NULL},
48076 { (char *)"SearchCtrl_Create", (PyCFunction) _wrap_SearchCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
48077 { (char *)"SearchCtrl_SetMenu", (PyCFunction) _wrap_SearchCtrl_SetMenu, METH_VARARGS | METH_KEYWORDS, NULL},
48078 { (char *)"SearchCtrl_GetMenu", (PyCFunction)_wrap_SearchCtrl_GetMenu, METH_O, NULL},
48079 { (char *)"SearchCtrl_ShowSearchButton", (PyCFunction) _wrap_SearchCtrl_ShowSearchButton, METH_VARARGS | METH_KEYWORDS, NULL},
48080 { (char *)"SearchCtrl_IsSearchButtonVisible", (PyCFunction)_wrap_SearchCtrl_IsSearchButtonVisible, METH_O, NULL},
48081 { (char *)"SearchCtrl_ShowCancelButton", (PyCFunction) _wrap_SearchCtrl_ShowCancelButton, METH_VARARGS | METH_KEYWORDS, NULL},
48082 { (char *)"SearchCtrl_IsCancelButtonVisible", (PyCFunction)_wrap_SearchCtrl_IsCancelButtonVisible, METH_O, NULL},
48083 { (char *)"SearchCtrl_SetSearchBitmap", (PyCFunction) _wrap_SearchCtrl_SetSearchBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
48084 { (char *)"SearchCtrl_SetSearchMenuBitmap", (PyCFunction) _wrap_SearchCtrl_SetSearchMenuBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
48085 { (char *)"SearchCtrl_SetCancelBitmap", (PyCFunction) _wrap_SearchCtrl_SetCancelBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
48086 { (char *)"SearchCtrl_swigregister", SearchCtrl_swigregister, METH_VARARGS, NULL},
48087 { (char *)"SearchCtrl_swiginit", SearchCtrl_swiginit, METH_VARARGS, NULL},
48088 { NULL, NULL, 0, NULL }
48089 };
48090
48091
48092 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
48093
48094 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
48095 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
48096 }
48097 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
48098 return (void *)((wxEvent *) ((wxMenuEvent *) x));
48099 }
48100 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
48101 return (void *)((wxEvent *) ((wxCloseEvent *) x));
48102 }
48103 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
48104 return (void *)((wxEvent *) ((wxMouseEvent *) x));
48105 }
48106 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
48107 return (void *)((wxEvent *) ((wxEraseEvent *) x));
48108 }
48109 static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) {
48110 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
48111 }
48112 static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
48113 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
48114 }
48115 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
48116 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
48117 }
48118 static void *_p_wxColourPickerEventTo_p_wxEvent(void *x) {
48119 return (void *)((wxEvent *) (wxCommandEvent *) ((wxColourPickerEvent *) x));
48120 }
48121 static void *_p_wxFileDirPickerEventTo_p_wxEvent(void *x) {
48122 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFileDirPickerEvent *) x));
48123 }
48124 static void *_p_wxFontPickerEventTo_p_wxEvent(void *x) {
48125 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFontPickerEvent *) x));
48126 }
48127 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
48128 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
48129 }
48130 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
48131 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
48132 }
48133 static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
48134 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
48135 }
48136 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
48137 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
48138 }
48139 static void *_p_wxMouseCaptureLostEventTo_p_wxEvent(void *x) {
48140 return (void *)((wxEvent *) ((wxMouseCaptureLostEvent *) x));
48141 }
48142 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
48143 return (void *)((wxEvent *) ((wxPyEvent *) x));
48144 }
48145 static void *_p_wxListEventTo_p_wxEvent(void *x) {
48146 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
48147 }
48148 static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
48149 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
48150 }
48151 static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
48152 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
48153 }
48154 static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) {
48155 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
48156 }
48157 static void *_p_wxTreebookEventTo_p_wxEvent(void *x) {
48158 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
48159 }
48160 static void *_p_wxToolbookEventTo_p_wxEvent(void *x) {
48161 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
48162 }
48163 static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
48164 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
48165 }
48166 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
48167 return (void *)((wxEvent *) ((wxIdleEvent *) x));
48168 }
48169 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
48170 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
48171 }
48172 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
48173 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
48174 }
48175 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
48176 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
48177 }
48178 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
48179 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
48180 }
48181 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
48182 return (void *)((wxEvent *) ((wxActivateEvent *) x));
48183 }
48184 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
48185 return (void *)((wxEvent *) ((wxSizeEvent *) x));
48186 }
48187 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
48188 return (void *)((wxEvent *) ((wxMoveEvent *) x));
48189 }
48190 static void *_p_wxDateEventTo_p_wxEvent(void *x) {
48191 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
48192 }
48193 static void *_p_wxCollapsiblePaneEventTo_p_wxEvent(void *x) {
48194 return (void *)((wxEvent *) (wxCommandEvent *) ((wxCollapsiblePaneEvent *) x));
48195 }
48196 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
48197 return (void *)((wxEvent *) ((wxPaintEvent *) x));
48198 }
48199 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
48200 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
48201 }
48202 static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) {
48203 return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x));
48204 }
48205 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
48206 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
48207 }
48208 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
48209 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
48210 }
48211 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
48212 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
48213 }
48214 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
48215 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
48216 }
48217 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
48218 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
48219 }
48220 static void *_p_wxHyperlinkEventTo_p_wxEvent(void *x) {
48221 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHyperlinkEvent *) x));
48222 }
48223 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
48224 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
48225 }
48226 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
48227 return (void *)((wxEvent *) ((wxFocusEvent *) x));
48228 }
48229 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
48230 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
48231 }
48232 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
48233 return (void *)((wxEvent *) ((wxShowEvent *) x));
48234 }
48235 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
48236 return (void *)((wxEvent *) ((wxCommandEvent *) x));
48237 }
48238 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
48239 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
48240 }
48241 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
48242 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
48243 }
48244 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
48245 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
48246 }
48247 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
48248 return (void *)((wxEvent *) ((wxKeyEvent *) x));
48249 }
48250 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
48251 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
48252 }
48253 static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
48254 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
48255 }
48256 static void *_p_wxColourPickerCtrlTo_p_wxPickerBase(void *x) {
48257 return (void *)((wxPickerBase *) ((wxColourPickerCtrl *) x));
48258 }
48259 static void *_p_wxFilePickerCtrlTo_p_wxPickerBase(void *x) {
48260 return (void *)((wxPickerBase *) ((wxFilePickerCtrl *) x));
48261 }
48262 static void *_p_wxDirPickerCtrlTo_p_wxPickerBase(void *x) {
48263 return (void *)((wxPickerBase *) ((wxDirPickerCtrl *) x));
48264 }
48265 static void *_p_wxFontPickerCtrlTo_p_wxPickerBase(void *x) {
48266 return (void *)((wxPickerBase *) ((wxFontPickerCtrl *) x));
48267 }
48268 static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
48269 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
48270 }
48271 static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
48272 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
48273 }
48274 static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
48275 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
48276 }
48277 static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
48278 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
48279 }
48280 static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
48281 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
48282 }
48283 static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
48284 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
48285 }
48286 static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
48287 return (void *)((wxPyListCtrl *) ((wxListView *) x));
48288 }
48289 static void *_p_wxCollapsiblePaneTo_p_wxControl(void *x) {
48290 return (void *)((wxControl *) ((wxCollapsiblePane *) x));
48291 }
48292 static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) {
48293 return (void *)((wxControl *) ((wxBookCtrlBase *) x));
48294 }
48295 static void *_p_wxToolBarTo_p_wxControl(void *x) {
48296 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
48297 }
48298 static void *_p_wxPickerBaseTo_p_wxControl(void *x) {
48299 return (void *)((wxControl *) ((wxPickerBase *) x));
48300 }
48301 static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
48302 return (void *)((wxControl *) ((wxToggleButton *) x));
48303 }
48304 static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
48305 return (void *)((wxControl *) ((wxRadioButton *) x));
48306 }
48307 static void *_p_wxSearchCtrlTo_p_wxControl(void *x) {
48308 return (void *)((wxControl *) (wxTextCtrl *) ((wxSearchCtrl *) x));
48309 }
48310 static void *_p_wxToolbookTo_p_wxControl(void *x) {
48311 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxToolbook *) x));
48312 }
48313 static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
48314 return (void *)((wxControl *) ((wxToolBarBase *) x));
48315 }
48316 static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
48317 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
48318 }
48319 static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
48320 return (void *)((wxControl *) ((wxPyListCtrl *) x));
48321 }
48322 static void *_p_wxComboBoxTo_p_wxControl(void *x) {
48323 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
48324 }
48325 static void *_p_wxPyControlTo_p_wxControl(void *x) {
48326 return (void *)((wxControl *) ((wxPyControl *) x));
48327 }
48328 static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
48329 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
48330 }
48331 static void *_p_wxScrollBarTo_p_wxControl(void *x) {
48332 return (void *)((wxControl *) ((wxScrollBar *) x));
48333 }
48334 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
48335 return (void *)((wxControl *) ((wxControlWithItems *) x));
48336 }
48337 static void *_p_wxGaugeTo_p_wxControl(void *x) {
48338 return (void *)((wxControl *) ((wxGauge *) x));
48339 }
48340 static void *_p_wxStaticLineTo_p_wxControl(void *x) {
48341 return (void *)((wxControl *) ((wxStaticLine *) x));
48342 }
48343 static void *_p_wxChoicebookTo_p_wxControl(void *x) {
48344 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x));
48345 }
48346 static void *_p_wxListbookTo_p_wxControl(void *x) {
48347 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x));
48348 }
48349 static void *_p_wxHyperlinkCtrlTo_p_wxControl(void *x) {
48350 return (void *)((wxControl *) ((wxHyperlinkCtrl *) x));
48351 }
48352 static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
48353 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
48354 }
48355 static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
48356 return (void *)((wxControl *) ((wxCheckBox *) x));
48357 }
48358 static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
48359 return (void *)((wxControl *) ((wxRadioBox *) x));
48360 }
48361 static void *_p_wxChoiceTo_p_wxControl(void *x) {
48362 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
48363 }
48364 static void *_p_wxListBoxTo_p_wxControl(void *x) {
48365 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
48366 }
48367 static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
48368 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
48369 }
48370 static void *_p_wxListViewTo_p_wxControl(void *x) {
48371 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
48372 }
48373 static void *_p_wxNotebookTo_p_wxControl(void *x) {
48374 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x));
48375 }
48376 static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
48377 return (void *)((wxControl *) ((wxStaticBitmap *) x));
48378 }
48379 static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
48380 return (void *)((wxControl *) ((wxSpinCtrl *) x));
48381 }
48382 static void *_p_wxStaticTextTo_p_wxControl(void *x) {
48383 return (void *)((wxControl *) ((wxStaticText *) x));
48384 }
48385 static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
48386 return (void *)((wxControl *) ((wxStaticBox *) x));
48387 }
48388 static void *_p_wxSliderTo_p_wxControl(void *x) {
48389 return (void *)((wxControl *) ((wxSlider *) x));
48390 }
48391 static void *_p_wxTreebookTo_p_wxControl(void *x) {
48392 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxTreebook *) x));
48393 }
48394 static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
48395 return (void *)((wxControl *) ((wxSpinButton *) x));
48396 }
48397 static void *_p_wxButtonTo_p_wxControl(void *x) {
48398 return (void *)((wxControl *) ((wxButton *) x));
48399 }
48400 static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
48401 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
48402 }
48403 static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
48404 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
48405 }
48406 static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) {
48407 return (void *)((wxControl *) ((wxDatePickerCtrl *) x));
48408 }
48409 static void *_p_wxColourPickerCtrlTo_p_wxControl(void *x) {
48410 return (void *)((wxControl *) (wxPickerBase *) ((wxColourPickerCtrl *) x));
48411 }
48412 static void *_p_wxFilePickerCtrlTo_p_wxControl(void *x) {
48413 return (void *)((wxControl *) (wxPickerBase *) ((wxFilePickerCtrl *) x));
48414 }
48415 static void *_p_wxDirPickerCtrlTo_p_wxControl(void *x) {
48416 return (void *)((wxControl *) (wxPickerBase *) ((wxDirPickerCtrl *) x));
48417 }
48418 static void *_p_wxFontPickerCtrlTo_p_wxControl(void *x) {
48419 return (void *)((wxControl *) (wxPickerBase *) ((wxFontPickerCtrl *) x));
48420 }
48421 static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
48422 return (void *)((wxControl *) ((wxTextCtrl *) x));
48423 }
48424 static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
48425 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
48426 }
48427 static void *_p_wxComboBoxTo_p_wxChoice(void *x) {
48428 return (void *)((wxChoice *) ((wxComboBox *) x));
48429 }
48430 static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
48431 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
48432 }
48433 static void *_p_wxSearchCtrlTo_p_wxTextCtrl(void *x) {
48434 return (void *)((wxTextCtrl *) ((wxSearchCtrl *) x));
48435 }
48436 static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) {
48437 return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
48438 }
48439 static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
48440 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
48441 }
48442 static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
48443 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
48444 }
48445 static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
48446 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
48447 }
48448 static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
48449 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
48450 }
48451 static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
48452 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
48453 }
48454 static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) {
48455 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
48456 }
48457 static void *_p_wxTreebookEventTo_p_wxNotifyEvent(void *x) {
48458 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
48459 }
48460 static void *_p_wxToolbookEventTo_p_wxNotifyEvent(void *x) {
48461 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
48462 }
48463 static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) {
48464 return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x));
48465 }
48466 static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) {
48467 return (void *)((wxBookCtrlBase *) ((wxListbook *) x));
48468 }
48469 static void *_p_wxToolbookTo_p_wxBookCtrlBase(void *x) {
48470 return (void *)((wxBookCtrlBase *) ((wxToolbook *) x));
48471 }
48472 static void *_p_wxTreebookTo_p_wxBookCtrlBase(void *x) {
48473 return (void *)((wxBookCtrlBase *) ((wxTreebook *) x));
48474 }
48475 static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) {
48476 return (void *)((wxBookCtrlBase *) ((wxNotebook *) x));
48477 }
48478 static void *_p_wxCollapsiblePaneTo_p_wxEvtHandler(void *x) {
48479 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCollapsiblePane *) x));
48480 }
48481 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
48482 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
48483 }
48484 static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) {
48485 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
48486 }
48487 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
48488 return (void *)((wxEvtHandler *) ((wxValidator *) x));
48489 }
48490 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
48491 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
48492 }
48493 static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
48494 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
48495 }
48496 static void *_p_wxPickerBaseTo_p_wxEvtHandler(void *x) {
48497 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPickerBase *) x));
48498 }
48499 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
48500 return (void *)((wxEvtHandler *) ((wxMenu *) x));
48501 }
48502 static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
48503 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
48504 }
48505 static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
48506 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
48507 }
48508 static void *_p_wxSearchCtrlTo_p_wxEvtHandler(void *x) {
48509 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxTextCtrl *) ((wxSearchCtrl *) x));
48510 }
48511 static void *_p_wxToolbookTo_p_wxEvtHandler(void *x) {
48512 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
48513 }
48514 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
48515 return (void *)((wxEvtHandler *) ((wxWindow *) x));
48516 }
48517 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
48518 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
48519 }
48520 static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
48521 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
48522 }
48523 static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
48524 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
48525 }
48526 static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
48527 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
48528 }
48529 static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
48530 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
48531 }
48532 static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
48533 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
48534 }
48535 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
48536 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
48537 }
48538 static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
48539 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
48540 }
48541 static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
48542 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
48543 }
48544 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
48545 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
48546 }
48547 static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
48548 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
48549 }
48550 static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
48551 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
48552 }
48553 static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) {
48554 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
48555 }
48556 static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
48557 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
48558 }
48559 static void *_p_wxHyperlinkCtrlTo_p_wxEvtHandler(void *x) {
48560 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
48561 }
48562 static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
48563 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
48564 }
48565 static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
48566 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
48567 }
48568 static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
48569 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
48570 }
48571 static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
48572 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
48573 }
48574 static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
48575 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
48576 }
48577 static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
48578 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
48579 }
48580 static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
48581 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
48582 }
48583 static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
48584 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
48585 }
48586 static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
48587 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
48588 }
48589 static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
48590 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
48591 }
48592 static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
48593 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
48594 }
48595 static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
48596 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
48597 }
48598 static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
48599 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
48600 }
48601 static void *_p_wxTreebookTo_p_wxEvtHandler(void *x) {
48602 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
48603 }
48604 static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
48605 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
48606 }
48607 static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
48608 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
48609 }
48610 static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
48611 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
48612 }
48613 static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
48614 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
48615 }
48616 static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) {
48617 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
48618 }
48619 static void *_p_wxColourPickerCtrlTo_p_wxEvtHandler(void *x) {
48620 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
48621 }
48622 static void *_p_wxFilePickerCtrlTo_p_wxEvtHandler(void *x) {
48623 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
48624 }
48625 static void *_p_wxDirPickerCtrlTo_p_wxEvtHandler(void *x) {
48626 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
48627 }
48628 static void *_p_wxFontPickerCtrlTo_p_wxEvtHandler(void *x) {
48629 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
48630 }
48631 static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
48632 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
48633 }
48634 static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
48635 return (void *)((wxListBox *) ((wxCheckListBox *) x));
48636 }
48637 static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
48638 return (void *)((wxButton *) ((wxBitmapButton *) x));
48639 }
48640 static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
48641 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
48642 }
48643 static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
48644 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
48645 }
48646 static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
48647 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
48648 }
48649 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
48650 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
48651 }
48652 static void *_p_wxToolbookTo_p_wxObject(void *x) {
48653 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
48654 }
48655 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
48656 return (void *)((wxObject *) ((wxSizerItem *) x));
48657 }
48658 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
48659 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
48660 }
48661 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
48662 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
48663 }
48664 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
48665 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
48666 }
48667 static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
48668 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
48669 }
48670 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
48671 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
48672 }
48673 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
48674 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
48675 }
48676 static void *_p_wxSizerTo_p_wxObject(void *x) {
48677 return (void *)((wxObject *) ((wxSizer *) x));
48678 }
48679 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
48680 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
48681 }
48682 static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
48683 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
48684 }
48685 static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
48686 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
48687 }
48688 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
48689 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
48690 }
48691 static void *_p_wxEventTo_p_wxObject(void *x) {
48692 return (void *)((wxObject *) ((wxEvent *) x));
48693 }
48694 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
48695 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
48696 }
48697 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
48698 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
48699 }
48700 static void *_p_wxSearchCtrlTo_p_wxObject(void *x) {
48701 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxTextCtrl *) ((wxSearchCtrl *) x));
48702 }
48703 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
48704 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
48705 }
48706 static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
48707 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
48708 }
48709 static void *_p_wxPickerBaseTo_p_wxObject(void *x) {
48710 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPickerBase *) x));
48711 }
48712 static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
48713 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
48714 }
48715 static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
48716 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
48717 }
48718 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
48719 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
48720 }
48721 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
48722 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
48723 }
48724 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
48725 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
48726 }
48727 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
48728 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
48729 }
48730 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
48731 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
48732 }
48733 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
48734 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
48735 }
48736 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
48737 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
48738 }
48739 static void *_p_wxStaticLineTo_p_wxObject(void *x) {
48740 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
48741 }
48742 static void *_p_wxControlTo_p_wxObject(void *x) {
48743 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
48744 }
48745 static void *_p_wxPyControlTo_p_wxObject(void *x) {
48746 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
48747 }
48748 static void *_p_wxGaugeTo_p_wxObject(void *x) {
48749 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
48750 }
48751 static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
48752 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
48753 }
48754 static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
48755 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
48756 }
48757 static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
48758 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
48759 }
48760 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
48761 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
48762 }
48763 static void *_p_wxColourPickerEventTo_p_wxObject(void *x) {
48764 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxColourPickerEvent *) x));
48765 }
48766 static void *_p_wxFileDirPickerEventTo_p_wxObject(void *x) {
48767 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFileDirPickerEvent *) x));
48768 }
48769 static void *_p_wxFontPickerEventTo_p_wxObject(void *x) {
48770 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFontPickerEvent *) x));
48771 }
48772 static void *_p_wxChoiceTo_p_wxObject(void *x) {
48773 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
48774 }
48775 static void *_p_wxFSFileTo_p_wxObject(void *x) {
48776 return (void *)((wxObject *) ((wxFSFile *) x));
48777 }
48778 static void *_p_wxPySizerTo_p_wxObject(void *x) {
48779 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
48780 }
48781 static void *_p_wxTreebookTo_p_wxObject(void *x) {
48782 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
48783 }
48784 static void *_p_wxListViewTo_p_wxObject(void *x) {
48785 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
48786 }
48787 static void *_p_wxHyperlinkEventTo_p_wxObject(void *x) {
48788 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHyperlinkEvent *) x));
48789 }
48790 static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
48791 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
48792 }
48793 static void *_p_wxNotebookTo_p_wxObject(void *x) {
48794 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
48795 }
48796 static void *_p_wxPyEventTo_p_wxObject(void *x) {
48797 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
48798 }
48799 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
48800 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
48801 }
48802 static void *_p_wxChoicebookTo_p_wxObject(void *x) {
48803 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
48804 }
48805 static void *_p_wxListbookTo_p_wxObject(void *x) {
48806 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
48807 }
48808 static void *_p_wxShowEventTo_p_wxObject(void *x) {
48809 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
48810 }
48811 static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
48812 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
48813 }
48814 static void *_p_wxSliderTo_p_wxObject(void *x) {
48815 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
48816 }
48817 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
48818 return (void *)((wxObject *) ((wxMenuItem *) x));
48819 }
48820 static void *_p_wxDateEventTo_p_wxObject(void *x) {
48821 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
48822 }
48823 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
48824 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
48825 }
48826 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
48827 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
48828 }
48829 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
48830 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
48831 }
48832 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
48833 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
48834 }
48835 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
48836 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
48837 }
48838 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
48839 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
48840 }
48841 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
48842 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
48843 }
48844 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
48845 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
48846 }
48847 static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
48848 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
48849 }
48850 static void *_p_wxContextHelpTo_p_wxObject(void *x) {
48851 return (void *)((wxObject *) ((wxContextHelp *) x));
48852 }
48853 static void *_p_wxCollapsiblePaneEventTo_p_wxObject(void *x) {
48854 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxCollapsiblePaneEvent *) x));
48855 }
48856 static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) {
48857 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
48858 }
48859 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
48860 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
48861 }
48862 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
48863 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
48864 }
48865 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
48866 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
48867 }
48868 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
48869 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
48870 }
48871 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
48872 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
48873 }
48874 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
48875 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
48876 }
48877 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
48878 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
48879 }
48880 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
48881 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
48882 }
48883 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
48884 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
48885 }
48886 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
48887 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
48888 }
48889 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
48890 return (void *)((wxObject *) ((wxImageHandler *) x));
48891 }
48892 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
48893 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
48894 }
48895 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
48896 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
48897 }
48898 static void *_p_wxTGAHandlerTo_p_wxObject(void *x) {
48899 return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x));
48900 }
48901 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
48902 return (void *)((wxObject *) ((wxEvtHandler *) x));
48903 }
48904 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
48905 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
48906 }
48907 static void *_p_wxListEventTo_p_wxObject(void *x) {
48908 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
48909 }
48910 static void *_p_wxListBoxTo_p_wxObject(void *x) {
48911 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
48912 }
48913 static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
48914 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
48915 }
48916 static void *_p_wxButtonTo_p_wxObject(void *x) {
48917 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
48918 }
48919 static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
48920 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
48921 }
48922 static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
48923 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
48924 }
48925 static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
48926 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
48927 }
48928 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
48929 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
48930 }
48931 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
48932 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
48933 }
48934 static void *_p_wxScrollBarTo_p_wxObject(void *x) {
48935 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
48936 }
48937 static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
48938 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
48939 }
48940 static void *_p_wxComboBoxTo_p_wxObject(void *x) {
48941 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
48942 }
48943 static void *_p_wxHelpEventTo_p_wxObject(void *x) {
48944 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
48945 }
48946 static void *_p_wxListItemTo_p_wxObject(void *x) {
48947 return (void *)((wxObject *) ((wxListItem *) x));
48948 }
48949 static void *_p_wxImageTo_p_wxObject(void *x) {
48950 return (void *)((wxObject *) ((wxImage *) x));
48951 }
48952 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
48953 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
48954 }
48955 static void *_p_wxSpinEventTo_p_wxObject(void *x) {
48956 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
48957 }
48958 static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
48959 return (void *)((wxObject *) ((wxGenericDragImage *) x));
48960 }
48961 static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
48962 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
48963 }
48964 static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
48965 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
48966 }
48967 static void *_p_wxListbookEventTo_p_wxObject(void *x) {
48968 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
48969 }
48970 static void *_p_wxChoicebookEventTo_p_wxObject(void *x) {
48971 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
48972 }
48973 static void *_p_wxTreebookEventTo_p_wxObject(void *x) {
48974 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
48975 }
48976 static void *_p_wxToolbookEventTo_p_wxObject(void *x) {
48977 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
48978 }
48979 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
48980 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
48981 }
48982 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
48983 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
48984 }
48985 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
48986 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
48987 }
48988 static void *_p_wxWindowTo_p_wxObject(void *x) {
48989 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
48990 }
48991 static void *_p_wxMenuTo_p_wxObject(void *x) {
48992 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
48993 }
48994 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
48995 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
48996 }
48997 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
48998 return (void *)((wxObject *) ((wxFileSystem *) x));
48999 }
49000 static void *_p_wxCollapsiblePaneTo_p_wxObject(void *x) {
49001 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCollapsiblePane *) x));
49002 }
49003 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
49004 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
49005 }
49006 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
49007 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
49008 }
49009 static void *_p_wxPyAppTo_p_wxObject(void *x) {
49010 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
49011 }
49012 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
49013 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
49014 }
49015 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
49016 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
49017 }
49018 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
49019 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
49020 }
49021 static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) {
49022 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
49023 }
49024 static void *_p_wxTreeEventTo_p_wxObject(void *x) {
49025 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
49026 }
49027 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
49028 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
49029 }
49030 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
49031 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
49032 }
49033 static void *_p_wxStaticTextTo_p_wxObject(void *x) {
49034 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
49035 }
49036 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
49037 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
49038 }
49039 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
49040 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
49041 }
49042 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
49043 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
49044 }
49045 static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) {
49046 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
49047 }
49048 static void *_p_wxColourPickerCtrlTo_p_wxObject(void *x) {
49049 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
49050 }
49051 static void *_p_wxFilePickerCtrlTo_p_wxObject(void *x) {
49052 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
49053 }
49054 static void *_p_wxDirPickerCtrlTo_p_wxObject(void *x) {
49055 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
49056 }
49057 static void *_p_wxFontPickerCtrlTo_p_wxObject(void *x) {
49058 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
49059 }
49060 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
49061 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
49062 }
49063 static void *_p_wxHyperlinkCtrlTo_p_wxObject(void *x) {
49064 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
49065 }
49066 static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
49067 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
49068 }
49069 static void *_p_wxToolBarTo_p_wxObject(void *x) {
49070 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
49071 }
49072 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
49073 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
49074 }
49075 static void *_p_wxValidatorTo_p_wxObject(void *x) {
49076 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
49077 }
49078 static void *_p_wxCollapsiblePaneTo_p_wxWindow(void *x) {
49079 return (void *)((wxWindow *) (wxControl *) ((wxCollapsiblePane *) x));
49080 }
49081 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
49082 return (void *)((wxWindow *) ((wxMenuBar *) x));
49083 }
49084 static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) {
49085 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x));
49086 }
49087 static void *_p_wxToolBarTo_p_wxWindow(void *x) {
49088 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
49089 }
49090 static void *_p_wxPickerBaseTo_p_wxWindow(void *x) {
49091 return (void *)((wxWindow *) (wxControl *) ((wxPickerBase *) x));
49092 }
49093 static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
49094 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
49095 }
49096 static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
49097 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
49098 }
49099 static void *_p_wxSearchCtrlTo_p_wxWindow(void *x) {
49100 return (void *)((wxWindow *) (wxControl *)(wxTextCtrl *) ((wxSearchCtrl *) x));
49101 }
49102 static void *_p_wxToolbookTo_p_wxWindow(void *x) {
49103 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
49104 }
49105 static void *_p_wxControlTo_p_wxWindow(void *x) {
49106 return (void *)((wxWindow *) ((wxControl *) x));
49107 }
49108 static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
49109 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
49110 }
49111 static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
49112 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
49113 }
49114 static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
49115 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
49116 }
49117 static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
49118 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
49119 }
49120 static void *_p_wxPyControlTo_p_wxWindow(void *x) {
49121 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
49122 }
49123 static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
49124 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
49125 }
49126 static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
49127 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
49128 }
49129 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
49130 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
49131 }
49132 static void *_p_wxGaugeTo_p_wxWindow(void *x) {
49133 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
49134 }
49135 static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
49136 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
49137 }
49138 static void *_p_wxChoicebookTo_p_wxWindow(void *x) {
49139 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
49140 }
49141 static void *_p_wxListbookTo_p_wxWindow(void *x) {
49142 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
49143 }
49144 static void *_p_wxHyperlinkCtrlTo_p_wxWindow(void *x) {
49145 return (void *)((wxWindow *) (wxControl *) ((wxHyperlinkCtrl *) x));
49146 }
49147 static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
49148 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
49149 }
49150 static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
49151 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
49152 }
49153 static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
49154 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
49155 }
49156 static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
49157 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
49158 }
49159 static void *_p_wxChoiceTo_p_wxWindow(void *x) {
49160 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
49161 }
49162 static void *_p_wxListBoxTo_p_wxWindow(void *x) {
49163 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
49164 }
49165 static void *_p_wxListViewTo_p_wxWindow(void *x) {
49166 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
49167 }
49168 static void *_p_wxNotebookTo_p_wxWindow(void *x) {
49169 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
49170 }
49171 static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
49172 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
49173 }
49174 static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
49175 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
49176 }
49177 static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
49178 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
49179 }
49180 static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
49181 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
49182 }
49183 static void *_p_wxSliderTo_p_wxWindow(void *x) {
49184 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
49185 }
49186 static void *_p_wxTreebookTo_p_wxWindow(void *x) {
49187 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
49188 }
49189 static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
49190 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
49191 }
49192 static void *_p_wxButtonTo_p_wxWindow(void *x) {
49193 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
49194 }
49195 static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
49196 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
49197 }
49198 static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
49199 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
49200 }
49201 static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) {
49202 return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x));
49203 }
49204 static void *_p_wxColourPickerCtrlTo_p_wxWindow(void *x) {
49205 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
49206 }
49207 static void *_p_wxFilePickerCtrlTo_p_wxWindow(void *x) {
49208 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
49209 }
49210 static void *_p_wxDirPickerCtrlTo_p_wxWindow(void *x) {
49211 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
49212 }
49213 static void *_p_wxFontPickerCtrlTo_p_wxWindow(void *x) {
49214 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
49215 }
49216 static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
49217 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
49218 }
49219 static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
49220 return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
49221 }
49222 static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
49223 return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
49224 }
49225 static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
49226 return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
49227 }
49228 static void *_p_wxTreebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
49229 return (void *)((wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
49230 }
49231 static void *_p_wxToolbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
49232 return (void *)((wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
49233 }
49234 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
49235 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
49236 }
49237 static void *_p_wxHyperlinkEventTo_p_wxCommandEvent(void *x) {
49238 return (void *)((wxCommandEvent *) ((wxHyperlinkEvent *) x));
49239 }
49240 static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) {
49241 return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x));
49242 }
49243 static void *_p_wxColourPickerEventTo_p_wxCommandEvent(void *x) {
49244 return (void *)((wxCommandEvent *) ((wxColourPickerEvent *) x));
49245 }
49246 static void *_p_wxFileDirPickerEventTo_p_wxCommandEvent(void *x) {
49247 return (void *)((wxCommandEvent *) ((wxFileDirPickerEvent *) x));
49248 }
49249 static void *_p_wxFontPickerEventTo_p_wxCommandEvent(void *x) {
49250 return (void *)((wxCommandEvent *) ((wxFontPickerEvent *) x));
49251 }
49252 static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
49253 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
49254 }
49255 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
49256 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
49257 }
49258 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
49259 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
49260 }
49261 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
49262 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
49263 }
49264 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
49265 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
49266 }
49267 static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
49268 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
49269 }
49270 static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
49271 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
49272 }
49273 static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) {
49274 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
49275 }
49276 static void *_p_wxTreebookEventTo_p_wxCommandEvent(void *x) {
49277 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
49278 }
49279 static void *_p_wxToolbookEventTo_p_wxCommandEvent(void *x) {
49280 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
49281 }
49282 static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
49283 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
49284 }
49285 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
49286 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
49287 }
49288 static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
49289 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
49290 }
49291 static void *_p_wxCollapsiblePaneEventTo_p_wxCommandEvent(void *x) {
49292 return (void *)((wxCommandEvent *) ((wxCollapsiblePaneEvent *) x));
49293 }
49294 static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) {
49295 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
49296 }
49297 static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
49298 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
49299 }
49300 static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
49301 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
49302 }
49303 static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
49304 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
49305 }
49306 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
49307 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
49308 }
49309 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
49310 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
49311 }
49312 static void *_p_wxComboBoxTo_p_wxControlWithItems(void *x) {
49313 return (void *)((wxControlWithItems *) (wxChoice *) ((wxComboBox *) x));
49314 }
49315 static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
49316 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
49317 }
49318 static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
49319 return (void *)((wxControlWithItems *) ((wxChoice *) x));
49320 }
49321 static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
49322 return (void *)((wxControlWithItems *) ((wxListBox *) x));
49323 }
49324 static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
49325 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
49326 }
49327 static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
49328 return (void *)((wxValidator *) ((wxPyValidator *) x));
49329 }
49330 static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0};
49331 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
49332 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};
49333 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
49334 static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
49335 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
49336 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
49337 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
49338 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
49339 static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0};
49340 static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0};
49341 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
49342 static swig_type_info _swigt__p_wxBitmapButton = {"_p_wxBitmapButton", "wxBitmapButton *", 0, 0, (void*)0, 0};
49343 static swig_type_info _swigt__p_wxBookCtrlBase = {"_p_wxBookCtrlBase", "wxBookCtrlBase *", 0, 0, (void*)0, 0};
49344 static swig_type_info _swigt__p_wxBookCtrlBaseEvent = {"_p_wxBookCtrlBaseEvent", "wxBookCtrlBaseEvent *", 0, 0, (void*)0, 0};
49345 static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, (void*)0, 0};
49346 static swig_type_info _swigt__p_wxCheckBox = {"_p_wxCheckBox", "wxCheckBox *", 0, 0, (void*)0, 0};
49347 static swig_type_info _swigt__p_wxCheckListBox = {"_p_wxCheckListBox", "wxCheckListBox *", 0, 0, (void*)0, 0};
49348 static swig_type_info _swigt__p_wxChoice = {"_p_wxChoice", "wxChoice *", 0, 0, (void*)0, 0};
49349 static swig_type_info _swigt__p_wxChoicebook = {"_p_wxChoicebook", "wxChoicebook *", 0, 0, (void*)0, 0};
49350 static swig_type_info _swigt__p_wxChoicebookEvent = {"_p_wxChoicebookEvent", "wxChoicebookEvent *", 0, 0, (void*)0, 0};
49351 static swig_type_info _swigt__p_wxCollapsiblePane = {"_p_wxCollapsiblePane", "wxCollapsiblePane *", 0, 0, (void*)0, 0};
49352 static swig_type_info _swigt__p_wxCollapsiblePaneEvent = {"_p_wxCollapsiblePaneEvent", "wxCollapsiblePaneEvent *", 0, 0, (void*)0, 0};
49353 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
49354 static swig_type_info _swigt__p_wxColourPickerCtrl = {"_p_wxColourPickerCtrl", "wxColourPickerCtrl *", 0, 0, (void*)0, 0};
49355 static swig_type_info _swigt__p_wxColourPickerEvent = {"_p_wxColourPickerEvent", "wxColourPickerEvent *", 0, 0, (void*)0, 0};
49356 static swig_type_info _swigt__p_wxComboBox = {"_p_wxComboBox", "wxComboBox *", 0, 0, (void*)0, 0};
49357 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0};
49358 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
49359 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
49360 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
49361 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
49362 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
49363 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
49364 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
49365 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
49366 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
49367 static swig_type_info _swigt__p_wxContextHelp = {"_p_wxContextHelp", "wxContextHelp *", 0, 0, (void*)0, 0};
49368 static swig_type_info _swigt__p_wxContextHelpButton = {"_p_wxContextHelpButton", "wxContextHelpButton *", 0, 0, (void*)0, 0};
49369 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, (void*)0, 0};
49370 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, (void*)0, 0};
49371 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
49372 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
49373 static swig_type_info _swigt__p_wxDatePickerCtrl = {"_p_wxDatePickerCtrl", "wxDatePickerCtrl *", 0, 0, (void*)0, 0};
49374 static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0};
49375 static swig_type_info _swigt__p_wxDirFilterListCtrl = {"_p_wxDirFilterListCtrl", "wxDirFilterListCtrl *", 0, 0, (void*)0, 0};
49376 static swig_type_info _swigt__p_wxDirPickerCtrl = {"_p_wxDirPickerCtrl", "wxDirPickerCtrl *", 0, 0, (void*)0, 0};
49377 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
49378 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0};
49379 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
49380 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
49381 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
49382 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
49383 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
49384 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
49385 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
49386 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
49387 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
49388 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
49389 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
49390 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
49391 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
49392 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
49393 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
49394 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
49395 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
49396 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
49397 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
49398 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
49399 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
49400 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
49401 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
49402 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
49403 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
49404 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0};
49405 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
49406 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
49407 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
49408 static swig_type_info _swigt__p_wxFileDirPickerEvent = {"_p_wxFileDirPickerEvent", "wxFileDirPickerEvent *", 0, 0, (void*)0, 0};
49409 static swig_type_info _swigt__p_wxFilePickerCtrl = {"_p_wxFilePickerCtrl", "wxFilePickerCtrl *", 0, 0, (void*)0, 0};
49410 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
49411 static swig_type_info _swigt__p_wxFontPickerCtrl = {"_p_wxFontPickerCtrl", "wxFontPickerCtrl *", 0, 0, (void*)0, 0};
49412 static swig_type_info _swigt__p_wxFontPickerEvent = {"_p_wxFontPickerEvent", "wxFontPickerEvent *", 0, 0, (void*)0, 0};
49413 static swig_type_info _swigt__p_wxGauge = {"_p_wxGauge", "wxGauge *", 0, 0, (void*)0, 0};
49414 static swig_type_info _swigt__p_wxGenericDirCtrl = {"_p_wxGenericDirCtrl", "wxGenericDirCtrl *", 0, 0, (void*)0, 0};
49415 static swig_type_info _swigt__p_wxGenericDragImage = {"_p_wxGenericDragImage", "wxGenericDragImage *", 0, 0, (void*)0, 0};
49416 static swig_type_info _swigt__p_wxHelpEvent = {"_p_wxHelpEvent", "wxHelpEvent *", 0, 0, (void*)0, 0};
49417 static swig_type_info _swigt__p_wxHelpProvider = {"_p_wxHelpProvider", "wxHelpProvider *", 0, 0, (void*)0, 0};
49418 static swig_type_info _swigt__p_wxHyperlinkCtrl = {"_p_wxHyperlinkCtrl", "wxHyperlinkCtrl *", 0, 0, (void*)0, 0};
49419 static swig_type_info _swigt__p_wxHyperlinkEvent = {"_p_wxHyperlinkEvent", "wxHyperlinkEvent *", 0, 0, (void*)0, 0};
49420 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
49421 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
49422 static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, (void*)0, 0};
49423 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, (void*)0, 0};
49424 static swig_type_info _swigt__p_wxListBox = {"_p_wxListBox", "wxListBox *", 0, 0, (void*)0, 0};
49425 static swig_type_info _swigt__p_wxListEvent = {"_p_wxListEvent", "wxListEvent *", 0, 0, (void*)0, 0};
49426 static swig_type_info _swigt__p_wxListItem = {"_p_wxListItem", "wxListItem *", 0, 0, (void*)0, 0};
49427 static swig_type_info _swigt__p_wxListItemAttr = {"_p_wxListItemAttr", "wxListItemAttr *", 0, 0, (void*)0, 0};
49428 static swig_type_info _swigt__p_wxListView = {"_p_wxListView", "wxListView *", 0, 0, (void*)0, 0};
49429 static swig_type_info _swigt__p_wxListbook = {"_p_wxListbook", "wxListbook *", 0, 0, (void*)0, 0};
49430 static swig_type_info _swigt__p_wxListbookEvent = {"_p_wxListbookEvent", "wxListbookEvent *", 0, 0, (void*)0, 0};
49431 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
49432 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", "wxMenu *", 0, 0, (void*)0, 0};
49433 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, (void*)0, 0};
49434 static swig_type_info _swigt__p_wxNotebook = {"_p_wxNotebook", "wxNotebook *", 0, 0, (void*)0, 0};
49435 static swig_type_info _swigt__p_wxNotebookEvent = {"_p_wxNotebookEvent", "wxNotebookEvent *", 0, 0, (void*)0, 0};
49436 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0};
49437 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
49438 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
49439 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
49440 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
49441 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
49442 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
49443 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
49444 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
49445 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
49446 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
49447 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
49448 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
49449 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
49450 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
49451 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
49452 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
49453 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
49454 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
49455 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
49456 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
49457 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
49458 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
49459 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
49460 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
49461 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
49462 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
49463 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
49464 static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0};
49465 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
49466 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
49467 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0};
49468 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
49469 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
49470 static swig_type_info _swigt__p_wxPickerBase = {"_p_wxPickerBase", "wxPickerBase *", 0, 0, (void*)0, 0};
49471 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
49472 static swig_type_info _swigt__p_wxPyControl = {"_p_wxPyControl", "wxPyControl *", 0, 0, (void*)0, 0};
49473 static swig_type_info _swigt__p_wxPyListCtrl = {"_p_wxPyListCtrl", "wxPyListCtrl *", 0, 0, (void*)0, 0};
49474 static swig_type_info _swigt__p_wxPyTreeCtrl = {"_p_wxPyTreeCtrl", "wxPyTreeCtrl *", 0, 0, (void*)0, 0};
49475 static swig_type_info _swigt__p_wxPyTreeItemData = {"_p_wxPyTreeItemData", "wxPyTreeItemData *", 0, 0, (void*)0, 0};
49476 static swig_type_info _swigt__p_wxRadioBox = {"_p_wxRadioBox", "wxRadioBox *", 0, 0, (void*)0, 0};
49477 static swig_type_info _swigt__p_wxRadioButton = {"_p_wxRadioButton", "wxRadioButton *", 0, 0, (void*)0, 0};
49478 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
49479 static swig_type_info _swigt__p_wxScrollBar = {"_p_wxScrollBar", "wxScrollBar *", 0, 0, (void*)0, 0};
49480 static swig_type_info _swigt__p_wxSearchCtrl = {"_p_wxSearchCtrl", "wxSearchCtrl *", 0, 0, (void*)0, 0};
49481 static swig_type_info _swigt__p_wxSimpleHelpProvider = {"_p_wxSimpleHelpProvider", "wxSimpleHelpProvider *", 0, 0, (void*)0, 0};
49482 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
49483 static swig_type_info _swigt__p_wxSlider = {"_p_wxSlider", "wxSlider *", 0, 0, (void*)0, 0};
49484 static swig_type_info _swigt__p_wxSpinButton = {"_p_wxSpinButton", "wxSpinButton *", 0, 0, (void*)0, 0};
49485 static swig_type_info _swigt__p_wxSpinCtrl = {"_p_wxSpinCtrl", "wxSpinCtrl *", 0, 0, (void*)0, 0};
49486 static swig_type_info _swigt__p_wxSpinEvent = {"_p_wxSpinEvent", "wxSpinEvent *", 0, 0, (void*)0, 0};
49487 static swig_type_info _swigt__p_wxStaticBitmap = {"_p_wxStaticBitmap", "wxStaticBitmap *", 0, 0, (void*)0, 0};
49488 static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, (void*)0, 0};
49489 static swig_type_info _swigt__p_wxStaticLine = {"_p_wxStaticLine", "wxStaticLine *", 0, 0, (void*)0, 0};
49490 static swig_type_info _swigt__p_wxStaticText = {"_p_wxStaticText", "wxStaticText *", 0, 0, (void*)0, 0};
49491 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
49492 static swig_type_info _swigt__p_wxTextAttr = {"_p_wxTextAttr", "wxTextAttr *", 0, 0, (void*)0, 0};
49493 static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, (void*)0, 0};
49494 static swig_type_info _swigt__p_wxTextUrlEvent = {"_p_wxTextUrlEvent", "wxTextUrlEvent *", 0, 0, (void*)0, 0};
49495 static swig_type_info _swigt__p_wxToggleButton = {"_p_wxToggleButton", "wxToggleButton *", 0, 0, (void*)0, 0};
49496 static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0};
49497 static swig_type_info _swigt__p_wxToolBarBase = {"_p_wxToolBarBase", "wxToolBarBase *", 0, 0, (void*)0, 0};
49498 static swig_type_info _swigt__p_wxToolBarToolBase = {"_p_wxToolBarToolBase", "wxToolBarToolBase *", 0, 0, (void*)0, 0};
49499 static swig_type_info _swigt__p_wxToolbook = {"_p_wxToolbook", "wxToolbook *", 0, 0, (void*)0, 0};
49500 static swig_type_info _swigt__p_wxToolbookEvent = {"_p_wxToolbookEvent", "wxToolbookEvent *", 0, 0, (void*)0, 0};
49501 static swig_type_info _swigt__p_wxTreeEvent = {"_p_wxTreeEvent", "wxTreeEvent *", 0, 0, (void*)0, 0};
49502 static swig_type_info _swigt__p_wxTreeItemId = {"_p_wxTreeItemId", "wxTreeItemId *", 0, 0, (void*)0, 0};
49503 static swig_type_info _swigt__p_wxTreebook = {"_p_wxTreebook", "wxTreebook *", 0, 0, (void*)0, 0};
49504 static swig_type_info _swigt__p_wxTreebookEvent = {"_p_wxTreebookEvent", "wxTreebookEvent *", 0, 0, (void*)0, 0};
49505 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, (void*)0, 0};
49506 static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0};
49507 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
49508 static swig_type_info _swigt__p_wxWindowBase = {"_p_wxWindowBase", "wxWindowBase *", 0, 0, (void*)0, 0};
49509
49510 static swig_type_info *swig_type_initial[] = {
49511 &_swigt__p_bool,
49512 &_swigt__p_char,
49513 &_swigt__p_form_ops_t,
49514 &_swigt__p_int,
49515 &_swigt__p_long,
49516 &_swigt__p_unsigned_char,
49517 &_swigt__p_unsigned_int,
49518 &_swigt__p_unsigned_long,
49519 &_swigt__p_void,
49520 &_swigt__p_wxANIHandler,
49521 &_swigt__p_wxAcceleratorTable,
49522 &_swigt__p_wxActivateEvent,
49523 &_swigt__p_wxArrayInt,
49524 &_swigt__p_wxArrayString,
49525 &_swigt__p_wxBMPHandler,
49526 &_swigt__p_wxBitmap,
49527 &_swigt__p_wxBitmapButton,
49528 &_swigt__p_wxBookCtrlBase,
49529 &_swigt__p_wxBookCtrlBaseEvent,
49530 &_swigt__p_wxBoxSizer,
49531 &_swigt__p_wxButton,
49532 &_swigt__p_wxCURHandler,
49533 &_swigt__p_wxCheckBox,
49534 &_swigt__p_wxCheckListBox,
49535 &_swigt__p_wxChildFocusEvent,
49536 &_swigt__p_wxChoice,
49537 &_swigt__p_wxChoicebook,
49538 &_swigt__p_wxChoicebookEvent,
49539 &_swigt__p_wxClipboardTextEvent,
49540 &_swigt__p_wxCloseEvent,
49541 &_swigt__p_wxCollapsiblePane,
49542 &_swigt__p_wxCollapsiblePaneEvent,
49543 &_swigt__p_wxColour,
49544 &_swigt__p_wxColourPickerCtrl,
49545 &_swigt__p_wxColourPickerEvent,
49546 &_swigt__p_wxComboBox,
49547 &_swigt__p_wxCommandEvent,
49548 &_swigt__p_wxContextHelp,
49549 &_swigt__p_wxContextHelpButton,
49550 &_swigt__p_wxContextMenuEvent,
49551 &_swigt__p_wxControl,
49552 &_swigt__p_wxControlWithItems,
49553 &_swigt__p_wxCursor,
49554 &_swigt__p_wxDC,
49555 &_swigt__p_wxDateEvent,
49556 &_swigt__p_wxDatePickerCtrl,
49557 &_swigt__p_wxDateTime,
49558 &_swigt__p_wxDirFilterListCtrl,
49559 &_swigt__p_wxDirPickerCtrl,
49560 &_swigt__p_wxDisplayChangedEvent,
49561 &_swigt__p_wxDropFilesEvent,
49562 &_swigt__p_wxDuplexMode,
49563 &_swigt__p_wxEraseEvent,
49564 &_swigt__p_wxEvent,
49565 &_swigt__p_wxEvtHandler,
49566 &_swigt__p_wxFSFile,
49567 &_swigt__p_wxFileDirPickerEvent,
49568 &_swigt__p_wxFilePickerCtrl,
49569 &_swigt__p_wxFileSystem,
49570 &_swigt__p_wxFlexGridSizer,
49571 &_swigt__p_wxFocusEvent,
49572 &_swigt__p_wxFont,
49573 &_swigt__p_wxFontPickerCtrl,
49574 &_swigt__p_wxFontPickerEvent,
49575 &_swigt__p_wxGBSizerItem,
49576 &_swigt__p_wxGIFHandler,
49577 &_swigt__p_wxGauge,
49578 &_swigt__p_wxGenericDirCtrl,
49579 &_swigt__p_wxGenericDragImage,
49580 &_swigt__p_wxGridBagSizer,
49581 &_swigt__p_wxGridSizer,
49582 &_swigt__p_wxHelpEvent,
49583 &_swigt__p_wxHelpProvider,
49584 &_swigt__p_wxHyperlinkCtrl,
49585 &_swigt__p_wxHyperlinkEvent,
49586 &_swigt__p_wxICOHandler,
49587 &_swigt__p_wxIcon,
49588 &_swigt__p_wxIconizeEvent,
49589 &_swigt__p_wxIdleEvent,
49590 &_swigt__p_wxImage,
49591 &_swigt__p_wxImageHandler,
49592 &_swigt__p_wxImageList,
49593 &_swigt__p_wxIndividualLayoutConstraint,
49594 &_swigt__p_wxInitDialogEvent,
49595 &_swigt__p_wxItemContainer,
49596 &_swigt__p_wxJPEGHandler,
49597 &_swigt__p_wxKeyEvent,
49598 &_swigt__p_wxLayoutConstraints,
49599 &_swigt__p_wxListBox,
49600 &_swigt__p_wxListEvent,
49601 &_swigt__p_wxListItem,
49602 &_swigt__p_wxListItemAttr,
49603 &_swigt__p_wxListView,
49604 &_swigt__p_wxListbook,
49605 &_swigt__p_wxListbookEvent,
49606 &_swigt__p_wxMaximizeEvent,
49607 &_swigt__p_wxMemoryDC,
49608 &_swigt__p_wxMenu,
49609 &_swigt__p_wxMenuBar,
49610 &_swigt__p_wxMenuEvent,
49611 &_swigt__p_wxMenuItem,
49612 &_swigt__p_wxMouseCaptureChangedEvent,
49613 &_swigt__p_wxMouseCaptureLostEvent,
49614 &_swigt__p_wxMouseEvent,
49615 &_swigt__p_wxMoveEvent,
49616 &_swigt__p_wxNavigationKeyEvent,
49617 &_swigt__p_wxNcPaintEvent,
49618 &_swigt__p_wxNotebook,
49619 &_swigt__p_wxNotebookEvent,
49620 &_swigt__p_wxNotifyEvent,
49621 &_swigt__p_wxObject,
49622 &_swigt__p_wxPCXHandler,
49623 &_swigt__p_wxPNGHandler,
49624 &_swigt__p_wxPNMHandler,
49625 &_swigt__p_wxPaintEvent,
49626 &_swigt__p_wxPaletteChangedEvent,
49627 &_swigt__p_wxPaperSize,
49628 &_swigt__p_wxPickerBase,
49629 &_swigt__p_wxPoint,
49630 &_swigt__p_wxPyApp,
49631 &_swigt__p_wxPyCommandEvent,
49632 &_swigt__p_wxPyControl,
49633 &_swigt__p_wxPyEvent,
49634 &_swigt__p_wxPyImageHandler,
49635 &_swigt__p_wxPyListCtrl,
49636 &_swigt__p_wxPySizer,
49637 &_swigt__p_wxPyTreeCtrl,
49638 &_swigt__p_wxPyTreeItemData,
49639 &_swigt__p_wxPyValidator,
49640 &_swigt__p_wxQueryNewPaletteEvent,
49641 &_swigt__p_wxRadioBox,
49642 &_swigt__p_wxRadioButton,
49643 &_swigt__p_wxRect,
49644 &_swigt__p_wxScrollBar,
49645 &_swigt__p_wxScrollEvent,
49646 &_swigt__p_wxScrollWinEvent,
49647 &_swigt__p_wxSearchCtrl,
49648 &_swigt__p_wxSetCursorEvent,
49649 &_swigt__p_wxShowEvent,
49650 &_swigt__p_wxSimpleHelpProvider,
49651 &_swigt__p_wxSize,
49652 &_swigt__p_wxSizeEvent,
49653 &_swigt__p_wxSizer,
49654 &_swigt__p_wxSizerItem,
49655 &_swigt__p_wxSlider,
49656 &_swigt__p_wxSpinButton,
49657 &_swigt__p_wxSpinCtrl,
49658 &_swigt__p_wxSpinEvent,
49659 &_swigt__p_wxStaticBitmap,
49660 &_swigt__p_wxStaticBox,
49661 &_swigt__p_wxStaticBoxSizer,
49662 &_swigt__p_wxStaticLine,
49663 &_swigt__p_wxStaticText,
49664 &_swigt__p_wxStdDialogButtonSizer,
49665 &_swigt__p_wxString,
49666 &_swigt__p_wxSysColourChangedEvent,
49667 &_swigt__p_wxTGAHandler,
49668 &_swigt__p_wxTIFFHandler,
49669 &_swigt__p_wxTextAttr,
49670 &_swigt__p_wxTextCtrl,
49671 &_swigt__p_wxTextUrlEvent,
49672 &_swigt__p_wxToggleButton,
49673 &_swigt__p_wxToolBar,
49674 &_swigt__p_wxToolBarBase,
49675 &_swigt__p_wxToolBarToolBase,
49676 &_swigt__p_wxToolbook,
49677 &_swigt__p_wxToolbookEvent,
49678 &_swigt__p_wxTreeEvent,
49679 &_swigt__p_wxTreeItemId,
49680 &_swigt__p_wxTreebook,
49681 &_swigt__p_wxTreebookEvent,
49682 &_swigt__p_wxUpdateUIEvent,
49683 &_swigt__p_wxValidator,
49684 &_swigt__p_wxVisualAttributes,
49685 &_swigt__p_wxWindow,
49686 &_swigt__p_wxWindowBase,
49687 &_swigt__p_wxWindowCreateEvent,
49688 &_swigt__p_wxWindowDestroyEvent,
49689 &_swigt__p_wxXPMHandler,
49690 };
49691
49692 static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}};
49693 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
49694 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
49695 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
49696 static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
49697 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
49698 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
49699 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
49700 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
49701 static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}};
49702 static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}};
49703 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
49704 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}};
49705 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}};
49706 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}};
49707 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}};
49708 static swig_cast_info _swigc__p_wxCheckBox[] = { {&_swigt__p_wxCheckBox, 0, 0, 0},{0, 0, 0, 0}};
49709 static swig_cast_info _swigc__p_wxCheckListBox[] = { {&_swigt__p_wxCheckListBox, 0, 0, 0},{0, 0, 0, 0}};
49710 static swig_cast_info _swigc__p_wxChoice[] = { {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxChoice, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxChoice, 0, 0}, {&_swigt__p_wxChoice, 0, 0, 0},{0, 0, 0, 0}};
49711 static swig_cast_info _swigc__p_wxChoicebook[] = { {&_swigt__p_wxChoicebook, 0, 0, 0},{0, 0, 0, 0}};
49712 static swig_cast_info _swigc__p_wxChoicebookEvent[] = { {&_swigt__p_wxChoicebookEvent, 0, 0, 0},{0, 0, 0, 0}};
49713 static swig_cast_info _swigc__p_wxCollapsiblePane[] = { {&_swigt__p_wxCollapsiblePane, 0, 0, 0},{0, 0, 0, 0}};
49714 static swig_cast_info _swigc__p_wxCollapsiblePaneEvent[] = { {&_swigt__p_wxCollapsiblePaneEvent, 0, 0, 0},{0, 0, 0, 0}};
49715 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
49716 static swig_cast_info _swigc__p_wxColourPickerCtrl[] = { {&_swigt__p_wxColourPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
49717 static swig_cast_info _swigc__p_wxColourPickerEvent[] = { {&_swigt__p_wxColourPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
49718 static swig_cast_info _swigc__p_wxComboBox[] = { {&_swigt__p_wxComboBox, 0, 0, 0},{0, 0, 0, 0}};
49719 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
49720 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
49721 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
49722 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
49723 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
49724 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
49725 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
49726 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
49727 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
49728 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_wxCollapsiblePaneEvent, _p_wxCollapsiblePaneEventTo_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}};
49729 static swig_cast_info _swigc__p_wxContextHelp[] = { {&_swigt__p_wxContextHelp, 0, 0, 0},{0, 0, 0, 0}};
49730 static swig_cast_info _swigc__p_wxContextHelpButton[] = { {&_swigt__p_wxContextHelpButton, 0, 0, 0},{0, 0, 0, 0}};
49731 static swig_cast_info _swigc__p_wxControl[] = { {&_swigt__p_wxCollapsiblePane, _p_wxCollapsiblePaneTo_p_wxControl, 0, 0}, {&_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_wxSearchCtrl, _p_wxSearchCtrlTo_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}};
49732 static swig_cast_info _swigc__p_wxControlWithItems[] = { {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxControlWithItems, 0, 0}, {&_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}};
49733 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
49734 static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}};
49735 static swig_cast_info _swigc__p_wxDatePickerCtrl[] = { {&_swigt__p_wxDatePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
49736 static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}};
49737 static swig_cast_info _swigc__p_wxDirFilterListCtrl[] = { {&_swigt__p_wxDirFilterListCtrl, 0, 0, 0},{0, 0, 0, 0}};
49738 static swig_cast_info _swigc__p_wxDirPickerCtrl[] = { {&_swigt__p_wxDirPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
49739 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
49740 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
49741 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
49742 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
49743 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
49744 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
49745 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
49746 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
49747 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
49748 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
49749 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
49750 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
49751 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
49752 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
49753 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
49754 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
49755 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
49756 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
49757 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
49758 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
49759 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
49760 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
49761 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
49762 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
49763 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
49764 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
49765 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_wxCollapsiblePaneEvent, _p_wxCollapsiblePaneEventTo_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}};
49766 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
49767 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
49768 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
49769 static swig_cast_info _swigc__p_wxEvtHandler[] = { {&_swigt__p_wxCollapsiblePane, _p_wxCollapsiblePaneTo_p_wxEvtHandler, 0, 0}, {&_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_wxSearchCtrl, _p_wxSearchCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_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_wxChoicebook, _p_wxChoicebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxEvtHandler, 0, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxEvtHandler, 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_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_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}};
49770 static swig_cast_info _swigc__p_wxFileDirPickerEvent[] = { {&_swigt__p_wxFileDirPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
49771 static swig_cast_info _swigc__p_wxFilePickerCtrl[] = { {&_swigt__p_wxFilePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
49772 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
49773 static swig_cast_info _swigc__p_wxFontPickerCtrl[] = { {&_swigt__p_wxFontPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
49774 static swig_cast_info _swigc__p_wxFontPickerEvent[] = { {&_swigt__p_wxFontPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
49775 static swig_cast_info _swigc__p_wxGauge[] = { {&_swigt__p_wxGauge, 0, 0, 0},{0, 0, 0, 0}};
49776 static swig_cast_info _swigc__p_wxGenericDirCtrl[] = { {&_swigt__p_wxGenericDirCtrl, 0, 0, 0},{0, 0, 0, 0}};
49777 static swig_cast_info _swigc__p_wxGenericDragImage[] = { {&_swigt__p_wxGenericDragImage, 0, 0, 0},{0, 0, 0, 0}};
49778 static swig_cast_info _swigc__p_wxHelpEvent[] = { {&_swigt__p_wxHelpEvent, 0, 0, 0},{0, 0, 0, 0}};
49779 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}};
49780 static swig_cast_info _swigc__p_wxHyperlinkCtrl[] = { {&_swigt__p_wxHyperlinkCtrl, 0, 0, 0},{0, 0, 0, 0}};
49781 static swig_cast_info _swigc__p_wxHyperlinkEvent[] = { {&_swigt__p_wxHyperlinkEvent, 0, 0, 0},{0, 0, 0, 0}};
49782 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
49783 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
49784 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}};
49785 static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
49786 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}};
49787 static swig_cast_info _swigc__p_wxListEvent[] = { {&_swigt__p_wxListEvent, 0, 0, 0},{0, 0, 0, 0}};
49788 static swig_cast_info _swigc__p_wxListItem[] = { {&_swigt__p_wxListItem, 0, 0, 0},{0, 0, 0, 0}};
49789 static swig_cast_info _swigc__p_wxListItemAttr[] = { {&_swigt__p_wxListItemAttr, 0, 0, 0},{0, 0, 0, 0}};
49790 static swig_cast_info _swigc__p_wxListView[] = { {&_swigt__p_wxListView, 0, 0, 0},{0, 0, 0, 0}};
49791 static swig_cast_info _swigc__p_wxListbook[] = { {&_swigt__p_wxListbook, 0, 0, 0},{0, 0, 0, 0}};
49792 static swig_cast_info _swigc__p_wxListbookEvent[] = { {&_swigt__p_wxListbookEvent, 0, 0, 0},{0, 0, 0, 0}};
49793 static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}};
49794 static swig_cast_info _swigc__p_wxMenu[] = { {&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
49795 static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
49796 static swig_cast_info _swigc__p_wxNotebook[] = { {&_swigt__p_wxNotebook, 0, 0, 0},{0, 0, 0, 0}};
49797 static swig_cast_info _swigc__p_wxNotebookEvent[] = { {&_swigt__p_wxNotebookEvent, 0, 0, 0},{0, 0, 0, 0}};
49798 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}};
49799 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
49800 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
49801 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
49802 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
49803 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
49804 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
49805 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
49806 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
49807 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
49808 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
49809 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
49810 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
49811 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
49812 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
49813 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
49814 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
49815 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
49816 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
49817 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
49818 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
49819 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
49820 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
49821 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
49822 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
49823 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
49824 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
49825 static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}};
49826 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
49827 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
49828 static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
49829 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
49830 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_wxSearchCtrl, _p_wxSearchCtrlTo_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_wxCollapsiblePaneEvent, _p_wxCollapsiblePaneEventTo_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_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_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_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_wxTGAHandler, _p_wxTGAHandlerTo_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_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_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_wxCollapsiblePane, _p_wxCollapsiblePaneTo_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_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_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}};
49831 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
49832 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}};
49833 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
49834 static swig_cast_info _swigc__p_wxPyControl[] = { {&_swigt__p_wxPyControl, 0, 0, 0},{0, 0, 0, 0}};
49835 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}};
49836 static swig_cast_info _swigc__p_wxPyTreeCtrl[] = { {&_swigt__p_wxPyTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
49837 static swig_cast_info _swigc__p_wxPyTreeItemData[] = { {&_swigt__p_wxPyTreeItemData, 0, 0, 0},{0, 0, 0, 0}};
49838 static swig_cast_info _swigc__p_wxRadioBox[] = { {&_swigt__p_wxRadioBox, 0, 0, 0},{0, 0, 0, 0}};
49839 static swig_cast_info _swigc__p_wxRadioButton[] = { {&_swigt__p_wxRadioButton, 0, 0, 0},{0, 0, 0, 0}};
49840 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
49841 static swig_cast_info _swigc__p_wxScrollBar[] = { {&_swigt__p_wxScrollBar, 0, 0, 0},{0, 0, 0, 0}};
49842 static swig_cast_info _swigc__p_wxSearchCtrl[] = { {&_swigt__p_wxSearchCtrl, 0, 0, 0},{0, 0, 0, 0}};
49843 static swig_cast_info _swigc__p_wxSimpleHelpProvider[] = { {&_swigt__p_wxSimpleHelpProvider, 0, 0, 0},{0, 0, 0, 0}};
49844 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
49845 static swig_cast_info _swigc__p_wxSlider[] = { {&_swigt__p_wxSlider, 0, 0, 0},{0, 0, 0, 0}};
49846 static swig_cast_info _swigc__p_wxSpinButton[] = { {&_swigt__p_wxSpinButton, 0, 0, 0},{0, 0, 0, 0}};
49847 static swig_cast_info _swigc__p_wxSpinCtrl[] = { {&_swigt__p_wxSpinCtrl, 0, 0, 0},{0, 0, 0, 0}};
49848 static swig_cast_info _swigc__p_wxSpinEvent[] = { {&_swigt__p_wxSpinEvent, 0, 0, 0},{0, 0, 0, 0}};
49849 static swig_cast_info _swigc__p_wxStaticBitmap[] = { {&_swigt__p_wxStaticBitmap, 0, 0, 0},{0, 0, 0, 0}};
49850 static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}};
49851 static swig_cast_info _swigc__p_wxStaticLine[] = { {&_swigt__p_wxStaticLine, 0, 0, 0},{0, 0, 0, 0}};
49852 static swig_cast_info _swigc__p_wxStaticText[] = { {&_swigt__p_wxStaticText, 0, 0, 0},{0, 0, 0, 0}};
49853 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
49854 static swig_cast_info _swigc__p_wxTextAttr[] = { {&_swigt__p_wxTextAttr, 0, 0, 0},{0, 0, 0, 0}};
49855 static swig_cast_info _swigc__p_wxTextCtrl[] = { {&_swigt__p_wxTextCtrl, 0, 0, 0}, {&_swigt__p_wxSearchCtrl, _p_wxSearchCtrlTo_p_wxTextCtrl, 0, 0},{0, 0, 0, 0}};
49856 static swig_cast_info _swigc__p_wxTextUrlEvent[] = { {&_swigt__p_wxTextUrlEvent, 0, 0, 0},{0, 0, 0, 0}};
49857 static swig_cast_info _swigc__p_wxToggleButton[] = { {&_swigt__p_wxToggleButton, 0, 0, 0},{0, 0, 0, 0}};
49858 static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}};
49859 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}};
49860 static swig_cast_info _swigc__p_wxToolBarToolBase[] = { {&_swigt__p_wxToolBarToolBase, 0, 0, 0},{0, 0, 0, 0}};
49861 static swig_cast_info _swigc__p_wxToolbook[] = { {&_swigt__p_wxToolbook, 0, 0, 0},{0, 0, 0, 0}};
49862 static swig_cast_info _swigc__p_wxToolbookEvent[] = { {&_swigt__p_wxToolbookEvent, 0, 0, 0},{0, 0, 0, 0}};
49863 static swig_cast_info _swigc__p_wxTreeEvent[] = { {&_swigt__p_wxTreeEvent, 0, 0, 0},{0, 0, 0, 0}};
49864 static swig_cast_info _swigc__p_wxTreeItemId[] = { {&_swigt__p_wxTreeItemId, 0, 0, 0},{0, 0, 0, 0}};
49865 static swig_cast_info _swigc__p_wxTreebook[] = { {&_swigt__p_wxTreebook, 0, 0, 0},{0, 0, 0, 0}};
49866 static swig_cast_info _swigc__p_wxTreebookEvent[] = { {&_swigt__p_wxTreebookEvent, 0, 0, 0},{0, 0, 0, 0}};
49867 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}};
49868 static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}};
49869 static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxCollapsiblePane, _p_wxCollapsiblePaneTo_p_wxWindow, 0, 0}, {&_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_wxSearchCtrl, _p_wxSearchCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWindow, 0, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxWindow, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxWindow, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxWindow, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_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_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxWindow, 0, 0},{0, 0, 0, 0}};
49870 static swig_cast_info _swigc__p_wxWindowBase[] = { {&_swigt__p_wxWindowBase, 0, 0, 0},{0, 0, 0, 0}};
49871
49872 static swig_cast_info *swig_cast_initial[] = {
49873 _swigc__p_bool,
49874 _swigc__p_char,
49875 _swigc__p_form_ops_t,
49876 _swigc__p_int,
49877 _swigc__p_long,
49878 _swigc__p_unsigned_char,
49879 _swigc__p_unsigned_int,
49880 _swigc__p_unsigned_long,
49881 _swigc__p_void,
49882 _swigc__p_wxANIHandler,
49883 _swigc__p_wxAcceleratorTable,
49884 _swigc__p_wxActivateEvent,
49885 _swigc__p_wxArrayInt,
49886 _swigc__p_wxArrayString,
49887 _swigc__p_wxBMPHandler,
49888 _swigc__p_wxBitmap,
49889 _swigc__p_wxBitmapButton,
49890 _swigc__p_wxBookCtrlBase,
49891 _swigc__p_wxBookCtrlBaseEvent,
49892 _swigc__p_wxBoxSizer,
49893 _swigc__p_wxButton,
49894 _swigc__p_wxCURHandler,
49895 _swigc__p_wxCheckBox,
49896 _swigc__p_wxCheckListBox,
49897 _swigc__p_wxChildFocusEvent,
49898 _swigc__p_wxChoice,
49899 _swigc__p_wxChoicebook,
49900 _swigc__p_wxChoicebookEvent,
49901 _swigc__p_wxClipboardTextEvent,
49902 _swigc__p_wxCloseEvent,
49903 _swigc__p_wxCollapsiblePane,
49904 _swigc__p_wxCollapsiblePaneEvent,
49905 _swigc__p_wxColour,
49906 _swigc__p_wxColourPickerCtrl,
49907 _swigc__p_wxColourPickerEvent,
49908 _swigc__p_wxComboBox,
49909 _swigc__p_wxCommandEvent,
49910 _swigc__p_wxContextHelp,
49911 _swigc__p_wxContextHelpButton,
49912 _swigc__p_wxContextMenuEvent,
49913 _swigc__p_wxControl,
49914 _swigc__p_wxControlWithItems,
49915 _swigc__p_wxCursor,
49916 _swigc__p_wxDC,
49917 _swigc__p_wxDateEvent,
49918 _swigc__p_wxDatePickerCtrl,
49919 _swigc__p_wxDateTime,
49920 _swigc__p_wxDirFilterListCtrl,
49921 _swigc__p_wxDirPickerCtrl,
49922 _swigc__p_wxDisplayChangedEvent,
49923 _swigc__p_wxDropFilesEvent,
49924 _swigc__p_wxDuplexMode,
49925 _swigc__p_wxEraseEvent,
49926 _swigc__p_wxEvent,
49927 _swigc__p_wxEvtHandler,
49928 _swigc__p_wxFSFile,
49929 _swigc__p_wxFileDirPickerEvent,
49930 _swigc__p_wxFilePickerCtrl,
49931 _swigc__p_wxFileSystem,
49932 _swigc__p_wxFlexGridSizer,
49933 _swigc__p_wxFocusEvent,
49934 _swigc__p_wxFont,
49935 _swigc__p_wxFontPickerCtrl,
49936 _swigc__p_wxFontPickerEvent,
49937 _swigc__p_wxGBSizerItem,
49938 _swigc__p_wxGIFHandler,
49939 _swigc__p_wxGauge,
49940 _swigc__p_wxGenericDirCtrl,
49941 _swigc__p_wxGenericDragImage,
49942 _swigc__p_wxGridBagSizer,
49943 _swigc__p_wxGridSizer,
49944 _swigc__p_wxHelpEvent,
49945 _swigc__p_wxHelpProvider,
49946 _swigc__p_wxHyperlinkCtrl,
49947 _swigc__p_wxHyperlinkEvent,
49948 _swigc__p_wxICOHandler,
49949 _swigc__p_wxIcon,
49950 _swigc__p_wxIconizeEvent,
49951 _swigc__p_wxIdleEvent,
49952 _swigc__p_wxImage,
49953 _swigc__p_wxImageHandler,
49954 _swigc__p_wxImageList,
49955 _swigc__p_wxIndividualLayoutConstraint,
49956 _swigc__p_wxInitDialogEvent,
49957 _swigc__p_wxItemContainer,
49958 _swigc__p_wxJPEGHandler,
49959 _swigc__p_wxKeyEvent,
49960 _swigc__p_wxLayoutConstraints,
49961 _swigc__p_wxListBox,
49962 _swigc__p_wxListEvent,
49963 _swigc__p_wxListItem,
49964 _swigc__p_wxListItemAttr,
49965 _swigc__p_wxListView,
49966 _swigc__p_wxListbook,
49967 _swigc__p_wxListbookEvent,
49968 _swigc__p_wxMaximizeEvent,
49969 _swigc__p_wxMemoryDC,
49970 _swigc__p_wxMenu,
49971 _swigc__p_wxMenuBar,
49972 _swigc__p_wxMenuEvent,
49973 _swigc__p_wxMenuItem,
49974 _swigc__p_wxMouseCaptureChangedEvent,
49975 _swigc__p_wxMouseCaptureLostEvent,
49976 _swigc__p_wxMouseEvent,
49977 _swigc__p_wxMoveEvent,
49978 _swigc__p_wxNavigationKeyEvent,
49979 _swigc__p_wxNcPaintEvent,
49980 _swigc__p_wxNotebook,
49981 _swigc__p_wxNotebookEvent,
49982 _swigc__p_wxNotifyEvent,
49983 _swigc__p_wxObject,
49984 _swigc__p_wxPCXHandler,
49985 _swigc__p_wxPNGHandler,
49986 _swigc__p_wxPNMHandler,
49987 _swigc__p_wxPaintEvent,
49988 _swigc__p_wxPaletteChangedEvent,
49989 _swigc__p_wxPaperSize,
49990 _swigc__p_wxPickerBase,
49991 _swigc__p_wxPoint,
49992 _swigc__p_wxPyApp,
49993 _swigc__p_wxPyCommandEvent,
49994 _swigc__p_wxPyControl,
49995 _swigc__p_wxPyEvent,
49996 _swigc__p_wxPyImageHandler,
49997 _swigc__p_wxPyListCtrl,
49998 _swigc__p_wxPySizer,
49999 _swigc__p_wxPyTreeCtrl,
50000 _swigc__p_wxPyTreeItemData,
50001 _swigc__p_wxPyValidator,
50002 _swigc__p_wxQueryNewPaletteEvent,
50003 _swigc__p_wxRadioBox,
50004 _swigc__p_wxRadioButton,
50005 _swigc__p_wxRect,
50006 _swigc__p_wxScrollBar,
50007 _swigc__p_wxScrollEvent,
50008 _swigc__p_wxScrollWinEvent,
50009 _swigc__p_wxSearchCtrl,
50010 _swigc__p_wxSetCursorEvent,
50011 _swigc__p_wxShowEvent,
50012 _swigc__p_wxSimpleHelpProvider,
50013 _swigc__p_wxSize,
50014 _swigc__p_wxSizeEvent,
50015 _swigc__p_wxSizer,
50016 _swigc__p_wxSizerItem,
50017 _swigc__p_wxSlider,
50018 _swigc__p_wxSpinButton,
50019 _swigc__p_wxSpinCtrl,
50020 _swigc__p_wxSpinEvent,
50021 _swigc__p_wxStaticBitmap,
50022 _swigc__p_wxStaticBox,
50023 _swigc__p_wxStaticBoxSizer,
50024 _swigc__p_wxStaticLine,
50025 _swigc__p_wxStaticText,
50026 _swigc__p_wxStdDialogButtonSizer,
50027 _swigc__p_wxString,
50028 _swigc__p_wxSysColourChangedEvent,
50029 _swigc__p_wxTGAHandler,
50030 _swigc__p_wxTIFFHandler,
50031 _swigc__p_wxTextAttr,
50032 _swigc__p_wxTextCtrl,
50033 _swigc__p_wxTextUrlEvent,
50034 _swigc__p_wxToggleButton,
50035 _swigc__p_wxToolBar,
50036 _swigc__p_wxToolBarBase,
50037 _swigc__p_wxToolBarToolBase,
50038 _swigc__p_wxToolbook,
50039 _swigc__p_wxToolbookEvent,
50040 _swigc__p_wxTreeEvent,
50041 _swigc__p_wxTreeItemId,
50042 _swigc__p_wxTreebook,
50043 _swigc__p_wxTreebookEvent,
50044 _swigc__p_wxUpdateUIEvent,
50045 _swigc__p_wxValidator,
50046 _swigc__p_wxVisualAttributes,
50047 _swigc__p_wxWindow,
50048 _swigc__p_wxWindowBase,
50049 _swigc__p_wxWindowCreateEvent,
50050 _swigc__p_wxWindowDestroyEvent,
50051 _swigc__p_wxXPMHandler,
50052 };
50053
50054
50055 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
50056
50057 static swig_const_info swig_const_table[] = {
50058 {0, 0, 0, 0.0, 0, 0}};
50059
50060 #ifdef __cplusplus
50061 }
50062 #endif
50063 /* -----------------------------------------------------------------------------
50064 * Type initialization:
50065 * This problem is tough by the requirement that no dynamic
50066 * memory is used. Also, since swig_type_info structures store pointers to
50067 * swig_cast_info structures and swig_cast_info structures store pointers back
50068 * to swig_type_info structures, we need some lookup code at initialization.
50069 * The idea is that swig generates all the structures that are needed.
50070 * The runtime then collects these partially filled structures.
50071 * The SWIG_InitializeModule function takes these initial arrays out of
50072 * swig_module, and does all the lookup, filling in the swig_module.types
50073 * array with the correct data and linking the correct swig_cast_info
50074 * structures together.
50075 *
50076 * The generated swig_type_info structures are assigned staticly to an initial
50077 * array. We just loop though that array, and handle each type individually.
50078 * First we lookup if this type has been already loaded, and if so, use the
50079 * loaded structure instead of the generated one. Then we have to fill in the
50080 * cast linked list. The cast data is initially stored in something like a
50081 * two-dimensional array. Each row corresponds to a type (there are the same
50082 * number of rows as there are in the swig_type_initial array). Each entry in
50083 * a column is one of the swig_cast_info structures for that type.
50084 * The cast_initial array is actually an array of arrays, because each row has
50085 * a variable number of columns. So to actually build the cast linked list,
50086 * we find the array of casts associated with the type, and loop through it
50087 * adding the casts to the list. The one last trick we need to do is making
50088 * sure the type pointer in the swig_cast_info struct is correct.
50089 *
50090 * First off, we lookup the cast->type name to see if it is already loaded.
50091 * There are three cases to handle:
50092 * 1) If the cast->type has already been loaded AND the type we are adding
50093 * casting info to has not been loaded (it is in this module), THEN we
50094 * replace the cast->type pointer with the type pointer that has already
50095 * been loaded.
50096 * 2) If BOTH types (the one we are adding casting info to, and the
50097 * cast->type) are loaded, THEN the cast info has already been loaded by
50098 * the previous module so we just ignore it.
50099 * 3) Finally, if cast->type has not already been loaded, then we add that
50100 * swig_cast_info to the linked list (because the cast->type) pointer will
50101 * be correct.
50102 * ----------------------------------------------------------------------------- */
50103
50104 #ifdef __cplusplus
50105 extern "C" {
50106 #if 0
50107 } /* c-mode */
50108 #endif
50109 #endif
50110
50111 #if 0
50112 #define SWIGRUNTIME_DEBUG
50113 #endif
50114
50115 SWIGRUNTIME void
50116 SWIG_InitializeModule(void *clientdata) {
50117 size_t i;
50118 swig_module_info *module_head;
50119 static int init_run = 0;
50120
50121 clientdata = clientdata;
50122
50123 if (init_run) return;
50124 init_run = 1;
50125
50126 /* Initialize the swig_module */
50127 swig_module.type_initial = swig_type_initial;
50128 swig_module.cast_initial = swig_cast_initial;
50129
50130 /* Try and load any already created modules */
50131 module_head = SWIG_GetModule(clientdata);
50132 if (module_head) {
50133 swig_module.next = module_head->next;
50134 module_head->next = &swig_module;
50135 } else {
50136 /* This is the first module loaded */
50137 swig_module.next = &swig_module;
50138 SWIG_SetModule(clientdata, &swig_module);
50139 }
50140
50141 /* Now work on filling in swig_module.types */
50142 #ifdef SWIGRUNTIME_DEBUG
50143 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
50144 #endif
50145 for (i = 0; i < swig_module.size; ++i) {
50146 swig_type_info *type = 0;
50147 swig_type_info *ret;
50148 swig_cast_info *cast;
50149
50150 #ifdef SWIGRUNTIME_DEBUG
50151 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
50152 #endif
50153
50154 /* if there is another module already loaded */
50155 if (swig_module.next != &swig_module) {
50156 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
50157 }
50158 if (type) {
50159 /* Overwrite clientdata field */
50160 #ifdef SWIGRUNTIME_DEBUG
50161 printf("SWIG_InitializeModule: found type %s\n", type->name);
50162 #endif
50163 if (swig_module.type_initial[i]->clientdata) {
50164 type->clientdata = swig_module.type_initial[i]->clientdata;
50165 #ifdef SWIGRUNTIME_DEBUG
50166 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
50167 #endif
50168 }
50169 } else {
50170 type = swig_module.type_initial[i];
50171 }
50172
50173 /* Insert casting types */
50174 cast = swig_module.cast_initial[i];
50175 while (cast->type) {
50176 /* Don't need to add information already in the list */
50177 ret = 0;
50178 #ifdef SWIGRUNTIME_DEBUG
50179 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
50180 #endif
50181 if (swig_module.next != &swig_module) {
50182 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
50183 #ifdef SWIGRUNTIME_DEBUG
50184 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
50185 #endif
50186 }
50187 if (ret) {
50188 if (type == swig_module.type_initial[i]) {
50189 #ifdef SWIGRUNTIME_DEBUG
50190 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
50191 #endif
50192 cast->type = ret;
50193 ret = 0;
50194 } else {
50195 /* Check for casting already in the list */
50196 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
50197 #ifdef SWIGRUNTIME_DEBUG
50198 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
50199 #endif
50200 if (!ocast) ret = 0;
50201 }
50202 }
50203
50204 if (!ret) {
50205 #ifdef SWIGRUNTIME_DEBUG
50206 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
50207 #endif
50208 if (type->cast) {
50209 type->cast->prev = cast;
50210 cast->next = type->cast;
50211 }
50212 type->cast = cast;
50213 }
50214 cast++;
50215 }
50216 /* Set entry in modules->types array equal to the type */
50217 swig_module.types[i] = type;
50218 }
50219 swig_module.types[i] = 0;
50220
50221 #ifdef SWIGRUNTIME_DEBUG
50222 printf("**** SWIG_InitializeModule: Cast List ******\n");
50223 for (i = 0; i < swig_module.size; ++i) {
50224 int j = 0;
50225 swig_cast_info *cast = swig_module.cast_initial[i];
50226 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
50227 while (cast->type) {
50228 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
50229 cast++;
50230 ++j;
50231 }
50232 printf("---- Total casts: %d\n",j);
50233 }
50234 printf("**** SWIG_InitializeModule: Cast List ******\n");
50235 #endif
50236 }
50237
50238 /* This function will propagate the clientdata field of type to
50239 * any new swig_type_info structures that have been added into the list
50240 * of equivalent types. It is like calling
50241 * SWIG_TypeClientData(type, clientdata) a second time.
50242 */
50243 SWIGRUNTIME void
50244 SWIG_PropagateClientData(void) {
50245 size_t i;
50246 swig_cast_info *equiv;
50247 static int init_run = 0;
50248
50249 if (init_run) return;
50250 init_run = 1;
50251
50252 for (i = 0; i < swig_module.size; i++) {
50253 if (swig_module.types[i]->clientdata) {
50254 equiv = swig_module.types[i]->cast;
50255 while (equiv) {
50256 if (!equiv->converter) {
50257 if (equiv->type && !equiv->type->clientdata)
50258 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
50259 }
50260 equiv = equiv->next;
50261 }
50262 }
50263 }
50264 }
50265
50266 #ifdef __cplusplus
50267 #if 0
50268 {
50269 /* c-mode */
50270 #endif
50271 }
50272 #endif
50273
50274
50275
50276 #ifdef __cplusplus
50277 extern "C" {
50278 #endif
50279
50280 /* Python-specific SWIG API */
50281 #define SWIG_newvarlink() SWIG_Python_newvarlink()
50282 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
50283 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
50284
50285 /* -----------------------------------------------------------------------------
50286 * global variable support code.
50287 * ----------------------------------------------------------------------------- */
50288
50289 typedef struct swig_globalvar {
50290 char *name; /* Name of global variable */
50291 PyObject *(*get_attr)(void); /* Return the current value */
50292 int (*set_attr)(PyObject *); /* Set the value */
50293 struct swig_globalvar *next;
50294 } swig_globalvar;
50295
50296 typedef struct swig_varlinkobject {
50297 PyObject_HEAD
50298 swig_globalvar *vars;
50299 } swig_varlinkobject;
50300
50301 SWIGINTERN PyObject *
50302 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
50303 return PyString_FromString("<Swig global variables>");
50304 }
50305
50306 SWIGINTERN PyObject *
50307 swig_varlink_str(swig_varlinkobject *v) {
50308 PyObject *str = PyString_FromString("(");
50309 swig_globalvar *var;
50310 for (var = v->vars; var; var=var->next) {
50311 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
50312 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
50313 }
50314 PyString_ConcatAndDel(&str,PyString_FromString(")"));
50315 return str;
50316 }
50317
50318 SWIGINTERN int
50319 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
50320 PyObject *str = swig_varlink_str(v);
50321 fprintf(fp,"Swig global variables ");
50322 fprintf(fp,"%s\n", PyString_AsString(str));
50323 Py_DECREF(str);
50324 return 0;
50325 }
50326
50327 SWIGINTERN void
50328 swig_varlink_dealloc(swig_varlinkobject *v) {
50329 swig_globalvar *var = v->vars;
50330 while (var) {
50331 swig_globalvar *n = var->next;
50332 free(var->name);
50333 free(var);
50334 var = n;
50335 }
50336 }
50337
50338 SWIGINTERN PyObject *
50339 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
50340 PyObject *res = NULL;
50341 swig_globalvar *var = v->vars;
50342 while (var) {
50343 if (strcmp(var->name,n) == 0) {
50344 res = (*var->get_attr)();
50345 break;
50346 }
50347 var = var->next;
50348 }
50349 if (res == NULL && !PyErr_Occurred()) {
50350 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
50351 }
50352 return res;
50353 }
50354
50355 SWIGINTERN int
50356 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
50357 int res = 1;
50358 swig_globalvar *var = v->vars;
50359 while (var) {
50360 if (strcmp(var->name,n) == 0) {
50361 res = (*var->set_attr)(p);
50362 break;
50363 }
50364 var = var->next;
50365 }
50366 if (res == 1 && !PyErr_Occurred()) {
50367 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
50368 }
50369 return res;
50370 }
50371
50372 SWIGINTERN PyTypeObject*
50373 swig_varlink_type(void) {
50374 static char varlink__doc__[] = "Swig var link object";
50375 static PyTypeObject varlink_type;
50376 static int type_init = 0;
50377 if (!type_init) {
50378 const PyTypeObject tmp
50379 = {
50380 PyObject_HEAD_INIT(NULL)
50381 0, /* Number of items in variable part (ob_size) */
50382 (char *)"swigvarlink", /* Type name (tp_name) */
50383 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
50384 0, /* Itemsize (tp_itemsize) */
50385 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
50386 (printfunc) swig_varlink_print, /* Print (tp_print) */
50387 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
50388 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
50389 0, /* tp_compare */
50390 (reprfunc) swig_varlink_repr, /* tp_repr */
50391 0, /* tp_as_number */
50392 0, /* tp_as_sequence */
50393 0, /* tp_as_mapping */
50394 0, /* tp_hash */
50395 0, /* tp_call */
50396 (reprfunc)swig_varlink_str, /* tp_str */
50397 0, /* tp_getattro */
50398 0, /* tp_setattro */
50399 0, /* tp_as_buffer */
50400 0, /* tp_flags */
50401 varlink__doc__, /* tp_doc */
50402 0, /* tp_traverse */
50403 0, /* tp_clear */
50404 0, /* tp_richcompare */
50405 0, /* tp_weaklistoffset */
50406 #if PY_VERSION_HEX >= 0x02020000
50407 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
50408 #endif
50409 #if PY_VERSION_HEX >= 0x02030000
50410 0, /* tp_del */
50411 #endif
50412 #ifdef COUNT_ALLOCS
50413 0,0,0,0 /* tp_alloc -> tp_next */
50414 #endif
50415 };
50416 varlink_type = tmp;
50417 varlink_type.ob_type = &PyType_Type;
50418 type_init = 1;
50419 }
50420 return &varlink_type;
50421 }
50422
50423 /* Create a variable linking object for use later */
50424 SWIGINTERN PyObject *
50425 SWIG_Python_newvarlink(void) {
50426 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
50427 if (result) {
50428 result->vars = 0;
50429 }
50430 return ((PyObject*) result);
50431 }
50432
50433 SWIGINTERN void
50434 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
50435 swig_varlinkobject *v = (swig_varlinkobject *) p;
50436 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
50437 if (gv) {
50438 size_t size = strlen(name)+1;
50439 gv->name = (char *)malloc(size);
50440 if (gv->name) {
50441 strncpy(gv->name,name,size);
50442 gv->get_attr = get_attr;
50443 gv->set_attr = set_attr;
50444 gv->next = v->vars;
50445 }
50446 }
50447 v->vars = gv;
50448 }
50449
50450 SWIGINTERN PyObject *
50451 SWIG_globals() {
50452 static PyObject *_SWIG_globals = 0;
50453 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
50454 return _SWIG_globals;
50455 }
50456
50457 /* -----------------------------------------------------------------------------
50458 * constants/methods manipulation
50459 * ----------------------------------------------------------------------------- */
50460
50461 /* Install Constants */
50462 SWIGINTERN void
50463 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
50464 PyObject *obj = 0;
50465 size_t i;
50466 for (i = 0; constants[i].type; ++i) {
50467 switch(constants[i].type) {
50468 case SWIG_PY_POINTER:
50469 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
50470 break;
50471 case SWIG_PY_BINARY:
50472 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
50473 break;
50474 default:
50475 obj = 0;
50476 break;
50477 }
50478 if (obj) {
50479 PyDict_SetItemString(d, constants[i].name, obj);
50480 Py_DECREF(obj);
50481 }
50482 }
50483 }
50484
50485 /* -----------------------------------------------------------------------------*/
50486 /* Fix SwigMethods to carry the callback ptrs when needed */
50487 /* -----------------------------------------------------------------------------*/
50488
50489 SWIGINTERN void
50490 SWIG_Python_FixMethods(PyMethodDef *methods,
50491 swig_const_info *const_table,
50492 swig_type_info **types,
50493 swig_type_info **types_initial) {
50494 size_t i;
50495 for (i = 0; methods[i].ml_name; ++i) {
50496 const char *c = methods[i].ml_doc;
50497 if (c && (c = strstr(c, "swig_ptr: "))) {
50498 int j;
50499 swig_const_info *ci = 0;
50500 const char *name = c + 10;
50501 for (j = 0; const_table[j].type; ++j) {
50502 if (strncmp(const_table[j].name, name,
50503 strlen(const_table[j].name)) == 0) {
50504 ci = &(const_table[j]);
50505 break;
50506 }
50507 }
50508 if (ci) {
50509 size_t shift = (ci->ptype) - types;
50510 swig_type_info *ty = types_initial[shift];
50511 size_t ldoc = (c - methods[i].ml_doc);
50512 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
50513 char *ndoc = (char*)malloc(ldoc + lptr + 10);
50514 if (ndoc) {
50515 char *buff = ndoc;
50516 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
50517 if (ptr) {
50518 strncpy(buff, methods[i].ml_doc, ldoc);
50519 buff += ldoc;
50520 strncpy(buff, "swig_ptr: ", 10);
50521 buff += 10;
50522 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
50523 methods[i].ml_doc = ndoc;
50524 }
50525 }
50526 }
50527 }
50528 }
50529 }
50530
50531 #ifdef __cplusplus
50532 }
50533 #endif
50534
50535 /* -----------------------------------------------------------------------------*
50536 * Partial Init method
50537 * -----------------------------------------------------------------------------*/
50538
50539 #ifdef __cplusplus
50540 extern "C"
50541 #endif
50542 SWIGEXPORT void SWIG_init(void) {
50543 PyObject *m, *d;
50544
50545 /* Fix SwigMethods to carry the callback ptrs when needed */
50546 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
50547
50548 m = Py_InitModule((char *) SWIG_name, SwigMethods);
50549 d = PyModule_GetDict(m);
50550
50551 SWIG_InitializeModule(0);
50552 SWIG_InstallConstants(d,swig_const_table);
50553
50554
50555 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
50556 SWIG_addvarlink(SWIG_globals(),(char*)"ButtonNameStr",ButtonNameStr_get, ButtonNameStr_set);
50557 SWIG_Python_SetConstant(d, "BU_LEFT",SWIG_From_int(static_cast< int >(wxBU_LEFT)));
50558 SWIG_Python_SetConstant(d, "BU_TOP",SWIG_From_int(static_cast< int >(wxBU_TOP)));
50559 SWIG_Python_SetConstant(d, "BU_RIGHT",SWIG_From_int(static_cast< int >(wxBU_RIGHT)));
50560 SWIG_Python_SetConstant(d, "BU_BOTTOM",SWIG_From_int(static_cast< int >(wxBU_BOTTOM)));
50561 SWIG_Python_SetConstant(d, "BU_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBU_ALIGN_MASK)));
50562 SWIG_Python_SetConstant(d, "BU_EXACTFIT",SWIG_From_int(static_cast< int >(wxBU_EXACTFIT)));
50563 SWIG_Python_SetConstant(d, "BU_AUTODRAW",SWIG_From_int(static_cast< int >(wxBU_AUTODRAW)));
50564 SWIG_addvarlink(SWIG_globals(),(char*)"CheckBoxNameStr",CheckBoxNameStr_get, CheckBoxNameStr_set);
50565 SWIG_Python_SetConstant(d, "CHK_2STATE",SWIG_From_int(static_cast< int >(wxCHK_2STATE)));
50566 SWIG_Python_SetConstant(d, "CHK_3STATE",SWIG_From_int(static_cast< int >(wxCHK_3STATE)));
50567 SWIG_Python_SetConstant(d, "CHK_ALLOW_3RD_STATE_FOR_USER",SWIG_From_int(static_cast< int >(wxCHK_ALLOW_3RD_STATE_FOR_USER)));
50568 SWIG_Python_SetConstant(d, "CHK_UNCHECKED",SWIG_From_int(static_cast< int >(wxCHK_UNCHECKED)));
50569 SWIG_Python_SetConstant(d, "CHK_CHECKED",SWIG_From_int(static_cast< int >(wxCHK_CHECKED)));
50570 SWIG_Python_SetConstant(d, "CHK_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCHK_UNDETERMINED)));
50571 SWIG_addvarlink(SWIG_globals(),(char*)"ChoiceNameStr",ChoiceNameStr_get, ChoiceNameStr_set);
50572 SWIG_addvarlink(SWIG_globals(),(char*)"ComboBoxNameStr",ComboBoxNameStr_get, ComboBoxNameStr_set);
50573 SWIG_addvarlink(SWIG_globals(),(char*)"GaugeNameStr",GaugeNameStr_get, GaugeNameStr_set);
50574 SWIG_Python_SetConstant(d, "GA_HORIZONTAL",SWIG_From_int(static_cast< int >(wxGA_HORIZONTAL)));
50575 SWIG_Python_SetConstant(d, "GA_VERTICAL",SWIG_From_int(static_cast< int >(wxGA_VERTICAL)));
50576 SWIG_Python_SetConstant(d, "GA_SMOOTH",SWIG_From_int(static_cast< int >(wxGA_SMOOTH)));
50577 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBitmapNameStr",StaticBitmapNameStr_get, StaticBitmapNameStr_set);
50578 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBoxNameStr",StaticBoxNameStr_get, StaticBoxNameStr_set);
50579 SWIG_addvarlink(SWIG_globals(),(char*)"StaticTextNameStr",StaticTextNameStr_get, StaticTextNameStr_set);
50580 SWIG_addvarlink(SWIG_globals(),(char*)"StaticLineNameStr",StaticLineNameStr_get, StaticLineNameStr_set);
50581 SWIG_addvarlink(SWIG_globals(),(char*)"ListBoxNameStr",ListBoxNameStr_get, ListBoxNameStr_set);
50582 SWIG_addvarlink(SWIG_globals(),(char*)"TextCtrlNameStr",TextCtrlNameStr_get, TextCtrlNameStr_set);
50583 SWIG_Python_SetConstant(d, "TE_NO_VSCROLL",SWIG_From_int(static_cast< int >(wxTE_NO_VSCROLL)));
50584 SWIG_Python_SetConstant(d, "TE_AUTO_SCROLL",SWIG_From_int(static_cast< int >(wxTE_AUTO_SCROLL)));
50585 SWIG_Python_SetConstant(d, "TE_READONLY",SWIG_From_int(static_cast< int >(wxTE_READONLY)));
50586 SWIG_Python_SetConstant(d, "TE_MULTILINE",SWIG_From_int(static_cast< int >(wxTE_MULTILINE)));
50587 SWIG_Python_SetConstant(d, "TE_PROCESS_TAB",SWIG_From_int(static_cast< int >(wxTE_PROCESS_TAB)));
50588 SWIG_Python_SetConstant(d, "TE_LEFT",SWIG_From_int(static_cast< int >(wxTE_LEFT)));
50589 SWIG_Python_SetConstant(d, "TE_CENTER",SWIG_From_int(static_cast< int >(wxTE_CENTER)));
50590 SWIG_Python_SetConstant(d, "TE_RIGHT",SWIG_From_int(static_cast< int >(wxTE_RIGHT)));
50591 SWIG_Python_SetConstant(d, "TE_CENTRE",SWIG_From_int(static_cast< int >(wxTE_CENTRE)));
50592 SWIG_Python_SetConstant(d, "TE_RICH",SWIG_From_int(static_cast< int >(wxTE_RICH)));
50593 SWIG_Python_SetConstant(d, "TE_PROCESS_ENTER",SWIG_From_int(static_cast< int >(wxTE_PROCESS_ENTER)));
50594 SWIG_Python_SetConstant(d, "TE_PASSWORD",SWIG_From_int(static_cast< int >(wxTE_PASSWORD)));
50595 SWIG_Python_SetConstant(d, "TE_AUTO_URL",SWIG_From_int(static_cast< int >(wxTE_AUTO_URL)));
50596 SWIG_Python_SetConstant(d, "TE_NOHIDESEL",SWIG_From_int(static_cast< int >(wxTE_NOHIDESEL)));
50597 SWIG_Python_SetConstant(d, "TE_DONTWRAP",SWIG_From_int(static_cast< int >(wxTE_DONTWRAP)));
50598 SWIG_Python_SetConstant(d, "TE_CHARWRAP",SWIG_From_int(static_cast< int >(wxTE_CHARWRAP)));
50599 SWIG_Python_SetConstant(d, "TE_WORDWRAP",SWIG_From_int(static_cast< int >(wxTE_WORDWRAP)));
50600 SWIG_Python_SetConstant(d, "TE_BESTWRAP",SWIG_From_int(static_cast< int >(wxTE_BESTWRAP)));
50601 SWIG_Python_SetConstant(d, "TE_RICH2",SWIG_From_int(static_cast< int >(wxTE_RICH2)));
50602 SWIG_Python_SetConstant(d, "TE_CAPITALIZE",SWIG_From_int(static_cast< int >(wxTE_CAPITALIZE)));
50603 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT)));
50604 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT)));
50605 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE)));
50606 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER)));
50607 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT)));
50608 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED)));
50609 SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR)));
50610 SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR)));
50611 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE)));
50612 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE)));
50613 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT)));
50614 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC)));
50615 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE)));
50616 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT)));
50617 SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT)));
50618 SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT)));
50619 SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT)));
50620 SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS)));
50621 SWIG_Python_SetConstant(d, "TE_HT_UNKNOWN",SWIG_From_int(static_cast< int >(wxTE_HT_UNKNOWN)));
50622 SWIG_Python_SetConstant(d, "TE_HT_BEFORE",SWIG_From_int(static_cast< int >(wxTE_HT_BEFORE)));
50623 SWIG_Python_SetConstant(d, "TE_HT_ON_TEXT",SWIG_From_int(static_cast< int >(wxTE_HT_ON_TEXT)));
50624 SWIG_Python_SetConstant(d, "TE_HT_BELOW",SWIG_From_int(static_cast< int >(wxTE_HT_BELOW)));
50625 SWIG_Python_SetConstant(d, "TE_HT_BEYOND",SWIG_From_int(static_cast< int >(wxTE_HT_BEYOND)));
50626 SWIG_Python_SetConstant(d, "OutOfRangeTextCoord",SWIG_From_int(static_cast< int >(wxOutOfRangeTextCoord)));
50627 SWIG_Python_SetConstant(d, "InvalidTextCoord",SWIG_From_int(static_cast< int >(wxInvalidTextCoord)));
50628 SWIG_Python_SetConstant(d, "TEXT_TYPE_ANY",SWIG_From_int(static_cast< int >(wxTEXT_TYPE_ANY)));
50629 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
50630 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
50631 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
50632 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
50633 SWIG_addvarlink(SWIG_globals(),(char*)"ScrollBarNameStr",ScrollBarNameStr_get, ScrollBarNameStr_set);
50634 SWIG_addvarlink(SWIG_globals(),(char*)"SPIN_BUTTON_NAME",SPIN_BUTTON_NAME_get, SPIN_BUTTON_NAME_set);
50635 SWIG_addvarlink(SWIG_globals(),(char*)"SpinCtrlNameStr",SpinCtrlNameStr_get, SpinCtrlNameStr_set);
50636 SWIG_Python_SetConstant(d, "SP_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSP_HORIZONTAL)));
50637 SWIG_Python_SetConstant(d, "SP_VERTICAL",SWIG_From_int(static_cast< int >(wxSP_VERTICAL)));
50638 SWIG_Python_SetConstant(d, "SP_ARROW_KEYS",SWIG_From_int(static_cast< int >(wxSP_ARROW_KEYS)));
50639 SWIG_Python_SetConstant(d, "SP_WRAP",SWIG_From_int(static_cast< int >(wxSP_WRAP)));
50640 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
50641 SWIG_addvarlink(SWIG_globals(),(char*)"RadioBoxNameStr",RadioBoxNameStr_get, RadioBoxNameStr_set);
50642 SWIG_addvarlink(SWIG_globals(),(char*)"RadioButtonNameStr",RadioButtonNameStr_get, RadioButtonNameStr_set);
50643 SWIG_addvarlink(SWIG_globals(),(char*)"SliderNameStr",SliderNameStr_get, SliderNameStr_set);
50644 SWIG_Python_SetConstant(d, "SL_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSL_HORIZONTAL)));
50645 SWIG_Python_SetConstant(d, "SL_VERTICAL",SWIG_From_int(static_cast< int >(wxSL_VERTICAL)));
50646 SWIG_Python_SetConstant(d, "SL_TICKS",SWIG_From_int(static_cast< int >(wxSL_TICKS)));
50647 SWIG_Python_SetConstant(d, "SL_AUTOTICKS",SWIG_From_int(static_cast< int >(wxSL_AUTOTICKS)));
50648 SWIG_Python_SetConstant(d, "SL_LABELS",SWIG_From_int(static_cast< int >(wxSL_LABELS)));
50649 SWIG_Python_SetConstant(d, "SL_LEFT",SWIG_From_int(static_cast< int >(wxSL_LEFT)));
50650 SWIG_Python_SetConstant(d, "SL_TOP",SWIG_From_int(static_cast< int >(wxSL_TOP)));
50651 SWIG_Python_SetConstant(d, "SL_RIGHT",SWIG_From_int(static_cast< int >(wxSL_RIGHT)));
50652 SWIG_Python_SetConstant(d, "SL_BOTTOM",SWIG_From_int(static_cast< int >(wxSL_BOTTOM)));
50653 SWIG_Python_SetConstant(d, "SL_BOTH",SWIG_From_int(static_cast< int >(wxSL_BOTH)));
50654 SWIG_Python_SetConstant(d, "SL_SELRANGE",SWIG_From_int(static_cast< int >(wxSL_SELRANGE)));
50655 SWIG_Python_SetConstant(d, "SL_INVERSE",SWIG_From_int(static_cast< int >(wxSL_INVERSE)));
50656 SWIG_addvarlink(SWIG_globals(),(char*)"ToggleButtonNameStr",ToggleButtonNameStr_get, ToggleButtonNameStr_set);
50657 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
50658 SWIG_addvarlink(SWIG_globals(),(char*)"NotebookNameStr",NotebookNameStr_get, NotebookNameStr_set);
50659 SWIG_Python_SetConstant(d, "BK_DEFAULT",SWIG_From_int(static_cast< int >(wxBK_DEFAULT)));
50660 SWIG_Python_SetConstant(d, "BK_TOP",SWIG_From_int(static_cast< int >(wxBK_TOP)));
50661 SWIG_Python_SetConstant(d, "BK_BOTTOM",SWIG_From_int(static_cast< int >(wxBK_BOTTOM)));
50662 SWIG_Python_SetConstant(d, "BK_LEFT",SWIG_From_int(static_cast< int >(wxBK_LEFT)));
50663 SWIG_Python_SetConstant(d, "BK_RIGHT",SWIG_From_int(static_cast< int >(wxBK_RIGHT)));
50664 SWIG_Python_SetConstant(d, "BK_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBK_ALIGN_MASK)));
50665 SWIG_Python_SetConstant(d, "BK_BUTTONBAR",SWIG_From_int(static_cast< int >(wxBK_BUTTONBAR)));
50666 SWIG_Python_SetConstant(d, "BK_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_NOWHERE)));
50667 SWIG_Python_SetConstant(d, "BK_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONICON)));
50668 SWIG_Python_SetConstant(d, "BK_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONLABEL)));
50669 SWIG_Python_SetConstant(d, "BK_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONITEM)));
50670 SWIG_Python_SetConstant(d, "BK_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONPAGE)));
50671 SWIG_Python_SetConstant(d, "NB_FIXEDWIDTH",SWIG_From_int(static_cast< int >(wxNB_FIXEDWIDTH)));
50672 SWIG_Python_SetConstant(d, "NB_TOP",SWIG_From_int(static_cast< int >(wxNB_TOP)));
50673 SWIG_Python_SetConstant(d, "NB_LEFT",SWIG_From_int(static_cast< int >(wxNB_LEFT)));
50674 SWIG_Python_SetConstant(d, "NB_RIGHT",SWIG_From_int(static_cast< int >(wxNB_RIGHT)));
50675 SWIG_Python_SetConstant(d, "NB_BOTTOM",SWIG_From_int(static_cast< int >(wxNB_BOTTOM)));
50676 SWIG_Python_SetConstant(d, "NB_MULTILINE",SWIG_From_int(static_cast< int >(wxNB_MULTILINE)));
50677 SWIG_Python_SetConstant(d, "NB_NOPAGETHEME",SWIG_From_int(static_cast< int >(wxNB_NOPAGETHEME)));
50678 SWIG_Python_SetConstant(d, "NB_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_NOWHERE)));
50679 SWIG_Python_SetConstant(d, "NB_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONICON)));
50680 SWIG_Python_SetConstant(d, "NB_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONLABEL)));
50681 SWIG_Python_SetConstant(d, "NB_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONITEM)));
50682 SWIG_Python_SetConstant(d, "NB_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONPAGE)));
50683 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
50684 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
50685 SWIG_Python_SetConstant(d, "LB_DEFAULT",SWIG_From_int(static_cast< int >(wxLB_DEFAULT)));
50686 SWIG_Python_SetConstant(d, "LB_TOP",SWIG_From_int(static_cast< int >(wxLB_TOP)));
50687 SWIG_Python_SetConstant(d, "LB_BOTTOM",SWIG_From_int(static_cast< int >(wxLB_BOTTOM)));
50688 SWIG_Python_SetConstant(d, "LB_LEFT",SWIG_From_int(static_cast< int >(wxLB_LEFT)));
50689 SWIG_Python_SetConstant(d, "LB_RIGHT",SWIG_From_int(static_cast< int >(wxLB_RIGHT)));
50690 SWIG_Python_SetConstant(d, "LB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxLB_ALIGN_MASK)));
50691 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
50692 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
50693 SWIG_Python_SetConstant(d, "CHB_DEFAULT",SWIG_From_int(static_cast< int >(wxCHB_DEFAULT)));
50694 SWIG_Python_SetConstant(d, "CHB_TOP",SWIG_From_int(static_cast< int >(wxCHB_TOP)));
50695 SWIG_Python_SetConstant(d, "CHB_BOTTOM",SWIG_From_int(static_cast< int >(wxCHB_BOTTOM)));
50696 SWIG_Python_SetConstant(d, "CHB_LEFT",SWIG_From_int(static_cast< int >(wxCHB_LEFT)));
50697 SWIG_Python_SetConstant(d, "CHB_RIGHT",SWIG_From_int(static_cast< int >(wxCHB_RIGHT)));
50698 SWIG_Python_SetConstant(d, "CHB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxCHB_ALIGN_MASK)));
50699 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED));
50700 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING));
50701 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED));
50702 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING));
50703 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED));
50704 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED));
50705 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED));
50706 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING));
50707 SWIG_Python_SetConstant(d, "TOOL_STYLE_BUTTON",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_BUTTON)));
50708 SWIG_Python_SetConstant(d, "TOOL_STYLE_SEPARATOR",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_SEPARATOR)));
50709 SWIG_Python_SetConstant(d, "TOOL_STYLE_CONTROL",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_CONTROL)));
50710 SWIG_Python_SetConstant(d, "TB_HORIZONTAL",SWIG_From_int(static_cast< int >(wxTB_HORIZONTAL)));
50711 SWIG_Python_SetConstant(d, "TB_VERTICAL",SWIG_From_int(static_cast< int >(wxTB_VERTICAL)));
50712 SWIG_Python_SetConstant(d, "TB_TOP",SWIG_From_int(static_cast< int >(wxTB_TOP)));
50713 SWIG_Python_SetConstant(d, "TB_LEFT",SWIG_From_int(static_cast< int >(wxTB_LEFT)));
50714 SWIG_Python_SetConstant(d, "TB_BOTTOM",SWIG_From_int(static_cast< int >(wxTB_BOTTOM)));
50715 SWIG_Python_SetConstant(d, "TB_RIGHT",SWIG_From_int(static_cast< int >(wxTB_RIGHT)));
50716 SWIG_Python_SetConstant(d, "TB_3DBUTTONS",SWIG_From_int(static_cast< int >(wxTB_3DBUTTONS)));
50717 SWIG_Python_SetConstant(d, "TB_FLAT",SWIG_From_int(static_cast< int >(wxTB_FLAT)));
50718 SWIG_Python_SetConstant(d, "TB_DOCKABLE",SWIG_From_int(static_cast< int >(wxTB_DOCKABLE)));
50719 SWIG_Python_SetConstant(d, "TB_NOICONS",SWIG_From_int(static_cast< int >(wxTB_NOICONS)));
50720 SWIG_Python_SetConstant(d, "TB_TEXT",SWIG_From_int(static_cast< int >(wxTB_TEXT)));
50721 SWIG_Python_SetConstant(d, "TB_NODIVIDER",SWIG_From_int(static_cast< int >(wxTB_NODIVIDER)));
50722 SWIG_Python_SetConstant(d, "TB_NOALIGN",SWIG_From_int(static_cast< int >(wxTB_NOALIGN)));
50723 SWIG_Python_SetConstant(d, "TB_HORZ_LAYOUT",SWIG_From_int(static_cast< int >(wxTB_HORZ_LAYOUT)));
50724 SWIG_Python_SetConstant(d, "TB_HORZ_TEXT",SWIG_From_int(static_cast< int >(wxTB_HORZ_TEXT)));
50725 SWIG_Python_SetConstant(d, "TB_NO_TOOLTIPS",SWIG_From_int(static_cast< int >(wxTB_NO_TOOLTIPS)));
50726 SWIG_addvarlink(SWIG_globals(),(char*)"ListCtrlNameStr",ListCtrlNameStr_get, ListCtrlNameStr_set);
50727 SWIG_Python_SetConstant(d, "LC_VRULES",SWIG_From_int(static_cast< int >(wxLC_VRULES)));
50728 SWIG_Python_SetConstant(d, "LC_HRULES",SWIG_From_int(static_cast< int >(wxLC_HRULES)));
50729 SWIG_Python_SetConstant(d, "LC_ICON",SWIG_From_int(static_cast< int >(wxLC_ICON)));
50730 SWIG_Python_SetConstant(d, "LC_SMALL_ICON",SWIG_From_int(static_cast< int >(wxLC_SMALL_ICON)));
50731 SWIG_Python_SetConstant(d, "LC_LIST",SWIG_From_int(static_cast< int >(wxLC_LIST)));
50732 SWIG_Python_SetConstant(d, "LC_REPORT",SWIG_From_int(static_cast< int >(wxLC_REPORT)));
50733 SWIG_Python_SetConstant(d, "LC_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLC_ALIGN_TOP)));
50734 SWIG_Python_SetConstant(d, "LC_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLC_ALIGN_LEFT)));
50735 SWIG_Python_SetConstant(d, "LC_AUTOARRANGE",SWIG_From_int(static_cast< int >(wxLC_AUTOARRANGE)));
50736 SWIG_Python_SetConstant(d, "LC_VIRTUAL",SWIG_From_int(static_cast< int >(wxLC_VIRTUAL)));
50737 SWIG_Python_SetConstant(d, "LC_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxLC_EDIT_LABELS)));
50738 SWIG_Python_SetConstant(d, "LC_NO_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_HEADER)));
50739 SWIG_Python_SetConstant(d, "LC_NO_SORT_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_SORT_HEADER)));
50740 SWIG_Python_SetConstant(d, "LC_SINGLE_SEL",SWIG_From_int(static_cast< int >(wxLC_SINGLE_SEL)));
50741 SWIG_Python_SetConstant(d, "LC_SORT_ASCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_ASCENDING)));
50742 SWIG_Python_SetConstant(d, "LC_SORT_DESCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_DESCENDING)));
50743 SWIG_Python_SetConstant(d, "LC_MASK_TYPE",SWIG_From_int(static_cast< int >(wxLC_MASK_TYPE)));
50744 SWIG_Python_SetConstant(d, "LC_MASK_ALIGN",SWIG_From_int(static_cast< int >(wxLC_MASK_ALIGN)));
50745 SWIG_Python_SetConstant(d, "LC_MASK_SORT",SWIG_From_int(static_cast< int >(wxLC_MASK_SORT)));
50746 SWIG_Python_SetConstant(d, "LIST_MASK_STATE",SWIG_From_int(static_cast< int >(wxLIST_MASK_STATE)));
50747 SWIG_Python_SetConstant(d, "LIST_MASK_TEXT",SWIG_From_int(static_cast< int >(wxLIST_MASK_TEXT)));
50748 SWIG_Python_SetConstant(d, "LIST_MASK_IMAGE",SWIG_From_int(static_cast< int >(wxLIST_MASK_IMAGE)));
50749 SWIG_Python_SetConstant(d, "LIST_MASK_DATA",SWIG_From_int(static_cast< int >(wxLIST_MASK_DATA)));
50750 SWIG_Python_SetConstant(d, "LIST_SET_ITEM",SWIG_From_int(static_cast< int >(wxLIST_SET_ITEM)));
50751 SWIG_Python_SetConstant(d, "LIST_MASK_WIDTH",SWIG_From_int(static_cast< int >(wxLIST_MASK_WIDTH)));
50752 SWIG_Python_SetConstant(d, "LIST_MASK_FORMAT",SWIG_From_int(static_cast< int >(wxLIST_MASK_FORMAT)));
50753 SWIG_Python_SetConstant(d, "LIST_STATE_DONTCARE",SWIG_From_int(static_cast< int >(wxLIST_STATE_DONTCARE)));
50754 SWIG_Python_SetConstant(d, "LIST_STATE_DROPHILITED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DROPHILITED)));
50755 SWIG_Python_SetConstant(d, "LIST_STATE_FOCUSED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FOCUSED)));
50756 SWIG_Python_SetConstant(d, "LIST_STATE_SELECTED",SWIG_From_int(static_cast< int >(wxLIST_STATE_SELECTED)));
50757 SWIG_Python_SetConstant(d, "LIST_STATE_CUT",SWIG_From_int(static_cast< int >(wxLIST_STATE_CUT)));
50758 SWIG_Python_SetConstant(d, "LIST_STATE_DISABLED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DISABLED)));
50759 SWIG_Python_SetConstant(d, "LIST_STATE_FILTERED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FILTERED)));
50760 SWIG_Python_SetConstant(d, "LIST_STATE_INUSE",SWIG_From_int(static_cast< int >(wxLIST_STATE_INUSE)));
50761 SWIG_Python_SetConstant(d, "LIST_STATE_PICKED",SWIG_From_int(static_cast< int >(wxLIST_STATE_PICKED)));
50762 SWIG_Python_SetConstant(d, "LIST_STATE_SOURCE",SWIG_From_int(static_cast< int >(wxLIST_STATE_SOURCE)));
50763 SWIG_Python_SetConstant(d, "LIST_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ABOVE)));
50764 SWIG_Python_SetConstant(d, "LIST_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_BELOW)));
50765 SWIG_Python_SetConstant(d, "LIST_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_NOWHERE)));
50766 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMICON)));
50767 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMLABEL)));
50768 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMRIGHT)));
50769 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMSTATEICON)));
50770 SWIG_Python_SetConstant(d, "LIST_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TOLEFT)));
50771 SWIG_Python_SetConstant(d, "LIST_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TORIGHT)));
50772 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEM)));
50773 SWIG_Python_SetConstant(d, "LIST_GETSUBITEMRECT_WHOLEITEM",SWIG_From_int(static_cast< int >(wxLIST_GETSUBITEMRECT_WHOLEITEM)));
50774 SWIG_Python_SetConstant(d, "LIST_NEXT_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ABOVE)));
50775 SWIG_Python_SetConstant(d, "LIST_NEXT_ALL",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ALL)));
50776 SWIG_Python_SetConstant(d, "LIST_NEXT_BELOW",SWIG_From_int(static_cast< int >(wxLIST_NEXT_BELOW)));
50777 SWIG_Python_SetConstant(d, "LIST_NEXT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_LEFT)));
50778 SWIG_Python_SetConstant(d, "LIST_NEXT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_RIGHT)));
50779 SWIG_Python_SetConstant(d, "LIST_ALIGN_DEFAULT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_DEFAULT)));
50780 SWIG_Python_SetConstant(d, "LIST_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_LEFT)));
50781 SWIG_Python_SetConstant(d, "LIST_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_TOP)));
50782 SWIG_Python_SetConstant(d, "LIST_ALIGN_SNAP_TO_GRID",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_SNAP_TO_GRID)));
50783 SWIG_Python_SetConstant(d, "LIST_FORMAT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_LEFT)));
50784 SWIG_Python_SetConstant(d, "LIST_FORMAT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_RIGHT)));
50785 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTRE",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTRE)));
50786 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTER",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTER)));
50787 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE)));
50788 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE_USEHEADER",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE_USEHEADER)));
50789 SWIG_Python_SetConstant(d, "LIST_RECT_BOUNDS",SWIG_From_int(static_cast< int >(wxLIST_RECT_BOUNDS)));
50790 SWIG_Python_SetConstant(d, "LIST_RECT_ICON",SWIG_From_int(static_cast< int >(wxLIST_RECT_ICON)));
50791 SWIG_Python_SetConstant(d, "LIST_RECT_LABEL",SWIG_From_int(static_cast< int >(wxLIST_RECT_LABEL)));
50792 SWIG_Python_SetConstant(d, "LIST_FIND_UP",SWIG_From_int(static_cast< int >(wxLIST_FIND_UP)));
50793 SWIG_Python_SetConstant(d, "LIST_FIND_DOWN",SWIG_From_int(static_cast< int >(wxLIST_FIND_DOWN)));
50794 SWIG_Python_SetConstant(d, "LIST_FIND_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FIND_LEFT)));
50795 SWIG_Python_SetConstant(d, "LIST_FIND_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FIND_RIGHT)));
50796 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
50797 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
50798 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
50799 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
50800 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
50801 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
50802 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
50803 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
50804 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
50805 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
50806 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
50807 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
50808 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
50809 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
50810 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
50811 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
50812 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
50813 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
50814 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
50815 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
50816
50817 // Map renamed classes back to their common name for OOR
50818 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
50819
50820 SWIG_addvarlink(SWIG_globals(),(char*)"TreeCtrlNameStr",TreeCtrlNameStr_get, TreeCtrlNameStr_set);
50821 SWIG_Python_SetConstant(d, "TR_NO_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_NO_BUTTONS)));
50822 SWIG_Python_SetConstant(d, "TR_HAS_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_HAS_BUTTONS)));
50823 SWIG_Python_SetConstant(d, "TR_NO_LINES",SWIG_From_int(static_cast< int >(wxTR_NO_LINES)));
50824 SWIG_Python_SetConstant(d, "TR_LINES_AT_ROOT",SWIG_From_int(static_cast< int >(wxTR_LINES_AT_ROOT)));
50825 SWIG_Python_SetConstant(d, "TR_SINGLE",SWIG_From_int(static_cast< int >(wxTR_SINGLE)));
50826 SWIG_Python_SetConstant(d, "TR_MULTIPLE",SWIG_From_int(static_cast< int >(wxTR_MULTIPLE)));
50827 SWIG_Python_SetConstant(d, "TR_EXTENDED",SWIG_From_int(static_cast< int >(wxTR_EXTENDED)));
50828 SWIG_Python_SetConstant(d, "TR_HAS_VARIABLE_ROW_HEIGHT",SWIG_From_int(static_cast< int >(wxTR_HAS_VARIABLE_ROW_HEIGHT)));
50829 SWIG_Python_SetConstant(d, "TR_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxTR_EDIT_LABELS)));
50830 SWIG_Python_SetConstant(d, "TR_HIDE_ROOT",SWIG_From_int(static_cast< int >(wxTR_HIDE_ROOT)));
50831 SWIG_Python_SetConstant(d, "TR_ROW_LINES",SWIG_From_int(static_cast< int >(wxTR_ROW_LINES)));
50832 SWIG_Python_SetConstant(d, "TR_FULL_ROW_HIGHLIGHT",SWIG_From_int(static_cast< int >(wxTR_FULL_ROW_HIGHLIGHT)));
50833 SWIG_Python_SetConstant(d, "TR_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxTR_DEFAULT_STYLE)));
50834 SWIG_Python_SetConstant(d, "TR_TWIST_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_TWIST_BUTTONS)));
50835 SWIG_Python_SetConstant(d, "TreeItemIcon_Normal",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Normal)));
50836 SWIG_Python_SetConstant(d, "TreeItemIcon_Selected",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Selected)));
50837 SWIG_Python_SetConstant(d, "TreeItemIcon_Expanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Expanded)));
50838 SWIG_Python_SetConstant(d, "TreeItemIcon_SelectedExpanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_SelectedExpanded)));
50839 SWIG_Python_SetConstant(d, "TreeItemIcon_Max",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Max)));
50840 SWIG_Python_SetConstant(d, "TREE_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ABOVE)));
50841 SWIG_Python_SetConstant(d, "TREE_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_BELOW)));
50842 SWIG_Python_SetConstant(d, "TREE_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_NOWHERE)));
50843 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMBUTTON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMBUTTON)));
50844 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMICON)));
50845 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMINDENT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMINDENT)));
50846 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLABEL)));
50847 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMRIGHT)));
50848 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMSTATEICON)));
50849 SWIG_Python_SetConstant(d, "TREE_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TOLEFT)));
50850 SWIG_Python_SetConstant(d, "TREE_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TORIGHT)));
50851 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMUPPERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMUPPERPART)));
50852 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLOWERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLOWERPART)));
50853 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEM)));
50854 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
50855 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
50856 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
50857 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
50858 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
50859 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
50860 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
50861 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
50862 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
50863 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
50864 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
50865 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
50866 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
50867 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
50868 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
50869 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
50870 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
50871 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
50872 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
50873 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
50874 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU));
50875 SWIG_addvarlink(SWIG_globals(),(char*)"NullTreeItemId",NullTreeItemId_get, NullTreeItemId_set);
50876
50877 // Map renamed classes back to their common name for OOR
50878 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
50879 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
50880
50881 SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogDefaultFolderStr",DirDialogDefaultFolderStr_get, DirDialogDefaultFolderStr_set);
50882 SWIG_Python_SetConstant(d, "DIRCTRL_DIR_ONLY",SWIG_From_int(static_cast< int >(wxDIRCTRL_DIR_ONLY)));
50883 SWIG_Python_SetConstant(d, "DIRCTRL_SELECT_FIRST",SWIG_From_int(static_cast< int >(wxDIRCTRL_SELECT_FIRST)));
50884 SWIG_Python_SetConstant(d, "DIRCTRL_SHOW_FILTERS",SWIG_From_int(static_cast< int >(wxDIRCTRL_SHOW_FILTERS)));
50885 SWIG_Python_SetConstant(d, "DIRCTRL_3D_INTERNAL",SWIG_From_int(static_cast< int >(wxDIRCTRL_3D_INTERNAL)));
50886 SWIG_Python_SetConstant(d, "DIRCTRL_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxDIRCTRL_EDIT_LABELS)));
50887 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
50888 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
50889 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Unknown",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Unknown)));
50890 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Keyboard",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Keyboard)));
50891 SWIG_Python_SetConstant(d, "HelpEvent_Origin_HelpButton",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_HelpButton)));
50892
50893 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
50894
50895 SWIG_addvarlink(SWIG_globals(),(char*)"DatePickerCtrlNameStr",DatePickerCtrlNameStr_get, DatePickerCtrlNameStr_set);
50896 SWIG_Python_SetConstant(d, "DP_DEFAULT",SWIG_From_int(static_cast< int >(wxDP_DEFAULT)));
50897 SWIG_Python_SetConstant(d, "DP_SPIN",SWIG_From_int(static_cast< int >(wxDP_SPIN)));
50898 SWIG_Python_SetConstant(d, "DP_DROPDOWN",SWIG_From_int(static_cast< int >(wxDP_DROPDOWN)));
50899 SWIG_Python_SetConstant(d, "DP_SHOWCENTURY",SWIG_From_int(static_cast< int >(wxDP_SHOWCENTURY)));
50900 SWIG_Python_SetConstant(d, "DP_ALLOWNONE",SWIG_From_int(static_cast< int >(wxDP_ALLOWNONE)));
50901 SWIG_addvarlink(SWIG_globals(),(char*)"HyperlinkCtrlNameStr",HyperlinkCtrlNameStr_get, HyperlinkCtrlNameStr_set);
50902 SWIG_Python_SetConstant(d, "HL_CONTEXTMENU",SWIG_From_int(static_cast< int >(wxHL_CONTEXTMENU)));
50903 SWIG_Python_SetConstant(d, "HL_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxHL_ALIGN_LEFT)));
50904 SWIG_Python_SetConstant(d, "HL_ALIGN_RIGHT",SWIG_From_int(static_cast< int >(wxHL_ALIGN_RIGHT)));
50905 SWIG_Python_SetConstant(d, "HL_ALIGN_CENTRE",SWIG_From_int(static_cast< int >(wxHL_ALIGN_CENTRE)));
50906 SWIG_Python_SetConstant(d, "HL_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxHL_DEFAULT_STYLE)));
50907 PyDict_SetItemString(d, "wxEVT_COMMAND_HYPERLINK", PyInt_FromLong(wxEVT_COMMAND_HYPERLINK));
50908 SWIG_Python_SetConstant(d, "PB_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxPB_USE_TEXTCTRL)));
50909 SWIG_addvarlink(SWIG_globals(),(char*)"ColourPickerCtrlNameStr",ColourPickerCtrlNameStr_get, ColourPickerCtrlNameStr_set);
50910 SWIG_Python_SetConstant(d, "CLRP_SHOW_LABEL",SWIG_From_int(static_cast< int >(wxCLRP_SHOW_LABEL)));
50911 SWIG_Python_SetConstant(d, "CLRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxCLRP_USE_TEXTCTRL)));
50912 SWIG_Python_SetConstant(d, "CLRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxCLRP_DEFAULT_STYLE)));
50913 PyDict_SetItemString(d, "wxEVT_COMMAND_COLOURPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_COLOURPICKER_CHANGED));
50914 SWIG_addvarlink(SWIG_globals(),(char*)"FilePickerCtrlNameStr",FilePickerCtrlNameStr_get, FilePickerCtrlNameStr_set);
50915 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorPromptStr",FileSelectorPromptStr_get, FileSelectorPromptStr_set);
50916 SWIG_addvarlink(SWIG_globals(),(char*)"DirPickerCtrlNameStr",DirPickerCtrlNameStr_get, DirPickerCtrlNameStr_set);
50917 SWIG_addvarlink(SWIG_globals(),(char*)"DirSelectorPromptStr",DirSelectorPromptStr_get, DirSelectorPromptStr_set);
50918 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorDefaultWildcardStr",FileSelectorDefaultWildcardStr_get, FileSelectorDefaultWildcardStr_set);
50919 SWIG_Python_SetConstant(d, "FLP_OPEN",SWIG_From_int(static_cast< int >(wxFLP_OPEN)));
50920 SWIG_Python_SetConstant(d, "FLP_SAVE",SWIG_From_int(static_cast< int >(wxFLP_SAVE)));
50921 SWIG_Python_SetConstant(d, "FLP_OVERWRITE_PROMPT",SWIG_From_int(static_cast< int >(wxFLP_OVERWRITE_PROMPT)));
50922 SWIG_Python_SetConstant(d, "FLP_FILE_MUST_EXIST",SWIG_From_int(static_cast< int >(wxFLP_FILE_MUST_EXIST)));
50923 SWIG_Python_SetConstant(d, "FLP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxFLP_CHANGE_DIR)));
50924 SWIG_Python_SetConstant(d, "DIRP_DIR_MUST_EXIST",SWIG_From_int(static_cast< int >(wxDIRP_DIR_MUST_EXIST)));
50925 SWIG_Python_SetConstant(d, "DIRP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxDIRP_CHANGE_DIR)));
50926 SWIG_Python_SetConstant(d, "FLP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFLP_USE_TEXTCTRL)));
50927 SWIG_Python_SetConstant(d, "FLP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFLP_DEFAULT_STYLE)));
50928 SWIG_Python_SetConstant(d, "DIRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxDIRP_USE_TEXTCTRL)));
50929 SWIG_Python_SetConstant(d, "DIRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxDIRP_DEFAULT_STYLE)));
50930 PyDict_SetItemString(d, "wxEVT_COMMAND_FILEPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FILEPICKER_CHANGED));
50931 PyDict_SetItemString(d, "wxEVT_COMMAND_DIRPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_DIRPICKER_CHANGED));
50932 SWIG_addvarlink(SWIG_globals(),(char*)"FontPickerCtrlNameStr",FontPickerCtrlNameStr_get, FontPickerCtrlNameStr_set);
50933 SWIG_Python_SetConstant(d, "FNTP_FONTDESC_AS_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_FONTDESC_AS_LABEL)));
50934 SWIG_Python_SetConstant(d, "FNTP_USEFONT_FOR_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_USEFONT_FOR_LABEL)));
50935 SWIG_Python_SetConstant(d, "FNTP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFNTP_USE_TEXTCTRL)));
50936 SWIG_Python_SetConstant(d, "FNTP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFNTP_DEFAULT_STYLE)));
50937 PyDict_SetItemString(d, "wxEVT_COMMAND_FONTPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FONTPICKER_CHANGED));
50938 SWIG_addvarlink(SWIG_globals(),(char*)"CollapsiblePaneNameStr",CollapsiblePaneNameStr_get, CollapsiblePaneNameStr_set);
50939 SWIG_Python_SetConstant(d, "CP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxCP_DEFAULT_STYLE)));
50940 SWIG_Python_SetConstant(d, "CP_NO_TLW_RESIZE",SWIG_From_int(static_cast< int >(wxCP_NO_TLW_RESIZE)));
50941 PyDict_SetItemString(d, "wxEVT_COMMAND_COLLPANE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_COLLPANE_CHANGED));
50942 SWIG_addvarlink(SWIG_globals(),(char*)"SearchCtrlNameStr",SearchCtrlNameStr_get, SearchCtrlNameStr_set);
50943 PyDict_SetItemString(d, "wxEVT_COMMAND_SEARCHCTRL_CANCEL_BTN", PyInt_FromLong(wxEVT_COMMAND_SEARCHCTRL_CANCEL_BTN));
50944 PyDict_SetItemString(d, "wxEVT_COMMAND_SEARCHCTRL_SEARCH_BTN", PyInt_FromLong(wxEVT_COMMAND_SEARCHCTRL_SEARCH_BTN));
50945 }
50946